@k2b/ui 0.63.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/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/chat/ChatDecision.js +499 -463
- 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/index.js +2 -0
- 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/content/DataTable.js +326 -205
- 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/ProgressPath.js +30 -25
- package/dist/browser/content/ProgressPath.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/index.js +2 -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-core.js +68 -11
- 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/inputs/DatePicker.js +369 -716
- 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 +9 -4
- package/dist/browser/inputs/PeriodPicker.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/date-picker-panel.js +420 -0
- package/dist/browser/inputs/date-picker-panel.js.map +1 -0
- 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 +16 -8
- package/dist/browser/layout/AppWorkspace.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/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/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/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/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/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/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/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/chat/ChatDecision.js +256 -228
- 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/index.js +2 -0
- 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/content/DataTable.js +93 -50
- 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/ProgressPath.js +14 -8
- package/dist/ssr/content/ProgressPath.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/index.js +2 -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-core.js +68 -11
- 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/inputs/DatePicker.js +94 -263
- 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 +9 -4
- package/dist/ssr/inputs/PeriodPicker.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/date-picker-panel.js +233 -0
- package/dist/ssr/inputs/date-picker-panel.js.map +1 -0
- 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 +16 -8
- package/dist/ssr/layout/AppWorkspace.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/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/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/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/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/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/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/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/chat/ChatDecision.d.ts +28 -4
- package/dist/types/chat/ChatDecisionField.d.ts +45 -0
- package/dist/types/chat/index.d.ts +1 -0
- package/dist/types/chat/types.d.ts +9 -0
- package/dist/types/chat-decision-field.d.ts +5 -0
- package/dist/types/content/DataTable.d.ts +19 -0
- package/dist/types/content/FileName.d.ts +23 -0
- package/dist/types/content/ProgressPath.d.ts +12 -6
- package/dist/types/content/TaskRow.d.ts +33 -0
- package/dist/types/content/index.d.ts +2 -0
- package/dist/types/content/progress-path-messages.d.ts +8 -0
- package/dist/types/feedback/dialog-core.d.ts +5 -0
- package/dist/types/feedback/dialog-foot.d.ts +9 -0
- package/dist/types/inputs/DatePicker.d.ts +3 -21
- package/dist/types/inputs/TextInput.d.ts +2 -0
- package/dist/types/inputs/date-picker-panel.d.ts +29 -0
- 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/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/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/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/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/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/package.json +13 -2
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { className as _$className } from "solid-js/web";
|
|
3
|
+
import { effect as _$effect } from "solid-js/web";
|
|
4
|
+
import { getNextMarker as _$getNextMarker } from "solid-js/web";
|
|
5
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
6
|
+
import { getNextElement as _$getNextElement } from "solid-js/web";
|
|
7
|
+
import { insert as _$insert } from "solid-js/web";
|
|
8
|
+
import { use as _$use } from "solid-js/web";
|
|
9
|
+
import { memo as _$memo } from "solid-js/web";
|
|
10
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<span class=k2b-count-chip>`),
|
|
11
|
+
_tmpl$2 = /*#__PURE__*/_$template(`<span class=k2b-task-row__detail>`),
|
|
12
|
+
_tmpl$3 = /*#__PURE__*/_$template(`<span class=k2b-task-row__body><i aria-hidden=true></i><span class=k2b-task-row__copy><span class=k2b-task-row__line><!$><!/><span class=k2b-task-row__text></span></span><!$><!/></span><span class=k2b-task-row__action></span><!$><!/>`);
|
|
13
|
+
import { createSignal, Show } from "solid-js";
|
|
14
|
+
import { Dynamic, isServer } from "solid-js/web";
|
|
15
|
+
import { Tooltip } from "../feedback/Tooltip";
|
|
16
|
+
/**
|
|
17
|
+
* 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
|
|
18
|
+
* chip, one sentence and, at the end, the action word. The whole row is one link or button. What needs someone now
|
|
19
|
+
* and has a consequence is a notice cell instead (K10), not a task row.
|
|
20
|
+
* @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" />
|
|
21
|
+
*/
|
|
22
|
+
export function TaskRow(props) {
|
|
23
|
+
let row;
|
|
24
|
+
let body;
|
|
25
|
+
let sentence;
|
|
26
|
+
// The full sentence shows as a hint only while it is cut; it is measured when a pointer or the keyboard arrives.
|
|
27
|
+
const [cut, setCut] = createSignal(false);
|
|
28
|
+
const measure = () => setCut(Boolean(sentence && sentence.scrollWidth > sentence.clientWidth + 1));
|
|
29
|
+
const link = () => props.href !== undefined && !props.disabled;
|
|
30
|
+
const element = () => props.href !== undefined ? "a" : "button";
|
|
31
|
+
return _$createComponent(Dynamic, {
|
|
32
|
+
get component() {
|
|
33
|
+
return element();
|
|
34
|
+
},
|
|
35
|
+
ref: node => {
|
|
36
|
+
row = node;
|
|
37
|
+
},
|
|
38
|
+
get ["class"]() {
|
|
39
|
+
return _$memo(() => !!props.class)() ? `k2b-task-row ${props.class}` : "k2b-task-row";
|
|
40
|
+
},
|
|
41
|
+
get href() {
|
|
42
|
+
return _$memo(() => !!link())() ? props.href : undefined;
|
|
43
|
+
},
|
|
44
|
+
get type() {
|
|
45
|
+
return element() === "button" ? "button" : undefined;
|
|
46
|
+
},
|
|
47
|
+
get disabled() {
|
|
48
|
+
return _$memo(() => element() === "button")() ? props.disabled : undefined;
|
|
49
|
+
},
|
|
50
|
+
get role() {
|
|
51
|
+
return props.disabled && element() === "a" ? "link" : undefined;
|
|
52
|
+
},
|
|
53
|
+
get ["aria-disabled"]() {
|
|
54
|
+
return props.disabled && element() === "a" ? "true" : undefined;
|
|
55
|
+
},
|
|
56
|
+
get ["aria-label"]() {
|
|
57
|
+
return props.label;
|
|
58
|
+
},
|
|
59
|
+
get ["data-detail"]() {
|
|
60
|
+
return props.detail !== undefined ? "" : undefined;
|
|
61
|
+
},
|
|
62
|
+
get title() {
|
|
63
|
+
return isServer ? props.text : undefined;
|
|
64
|
+
},
|
|
65
|
+
onClick: event => {
|
|
66
|
+
if (props.disabled) {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
props.onClick?.(event);
|
|
71
|
+
},
|
|
72
|
+
"on:pointerenter": measure,
|
|
73
|
+
"on:focusin": measure,
|
|
74
|
+
get children() {
|
|
75
|
+
var _el$ = _$getNextElement(_tmpl$3),
|
|
76
|
+
_el$2 = _el$.firstChild,
|
|
77
|
+
_el$3 = _el$2.nextSibling,
|
|
78
|
+
_el$4 = _el$3.firstChild,
|
|
79
|
+
_el$7 = _el$4.firstChild,
|
|
80
|
+
[_el$8, _co$] = _$getNextMarker(_el$7.nextSibling),
|
|
81
|
+
_el$6 = _el$8.nextSibling,
|
|
82
|
+
_el$0 = _el$4.nextSibling,
|
|
83
|
+
[_el$1, _co$2] = _$getNextMarker(_el$0.nextSibling),
|
|
84
|
+
_el$10 = _el$3.nextSibling,
|
|
85
|
+
_el$11 = _el$10.nextSibling,
|
|
86
|
+
[_el$12, _co$3] = _$getNextMarker(_el$11.nextSibling);
|
|
87
|
+
var _ref$ = body;
|
|
88
|
+
typeof _ref$ === "function" ? _$use(_ref$, _el$) : body = _el$;
|
|
89
|
+
_$insert(_el$4, _$createComponent(Show, {
|
|
90
|
+
get when() {
|
|
91
|
+
return props.count;
|
|
92
|
+
},
|
|
93
|
+
get children() {
|
|
94
|
+
var _el$5 = _$getNextElement(_tmpl$);
|
|
95
|
+
_$insert(_el$5, () => props.count);
|
|
96
|
+
return _el$5;
|
|
97
|
+
}
|
|
98
|
+
}), _el$8, _co$);
|
|
99
|
+
var _ref$2 = sentence;
|
|
100
|
+
typeof _ref$2 === "function" ? _$use(_ref$2, _el$6) : sentence = _el$6;
|
|
101
|
+
_$insert(_el$6, () => props.text);
|
|
102
|
+
_$insert(_el$3, _$createComponent(Show, {
|
|
103
|
+
get when() {
|
|
104
|
+
return props.detail !== undefined;
|
|
105
|
+
},
|
|
106
|
+
get children() {
|
|
107
|
+
var _el$9 = _$getNextElement(_tmpl$2);
|
|
108
|
+
_$insert(_el$9, () => props.detail);
|
|
109
|
+
return _el$9;
|
|
110
|
+
}
|
|
111
|
+
}), _el$1, _co$2);
|
|
112
|
+
_$insert(_el$10, () => props.action);
|
|
113
|
+
_$insert(_el$, _$createComponent(Tooltip, {
|
|
114
|
+
get content() {
|
|
115
|
+
return props.text;
|
|
116
|
+
},
|
|
117
|
+
target: () => body,
|
|
118
|
+
focusTarget: () => row,
|
|
119
|
+
get disabled() {
|
|
120
|
+
return !cut();
|
|
121
|
+
}
|
|
122
|
+
}), _el$12, _co$3);
|
|
123
|
+
_$effect(() => _$className(_el$2, `${props.icon} k2b-task-row__icon`));
|
|
124
|
+
return _el$;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
export default TaskRow;
|
|
129
|
+
//# sourceMappingURL=TaskRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/TaskRow.tsx"],"sourcesContent":["import { createSignal, type JSX, Show } from \"solid-js\";\nimport { Dynamic, isServer } from \"solid-js/web\";\nimport { Tooltip } from \"../feedback/Tooltip\";\n\nexport type TaskRowProps = {\n /** Tabler icon class for the kind of task, such as `ti ti-package-export`. Decorative: the sentence names the task. */\n icon: string;\n /** How many things the task covers, as a chip before the sentence. Zero shows no chip; the sentence says it in words. */\n count?: number;\n /** The task in one sentence, such as \"3 unsold items are ready for pickup\". One line; a longer one ends in an ellipsis. */\n text: string;\n /** A quiet second line, such as the date the task is due. The row is then 52 px instead of 40 px. */\n detail?: JSX.Element;\n /** The action word at the end, such as \"Prepare handover\". It is never cut; the sentence gives way first. */\n action: string;\n /** Where the row leads. The row is then a link. */\n href?: string;\n /** What the row does when there is no `href`. The row is then a button. */\n onClick?: (event: MouseEvent) => void;\n /** The task cannot be started now. The row stays in place, reads as unavailable and does nothing. */\n disabled?: boolean;\n /**\n * The accessible name, when the visible text alone does not say what happens. Defaults to the row's text. Start it\n * with the visible sentence and action word, so people who speak a visible word can still reach the row.\n */\n label?: string;\n class?: string;\n};\n\n/**\n * 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\n * chip, one sentence and, at the end, the action word. The whole row is one link or button. What needs someone now\n * and has a consequence is a notice cell instead (K10), not a task row.\n * @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\" />\n */\nexport function TaskRow(props: TaskRowProps): JSX.Element {\n let row: HTMLElement | undefined;\n let body: HTMLSpanElement | undefined;\n let sentence: HTMLSpanElement | undefined;\n // The full sentence shows as a hint only while it is cut; it is measured when a pointer or the keyboard arrives.\n const [cut, setCut] = createSignal(false);\n const measure = () => setCut(Boolean(sentence && sentence.scrollWidth > sentence.clientWidth + 1));\n const link = () => props.href !== undefined && !props.disabled;\n const element = () => (props.href !== undefined ? \"a\" : \"button\");\n\n return (\n <Dynamic\n component={element()}\n ref={(node: HTMLElement) => {\n row = node;\n }}\n class={props.class ? `k2b-task-row ${props.class}` : \"k2b-task-row\"}\n href={link() ? props.href : undefined}\n type={element() === \"button\" ? \"button\" : undefined}\n disabled={element() === \"button\" ? props.disabled : undefined}\n role={props.disabled && element() === \"a\" ? \"link\" : undefined}\n aria-disabled={props.disabled && element() === \"a\" ? \"true\" : undefined}\n aria-label={props.label}\n data-detail={props.detail !== undefined ? \"\" : undefined}\n // The no-JavaScript hint; once hydrated, the shared tooltip shows the sentence, and only while it is cut.\n title={isServer ? props.text : undefined}\n onClick={(event: MouseEvent) => {\n if (props.disabled) {\n event.preventDefault();\n return;\n }\n props.onClick?.(event);\n }}\n on:pointerenter={measure}\n on:focusin={measure}\n >\n <span ref={body} class=\"k2b-task-row__body\">\n <i class={`${props.icon} k2b-task-row__icon`} aria-hidden=\"true\" />\n <span class=\"k2b-task-row__copy\">\n <span class=\"k2b-task-row__line\">\n <Show when={props.count}>\n <span class=\"k2b-count-chip\">{props.count}</span>\n </Show>\n <span ref={sentence} class=\"k2b-task-row__text\">\n {props.text}\n </span>\n </span>\n <Show when={props.detail !== undefined}>\n <span class=\"k2b-task-row__detail\">{props.detail}</span>\n </Show>\n </span>\n <span class=\"k2b-task-row__action\">{props.action}</span>\n {/* Inside the row, so a container that divides its rows (`k2b-divided`) sees only rows. The row keeps the\n focus; the hint is hidden from its name, which already holds the sentence. */}\n <Tooltip content={props.text} target={() => body} focusTarget={() => row} disabled={!cut()} />\n </span>\n </Dynamic>\n );\n}\n\nexport default TaskRow;\n"],"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AA,OAAE,CAAC,GAAG,CAAC,CAAC;QAAA;MAAA;MAAA,kCAjBhF,GAAG,KAAK,CAAC,IAAI,qBAAqB;MAAA;IAAA;EAAA;AAqBpD;AAEA,eAAe,OAAO","ignoreList":[]}
|
|
@@ -18,6 +18,7 @@ export { DocCode, DocConceptGrid, DocInlineCode, DocLead, DocNote, DocPage, DocR
|
|
|
18
18
|
export { filterRows, sortRows } from "./data-table-columns";
|
|
19
19
|
export { FileBrowserPanel, openFileBrowser } from "./FileBrowser";
|
|
20
20
|
export { FileGrid } from "./FileGrid";
|
|
21
|
+
export { FileName, splitFileName } from "./FileName";
|
|
21
22
|
export { default as FileTree } from "./FileTree";
|
|
22
23
|
export { FileTypeIcon, fileKindLabel, fileTypeOf } from "./FileTypeIcon";
|
|
23
24
|
export { default as FileView } from "./FileView";
|
|
@@ -55,6 +56,7 @@ export { REFERENCE_CHIP_MAX_CHARACTERS, ReferenceChip, truncateMiddle } from "./
|
|
|
55
56
|
export { RunLog } from "./RunLog";
|
|
56
57
|
export { Steps } from "./Steps";
|
|
57
58
|
export { default as StructuredDataPreview, isStructuredDataValue } from "./StructuredDataPreview";
|
|
59
|
+
export { TaskRow } from "./TaskRow";
|
|
58
60
|
export { ThumbnailStrip } from "./ThumbnailStrip";
|
|
59
61
|
export { default as Timeline } from "./Timeline";
|
|
60
62
|
export { VideoPlayer } from "./VideoPlayer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["content/index.ts"],"sourcesContent":["export type { ChartDateFormat, ChartDatum, ChartDatumRole, ChartFormat, ChartNumberFormat } from \"../charts/core\";\nexport {\n type ActivityAction,\n type ActivityAvatar,\n ActivityCard,\n type ActivityCardProps,\n type ActivityDensity,\n type ActivityDialogInput,\n type ActivityEntry,\n type ActivityKind,\n ActivityList,\n type ActivityListProps,\n type ActivityRowProps,\n type ActivityTone,\n openActivityDialog,\n} from \"./ActivityList\";\nexport { BalanceSummary, type BalanceSummaryProps } from \"./BalanceSummary\";\nexport type {\n CalendarAttendee,\n CalendarCommand,\n CalendarController,\n CalendarCustomView,\n CalendarDayBadge,\n CalendarEvent,\n CalendarEventColor,\n CalendarEventLink,\n CalendarEventRenderContext,\n CalendarEventTimeChange,\n CalendarExternalDrag,\n CalendarLabels,\n CalendarProps,\n CalendarQuickCreateControls,\n CalendarRange,\n CalendarRecurrence,\n CalendarResource,\n CalendarSelectionControls,\n CalendarView,\n} from \"./Calendar\";\nexport { default as Calendar } from \"./Calendar\";\n\nexport type { ChartKind, ChartKindProps, ChartLabels, ChartProps, ChartRenderOptions } from \"./Chart\";\nexport { default as Chart } from \"./Chart\";\nexport type { ChartExplorerColumn, ChartExplorerProps, ChartFrameRequest, ChartLegendEntry } from \"./ChartExplorer\";\nexport { ChartExplorer } from \"./ChartExplorer\";\nexport type { ChartExplorerControlsProps } from \"./ChartExplorerControls\";\nexport { ChartExplorerControls } from \"./ChartExplorerControls\";\nexport { ChartFilterControls, type ChartFilterControlsProps } from \"./ChartFilterControls\";\nexport { ChartSnapshotView } from \"./ChartSnapshotView\";\nexport type { CodeDisplayLanguage, CodeDisplayProps } from \"./CodeDisplay\";\nexport { default as CodeDisplay } from \"./CodeDisplay\";\nexport { type ChartCursor, createChartCursor } from \"./chart-cursor\";\nexport type {\n ChartExplorerCharts,\n ChartExplorerController,\n ChartExplorerData,\n ChartExplorerOptions,\n ChartExplorerRequest,\n ChartExplorerRow,\n ChartExplorerSnapshot,\n} from \"./chart-explorer\";\nexport { createChartExplorer } from \"./chart-explorer\";\nexport type { ChartDatumRef, ChartSelection, ChartTooltip, ChartTooltipFormatter } from \"./chart-inspection-core\";\nexport type { ChartSnapshot } from \"./chart-snapshot\";\nexport { prepareChartSnapshot } from \"./chart-snapshot\";\nexport type {\n StateTimelineChartOptions,\n StateTimelineDomain,\n StateTimelineInterval,\n StateTimelineRow,\n StateTimelineState,\n} from \"./chart-state-timeline\";\nexport type { ChartTimeAxis } from \"./chart-time-axis\";\nexport { highlightSql } from \"./code-highlight\";\nexport { type CollectionSelection, createCollectionSelection, type SelectionModifiers } from \"./collection-selection\";\nexport type {\n DataTableColumn,\n DataTableControlsProps,\n DataTableFooter,\n DataTableHeaderProps,\n DataTablePanelFooterProps,\n DataTablePanelProps,\n DataTableProps,\n DataTableRenderCell,\n DataTableRenderHeader,\n DataTableSort,\n} from \"./DataTable\";\nexport { default as DataTable } from \"./DataTable\";\nexport type { DataTableToolsProps, DataTableView, DataTableViewOptions } from \"./DataTableTools\";\nexport { createDataTableView, DataTableTools } from \"./DataTableTools\";\nexport type { DocCodeHighlighter, DocCodeProps, DocConcept, DocNoteVariant, DocRow } from \"./Docs\";\nexport { DocCode, DocConceptGrid, DocInlineCode, DocLead, DocNote, DocPage, DocRows, DocSection } from \"./Docs\";\nexport type {\n DataTableColumnType,\n DataTableNumberFormat,\n DataTableStatusState,\n DataTableTypedColumn,\n} from \"./data-table-columns\";\nexport { filterRows, sortRows } from \"./data-table-columns\";\nexport { FileBrowserPanel, type FileBrowserPanelProps, type FileSource, openFileBrowser } from \"./FileBrowser\";\nexport { FileGrid, type FileGridGroup, type FileGridOpenProps, type FileGridProps, type FileGridSelectableProps } from \"./FileGrid\";\nexport { default as FileTree, type FileTreeActions, type FileTreeEntry, type FileTreeProps } from \"./FileTree\";\nexport { type FileType, FileTypeIcon, type FileTypeIconProps, fileKindLabel, fileTypeOf } from \"./FileTypeIcon\";\nexport {\n default as FileView,\n type FileViewContent,\n type FileViewProps,\n type FileViewRenderer,\n type FileViewRendererProps,\n} from \"./FileView\";\nexport { FlowAmount, type FlowAmountDirection, type FlowAmountProps, flowDirection } from \"./FlowAmount\";\n// Choosing a renderer or labelling a size needs no renderer: these come from their own small module, so an app that only\n// asks which kind a file is, or how large, never loads FileView and its PDF, video and code dependencies.\nexport {\n canPreviewFile,\n type FileViewFile,\n type FileViewPreviewKind,\n formatFileViewSize,\n getFileViewPreviewKind,\n} from \"./file-view-preview\";\nexport type { KbdProps } from \"./Kbd\";\nexport { Kbd } from \"./Kbd\";\nexport type { LabelChipProps } from \"./LabelChip\";\nexport { LabelChip } from \"./LabelChip\";\nexport type { LightboxAction, LightboxItem, LightboxProps } from \"./Lightbox\";\nexport { default as Lightbox } from \"./Lightbox\";\nexport type { LoadMoreProps } from \"./LoadMore\";\nexport { LoadMore } from \"./LoadMore\";\nexport type { LogTableEntry } from \"./LogEntriesTable\";\nexport { default as LogEntriesTable } from \"./LogEntriesTable\";\nexport { MapAttribution } from \"./MapAttribution\";\nexport {\n MapDialog,\n type MapDialogFact,\n type MapDialogMapView,\n type MapDialogMenuItem,\n type MapDialogProps,\n type MapPlace,\n type MapPlaceLink,\n type MapPlaceSource,\n} from \"./MapDialog\";\nexport { MAP_DIALOG_PARAM, MapTile, type MapTileProps, mapDialogOptions } from \"./MapTile\";\nexport { MapView } from \"./MapView\";\nexport { MapViewFrame } from \"./MapViewFrame\";\nexport { default as MarkdownView, type MarkdownRenderOptions, type MarkdownViewProps, renderSafeMarkdown } from \"./MarkdownView\";\nexport { type MatchRange, MatchText, type MatchTextProps, matchParts } from \"./MatchText\";\nexport { MessageQuote } from \"./MessageQuote\";\nexport type {\n MessageEventGroupProps,\n MessageEventRowProps,\n MessageGroupEntry,\n MessageRowAction,\n MessageRowAttachment,\n MessageRowAuthor,\n MessageRowFile,\n MessageRowMedia,\n MessageRowOrigin,\n MessageRowProgress,\n MessageRowProps,\n MessageRowQuote,\n MessageRowReaction,\n MessageRowStatus,\n MessageRowThread,\n MessageSystemRowProps,\n} from \"./MessageRow\";\nexport { MessageEventGroup, MessageEventRow, MessageRow, MessageSystemRow, startsMessageGroup } from \"./MessageRow\";\nexport { type GeoNavigationPlatform, geoNavigationHref, geoNavigationPlatform } from \"./map-navigation\";\nexport { type MapPaletteColors, type MapTheme, mapPalette } from \"./map-palette\";\nexport { type MapStyleOptions, mapAttribution, mapStyle } from \"./map-style\";\nexport { MAP_SNAPSHOT_MAX_PIXELS, MapSnapshotError, type MapSnapshotErrorCode } from \"./map-view-snapshot\";\nexport type {\n MapViewArea,\n MapViewFit,\n MapViewFrameProps,\n MapViewHandle,\n MapViewLine,\n MapViewLineTone,\n MapViewMarker,\n MapViewOwnLocation,\n MapViewPoint,\n MapViewProps,\n MapViewSnapshot,\n MapViewSnapshotOptions,\n MapViewStyle,\n MapViewStyleSource,\n MapViewTone,\n} from \"./map-view-types\";\nexport {\n MARKDOWN_CALLOUT_CLASSES,\n MARKDOWN_CALLOUT_ICON_ATTRIBUTES,\n type MarkdownInfoBlock,\n type MarkdownInfoBlockRenderInput,\n type MarkdownInfoBlockType,\n markdownInfoBlocks,\n renderMarkdownInfoBlock,\n scanMarkdownInfoBlock,\n} from \"./markdown-info-blocks\";\nexport {\n type MarkdownLinkInput,\n type MarkdownReference,\n type MarkdownReferenceKind,\n type MarkdownReferenceType,\n markdownLinkReference,\n markdownReferenceIcon,\n markdownReferenceType,\n markdownReferenceTypeLabel,\n markStandaloneLinks,\n renderMarkdownLink,\n} from \"./markdown-links\";\nexport { Pagination, type PaginationProps } from \"./Pagination\";\nexport { PdfThumbnails, type PdfThumbnailsProps } from \"./PdfThumbnails\";\nexport type { PdfViewerProps, PdfViewerRequest } from \"./PdfViewer\";\nexport { default as PdfViewer } from \"./PdfViewer\";\nexport { ProgressPath, type ProgressPathProps, type ProgressPathStep } from \"./ProgressPath\";\nexport type { RangeOption, RangePickerProps } from \"./RangePicker\";\nexport { default as RangePicker } from \"./RangePicker\";\nexport { ReactionBar, type ReactionBarItem, type ReactionBarProps } from \"./ReactionBar\";\nexport type {\n ReferenceChipObjectProps,\n ReferenceChipPersonProps,\n ReferenceChipProps,\n ReferenceChipTimeProps,\n} from \"./ReferenceChip\";\nexport { REFERENCE_CHIP_MAX_CHARACTERS, ReferenceChip, truncateMiddle } from \"./ReferenceChip\";\nexport {\n type RunEntry,\n type RunLevel,\n RunLog,\n type RunLogAction,\n type RunLogEntry,\n type RunLogProps,\n type RunLogState,\n type RunStepEntry,\n} from \"./RunLog\";\nexport type { StepsProps } from \"./Steps\";\nexport { Steps } from \"./Steps\";\nexport type { StructuredDataPreviewMode, StructuredDataPreviewProps, StructuredDataValue } from \"./StructuredDataPreview\";\nexport { default as StructuredDataPreview, isStructuredDataValue } from \"./StructuredDataPreview\";\nexport { ThumbnailStrip, type ThumbnailStripItem, type ThumbnailStripProps } from \"./ThumbnailStrip\";\nexport type { TimelineColor, TimelineController, TimelineItem, TimelineProps } from \"./Timeline\";\nexport { default as Timeline } from \"./Timeline\";\nexport { VideoPlayer, type VideoPlayerProps } from \"./VideoPlayer\";\nexport type { VirtualFeedController, VirtualFeedProps, VirtualFeedScrollOptions } from \"./VirtualFeed\";\nexport { VirtualFeed } from \"./VirtualFeed\";\nexport type { ZoomPanAction, ZoomPanFullscreen, ZoomPanViewportProps } from \"./ZoomPanViewport\";\nexport { ZoomPanViewport } from \"./ZoomPanViewport\";\n"],"mappings":"AACA,SAGE,YAAY,EAMZ,YAAY,EAIZ,kBAAkB,QACb,gBAAgB;AACvB,SAAS,cAAc,QAAkC,kBAAkB;AAsB3E,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAGhD,SAAS,OAAO,IAAI,KAAK,QAAQ,SAAS;AAE1C,SAAS,aAAa,QAAQ,iBAAiB;AAE/C,SAAS,qBAAqB,QAAQ,yBAAyB;AAC/D,SAAS,mBAAmB,QAAuC,uBAAuB;AAC1F,SAAS,iBAAiB,QAAQ,qBAAqB;AAEvD,SAAS,OAAO,IAAI,WAAW,QAAQ,eAAe;AACtD,SAA2B,iBAAiB,QAAQ,gBAAgB;AAUpE,SAAS,mBAAmB,QAAQ,kBAAkB;AAGtD,SAAS,oBAAoB,QAAQ,kBAAkB;AASvD,SAAS,YAAY,QAAQ,kBAAkB;AAC/C,SAAmC,yBAAyB,QAAiC,wBAAwB;AAarH,SAAS,OAAO,IAAI,SAAS,QAAQ,aAAa;AAElD,SAAS,mBAAmB,EAAE,cAAc,QAAQ,kBAAkB;AAEtE,SAAS,OAAO,EAAE,cAAc,EAAE,aA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AuB,EAAE,gBAAgB,QAAmC,qBAAqB;AAkB1G,SACE,wBAAwB,EACxB,gCAAgC,EAIhC,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,QAChB,wBAAwB;AAC/B,SAKE,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,QACb,kBAAkB;AACzB,SAAS,UAAU,QAA8B,cAAc;AAC/D,SAAS,aAAa,QAAiC,iBAAiB;AAExE,SAAS,OAAO,IAAI,SAAS,QAAQ,aAAa;AAClD,SAAS,YAAY,QAAuD,gBAAgB;AAE5F,SAAS,OAAO,IAAI,WAAW,QAAQ,eAAe;AACtD,SAAS,WAAW,QAAqD,eAAe;AAOxF,SAAS,6BAA6B,EAAE,aAAa,EAAE,cAAc,QAAQ,iBAAiB;AAC9F,SAGE,MAAM,QAMD,UAAU;AAEjB,SAAS,KAAK,QAAQ,SAAS;AAE/B,SAAS,OAAO,IAAI,qBAAqB,EAAE,qBAAqB,QAAQ,yBAAyB;AACjG,SAAS,cAAc,QAA2D,kBAAkB;AAEpG,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAChD,SAAS,WAAW,QAA+B,eAAe;AAElE,SAAS,WAAW,QAAQ,eAAe;AAE3C,SAAS,eAAe,QAAQ,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["content/index.ts"],"sourcesContent":["export type { ChartDateFormat, ChartDatum, ChartDatumRole, ChartFormat, ChartNumberFormat } from \"../charts/core\";\nexport {\n type ActivityAction,\n type ActivityAvatar,\n ActivityCard,\n type ActivityCardProps,\n type ActivityDensity,\n type ActivityDialogInput,\n type ActivityEntry,\n type ActivityKind,\n ActivityList,\n type ActivityListProps,\n type ActivityRowProps,\n type ActivityTone,\n openActivityDialog,\n} from \"./ActivityList\";\nexport { BalanceSummary, type BalanceSummaryProps } from \"./BalanceSummary\";\nexport type {\n CalendarAttendee,\n CalendarCommand,\n CalendarController,\n CalendarCustomView,\n CalendarDayBadge,\n CalendarEvent,\n CalendarEventColor,\n CalendarEventLink,\n CalendarEventRenderContext,\n CalendarEventTimeChange,\n CalendarExternalDrag,\n CalendarLabels,\n CalendarProps,\n CalendarQuickCreateControls,\n CalendarRange,\n CalendarRecurrence,\n CalendarResource,\n CalendarSelectionControls,\n CalendarView,\n} from \"./Calendar\";\nexport { default as Calendar } from \"./Calendar\";\n\nexport type { ChartKind, ChartKindProps, ChartLabels, ChartProps, ChartRenderOptions } from \"./Chart\";\nexport { default as Chart } from \"./Chart\";\nexport type { ChartExplorerColumn, ChartExplorerProps, ChartFrameRequest, ChartLegendEntry } from \"./ChartExplorer\";\nexport { ChartExplorer } from \"./ChartExplorer\";\nexport type { ChartExplorerControlsProps } from \"./ChartExplorerControls\";\nexport { ChartExplorerControls } from \"./ChartExplorerControls\";\nexport { ChartFilterControls, type ChartFilterControlsProps } from \"./ChartFilterControls\";\nexport { ChartSnapshotView } from \"./ChartSnapshotView\";\nexport type { CodeDisplayLanguage, CodeDisplayProps } from \"./CodeDisplay\";\nexport { default as CodeDisplay } from \"./CodeDisplay\";\nexport { type ChartCursor, createChartCursor } from \"./chart-cursor\";\nexport type {\n ChartExplorerCharts,\n ChartExplorerController,\n ChartExplorerData,\n ChartExplorerOptions,\n ChartExplorerRequest,\n ChartExplorerRow,\n ChartExplorerSnapshot,\n} from \"./chart-explorer\";\nexport { createChartExplorer } from \"./chart-explorer\";\nexport type { ChartDatumRef, ChartSelection, ChartTooltip, ChartTooltipFormatter } from \"./chart-inspection-core\";\nexport type { ChartSnapshot } from \"./chart-snapshot\";\nexport { prepareChartSnapshot } from \"./chart-snapshot\";\nexport type {\n StateTimelineChartOptions,\n StateTimelineDomain,\n StateTimelineInterval,\n StateTimelineRow,\n StateTimelineState,\n} from \"./chart-state-timeline\";\nexport type { ChartTimeAxis } from \"./chart-time-axis\";\nexport { highlightSql } from \"./code-highlight\";\nexport { type CollectionSelection, createCollectionSelection, type SelectionModifiers } from \"./collection-selection\";\nexport type {\n DataTableColumn,\n DataTableControlsProps,\n DataTableFooter,\n DataTableHeaderProps,\n DataTablePanelFooterProps,\n DataTablePanelProps,\n DataTableProps,\n DataTableRenderCell,\n DataTableRenderHeader,\n DataTableSort,\n} from \"./DataTable\";\nexport { default as DataTable } from \"./DataTable\";\nexport type { DataTableToolsProps, DataTableView, DataTableViewOptions } from \"./DataTableTools\";\nexport { createDataTableView, DataTableTools } from \"./DataTableTools\";\nexport type { DocCodeHighlighter, DocCodeProps, DocConcept, DocNoteVariant, DocRow } from \"./Docs\";\nexport { DocCode, DocConceptGrid, DocInlineCode, DocLead, DocNote, DocPage, DocRows, DocSection } from \"./Docs\";\nexport type {\n DataTableColumnType,\n DataTableNumberFormat,\n DataTableStatusState,\n DataTableTypedColumn,\n} from \"./data-table-columns\";\nexport { filterRows, sortRows } from \"./data-table-columns\";\nexport { FileBrowserPanel, type FileBrowserPanelProps, type FileSource, openFileBrowser } from \"./FileBrowser\";\nexport { FileGrid, type FileGridGroup, type FileGridOpenProps, type FileGridProps, type FileGridSelectableProps } from \"./FileGrid\";\nexport { FileName, type FileNameProps, splitFileName } from \"./FileName\";\nexport { default as FileTree, type FileTreeActions, type FileTreeEntry, type FileTreeProps } from \"./FileTree\";\nexport { type FileType, FileTypeIcon, type FileTypeIconProps, fileKindLabel, fileTypeOf } from \"./FileTypeIcon\";\nexport {\n default as FileView,\n type FileViewContent,\n type FileViewProps,\n type FileViewRenderer,\n type FileViewRendererProps,\n} from \"./FileView\";\nexport { FlowAmount, type FlowAmountDirection, type FlowAmountProps, flowDirection } from \"./FlowAmount\";\n// Choosing a renderer or labelling a size needs no renderer: these come from their own small module, so an app that only\n// asks which kind a file is, or how large, never loads FileView and its PDF, video and code dependencies.\nexport {\n canPreviewFile,\n type FileViewFile,\n type FileViewPreviewKind,\n formatFileViewSize,\n getFileViewPreviewKind,\n} from \"./file-view-preview\";\nexport type { KbdProps } from \"./Kbd\";\nexport { Kbd } from \"./Kbd\";\nexport type { LabelChipProps } from \"./LabelChip\";\nexport { LabelChip } from \"./LabelChip\";\nexport type { LightboxAction, LightboxItem, LightboxProps } from \"./Lightbox\";\nexport { default as Lightbox } from \"./Lightbox\";\nexport type { LoadMoreProps } from \"./LoadMore\";\nexport { LoadMore } from \"./LoadMore\";\nexport type { LogTableEntry } from \"./LogEntriesTable\";\nexport { default as LogEntriesTable } from \"./LogEntriesTable\";\nexport { MapAttribution } from \"./MapAttribution\";\nexport {\n MapDialog,\n type MapDialogFact,\n type MapDialogMapView,\n type MapDialogMenuItem,\n type MapDialogProps,\n type MapPlace,\n type MapPlaceLink,\n type MapPlaceSource,\n} from \"./MapDialog\";\nexport { MAP_DIALOG_PARAM, MapTile, type MapTileProps, mapDialogOptions } from \"./MapTile\";\nexport { MapView } from \"./MapView\";\nexport { MapViewFrame } from \"./MapViewFrame\";\nexport { default as MarkdownView, type MarkdownRenderOptions, type MarkdownViewProps, renderSafeMarkdown } from \"./MarkdownView\";\nexport { type MatchRange, MatchText, type MatchTextProps, matchParts } from \"./MatchText\";\nexport { MessageQuote } from \"./MessageQuote\";\nexport type {\n MessageEventGroupProps,\n MessageEventRowProps,\n MessageGroupEntry,\n MessageRowAction,\n MessageRowAttachment,\n MessageRowAuthor,\n MessageRowFile,\n MessageRowMedia,\n MessageRowOrigin,\n MessageRowProgress,\n MessageRowProps,\n MessageRowQuote,\n MessageRowReaction,\n MessageRowStatus,\n MessageRowThread,\n MessageSystemRowProps,\n} from \"./MessageRow\";\nexport { MessageEventGroup, MessageEventRow, MessageRow, MessageSystemRow, startsMessageGroup } from \"./MessageRow\";\nexport { type GeoNavigationPlatform, geoNavigationHref, geoNavigationPlatform } from \"./map-navigation\";\nexport { type MapPaletteColors, type MapTheme, mapPalette } from \"./map-palette\";\nexport { type MapStyleOptions, mapAttribution, mapStyle } from \"./map-style\";\nexport { MAP_SNAPSHOT_MAX_PIXELS, MapSnapshotError, type MapSnapshotErrorCode } from \"./map-view-snapshot\";\nexport type {\n MapViewArea,\n MapViewFit,\n MapViewFrameProps,\n MapViewHandle,\n MapViewLine,\n MapViewLineTone,\n MapViewMarker,\n MapViewOwnLocation,\n MapViewPoint,\n MapViewProps,\n MapViewSnapshot,\n MapViewSnapshotOptions,\n MapViewStyle,\n MapViewStyleSource,\n MapViewTone,\n} from \"./map-view-types\";\nexport {\n MARKDOWN_CALLOUT_CLASSES,\n MARKDOWN_CALLOUT_ICON_ATTRIBUTES,\n type MarkdownInfoBlock,\n type MarkdownInfoBlockRenderInput,\n type MarkdownInfoBlockType,\n markdownInfoBlocks,\n renderMarkdownInfoBlock,\n scanMarkdownInfoBlock,\n} from \"./markdown-info-blocks\";\nexport {\n type MarkdownLinkInput,\n type MarkdownReference,\n type MarkdownReferenceKind,\n type MarkdownReferenceType,\n markdownLinkReference,\n markdownReferenceIcon,\n markdownReferenceType,\n markdownReferenceTypeLabel,\n markStandaloneLinks,\n renderMarkdownLink,\n} from \"./markdown-links\";\nexport { Pagination, type PaginationProps } from \"./Pagination\";\nexport { PdfThumbnails, type PdfThumbnailsProps } from \"./PdfThumbnails\";\nexport type { PdfViewerProps, PdfViewerRequest } from \"./PdfViewer\";\nexport { default as PdfViewer } from \"./PdfViewer\";\nexport { ProgressPath, type ProgressPathProps, type ProgressPathStep } from \"./ProgressPath\";\nexport type { RangeOption, RangePickerProps } from \"./RangePicker\";\nexport { default as RangePicker } from \"./RangePicker\";\nexport { ReactionBar, type ReactionBarItem, type ReactionBarProps } from \"./ReactionBar\";\nexport type {\n ReferenceChipObjectProps,\n ReferenceChipPersonProps,\n ReferenceChipProps,\n ReferenceChipTimeProps,\n} from \"./ReferenceChip\";\nexport { REFERENCE_CHIP_MAX_CHARACTERS, ReferenceChip, truncateMiddle } from \"./ReferenceChip\";\nexport {\n type RunEntry,\n type RunLevel,\n RunLog,\n type RunLogAction,\n type RunLogEntry,\n type RunLogProps,\n type RunLogState,\n type RunStepEntry,\n} from \"./RunLog\";\nexport type { StepsProps } from \"./Steps\";\nexport { Steps } from \"./Steps\";\nexport type { StructuredDataPreviewMode, StructuredDataPreviewProps, StructuredDataValue } from \"./StructuredDataPreview\";\nexport { default as StructuredDataPreview, isStructuredDataValue } from \"./StructuredDataPreview\";\nexport { TaskRow, type TaskRowProps } from \"./TaskRow\";\nexport { ThumbnailStrip, type ThumbnailStripItem, type ThumbnailStripProps } from \"./ThumbnailStrip\";\nexport type { TimelineColor, TimelineController, TimelineItem, TimelineProps } from \"./Timeline\";\nexport { default as Timeline } from \"./Timeline\";\nexport { VideoPlayer, type VideoPlayerProps } from \"./VideoPlayer\";\nexport type { VirtualFeedController, VirtualFeedProps, VirtualFeedScrollOptions } from \"./VirtualFeed\";\nexport { VirtualFeed } from \"./VirtualFeed\";\nexport type { ZoomPanAction, ZoomPanFullscreen, ZoomPanViewportProps } from \"./ZoomPanViewport\";\nexport { ZoomPanViewport } from \"./ZoomPanViewport\";\n"],"mappings":"AACA,SAGE,YAAY,EAMZ,YAAY,EAIZ,kBAAkB,QACb,gBAAgB;AACvB,SAAS,cAAc,QAAkC,kBAAkB;AAsB3E,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAGhD,SAAS,OAAO,IAAI,KAAK,QAAQ,SAAS;AAE1C,SAAS,aAAa,QAAQ,iBAAiB;AAE/C,SAAS,qBAAqB,QAAQ,yBAAyB;AAC/D,SAAS,mBAAmB,QAAuC,uBAAuB;AAC1F,SAAS,iBAAiB,QAAQ,qBAAqB;AAEvD,SAAS,OAAO,IAAI,WAAW,QAAQ,eAAe;AACtD,SAA2B,iBAAiB,QAAQ,gBAAgB;AAUpE,SAAS,mBAAmB,QAAQ,kBAAkB;AAGtD,SAAS,oBAAoB,QAAQ,kBAAkB;AASvD,SAAS,YAAY,QAAQ,kBAAkB;AAC/C,SAAmC,yBAAyB,QAAiC,wBAAwB;AAarH,SAAS,OAAO,IAAI,SAAS,QAAQ,aAAa;AAElD,SAAS,mBAAmB,EAAE,cAAc,QAAQ,kBAAkB;AAEtE,SAAS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AQ,eAAe;AAChF,SAA+B,cAAc,EAAE,QAAQ,QAAQ,aAAa;AAC5E,SAAS,uBAAuB,EAAE,gBAAgB,QAAmC,qBAAqB;AAkB1G,SACE,wBAAwB,EACxB,gCAAgC,EAIhC,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,QAChB,wBAAwB;AAC/B,SAKE,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,QACb,kBAAkB;AACzB,SAAS,UAAU,QAA8B,cAAc;AAC/D,SAAS,aAAa,QAAiC,iBAAiB;AAExE,SAAS,OAAO,IAAI,SAAS,QAAQ,aAAa;AAClD,SAAS,YAAY,QAAuD,gBAAgB;AAE5F,SAAS,OAAO,IAAI,WAAW,QAAQ,eAAe;AACtD,SAAS,WAAW,QAAqD,eAAe;AAOxF,SAAS,6BAA6B,EAAE,aAAa,EAAE,cAAc,QAAQ,iBAAiB;AAC9F,SAGE,MAAM,QAMD,UAAU;AAEjB,SAAS,KAAK,QAAQ,SAAS;AAE/B,SAAS,OAAO,IAAI,qBAAqB,EAAE,qBAAqB,QAAQ,yBAAyB;AACjG,SAAS,OAAO,QAA2B,WAAW;AACtD,SAAS,cAAc,QAA2D,kBAAkB;AAEpG,SAAS,OAAO,IAAI,QAAQ,QAAQ,YAAY;AAChD,SAAS,WAAW,QAA+B,eAAe;AAElE,SAAS,WAAW,QAAQ,eAAe;AAE3C,SAAS,eAAe,QAAQ,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { i18n } from "@k2b/stdlib";
|
|
2
|
+
import { useLocale } from "../intl/locale";
|
|
3
|
+
|
|
4
|
+
// The word for the current stage lives with the path, not in the common catalog every component loads.
|
|
5
|
+
const progressPathMessages = i18n.define({
|
|
6
|
+
baseLocale: "en",
|
|
7
|
+
messages: {
|
|
8
|
+
en: {
|
|
9
|
+
current: "current step"
|
|
10
|
+
},
|
|
11
|
+
de: {
|
|
12
|
+
current: "aktueller Schritt"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
/** Resolved from the inherited render locale. */
|
|
17
|
+
export const useProgressPathMessages = () => {
|
|
18
|
+
const locale = useLocale();
|
|
19
|
+
return () => progressPathMessages.resolve([locale()]).t;
|
|
20
|
+
};
|
|
21
|
+
export const checkProgressPathMessages = () => progressPathMessages.check();
|
|
22
|
+
//# sourceMappingURL=progress-path-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["content/progress-path-messages.ts"],"sourcesContent":["import { i18n } from \"@k2b/stdlib\";\nimport { useLocale } from \"../intl/locale\";\n\n// The word for the current stage lives with the path, not in the common catalog every component loads.\nconst progressPathMessages = i18n.define({\n baseLocale: \"en\",\n messages: {\n en: { current: \"current step\" },\n de: { current: \"aktueller Schritt\" },\n },\n});\n\nexport type ProgressPathMessages = ReturnType<(typeof progressPathMessages)[\"resolve\"]>[\"t\"];\n\n/** Resolved from the inherited render locale. */\nexport const useProgressPathMessages = (): (() => ProgressPathMessages) => {\n const locale = useLocale();\n return () => progressPathMessages.resolve([locale()]).t;\n};\n\nexport const checkProgressPathMessages = () => progressPathMessages.check();\n"],"mappings":"AAAA,SAAS,IAAI,QAAQ,aAAa;AAClC,SAAS,SAAS,QAAQ,gBAAgB;;AAE1C;AACA,MAAM,oBAAoB,GAAG,IAAI,CAAC,MAAM,CAAC;EACvC,UAAU,EAAE,IAAI;EAChB,QAAQ,EAAE;IACR,EAAE,EAAE;MAAE,OAAO,EAAE;IAAe,CAAC;IAC/B,EAAE,EAAE;MAAE,OAAO,EAAE;IAAoB;EACrC;AACF,CAAC,CAAC;AAIF;AACA,OAAO,MAAM,uBAAuB,GAAG,MAAoC;EACzE,MAAM,MAAM,GAAG,SAAS,CAAC,CAAC;EAC1B,OAAO,MAAM,oBAAoB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,OAAO,MAAM,yBAAyB,GAAG,MAAM,oBAAoB,CAAC,KAAK,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,6 +8,12 @@ import { keepScroll, restoreScroll } from "../internal/scroll-places";
|
|
|
8
8
|
import { resolveUiMessages } from "../intl/messages";
|
|
9
9
|
import { notePageDisposal, pageDisposals, readDialogCall } from "./dialog-call";
|
|
10
10
|
import { isPointInsideToast } from "./toast-hit";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The custom property that lifts a centered dialog frame so its footer stays put (`dialog-foot.ts`). The core clears
|
|
14
|
+
* it whenever another level shows, so each level starts centered.
|
|
15
|
+
*/
|
|
16
|
+
export const DIALOG_LIFT = "--k2b-dialog-lift";
|
|
11
17
|
const DEFAULT_PANEL_CLASS = "k2b-dialog";
|
|
12
18
|
const DEFAULT_CONTENT_CLASS = "k2b-dialog__viewport";
|
|
13
19
|
/** The frame of a dialog whose content could not render: a custom or bare surface may draw no frame of its own. */
|
|
@@ -342,12 +348,28 @@ export const createDialogCore = () => {
|
|
|
342
348
|
if (state.element?.isConnected) return state.element;
|
|
343
349
|
const element = document.createElement("dialog");
|
|
344
350
|
element.onclose = () => {
|
|
345
|
-
// Repeated Escape can force a non-cancelable native close. A retained
|
|
346
|
-
// entry (ignore, an async guard, or a parent) still owns the modal.
|
|
347
351
|
const top = state.stack[state.stack.length - 1];
|
|
348
|
-
if (state.element !== element || element.open || !top) return;
|
|
349
|
-
|
|
350
|
-
|
|
352
|
+
if (state.element !== element || element.open || !top || state.switchingMode) return;
|
|
353
|
+
state.escapeRouted = true;
|
|
354
|
+
const afterCancel = state.cancelRouted;
|
|
355
|
+
state.cancelRouted = false;
|
|
356
|
+
if (afterCancel) {
|
|
357
|
+
// Repeated Escape can force a non-cancelable native close after its cancel event, which already dismissed
|
|
358
|
+
// what it could. A retained entry (ignore, an async guard, or a parent) still owns the modal.
|
|
359
|
+
if (top.modal) element.showModal();else element.show();
|
|
360
|
+
resolveInitialFocusTarget(top, element)?.focus();
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
// The browser closed the frame on a close request without a cancel event, as close watchers may without a
|
|
364
|
+
// recent user activation (#3916). That is still the person's Escape. A level that takes dismissal closes; only a
|
|
365
|
+
// level that must be answered, or whose guard decides, keeps the frame.
|
|
366
|
+
const keep = top.cancelBehavior === "ignore" || top.dismissPending || Boolean(top.dismissHandler);
|
|
367
|
+
if (!keep) popTop(undefined);
|
|
368
|
+
const shown = state.stack[state.stack.length - 1];
|
|
369
|
+
if (state.element !== element || element.open || !shown) return;
|
|
370
|
+
if (shown.modal) element.showModal();else element.show();
|
|
371
|
+
resolveInitialFocusTarget(shown, element)?.focus();
|
|
372
|
+
if (keep && shown === top) void requestDismiss(top);
|
|
351
373
|
};
|
|
352
374
|
// Each stack level carries its own palette, independently of the first opener.
|
|
353
375
|
getK2bPortalRoot(undefined, document.body).appendChild(element);
|
|
@@ -373,6 +395,9 @@ export const createDialogCore = () => {
|
|
|
373
395
|
const applyPresentation = entry => {
|
|
374
396
|
const dialog = state.element;
|
|
375
397
|
if (!dialog || state.stack[state.stack.length - 1] !== entry) return;
|
|
398
|
+
// Each level starts centered: a lift that kept another level's footer in place does not carry over (K16).
|
|
399
|
+
if (state.presented !== entry) dialog.style.removeProperty(DIALOG_LIFT);
|
|
400
|
+
state.presented = entry;
|
|
376
401
|
if (dialog.className !== entry.panelClassName) dialog.className = entry.panelClassName;
|
|
377
402
|
applyUiScope(dialog, entry.uiScope);
|
|
378
403
|
const position = entry.position;
|
|
@@ -384,8 +409,11 @@ export const createDialogCore = () => {
|
|
|
384
409
|
dialog.setAttribute("aria-modal", String(entry.modal));
|
|
385
410
|
if (dialog.open && state.modal !== entry.modal) {
|
|
386
411
|
const active = document.activeElement;
|
|
412
|
+
// The core's own close while it switches the mode is no close request.
|
|
413
|
+
state.switchingMode = true;
|
|
387
414
|
dialog.close();
|
|
388
415
|
if (entry.modal) dialog.showModal();else dialog.show();
|
|
416
|
+
state.switchingMode = false;
|
|
389
417
|
if (active instanceof HTMLElement && active.isConnected && (!entry.modal || dialog.contains(active))) {
|
|
390
418
|
active.focus({
|
|
391
419
|
preventScroll: true
|
|
@@ -397,19 +425,39 @@ export const createDialogCore = () => {
|
|
|
397
425
|
state.modal = entry.modal;
|
|
398
426
|
if (entry.modal) lockPageScroll();else unlockPageScroll();
|
|
399
427
|
};
|
|
400
|
-
const
|
|
428
|
+
const escapeKey = event => {
|
|
401
429
|
const top = state.stack[state.stack.length - 1];
|
|
402
|
-
if (!top ||
|
|
403
|
-
|
|
404
|
-
|
|
430
|
+
if (!top || event.key !== "Escape" || event.defaultPrevented || event.isComposing) return;
|
|
431
|
+
if (!top.modal) {
|
|
432
|
+
event.preventDefault();
|
|
433
|
+
void requestDismiss(top);
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
// A modal level takes Escape through its cancel event. Should the browser not route this Escape there, as
|
|
437
|
+
// WebKit was seen to right after a dialog opened (#3916), the level is dismissed once the key has been handled,
|
|
438
|
+
// unless something took it: a popover in front of the dialog, or a handler that prevented the key.
|
|
439
|
+
// Only a person's key can become the browser's cancel event; a script's key event is no close request.
|
|
440
|
+
if (!event.isTrusted || !event.cancelable || document.querySelector(":popover-open")) return;
|
|
441
|
+
const dialog = state.element;
|
|
442
|
+
state.escapeRouted = false;
|
|
443
|
+
state.cancelRouted = false;
|
|
444
|
+
// After the next frame the browser's own cancel task has run, so the fallback never asks a guard a second time.
|
|
445
|
+
schedule(() => setTimeout(() => {
|
|
446
|
+
if (typeof document === "undefined" || state.escapeRouted || event.defaultPrevented) return;
|
|
447
|
+
if (state.stack[state.stack.length - 1] !== top) return;
|
|
448
|
+
if (!dialog?.open || state.element !== dialog) return;
|
|
449
|
+
void requestDismiss(top);
|
|
450
|
+
}, 0));
|
|
405
451
|
};
|
|
406
452
|
const stopConnectionObserver = () => {
|
|
407
|
-
document.removeEventListener("keydown",
|
|
453
|
+
document.removeEventListener("keydown", escapeKey);
|
|
408
454
|
state.connectionObserver?.disconnect();
|
|
409
455
|
state.connectionObserver = undefined;
|
|
410
456
|
};
|
|
411
457
|
const applyCancelBehavior = (dialog, close, behavior) => {
|
|
412
458
|
dialog.oncancel = event => {
|
|
459
|
+
state.escapeRouted = true;
|
|
460
|
+
state.cancelRouted = true;
|
|
413
461
|
if (behavior === "ignore") {
|
|
414
462
|
event.preventDefault();
|
|
415
463
|
return;
|
|
@@ -494,6 +542,7 @@ export const createDialogCore = () => {
|
|
|
494
542
|
dialog.setAttribute("aria-hidden", "true");
|
|
495
543
|
if (dialog.open && typeof dialog.close === "function") dialog.close();else dialog.removeAttribute("open");
|
|
496
544
|
state.element = undefined;
|
|
545
|
+
state.presented = undefined;
|
|
497
546
|
stopConnectionObserver();
|
|
498
547
|
unlockPageScroll();
|
|
499
548
|
let left = false;
|
|
@@ -524,6 +573,7 @@ export const createDialogCore = () => {
|
|
|
524
573
|
state.motion?.stop();
|
|
525
574
|
state.motion = undefined;
|
|
526
575
|
state.element = undefined;
|
|
576
|
+
state.presented = undefined;
|
|
527
577
|
stopConnectionObserver();
|
|
528
578
|
dialog?.remove();
|
|
529
579
|
unlockPageScroll();
|
|
@@ -536,7 +586,7 @@ export const createDialogCore = () => {
|
|
|
536
586
|
};
|
|
537
587
|
const observeConnection = () => {
|
|
538
588
|
if (state.connectionObserver || typeof MutationObserver === "undefined") return;
|
|
539
|
-
document.addEventListener("keydown",
|
|
589
|
+
document.addEventListener("keydown", escapeKey);
|
|
540
590
|
state.connectionObserver = new MutationObserver(resetDisconnectedDialog);
|
|
541
591
|
state.connectionObserver.observe(document.documentElement, {
|
|
542
592
|
childList: true,
|
|
@@ -706,6 +756,13 @@ export const createDialogCore = () => {
|
|
|
706
756
|
if (typeof dialog.showModal === "function") {
|
|
707
757
|
if (entry.modal) dialog.showModal();else dialog.show();
|
|
708
758
|
} else dialog.setAttribute("open", "");
|
|
759
|
+
// The level's own first focus at once, before any frame: the browser's pick, its first control, may show
|
|
760
|
+
// a hint on visible focus that would take the first Escape (#3916). An `autofocus` the content set stays.
|
|
761
|
+
const picked = document.activeElement;
|
|
762
|
+
if (!(picked instanceof HTMLElement && picked.hasAttribute("autofocus"))) {
|
|
763
|
+
const target = resolveInitialFocusTarget(entry, dialog);
|
|
764
|
+
if (target && target !== picked) target.focus();
|
|
765
|
+
}
|
|
709
766
|
observeConnection();
|
|
710
767
|
// Only opted-in levels follow content; the first open itself does not animate.
|
|
711
768
|
loadFrameMotion(state);
|