Files
kjh2064 3f293d8aa8
deploy / deploy (push) Successful in 1m52s
deploy / notify (push) Successful in 1s
V13-FE-006: consolidate approved UI and contract hardening
2026-08-13 02:41:00 +09:00

29 lines
1.1 KiB
TypeScript

export type KbxCommandGroup = 'query' | 'edit' | 'workflow' | 'output' | 'more'
export type KbxCommandVariant = 'primary' | 'secondary' | 'danger' | 'ghost'
export interface KbxCommandConfirmDefinition { title:string; detail:string; level?:'low'|'medium'|'high'; confirmLabel?:string }
export interface KbxCommandDefinition {
id: string
label: string
group: KbxCommandGroup
variant?: KbxCommandVariant
shortcut?: string
permission?: string
/** Optional state-specific authorization for one visual command (e.g. create vs update save). */
permissionByStatus?: Record<string, string>
icon?: string
/** Optional standard output menu. Keeps Excel actions consistent across screens. */
menu?: 'excel'
requiresSelection?: boolean
minSelection?: number
maxSelection?: number
/** Keep the command visible but disabled outside these business states. */
allowedStatuses?: string[]
/** Save-like commands can be disabled until the page is dirty. */
requiresDirty?: boolean
/** Workflow commits can require the current record to be saved first. */
requiresClean?: boolean
disabledReason?: string
confirm?: KbxCommandConfirmDefinition
}