@k2b/ui 0.62.0 → 0.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.css +6 -3
- package/dist/browser/actions/ContextMenu.js +3 -1
- package/dist/browser/actions/ContextMenu.js.map +1 -1
- package/dist/browser/actions/DragAndDrop.js +26 -5
- package/dist/browser/actions/DragAndDrop.js.map +1 -1
- package/dist/browser/actions/DropOverlay.js +76 -0
- package/dist/browser/actions/DropOverlay.js.map +1 -0
- package/dist/browser/actions/Dropdown.js +69 -15
- package/dist/browser/actions/Dropdown.js.map +1 -1
- package/dist/browser/actions/FilterChip.js +10 -5
- package/dist/browser/actions/FilterChip.js.map +1 -1
- package/dist/browser/actions/SortableList.js +338 -85
- package/dist/browser/actions/SortableList.js.map +1 -1
- package/dist/browser/actions/ViewTabs.js +9 -5
- package/dist/browser/actions/ViewTabs.js.map +1 -1
- package/dist/browser/actions/drag-and-drop-keyboard.js +211 -0
- package/dist/browser/actions/drag-and-drop-keyboard.js.map +1 -0
- package/dist/browser/actions/drag-and-drop-messages.js +21 -25
- package/dist/browser/actions/drag-and-drop-messages.js.map +1 -1
- package/dist/browser/actions/drag-and-drop.js +206 -184
- package/dist/browser/actions/drag-and-drop.js.map +1 -1
- package/dist/browser/actions/drop-overlay-pages.js +54 -0
- package/dist/browser/actions/drop-overlay-pages.js.map +1 -0
- package/dist/browser/actions/drop-overlay-view.js +318 -0
- package/dist/browser/actions/drop-overlay-view.js.map +1 -0
- package/dist/browser/actions/index.js +4 -2
- package/dist/browser/actions/index.js.map +1 -1
- package/dist/browser/actions/menu-sheet-messages.js +26 -0
- package/dist/browser/actions/menu-sheet-messages.js.map +1 -0
- package/dist/browser/actions/menu-sheet.js +80 -18
- package/dist/browser/actions/menu-sheet.js.map +1 -1
- package/dist/browser/actions/menu-submenu-panel.js +392 -0
- package/dist/browser/actions/menu-submenu-panel.js.map +1 -0
- package/dist/browser/actions/preload-when-idle.js +15 -0
- package/dist/browser/actions/preload-when-idle.js.map +1 -0
- package/dist/browser/actions/sortable-board.js +107 -0
- package/dist/browser/actions/sortable-board.js.map +1 -0
- package/dist/browser/actions/sortable-keyboard.js +202 -0
- package/dist/browser/actions/sortable-keyboard.js.map +1 -0
- package/dist/browser/actions/sortable-list-messages.js +23 -11
- package/dist/browser/actions/sortable-list-messages.js.map +1 -1
- package/dist/browser/actions/sortable-place.js +26 -0
- package/dist/browser/actions/sortable-place.js.map +1 -0
- package/dist/browser/charts/core/line-base.js +2 -1
- package/dist/browser/charts/core/line-base.js.map +1 -1
- package/dist/browser/charts/core/line-details.js +2 -1
- package/dist/browser/charts/core/line-details.js.map +1 -1
- package/dist/browser/charts/core/svg-common.js +7 -0
- package/dist/browser/charts/core/svg-common.js.map +1 -1
- package/dist/browser/charts/description.js.map +1 -1
- package/dist/browser/chat/ChatComposer.js +15 -5
- package/dist/browser/chat/ChatComposer.js.map +1 -1
- package/dist/browser/chat/ChatDecision.js +607 -582
- package/dist/browser/chat/ChatDecision.js.map +1 -1
- package/dist/browser/chat/ChatDecisionField.js +311 -0
- package/dist/browser/chat/ChatDecisionField.js.map +1 -0
- package/dist/browser/chat/chat-messages.js +0 -4
- package/dist/browser/chat/chat-messages.js.map +1 -1
- package/dist/browser/chat/index.js +4 -4
- package/dist/browser/chat/index.js.map +1 -1
- package/dist/browser/chat/types.js.map +1 -1
- package/dist/browser/chat-decision-field.js +6 -0
- package/dist/browser/chat-decision-field.js.map +1 -0
- package/dist/browser/code-diff.js +7 -0
- package/dist/browser/code-diff.js.map +1 -0
- package/dist/browser/content/ChartExplorer.js +170 -161
- package/dist/browser/content/ChartExplorer.js.map +1 -1
- package/dist/browser/content/CodeDiff.js +785 -0
- package/dist/browser/content/CodeDiff.js.map +1 -0
- package/dist/browser/content/CodeDisplay.js +13 -4
- package/dist/browser/content/CodeDisplay.js.map +1 -1
- package/dist/browser/content/DataTable.js +494 -366
- package/dist/browser/content/DataTable.js.map +1 -1
- package/dist/browser/content/FileName.js +68 -0
- package/dist/browser/content/FileName.js.map +1 -0
- package/dist/browser/content/Lightbox.js +140 -123
- package/dist/browser/content/Lightbox.js.map +1 -1
- package/dist/browser/content/ProgressPath.js +30 -25
- package/dist/browser/content/ProgressPath.js.map +1 -1
- package/dist/browser/content/RunLog.js +2 -1
- package/dist/browser/content/RunLog.js.map +1 -1
- package/dist/browser/content/TaskRow.js +129 -0
- package/dist/browser/content/TaskRow.js.map +1 -0
- package/dist/browser/content/code-diff-messages.js +74 -0
- package/dist/browser/content/code-diff-messages.js.map +1 -0
- package/dist/browser/content/code-highlight.js +36 -91
- package/dist/browser/content/code-highlight.js.map +1 -1
- package/dist/browser/content/data-table-columns.js +13 -1
- package/dist/browser/content/data-table-columns.js.map +1 -1
- package/dist/browser/content/index.js +3 -0
- package/dist/browser/content/index.js.map +1 -1
- package/dist/browser/content/progress-path-messages.js +22 -0
- package/dist/browser/content/progress-path-messages.js.map +1 -0
- package/dist/browser/feedback/dialog-call.js +26 -0
- package/dist/browser/feedback/dialog-call.js.map +1 -0
- package/dist/browser/feedback/dialog-core.js +126 -27
- package/dist/browser/feedback/dialog-core.js.map +1 -1
- package/dist/browser/feedback/dialog-foot.js +45 -0
- package/dist/browser/feedback/dialog-foot.js.map +1 -0
- package/dist/browser/feedback/prompt-confirm.js +115 -133
- package/dist/browser/feedback/prompt-confirm.js.map +1 -1
- package/dist/browser/feedback/prompt-form-loader.js +18 -0
- package/dist/browser/feedback/prompt-form-loader.js.map +1 -0
- package/dist/browser/feedback/prompt-form-state.js +77 -0
- package/dist/browser/feedback/prompt-form-state.js.map +1 -0
- package/dist/browser/feedback/prompt-form.js +333 -0
- package/dist/browser/feedback/prompt-form.js.map +1 -0
- package/dist/browser/feedback/prompt-header.js +100 -0
- package/dist/browser/feedback/prompt-header.js.map +1 -0
- package/dist/browser/feedback/prompt-messages.js +2 -0
- package/dist/browser/feedback/prompt-messages.js.map +1 -1
- package/dist/browser/feedback/prompt-sheet-view.js +5 -4
- package/dist/browser/feedback/prompt-sheet-view.js.map +1 -1
- package/dist/browser/feedback/prompt-sheet.js +5 -3
- package/dist/browser/feedback/prompt-sheet.js.map +1 -1
- package/dist/browser/feedback/prompts.js +180 -550
- package/dist/browser/feedback/prompts.js.map +1 -1
- package/dist/browser/inputs/Combobox.js +26 -9
- package/dist/browser/inputs/Combobox.js.map +1 -1
- package/dist/browser/inputs/DatePicker.js +376 -718
- package/dist/browser/inputs/DatePicker.js.map +1 -1
- package/dist/browser/inputs/FileInputs.js +1 -1
- package/dist/browser/inputs/FileInputs.js.map +1 -1
- package/dist/browser/inputs/NumberInput.js +125 -46
- package/dist/browser/inputs/NumberInput.js.map +1 -1
- package/dist/browser/inputs/PeriodPicker.js +13 -5
- package/dist/browser/inputs/PeriodPicker.js.map +1 -1
- package/dist/browser/inputs/QrScanner.js +30 -3
- package/dist/browser/inputs/QrScanner.js.map +1 -1
- package/dist/browser/inputs/TextInput.js +3 -3
- package/dist/browser/inputs/TextInput.js.map +1 -1
- package/dist/browser/inputs/choice.js +2 -0
- package/dist/browser/inputs/choice.js.map +1 -1
- package/dist/browser/inputs/date-picker-panel.js +420 -0
- package/dist/browser/inputs/date-picker-panel.js.map +1 -0
- package/dist/browser/inputs/date-sheet.js +4 -3
- package/dist/browser/inputs/date-sheet.js.map +1 -1
- package/dist/browser/inputs/field-suggestion.js +18 -11
- package/dist/browser/inputs/field-suggestion.js.map +1 -1
- package/dist/browser/inputs/image-crop.js +1 -1
- package/dist/browser/inputs/image-crop.js.map +1 -1
- package/dist/browser/inputs/image-tools.js +4 -0
- package/dist/browser/inputs/image-tools.js.map +1 -0
- package/dist/browser/inputs/input-messages.js +8 -2
- package/dist/browser/inputs/input-messages.js.map +1 -1
- package/dist/browser/internal/field.js +2 -2
- package/dist/browser/internal/field.js.map +1 -1
- package/dist/browser/internal/renders-something.js +3 -0
- package/dist/browser/internal/renders-something.js.map +1 -0
- package/dist/browser/intl/messages.js +1 -1
- package/dist/browser/intl/messages.js.map +1 -1
- package/dist/browser/layout/AppWorkspace.js +17 -9
- package/dist/browser/layout/AppWorkspace.js.map +1 -1
- package/dist/browser/layout/AppWorkspaceSidebarItemStatus.js +62 -46
- package/dist/browser/layout/AppWorkspaceSidebarItemStatus.js.map +1 -1
- package/dist/browser/layout/Breadcrumbs.js +188 -42
- package/dist/browser/layout/Breadcrumbs.js.map +1 -1
- package/dist/browser/layout/DetailPanel.js +209 -205
- package/dist/browser/layout/DetailPanel.js.map +1 -1
- package/dist/browser/layout/FloatingPill.js +33 -0
- package/dist/browser/layout/FloatingPill.js.map +1 -0
- package/dist/browser/layout/Navigation.js +10 -7
- package/dist/browser/layout/Navigation.js.map +1 -1
- package/dist/browser/layout/PanelDialog.js +176 -88
- package/dist/browser/layout/PanelDialog.js.map +1 -1
- package/dist/browser/layout/StatusRow.js +174 -0
- package/dist/browser/layout/StatusRow.js.map +1 -0
- package/dist/browser/layout/app-workspace-controller.js +12 -5
- package/dist/browser/layout/app-workspace-controller.js.map +1 -1
- package/dist/browser/layout/app-workspace-state.js +2 -2
- package/dist/browser/layout/app-workspace-state.js.map +1 -1
- package/dist/browser/layout/index.js +2 -0
- package/dist/browser/layout/index.js.map +1 -1
- package/dist/browser/layout/navigation-model.js.map +1 -1
- package/dist/browser/layout/panel-dialog-error.js +44 -0
- package/dist/browser/layout/panel-dialog-error.js.map +1 -0
- package/dist/browser/layout/panel-sheet-handle.js +86 -0
- package/dist/browser/layout/panel-sheet-handle.js.map +1 -0
- package/dist/browser/layout/workspace-messages.js +12 -2
- package/dist/browser/layout/workspace-messages.js.map +1 -1
- package/dist/browser/layout-check.js +232 -0
- package/dist/browser/layout-check.js.map +1 -0
- package/dist/browser/run-log.js +3 -0
- package/dist/browser/run-log.js.map +1 -0
- package/dist/browser/surfaces/Area.js +205 -0
- package/dist/browser/surfaces/Area.js.map +1 -0
- package/dist/browser/surfaces/FactGroup.js +148 -0
- package/dist/browser/surfaces/FactGroup.js.map +1 -0
- package/dist/browser/surfaces/FieldGrid.js +34 -0
- package/dist/browser/surfaces/FieldGrid.js.map +1 -0
- package/dist/browser/surfaces/NoticeCard.js +69 -57
- package/dist/browser/surfaces/NoticeCard.js.map +1 -1
- package/dist/browser/surfaces/NoticeRow.js +91 -5
- package/dist/browser/surfaces/NoticeRow.js.map +1 -1
- package/dist/browser/surfaces/Placeholder.js +17 -5
- package/dist/browser/surfaces/Placeholder.js.map +1 -1
- package/dist/browser/surfaces/RowGroup.js +82 -0
- package/dist/browser/surfaces/RowGroup.js.map +1 -0
- package/dist/browser/surfaces/Section.js +22 -7
- package/dist/browser/surfaces/Section.js.map +1 -1
- package/dist/browser/surfaces/StatCell.js +62 -49
- package/dist/browser/surfaces/StatCell.js.map +1 -1
- package/dist/browser/surfaces/StatGrid.js +2 -0
- package/dist/browser/surfaces/StatGrid.js.map +1 -1
- package/dist/browser/surfaces/StatusBadge.js +5 -1
- package/dist/browser/surfaces/StatusBadge.js.map +1 -1
- package/dist/browser/surfaces/flat-block-messages.js +37 -0
- package/dist/browser/surfaces/flat-block-messages.js.map +1 -0
- package/dist/browser/surfaces/index.js +4 -0
- package/dist/browser/surfaces/index.js.map +1 -1
- package/dist/browser/widgets/DashboardFrame.js +62 -52
- package/dist/browser/widgets/DashboardFrame.js.map +1 -1
- package/dist/ssr/actions/ContextMenu.js +3 -1
- package/dist/ssr/actions/ContextMenu.js.map +1 -1
- package/dist/ssr/actions/DragAndDrop.js +26 -5
- package/dist/ssr/actions/DragAndDrop.js.map +1 -1
- package/dist/ssr/actions/DropOverlay.js +69 -0
- package/dist/ssr/actions/DropOverlay.js.map +1 -0
- package/dist/ssr/actions/Dropdown.js +69 -15
- package/dist/ssr/actions/Dropdown.js.map +1 -1
- package/dist/ssr/actions/FilterChip.js +8 -1
- package/dist/ssr/actions/FilterChip.js.map +1 -1
- package/dist/ssr/actions/SortableList.js +293 -71
- package/dist/ssr/actions/SortableList.js.map +1 -1
- package/dist/ssr/actions/ViewTabs.js +9 -5
- package/dist/ssr/actions/ViewTabs.js.map +1 -1
- package/dist/ssr/actions/drag-and-drop-keyboard.js +211 -0
- package/dist/ssr/actions/drag-and-drop-keyboard.js.map +1 -0
- package/dist/ssr/actions/drag-and-drop-messages.js +21 -25
- package/dist/ssr/actions/drag-and-drop-messages.js.map +1 -1
- package/dist/ssr/actions/drag-and-drop.js +206 -184
- package/dist/ssr/actions/drag-and-drop.js.map +1 -1
- package/dist/ssr/actions/drop-overlay-pages.js +54 -0
- package/dist/ssr/actions/drop-overlay-pages.js.map +1 -0
- package/dist/ssr/actions/drop-overlay-view.js +225 -0
- package/dist/ssr/actions/drop-overlay-view.js.map +1 -0
- package/dist/ssr/actions/index.js +4 -2
- package/dist/ssr/actions/index.js.map +1 -1
- package/dist/ssr/actions/menu-sheet-messages.js +26 -0
- package/dist/ssr/actions/menu-sheet-messages.js.map +1 -0
- package/dist/ssr/actions/menu-sheet.js +62 -10
- package/dist/ssr/actions/menu-sheet.js.map +1 -1
- package/dist/ssr/actions/menu-submenu-panel.js +295 -0
- package/dist/ssr/actions/menu-submenu-panel.js.map +1 -0
- package/dist/ssr/actions/preload-when-idle.js +15 -0
- package/dist/ssr/actions/preload-when-idle.js.map +1 -0
- package/dist/ssr/actions/sortable-board.js +107 -0
- package/dist/ssr/actions/sortable-board.js.map +1 -0
- package/dist/ssr/actions/sortable-keyboard.js +202 -0
- package/dist/ssr/actions/sortable-keyboard.js.map +1 -0
- package/dist/ssr/actions/sortable-list-messages.js +23 -11
- package/dist/ssr/actions/sortable-list-messages.js.map +1 -1
- package/dist/ssr/actions/sortable-place.js +26 -0
- package/dist/ssr/actions/sortable-place.js.map +1 -0
- package/dist/ssr/charts/core/line-base.js +2 -1
- package/dist/ssr/charts/core/line-base.js.map +1 -1
- package/dist/ssr/charts/core/line-details.js +2 -1
- package/dist/ssr/charts/core/line-details.js.map +1 -1
- package/dist/ssr/charts/core/svg-common.js +7 -0
- package/dist/ssr/charts/core/svg-common.js.map +1 -1
- package/dist/ssr/charts/description.js.map +1 -1
- package/dist/ssr/chat/ChatComposer.js +12 -4
- package/dist/ssr/chat/ChatComposer.js.map +1 -1
- package/dist/ssr/chat/ChatDecision.js +321 -275
- package/dist/ssr/chat/ChatDecision.js.map +1 -1
- package/dist/ssr/chat/ChatDecisionField.js +206 -0
- package/dist/ssr/chat/ChatDecisionField.js.map +1 -0
- package/dist/ssr/chat/chat-messages.js +0 -4
- package/dist/ssr/chat/chat-messages.js.map +1 -1
- package/dist/ssr/chat/index.js +4 -4
- package/dist/ssr/chat/index.js.map +1 -1
- package/dist/ssr/chat/types.js.map +1 -1
- package/dist/ssr/chat-decision-field.js +6 -0
- package/dist/ssr/chat-decision-field.js.map +1 -0
- package/dist/ssr/code-diff.js +7 -0
- package/dist/ssr/code-diff.js.map +1 -0
- package/dist/ssr/content/ChartExplorer.js +67 -59
- package/dist/ssr/content/ChartExplorer.js.map +1 -1
- package/dist/ssr/content/CodeDiff.js +610 -0
- package/dist/ssr/content/CodeDiff.js.map +1 -0
- package/dist/ssr/content/CodeDisplay.js +8 -2
- package/dist/ssr/content/CodeDisplay.js.map +1 -1
- package/dist/ssr/content/DataTable.js +128 -82
- package/dist/ssr/content/DataTable.js.map +1 -1
- package/dist/ssr/content/FileName.js +46 -0
- package/dist/ssr/content/FileName.js.map +1 -0
- package/dist/ssr/content/Lightbox.js +53 -40
- package/dist/ssr/content/Lightbox.js.map +1 -1
- package/dist/ssr/content/ProgressPath.js +14 -8
- package/dist/ssr/content/ProgressPath.js.map +1 -1
- package/dist/ssr/content/RunLog.js +2 -1
- package/dist/ssr/content/RunLog.js.map +1 -1
- package/dist/ssr/content/TaskRow.js +95 -0
- package/dist/ssr/content/TaskRow.js.map +1 -0
- package/dist/ssr/content/code-diff-messages.js +74 -0
- package/dist/ssr/content/code-diff-messages.js.map +1 -0
- package/dist/ssr/content/code-highlight.js +36 -91
- package/dist/ssr/content/code-highlight.js.map +1 -1
- package/dist/ssr/content/data-table-columns.js +13 -1
- package/dist/ssr/content/data-table-columns.js.map +1 -1
- package/dist/ssr/content/index.js +3 -0
- package/dist/ssr/content/index.js.map +1 -1
- package/dist/ssr/content/progress-path-messages.js +22 -0
- package/dist/ssr/content/progress-path-messages.js.map +1 -0
- package/dist/ssr/feedback/dialog-call.js +26 -0
- package/dist/ssr/feedback/dialog-call.js.map +1 -0
- package/dist/ssr/feedback/dialog-core.js +126 -27
- package/dist/ssr/feedback/dialog-core.js.map +1 -1
- package/dist/ssr/feedback/dialog-foot.js +45 -0
- package/dist/ssr/feedback/dialog-foot.js.map +1 -0
- package/dist/ssr/feedback/prompt-confirm.js +67 -58
- package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
- package/dist/ssr/feedback/prompt-form-loader.js +18 -0
- package/dist/ssr/feedback/prompt-form-loader.js.map +1 -0
- package/dist/ssr/feedback/prompt-form-state.js +77 -0
- package/dist/ssr/feedback/prompt-form-state.js.map +1 -0
- package/dist/ssr/feedback/prompt-form.js +299 -0
- package/dist/ssr/feedback/prompt-form.js.map +1 -0
- package/dist/ssr/feedback/prompt-header.js +54 -0
- package/dist/ssr/feedback/prompt-header.js.map +1 -0
- package/dist/ssr/feedback/prompt-messages.js +2 -0
- package/dist/ssr/feedback/prompt-messages.js.map +1 -1
- package/dist/ssr/feedback/prompt-sheet-view.js +5 -4
- package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -1
- package/dist/ssr/feedback/prompt-sheet.js +5 -3
- package/dist/ssr/feedback/prompt-sheet.js.map +1 -1
- package/dist/ssr/feedback/prompts.js +79 -409
- package/dist/ssr/feedback/prompts.js.map +1 -1
- package/dist/ssr/inputs/Combobox.js +17 -3
- package/dist/ssr/inputs/Combobox.js.map +1 -1
- package/dist/ssr/inputs/DatePicker.js +101 -265
- package/dist/ssr/inputs/DatePicker.js.map +1 -1
- package/dist/ssr/inputs/FileInputs.js +1 -1
- package/dist/ssr/inputs/FileInputs.js.map +1 -1
- package/dist/ssr/inputs/NumberInput.js +114 -44
- package/dist/ssr/inputs/NumberInput.js.map +1 -1
- package/dist/ssr/inputs/PeriodPicker.js +13 -5
- package/dist/ssr/inputs/PeriodPicker.js.map +1 -1
- package/dist/ssr/inputs/QrScanner.js +30 -3
- package/dist/ssr/inputs/QrScanner.js.map +1 -1
- package/dist/ssr/inputs/TextInput.js +3 -3
- package/dist/ssr/inputs/TextInput.js.map +1 -1
- package/dist/ssr/inputs/choice.js +2 -0
- package/dist/ssr/inputs/choice.js.map +1 -1
- package/dist/ssr/inputs/date-picker-panel.js +233 -0
- package/dist/ssr/inputs/date-picker-panel.js.map +1 -0
- package/dist/ssr/inputs/date-sheet.js +4 -3
- package/dist/ssr/inputs/date-sheet.js.map +1 -1
- package/dist/ssr/inputs/field-suggestion.js +18 -11
- package/dist/ssr/inputs/field-suggestion.js.map +1 -1
- package/dist/ssr/inputs/image-crop.js +1 -1
- package/dist/ssr/inputs/image-crop.js.map +1 -1
- package/dist/ssr/inputs/image-tools.js +4 -0
- package/dist/ssr/inputs/image-tools.js.map +1 -0
- package/dist/ssr/inputs/input-messages.js +8 -2
- package/dist/ssr/inputs/input-messages.js.map +1 -1
- package/dist/ssr/internal/field.js +2 -2
- package/dist/ssr/internal/field.js.map +1 -1
- package/dist/ssr/internal/renders-something.js +3 -0
- package/dist/ssr/internal/renders-something.js.map +1 -0
- package/dist/ssr/intl/messages.js +1 -1
- package/dist/ssr/intl/messages.js.map +1 -1
- package/dist/ssr/layout/AppWorkspace.js +17 -9
- package/dist/ssr/layout/AppWorkspace.js.map +1 -1
- package/dist/ssr/layout/AppWorkspaceSidebarItemStatus.js +37 -22
- package/dist/ssr/layout/AppWorkspaceSidebarItemStatus.js.map +1 -1
- package/dist/ssr/layout/Breadcrumbs.js +140 -26
- package/dist/ssr/layout/Breadcrumbs.js.map +1 -1
- package/dist/ssr/layout/DetailPanel.js +70 -68
- package/dist/ssr/layout/DetailPanel.js.map +1 -1
- package/dist/ssr/layout/FloatingPill.js +16 -0
- package/dist/ssr/layout/FloatingPill.js.map +1 -0
- package/dist/ssr/layout/Navigation.js +1 -1
- package/dist/ssr/layout/Navigation.js.map +1 -1
- package/dist/ssr/layout/PanelDialog.js +82 -8
- package/dist/ssr/layout/PanelDialog.js.map +1 -1
- package/dist/ssr/layout/StatusRow.js +93 -0
- package/dist/ssr/layout/StatusRow.js.map +1 -0
- package/dist/ssr/layout/app-workspace-controller.js +12 -5
- package/dist/ssr/layout/app-workspace-controller.js.map +1 -1
- package/dist/ssr/layout/app-workspace-state.js +2 -2
- package/dist/ssr/layout/app-workspace-state.js.map +1 -1
- package/dist/ssr/layout/index.js +2 -0
- package/dist/ssr/layout/index.js.map +1 -1
- package/dist/ssr/layout/navigation-model.js.map +1 -1
- package/dist/ssr/layout/panel-dialog-error.js +28 -0
- package/dist/ssr/layout/panel-dialog-error.js.map +1 -0
- package/dist/ssr/layout/panel-sheet-handle.js +66 -0
- package/dist/ssr/layout/panel-sheet-handle.js.map +1 -0
- package/dist/ssr/layout/workspace-messages.js +12 -2
- package/dist/ssr/layout/workspace-messages.js.map +1 -1
- package/dist/ssr/layout-check.js +232 -0
- package/dist/ssr/layout-check.js.map +1 -0
- package/dist/ssr/run-log.js +3 -0
- package/dist/ssr/run-log.js.map +1 -0
- package/dist/ssr/surfaces/Area.js +147 -0
- package/dist/ssr/surfaces/Area.js.map +1 -0
- package/dist/ssr/surfaces/FactGroup.js +106 -0
- package/dist/ssr/surfaces/FactGroup.js.map +1 -0
- package/dist/ssr/surfaces/FieldGrid.js +22 -0
- package/dist/ssr/surfaces/FieldGrid.js.map +1 -0
- package/dist/ssr/surfaces/NoticeCard.js +7 -5
- package/dist/ssr/surfaces/NoticeCard.js.map +1 -1
- package/dist/ssr/surfaces/NoticeRow.js +74 -5
- package/dist/ssr/surfaces/NoticeRow.js.map +1 -1
- package/dist/ssr/surfaces/Placeholder.js +15 -4
- package/dist/ssr/surfaces/Placeholder.js.map +1 -1
- package/dist/ssr/surfaces/RowGroup.js +60 -0
- package/dist/ssr/surfaces/RowGroup.js.map +1 -0
- package/dist/ssr/surfaces/Section.js +7 -4
- package/dist/ssr/surfaces/Section.js.map +1 -1
- package/dist/ssr/surfaces/StatCell.js +8 -4
- package/dist/ssr/surfaces/StatCell.js.map +1 -1
- package/dist/ssr/surfaces/StatGrid.js +2 -0
- package/dist/ssr/surfaces/StatGrid.js.map +1 -1
- package/dist/ssr/surfaces/StatusBadge.js +5 -1
- package/dist/ssr/surfaces/StatusBadge.js.map +1 -1
- package/dist/ssr/surfaces/flat-block-messages.js +37 -0
- package/dist/ssr/surfaces/flat-block-messages.js.map +1 -0
- package/dist/ssr/surfaces/index.js +4 -0
- package/dist/ssr/surfaces/index.js.map +1 -1
- package/dist/ssr/widgets/DashboardFrame.js +20 -12
- package/dist/ssr/widgets/DashboardFrame.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/actions/DragAndDrop.d.ts +17 -2
- package/dist/types/actions/DropOverlay.d.ts +46 -0
- package/dist/types/actions/Dropdown.d.ts +35 -1
- package/dist/types/actions/FilterChip.d.ts +2 -1
- package/dist/types/actions/SortableList.d.ts +36 -6
- package/dist/types/actions/ViewTabs.d.ts +3 -2
- package/dist/types/actions/drag-and-drop-keyboard.d.ts +4 -0
- package/dist/types/actions/drag-and-drop-messages.d.ts +8 -10
- package/dist/types/actions/drag-and-drop.d.ts +62 -4
- package/dist/types/actions/drop-overlay-pages.d.ts +22 -0
- package/dist/types/actions/drop-overlay-view.d.ts +12 -0
- package/dist/types/actions/index.d.ts +9 -5
- package/dist/types/actions/menu-sheet-messages.d.ts +11 -0
- package/dist/types/actions/menu-sheet.d.ts +3 -1
- package/dist/types/actions/menu-submenu-panel.d.ts +27 -0
- package/dist/types/actions/preload-when-idle.d.ts +5 -0
- package/dist/types/actions/sortable-board.d.ts +69 -0
- package/dist/types/actions/sortable-keyboard.d.ts +7 -0
- package/dist/types/actions/sortable-list-messages.d.ts +10 -3
- package/dist/types/actions/sortable-place.d.ts +16 -0
- package/dist/types/charts/core/svg-common.d.ts +7 -0
- package/dist/types/charts/description.d.ts +2 -0
- package/dist/types/chat/ChatDecision.d.ts +98 -111
- package/dist/types/chat/ChatDecisionField.d.ts +45 -0
- package/dist/types/chat/chat-messages.d.ts +0 -2
- package/dist/types/chat/index.d.ts +4 -20
- package/dist/types/chat/types.d.ts +24 -14
- package/dist/types/chat-decision-field.d.ts +5 -0
- package/dist/types/code-diff.d.ts +6 -0
- package/dist/types/content/ChartExplorer.d.ts +5 -0
- package/dist/types/content/CodeDiff.d.ts +68 -0
- package/dist/types/content/CodeDisplay.d.ts +2 -0
- package/dist/types/content/DataTable.d.ts +19 -0
- package/dist/types/content/FileName.d.ts +23 -0
- package/dist/types/content/Lightbox.d.ts +5 -0
- package/dist/types/content/ProgressPath.d.ts +12 -6
- package/dist/types/content/RunLog.d.ts +2 -0
- package/dist/types/content/TaskRow.d.ts +33 -0
- package/dist/types/content/code-diff-messages.d.ts +35 -0
- package/dist/types/content/code-highlight.d.ts +0 -12
- package/dist/types/content/index.d.ts +3 -0
- package/dist/types/content/progress-path-messages.d.ts +8 -0
- package/dist/types/feedback/dialog-call.d.ts +19 -0
- package/dist/types/feedback/dialog-core.d.ts +14 -0
- package/dist/types/feedback/dialog-foot.d.ts +9 -0
- package/dist/types/feedback/prompt-confirm.d.ts +20 -13
- package/dist/types/feedback/prompt-form-loader.d.ts +10 -0
- package/dist/types/feedback/prompt-form-state.d.ts +8 -0
- package/dist/types/feedback/prompt-form.d.ts +13 -0
- package/dist/types/feedback/prompt-header.d.ts +15 -0
- package/dist/types/feedback/prompt-messages.d.ts +1 -0
- package/dist/types/feedback/prompt-sheet-view.d.ts +6 -3
- package/dist/types/feedback/prompt-sheet.d.ts +4 -2
- package/dist/types/feedback/prompts.d.ts +5 -11
- package/dist/types/inputs/Combobox.d.ts +2 -0
- package/dist/types/inputs/DatePicker.d.ts +3 -21
- package/dist/types/inputs/TextInput.d.ts +2 -0
- package/dist/types/inputs/choice.d.ts +3 -2
- package/dist/types/inputs/date-picker-panel.d.ts +29 -0
- package/dist/types/inputs/date-sheet.d.ts +4 -2
- package/dist/types/inputs/field-suggestion.d.ts +4 -1
- package/dist/types/inputs/image-tools.d.ts +1 -0
- package/dist/types/inputs/input-messages.d.ts +4 -1
- package/dist/types/internal/renders-something.d.ts +2 -0
- package/dist/types/layout/AppWorkspace.d.ts +10 -2
- package/dist/types/layout/AppWorkspaceSidebarItemStatus.d.ts +5 -0
- package/dist/types/layout/Breadcrumbs.d.ts +10 -5
- package/dist/types/layout/FloatingPill.d.ts +20 -0
- package/dist/types/layout/PanelDialog.d.ts +19 -0
- package/dist/types/layout/StatusRow.d.ts +54 -0
- package/dist/types/layout/app-workspace-state.d.ts +2 -2
- package/dist/types/layout/index.d.ts +5 -1
- package/dist/types/layout/navigation-model.d.ts +2 -0
- package/dist/types/layout/panel-dialog-error.d.ts +9 -0
- package/dist/types/layout/panel-sheet-handle.d.ts +8 -0
- package/dist/types/layout/workspace-messages.d.ts +5 -0
- package/dist/types/layout-check.d.ts +52 -0
- package/dist/types/run-log.d.ts +2 -0
- package/dist/types/surfaces/Area.d.ts +38 -0
- package/dist/types/surfaces/FactGroup.d.ts +33 -0
- package/dist/types/surfaces/FieldGrid.d.ts +14 -0
- package/dist/types/surfaces/NoticeCard.d.ts +6 -4
- package/dist/types/surfaces/NoticeRow.d.ts +19 -3
- package/dist/types/surfaces/Placeholder.d.ts +7 -0
- package/dist/types/surfaces/RowGroup.d.ts +20 -0
- package/dist/types/surfaces/Section.d.ts +8 -2
- package/dist/types/surfaces/StatCell.d.ts +2 -0
- package/dist/types/surfaces/StatGrid.d.ts +2 -1
- package/dist/types/surfaces/StatusBadge.d.ts +2 -1
- package/dist/types/surfaces/flat-block-messages.d.ts +16 -0
- package/dist/types/surfaces/index.d.ts +9 -1
- package/dist/types/widgets/DashboardFrame.d.ts +5 -0
- package/package.json +27 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
export type TaskRowProps = {
|
|
3
|
+
/** Tabler icon class for the kind of task, such as `ti ti-package-export`. Decorative: the sentence names the task. */
|
|
4
|
+
icon: string;
|
|
5
|
+
/** How many things the task covers, as a chip before the sentence. Zero shows no chip; the sentence says it in words. */
|
|
6
|
+
count?: number;
|
|
7
|
+
/** The task in one sentence, such as "3 unsold items are ready for pickup". One line; a longer one ends in an ellipsis. */
|
|
8
|
+
text: string;
|
|
9
|
+
/** A quiet second line, such as the date the task is due. The row is then 52 px instead of 40 px. */
|
|
10
|
+
detail?: JSX.Element;
|
|
11
|
+
/** The action word at the end, such as "Prepare handover". It is never cut; the sentence gives way first. */
|
|
12
|
+
action: string;
|
|
13
|
+
/** Where the row leads. The row is then a link. */
|
|
14
|
+
href?: string;
|
|
15
|
+
/** What the row does when there is no `href`. The row is then a button. */
|
|
16
|
+
onClick?: (event: MouseEvent) => void;
|
|
17
|
+
/** The task cannot be started now. The row stays in place, reads as unavailable and does nothing. */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The accessible name, when the visible text alone does not say what happens. Defaults to the row's text. Start it
|
|
21
|
+
* with the visible sentence and action word, so people who speak a visible word can still reach the row.
|
|
22
|
+
*/
|
|
23
|
+
label?: string;
|
|
24
|
+
class?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A task that only has a date, such as items waiting for pickup until a day: the kind as a symbol, the count as a
|
|
28
|
+
* chip, one sentence and, at the end, the action word. The whole row is one link or button. What needs someone now
|
|
29
|
+
* and has a consequence is a notice cell instead (K10), not a task row.
|
|
30
|
+
* @example <TaskRow icon="ti ti-package-export" count={3} text="Unsold items are ready for pickup" detail="until Dec 12, 2026" action="Prepare handover" href="/handover" />
|
|
31
|
+
*/
|
|
32
|
+
export declare function TaskRow(props: TaskRowProps): JSX.Element;
|
|
33
|
+
export default TaskRow;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const codeDiffMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
+
codeDiffLabel: string;
|
|
3
|
+
codeDiffFiles: string;
|
|
4
|
+
codeDiffUnchangedLines: ({ count }: {
|
|
5
|
+
count: string;
|
|
6
|
+
}) => string;
|
|
7
|
+
codeDiffUnchangedLine: string;
|
|
8
|
+
codeDiffAdded: ({ line }: {
|
|
9
|
+
line: number;
|
|
10
|
+
}) => string;
|
|
11
|
+
codeDiffRemoved: ({ line }: {
|
|
12
|
+
line: number;
|
|
13
|
+
}) => string;
|
|
14
|
+
codeDiffMarked: string;
|
|
15
|
+
codeDiffSame: string;
|
|
16
|
+
codeDiffLines: ({ count }: {
|
|
17
|
+
count: string;
|
|
18
|
+
}) => string;
|
|
19
|
+
codeDiffNewFile: ({ path }: {
|
|
20
|
+
path: string;
|
|
21
|
+
}) => string;
|
|
22
|
+
codeDiffMore: ({ count }: {
|
|
23
|
+
count: string;
|
|
24
|
+
}) => string;
|
|
25
|
+
codeDiffMoreOne: string;
|
|
26
|
+
codeDiffLoading: string;
|
|
27
|
+
codeDiffError: string;
|
|
28
|
+
codeDiffEmpty: string;
|
|
29
|
+
codeDiffSameNoted: string;
|
|
30
|
+
}>;
|
|
31
|
+
export type CodeDiffMessages = ReturnType<(typeof codeDiffMessages)["resolve"]>["t"];
|
|
32
|
+
/** Resolved from the inherited render locale. */
|
|
33
|
+
export declare const useCodeDiffMessages: () => (() => CodeDiffMessages);
|
|
34
|
+
export declare const checkCodeDiffMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
35
|
+
export {};
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Small safe highlighters for CodeDisplay.
|
|
3
|
-
*
|
|
4
|
-
* These are display-only highlighters: no AST, no runtime parser, no
|
|
5
|
-
* dependency. Every input character is HTML-escaped before being wrapped
|
|
6
|
-
* in token spans, so the returned strings are safe to inject with
|
|
7
|
-
* `innerHTML`.
|
|
8
|
-
*/
|
|
9
1
|
export type CodeDisplayLanguage = "ts" | "tsx" | "js" | "jsx" | "script" | "markdown" | "md" | "text" | "sql";
|
|
10
|
-
export declare const escapeCodeHtml: (s: string) => string;
|
|
11
|
-
export declare const highlightCode: (code: string) => string;
|
|
12
|
-
export declare const highlightMarkdownDisplay: (code: string) => string;
|
|
13
2
|
export declare const highlightCodeDisplayLines: (code: string, language?: CodeDisplayLanguage) => string[];
|
|
14
|
-
export declare const highlightCodeDisplay: (code: string, language?: CodeDisplayLanguage) => string;
|
|
15
3
|
/** Display-only, tolerant of incomplete SQL while typing. Source is always escaped. */
|
|
16
4
|
export declare const highlightSql: (code: string) => string;
|
|
@@ -33,6 +33,7 @@ export type { DataTableColumnType, DataTableNumberFormat, DataTableStatusState,
|
|
|
33
33
|
export { filterRows, sortRows } from "./data-table-columns";
|
|
34
34
|
export { FileBrowserPanel, type FileBrowserPanelProps, type FileSource, openFileBrowser } from "./FileBrowser";
|
|
35
35
|
export { FileGrid, type FileGridGroup, type FileGridOpenProps, type FileGridProps, type FileGridSelectableProps } from "./FileGrid";
|
|
36
|
+
export { FileName, type FileNameProps, splitFileName } from "./FileName";
|
|
36
37
|
export { default as FileTree, type FileTreeActions, type FileTreeEntry, type FileTreeProps } from "./FileTree";
|
|
37
38
|
export { type FileType, FileTypeIcon, type FileTypeIconProps, fileKindLabel, fileTypeOf } from "./FileTypeIcon";
|
|
38
39
|
export { default as FileView, type FileViewContent, type FileViewProps, type FileViewRenderer, type FileViewRendererProps, } from "./FileView";
|
|
@@ -55,6 +56,7 @@ export { MapView } from "./MapView";
|
|
|
55
56
|
export { MapViewFrame } from "./MapViewFrame";
|
|
56
57
|
export { default as MarkdownView, type MarkdownRenderOptions, type MarkdownViewProps, renderSafeMarkdown } from "./MarkdownView";
|
|
57
58
|
export { type MatchRange, MatchText, type MatchTextProps, matchParts } from "./MatchText";
|
|
59
|
+
export { MessageQuote } from "./MessageQuote";
|
|
58
60
|
export type { MessageEventGroupProps, MessageEventRowProps, MessageGroupEntry, MessageRowAction, MessageRowAttachment, MessageRowAuthor, MessageRowFile, MessageRowMedia, MessageRowOrigin, MessageRowProgress, MessageRowProps, MessageRowQuote, MessageRowReaction, MessageRowStatus, MessageRowThread, MessageSystemRowProps, } from "./MessageRow";
|
|
59
61
|
export { MessageEventGroup, MessageEventRow, MessageRow, MessageSystemRow, startsMessageGroup } from "./MessageRow";
|
|
60
62
|
export { type GeoNavigationPlatform, geoNavigationHref, geoNavigationPlatform } from "./map-navigation";
|
|
@@ -79,6 +81,7 @@ export type { StepsProps } from "./Steps";
|
|
|
79
81
|
export { Steps } from "./Steps";
|
|
80
82
|
export type { StructuredDataPreviewMode, StructuredDataPreviewProps, StructuredDataValue } from "./StructuredDataPreview";
|
|
81
83
|
export { default as StructuredDataPreview, isStructuredDataValue } from "./StructuredDataPreview";
|
|
84
|
+
export { TaskRow, type TaskRowProps } from "./TaskRow";
|
|
82
85
|
export { ThumbnailStrip, type ThumbnailStripItem, type ThumbnailStripProps } from "./ThumbnailStrip";
|
|
83
86
|
export type { TimelineColor, TimelineController, TimelineItem, TimelineProps } from "./Timeline";
|
|
84
87
|
export { default as Timeline } from "./Timeline";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const progressPathMessages: import("@k2b/stdlib").Catalog<{
|
|
2
|
+
current: string;
|
|
3
|
+
}>;
|
|
4
|
+
export type ProgressPathMessages = ReturnType<(typeof progressPathMessages)["resolve"]>["t"];
|
|
5
|
+
/** Resolved from the inherited render locale. */
|
|
6
|
+
export declare const useProgressPathMessages: () => (() => ProgressPathMessages);
|
|
7
|
+
export declare const checkProgressPathMessages: () => import("@k2b/stdlib").CatalogIssue[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { readUiScope } from "../internal/portal-scope";
|
|
2
|
+
/**
|
|
3
|
+
* What a dialog takes from its call: the page's disposal count, where focus returns, and the palette (read at once,
|
|
4
|
+
* or later from the element that asked). A small module of its own, so a field that opens a dialog from code it loads
|
|
5
|
+
* on demand (a date picker's phone sheet) reads its call without carrying the dialog core in its first script.
|
|
6
|
+
*/
|
|
7
|
+
export type DialogCall = {
|
|
8
|
+
requested: number;
|
|
9
|
+
/** The palette of the call, when it was read at once. */
|
|
10
|
+
scope?: ReturnType<typeof readUiScope>;
|
|
11
|
+
/** The element that asked: the palette is read from it when the dialog opens. */
|
|
12
|
+
source?: Element;
|
|
13
|
+
opener?: HTMLElement;
|
|
14
|
+
openerRing: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const notePageDisposal: () => void;
|
|
17
|
+
export declare const pageDisposals: () => number;
|
|
18
|
+
/** Reads the call now. A field passes its own element, whose palette the dialog takes even if focus moves away. */
|
|
19
|
+
export declare const readDialogCall: (source?: Element) => DialogCall;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
+
import { type DialogCall } from "./dialog-call";
|
|
3
|
+
/**
|
|
4
|
+
* The custom property that lifts a centered dialog frame so its footer stays put (`dialog-foot.ts`). The core clears
|
|
5
|
+
* it whenever another level shows, so each level starts centered.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DIALOG_LIFT = "--k2b-dialog-lift";
|
|
2
8
|
export type DialogClose<T> = (result?: T) => void;
|
|
3
9
|
export type OpenDialogOptions = {
|
|
4
10
|
/** Override the opener's primary palette for a dialog with its own purpose, such as a global session warning. */
|
|
@@ -55,6 +61,7 @@ export declare const createDialogCore: () => {
|
|
|
55
61
|
open: <T>(view: DialogRender<T>, options?: OpenDialogOptions) => Promise<T | undefined>;
|
|
56
62
|
close: (result?: unknown) => void;
|
|
57
63
|
isOpen: () => boolean;
|
|
64
|
+
capture: (target: DialogCore, call?: DialogCall) => DialogCore["open"];
|
|
58
65
|
holdHistory: (onBack: () => void) => (() => void);
|
|
59
66
|
historySettled: () => Promise<void>;
|
|
60
67
|
};
|
|
@@ -65,5 +72,12 @@ export declare const dialogCore: DialogCore;
|
|
|
65
72
|
* Release during island disposal forgets the marker without traversing; the router may replace the remaining entry.
|
|
66
73
|
*/
|
|
67
74
|
export declare const holdDialogHistory: (onBack: () => void) => (() => void);
|
|
75
|
+
/**
|
|
76
|
+
* Internal: for a dialog whose code loads first. Call it synchronously where the dialog is asked for; the returned
|
|
77
|
+
* `open` uses that call's palette and opener, and resolves `undefined` without opening when the page changed since.
|
|
78
|
+
*/
|
|
79
|
+
export declare const captureDialogOpen: () => DialogCore["open"];
|
|
80
|
+
/** Internal: the `open` of a call read earlier with `readDialogCall()`, for code that loads after the call. */
|
|
81
|
+
export declare const dialogOpenFor: (call: DialogCall) => DialogCore["open"];
|
|
68
82
|
/** Internal: waits until released holders have left history or were forgotten during island disposal. */
|
|
69
83
|
export declare const dialogHistorySettled: () => Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps a dialog's footer where it is whenever the frame's height changes while it is open, such as when an error
|
|
3
|
+
* shows above the footer (K16): a centered frame grows down by half of the new height, so it moves up by that much
|
|
4
|
+
* and grows upwards only; it shrinks from the top as well. It never moves past the top edge: a frame at its full
|
|
5
|
+
* height scrolls its body instead. A frame that follows its content folds from its top edge on its own, a placed
|
|
6
|
+
* window keeps its place, and a sheet keeps its bottom anyway. A new window size centers the frame again.
|
|
7
|
+
* Returns a function that stops it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const holdDialogFoot: (footer: HTMLElement) => (() => void) | undefined;
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
|
-
import {
|
|
2
|
+
import type { TextInput } from "../inputs/TextInput";
|
|
3
|
+
import { type DialogCore } from "./dialog-core";
|
|
3
4
|
import type { ConfirmOptions, DialogOptions } from "./prompts";
|
|
4
5
|
export type PromptContent = string | HTMLElement | JSX.Element;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
icon?: string;
|
|
13
|
-
tone?: DialogTone;
|
|
14
|
-
/** A success tone draws its check once when the header appears; see `prompts.success`. */
|
|
15
|
-
celebrate?: boolean;
|
|
16
|
-
}) => JSX.Element;
|
|
6
|
+
export declare const openError: (content: string | HTMLElement, options?: DialogOptions, sheet?: boolean, open?: DialogCore["open"]) => Promise<unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* The fields of a prompt did not load: the person sees why and asks again, which requests them again. The message
|
|
9
|
+
* keeps the dialog in the middle, since the phone sheet loads on demand too. `open` is the one the prompt captured at
|
|
10
|
+
* its call, so after a navigation the message does not appear over the new page either.
|
|
11
|
+
*/
|
|
12
|
+
export declare const promptFormUnavailable: (signal: AbortSignal | undefined, open: DialogCore["open"]) => Promise<void>;
|
|
17
13
|
export declare const confirmPrompt: (content: PromptContent, options?: ConfirmOptions) => Promise<boolean | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Where the typed phrase's text field comes from: `prompts` provides it from the form chunk that loads on demand.
|
|
16
|
+
* `PanelDialog` imports this module for its discard question, and the form's date picker imports `PanelDialog`
|
|
17
|
+
* through its phone sheet, so importing the form's loader here would be an import cycle.
|
|
18
|
+
*/
|
|
19
|
+
declare let phraseField: {
|
|
20
|
+
loaded: () => typeof TextInput | undefined;
|
|
21
|
+
load: () => Promise<typeof TextInput>;
|
|
22
|
+
} | undefined;
|
|
23
|
+
export declare const providePhraseField: (source: NonNullable<typeof phraseField>) => void;
|
|
18
24
|
/** `prompts` starts as this object; `PanelDialog` asks through it, so it reaches a replaced `prompts.confirm` too. */
|
|
19
25
|
export declare const sharedPrompts: {
|
|
20
26
|
confirm: typeof confirmPrompt;
|
|
21
27
|
};
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PromptForm = typeof import("./prompt-form");
|
|
2
|
+
/** The form module once it has loaded, so a prompt opens in the same task as its call. */
|
|
3
|
+
export declare const loadedPromptForm: () => PromptForm | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* The form prompts and the typed confirmation phrase load their field components on demand, so an island that only
|
|
6
|
+
* confirms or alerts does not carry the date picker, the Markdown editor and the other fields in its first script. A
|
|
7
|
+
* failed chunk request may succeed on the next open.
|
|
8
|
+
*/
|
|
9
|
+
export declare const loadPromptForm: () => Promise<PromptForm>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FieldSchema, PromptFormValue } from "./prompts";
|
|
2
|
+
export declare const createFormState: <T extends Record<string, FieldSchema>>(schema: T) => {
|
|
3
|
+
values: Record<string, PromptFormValue>;
|
|
4
|
+
errors: Record<string, string | undefined>;
|
|
5
|
+
updateField: (key: string, value: PromptFormValue) => void;
|
|
6
|
+
validateAll: () => boolean;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import { TextInput } from "../inputs/TextInput";
|
|
3
|
+
import type { FieldSchema, InferFormValues, PromptFormOptions } from "./prompts";
|
|
4
|
+
/**
|
|
5
|
+
* The form of `prompts.form`, `prompts.prompt` and `prompts.promptNumber` with its field components. It loads on demand,
|
|
6
|
+
* so an island that only confirms does not carry the date picker, the Markdown editor and the other fields. The typed
|
|
7
|
+
* confirmation phrase of `prompts.confirm` takes its `TextInput` from here too.
|
|
8
|
+
*/
|
|
9
|
+
export { TextInput };
|
|
10
|
+
export declare const PromptFormDialog: <T extends Record<string, FieldSchema>>(props: {
|
|
11
|
+
config: PromptFormOptions<T>;
|
|
12
|
+
close: (value: InferFormValues<T> | null) => void;
|
|
13
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
import { type DialogTone } from "./dialog-tone";
|
|
3
|
+
import type { DialogOptions } from "./prompts";
|
|
4
|
+
/** A prompt's `variant` is its tone too: a success, warning or danger prompt carries the dialog tone of that name. */
|
|
5
|
+
export declare const promptTone: (variant: DialogOptions["variant"]) => DialogTone | undefined;
|
|
6
|
+
/** A warning asks for care, not for a destructive act: its confirm button stays primary. */
|
|
7
|
+
export declare const promptButtonVariant: (variant: DialogOptions["variant"]) => "danger" | "primary" | "success";
|
|
8
|
+
export declare const DialogHeader: (props: {
|
|
9
|
+
close: () => void;
|
|
10
|
+
title?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
tone?: DialogTone;
|
|
13
|
+
/** A success tone draws its check once when the header appears; see `prompts.success`. */
|
|
14
|
+
celebrate?: boolean;
|
|
15
|
+
}) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
1
|
+
import type { DialogCore, DialogRender, OpenDialogOptions } from "./dialog-core";
|
|
2
|
+
/**
|
|
3
|
+
* Opens the prompt as a bottom sheet; dismissing it, by its handle or a drag, takes the prompt's own dismiss path.
|
|
4
|
+
* `open` carries the context of the prompt's call, taken before this code loaded.
|
|
5
|
+
*/
|
|
6
|
+
export declare const openPromptSheet: <T>(render: DialogRender<T>, options: OpenDialogOptions, open: DialogCore["open"]) => Promise<T | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DialogRender, type OpenDialogOptions } from "./dialog-core";
|
|
1
|
+
import { type DialogCore, type DialogRender, type OpenDialogOptions } from "./dialog-core";
|
|
2
2
|
/** The prompt options that shape its dialog, as in `DialogOptions`. */
|
|
3
3
|
type PromptFrame = {
|
|
4
4
|
size?: string;
|
|
@@ -16,6 +16,8 @@ export declare const contentClass: (surface?: string) => string;
|
|
|
16
16
|
/**
|
|
17
17
|
* Opens a prompt with the frame, cancellation, history, and name every prompt shares: the dialog in the middle, or on
|
|
18
18
|
* a phone the same content as a bottom sheet. `label` names it when it has no title; `sheet: false` keeps the dialog.
|
|
19
|
+
* A caller that loads code before it opens passes `open` from `captureDialogOpen()` at its own call; by default the
|
|
20
|
+
* prompt takes its context here, before the sheet's code loads.
|
|
19
21
|
*/
|
|
20
|
-
export declare const openPrompt: <T>(render: DialogRender<T>, options: PromptFrame | undefined, label: string, sheet?: boolean, initialFocus?: OpenDialogOptions["initialFocus"]) => Promise<T | undefined>;
|
|
22
|
+
export declare const openPrompt: <T>(render: DialogRender<T>, options: PromptFrame | undefined, label: string, sheet?: boolean, initialFocus?: OpenDialogOptions["initialFocus"], open?: DialogCore["open"]) => Promise<T | undefined>;
|
|
21
23
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
2
|
import { type DialogRender, type OpenDialogOptions } from "./dialog-core";
|
|
3
3
|
import { type PromptContent } from "./prompt-confirm";
|
|
4
|
-
export {
|
|
4
|
+
export { createFormState } from "./prompt-form-state";
|
|
5
|
+
export { DialogHeader } from "./prompt-header";
|
|
5
6
|
export interface DialogOptions {
|
|
6
7
|
signal?: AbortSignal;
|
|
7
8
|
title?: string;
|
|
@@ -138,15 +139,15 @@ type InferFieldType<T extends FieldSchema> = T extends {
|
|
|
138
139
|
} ? number : T extends {
|
|
139
140
|
type: "info";
|
|
140
141
|
} ? never : never;
|
|
141
|
-
type InferFormValues<T extends Record<string, FieldSchema>> = {
|
|
142
|
+
export type InferFormValues<T extends Record<string, FieldSchema>> = {
|
|
142
143
|
[K in keyof T as T[K] extends {
|
|
143
144
|
type: "info";
|
|
144
145
|
} ? never : K]: T[K] extends {
|
|
145
146
|
required: true;
|
|
146
147
|
} ? InferFieldType<T[K]> : InferFieldType<T[K]> | undefined;
|
|
147
148
|
};
|
|
148
|
-
type PromptFormValue = string | number | boolean | string[] | undefined;
|
|
149
|
-
type PromptFormOptions<T extends Record<string, FieldSchema>> = {
|
|
149
|
+
export type PromptFormValue = string | number | boolean | string[] | undefined;
|
|
150
|
+
export type PromptFormOptions<T extends Record<string, FieldSchema>> = {
|
|
150
151
|
signal?: AbortSignal;
|
|
151
152
|
title?: string;
|
|
152
153
|
ariaLabel?: string;
|
|
@@ -160,13 +161,6 @@ type PromptFormOptions<T extends Record<string, FieldSchema>> = {
|
|
|
160
161
|
size?: DialogOptions["size"];
|
|
161
162
|
cancelBehavior?: DialogOptions["cancelBehavior"];
|
|
162
163
|
};
|
|
163
|
-
export declare const createFormState: <T extends Record<string, FieldSchema>>(schema: T) => {
|
|
164
|
-
values: Record<string, PromptFormValue>;
|
|
165
|
-
errors: Record<string, string | undefined>;
|
|
166
|
-
updateField: (key: string, value: PromptFormValue) => void;
|
|
167
|
-
validateAll: () => boolean;
|
|
168
|
-
reset: () => void;
|
|
169
|
-
};
|
|
170
164
|
type CloudSearchResolver<T> = (input: PromptSearchInput) => Promise<PromptSearchItem<T>[]> | PromptSearchItem<T>[];
|
|
171
165
|
declare const openSearchPrompt: <T extends unknown = unknown>(resolver: CloudSearchResolver<T>, options?: PromptSearchOptions) => Promise<PromptSearchItem<T> | undefined>;
|
|
172
166
|
declare const promptText: (content: string, defaultValue?: string, options?: DialogOptions) => Promise<string | null>;
|
|
@@ -10,6 +10,8 @@ export type ComboboxOption = {
|
|
|
10
10
|
*/
|
|
11
11
|
descriptionVisual?: () => JSX.Element;
|
|
12
12
|
icon?: string;
|
|
13
|
+
/** Names what kind of result this is, at the end of the row. */
|
|
14
|
+
badge?: string;
|
|
13
15
|
/** Shown but cannot be picked, such as someone who is already on the list; say why in `description`. */
|
|
14
16
|
disabled?: boolean;
|
|
15
17
|
};
|
|
@@ -54,28 +54,10 @@ export type DateRangePickerProps = DatePickerBaseProps<DateRangeValue> & {
|
|
|
54
54
|
};
|
|
55
55
|
/** `below` is a line under the trigger that the panel must not cover, such as a typed field's status line. */
|
|
56
56
|
export declare const placeDatePopover: (trigger: HTMLElement, popover: HTMLElement, wide: boolean, below?: HTMLElement) => void;
|
|
57
|
+
type DatePickerPanelProps = Parameters<typeof import("./date-picker-panel")["DatePickerPanel"]>[0];
|
|
58
|
+
export declare const preloadDatePickerPanel: () => Promise<unknown>;
|
|
57
59
|
/** One month of days. Exported for composite pickers in this package (the period picker shows two side by side). */
|
|
58
|
-
export declare function DatePickerPanel(props:
|
|
59
|
-
visibleMonth: () => Date;
|
|
60
|
-
setVisibleMonth: (date: Date) => void;
|
|
61
|
-
selected?: () => string | null | undefined;
|
|
62
|
-
range?: () => DateRangeValue;
|
|
63
|
-
focusDate?: () => string | null | undefined;
|
|
64
|
-
onSelect: (date: string) => void;
|
|
65
|
-
onDayPreview?: (date: string | null) => void;
|
|
66
|
-
dateConfig?: DateContext;
|
|
67
|
-
/** Earliest and latest selectable day as date keys. */
|
|
68
|
-
min?: string;
|
|
69
|
-
max?: string;
|
|
70
|
-
/** Which month steps this panel offers; a second month beside it offers the other one. */
|
|
71
|
-
nav?: "both" | "previous" | "next";
|
|
72
|
-
/** Leaves the days of neighbouring months empty (`visibility: hidden`), so two months side by side never show a day twice. */
|
|
73
|
-
hideOutside?: boolean;
|
|
74
|
-
/** Whether a day is already on screen, also in a neighbouring panel; arrow keys then move there without paging. */
|
|
75
|
-
isShown?: (date: Date) => boolean;
|
|
76
|
-
/** Where keyboard navigation looks for the day to focus; the panel itself by default. */
|
|
77
|
-
focusRoot?: () => HTMLElement | undefined;
|
|
78
|
-
}): JSX.Element;
|
|
60
|
+
export declare function DatePickerPanel(props: DatePickerPanelProps): JSX.Element;
|
|
79
61
|
export declare function DatePicker(props: DatePickerProps): JSX.Element;
|
|
80
62
|
export declare function DateTimePicker(props: DateTimePickerProps): JSX.Element;
|
|
81
63
|
export declare function DateRangePicker(props: DateRangePickerProps): JSX.Element;
|
|
@@ -21,6 +21,8 @@ FieldSuggestionProps<string> & {
|
|
|
21
21
|
multiline?: boolean;
|
|
22
22
|
monospace?: boolean;
|
|
23
23
|
password?: boolean;
|
|
24
|
+
/** The eye's fixed name in a `password` field, such as "Show key"; `aria-pressed` tells whether the value shows. */
|
|
25
|
+
revealLabel?: string;
|
|
24
26
|
markdown?: boolean;
|
|
25
27
|
onSubmit?: () => void;
|
|
26
28
|
onKeyDown?: JSX.EventHandlerUnion<HTMLInputElement | HTMLTextAreaElement, KeyboardEvent>;
|
|
@@ -40,8 +40,9 @@ export declare const fitChoicePills: (available: number, widths: readonly number
|
|
|
40
40
|
visible: number;
|
|
41
41
|
rowWidth: number;
|
|
42
42
|
};
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
/** `O` lets a control keep its own option fields, such as a Combobox badge, through loading. */
|
|
44
|
+
export declare function createChoiceLoader<T extends string, O extends ChoiceOption<T> = ChoiceOption<T>>(loader: () => ((query: string, signal: AbortSignal) => Promise<readonly O[]>) | undefined, debounceMs: () => number): {
|
|
45
|
+
options: () => readonly O[];
|
|
45
46
|
loading: () => boolean;
|
|
46
47
|
error: () => string | undefined;
|
|
47
48
|
load: (query: string, immediate?: boolean) => void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type DateContext } from "@k2b/stdlib";
|
|
2
|
+
import { type JSX } from "solid-js";
|
|
3
|
+
import { type DateRangeValue } from "./date-picker";
|
|
4
|
+
/**
|
|
5
|
+
* One month of days, with the year and month views. It loads when a date field first shows in the browser, so a page
|
|
6
|
+
* that renders a date field carries only the field up front (the packed consumer budget); the period picker and the
|
|
7
|
+
* phone sheet use it too.
|
|
8
|
+
*/
|
|
9
|
+
export declare function DatePickerPanel(props: {
|
|
10
|
+
visibleMonth: () => Date;
|
|
11
|
+
setVisibleMonth: (date: Date) => void;
|
|
12
|
+
selected?: () => string | null | undefined;
|
|
13
|
+
range?: () => DateRangeValue;
|
|
14
|
+
focusDate?: () => string | null | undefined;
|
|
15
|
+
onSelect: (date: string) => void;
|
|
16
|
+
onDayPreview?: (date: string | null) => void;
|
|
17
|
+
dateConfig?: DateContext;
|
|
18
|
+
/** Earliest and latest selectable day as date keys. */
|
|
19
|
+
min?: string;
|
|
20
|
+
max?: string;
|
|
21
|
+
/** Which month steps this panel offers; a second month beside it offers the other one. */
|
|
22
|
+
nav?: "both" | "previous" | "next";
|
|
23
|
+
/** Leaves the days of neighbouring months empty (`visibility: hidden`), so two months side by side never show a day twice. */
|
|
24
|
+
hideOutside?: boolean;
|
|
25
|
+
/** Whether a day is already on screen, also in a neighbouring panel; arrow keys then move there without paging. */
|
|
26
|
+
isShown?: (date: Date) => boolean;
|
|
27
|
+
/** Where keyboard navigation looks for the day to focus; the panel itself by default. */
|
|
28
|
+
focusRoot?: () => HTMLElement | undefined;
|
|
29
|
+
}): JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { JSX } from "solid-js";
|
|
2
|
+
import type { DialogCall } from "../feedback/dialog-call";
|
|
2
3
|
/**
|
|
3
4
|
* The phone calendar of a typed date field as a bottom sheet. Date pickers load this module only when the sheet opens:
|
|
4
|
-
* the sheet reaches `PanelDialog`, whose prompts render date pickers, so a static import would be a cycle.
|
|
5
|
+
* the sheet reaches `PanelDialog`, whose prompts render date pickers, so a static import would be a cycle. `open` comes
|
|
6
|
+
* `call` is read with `readDialogCall()` before the load, so the sheet keeps the palette, page and opener of the tap.
|
|
5
7
|
*/
|
|
6
|
-
export declare const openDateSheet: <T>(options: {
|
|
8
|
+
export declare const openDateSheet: <T>(call: DialogCall, options: {
|
|
7
9
|
title: JSX.Element;
|
|
8
10
|
subtitle: string;
|
|
9
11
|
ariaLabel?: string;
|
|
@@ -15,7 +15,10 @@ export type SuggestionGroupProps = {
|
|
|
15
15
|
title?: JSX.Element;
|
|
16
16
|
/** Who proposes the values; fields without their own `source` use it. */
|
|
17
17
|
source?: string;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Called once with every open, certain suggestion of an enabled, valid field. Apply them as one form change. The
|
|
20
|
+
* group offers Accept all from two fields on; a single field has only its own Accept.
|
|
21
|
+
*/
|
|
19
22
|
onAcceptAll: (ids: string[]) => void;
|
|
20
23
|
/** Shown while a field's suggestion failed. */
|
|
21
24
|
onRetryAll?: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { img } from "@k2b/stdlib/browser";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare const inputMessages: import("@k2b/stdlib").Catalog<{
|
|
2
2
|
decreaseValue: string;
|
|
3
3
|
increaseValue: string;
|
|
4
|
-
hidePassword: string;
|
|
5
4
|
showPassword: string;
|
|
6
5
|
useColor: string;
|
|
7
6
|
useTransparent: string;
|
|
@@ -14,6 +13,10 @@ declare const inputMessages: import("@k2b/stdlib").Catalog<{
|
|
|
14
13
|
}) => string;
|
|
15
14
|
timeLetters: string;
|
|
16
15
|
notATime: string;
|
|
16
|
+
notANumber: ({ example }: {
|
|
17
|
+
example: string;
|
|
18
|
+
}) => string;
|
|
19
|
+
noNegativeNumbers: string;
|
|
17
20
|
timeRequired: string;
|
|
18
21
|
earliestTime: ({ time }: {
|
|
19
22
|
time: string;
|
|
@@ -36,6 +36,10 @@ export type AppWorkspaceHeadProps = {
|
|
|
36
36
|
href?: string;
|
|
37
37
|
onClick?: (event: MouseEvent) => void;
|
|
38
38
|
popup?: "menu" | "dialog";
|
|
39
|
+
/** With `popup`: whether its menu or dialog is open now, for `aria-expanded`. Defaults to closed. */
|
|
40
|
+
expanded?: boolean;
|
|
41
|
+
/** Unavailable right now; a link variant stays in place and announces it with `aria-disabled`. */
|
|
42
|
+
disabled?: boolean;
|
|
39
43
|
};
|
|
40
44
|
};
|
|
41
45
|
export type AppWorkspaceProps = {
|
|
@@ -84,8 +88,12 @@ export type AppWorkspaceContentProps = {
|
|
|
84
88
|
export type AppWorkspaceMainProps = {
|
|
85
89
|
children: JSX.Element;
|
|
86
90
|
class?: string;
|
|
87
|
-
/**
|
|
88
|
-
|
|
91
|
+
/**
|
|
92
|
+
* `"content"` centers the children as one reading column with the shared page width on large screens.
|
|
93
|
+
* `"reading"` is a column of running text such as a note (K6, K11): no head and no status row above it, the text
|
|
94
|
+
* gets the whole height at a 720 px measure, centered; views and actions float in a `FloatingPill`.
|
|
95
|
+
*/
|
|
96
|
+
width?: "full" | "content" | "reading";
|
|
89
97
|
/**
|
|
90
98
|
* The width in px or a workspace width share that Main keeps beside the sidebar and an open Detail,
|
|
91
99
|
* from 48rem (768 px); at least the default 320. A Detail that does not fit
|
|
@@ -26,5 +26,10 @@ export type AppWorkspaceSidebarItemStatusProps = {
|
|
|
26
26
|
count: number;
|
|
27
27
|
label: string;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Something here needs the person, such as failed work or missing access: a warning dot, never a number. The text is
|
|
31
|
+
* the phrase a screen reader hears, for example "needs attention".
|
|
32
|
+
*/
|
|
33
|
+
attention?: string;
|
|
29
34
|
};
|
|
30
35
|
export declare const AppWorkspaceSidebarItemStatus: (props: AppWorkspaceSidebarItemStatusProps) => JSX.Element;
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { type JSX } from "solid-js";
|
|
2
2
|
export type BreadcrumbItem = {
|
|
3
3
|
label: string;
|
|
4
|
+
/** A link to this level, for a path in a page head. Without it the level calls `onSelect`. */
|
|
5
|
+
href?: string;
|
|
4
6
|
};
|
|
5
7
|
export type BreadcrumbsProps = {
|
|
6
|
-
/** The path from the top: every item but the last
|
|
8
|
+
/** The path from the top: every item but the last leads to its level, the last is the current place. */
|
|
7
9
|
items: readonly BreadcrumbItem[];
|
|
8
10
|
/** Names the path for assistive technology, for example "Path". */
|
|
9
11
|
label: string;
|
|
10
|
-
/** Called with the index of the
|
|
11
|
-
onSelect
|
|
12
|
+
/** Called with the index of the level that was activated; never for the current place. */
|
|
13
|
+
onSelect?: (index: number) => void;
|
|
12
14
|
disabled?: boolean;
|
|
13
15
|
class?: string;
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
|
-
* A path inside a dialog or panel: the levels above
|
|
17
|
-
*
|
|
18
|
+
* A path, in a page head (`AppWorkspace.Head` `views`) or inside a dialog or panel: the levels above in quiet text,
|
|
19
|
+
* the current level in strong text. It stays on one line and never scrolls (K15): when the path does not fit, the
|
|
20
|
+
* front levels give way first and wait behind "…", which opens them as a menu; the current level always stays and
|
|
21
|
+
* shortens with an ellipsis last. The fit runs from the server's script before hydration, so a page that never
|
|
22
|
+
* hydrates the path fits too.
|
|
18
23
|
*/
|
|
19
24
|
export declare function Breadcrumbs(props: BreadcrumbsProps): JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JSX } from "solid-js";
|
|
2
|
+
export type FloatingPillProps = {
|
|
3
|
+
/** Names the group for assistive technology, such as "Note views and actions". */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Views and actions, usually small `IconButton`s or a `SegmentedControl`; `FloatingPill.Separator` parts them. */
|
|
6
|
+
children: JSX.Element;
|
|
7
|
+
class?: string;
|
|
8
|
+
};
|
|
9
|
+
type FloatingPillComponent = ((props: FloatingPillProps) => JSX.Element) & {
|
|
10
|
+
Separator: () => JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The floating pill of a reading column (K6, K16): views and actions of a column that has neither head nor status
|
|
14
|
+
* row, such as a note. Place it as the first child of `AppWorkspace.Main width="reading"`. It stays at the column's
|
|
15
|
+
* top end while the text scrolls below it, and takes no room from the text. It is a `k2b-pill`, so its look, size,
|
|
16
|
+
* and round controls are the ones of every floating pill.
|
|
17
|
+
*/
|
|
18
|
+
declare const FloatingPill: FloatingPillComponent;
|
|
19
|
+
export { FloatingPill };
|
|
20
|
+
export default FloatingPill;
|