@elaraai/east-ui 1.0.86 → 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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* core of the shared review contract (`contracts/review.ts`).
|
|
8
8
|
*
|
|
9
9
|
* Split out of `review.ts` so IR type modules that `component.ts` loads (e.g.
|
|
10
|
-
* `collections/
|
|
10
|
+
* `collections/table/types.ts`) can reach {@link ApprovalStateType} /
|
|
11
11
|
* {@link reviewType} without a circular import: `review.ts` itself must import
|
|
12
12
|
* `component.ts` (its `RowReviewType` is resolved at `UIComponentType`), so it
|
|
13
13
|
* cannot be loaded from inside the `component.ts` module graph. Everything here
|
|
@@ -53,7 +53,7 @@ export type ApprovalStateType = typeof ApprovalStateType;
|
|
|
53
53
|
export type ApprovalStateLiteral = "approved" | "pending" | "rejected";
|
|
54
54
|
/**
|
|
55
55
|
* The row-subject reference — the payload of per-row review callbacks on the
|
|
56
|
-
* row-granularity adopters
|
|
56
|
+
* row-granularity adopters such as Table.
|
|
57
57
|
*
|
|
58
58
|
* @remarks
|
|
59
59
|
* `rowIndex` addresses the row in the surface's **unsliced** row order (the
|
|
@@ -96,13 +96,11 @@ export type ReviewStructType<S extends EastType, C extends EastType> = StructTyp
|
|
|
96
96
|
*
|
|
97
97
|
* @remarks
|
|
98
98
|
* Every adopter's `review` field is `OptionType(reviewType(...))` with the
|
|
99
|
-
* same fixed fields — only the subject varies: Table
|
|
99
|
+
* same fixed fields — only the subject varies: Table reviews
|
|
100
100
|
* rows (`{ rowIndex }`), while per-tile ghost-accept stays on the drag
|
|
101
|
-
* contract's `CellRefType`.
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* (rather than imported) so this module stays importable from inside the
|
|
105
|
-
* `component.ts` module graph; a root spelled inline in `component.ts` writes
|
|
101
|
+
* contract's `CellRefType`. `componentType` is injected (rather than
|
|
102
|
+
* imported) so this module stays importable from inside the `component.ts`
|
|
103
|
+
* module graph; a root spelled inline in `component.ts` writes
|
|
106
104
|
* the same review struct as a literal with the recursion `node` — never by
|
|
107
105
|
* calling this builder with the marker (type-computing functions must not
|
|
108
106
|
* receive a `RecursiveType` node).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.d.ts","sourceRoot":"","sources":["../../../src/contracts/approval.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACd,MAAM,eAAe,CAAC;AAMvB;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,iBAAiB;IAC1B,uEAAuE;;IAEvE,uDAAuD;;IAEvD,2BAA2B;;EAE7B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AAEzD;;GAEG;AAC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/review.ts`).
|
|
8
8
|
*
|
|
9
9
|
* Split out of `review.ts` so IR type modules that `component.ts` loads (e.g.
|
|
10
|
-
* `collections/
|
|
10
|
+
* `collections/table/types.ts`) can reach {@link ApprovalStateType} /
|
|
11
11
|
* {@link reviewType} without a circular import: `review.ts` itself must import
|
|
12
12
|
* `component.ts` (its `RowReviewType` is resolved at `UIComponentType`), so it
|
|
13
13
|
* cannot be loaded from inside the `component.ts` module graph. Everything here
|
|
@@ -48,7 +48,7 @@ export const ApprovalStateType = VariantType({
|
|
|
48
48
|
});
|
|
49
49
|
/**
|
|
50
50
|
* The row-subject reference — the payload of per-row review callbacks on the
|
|
51
|
-
* row-granularity adopters
|
|
51
|
+
* row-granularity adopters such as Table.
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
54
|
* `rowIndex` addresses the row in the surface's **unsliced** row order (the
|
|
@@ -73,13 +73,11 @@ export const RowRefType = StructType({
|
|
|
73
73
|
*
|
|
74
74
|
* @remarks
|
|
75
75
|
* Every adopter's `review` field is `OptionType(reviewType(...))` with the
|
|
76
|
-
* same fixed fields — only the subject varies: Table
|
|
76
|
+
* same fixed fields — only the subject varies: Table reviews
|
|
77
77
|
* rows (`{ rowIndex }`), while per-tile ghost-accept stays on the drag
|
|
78
|
-
* contract's `CellRefType`.
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* (rather than imported) so this module stays importable from inside the
|
|
82
|
-
* `component.ts` module graph; a root spelled inline in `component.ts` writes
|
|
78
|
+
* contract's `CellRefType`. `componentType` is injected (rather than
|
|
79
|
+
* imported) so this module stays importable from inside the `component.ts`
|
|
80
|
+
* module graph; a root spelled inline in `component.ts` writes
|
|
83
81
|
* the same review struct as a literal with the recursion `node` — never by
|
|
84
82
|
* calling this builder with the marker (type-computing functions must not
|
|
85
83
|
* receive a `RecursiveType` node).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval.js","sourceRoot":"","sources":["../../../src/contracts/approval.ts"],"names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;;;;;;;;;GA0BG;AACH,MAAM,UAAU,UAAU,CACtB,cAAiB,EACjB,aAAgB;IAEhB,OAAO,UAAU,CAAC;QACd,WAAW,EAAG,UAAU;QACxB,OAAO,EAAO,UAAU,CAAC,aAAa,CAAC;QACvC,SAAS,EAAK,UAAU,CAAC,YAAY,CAAC,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;QAClE,QAAQ,EAAM,UAAU,CAAC,YAAY,CAAC,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;QAClE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QACpD,WAAW,EAAG,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QACpD,OAAO,EAAO,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QACpD,UAAU,EAAI,UAAU;KAC3B,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -242,7 +242,7 @@ export type DragEventType = typeof DragEventType;
|
|
|
242
242
|
* sink is always structurally valid for a removable payload — removal policy
|
|
243
243
|
* belongs to the host's `onDrag` handling, not the hover veto.
|
|
244
244
|
*
|
|
245
|
-
* A **throwing** predicate logs and allows (fail-open, the
|
|
245
|
+
* A **throwing** predicate logs and allows (fail-open, the Schematic
|
|
246
246
|
* validator convention) so a broken validator cannot brick the surface.
|
|
247
247
|
* Verdicts are cached per candidate event for as long as the predicate is the
|
|
248
248
|
* same function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../src/contracts/drag.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACd,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../src/contracts/drag.ts"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,6BAA6B;;YAE7B,8BAA8B;;;;iBA2GqC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -14,8 +14,7 @@ import { BooleanType, FunctionType, NullType, OptionType, StringType, StructType
|
|
|
14
14
|
//
|
|
15
15
|
// | Target | `row` | `slot` |
|
|
16
16
|
// |---------|------------------|-----------------------------------------------|
|
|
17
|
-
// | Roster
|
|
18
|
-
// | Board | area key | shift key |
|
|
17
|
+
// | e3-ui Roster | group key | canonical East text of `{ day, group, shift }` |
|
|
19
18
|
// | Blend | target key | `"alloc"` (synthetic single slot) |
|
|
20
19
|
// | Plan | the row id's canonical text (#822) | the pointed-at bucket's START instant, per the axis kind (#631): `time` ⇒ the Z-less ISO instant; `number` ⇒ the bucket start as East prints a Float; `ordinal` ⇒ the value |
|
|
21
20
|
// | SnapGrid | the row key, or `""` for a new row between rows (#990) | the pointed-at column, `"1"`–`"12"`; for a new row, the gap's index — `"0"` above the first row, `"n"` below the last |
|
|
@@ -30,9 +29,9 @@ import { BooleanType, FunctionType, NullType, OptionType, StringType, StructType
|
|
|
30
29
|
// with `slot.parse(DateTimeType)`); an ordinal slot IS the value. Hosts map
|
|
31
30
|
// keys straight back to their source data.
|
|
32
31
|
//
|
|
33
|
-
// The Plan prints every slot through the shared codecs
|
|
32
|
+
// The Plan (e3-ui's `<Plan>`) prints every slot through the shared codecs
|
|
34
33
|
// (`east-ui-components/src/dnd/slot-key.ts`, composed per axis arm in
|
|
35
|
-
// `
|
|
34
|
+
// e3-ui-components' `plan/slot.ts`), which any future axis-bearing target must reuse
|
|
36
35
|
// so a host parses every slot the same way. A Plan `row` is
|
|
37
36
|
// the canonical `.east` text of the row's typed id (`PlanRowIdType` — its series
|
|
38
37
|
// and the path of entry keys to it), so the grammar stays string-based: a host
|
|
@@ -195,7 +194,7 @@ export const DragEventType = VariantType({
|
|
|
195
194
|
* sink is always structurally valid for a removable payload — removal policy
|
|
196
195
|
* belongs to the host's `onDrag` handling, not the hover veto.
|
|
197
196
|
*
|
|
198
|
-
* A **throwing** predicate logs and allows (fail-open, the
|
|
197
|
+
* A **throwing** predicate logs and allows (fail-open, the Schematic
|
|
199
198
|
* validator convention) so a broken validator cannot brick the surface.
|
|
200
199
|
* Verdicts are cached per candidate event for as long as the predicate is the
|
|
201
200
|
* same function.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag.js","sourceRoot":"","sources":["../../../src/contracts/drag.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,+DAA+D;AAC/D,+EAA+E;AAC/E,EAAE;AACF,oEAAoE;AACpE,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAC1E,EAAE;AACF,iFAAiF;AACjF,iFAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"drag.js","sourceRoot":"","sources":["../../../src/contracts/drag.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,+DAA+D;AAC/D,+EAA+E;AAC/E,EAAE;AACF,oEAAoE;AACpE,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAC1E,EAAE;AACF,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;AAChF,iFAAiF;AACjF,iOAAiO;AACjO,gMAAgM;AAChM,EAAE;AACF,yEAAyE;AACzE,8EAA8E;AAC9E,0EAA0E;AAC1E,+EAA+E;AAC/E,+EAA+E;AAC/E,wEAAwE;AACxE,4EAA4E;AAC5E,4EAA4E;AAC5E,2CAA2C;AAC3C,EAAE;AACF,0EAA0E;AAC1E,sEAAsE;AACtE,qFA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b,iDAAiD;QACjD,IAAI,EAAE,WAAW;QACjB,2BAA2B;QAC3B,EAAE,EAAE,WAAW;KAClB,CAAC;IACF,mDAAmD;IACnD,MAAM,EAAE,UAAU,CAAC;QACf,iDAAiD;QACjD,IAAI,EAAE,WAAW;QACjB,+BAA+B;QAC/B,EAAE,EAAE,YAAY;KACnB,CAAC;IACF,gDAAgD;IAChD,MAAM,EAAE,UAAU,CAAC;QACf,mEAAmE;QACnE,KAAK,EAAE,WAAW;QAClB,2BAA2B;QAC3B,IAAI,EAAE,YAAY;KACrB,CAAC;CACL,CAAC,CAAC;AAOH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* the base the drafts began from, which {@link applyEditing} applies to a
|
|
12
12
|
* collection atomically.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* e3-ui's Sheet was first to speak it, and keeps its names for it —
|
|
15
15
|
* `Sheet.Types.ChangeSet` is `Editing.Types.ChangeSet`, `Sheet.apply` is
|
|
16
16
|
* `Editing.apply`. What only a sheet has (a new row's destination among a
|
|
17
17
|
* group's children, the `newRow` / `newGroup` contexts) stays the Sheet's.
|
|
@@ -127,7 +127,7 @@ export declare const EditingBatchReadinessType: VariantType<{
|
|
|
127
127
|
* @property remove - An entry removed
|
|
128
128
|
* @property resize - An element's extent changed (#879 — a Plan run's start or end)
|
|
129
129
|
* @property drop - Something dropped onto the collection from elsewhere (#879)
|
|
130
|
-
* @property verdict - A review verdict (#879
|
|
130
|
+
* @property verdict - A review verdict (#879). No collection makes one since the Plan's review went (#1260); the case stays so a journal of earlier events still reads
|
|
131
131
|
* @property undo - Undo
|
|
132
132
|
* @property redo - Redo
|
|
133
133
|
* @property discard - Drafts discarded
|
|
@@ -225,7 +225,7 @@ export declare function EditingDraftGroupTypeFor<G extends StructType, F extends
|
|
|
225
225
|
* and {@link EditingPatchEventTypeFor} find it without being told again.
|
|
226
226
|
*
|
|
227
227
|
* @remarks
|
|
228
|
-
*
|
|
228
|
+
* e3-ui's Sheet names it `Sheet.Types.Entry`.
|
|
229
229
|
*
|
|
230
230
|
* @typeParam G - The group struct
|
|
231
231
|
* @typeParam F - Its Array-of-structs child field
|
|
@@ -236,27 +236,27 @@ export declare function EditingDraftGroupTypeFor<G extends StructType, F extends
|
|
|
236
236
|
* @example
|
|
237
237
|
* ```ts
|
|
238
238
|
* import { ArrayType, East, OptionType, StringType, StructType, none, some, variant } from "@elaraai/east";
|
|
239
|
-
* import {
|
|
239
|
+
* import { Editing } from "@elaraai/east-ui";
|
|
240
240
|
*
|
|
241
241
|
* const reordered = East.function([], ArrayType(StringType), ($) => {
|
|
242
242
|
* const TaskType = StructType({ id: StringType, task: StringType });
|
|
243
243
|
* const PackageType = StructType({ id: StringType, name: StringType, tasks: ArrayType(TaskType) });
|
|
244
|
-
* const Entry =
|
|
245
|
-
* const before = $.const(variant("group", { id: "p1", name: "
|
|
246
|
-
* { id: "t1", task: "
|
|
244
|
+
* const Entry = Editing.Types.Entry(PackageType, "tasks");
|
|
245
|
+
* const before = $.const(variant("group", { id: "p1", name: "C-18 nesting", tasks: [
|
|
246
|
+
* { id: "t1", task: "Cut panels" }, { id: "t2", task: "Inspect batches" },
|
|
247
247
|
* ] }), Entry);
|
|
248
|
-
* const after = $.const(variant("group", { id: "p1", name: "
|
|
249
|
-
* { id: "t2", task: "Inspect
|
|
248
|
+
* const after = $.const(variant("group", { id: "p1", name: "C-18 nesting", tasks: [
|
|
249
|
+
* { id: "t2", task: "Inspect batches" }, { id: "t1", task: "Cut panels" },
|
|
250
250
|
* ] }), Entry);
|
|
251
|
-
* const loose = $.const(variant("row", { id: "t9", task: "Pack for
|
|
251
|
+
* const loose = $.const(variant("row", { id: "t9", task: "Pack for delivery" }), Entry);
|
|
252
252
|
* const entries = $.const([before, loose], ArrayType(Entry));
|
|
253
253
|
* const oldEntry = $.const(some(before), OptionType(Entry));
|
|
254
254
|
* const newEntry = $.const(some(after), OptionType(Entry));
|
|
255
255
|
* const batch = $.const({
|
|
256
|
-
* requestId: "reorder-
|
|
256
|
+
* requestId: "reorder-nesting", base: variant("snapshot", entries), label: "Move a task",
|
|
257
257
|
* changes: [{ id: "p1", patch: East.diff(oldEntry, newEntry), place: none }],
|
|
258
|
-
* },
|
|
259
|
-
* const apply = $.const(
|
|
258
|
+
* }, Editing.Types.ChangeSet(Entry));
|
|
259
|
+
* const apply = $.const(Editing.apply(Entry, "id"));
|
|
260
260
|
* const applied = $.const(apply(entries, batch, none).unwrap("applied"));
|
|
261
261
|
* return applied.map((_$, entry) => entry.match({
|
|
262
262
|
* group: (_$2, p) => East.str`${p.name}: ${p.tasks.map((_$3, t) => t.task).stringJoin(" → ")}`,
|
|
@@ -692,19 +692,19 @@ type KeyedBatchOf<E extends EastType, K extends EastType> = ReturnType<typeof Ed
|
|
|
692
692
|
* const applied = East.function([], DictType(StringType, KeyedJob), ($) => {
|
|
693
693
|
* const jobs = $.const(new Map([
|
|
694
694
|
* ["a", { task: "Cut", qty: 2n }],
|
|
695
|
-
* ["c", { task: "
|
|
695
|
+
* ["c", { task: "Glue", qty: 1n }],
|
|
696
696
|
* ]), DictType(StringType, KeyedJob));
|
|
697
697
|
* const cut = $.const(some({ task: "Cut", qty: 2n }), OptionType(KeyedJob));
|
|
698
698
|
* const cutMore = $.const(some({ task: "Cut", qty: 3n }), OptionType(KeyedJob));
|
|
699
|
-
* const
|
|
700
|
-
* const
|
|
699
|
+
* const glue = $.const(some({ task: "Glue", qty: 1n }), OptionType(KeyedJob));
|
|
700
|
+
* const spray = $.const(some({ task: "Spray", qty: 4n }), OptionType(KeyedJob));
|
|
701
701
|
* const absent = $.const(none, OptionType(KeyedJob));
|
|
702
702
|
* const batch = $.const({
|
|
703
703
|
* requestId: "keyed-request", base: variant("snapshot", jobs), label: "Edit jobs",
|
|
704
704
|
* changes: [
|
|
705
705
|
* { id: "a", patch: East.diff(cut, cutMore), place: none },
|
|
706
|
-
* { id: "b", patch: East.diff(absent,
|
|
707
|
-
* { id: "c", patch: East.diff(
|
|
706
|
+
* { id: "b", patch: East.diff(absent, spray), place: some(variant("keyOrder", null)) },
|
|
707
|
+
* { id: "c", patch: East.diff(glue, absent), place: none },
|
|
708
708
|
* ],
|
|
709
709
|
* }, Editing.Types.ChangeSet(KeyedJob, StringType));
|
|
710
710
|
* const apply = $.const(Editing.apply(DictType(StringType, KeyedJob)));
|
|
@@ -1294,7 +1294,7 @@ export interface EditingNamespace {
|
|
|
1294
1294
|
* The editing contract (#879) — the one transaction session every editable
|
|
1295
1295
|
* collection speaks: drafts, one undoable transaction per gesture reported as a
|
|
1296
1296
|
* `PatchEvent`, and Apply as one checked, idempotent `ChangeSet` applied with
|
|
1297
|
-
* `Editing.apply`.
|
|
1297
|
+
* `Editing.apply`. e3-ui's Sheet keeps its names for it (`Sheet.Types.ChangeSet`,
|
|
1298
1298
|
* `Sheet.apply`, …) — the same values.
|
|
1299
1299
|
*/
|
|
1300
1300
|
export declare const Editing: EditingNamespace;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* the base the drafts began from, which {@link applyEditing} applies to a
|
|
12
12
|
* collection atomically.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* e3-ui's Sheet was first to speak it, and keeps its names for it —
|
|
15
15
|
* `Sheet.Types.ChangeSet` is `Editing.Types.ChangeSet`, `Sheet.apply` is
|
|
16
16
|
* `Editing.apply`. What only a sheet has (a new row's destination among a
|
|
17
17
|
* group's children, the `newRow` / `newGroup` contexts) stays the Sheet's.
|
|
@@ -91,7 +91,7 @@ export const EditingBatchReadinessType = VariantType({
|
|
|
91
91
|
* @property remove - An entry removed
|
|
92
92
|
* @property resize - An element's extent changed (#879 — a Plan run's start or end)
|
|
93
93
|
* @property drop - Something dropped onto the collection from elsewhere (#879)
|
|
94
|
-
* @property verdict - A review verdict (#879
|
|
94
|
+
* @property verdict - A review verdict (#879). No collection makes one since the Plan's review went (#1260); the case stays so a journal of earlier events still reads
|
|
95
95
|
* @property undo - Undo
|
|
96
96
|
* @property redo - Redo
|
|
97
97
|
* @property discard - Drafts discarded
|
|
@@ -164,7 +164,7 @@ export function EditingDraftGroupTypeFor(groupType, field) {
|
|
|
164
164
|
* and {@link EditingPatchEventTypeFor} find it without being told again.
|
|
165
165
|
*
|
|
166
166
|
* @remarks
|
|
167
|
-
*
|
|
167
|
+
* e3-ui's Sheet names it `Sheet.Types.Entry`.
|
|
168
168
|
*
|
|
169
169
|
* @typeParam G - The group struct
|
|
170
170
|
* @typeParam F - Its Array-of-structs child field
|
|
@@ -175,27 +175,27 @@ export function EditingDraftGroupTypeFor(groupType, field) {
|
|
|
175
175
|
* @example
|
|
176
176
|
* ```ts
|
|
177
177
|
* import { ArrayType, East, OptionType, StringType, StructType, none, some, variant } from "@elaraai/east";
|
|
178
|
-
* import {
|
|
178
|
+
* import { Editing } from "@elaraai/east-ui";
|
|
179
179
|
*
|
|
180
180
|
* const reordered = East.function([], ArrayType(StringType), ($) => {
|
|
181
181
|
* const TaskType = StructType({ id: StringType, task: StringType });
|
|
182
182
|
* const PackageType = StructType({ id: StringType, name: StringType, tasks: ArrayType(TaskType) });
|
|
183
|
-
* const Entry =
|
|
184
|
-
* const before = $.const(variant("group", { id: "p1", name: "
|
|
185
|
-
* { id: "t1", task: "
|
|
183
|
+
* const Entry = Editing.Types.Entry(PackageType, "tasks");
|
|
184
|
+
* const before = $.const(variant("group", { id: "p1", name: "C-18 nesting", tasks: [
|
|
185
|
+
* { id: "t1", task: "Cut panels" }, { id: "t2", task: "Inspect batches" },
|
|
186
186
|
* ] }), Entry);
|
|
187
|
-
* const after = $.const(variant("group", { id: "p1", name: "
|
|
188
|
-
* { id: "t2", task: "Inspect
|
|
187
|
+
* const after = $.const(variant("group", { id: "p1", name: "C-18 nesting", tasks: [
|
|
188
|
+
* { id: "t2", task: "Inspect batches" }, { id: "t1", task: "Cut panels" },
|
|
189
189
|
* ] }), Entry);
|
|
190
|
-
* const loose = $.const(variant("row", { id: "t9", task: "Pack for
|
|
190
|
+
* const loose = $.const(variant("row", { id: "t9", task: "Pack for delivery" }), Entry);
|
|
191
191
|
* const entries = $.const([before, loose], ArrayType(Entry));
|
|
192
192
|
* const oldEntry = $.const(some(before), OptionType(Entry));
|
|
193
193
|
* const newEntry = $.const(some(after), OptionType(Entry));
|
|
194
194
|
* const batch = $.const({
|
|
195
|
-
* requestId: "reorder-
|
|
195
|
+
* requestId: "reorder-nesting", base: variant("snapshot", entries), label: "Move a task",
|
|
196
196
|
* changes: [{ id: "p1", patch: East.diff(oldEntry, newEntry), place: none }],
|
|
197
|
-
* },
|
|
198
|
-
* const apply = $.const(
|
|
197
|
+
* }, Editing.Types.ChangeSet(Entry));
|
|
198
|
+
* const apply = $.const(Editing.apply(Entry, "id"));
|
|
199
199
|
* const applied = $.const(apply(entries, batch, none).unwrap("applied"));
|
|
200
200
|
* return applied.map((_$, entry) => entry.match({
|
|
201
201
|
* group: (_$2, p) => East.str`${p.name}: ${p.tasks.map((_$3, t) => t.task).stringJoin(" → ")}`,
|
|
@@ -711,7 +711,7 @@ function inlineApply(collectionType, batchType, apply, sourceId, read, write) {
|
|
|
711
711
|
* The editing contract (#879) — the one transaction session every editable
|
|
712
712
|
* collection speaks: drafts, one undoable transaction per gesture reported as a
|
|
713
713
|
* `PatchEvent`, and Apply as one checked, idempotent `ChangeSet` applied with
|
|
714
|
-
* `Editing.apply`.
|
|
714
|
+
* `Editing.apply`. e3-ui's Sheet keeps its names for it (`Sheet.Types.ChangeSet`,
|
|
715
715
|
* `Sheet.apply`, …) — the same values.
|
|
716
716
|
*/
|
|
717
717
|
export const Editing = {
|