@elaraai/east-ui 1.0.85 → 1.0.87
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/src/buttons/button/index.d.ts +4 -0
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +8 -1
- package/dist/src/buttons/button/index.js.map +1 -1
- package/dist/src/buttons/button/types.d.ts +6 -5
- package/dist/src/buttons/button/types.d.ts.map +1 -1
- package/dist/src/buttons/button/types.js.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +5 -5
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +8 -2
- package/dist/src/buttons/icon-button/index.js.map +1 -1
- package/dist/src/buttons/icon-button/types.d.ts +8 -12
- package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/types.js +2 -2
- package/dist/src/buttons/icon-button/types.js.map +1 -1
- package/dist/src/buttons/toggle/index.d.ts +4 -0
- package/dist/src/buttons/toggle/index.d.ts.map +1 -1
- package/dist/src/buttons/toggle/index.js +6 -1
- package/dist/src/buttons/toggle/index.js.map +1 -1
- package/dist/src/buttons/toggle/types.d.ts +3 -2
- package/dist/src/buttons/toggle/types.d.ts.map +1 -1
- package/dist/src/buttons/toggle/types.js.map +1 -1
- package/dist/src/charts/chart/index.d.ts.map +1 -1
- package/dist/src/charts/chart/index.js +3 -3
- package/dist/src/charts/chart/index.js.map +1 -1
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.js +5 -2
- package/dist/src/charts/spec/index.js.map +1 -1
- package/dist/src/collections/deck/index.d.ts.map +1 -1
- package/dist/src/collections/deck/index.js +2 -2
- package/dist/src/collections/deck/index.js.map +1 -1
- package/dist/src/collections/index.d.ts +0 -6
- package/dist/src/collections/index.d.ts.map +1 -1
- package/dist/src/collections/index.js +0 -6
- package/dist/src/collections/index.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +1 -1
- package/dist/src/collections/library/index.d.ts.map +1 -1
- package/dist/src/collections/library/index.js +2 -2
- package/dist/src/collections/library/index.js.map +1 -1
- package/dist/src/collections/schematic/index.d.ts.map +1 -1
- package/dist/src/collections/schematic/index.js +2 -2
- package/dist/src/collections/schematic/index.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +1 -1
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +2 -2
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/tree-view/index.d.ts +11 -32
- package/dist/src/collections/tree-view/index.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.js +15 -10
- package/dist/src/collections/tree-view/index.js.map +1 -1
- package/dist/src/component.d.ts +673 -9344
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +5 -259
- package/dist/src/component.js.map +1 -1
- package/dist/src/contracts/approval.d.ts +6 -8
- package/dist/src/contracts/approval.d.ts.map +1 -1
- package/dist/src/contracts/approval.js +6 -8
- package/dist/src/contracts/approval.js.map +1 -1
- package/dist/src/contracts/drag.d.ts +1 -1
- package/dist/src/contracts/drag.d.ts.map +1 -1
- package/dist/src/contracts/drag.js +4 -5
- package/dist/src/contracts/drag.js.map +1 -1
- package/dist/src/contracts/editing.d.ts +19 -19
- package/dist/src/contracts/editing.js +14 -14
- package/dist/src/contracts/fields.d.ts +471 -0
- package/dist/src/contracts/fields.d.ts.map +1 -0
- package/dist/src/contracts/fields.js +492 -0
- package/dist/src/contracts/fields.js.map +1 -0
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/index.js +1 -0
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/indexed-source.d.ts +118 -0
- package/dist/src/contracts/indexed-source.d.ts.map +1 -0
- package/dist/src/contracts/indexed-source.js +89 -0
- package/dist/src/contracts/indexed-source.js.map +1 -0
- package/dist/src/contracts/pick.d.ts +0 -16
- package/dist/src/contracts/pick.d.ts.map +1 -1
- package/dist/src/contracts/review.d.ts +4 -6
- package/dist/src/contracts/review.d.ts.map +1 -1
- package/dist/src/contracts/review.js +4 -6
- package/dist/src/contracts/review.js.map +1 -1
- package/dist/src/contracts/source.d.ts +2 -2
- package/dist/src/contracts/source.d.ts.map +1 -1
- package/dist/src/contracts/source.js.map +1 -1
- package/dist/src/contracts/states.d.ts +1 -3
- package/dist/src/contracts/states.d.ts.map +1 -1
- package/dist/src/contracts/states.js +1 -3
- package/dist/src/contracts/states.js.map +1 -1
- package/dist/src/display/editable-chip/index.d.ts +2 -0
- package/dist/src/display/editable-chip/index.d.ts.map +1 -1
- package/dist/src/display/editable-chip/index.js +4 -1
- package/dist/src/display/editable-chip/index.js.map +1 -1
- package/dist/src/display/icon/index.d.ts +14 -31
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +15 -19
- package/dist/src/display/icon/index.js.map +1 -1
- package/dist/src/display/icon/solid.d.ts +24 -0
- package/dist/src/display/icon/solid.d.ts.map +1 -0
- package/dist/src/display/icon/solid.js +39 -0
- package/dist/src/display/icon/solid.js.map +1 -0
- package/dist/src/display/icon/types.d.ts +14 -38
- package/dist/src/display/icon/types.d.ts.map +1 -1
- package/dist/src/display/icon/types.js +6 -15
- package/dist/src/display/icon/types.js.map +1 -1
- package/dist/src/display/metric-chip/index.d.ts +2 -0
- package/dist/src/display/metric-chip/index.d.ts.map +1 -1
- package/dist/src/display/metric-chip/index.js +4 -1
- package/dist/src/display/metric-chip/index.js.map +1 -1
- package/dist/src/display/stat/index.d.ts +2 -0
- package/dist/src/display/stat/index.d.ts.map +1 -1
- package/dist/src/display/stat/index.js +4 -1
- package/dist/src/display/stat/index.js.map +1 -1
- package/dist/src/display/stat/types.d.ts +3 -5
- package/dist/src/display/stat/types.d.ts.map +1 -1
- package/dist/src/display/stat/types.js +5 -2
- package/dist/src/display/stat/types.js.map +1 -1
- package/dist/src/feedback/banner/index.d.ts +5 -3
- package/dist/src/feedback/banner/index.d.ts.map +1 -1
- package/dist/src/feedback/banner/index.js +4 -1
- package/dist/src/feedback/banner/index.js.map +1 -1
- package/dist/src/feedback/empty-state/index.d.ts +16 -19
- package/dist/src/feedback/empty-state/index.d.ts.map +1 -1
- package/dist/src/feedback/empty-state/index.js +17 -10
- package/dist/src/feedback/empty-state/index.js.map +1 -1
- package/dist/src/feedback/status/index.d.ts +5 -3
- package/dist/src/feedback/status/index.d.ts.map +1 -1
- package/dist/src/feedback/status/index.js +4 -1
- package/dist/src/feedback/status/index.js.map +1 -1
- package/dist/src/index.d.ts +5 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +12 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +23 -16
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +29 -13
- package/dist/src/internal.js.map +1 -1
- package/dist/src/navigation/index.d.ts +0 -2
- package/dist/src/navigation/index.d.ts.map +1 -1
- package/dist/src/navigation/index.js +0 -2
- package/dist/src/navigation/index.js.map +1 -1
- package/dist/src/navigation/nav-list/index.d.ts +2 -0
- package/dist/src/navigation/nav-list/index.d.ts.map +1 -1
- package/dist/src/navigation/nav-list/index.js +4 -1
- package/dist/src/navigation/nav-list/index.js.map +1 -1
- package/dist/src/navigation/nav-list/types.d.ts +3 -14
- package/dist/src/navigation/nav-list/types.d.ts.map +1 -1
- package/dist/src/navigation/nav-list/types.js.map +1 -1
- package/dist/src/overlays/command-palette/index.d.ts +2 -0
- package/dist/src/overlays/command-palette/index.d.ts.map +1 -1
- package/dist/src/overlays/command-palette/index.js +5 -0
- package/dist/src/overlays/command-palette/index.js.map +1 -1
- package/dist/src/overlays/command-palette/types.d.ts +0 -8
- package/dist/src/overlays/command-palette/types.d.ts.map +1 -1
- package/dist/src/pick/index.d.ts +1 -17
- package/dist/src/pick/index.d.ts.map +1 -1
- package/dist/src/pick/index.js +1 -1
- package/dist/src/platform/slice/index.d.ts +1324 -2039
- package/dist/src/platform/slice/index.d.ts.map +1 -1
- package/dist/src/platform/slice/index.js +55 -74
- package/dist/src/platform/slice/index.js.map +1 -1
- package/dist/src/platform/slice/local.d.ts +743 -0
- package/dist/src/platform/slice/local.d.ts.map +1 -0
- package/dist/src/platform/slice/local.js +133 -0
- package/dist/src/platform/slice/local.js.map +1 -0
- package/dist/src/platform/slice/record-chrome.d.ts +211 -0
- package/dist/src/platform/slice/record-chrome.d.ts.map +1 -0
- package/dist/src/platform/slice/record-chrome.js +52 -0
- package/dist/src/platform/slice/record-chrome.js.map +1 -0
- package/dist/src/platform/slice/record-interval.d.ts +24 -0
- package/dist/src/platform/slice/record-interval.d.ts.map +1 -0
- package/dist/src/platform/slice/record-interval.js +61 -0
- package/dist/src/platform/slice/record-interval.js.map +1 -0
- package/dist/src/platform/slice/record-plan.d.ts +54 -0
- package/dist/src/platform/slice/record-plan.d.ts.map +1 -0
- package/dist/src/platform/slice/record-plan.js +139 -0
- package/dist/src/platform/slice/record-plan.js.map +1 -0
- package/dist/src/platform/slice/record-types.d.ts +2739 -0
- package/dist/src/platform/slice/record-types.d.ts.map +1 -0
- package/dist/src/platform/slice/record-types.js +209 -0
- package/dist/src/platform/slice/record-types.js.map +1 -0
- package/dist/src/platform/slice/record.d.ts +109 -0
- package/dist/src/platform/slice/record.d.ts.map +1 -0
- package/dist/src/platform/slice/record.js +210 -0
- package/dist/src/platform/slice/record.js.map +1 -0
- package/dist/src/reactive/match.d.ts +4 -6
- package/dist/src/reactive/match.d.ts.map +1 -1
- package/dist/src/reactive/match.js +4 -6
- package/dist/src/reactive/match.js.map +1 -1
- package/dist/src/runtime/collections/deck.d.ts.map +1 -1
- package/dist/src/runtime/collections/index.d.ts +0 -6
- package/dist/src/runtime/collections/index.d.ts.map +1 -1
- package/dist/src/runtime/collections/index.js +0 -6
- package/dist/src/runtime/collections/index.js.map +1 -1
- package/dist/src/runtime/display/icon.d.ts +6 -5
- package/dist/src/runtime/display/icon.d.ts.map +1 -1
- package/dist/src/runtime/display/icon.js +6 -5
- package/dist/src/runtime/display/icon.js.map +1 -1
- package/dist/src/runtime/feedback/empty-state.d.ts +5 -5
- package/dist/src/runtime/feedback/empty-state.js +5 -5
- package/dist/src/runtime/layout/dock.d.ts +2 -1
- package/dist/src/runtime/layout/dock.d.ts.map +1 -1
- package/dist/src/runtime/layout/dock.js +2 -1
- package/dist/src/runtime/layout/dock.js.map +1 -1
- package/dist/src/runtime/navigation/index.d.ts +0 -3
- package/dist/src/runtime/navigation/index.d.ts.map +1 -1
- package/dist/src/runtime/navigation/index.js +0 -3
- package/dist/src/runtime/navigation/index.js.map +1 -1
- package/dist/src/runtime/reactive/match.d.ts +2 -3
- package/dist/src/runtime/reactive/match.d.ts.map +1 -1
- package/dist/src/runtime/reactive/match.js +2 -3
- package/dist/src/runtime/reactive/match.js.map +1 -1
- package/dist/src/runtime/record-slice-source.d.ts +78 -0
- package/dist/src/runtime/record-slice-source.d.ts.map +1 -0
- package/dist/src/runtime/record-slice-source.js +201 -0
- package/dist/src/runtime/record-slice-source.js.map +1 -0
- package/dist/src/runtime/record-slice.d.ts +110 -0
- package/dist/src/runtime/record-slice.d.ts.map +1 -0
- package/dist/src/runtime/record-slice.js +374 -0
- package/dist/src/runtime/record-slice.js.map +1 -0
- package/dist/src/runtime/slice.d.ts +11 -13
- package/dist/src/runtime/slice.d.ts.map +1 -1
- package/dist/src/runtime/slice.js +41 -93
- package/dist/src/runtime/slice.js.map +1 -1
- package/dist/src/shared/plot-gutter.d.ts +1 -1
- package/dist/src/shared/plot-gutter.js +1 -1
- package/dist/src/shared/resolve-tag.d.ts +23 -0
- package/dist/src/shared/resolve-tag.d.ts.map +1 -0
- package/dist/src/shared/resolve-tag.js +26 -0
- package/dist/src/shared/resolve-tag.js.map +1 -0
- package/dist/src/shared/tree.d.ts +1 -1
- package/dist/src/shared/tree.js +1 -1
- package/dist/src/slice/breakdown/index.d.ts +1 -1
- package/dist/src/slice/breakdown/index.d.ts.map +1 -1
- package/dist/src/slice/breakdown/index.js +3 -3
- package/dist/src/slice/breakdown/index.js.map +1 -1
- package/dist/src/slice/cohort/index.d.ts +4 -5
- package/dist/src/slice/cohort/index.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.js +6 -7
- package/dist/src/slice/cohort/index.js.map +1 -1
- package/dist/src/slice/filter/index.d.ts +1 -1
- package/dist/src/slice/filter/index.d.ts.map +1 -1
- package/dist/src/slice/filter/index.js +3 -3
- package/dist/src/slice/filter/index.js.map +1 -1
- package/dist/src/slice/index.d.ts +20 -2230
- package/dist/src/slice/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.d.ts +2 -2
- package/dist/src/slice/legend/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.js +4 -4
- package/dist/src/slice/legend/index.js.map +1 -1
- package/dist/src/slice/rail/index.d.ts +7 -4
- package/dist/src/slice/rail/index.d.ts.map +1 -1
- package/dist/src/slice/rail/index.js +10 -5
- package/dist/src/slice/rail/index.js.map +1 -1
- package/dist/src/slice/range/index.d.ts +1 -1
- package/dist/src/slice/range/index.d.ts.map +1 -1
- package/dist/src/slice/range/index.js +3 -3
- package/dist/src/slice/range/index.js.map +1 -1
- package/dist/src/slice/record/index.d.ts +171 -0
- package/dist/src/slice/record/index.d.ts.map +1 -0
- package/dist/src/slice/record/index.js +10 -0
- package/dist/src/slice/record/index.js.map +1 -0
- package/dist/src/slice/search/index.d.ts +6 -6
- package/dist/src/slice/search/index.d.ts.map +1 -1
- package/dist/src/slice/search/index.js +7 -7
- package/dist/src/slice/search/index.js.map +1 -1
- package/dist/src/slice/summary/index.d.ts +1 -1
- package/dist/src/slice/summary/index.d.ts.map +1 -1
- package/dist/src/slice/summary/index.js +3 -3
- package/dist/src/slice/summary/index.js.map +1 -1
- package/dist/src/typography/list/index.d.ts +2 -8
- package/dist/src/typography/list/index.d.ts.map +1 -1
- package/dist/src/typography/list/index.js +4 -1
- package/dist/src/typography/list/index.js.map +1 -1
- package/dist/src/typography/list/types.d.ts +0 -8
- package/dist/src/typography/list/types.d.ts.map +1 -1
- package/dist/test/collections/deck.examples.d.ts.map +1 -1
- package/dist/test/collections/deck.examples.js +6 -7
- package/dist/test/collections/deck.examples.js.map +1 -1
- package/dist/test/collections/index.d.ts +0 -1
- package/dist/test/collections/index.d.ts.map +1 -1
- package/dist/test/collections/index.js +0 -1
- package/dist/test/collections/index.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts.map +1 -1
- package/dist/test/collections/library.examples.js +6 -7
- package/dist/test/collections/library.examples.js.map +1 -1
- package/dist/test/collections/schematic.examples.d.ts.map +1 -1
- package/dist/test/collections/schematic.examples.js +11 -19
- package/dist/test/collections/schematic.examples.js.map +1 -1
- package/dist/test/collections/tree-view.examples.js +2 -2
- package/dist/test/contracts/editing.examples.d.ts +1 -0
- package/dist/test/contracts/editing.examples.d.ts.map +1 -1
- package/dist/test/contracts/editing.examples.js +37 -6
- package/dist/test/contracts/editing.examples.js.map +1 -1
- package/dist/test/contracts/fields.examples.d.ts +7 -0
- package/dist/test/contracts/fields.examples.d.ts.map +1 -0
- package/dist/test/contracts/fields.examples.js +42 -0
- package/dist/test/contracts/fields.examples.js.map +1 -0
- package/dist/test/display/avatar.examples.d.ts.map +1 -1
- package/dist/test/display/avatar.examples.js +3 -3
- package/dist/test/display/avatar.examples.js.map +1 -1
- package/dist/test/display/icon.examples.d.ts.map +1 -1
- package/dist/test/display/icon.examples.js +12 -11
- package/dist/test/display/icon.examples.js.map +1 -1
- package/dist/test/feedback/empty-state.examples.js +9 -9
- package/dist/test/feedback/empty-state.examples.js.map +1 -1
- package/dist/test/layout/dock.examples.d.ts +0 -8
- package/dist/test/layout/dock.examples.d.ts.map +1 -1
- package/dist/test/layout/dock.examples.js +2 -42
- package/dist/test/layout/dock.examples.js.map +1 -1
- package/dist/test/layout/snap-grid.examples.d.ts.map +1 -1
- package/dist/test/layout/snap-grid.examples.js +18 -28
- package/dist/test/layout/snap-grid.examples.js.map +1 -1
- package/dist/test/navigation/index.d.ts +0 -2
- package/dist/test/navigation/index.d.ts.map +1 -1
- package/dist/test/navigation/index.js +0 -2
- package/dist/test/navigation/index.js.map +1 -1
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/platform/index.d.ts +1 -0
- package/dist/test/platform/index.d.ts.map +1 -1
- package/dist/test/platform/index.js +1 -0
- package/dist/test/platform/index.js.map +1 -1
- package/dist/test/platform/slice-local.examples.d.ts +2 -0
- package/dist/test/platform/slice-local.examples.d.ts.map +1 -0
- package/dist/test/platform/slice-local.examples.js +31 -0
- package/dist/test/platform/slice-local.examples.js.map +1 -0
- package/dist/test/platform/slice.examples.js +61 -61
- package/dist/test/platform/slice.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +0 -1
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +67 -181
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/package.json +4 -4
- package/dist/src/collections/board/index.d.ts +0 -855
- package/dist/src/collections/board/index.d.ts.map +0 -1
- package/dist/src/collections/board/index.js +0 -416
- package/dist/src/collections/board/index.js.map +0 -1
- package/dist/src/collections/board/types.d.ts +0 -111
- package/dist/src/collections/board/types.d.ts.map +0 -1
- package/dist/src/collections/board/types.js +0 -89
- package/dist/src/collections/board/types.js.map +0 -1
- package/dist/src/collections/calendar/index.d.ts +0 -446
- package/dist/src/collections/calendar/index.d.ts.map +0 -1
- package/dist/src/collections/calendar/index.js +0 -287
- package/dist/src/collections/calendar/index.js.map +0 -1
- package/dist/src/collections/calendar/types.d.ts +0 -338
- package/dist/src/collections/calendar/types.d.ts.map +0 -1
- package/dist/src/collections/calendar/types.js +0 -206
- package/dist/src/collections/calendar/types.js.map +0 -1
- package/dist/src/collections/flowchart/index.d.ts +0 -430
- package/dist/src/collections/flowchart/index.d.ts.map +0 -1
- package/dist/src/collections/flowchart/index.js +0 -292
- package/dist/src/collections/flowchart/index.js.map +0 -1
- package/dist/src/collections/flowchart/types.d.ts +0 -333
- package/dist/src/collections/flowchart/types.d.ts.map +0 -1
- package/dist/src/collections/flowchart/types.js +0 -263
- package/dist/src/collections/flowchart/types.js.map +0 -1
- package/dist/src/collections/plan/assemble.d.ts +0 -2274
- package/dist/src/collections/plan/assemble.d.ts.map +0 -1
- package/dist/src/collections/plan/assemble.js +0 -210
- package/dist/src/collections/plan/assemble.js.map +0 -1
- package/dist/src/collections/plan/builders.d.ts +0 -765
- package/dist/src/collections/plan/builders.d.ts.map +0 -1
- package/dist/src/collections/plan/builders.js +0 -673
- package/dist/src/collections/plan/builders.js.map +0 -1
- package/dist/src/collections/plan/factories.d.ts +0 -512
- package/dist/src/collections/plan/factories.d.ts.map +0 -1
- package/dist/src/collections/plan/factories.js +0 -539
- package/dist/src/collections/plan/factories.js.map +0 -1
- package/dist/src/collections/plan/index.d.ts +0 -324
- package/dist/src/collections/plan/index.d.ts.map +0 -1
- package/dist/src/collections/plan/index.js +0 -193
- package/dist/src/collections/plan/index.js.map +0 -1
- package/dist/src/collections/plan/ir.d.ts +0 -2490
- package/dist/src/collections/plan/ir.d.ts.map +0 -1
- package/dist/src/collections/plan/ir.js +0 -107
- package/dist/src/collections/plan/ir.js.map +0 -1
- package/dist/src/collections/plan/pick.d.ts +0 -133
- package/dist/src/collections/plan/pick.d.ts.map +0 -1
- package/dist/src/collections/plan/pick.js +0 -208
- package/dist/src/collections/plan/pick.js.map +0 -1
- package/dist/src/collections/plan/root.d.ts +0 -297
- package/dist/src/collections/plan/root.d.ts.map +0 -1
- package/dist/src/collections/plan/root.js +0 -427
- package/dist/src/collections/plan/root.js.map +0 -1
- package/dist/src/collections/plan/series.d.ts +0 -13887
- package/dist/src/collections/plan/series.d.ts.map +0 -1
- package/dist/src/collections/plan/series.js +0 -1710
- package/dist/src/collections/plan/series.js.map +0 -1
- package/dist/src/collections/plan/types.d.ts +0 -12612
- package/dist/src/collections/plan/types.d.ts.map +0 -1
- package/dist/src/collections/plan/types.js +0 -1345
- package/dist/src/collections/plan/types.js.map +0 -1
- package/dist/src/collections/roster/index.d.ts +0 -787
- package/dist/src/collections/roster/index.d.ts.map +0 -1
- package/dist/src/collections/roster/index.js +0 -325
- package/dist/src/collections/roster/index.js.map +0 -1
- package/dist/src/collections/roster/types.d.ts +0 -97
- package/dist/src/collections/roster/types.d.ts.map +0 -1
- package/dist/src/collections/roster/types.js +0 -72
- package/dist/src/collections/roster/types.js.map +0 -1
- package/dist/src/collections/sheet/bridge.d.ts +0 -376
- package/dist/src/collections/sheet/bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/bridge.js +0 -773
- package/dist/src/collections/sheet/bridge.js.map +0 -1
- package/dist/src/collections/sheet/columns.d.ts +0 -410
- package/dist/src/collections/sheet/columns.d.ts.map +0 -1
- package/dist/src/collections/sheet/columns.js +0 -99
- package/dist/src/collections/sheet/columns.js.map +0 -1
- package/dist/src/collections/sheet/context-bridge.d.ts +0 -48
- package/dist/src/collections/sheet/context-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/context-bridge.js +0 -216
- package/dist/src/collections/sheet/context-bridge.js.map +0 -1
- package/dist/src/collections/sheet/draft-bridge.d.ts +0 -37
- package/dist/src/collections/sheet/draft-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/draft-bridge.js +0 -153
- package/dist/src/collections/sheet/draft-bridge.js.map +0 -1
- package/dist/src/collections/sheet/drafts.d.ts +0 -14
- package/dist/src/collections/sheet/drafts.d.ts.map +0 -1
- package/dist/src/collections/sheet/drafts.js +0 -14
- package/dist/src/collections/sheet/drafts.js.map +0 -1
- package/dist/src/collections/sheet/editing-bridge.d.ts +0 -36
- package/dist/src/collections/sheet/editing-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/editing-bridge.js +0 -196
- package/dist/src/collections/sheet/editing-bridge.js.map +0 -1
- package/dist/src/collections/sheet/editing-types.d.ts +0 -268
- package/dist/src/collections/sheet/editing-types.d.ts.map +0 -1
- package/dist/src/collections/sheet/editing-types.js +0 -34
- package/dist/src/collections/sheet/editing-types.js.map +0 -1
- package/dist/src/collections/sheet/edits.d.ts +0 -37
- package/dist/src/collections/sheet/edits.d.ts.map +0 -1
- package/dist/src/collections/sheet/edits.js +0 -31
- package/dist/src/collections/sheet/edits.js.map +0 -1
- package/dist/src/collections/sheet/group.d.ts +0 -165
- package/dist/src/collections/sheet/group.d.ts.map +0 -1
- package/dist/src/collections/sheet/group.js +0 -52
- package/dist/src/collections/sheet/group.js.map +0 -1
- package/dist/src/collections/sheet/index.d.ts +0 -351
- package/dist/src/collections/sheet/index.d.ts.map +0 -1
- package/dist/src/collections/sheet/index.js +0 -208
- package/dist/src/collections/sheet/index.js.map +0 -1
- package/dist/src/collections/sheet/link.d.ts +0 -398
- package/dist/src/collections/sheet/link.d.ts.map +0 -1
- package/dist/src/collections/sheet/link.js +0 -228
- package/dist/src/collections/sheet/link.js.map +0 -1
- package/dist/src/collections/sheet/registers.d.ts +0 -278
- package/dist/src/collections/sheet/registers.d.ts.map +0 -1
- package/dist/src/collections/sheet/registers.js +0 -268
- package/dist/src/collections/sheet/registers.js.map +0 -1
- package/dist/src/collections/sheet/root.d.ts +0 -328
- package/dist/src/collections/sheet/root.d.ts.map +0 -1
- package/dist/src/collections/sheet/root.js +0 -432
- package/dist/src/collections/sheet/root.js.map +0 -1
- package/dist/src/collections/sheet/seed-bridge.d.ts +0 -14
- package/dist/src/collections/sheet/seed-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/seed-bridge.js +0 -51
- package/dist/src/collections/sheet/seed-bridge.js.map +0 -1
- package/dist/src/collections/sheet/sub-rows.d.ts +0 -249
- package/dist/src/collections/sheet/sub-rows.d.ts.map +0 -1
- package/dist/src/collections/sheet/sub-rows.js +0 -222
- package/dist/src/collections/sheet/sub-rows.js.map +0 -1
- package/dist/src/collections/sheet/transactions.d.ts +0 -76
- package/dist/src/collections/sheet/transactions.d.ts.map +0 -1
- package/dist/src/collections/sheet/transactions.js +0 -40
- package/dist/src/collections/sheet/transactions.js.map +0 -1
- package/dist/src/collections/sheet/types.d.ts +0 -14992
- package/dist/src/collections/sheet/types.d.ts.map +0 -1
- package/dist/src/collections/sheet/types.js +0 -1061
- package/dist/src/collections/sheet/types.js.map +0 -1
- package/dist/src/navigation/app/index.d.ts +0 -150
- package/dist/src/navigation/app/index.d.ts.map +0 -1
- package/dist/src/navigation/app/index.js +0 -191
- package/dist/src/navigation/app/index.js.map +0 -1
- package/dist/src/navigation/pages/index.d.ts +0 -165
- package/dist/src/navigation/pages/index.d.ts.map +0 -1
- package/dist/src/navigation/pages/index.js +0 -152
- package/dist/src/navigation/pages/index.js.map +0 -1
- package/dist/src/navigation/pages/types.d.ts +0 -111
- package/dist/src/navigation/pages/types.d.ts.map +0 -1
- package/dist/src/navigation/pages/types.js +0 -101
- package/dist/src/navigation/pages/types.js.map +0 -1
- package/dist/src/runtime/collections/board.d.ts +0 -73
- package/dist/src/runtime/collections/board.d.ts.map +0 -1
- package/dist/src/runtime/collections/board.js +0 -68
- package/dist/src/runtime/collections/board.js.map +0 -1
- package/dist/src/runtime/collections/calendar.d.ts +0 -54
- package/dist/src/runtime/collections/calendar.d.ts.map +0 -1
- package/dist/src/runtime/collections/calendar.js +0 -54
- package/dist/src/runtime/collections/calendar.js.map +0 -1
- package/dist/src/runtime/collections/flowchart.d.ts +0 -58
- package/dist/src/runtime/collections/flowchart.d.ts.map +0 -1
- package/dist/src/runtime/collections/flowchart.js +0 -54
- package/dist/src/runtime/collections/flowchart.js.map +0 -1
- package/dist/src/runtime/collections/plan.d.ts +0 -181
- package/dist/src/runtime/collections/plan.d.ts.map +0 -1
- package/dist/src/runtime/collections/plan.js +0 -186
- package/dist/src/runtime/collections/plan.js.map +0 -1
- package/dist/src/runtime/collections/roster.d.ts +0 -60
- package/dist/src/runtime/collections/roster.d.ts.map +0 -1
- package/dist/src/runtime/collections/roster.js +0 -59
- package/dist/src/runtime/collections/roster.js.map +0 -1
- package/dist/src/runtime/collections/sheet.d.ts +0 -122
- package/dist/src/runtime/collections/sheet.d.ts.map +0 -1
- package/dist/src/runtime/collections/sheet.js +0 -73
- package/dist/src/runtime/collections/sheet.js.map +0 -1
- package/dist/src/runtime/navigation/app.d.ts +0 -52
- package/dist/src/runtime/navigation/app.d.ts.map +0 -1
- package/dist/src/runtime/navigation/app.js +0 -53
- package/dist/src/runtime/navigation/app.js.map +0 -1
- package/dist/src/runtime/navigation/pages.d.ts +0 -50
- package/dist/src/runtime/navigation/pages.d.ts.map +0 -1
- package/dist/src/runtime/navigation/pages.js +0 -52
- package/dist/src/runtime/navigation/pages.js.map +0 -1
- package/dist/src/runtime/navigation/route.d.ts +0 -46
- package/dist/src/runtime/navigation/route.d.ts.map +0 -1
- package/dist/src/runtime/navigation/route.js +0 -47
- package/dist/src/runtime/navigation/route.js.map +0 -1
- package/dist/test/collections/board.examples.d.ts +0 -18
- package/dist/test/collections/board.examples.d.ts.map +0 -1
- package/dist/test/collections/board.examples.js +0 -297
- package/dist/test/collections/board.examples.js.map +0 -1
- package/dist/test/collections/calendar.examples.d.ts +0 -5
- package/dist/test/collections/calendar.examples.d.ts.map +0 -1
- package/dist/test/collections/calendar.examples.js +0 -147
- package/dist/test/collections/calendar.examples.js.map +0 -1
- package/dist/test/collections/flowchart.examples.d.ts +0 -17
- package/dist/test/collections/flowchart.examples.d.ts.map +0 -1
- package/dist/test/collections/flowchart.examples.js +0 -243
- package/dist/test/collections/flowchart.examples.js.map +0 -1
- package/dist/test/collections/plan.examples.d.ts +0 -200
- package/dist/test/collections/plan.examples.d.ts.map +0 -1
- package/dist/test/collections/plan.examples.js +0 -3665
- package/dist/test/collections/plan.examples.js.map +0 -1
- package/dist/test/collections/roster.examples.d.ts +0 -26
- package/dist/test/collections/roster.examples.d.ts.map +0 -1
- package/dist/test/collections/roster.examples.js +0 -237
- package/dist/test/collections/roster.examples.js.map +0 -1
- package/dist/test/collections/sheet-link.examples.d.ts +0 -7
- package/dist/test/collections/sheet-link.examples.d.ts.map +0 -1
- package/dist/test/collections/sheet-link.examples.js +0 -41
- package/dist/test/collections/sheet-link.examples.js.map +0 -1
- package/dist/test/collections/sheet-transactions.examples.d.ts +0 -7
- package/dist/test/collections/sheet-transactions.examples.d.ts.map +0 -1
- package/dist/test/collections/sheet-transactions.examples.js +0 -58
- package/dist/test/collections/sheet-transactions.examples.js.map +0 -1
- package/dist/test/collections/sheet.examples.d.ts +0 -96
- package/dist/test/collections/sheet.examples.d.ts.map +0 -1
- package/dist/test/collections/sheet.examples.js +0 -1040
- package/dist/test/collections/sheet.examples.js.map +0 -1
- package/dist/test/navigation/app.examples.d.ts +0 -22
- package/dist/test/navigation/app.examples.d.ts.map +0 -1
- package/dist/test/navigation/app.examples.js +0 -136
- package/dist/test/navigation/app.examples.js.map +0 -1
- package/dist/test/navigation/pages.examples.d.ts +0 -13
- package/dist/test/navigation/pages.examples.d.ts.map +0 -1
- package/dist/test/navigation/pages.examples.js +0 -113
- package/dist/test/navigation/pages.examples.js.map +0 -1
- package/dist/test/navigation/route.examples.d.ts +0 -13
- package/dist/test/navigation/route.examples.d.ts.map +0 -1
- package/dist/test/navigation/route.examples.js +0 -69
- package/dist/test/navigation/route.examples.js.map +0 -1
|
@@ -1,855 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* `Board` — the single-day assignment board: an areas × shifts grid where
|
|
7
|
-
* each cell holds multiple people as chips under the shared event-state
|
|
8
|
-
* grammar (committed / proposed / rejected, with the `model` flavour
|
|
9
|
-
* rendering as a dashed ghost). Takes the flat tables a dataset naturally
|
|
10
|
-
* provides — areas, shifts, people, and assignments — each with a
|
|
11
|
-
* chart-style field encoding; the factory joins assignments to people by
|
|
12
|
-
* person key and groups them into cells by `area × shift`. Optional
|
|
13
|
-
* `requirements` add per-cell coverage (`n/required` numerals, open-slot
|
|
14
|
-
* placeholders, under / over tones).
|
|
15
|
-
*
|
|
16
|
-
* Declares the drag & drop **target** role: `id` + `sources` connect it to
|
|
17
|
-
* sibling Libraries, and every completed drag (add / move / remove) funnels
|
|
18
|
-
* through one `onDrag` callback as a `DragEventType` value. The component
|
|
19
|
-
* renders no built-in user-facing copy — every string it shows arrives as
|
|
20
|
-
* data or a prop.
|
|
21
|
-
*
|
|
22
|
-
* @packageDocumentation
|
|
23
|
-
*/
|
|
24
|
-
import { type ExprType, type SubtypeExprOrValue, type TypeOf, ArrayType, BooleanType, FunctionType, IntegerType, OptionType, StringType, StructType, NullType } from "@elaraai/east";
|
|
25
|
-
import { UIComponentType } from "../../component.js";
|
|
26
|
-
import { DensityType, type DensityLiteral } from "../../style/interaction.js";
|
|
27
|
-
import { CellRefType, DragEventType } from "../../contracts/drag.js";
|
|
28
|
-
import { PlannerStateType } from "../../contracts/states.js";
|
|
29
|
-
import { BoardModeType, type BoardModeLiteral } from "./types.js";
|
|
30
|
-
import { RowRefType, type ReviewConfig } from "../../contracts/review.js";
|
|
31
|
-
export { BoardModeType, type BoardModeLiteral, BoardEntityType, BoardAssignmentType, BoardRequirementType, } from "./types.js";
|
|
32
|
-
/**
|
|
33
|
-
* East StructType for the Board component.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Flat resolved tables — the renderer groups assignments into cells by
|
|
37
|
-
* `area × shift` and joins each to `people` by person key for the chip face.
|
|
38
|
-
* Assignment states reuse the Planner event-state grammar
|
|
39
|
-
* ({@link PlannerStateType}); the `model` flavour renders as the dashed
|
|
40
|
-
* ghost with the acceptance affordance. The component renders no built-in
|
|
41
|
-
* user-facing copy. Defined here (not `types.ts`) since #265: the root
|
|
42
|
-
* carries the shared review config, whose `summary` is a `UIComponentType` —
|
|
43
|
-
* `component.ts` mirrors this arm inline with the recursion `node`.
|
|
44
|
-
*
|
|
45
|
-
* @property id - DnD target identity
|
|
46
|
-
* @property sources - Library ids accepted for `add` drags
|
|
47
|
-
* @property mode - `published` (committed-only, immutable) or `edit`
|
|
48
|
-
* @property areaHeader - Optional frozen area column header (none = blank)
|
|
49
|
-
* @property areaWidth - Optional CSS width for the frozen area column
|
|
50
|
-
* @property areas - The grid rows
|
|
51
|
-
* @property shifts - The grid columns (this day's shift types, in order)
|
|
52
|
-
* @property people - The chip directory (faces), joined by person key
|
|
53
|
-
* @property assignments - The person chips (grouped into cells by area × shift)
|
|
54
|
-
* @property requirements - Optional per-cell coverage (none = no coverage chrome)
|
|
55
|
-
* @property density - Optional density
|
|
56
|
-
* @property maxVisible - Optional per-cell chip cap before the `+N` overflow
|
|
57
|
-
* @property summary - Optional status-strip text (open / proposed counts)
|
|
58
|
-
* @property canDrop - Optional IR-level drop veto over synthesized candidate events
|
|
59
|
-
* @property onDrag - Drag funnel — add / move / remove events
|
|
60
|
-
* @property onSelect - Assignment / cell click callback
|
|
61
|
-
* @property onAccept - Ghost-assignment acceptance callback (ONE proposed assignment)
|
|
62
|
-
* @property onAddAt - Open-slot / empty-cell click callback (edit mode)
|
|
63
|
-
* @property review - Optional batch review foot (shared contract, #265)
|
|
64
|
-
*/
|
|
65
|
-
export declare const BoardRootType: StructType<{
|
|
66
|
-
/** DnD target identity */
|
|
67
|
-
readonly id: StringType;
|
|
68
|
-
/** Library ids accepted for `add` drags */
|
|
69
|
-
readonly sources: ArrayType<StringType>;
|
|
70
|
-
/** `published` (committed-only, immutable) or `edit` */
|
|
71
|
-
readonly mode: import("@elaraai/east").VariantType<{
|
|
72
|
-
readonly published: NullType;
|
|
73
|
-
readonly edit: NullType;
|
|
74
|
-
}>;
|
|
75
|
-
/** Optional frozen area column header (none = blank) */
|
|
76
|
-
readonly areaHeader: OptionType<StringType>;
|
|
77
|
-
/** Optional CSS width for the frozen area column (none = the Planner-consistent 150px) */
|
|
78
|
-
readonly areaWidth: OptionType<StringType>;
|
|
79
|
-
/** The grid rows */
|
|
80
|
-
readonly areas: ArrayType<StructType<{
|
|
81
|
-
readonly key: StringType;
|
|
82
|
-
readonly label: StringType;
|
|
83
|
-
readonly sublabel: OptionType<StringType>;
|
|
84
|
-
}>>;
|
|
85
|
-
/** The grid columns (this day's shift types, in order) */
|
|
86
|
-
readonly shifts: ArrayType<StructType<{
|
|
87
|
-
readonly key: StringType;
|
|
88
|
-
readonly label: StringType;
|
|
89
|
-
readonly sublabel: OptionType<StringType>;
|
|
90
|
-
}>>;
|
|
91
|
-
/** The chip directory (faces), joined by person key */
|
|
92
|
-
readonly people: ArrayType<StructType<{
|
|
93
|
-
readonly key: StringType;
|
|
94
|
-
readonly label: StringType;
|
|
95
|
-
readonly sublabel: OptionType<StringType>;
|
|
96
|
-
}>>;
|
|
97
|
-
/** The person chips (grouped into cells by area × shift) */
|
|
98
|
-
readonly assignments: ArrayType<StructType<{
|
|
99
|
-
readonly key: StringType;
|
|
100
|
-
readonly person: StringType;
|
|
101
|
-
readonly area: StringType;
|
|
102
|
-
readonly shift: StringType;
|
|
103
|
-
readonly state: import("@elaraai/east").VariantType<{
|
|
104
|
-
readonly committed: NullType;
|
|
105
|
-
readonly proposed: import("@elaraai/east").VariantType<{
|
|
106
|
-
readonly added: NullType;
|
|
107
|
-
readonly model: NullType;
|
|
108
|
-
readonly removed: NullType;
|
|
109
|
-
}>;
|
|
110
|
-
readonly rejected: NullType;
|
|
111
|
-
}>;
|
|
112
|
-
}>>;
|
|
113
|
-
/** Optional per-cell coverage (none = no coverage chrome) */
|
|
114
|
-
readonly requirements: OptionType<ArrayType<StructType<{
|
|
115
|
-
readonly area: StringType;
|
|
116
|
-
readonly shift: StringType;
|
|
117
|
-
readonly required: IntegerType;
|
|
118
|
-
}>>>;
|
|
119
|
-
/** Optional density */
|
|
120
|
-
readonly density: OptionType<import("@elaraai/east").VariantType<{
|
|
121
|
-
readonly comfortable: NullType;
|
|
122
|
-
readonly compact: NullType;
|
|
123
|
-
readonly condensed: NullType;
|
|
124
|
-
}>>;
|
|
125
|
-
/** Optional per-cell chip cap before the `+N` overflow */
|
|
126
|
-
readonly maxVisible: OptionType<IntegerType>;
|
|
127
|
-
/** Uniform sizing (#320): bound the board; it scrolls within. `"fill"` fills the parent box. */
|
|
128
|
-
readonly height: OptionType<StringType>;
|
|
129
|
-
/** Uniform sizing (#320): max-height cap; content-sized up to it. */
|
|
130
|
-
readonly maxHeight: OptionType<StringType>;
|
|
131
|
-
/** Optional status-strip text (open / proposed counts) */
|
|
132
|
-
readonly summary: OptionType<StringType>;
|
|
133
|
-
/** Optional IR-level drop veto — consulted per hovered cell with the
|
|
134
|
-
* synthesized candidate event ({@link CanDropFnType} semantics); `false`
|
|
135
|
-
* ⇒ the ⊘ invalid stage and the drop is a no-op. Absent ⇒ accept. The
|
|
136
|
-
* factory's deprecated `canAssign` sugar compiles into this predicate. */
|
|
137
|
-
readonly canDrop: OptionType<FunctionType<[import("@elaraai/east").VariantType<{
|
|
138
|
-
readonly add: StructType<{
|
|
139
|
-
readonly from: StructType<{
|
|
140
|
-
readonly library: StringType;
|
|
141
|
-
readonly key: StringType;
|
|
142
|
-
}>;
|
|
143
|
-
readonly into: StructType<{
|
|
144
|
-
readonly surface: StringType;
|
|
145
|
-
readonly row: StringType;
|
|
146
|
-
readonly slot: StringType;
|
|
147
|
-
readonly event: OptionType<StringType>;
|
|
148
|
-
}>;
|
|
149
|
-
readonly duplicate: BooleanType;
|
|
150
|
-
}>;
|
|
151
|
-
readonly move: StructType<{
|
|
152
|
-
readonly from: StructType<{
|
|
153
|
-
readonly surface: StringType;
|
|
154
|
-
readonly row: StringType;
|
|
155
|
-
readonly slot: StringType;
|
|
156
|
-
readonly event: OptionType<StringType>;
|
|
157
|
-
}>;
|
|
158
|
-
readonly to: StructType<{
|
|
159
|
-
readonly surface: StringType;
|
|
160
|
-
readonly row: StringType;
|
|
161
|
-
readonly slot: StringType;
|
|
162
|
-
readonly event: OptionType<StringType>;
|
|
163
|
-
}>;
|
|
164
|
-
}>;
|
|
165
|
-
readonly remove: StructType<{
|
|
166
|
-
readonly from: StructType<{
|
|
167
|
-
readonly surface: StringType;
|
|
168
|
-
readonly row: StringType;
|
|
169
|
-
readonly slot: StringType;
|
|
170
|
-
readonly event: OptionType<StringType>;
|
|
171
|
-
}>;
|
|
172
|
-
readonly to: import("@elaraai/east").VariantType<{
|
|
173
|
-
readonly trash: NullType;
|
|
174
|
-
readonly source: NullType;
|
|
175
|
-
}>;
|
|
176
|
-
}>;
|
|
177
|
-
readonly resize: StructType<{
|
|
178
|
-
readonly event: StructType<{
|
|
179
|
-
readonly surface: StringType;
|
|
180
|
-
readonly row: StringType;
|
|
181
|
-
readonly slot: StringType;
|
|
182
|
-
readonly event: OptionType<StringType>;
|
|
183
|
-
}>;
|
|
184
|
-
readonly edge: import("@elaraai/east").VariantType<{
|
|
185
|
-
readonly start: NullType;
|
|
186
|
-
readonly end: NullType;
|
|
187
|
-
}>;
|
|
188
|
-
}>;
|
|
189
|
-
}>], BooleanType>>;
|
|
190
|
-
/** Drag funnel — add / move / remove events */
|
|
191
|
-
readonly onDrag: OptionType<FunctionType<[import("@elaraai/east").VariantType<{
|
|
192
|
-
readonly add: StructType<{
|
|
193
|
-
readonly from: StructType<{
|
|
194
|
-
readonly library: StringType;
|
|
195
|
-
readonly key: StringType;
|
|
196
|
-
}>;
|
|
197
|
-
readonly into: StructType<{
|
|
198
|
-
readonly surface: StringType;
|
|
199
|
-
readonly row: StringType;
|
|
200
|
-
readonly slot: StringType;
|
|
201
|
-
readonly event: OptionType<StringType>;
|
|
202
|
-
}>;
|
|
203
|
-
readonly duplicate: BooleanType;
|
|
204
|
-
}>;
|
|
205
|
-
readonly move: StructType<{
|
|
206
|
-
readonly from: StructType<{
|
|
207
|
-
readonly surface: StringType;
|
|
208
|
-
readonly row: StringType;
|
|
209
|
-
readonly slot: StringType;
|
|
210
|
-
readonly event: OptionType<StringType>;
|
|
211
|
-
}>;
|
|
212
|
-
readonly to: StructType<{
|
|
213
|
-
readonly surface: StringType;
|
|
214
|
-
readonly row: StringType;
|
|
215
|
-
readonly slot: StringType;
|
|
216
|
-
readonly event: OptionType<StringType>;
|
|
217
|
-
}>;
|
|
218
|
-
}>;
|
|
219
|
-
readonly remove: StructType<{
|
|
220
|
-
readonly from: StructType<{
|
|
221
|
-
readonly surface: StringType;
|
|
222
|
-
readonly row: StringType;
|
|
223
|
-
readonly slot: StringType;
|
|
224
|
-
readonly event: OptionType<StringType>;
|
|
225
|
-
}>;
|
|
226
|
-
readonly to: import("@elaraai/east").VariantType<{
|
|
227
|
-
readonly trash: NullType;
|
|
228
|
-
readonly source: NullType;
|
|
229
|
-
}>;
|
|
230
|
-
}>;
|
|
231
|
-
readonly resize: StructType<{
|
|
232
|
-
readonly event: StructType<{
|
|
233
|
-
readonly surface: StringType;
|
|
234
|
-
readonly row: StringType;
|
|
235
|
-
readonly slot: StringType;
|
|
236
|
-
readonly event: OptionType<StringType>;
|
|
237
|
-
}>;
|
|
238
|
-
readonly edge: import("@elaraai/east").VariantType<{
|
|
239
|
-
readonly start: NullType;
|
|
240
|
-
readonly end: NullType;
|
|
241
|
-
}>;
|
|
242
|
-
}>;
|
|
243
|
-
}>], NullType>>;
|
|
244
|
-
/** Assignment / cell click callback */
|
|
245
|
-
readonly onSelect: OptionType<FunctionType<[StructType<{
|
|
246
|
-
readonly surface: StringType;
|
|
247
|
-
readonly row: StringType;
|
|
248
|
-
readonly slot: StringType;
|
|
249
|
-
readonly event: OptionType<StringType>;
|
|
250
|
-
}>], NullType>>;
|
|
251
|
-
/** Ghost-assignment acceptance callback — resolves ONE proposed
|
|
252
|
-
* assignment; `review`'s batch verbs sign off the whole board. The
|
|
253
|
-
* interplay is host-owned (no implicit cascading in the component). */
|
|
254
|
-
readonly onAccept: OptionType<FunctionType<[StructType<{
|
|
255
|
-
readonly surface: StringType;
|
|
256
|
-
readonly row: StringType;
|
|
257
|
-
readonly slot: StringType;
|
|
258
|
-
readonly event: OptionType<StringType>;
|
|
259
|
-
}>], NullType>>;
|
|
260
|
-
/** Open-slot / empty-cell click callback (edit mode) */
|
|
261
|
-
readonly onAddAt: OptionType<FunctionType<[StructType<{
|
|
262
|
-
readonly surface: StringType;
|
|
263
|
-
readonly row: StringType;
|
|
264
|
-
readonly slot: StringType;
|
|
265
|
-
readonly event: OptionType<StringType>;
|
|
266
|
-
}>], NullType>>;
|
|
267
|
-
/** Optional batch review foot (#265) — the shared contract's commitBar
|
|
268
|
-
* verbs (`onApproveAll` / `onRejectAll` / `onRerun` + `summary`). Board
|
|
269
|
-
* is single-day areas × shifts, so v1 renders the FOOT only: the
|
|
270
|
-
* per-row fields (`columnLabel`, `onApprove`, `onReject`) are unused
|
|
271
|
-
* (a per-area decision column is an epic candidate); the factory warns
|
|
272
|
-
* when they are set. */
|
|
273
|
-
readonly review: OptionType<import("../../contracts/approval.js").ReviewStructType<StructType<{
|
|
274
|
-
readonly rowIndex: IntegerType;
|
|
275
|
-
}>, import("@elaraai/east").RecursiveType<import("../../component.js").UIComponentNode>>>;
|
|
276
|
-
}>;
|
|
277
|
-
/**
|
|
278
|
-
* Type representing the Board component.
|
|
279
|
-
*/
|
|
280
|
-
export type BoardRootType = typeof BoardRootType;
|
|
281
|
-
/**
|
|
282
|
-
* The struct element type of a `SubtypeExprOrValue<ArrayType<StructType>>`.
|
|
283
|
-
*/
|
|
284
|
-
export type BoardRowElement<T extends SubtypeExprOrValue<ArrayType<StructType>>> = TypeOf<T> extends ArrayType<infer S> ? (S extends StructType ? S : never) : never;
|
|
285
|
-
/**
|
|
286
|
-
* Fields the `area` / `shift` / `person` mappers return — one board entity,
|
|
287
|
-
* before defaults.
|
|
288
|
-
*
|
|
289
|
-
* @remarks
|
|
290
|
-
* The mapper returns this plain object or a full
|
|
291
|
-
* `ExprType<BoardEntityType>` when the row is already resolved.
|
|
292
|
-
*
|
|
293
|
-
* @property key - Entity identity — the key assignments reference
|
|
294
|
-
* @property label - Display name
|
|
295
|
-
* @property sublabel - Optional muted second line (e.g. wing, time window, role)
|
|
296
|
-
*/
|
|
297
|
-
export interface BoardEntityFields {
|
|
298
|
-
/** Entity identity — the key assignments reference. */
|
|
299
|
-
key: SubtypeExprOrValue<StringType>;
|
|
300
|
-
/** Display name. */
|
|
301
|
-
label: SubtypeExprOrValue<StringType>;
|
|
302
|
-
/** Optional muted second line (e.g. wing, time window, role). */
|
|
303
|
-
sublabel?: SubtypeExprOrValue<StringType>;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Fields the `assignment` mapper returns — one person chip, before defaults.
|
|
307
|
-
*
|
|
308
|
-
* @remarks
|
|
309
|
-
* Carries no display label — the chip face comes from joining `person` to
|
|
310
|
-
* the board's `people` table by key.
|
|
311
|
-
*
|
|
312
|
-
* @property key - Stable assignment identity
|
|
313
|
-
* @property person - The person key (join key into `people`)
|
|
314
|
-
* @property area - The area key — must name one of `areas`
|
|
315
|
-
* @property shift - The shift key — must name one of `shifts`
|
|
316
|
-
* @property state - The audit state (a `PlannerStateType` value)
|
|
317
|
-
*/
|
|
318
|
-
export interface BoardAssignmentFields {
|
|
319
|
-
/** Stable assignment identity. */
|
|
320
|
-
key: SubtypeExprOrValue<StringType>;
|
|
321
|
-
/** The person key (join key into `people`). */
|
|
322
|
-
person: SubtypeExprOrValue<StringType>;
|
|
323
|
-
/** The area key — must name one of `areas`. */
|
|
324
|
-
area: SubtypeExprOrValue<StringType>;
|
|
325
|
-
/** The shift key — must name one of `shifts`. */
|
|
326
|
-
shift: SubtypeExprOrValue<StringType>;
|
|
327
|
-
/** The audit state (a `PlannerStateType` value). */
|
|
328
|
-
state: SubtypeExprOrValue<PlannerStateType>;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Fields the `requirement` mapper returns — one cell's coverage, before
|
|
332
|
-
* defaults.
|
|
333
|
-
*
|
|
334
|
-
* @property area - The area key
|
|
335
|
-
* @property shift - The shift key
|
|
336
|
-
* @property required - Required headcount for the cell
|
|
337
|
-
*/
|
|
338
|
-
export interface BoardRequirementFields {
|
|
339
|
-
/** The area key. */
|
|
340
|
-
area: SubtypeExprOrValue<StringType>;
|
|
341
|
-
/** The shift key. */
|
|
342
|
-
shift: SubtypeExprOrValue<StringType>;
|
|
343
|
-
/** Required headcount for the cell. */
|
|
344
|
-
required: SubtypeExprOrValue<IntegerType>;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Configuration for {@link createBoard}.
|
|
348
|
-
*
|
|
349
|
-
* @typeParam A - The areas row struct
|
|
350
|
-
* @typeParam S - The shifts row struct
|
|
351
|
-
* @typeParam P - The people row struct
|
|
352
|
-
* @typeParam X - The assignments row struct
|
|
353
|
-
* @property id - DnD target identity
|
|
354
|
-
* @property sources - Library ids accepted for `add` drags (omit = no adds)
|
|
355
|
-
* @property mode - `published` (default) or `edit`
|
|
356
|
-
* @property area - Areas row mapper (omit when rows are already resolved)
|
|
357
|
-
* @property areaHeader - Optional frozen area column header (omit = blank)
|
|
358
|
-
* @property areaWidth - Optional CSS width for the frozen area column
|
|
359
|
-
* @property shift - Shifts row mapper (omit when rows are already resolved)
|
|
360
|
-
* @property person - People row mapper (omit when rows are already resolved)
|
|
361
|
-
* @property assignment - Assignments row mapper (omit when rows are already resolved)
|
|
362
|
-
* @property requirements - Optional coverage table (omit = no coverage chrome)
|
|
363
|
-
* @property requirement - Requirements row mapper (omit when rows are already resolved)
|
|
364
|
-
* @property density - Optional density
|
|
365
|
-
* @property maxVisible - Optional per-cell chip cap before the `+N` overflow
|
|
366
|
-
* @property summary - Optional status-strip text (open / proposed counts)
|
|
367
|
-
* @property canDrop - Optional IR-level drop veto over synthesized candidate events
|
|
368
|
-
* @property canAssign - Deprecated assignability sugar — compiled into `canDrop`
|
|
369
|
-
* @property onDrag - Drag funnel — add / move / remove events
|
|
370
|
-
* @property onSelect - Assignment / cell click callback (a drag-grammar cell ref)
|
|
371
|
-
* @property onAccept - Ghost-assignment acceptance callback
|
|
372
|
-
* @property onAddAt - Open-slot / empty-cell click callback (edit mode)
|
|
373
|
-
*/
|
|
374
|
-
export interface BoardConfig<A extends StructType, S extends StructType, P extends StructType, X extends StructType, R extends StructType = StructType> {
|
|
375
|
-
/** DnD target identity. */
|
|
376
|
-
id: string;
|
|
377
|
-
/** Library ids accepted for `add` drags (omit = no adds). */
|
|
378
|
-
sources?: string[];
|
|
379
|
-
/** `published` (default) or `edit`. */
|
|
380
|
-
mode?: SubtypeExprOrValue<BoardModeType> | BoardModeLiteral;
|
|
381
|
-
/** Areas row mapper; omit when `areas` is already `ArrayType(Board.Types.Entity)`. */
|
|
382
|
-
area?: (area: ExprType<A>) => BoardEntityFields;
|
|
383
|
-
/** Optional frozen area column header (omit = blank — the component bakes in no copy). */
|
|
384
|
-
areaHeader?: string;
|
|
385
|
-
/** Optional CSS width for the frozen area column (omit = the Planner-consistent `150px`). */
|
|
386
|
-
areaWidth?: string;
|
|
387
|
-
/** Shifts row mapper; omit when `shifts` is already `ArrayType(Board.Types.Entity)`. */
|
|
388
|
-
shift?: (shift: ExprType<S>) => BoardEntityFields;
|
|
389
|
-
/** People row mapper; omit when `people` is already `ArrayType(Board.Types.Entity)`. */
|
|
390
|
-
person?: (person: ExprType<P>) => BoardEntityFields;
|
|
391
|
-
/** Assignments row mapper; omit when `assignments` is already `ArrayType(Board.Types.Assignment)`. */
|
|
392
|
-
assignment?: (assignment: ExprType<X>) => BoardAssignmentFields;
|
|
393
|
-
/** Requirements row mapper; omit when `requirements` is already `ArrayType(Board.Types.Requirement)`. */
|
|
394
|
-
requirement?: (requirement: ExprType<R>) => BoardRequirementFields;
|
|
395
|
-
/** Optional density. */
|
|
396
|
-
density?: SubtypeExprOrValue<DensityType> | DensityLiteral;
|
|
397
|
-
/** Uniform sizing (#320): bound the component — a pixel number, `"fill"` (fill the parent box), or a CSS length; the whole component takes this height and scrolls within. */
|
|
398
|
-
height?: SubtypeExprOrValue<StringType>;
|
|
399
|
-
/** Uniform sizing (#320): max-height cap — a pixel number or CSS length; content-sized up to it. */
|
|
400
|
-
maxHeight?: SubtypeExprOrValue<StringType>;
|
|
401
|
-
/** Optional per-cell chip cap before the `+N` overflow. */
|
|
402
|
-
maxVisible?: SubtypeExprOrValue<IntegerType> | number;
|
|
403
|
-
/** Optional status-strip text (open / proposed counts). */
|
|
404
|
-
summary?: SubtypeExprOrValue<StringType>;
|
|
405
|
-
/** Optional IR-level drop veto — consulted per hovered cell with the
|
|
406
|
-
* synthesized candidate event (`CanDropFnType` semantics, see
|
|
407
|
-
* `contracts/drag.ts`); `false` ⇒ the ⊘ invalid stage and the drop is a
|
|
408
|
-
* no-op. Absent ⇒ accept. When `canAssign` is also given, both must
|
|
409
|
-
* allow. */
|
|
410
|
-
canDrop?: SubtypeExprOrValue<FunctionType<[DragEventType], BooleanType>>;
|
|
411
|
-
/** Optional assignability predicate `(person, area, shift) => Boolean` — a
|
|
412
|
-
* `false` verdict renders the invalid-drop treatment (red outline + ⊘)
|
|
413
|
-
* while dragging and vetoes the drop. Fail-open: a throwing predicate
|
|
414
|
-
* logs and allows.
|
|
415
|
-
*
|
|
416
|
-
* @deprecated Use {@link BoardConfig.canDrop} — `canAssign` is compiled
|
|
417
|
-
* into a `canDrop` predicate by the factory (an `add`'s person is the
|
|
418
|
-
* dragged card's key; a `move`'s person is resolved from the authored
|
|
419
|
-
* assignments by event key, allowing when unresolvable). It will be
|
|
420
|
-
* removed once hosts migrate. */
|
|
421
|
-
canAssign?: SubtypeExprOrValue<FunctionType<[StringType, StringType, StringType], BooleanType>>;
|
|
422
|
-
/** Drag funnel — add / move / remove events. */
|
|
423
|
-
onDrag?: SubtypeExprOrValue<FunctionType<[DragEventType], NullType>>;
|
|
424
|
-
/** Assignment / cell click callback (a drag-grammar cell ref). */
|
|
425
|
-
onSelect?: SubtypeExprOrValue<FunctionType<[CellRefType], NullType>>;
|
|
426
|
-
/** Ghost-assignment acceptance callback. */
|
|
427
|
-
onAccept?: SubtypeExprOrValue<FunctionType<[CellRefType], NullType>>;
|
|
428
|
-
/** Open-slot / empty-cell click callback (edit mode). */
|
|
429
|
-
onAddAt?: SubtypeExprOrValue<FunctionType<[CellRefType], NullType>>;
|
|
430
|
-
/** Optional batch review foot (#265) — the shared contract's commitBar
|
|
431
|
-
* verbs (`onApproveAll` / `onRejectAll` / `onRerun` + `summary`). Board
|
|
432
|
-
* v1 renders the foot only: `columnLabel` / `onApprove` / `onReject`
|
|
433
|
-
* are unused (per-area decisions are an epic candidate) and the factory
|
|
434
|
-
* warns when set. Ghost `onAccept` is unchanged and complementary. */
|
|
435
|
-
review?: ReviewConfig<RowRefType>;
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Creates a Board — single-day areas × shifts assignment scheduling.
|
|
439
|
-
*
|
|
440
|
-
* @typeParam A - The areas-table input
|
|
441
|
-
* @typeParam S - The shifts-table input
|
|
442
|
-
* @typeParam P - The people-table input
|
|
443
|
-
* @typeParam X - The assignments-table input
|
|
444
|
-
* @param areas - The area rows (one grid row each)
|
|
445
|
-
* @param shifts - The shift rows (one grid column each, in order)
|
|
446
|
-
* @param people - The people rows (chip faces, joined by the encoded person key)
|
|
447
|
-
* @param assignments - The assignment rows (grouped into cells by area × shift)
|
|
448
|
-
* @param config - The Board configuration ({@link BoardConfig})
|
|
449
|
-
* @returns An East expression of `UIComponentType`
|
|
450
|
-
*
|
|
451
|
-
* @example
|
|
452
|
-
* ```ts
|
|
453
|
-
* import { East, variant } from "@elaraai/east";
|
|
454
|
-
* import { Board, UIComponentType } from "@elaraai/east-ui";
|
|
455
|
-
*
|
|
456
|
-
* const example = East.function([], UIComponentType, _$ =>
|
|
457
|
-
* Board.Root(
|
|
458
|
-
* [{ id: "icu", name: "ICU" }],
|
|
459
|
-
* [{ id: "am", name: "AM" }],
|
|
460
|
-
* [{ id: "patel", name: "Patel, R." }],
|
|
461
|
-
* [{ id: "x1", personId: "patel", areaId: "icu", shiftId: "am", state: variant("committed", null) }],
|
|
462
|
-
* {
|
|
463
|
-
* id: "board-tue",
|
|
464
|
-
* sources: ["people"],
|
|
465
|
-
* mode: "edit",
|
|
466
|
-
* area: a => ({ key: a.id, label: a.name }),
|
|
467
|
-
* shift: s => ({ key: s.id, label: s.name }),
|
|
468
|
-
* person: p => ({ key: p.id, label: p.name }),
|
|
469
|
-
* assignment: x => ({ key: x.id, person: x.personId, area: x.areaId,
|
|
470
|
-
* shift: x.shiftId, state: x.state }),
|
|
471
|
-
* },
|
|
472
|
-
* ),
|
|
473
|
-
* );
|
|
474
|
-
* ```
|
|
475
|
-
*/
|
|
476
|
-
declare function createBoard<A extends SubtypeExprOrValue<ArrayType<StructType>>, S extends SubtypeExprOrValue<ArrayType<StructType>>, P extends SubtypeExprOrValue<ArrayType<StructType>>, X extends SubtypeExprOrValue<ArrayType<StructType>>, R extends SubtypeExprOrValue<ArrayType<StructType>> = []>(areas: A, shifts: S, people: P, assignments: X, config: BoardConfig<BoardRowElement<A>, BoardRowElement<S>, BoardRowElement<P>, BoardRowElement<X>, BoardRowElement<R>> & {
|
|
477
|
-
requirements?: R;
|
|
478
|
-
}): ExprType<UIComponentType>;
|
|
479
|
-
/**
|
|
480
|
-
* Board component namespace.
|
|
481
|
-
*
|
|
482
|
-
* @remarks
|
|
483
|
-
* `Board.Root(areas, shifts, people, assignments, config)` builds the
|
|
484
|
-
* single-day grid from the flat tables; assignment states reuse the Planner
|
|
485
|
-
* event-state grammar (`Board.Types.State`), so data carries typed
|
|
486
|
-
* `variant(...)` values.
|
|
487
|
-
*/
|
|
488
|
-
export declare const Board: {
|
|
489
|
-
/**
|
|
490
|
-
* Creates a Board — single-day areas × shifts assignment scheduling with
|
|
491
|
-
* the drag & drop target role.
|
|
492
|
-
*
|
|
493
|
-
* @typeParam A - The areas-table input
|
|
494
|
-
* @typeParam S - The shifts-table input
|
|
495
|
-
* @typeParam P - The people-table input
|
|
496
|
-
* @typeParam X - The assignments-table input
|
|
497
|
-
* @param areas - The area rows (one grid row each)
|
|
498
|
-
* @param shifts - The shift rows (one grid column each, in order)
|
|
499
|
-
* @param people - The people rows (chip faces, joined by the encoded person key)
|
|
500
|
-
* @param assignments - The assignment rows (grouped into cells by area × shift)
|
|
501
|
-
* @param config - The Board configuration ({@link BoardConfig})
|
|
502
|
-
* @returns An East expression of `UIComponentType`
|
|
503
|
-
*
|
|
504
|
-
* @remarks
|
|
505
|
-
* Published mode renders committed assignments only, pointer-immutable;
|
|
506
|
-
* edit mode enables drag handles on proposed assignments, open-slot /
|
|
507
|
-
* empty-cell add, and ghost acceptance. Dropping a person onto a cell
|
|
508
|
-
* that already holds them is a no-op (the duplicate-person guard); the
|
|
509
|
-
* same person in different cells is legal — host policy. Cross-area
|
|
510
|
-
* moves arrive as plain `move` events — the host derives any swap
|
|
511
|
-
* representation from `from.row ≠ to.row`.
|
|
512
|
-
*
|
|
513
|
-
* @example
|
|
514
|
-
* ```ts
|
|
515
|
-
* import { East, variant } from "@elaraai/east";
|
|
516
|
-
* import { Board, UIComponentType } from "@elaraai/east-ui";
|
|
517
|
-
*
|
|
518
|
-
* const example = East.function([], UIComponentType, _$ =>
|
|
519
|
-
* Board.Root(
|
|
520
|
-
* [{ id: "icu", name: "ICU" }],
|
|
521
|
-
* [{ id: "am", name: "AM" }],
|
|
522
|
-
* [{ id: "patel", name: "Patel, R." }],
|
|
523
|
-
* [{ id: "x1", personId: "patel", areaId: "icu", shiftId: "am", state: variant("committed", null) }],
|
|
524
|
-
* {
|
|
525
|
-
* id: "board-tue",
|
|
526
|
-
* area: a => ({ key: a.id, label: a.name }),
|
|
527
|
-
* shift: s => ({ key: s.id, label: s.name }),
|
|
528
|
-
* person: p => ({ key: p.id, label: p.name }),
|
|
529
|
-
* assignment: x => ({ key: x.id, person: x.personId, area: x.areaId,
|
|
530
|
-
* shift: x.shiftId, state: x.state }),
|
|
531
|
-
* },
|
|
532
|
-
* ),
|
|
533
|
-
* );
|
|
534
|
-
* ```
|
|
535
|
-
*/
|
|
536
|
-
readonly Root: typeof createBoard;
|
|
537
|
-
readonly Types: {
|
|
538
|
-
/**
|
|
539
|
-
* East StructType for the Board component.
|
|
540
|
-
*
|
|
541
|
-
* @remarks
|
|
542
|
-
* Flat resolved tables; the renderer groups assignments into cells
|
|
543
|
-
* by `area × shift` and joins each to `people` by person key. See
|
|
544
|
-
* {@link BoardRootType} for per-field docs.
|
|
545
|
-
*
|
|
546
|
-
* @property id - DnD target identity
|
|
547
|
-
* @property sources - Library ids accepted for `add` drags
|
|
548
|
-
* @property mode - `published` or `edit`
|
|
549
|
-
* @property areaHeader - Optional frozen area column header
|
|
550
|
-
* @property areas - The grid rows
|
|
551
|
-
* @property shifts - The grid columns, in order
|
|
552
|
-
* @property people - The chip directory (faces)
|
|
553
|
-
* @property assignments - The person chips
|
|
554
|
-
* @property requirements - Optional per-cell coverage
|
|
555
|
-
* @property density - Optional density
|
|
556
|
-
* @property maxVisible - Optional per-cell chip cap
|
|
557
|
-
* @property summary - Optional status-strip text
|
|
558
|
-
* @property onDrag - Drag funnel
|
|
559
|
-
* @property onSelect - Assignment / cell click callback
|
|
560
|
-
* @property onAccept - Ghost acceptance callback
|
|
561
|
-
* @property onAddAt - Open-slot / empty-cell click callback
|
|
562
|
-
*/
|
|
563
|
-
readonly Board: StructType<{
|
|
564
|
-
/** DnD target identity */
|
|
565
|
-
readonly id: StringType;
|
|
566
|
-
/** Library ids accepted for `add` drags */
|
|
567
|
-
readonly sources: ArrayType<StringType>;
|
|
568
|
-
/** `published` (committed-only, immutable) or `edit` */
|
|
569
|
-
readonly mode: import("@elaraai/east").VariantType<{
|
|
570
|
-
readonly published: NullType;
|
|
571
|
-
readonly edit: NullType;
|
|
572
|
-
}>;
|
|
573
|
-
/** Optional frozen area column header (none = blank) */
|
|
574
|
-
readonly areaHeader: OptionType<StringType>;
|
|
575
|
-
/** Optional CSS width for the frozen area column (none = the Planner-consistent 150px) */
|
|
576
|
-
readonly areaWidth: OptionType<StringType>;
|
|
577
|
-
/** The grid rows */
|
|
578
|
-
readonly areas: ArrayType<StructType<{
|
|
579
|
-
readonly key: StringType;
|
|
580
|
-
readonly label: StringType;
|
|
581
|
-
readonly sublabel: OptionType<StringType>;
|
|
582
|
-
}>>;
|
|
583
|
-
/** The grid columns (this day's shift types, in order) */
|
|
584
|
-
readonly shifts: ArrayType<StructType<{
|
|
585
|
-
readonly key: StringType;
|
|
586
|
-
readonly label: StringType;
|
|
587
|
-
readonly sublabel: OptionType<StringType>;
|
|
588
|
-
}>>;
|
|
589
|
-
/** The chip directory (faces), joined by person key */
|
|
590
|
-
readonly people: ArrayType<StructType<{
|
|
591
|
-
readonly key: StringType;
|
|
592
|
-
readonly label: StringType;
|
|
593
|
-
readonly sublabel: OptionType<StringType>;
|
|
594
|
-
}>>;
|
|
595
|
-
/** The person chips (grouped into cells by area × shift) */
|
|
596
|
-
readonly assignments: ArrayType<StructType<{
|
|
597
|
-
readonly key: StringType;
|
|
598
|
-
readonly person: StringType;
|
|
599
|
-
readonly area: StringType;
|
|
600
|
-
readonly shift: StringType;
|
|
601
|
-
readonly state: import("@elaraai/east").VariantType<{
|
|
602
|
-
readonly committed: NullType;
|
|
603
|
-
readonly proposed: import("@elaraai/east").VariantType<{
|
|
604
|
-
readonly added: NullType;
|
|
605
|
-
readonly model: NullType;
|
|
606
|
-
readonly removed: NullType;
|
|
607
|
-
}>;
|
|
608
|
-
readonly rejected: NullType;
|
|
609
|
-
}>;
|
|
610
|
-
}>>;
|
|
611
|
-
/** Optional per-cell coverage (none = no coverage chrome) */
|
|
612
|
-
readonly requirements: OptionType<ArrayType<StructType<{
|
|
613
|
-
readonly area: StringType;
|
|
614
|
-
readonly shift: StringType;
|
|
615
|
-
readonly required: IntegerType;
|
|
616
|
-
}>>>;
|
|
617
|
-
/** Optional density */
|
|
618
|
-
readonly density: OptionType<import("@elaraai/east").VariantType<{
|
|
619
|
-
readonly comfortable: NullType;
|
|
620
|
-
readonly compact: NullType;
|
|
621
|
-
readonly condensed: NullType;
|
|
622
|
-
}>>;
|
|
623
|
-
/** Optional per-cell chip cap before the `+N` overflow */
|
|
624
|
-
readonly maxVisible: OptionType<IntegerType>;
|
|
625
|
-
/** Uniform sizing (#320): bound the board; it scrolls within. `"fill"` fills the parent box. */
|
|
626
|
-
readonly height: OptionType<StringType>;
|
|
627
|
-
/** Uniform sizing (#320): max-height cap; content-sized up to it. */
|
|
628
|
-
readonly maxHeight: OptionType<StringType>;
|
|
629
|
-
/** Optional status-strip text (open / proposed counts) */
|
|
630
|
-
readonly summary: OptionType<StringType>;
|
|
631
|
-
/** Optional IR-level drop veto — consulted per hovered cell with the
|
|
632
|
-
* synthesized candidate event ({@link CanDropFnType} semantics); `false`
|
|
633
|
-
* ⇒ the ⊘ invalid stage and the drop is a no-op. Absent ⇒ accept. The
|
|
634
|
-
* factory's deprecated `canAssign` sugar compiles into this predicate. */
|
|
635
|
-
readonly canDrop: OptionType<FunctionType<[import("@elaraai/east").VariantType<{
|
|
636
|
-
readonly add: StructType<{
|
|
637
|
-
readonly from: StructType<{
|
|
638
|
-
readonly library: StringType;
|
|
639
|
-
readonly key: StringType;
|
|
640
|
-
}>;
|
|
641
|
-
readonly into: StructType<{
|
|
642
|
-
readonly surface: StringType;
|
|
643
|
-
readonly row: StringType;
|
|
644
|
-
readonly slot: StringType;
|
|
645
|
-
readonly event: OptionType<StringType>;
|
|
646
|
-
}>;
|
|
647
|
-
readonly duplicate: BooleanType;
|
|
648
|
-
}>;
|
|
649
|
-
readonly move: StructType<{
|
|
650
|
-
readonly from: StructType<{
|
|
651
|
-
readonly surface: StringType;
|
|
652
|
-
readonly row: StringType;
|
|
653
|
-
readonly slot: StringType;
|
|
654
|
-
readonly event: OptionType<StringType>;
|
|
655
|
-
}>;
|
|
656
|
-
readonly to: StructType<{
|
|
657
|
-
readonly surface: StringType;
|
|
658
|
-
readonly row: StringType;
|
|
659
|
-
readonly slot: StringType;
|
|
660
|
-
readonly event: OptionType<StringType>;
|
|
661
|
-
}>;
|
|
662
|
-
}>;
|
|
663
|
-
readonly remove: StructType<{
|
|
664
|
-
readonly from: StructType<{
|
|
665
|
-
readonly surface: StringType;
|
|
666
|
-
readonly row: StringType;
|
|
667
|
-
readonly slot: StringType;
|
|
668
|
-
readonly event: OptionType<StringType>;
|
|
669
|
-
}>;
|
|
670
|
-
readonly to: import("@elaraai/east").VariantType<{
|
|
671
|
-
readonly trash: NullType;
|
|
672
|
-
readonly source: NullType;
|
|
673
|
-
}>;
|
|
674
|
-
}>;
|
|
675
|
-
readonly resize: StructType<{
|
|
676
|
-
readonly event: StructType<{
|
|
677
|
-
readonly surface: StringType;
|
|
678
|
-
readonly row: StringType;
|
|
679
|
-
readonly slot: StringType;
|
|
680
|
-
readonly event: OptionType<StringType>;
|
|
681
|
-
}>;
|
|
682
|
-
readonly edge: import("@elaraai/east").VariantType<{
|
|
683
|
-
readonly start: NullType;
|
|
684
|
-
readonly end: NullType;
|
|
685
|
-
}>;
|
|
686
|
-
}>;
|
|
687
|
-
}>], BooleanType>>;
|
|
688
|
-
/** Drag funnel — add / move / remove events */
|
|
689
|
-
readonly onDrag: OptionType<FunctionType<[import("@elaraai/east").VariantType<{
|
|
690
|
-
readonly add: StructType<{
|
|
691
|
-
readonly from: StructType<{
|
|
692
|
-
readonly library: StringType;
|
|
693
|
-
readonly key: StringType;
|
|
694
|
-
}>;
|
|
695
|
-
readonly into: StructType<{
|
|
696
|
-
readonly surface: StringType;
|
|
697
|
-
readonly row: StringType;
|
|
698
|
-
readonly slot: StringType;
|
|
699
|
-
readonly event: OptionType<StringType>;
|
|
700
|
-
}>;
|
|
701
|
-
readonly duplicate: BooleanType;
|
|
702
|
-
}>;
|
|
703
|
-
readonly move: StructType<{
|
|
704
|
-
readonly from: StructType<{
|
|
705
|
-
readonly surface: StringType;
|
|
706
|
-
readonly row: StringType;
|
|
707
|
-
readonly slot: StringType;
|
|
708
|
-
readonly event: OptionType<StringType>;
|
|
709
|
-
}>;
|
|
710
|
-
readonly to: StructType<{
|
|
711
|
-
readonly surface: StringType;
|
|
712
|
-
readonly row: StringType;
|
|
713
|
-
readonly slot: StringType;
|
|
714
|
-
readonly event: OptionType<StringType>;
|
|
715
|
-
}>;
|
|
716
|
-
}>;
|
|
717
|
-
readonly remove: StructType<{
|
|
718
|
-
readonly from: StructType<{
|
|
719
|
-
readonly surface: StringType;
|
|
720
|
-
readonly row: StringType;
|
|
721
|
-
readonly slot: StringType;
|
|
722
|
-
readonly event: OptionType<StringType>;
|
|
723
|
-
}>;
|
|
724
|
-
readonly to: import("@elaraai/east").VariantType<{
|
|
725
|
-
readonly trash: NullType;
|
|
726
|
-
readonly source: NullType;
|
|
727
|
-
}>;
|
|
728
|
-
}>;
|
|
729
|
-
readonly resize: StructType<{
|
|
730
|
-
readonly event: StructType<{
|
|
731
|
-
readonly surface: StringType;
|
|
732
|
-
readonly row: StringType;
|
|
733
|
-
readonly slot: StringType;
|
|
734
|
-
readonly event: OptionType<StringType>;
|
|
735
|
-
}>;
|
|
736
|
-
readonly edge: import("@elaraai/east").VariantType<{
|
|
737
|
-
readonly start: NullType;
|
|
738
|
-
readonly end: NullType;
|
|
739
|
-
}>;
|
|
740
|
-
}>;
|
|
741
|
-
}>], NullType>>;
|
|
742
|
-
/** Assignment / cell click callback */
|
|
743
|
-
readonly onSelect: OptionType<FunctionType<[StructType<{
|
|
744
|
-
readonly surface: StringType;
|
|
745
|
-
readonly row: StringType;
|
|
746
|
-
readonly slot: StringType;
|
|
747
|
-
readonly event: OptionType<StringType>;
|
|
748
|
-
}>], NullType>>;
|
|
749
|
-
/** Ghost-assignment acceptance callback — resolves ONE proposed
|
|
750
|
-
* assignment; `review`'s batch verbs sign off the whole board. The
|
|
751
|
-
* interplay is host-owned (no implicit cascading in the component). */
|
|
752
|
-
readonly onAccept: OptionType<FunctionType<[StructType<{
|
|
753
|
-
readonly surface: StringType;
|
|
754
|
-
readonly row: StringType;
|
|
755
|
-
readonly slot: StringType;
|
|
756
|
-
readonly event: OptionType<StringType>;
|
|
757
|
-
}>], NullType>>;
|
|
758
|
-
/** Open-slot / empty-cell click callback (edit mode) */
|
|
759
|
-
readonly onAddAt: OptionType<FunctionType<[StructType<{
|
|
760
|
-
readonly surface: StringType;
|
|
761
|
-
readonly row: StringType;
|
|
762
|
-
readonly slot: StringType;
|
|
763
|
-
readonly event: OptionType<StringType>;
|
|
764
|
-
}>], NullType>>;
|
|
765
|
-
/** Optional batch review foot (#265) — the shared contract's commitBar
|
|
766
|
-
* verbs (`onApproveAll` / `onRejectAll` / `onRerun` + `summary`). Board
|
|
767
|
-
* is single-day areas × shifts, so v1 renders the FOOT only: the
|
|
768
|
-
* per-row fields (`columnLabel`, `onApprove`, `onReject`) are unused
|
|
769
|
-
* (a per-area decision column is an epic candidate); the factory warns
|
|
770
|
-
* when they are set. */
|
|
771
|
-
readonly review: OptionType<import("../../contracts/approval.js").ReviewStructType<StructType<{
|
|
772
|
-
readonly rowIndex: IntegerType;
|
|
773
|
-
}>, import("@elaraai/east").RecursiveType<import("../../component.js").UIComponentNode>>>;
|
|
774
|
-
}>;
|
|
775
|
-
/** The review configuration — the shared `RowReviewType`; Board v1 renders the batch foot only (#265). */
|
|
776
|
-
readonly Review: import("../../contracts/approval.js").ReviewStructType<StructType<{
|
|
777
|
-
readonly rowIndex: IntegerType;
|
|
778
|
-
}>, import("@elaraai/east").RecursiveType<import("../../component.js").UIComponentNode>>;
|
|
779
|
-
/**
|
|
780
|
-
* Board render mode (`published` / `edit`).
|
|
781
|
-
*
|
|
782
|
-
* @property published - Committed-only, pointer-immutable
|
|
783
|
-
* @property edit - Operator + model proposals are interactive
|
|
784
|
-
*/
|
|
785
|
-
readonly Mode: import("@elaraai/east").VariantType<{
|
|
786
|
-
readonly published: NullType;
|
|
787
|
-
readonly edit: NullType;
|
|
788
|
-
}>;
|
|
789
|
-
/**
|
|
790
|
-
* A resolved board entity — area row, shift column, or person face.
|
|
791
|
-
*
|
|
792
|
-
* @property key - Entity identity — the key assignments reference
|
|
793
|
-
* @property label - Display name
|
|
794
|
-
* @property sublabel - Optional muted second line
|
|
795
|
-
*/
|
|
796
|
-
readonly Entity: StructType<{
|
|
797
|
-
readonly key: StringType;
|
|
798
|
-
readonly label: StringType;
|
|
799
|
-
readonly sublabel: OptionType<StringType>;
|
|
800
|
-
}>;
|
|
801
|
-
/**
|
|
802
|
-
* A resolved assignment — one person chip in one (area, shift) cell.
|
|
803
|
-
*
|
|
804
|
-
* @property key - Stable assignment identity
|
|
805
|
-
* @property person - The person key (joined for the chip face)
|
|
806
|
-
* @property area - The area key (the grid row)
|
|
807
|
-
* @property shift - The shift key (the grid column)
|
|
808
|
-
* @property state - The audit state
|
|
809
|
-
*/
|
|
810
|
-
readonly Assignment: StructType<{
|
|
811
|
-
readonly key: StringType;
|
|
812
|
-
readonly person: StringType;
|
|
813
|
-
readonly area: StringType;
|
|
814
|
-
readonly shift: StringType;
|
|
815
|
-
readonly state: import("@elaraai/east").VariantType<{
|
|
816
|
-
readonly committed: NullType;
|
|
817
|
-
readonly proposed: import("@elaraai/east").VariantType<{
|
|
818
|
-
readonly added: NullType;
|
|
819
|
-
readonly model: NullType;
|
|
820
|
-
readonly removed: NullType;
|
|
821
|
-
}>;
|
|
822
|
-
readonly rejected: NullType;
|
|
823
|
-
}>;
|
|
824
|
-
}>;
|
|
825
|
-
/**
|
|
826
|
-
* A resolved coverage requirement for one (area, shift) cell.
|
|
827
|
-
*
|
|
828
|
-
* @property area - The area key
|
|
829
|
-
* @property shift - The shift key
|
|
830
|
-
* @property required - Required headcount for the cell
|
|
831
|
-
*/
|
|
832
|
-
readonly Requirement: StructType<{
|
|
833
|
-
readonly area: StringType;
|
|
834
|
-
readonly shift: StringType;
|
|
835
|
-
readonly required: IntegerType;
|
|
836
|
-
}>;
|
|
837
|
-
/**
|
|
838
|
-
* The shared event-state grammar (committed / proposed / rejected).
|
|
839
|
-
*
|
|
840
|
-
* @property committed - A published assignment
|
|
841
|
-
* @property proposed - A proposal (`added` / `model` / `removed`)
|
|
842
|
-
* @property rejected - A rejected proposal
|
|
843
|
-
*/
|
|
844
|
-
readonly State: import("@elaraai/east").VariantType<{
|
|
845
|
-
readonly committed: NullType;
|
|
846
|
-
readonly proposed: import("@elaraai/east").VariantType<{
|
|
847
|
-
readonly added: NullType;
|
|
848
|
-
readonly model: NullType;
|
|
849
|
-
readonly removed: NullType;
|
|
850
|
-
}>;
|
|
851
|
-
readonly rejected: NullType;
|
|
852
|
-
}>;
|
|
853
|
-
};
|
|
854
|
-
};
|
|
855
|
-
//# sourceMappingURL=index.d.ts.map
|