@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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collections/roster/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,MAAM,EAMX,SAAS,EACT,KAAK,WAAW,EAChB,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAA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;;QAEH;;;;;;WAMG;;;;;;;;;;;CAGD,CAAC"}
|
|
@@ -1,325 +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
|
-
* `Roster` — people-on-shifts scheduling: a people × days-of-week grid of
|
|
7
|
-
* shift chips under the shared event-state grammar (committed / proposed /
|
|
8
|
-
* rejected, with the `model` flavour rendering as a dashed ghost). Takes the
|
|
9
|
-
* two flat tables a dataset naturally provides — people and shifts — each
|
|
10
|
-
* with a chart-style field encoding; the factory joins them by person key.
|
|
11
|
-
* The component owns the week: `days` defaults to Mon–Sun.
|
|
12
|
-
*
|
|
13
|
-
* Declares the drag & drop **target** role: `id` + `sources` connect it to
|
|
14
|
-
* sibling Libraries, and every completed drag (add / move / remove) funnels
|
|
15
|
-
* through one `onDrag` callback as a `DragEventType` value.
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import { East, Expr, variant, some, none, ArrayType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, } from "@elaraai/east";
|
|
20
|
-
import { UIComponentType } from "../../component.js";
|
|
21
|
-
import { mapRows } from "../../shared/reify.js";
|
|
22
|
-
import { DensityType } from "../../style/interaction.js";
|
|
23
|
-
import { CellRefType, DragEventType } from "../../contracts/drag.js";
|
|
24
|
-
import { PlannerStateType } from "../../contracts/states.js";
|
|
25
|
-
import { RosterModeType, RosterPersonType, RosterShiftType, } from "./types.js";
|
|
26
|
-
import { CanDropFnType } from "../../contracts/drag.js";
|
|
27
|
-
import { ApprovalStateType, RowRefType, RowReviewType, buildReview } from "../../contracts/review.js";
|
|
28
|
-
import { StatusValueType } from "../../feedback/status/types.js";
|
|
29
|
-
// Re-export types
|
|
30
|
-
export { RosterModeType, RosterPersonType, RosterShiftType, } from "./types.js";
|
|
31
|
-
/**
|
|
32
|
-
* East StructType for the Roster component.
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* Flat resolved tables — the renderer groups shifts into cells by
|
|
36
|
-
* `person × day`. Shift states reuse the Planner event-state grammar
|
|
37
|
-
* ({@link PlannerStateType}); the `model` flavour renders as the dashed
|
|
38
|
-
* ghost with the acceptance affordance. Defined here (not `types.ts`)
|
|
39
|
-
* since #265: the root carries the shared review config, whose `summary`
|
|
40
|
-
* is a `UIComponentType` — `component.ts` mirrors this arm inline with the
|
|
41
|
-
* recursion `node`.
|
|
42
|
-
*
|
|
43
|
-
* @property id - DnD target identity
|
|
44
|
-
* @property sources - Library ids accepted for `add` drags
|
|
45
|
-
* @property mode - `published` (committed-only, immutable) or `edit`
|
|
46
|
-
* @property days - The day columns, in order
|
|
47
|
-
* @property personHeader - The frozen person column's header
|
|
48
|
-
* @property personWidth - Optional CSS width for the frozen person column
|
|
49
|
-
* @property people - The grid rows
|
|
50
|
-
* @property shifts - The shift chips (joined to people by person key)
|
|
51
|
-
* @property density - Optional density
|
|
52
|
-
* @property summary - Optional status-strip text (dirty / ghost counts)
|
|
53
|
-
* @property onDrag - Drag funnel — add / move / remove events
|
|
54
|
-
* @property canDrop - Optional IR-level drop veto over synthesized candidate events
|
|
55
|
-
* @property onSelect - Shift / cell click callback
|
|
56
|
-
* @property onAccept - Ghost-shift acceptance callback (ONE proposed shift)
|
|
57
|
-
* @property onAddAt - Empty-cell click callback (edit mode)
|
|
58
|
-
* @property review - Optional row-level review chrome (shared contract, #265)
|
|
59
|
-
*/
|
|
60
|
-
export const RosterRootType = StructType({
|
|
61
|
-
/** DnD target identity */
|
|
62
|
-
id: StringType,
|
|
63
|
-
/** Library ids accepted for `add` drags */
|
|
64
|
-
sources: ArrayType(StringType),
|
|
65
|
-
/** `published` (committed-only, immutable) or `edit` */
|
|
66
|
-
mode: RosterModeType,
|
|
67
|
-
/** The day columns, in order */
|
|
68
|
-
days: ArrayType(StringType),
|
|
69
|
-
/** The frozen person column's header */
|
|
70
|
-
personHeader: StringType,
|
|
71
|
-
/** Optional CSS width for the frozen person column (none = the Planner-consistent 150px) */
|
|
72
|
-
personWidth: OptionType(StringType),
|
|
73
|
-
/** The grid rows */
|
|
74
|
-
people: ArrayType(RosterPersonType),
|
|
75
|
-
/** The shift chips (joined to people by person key) */
|
|
76
|
-
shifts: ArrayType(RosterShiftType),
|
|
77
|
-
/** Optional density */
|
|
78
|
-
density: OptionType(DensityType),
|
|
79
|
-
/** Uniform sizing (#320): bound the grid; it scrolls within. `"fill"` fills the parent box. */
|
|
80
|
-
height: OptionType(StringType),
|
|
81
|
-
/** Uniform sizing (#320): max-height cap; content-sized up to it. */
|
|
82
|
-
maxHeight: OptionType(StringType),
|
|
83
|
-
/** Optional status-strip text (dirty / ghost counts) */
|
|
84
|
-
summary: OptionType(StringType),
|
|
85
|
-
/** Drag funnel — add / move / remove events */
|
|
86
|
-
onDrag: OptionType(FunctionType([DragEventType], NullType)),
|
|
87
|
-
/** Optional IR-level drop veto — consulted per hovered cell with the
|
|
88
|
-
* synthesized candidate event (`CanDropFnType` semantics); `false`
|
|
89
|
-
* ⇒ the ⊘ invalid stage and the drop is a no-op. Absent ⇒ accept. */
|
|
90
|
-
canDrop: OptionType(CanDropFnType),
|
|
91
|
-
/** Shift / cell click callback */
|
|
92
|
-
onSelect: OptionType(FunctionType([CellRefType], NullType)),
|
|
93
|
-
/** Ghost-shift acceptance callback — resolves ONE proposed shift. The
|
|
94
|
-
* granularity contract (#265): `onAccept(CellRef)` is the *item*-level
|
|
95
|
-
* call; `review.onApprove({ rowIndex })` signs off a LINE. The interplay
|
|
96
|
-
* is host-owned — the component reports, the host decides whether
|
|
97
|
-
* row-approval implies accepting the row's ghosts (no implicit
|
|
98
|
-
* cascading in the component). */
|
|
99
|
-
onAccept: OptionType(FunctionType([CellRefType], NullType)),
|
|
100
|
-
/** Empty-cell click callback (edit mode) */
|
|
101
|
-
onAddAt: OptionType(FunctionType([CellRefType], NullType)),
|
|
102
|
-
/** Optional row-level review chrome (#265) — the shared contract's
|
|
103
|
-
* Decision column + commitBar foot; rows are people. Absent ⇒ a plain
|
|
104
|
-
* Roster (people `status`/`approval` are inert). Composes with — does
|
|
105
|
-
* not replace — per-tile ghost `onAccept`. */
|
|
106
|
-
review: OptionType(RowReviewType),
|
|
107
|
-
});
|
|
108
|
-
/** The default week. */
|
|
109
|
-
const WEEK = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
110
|
-
function buildRoot(people, shifts, config) {
|
|
111
|
-
const personMapper = config.person;
|
|
112
|
-
const resolvedPeople = personMapper === undefined
|
|
113
|
-
? East.value(people, ArrayType(RosterPersonType))
|
|
114
|
-
: mapRows(East.value(people), RosterPersonType, (row) => {
|
|
115
|
-
const r = personMapper(row);
|
|
116
|
-
if (r instanceof Expr)
|
|
117
|
-
return East.value(r, RosterPersonType);
|
|
118
|
-
return East.value({
|
|
119
|
-
key: r.key,
|
|
120
|
-
label: r.label,
|
|
121
|
-
sublabel: r.sublabel !== undefined ? some(r.sublabel) : none,
|
|
122
|
-
status: r.status !== undefined
|
|
123
|
-
? East.value(r.status, OptionType(StatusValueType))
|
|
124
|
-
: none,
|
|
125
|
-
approval: r.approval !== undefined
|
|
126
|
-
? East.value(r.approval, OptionType(ApprovalStateType))
|
|
127
|
-
: none,
|
|
128
|
-
}, RosterPersonType);
|
|
129
|
-
});
|
|
130
|
-
const shiftMapper = config.shift;
|
|
131
|
-
const resolvedShifts = shiftMapper === undefined
|
|
132
|
-
? East.value(shifts, ArrayType(RosterShiftType))
|
|
133
|
-
: mapRows(East.value(shifts), RosterShiftType, (row) => {
|
|
134
|
-
const r = shiftMapper(row);
|
|
135
|
-
if (r instanceof Expr)
|
|
136
|
-
return East.value(r, RosterShiftType);
|
|
137
|
-
if (r.hours === undefined && r.label === undefined) {
|
|
138
|
-
throw new Error("Roster shift fields require `hours` or `label`");
|
|
139
|
-
}
|
|
140
|
-
return East.value({
|
|
141
|
-
key: r.key,
|
|
142
|
-
person: r.person,
|
|
143
|
-
day: r.day,
|
|
144
|
-
label: r.label !== undefined
|
|
145
|
-
? r.label
|
|
146
|
-
: East.str `${East.value(r.hours, IntegerType)}h`,
|
|
147
|
-
state: r.state,
|
|
148
|
-
}, RosterShiftType);
|
|
149
|
-
});
|
|
150
|
-
const mode = config.mode !== undefined
|
|
151
|
-
? (typeof config.mode === "string" ? East.value(variant(config.mode, null), RosterModeType) : config.mode)
|
|
152
|
-
: East.value(variant("published", null), RosterModeType);
|
|
153
|
-
const density = config.density !== undefined
|
|
154
|
-
? some(typeof config.density === "string" ? East.value(variant(config.density, null), DensityType) : config.density)
|
|
155
|
-
: none;
|
|
156
|
-
return East.value(variant("Roster", {
|
|
157
|
-
id: config.id,
|
|
158
|
-
sources: East.value(config.sources ?? [], ArrayType(StringType)),
|
|
159
|
-
mode,
|
|
160
|
-
days: East.value(config.days ?? WEEK, ArrayType(StringType)),
|
|
161
|
-
personHeader: config.personHeader ?? "Operator",
|
|
162
|
-
personWidth: config.personWidth !== undefined ? some(config.personWidth) : none,
|
|
163
|
-
people: resolvedPeople,
|
|
164
|
-
shifts: resolvedShifts,
|
|
165
|
-
density,
|
|
166
|
-
height: config.height !== undefined ? some(config.height) : none,
|
|
167
|
-
maxHeight: config.maxHeight !== undefined ? some(config.maxHeight) : none,
|
|
168
|
-
summary: config.summary !== undefined ? some(config.summary) : none,
|
|
169
|
-
onDrag: config.onDrag !== undefined ? some(config.onDrag) : none,
|
|
170
|
-
canDrop: config.canDrop !== undefined ? some(config.canDrop) : none,
|
|
171
|
-
onSelect: config.onSelect !== undefined ? some(config.onSelect) : none,
|
|
172
|
-
onAccept: config.onAccept !== undefined ? some(config.onAccept) : none,
|
|
173
|
-
onAddAt: config.onAddAt !== undefined ? some(config.onAddAt) : none,
|
|
174
|
-
review: config.review !== undefined ? some(buildReview(config.review, RowReviewType)) : none,
|
|
175
|
-
}), UIComponentType);
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Creates a Roster — people × days-of-week shift scheduling.
|
|
179
|
-
*
|
|
180
|
-
* @typeParam P - The people-table input
|
|
181
|
-
* @typeParam S - The shifts-table input
|
|
182
|
-
* @param people - The people rows (one grid row each)
|
|
183
|
-
* @param shifts - The shift rows (joined to people by the encoded person key)
|
|
184
|
-
* @param config - The Roster configuration ({@link RosterConfig})
|
|
185
|
-
* @returns An East expression of `UIComponentType`
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```ts
|
|
189
|
-
* import { East, variant } from "@elaraai/east";
|
|
190
|
-
* import { Roster, UIComponentType } from "@elaraai/east-ui";
|
|
191
|
-
*
|
|
192
|
-
* const example = East.function([], UIComponentType, _$ =>
|
|
193
|
-
* Roster.Root(
|
|
194
|
-
* [{ id: "patel", name: "Patel" }],
|
|
195
|
-
* [{ id: "p1", person: "patel", day: "Mon", hours: 8n, state: variant("committed", null) }],
|
|
196
|
-
* {
|
|
197
|
-
* id: "roster-se",
|
|
198
|
-
* sources: ["people"],
|
|
199
|
-
* mode: "edit",
|
|
200
|
-
* person: p => ({ key: p.id, label: p.name }),
|
|
201
|
-
* shift: s => ({ key: s.id, person: s.person, day: s.day,
|
|
202
|
-
* hours: s.hours, state: s.state }),
|
|
203
|
-
* },
|
|
204
|
-
* ),
|
|
205
|
-
* );
|
|
206
|
-
* ```
|
|
207
|
-
*/
|
|
208
|
-
function createRoster(people, shifts, config) {
|
|
209
|
-
return buildRoot(people, shifts, config);
|
|
210
|
-
}
|
|
211
|
-
// ============================================================================
|
|
212
|
-
// Namespace export
|
|
213
|
-
// ============================================================================
|
|
214
|
-
/**
|
|
215
|
-
* Roster component namespace.
|
|
216
|
-
*
|
|
217
|
-
* @remarks
|
|
218
|
-
* `Roster.Root(people, shifts, config)` builds the grid from the two flat
|
|
219
|
-
* tables; shift states reuse the Planner event-state grammar
|
|
220
|
-
* (`Roster.Types.State`), so data carries typed `variant(...)` values.
|
|
221
|
-
*/
|
|
222
|
-
export const Roster = {
|
|
223
|
-
/**
|
|
224
|
-
* Creates a Roster — people × days-of-week shift scheduling with the
|
|
225
|
-
* drag & drop target role.
|
|
226
|
-
*
|
|
227
|
-
* @typeParam P - The people-table input
|
|
228
|
-
* @typeParam S - The shifts-table input
|
|
229
|
-
* @param people - The people rows (one grid row each)
|
|
230
|
-
* @param shifts - The shift rows (joined to people by the encoded person key)
|
|
231
|
-
* @param config - The Roster configuration ({@link RosterConfig})
|
|
232
|
-
* @returns An East expression of `UIComponentType`
|
|
233
|
-
*
|
|
234
|
-
* @remarks
|
|
235
|
-
* Published mode renders committed shifts only, pointer-immutable; edit
|
|
236
|
-
* mode enables drag handles on proposed shifts, empty-cell add, and
|
|
237
|
-
* ghost acceptance. Cross-row moves arrive as plain `move` events — the
|
|
238
|
-
* host derives any swap-proposal representation from
|
|
239
|
-
* `from.row ≠ to.row`.
|
|
240
|
-
*
|
|
241
|
-
* @example
|
|
242
|
-
* ```ts
|
|
243
|
-
* import { East, variant } from "@elaraai/east";
|
|
244
|
-
* import { Roster, UIComponentType } from "@elaraai/east-ui";
|
|
245
|
-
*
|
|
246
|
-
* const example = East.function([], UIComponentType, _$ =>
|
|
247
|
-
* Roster.Root(
|
|
248
|
-
* [{ id: "patel", name: "Patel" }],
|
|
249
|
-
* [{ id: "p1", person: "patel", day: "Mon", hours: 8n, state: variant("committed", null) }],
|
|
250
|
-
* {
|
|
251
|
-
* id: "roster-se",
|
|
252
|
-
* person: p => ({ key: p.id, label: p.name }),
|
|
253
|
-
* shift: s => ({ key: s.id, person: s.person, day: s.day,
|
|
254
|
-
* hours: s.hours, state: s.state }),
|
|
255
|
-
* },
|
|
256
|
-
* ),
|
|
257
|
-
* );
|
|
258
|
-
* ```
|
|
259
|
-
*/
|
|
260
|
-
Root: createRoster,
|
|
261
|
-
Types: {
|
|
262
|
-
/**
|
|
263
|
-
* East StructType for the Roster component.
|
|
264
|
-
*
|
|
265
|
-
* @remarks
|
|
266
|
-
* Flat resolved tables; the renderer groups shifts into cells by
|
|
267
|
-
* `person × day`. See {@link RosterRootType} for per-field docs.
|
|
268
|
-
*
|
|
269
|
-
* @property id - DnD target identity
|
|
270
|
-
* @property sources - Library ids accepted for `add` drags
|
|
271
|
-
* @property mode - `published` or `edit`
|
|
272
|
-
* @property days - The day columns, in order
|
|
273
|
-
* @property personHeader - The frozen person column's header
|
|
274
|
-
* @property people - The grid rows
|
|
275
|
-
* @property shifts - The shift chips
|
|
276
|
-
* @property density - Optional density
|
|
277
|
-
* @property summary - Optional status-strip text
|
|
278
|
-
* @property onDrag - Drag funnel
|
|
279
|
-
* @property onSelect - Shift / cell click callback
|
|
280
|
-
* @property onAccept - Ghost acceptance callback
|
|
281
|
-
* @property onAddAt - Empty-cell click callback
|
|
282
|
-
*/
|
|
283
|
-
Roster: RosterRootType,
|
|
284
|
-
/** A row's review decision — the shared `ApprovalStateType` (#265). */
|
|
285
|
-
Approval: ApprovalStateType,
|
|
286
|
-
/** The review configuration — the shared row-granularity `RowReviewType` (#265). */
|
|
287
|
-
Review: RowReviewType,
|
|
288
|
-
/** The per-row approve / reject payload — the shared `RowRefType` (`{ rowIndex }`). */
|
|
289
|
-
ApproveEvent: RowRefType,
|
|
290
|
-
/**
|
|
291
|
-
* Roster render mode (`published` / `edit`).
|
|
292
|
-
*
|
|
293
|
-
* @property published - Committed-only, pointer-immutable
|
|
294
|
-
* @property edit - Operator + model proposals are interactive
|
|
295
|
-
*/
|
|
296
|
-
Mode: RosterModeType,
|
|
297
|
-
/**
|
|
298
|
-
* A resolved roster person (one grid row).
|
|
299
|
-
*
|
|
300
|
-
* @property key - Person identity — the join key shifts reference
|
|
301
|
-
* @property label - Display name
|
|
302
|
-
* @property sublabel - Optional muted second line
|
|
303
|
-
*/
|
|
304
|
-
Person: RosterPersonType,
|
|
305
|
-
/**
|
|
306
|
-
* A resolved shift chip.
|
|
307
|
-
*
|
|
308
|
-
* @property key - Stable shift identity
|
|
309
|
-
* @property person - The person key this shift belongs to
|
|
310
|
-
* @property day - The day column this shift sits in
|
|
311
|
-
* @property label - The chip text
|
|
312
|
-
* @property state - The audit state
|
|
313
|
-
*/
|
|
314
|
-
Shift: RosterShiftType,
|
|
315
|
-
/**
|
|
316
|
-
* The shared event-state grammar (committed / proposed / rejected).
|
|
317
|
-
*
|
|
318
|
-
* @property committed - A published shift
|
|
319
|
-
* @property proposed - A proposal (`added` / `model` / `removed`)
|
|
320
|
-
* @property rejected - A rejected proposal
|
|
321
|
-
*/
|
|
322
|
-
State: PlannerStateType,
|
|
323
|
-
},
|
|
324
|
-
};
|
|
325
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collections/roster/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAIH,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,EAET,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAuB,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACH,cAAc,EACd,gBAAgB,EAAE,eAAe,GACpC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAqB,MAAM,2BAA2B,CAAC;AACzH,OAAO,EAAE,eAAe,EAAE,MAAM,gC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ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAS,YAAY,CAIjB,MAAS,EACT,MAAS,EACT,MAAkD;IAElD,OAAO,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAyD,CAAC,CAAC;AAChG,CAAC;AAED,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE;QACH;;;;;;;;;;;;;;;;;;;;WAoBG;QACH,MAAM,EAAE,cAAc;QACtB,uEAAuE;QACvE,QAAQ,EAAE,iBAAiB;QAC3B,oFAAoF;QACpF,MAAM,EAAE,aAAa;QACrB,uFAAuF;QACvF,YAAY,EAAE,UAAU;QACxB;;;;;WAKG;QACH,IAAI,EAAE,cAAc;QACpB;;;;;;WAMG;QACH,MAAM,EAAE,gBAAgB;QACxB;;;;;;;;WAQG;QACH,KAAK,EAAE,eAAe;QACtB;;;;;;WAMG;QACH,KAAK,EAAE,gBAAgB;KAC1B;CACK,CAAC"}
|
|
@@ -1,97 +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
|
-
import { NullType, OptionType, StringType, StructType, VariantType } from "@elaraai/east";
|
|
6
|
-
/**
|
|
7
|
-
* Roster render mode.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* Published rosters render committed events only, with no grips and no
|
|
11
|
-
* pointer interaction; edit mode enables drag handles, empty-cell add, and
|
|
12
|
-
* ghost acceptance.
|
|
13
|
-
*
|
|
14
|
-
* @property published - Committed-only, pointer-immutable
|
|
15
|
-
* @property edit - Operator + model proposals are interactive
|
|
16
|
-
*/
|
|
17
|
-
export declare const RosterModeType: VariantType<{
|
|
18
|
-
/** Committed-only, pointer-immutable */
|
|
19
|
-
readonly published: NullType;
|
|
20
|
-
/** Operator + model proposals are interactive */
|
|
21
|
-
readonly edit: NullType;
|
|
22
|
-
}>;
|
|
23
|
-
/**
|
|
24
|
-
* Type representing roster mode values.
|
|
25
|
-
*/
|
|
26
|
-
export type RosterModeType = typeof RosterModeType;
|
|
27
|
-
/**
|
|
28
|
-
* String literal form of {@link RosterModeType} tags.
|
|
29
|
-
*/
|
|
30
|
-
export type RosterModeLiteral = "published" | "edit";
|
|
31
|
-
/**
|
|
32
|
-
* A resolved roster person (one grid row).
|
|
33
|
-
*
|
|
34
|
-
* @property key - Person identity — the join key shifts reference
|
|
35
|
-
* @property label - Display name
|
|
36
|
-
* @property sublabel - Optional muted second line (e.g. `38h → 30h`)
|
|
37
|
-
*/
|
|
38
|
-
export declare const RosterPersonType: StructType<{
|
|
39
|
-
/** Person identity — the join key shifts reference */
|
|
40
|
-
readonly key: StringType;
|
|
41
|
-
/** Display name */
|
|
42
|
-
readonly label: StringType;
|
|
43
|
-
/** Optional muted second line (e.g. `38h → 30h`) */
|
|
44
|
-
readonly sublabel: OptionType<StringType>;
|
|
45
|
-
/** The quiet per-row status dot (some ⇒ flagged, none ⇒ clean) */
|
|
46
|
-
readonly status: OptionType<VariantType<{
|
|
47
|
-
readonly success: NullType;
|
|
48
|
-
readonly warning: NullType;
|
|
49
|
-
readonly danger: NullType;
|
|
50
|
-
readonly info: NullType;
|
|
51
|
-
readonly neutral: NullType;
|
|
52
|
-
}>>;
|
|
53
|
-
/** The row's review decision (the shared `ApprovalStateType`) */
|
|
54
|
-
readonly approval: OptionType<VariantType<{
|
|
55
|
-
readonly approved: NullType;
|
|
56
|
-
readonly pending: NullType;
|
|
57
|
-
readonly rejected: NullType;
|
|
58
|
-
}>>;
|
|
59
|
-
}>;
|
|
60
|
-
/**
|
|
61
|
-
* Type representing resolved roster people.
|
|
62
|
-
*/
|
|
63
|
-
export type RosterPersonType = typeof RosterPersonType;
|
|
64
|
-
/**
|
|
65
|
-
* A resolved shift chip.
|
|
66
|
-
*
|
|
67
|
-
* @property key - Stable shift identity — referenced by drag-grammar cell refs
|
|
68
|
-
* @property person - The person key this shift belongs to
|
|
69
|
-
* @property day - The day column this shift sits in
|
|
70
|
-
* @property label - The chip text (e.g. `8h`)
|
|
71
|
-
* @property state - The audit state (committed / proposed / rejected)
|
|
72
|
-
*/
|
|
73
|
-
export declare const RosterShiftType: StructType<{
|
|
74
|
-
/** Stable shift identity — referenced by drag-grammar cell refs */
|
|
75
|
-
readonly key: StringType;
|
|
76
|
-
/** The person key this shift belongs to */
|
|
77
|
-
readonly person: StringType;
|
|
78
|
-
/** The day column this shift sits in */
|
|
79
|
-
readonly day: StringType;
|
|
80
|
-
/** The chip text (e.g. `8h`) */
|
|
81
|
-
readonly label: StringType;
|
|
82
|
-
/** The audit state (committed / proposed / rejected) */
|
|
83
|
-
readonly state: VariantType<{
|
|
84
|
-
readonly committed: NullType;
|
|
85
|
-
readonly proposed: VariantType<{
|
|
86
|
-
readonly added: NullType;
|
|
87
|
-
readonly model: NullType;
|
|
88
|
-
readonly removed: NullType;
|
|
89
|
-
}>;
|
|
90
|
-
readonly rejected: NullType;
|
|
91
|
-
}>;
|
|
92
|
-
}>;
|
|
93
|
-
/**
|
|
94
|
-
* Type representing resolved shifts.
|
|
95
|
-
*/
|
|
96
|
-
export type RosterShiftType = typeof RosterShiftType;
|
|
97
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/collections/roster/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACd,MAAM,eAAe,CAAC;AAMvB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;IACvB,wCAAwC;;IAExC,iDAAiD;;EAEnD,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,MAAM,CAAC;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;IACzB,sDAAsD;;IAEtD,mBAAmB;;IAEnB,oDAAoD;;IAGpD,kEAAkE;;;;;;;;IAElE,iEAAiE;;;;;;EAEnE,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AAEvD;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;IACxB,mEAAmE;;IAEnE,2CAA2C;;IAE3C,wCAAwC;;IAExC,gCAAgC;;IAEhC,wDAAwD;;;;;;;;;;EAE1D,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC"}
|
|
@@ -1,72 +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
|
-
import { NullType, OptionType, StringType, StructType, VariantType, } from "@elaraai/east";
|
|
6
|
-
import { ApprovalStateType } from "../../contracts/approval.js";
|
|
7
|
-
import { PlannerStateType } from "../../contracts/states.js";
|
|
8
|
-
import { StatusValueType } from "../../feedback/status/types.js";
|
|
9
|
-
/**
|
|
10
|
-
* Roster render mode.
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Published rosters render committed events only, with no grips and no
|
|
14
|
-
* pointer interaction; edit mode enables drag handles, empty-cell add, and
|
|
15
|
-
* ghost acceptance.
|
|
16
|
-
*
|
|
17
|
-
* @property published - Committed-only, pointer-immutable
|
|
18
|
-
* @property edit - Operator + model proposals are interactive
|
|
19
|
-
*/
|
|
20
|
-
export const RosterModeType = VariantType({
|
|
21
|
-
/** Committed-only, pointer-immutable */
|
|
22
|
-
published: NullType,
|
|
23
|
-
/** Operator + model proposals are interactive */
|
|
24
|
-
edit: NullType,
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* A resolved roster person (one grid row).
|
|
28
|
-
*
|
|
29
|
-
* @property key - Person identity — the join key shifts reference
|
|
30
|
-
* @property label - Display name
|
|
31
|
-
* @property sublabel - Optional muted second line (e.g. `38h → 30h`)
|
|
32
|
-
*/
|
|
33
|
-
export const RosterPersonType = StructType({
|
|
34
|
-
/** Person identity — the join key shifts reference */
|
|
35
|
-
key: StringType,
|
|
36
|
-
/** Display name */
|
|
37
|
-
label: StringType,
|
|
38
|
-
/** Optional muted second line (e.g. `38h → 30h`) */
|
|
39
|
-
sublabel: OptionType(StringType),
|
|
40
|
-
// Review chrome (only meaningful when the root carries `review`, #265):
|
|
41
|
-
/** The quiet per-row status dot (some ⇒ flagged, none ⇒ clean) */
|
|
42
|
-
status: OptionType(StatusValueType),
|
|
43
|
-
/** The row's review decision (the shared `ApprovalStateType`) */
|
|
44
|
-
approval: OptionType(ApprovalStateType),
|
|
45
|
-
});
|
|
46
|
-
/**
|
|
47
|
-
* A resolved shift chip.
|
|
48
|
-
*
|
|
49
|
-
* @property key - Stable shift identity — referenced by drag-grammar cell refs
|
|
50
|
-
* @property person - The person key this shift belongs to
|
|
51
|
-
* @property day - The day column this shift sits in
|
|
52
|
-
* @property label - The chip text (e.g. `8h`)
|
|
53
|
-
* @property state - The audit state (committed / proposed / rejected)
|
|
54
|
-
*/
|
|
55
|
-
export const RosterShiftType = StructType({
|
|
56
|
-
/** Stable shift identity — referenced by drag-grammar cell refs */
|
|
57
|
-
key: StringType,
|
|
58
|
-
/** The person key this shift belongs to */
|
|
59
|
-
person: StringType,
|
|
60
|
-
/** The day column this shift sits in */
|
|
61
|
-
day: StringType,
|
|
62
|
-
/** The chip text (e.g. `8h`) */
|
|
63
|
-
label: StringType,
|
|
64
|
-
/** The audit state (committed / proposed / rejected) */
|
|
65
|
-
state: PlannerStateType,
|
|
66
|
-
});
|
|
67
|
-
// NOTE (#265): `RosterRootType` moved to `./index.ts` — the root now carries
|
|
68
|
-
// the shared review config (`review.summary` is a `UIComponentType`), so it is
|
|
69
|
-
// UIComp-coupled and can no longer live in this `component.ts`-importable
|
|
70
|
-
// module. `component.ts` spells the Roster arm inline with the recursion
|
|
71
|
-
// `node` (the Planner precedent).
|
|
72
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/collections/roster/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;IACtC,wCAAwC;IACxC,SAAS,EAAE,QAAQ;IACnB,iDAAiD;IACjD,IAAI,EAAE,QAAQ;CACjB,CAAC,CAAC;AAYH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACvC,sDAAsD;IACtD,GAAG,EAAE,UAAU;IACf,mBAAmB;IACnB,KAAK,EAAE,UAAU;IACjB,oDAAoD;IACpD,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC;IAChC,wEAAwE;IACxE,kEAAkE;IAClE,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACnC,iEAAiE;IACjE,QAAQ,EAAE,UAAU,CAAC,iBAAiB,CAAC;CAC1C,CAAC,CAAC;AAOH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC;IACtC,mEAAmE;IACnE,GAAG,EAAE,UAAU;IACf,2CAA2C;IAC3C,MAAM,EAAE,UAAU;IAClB,wCAAwC;IACxC,GAAG,EAAE,UAAU;IACf,gCAAgC;IAChC,KAAK,EAAE,UAAU;IACjB,wDAAwD;IACxD,KAAK,EAAE,gBAAgB;CAC1B,CAAC,CAAC;AAOH,6EAA6E;AAC7E,+EAA+E;AAC/E,0EAA0E;AAC1E,yEAAyE;AACzE,kCAAkC"}
|