@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,122 +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
|
-
* `<Sheet>` tag — see the export's JSDoc.
|
|
7
|
-
*/
|
|
8
|
-
import type { SubtypeExprOrValue, ArrayType, DictType, StringType, StructType } from "@elaraai/east";
|
|
9
|
-
import type { PagedSource } from "../../contracts/source.js";
|
|
10
|
-
import { type SheetColumnSpec, type SheetOptions, type SheetGroupedOptions, type SheetEntriesOptions, type SheetEntryOf, type SheetBindHandle, type SheetLinesField, type SheetLineOf, type SheetNamespace } from "../../collections/sheet/index.js";
|
|
11
|
-
import type { DataRowType } from "../../collections/table/index.js";
|
|
12
|
-
import type { UIElement } from "../runtime.js";
|
|
13
|
-
/**
|
|
14
|
-
* `<Sheet data={entries} id="id" group={Sheet.group(P, "lines", …)} columns={{ … }} />`
|
|
15
|
-
* — GROUPED rows with LOOSE rows between the groups (#846): `data` holds
|
|
16
|
-
* `Sheet.Types.Entry(P, "lines")` entries, each a group or a row of the
|
|
17
|
-
* line type; `columns` are declared over the line type.
|
|
18
|
-
*/
|
|
19
|
-
declare function SheetTag<P extends StructType, F extends SheetLinesField<P>>(props: {
|
|
20
|
-
data: NoInfer<SubtypeExprOrValue<ArrayType<SheetEntryOf<P, F>>> | SheetBindHandle<SheetEntryOf<P, F>> | PagedSource<ArrayType<SheetEntryOf<P, F>>> | PagedSource<DictType<StringType, SheetEntryOf<P, F>>>>;
|
|
21
|
-
columns: SheetColumnSpec<SheetLineOf<P, F>>;
|
|
22
|
-
} & SheetEntriesOptions<P, F>): UIElement;
|
|
23
|
-
/**
|
|
24
|
-
* `<Sheet data={plans} id="id" group={Sheet.group(P, "lines", …)} columns={{ … }} />`
|
|
25
|
-
* — GROUPED rows (#740): the rows are groups, `columns` are declared over
|
|
26
|
-
* the line type the group's lines field holds.
|
|
27
|
-
*/
|
|
28
|
-
declare function SheetTag<T extends SubtypeExprOrValue<ArrayType<StructType>>, F extends SheetLinesField<DataRowType<T>>>(props: {
|
|
29
|
-
data: T;
|
|
30
|
-
columns: SheetColumnSpec<SheetLineOf<DataRowType<T>, F>>;
|
|
31
|
-
} & SheetGroupedOptions<DataRowType<T>, F>): UIElement;
|
|
32
|
-
/** GROUPED rows over a whole-value bind handle of groups. */
|
|
33
|
-
declare function SheetTag<P extends StructType, F extends SheetLinesField<P>>(props: {
|
|
34
|
-
data: SheetBindHandle<P>;
|
|
35
|
-
columns: SheetColumnSpec<SheetLineOf<P, F>>;
|
|
36
|
-
} & SheetGroupedOptions<P, F>): UIElement;
|
|
37
|
-
/** GROUPED rows over a paged source of groups. */
|
|
38
|
-
declare function SheetTag<P extends StructType, F extends SheetLinesField<P>>(props: {
|
|
39
|
-
data: PagedSource<ArrayType<P>> | PagedSource<DictType<StringType, P>>;
|
|
40
|
-
columns: SheetColumnSpec<SheetLineOf<P, F>>;
|
|
41
|
-
} & SheetGroupedOptions<P, F>): UIElement;
|
|
42
|
-
/**
|
|
43
|
-
* `<Sheet data={rows} id="id" columns={{ … }} />` — the planning spreadsheet.
|
|
44
|
-
* Maps to `Sheet.Root`. `columns` is typed as `SheetColumnSpec<R>` (a mapped
|
|
45
|
-
* type over the row's fields), so a key that is not a data field, or a
|
|
46
|
-
* column whose kind cannot sit on the field, is a type error.
|
|
47
|
-
*/
|
|
48
|
-
declare function SheetTag<T extends SubtypeExprOrValue<ArrayType<StructType>>>(props: {
|
|
49
|
-
data: T;
|
|
50
|
-
columns: SheetColumnSpec<DataRowType<T>>;
|
|
51
|
-
} & SheetOptions<DataRowType<T>>): UIElement;
|
|
52
|
-
/** The whole-value bind handle — `data={jobs}` builds the same IR as `data={jobs.read()}`. */
|
|
53
|
-
declare function SheetTag<R extends StructType>(props: {
|
|
54
|
-
data: SheetBindHandle<R>;
|
|
55
|
-
columns: SheetColumnSpec<R>;
|
|
56
|
-
} & SheetOptions<R>): UIElement;
|
|
57
|
-
/** The PAGED arm — a windowed source of the same rows, positional or keyed;
|
|
58
|
-
* the row type rides structurally in its `page` signature. */
|
|
59
|
-
declare function SheetTag<R extends StructType>(props: {
|
|
60
|
-
data: PagedSource<ArrayType<R>> | PagedSource<DictType<StringType, R>>;
|
|
61
|
-
columns: SheetColumnSpec<R>;
|
|
62
|
-
} & SheetOptions<R>): UIElement;
|
|
63
|
-
/**
|
|
64
|
-
* The planning spreadsheet — rows are the host's records, columns are TYPED
|
|
65
|
-
* (`Sheet.column.date` / `quantity` / `lookup` / `reference` / `enum` /
|
|
66
|
-
* `set` / `link` / `stamped` / `custom` / `text` / `integer`, each taking the
|
|
67
|
-
* row type first), a blank tail invites the next row, search runs through a
|
|
68
|
-
* bound slice as a lens that keeps row numbers, and a copilot fills cells
|
|
69
|
-
* and proposes whole rows from rules written as East functions
|
|
70
|
-
* ({@link SheetOptions}). Not a `Table`: a Table displays and sorts; a Sheet
|
|
71
|
-
* is typed, edited in place, padded with blank rows and completed by a
|
|
72
|
-
* copilot.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```tsx
|
|
76
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
77
|
-
* import { ArrayType, DateTimeType, East, FloatType, OptionType, StringType, StructType, none } from "@elaraai/east";
|
|
78
|
-
* import { Reactive, Sheet, State, UIComponentType } from "@elaraai/east-ui";
|
|
79
|
-
*
|
|
80
|
-
* const sheet = East.function([], UIComponentType, (_$) => (
|
|
81
|
-
* <Reactive>{$ => {
|
|
82
|
-
* const JobType = StructType({
|
|
83
|
-
* id: StringType,
|
|
84
|
-
* start: OptionType(DateTimeType), // none = blank cell
|
|
85
|
-
* task: StringType, // "" = blank cell
|
|
86
|
-
* qty: OptionType(FloatType),
|
|
87
|
-
* });
|
|
88
|
-
* const jobs = $.let(State.bind([ArrayType(JobType)], "sheet_basic_jobs", [
|
|
89
|
-
* { id: "j1", start: none, task: "Machining", qty: none },
|
|
90
|
-
* ]));
|
|
91
|
-
* return (
|
|
92
|
-
* <Sheet
|
|
93
|
-
* data={jobs}
|
|
94
|
-
* id="id"
|
|
95
|
-
* columns={{
|
|
96
|
-
* start: Sheet.column.date(JobType, { header: "Start", sub: "dd / mm / yyyy" }),
|
|
97
|
-
* task: Sheet.column.text(JobType, { header: "Task" }),
|
|
98
|
-
* qty: Sheet.column.quantity(JobType, { header: "Qty" }), // no driver on this sheet — the two-argument form
|
|
99
|
-
* }}
|
|
100
|
-
* onUpdate={jobs.write}
|
|
101
|
-
* />
|
|
102
|
-
* );
|
|
103
|
-
* }}</Reactive>
|
|
104
|
-
* ));
|
|
105
|
-
* ```
|
|
106
|
-
*
|
|
107
|
-
* @remarks
|
|
108
|
-
* Carries the factory namespace except `Root` (the tag is the root):
|
|
109
|
-
* `Sheet.column.*` (the builders), `Sheet.register.members` / `.concat`,
|
|
110
|
-
* `Sheet.driver`, `Sheet.link.arity` / `.check` / `.parse` / `.print`,
|
|
111
|
-
* `Sheet.patch`, `Sheet.apply` (a checked batch applied to a collection),
|
|
112
|
-
* `Sheet.group` / `Sheet.group.cell.*` (grouped rows, #740 — with loose rows
|
|
113
|
-
* between the groups over `Sheet.Types.Entry` entries, #846), `Sheet.subRows`
|
|
114
|
-
* / `Sheet.subRow` (sub rows, #844), and `Sheet.Types.*` (the closed wire
|
|
115
|
-
* types plus the typed constructors, among them `DraftContext(R, D)` /
|
|
116
|
-
* `Fill(T)` / `Patch(R)` / `Proposal(R)` / `CheckContext(R)` / `Draft(R)` /
|
|
117
|
-
* `PatchEvent(E)` / `ChangeSet(E)` / `Entry(G, "rows")`). Desugars to
|
|
118
|
-
* `Sheet.Root(data, columns, options)`.
|
|
119
|
-
*/
|
|
120
|
-
export declare const Sheet: typeof SheetTag & Omit<SheetNamespace, "Root">;
|
|
121
|
-
export {};
|
|
122
|
-
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/runtime/collections/sheet.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAEH,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,cAAc,EACtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAChE,KAAK,EAAE;IACH,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5M,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAC/C,GAAG,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC9B,SAAS,CAAC;AACb;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,CAAC,SAAS,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAC5G,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GACtH,SAAS,CAAC;AACb,6DAA6D;AAC7D,iBAAS,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAChE,KAAK,EAAE;IAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAAC,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC7G,SAAS,CAAC;AACb,kDAAkD;AAClD,iBAAS,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,CAAC,SAAS,eAAe,CAAC,CAAC,CAAC,EAChE,KAAK,EAAE;IAAE,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IAAC,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3J,SAAS,CAAC;AACb;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,CAAC,SAAS,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EACjE,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC5F,SAAS,CAAC;AACb,8FAA8F;AAC9F,iBAAS,QAAQ,CAAC,CAAC,SAAS,UAAU,EAClC,KAAK,EAAE;IAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,YAAY,CAAC,CAAC,CAAC,GACnF,SAAS,CAAC;AACb;+DAC+D;AAC/D,iBAAS,QAAQ,CAAC,CAAC,SAAS,UAAU,EAClC,KAAK,EAAE;IAAE,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;IAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,YAAY,CAAC,CAAC,CAAC,GACjI,SAAS,CAAC;AAiBb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,eAAO,MAAM,KAAK,EAAE,OAAO,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAsC,CAAC"}
|
|
@@ -1,73 +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 { Sheet as SheetFactory, } from "../../collections/sheet/index.js";
|
|
6
|
-
import { hasKeys } from "../combinators.js";
|
|
7
|
-
function SheetTag(props) {
|
|
8
|
-
const { data, columns, ...options } = props;
|
|
9
|
-
return SheetFactory.Root(data, columns, hasKeys(options) ? options : undefined);
|
|
10
|
-
}
|
|
11
|
-
// The tag IS the root, so `Root` is the one factory member it does not carry.
|
|
12
|
-
// Derived, never hand-listed: a member added to `SheetNamespace` rides the tag
|
|
13
|
-
// with no edit here (#862, as #814 did for the Plan).
|
|
14
|
-
const { Root: _root, ...authoring } = SheetFactory;
|
|
15
|
-
/**
|
|
16
|
-
* The planning spreadsheet — rows are the host's records, columns are TYPED
|
|
17
|
-
* (`Sheet.column.date` / `quantity` / `lookup` / `reference` / `enum` /
|
|
18
|
-
* `set` / `link` / `stamped` / `custom` / `text` / `integer`, each taking the
|
|
19
|
-
* row type first), a blank tail invites the next row, search runs through a
|
|
20
|
-
* bound slice as a lens that keeps row numbers, and a copilot fills cells
|
|
21
|
-
* and proposes whole rows from rules written as East functions
|
|
22
|
-
* ({@link SheetOptions}). Not a `Table`: a Table displays and sorts; a Sheet
|
|
23
|
-
* is typed, edited in place, padded with blank rows and completed by a
|
|
24
|
-
* copilot.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
29
|
-
* import { ArrayType, DateTimeType, East, FloatType, OptionType, StringType, StructType, none } from "@elaraai/east";
|
|
30
|
-
* import { Reactive, Sheet, State, UIComponentType } from "@elaraai/east-ui";
|
|
31
|
-
*
|
|
32
|
-
* const sheet = East.function([], UIComponentType, (_$) => (
|
|
33
|
-
* <Reactive>{$ => {
|
|
34
|
-
* const JobType = StructType({
|
|
35
|
-
* id: StringType,
|
|
36
|
-
* start: OptionType(DateTimeType), // none = blank cell
|
|
37
|
-
* task: StringType, // "" = blank cell
|
|
38
|
-
* qty: OptionType(FloatType),
|
|
39
|
-
* });
|
|
40
|
-
* const jobs = $.let(State.bind([ArrayType(JobType)], "sheet_basic_jobs", [
|
|
41
|
-
* { id: "j1", start: none, task: "Machining", qty: none },
|
|
42
|
-
* ]));
|
|
43
|
-
* return (
|
|
44
|
-
* <Sheet
|
|
45
|
-
* data={jobs}
|
|
46
|
-
* id="id"
|
|
47
|
-
* columns={{
|
|
48
|
-
* start: Sheet.column.date(JobType, { header: "Start", sub: "dd / mm / yyyy" }),
|
|
49
|
-
* task: Sheet.column.text(JobType, { header: "Task" }),
|
|
50
|
-
* qty: Sheet.column.quantity(JobType, { header: "Qty" }), // no driver on this sheet — the two-argument form
|
|
51
|
-
* }}
|
|
52
|
-
* onUpdate={jobs.write}
|
|
53
|
-
* />
|
|
54
|
-
* );
|
|
55
|
-
* }}</Reactive>
|
|
56
|
-
* ));
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
* Carries the factory namespace except `Root` (the tag is the root):
|
|
61
|
-
* `Sheet.column.*` (the builders), `Sheet.register.members` / `.concat`,
|
|
62
|
-
* `Sheet.driver`, `Sheet.link.arity` / `.check` / `.parse` / `.print`,
|
|
63
|
-
* `Sheet.patch`, `Sheet.apply` (a checked batch applied to a collection),
|
|
64
|
-
* `Sheet.group` / `Sheet.group.cell.*` (grouped rows, #740 — with loose rows
|
|
65
|
-
* between the groups over `Sheet.Types.Entry` entries, #846), `Sheet.subRows`
|
|
66
|
-
* / `Sheet.subRow` (sub rows, #844), and `Sheet.Types.*` (the closed wire
|
|
67
|
-
* types plus the typed constructors, among them `DraftContext(R, D)` /
|
|
68
|
-
* `Fill(T)` / `Patch(R)` / `Proposal(R)` / `CheckContext(R)` / `Draft(R)` /
|
|
69
|
-
* `PatchEvent(E)` / `ChangeSet(E)` / `Entry(G, "rows")`). Desugars to
|
|
70
|
-
* `Sheet.Root(data, columns, options)`.
|
|
71
|
-
*/
|
|
72
|
-
export const Sheet = Object.assign(SheetTag, authoring);
|
|
73
|
-
//# sourceMappingURL=sheet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../../../src/runtime/collections/sheet.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EACH,KAAK,IAAI,YAAY,GAUxB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAiD5C,SAAS,QAAQ,CACb,KAA0C;IAE1C,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,KAAsE,CAAC;IAC7G,OAAQ,YAAY,CAAC,IAA2D,CAC5E,IAAI,EACJ,OAAO,EACP,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CACzC,CAAC;AACN,CAAC;AAED,8EAA8E;AAC9E,+EAA+E;AAC/E,sDAAsD;AACtD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,GAAG,YAAY,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,CAAC,MAAM,KAAK,GAAmD,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1,52 +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
|
-
/** Navigation `<App>` tag — the application shell (#367). */
|
|
6
|
-
import { type AppInput } from "../../navigation/app/index.js";
|
|
7
|
-
import type { NavRoutes } from "../../navigation/pages/types.js";
|
|
8
|
-
import type { UIElement } from "../runtime.js";
|
|
9
|
-
/**
|
|
10
|
-
* The application shell — a collapsible nav rail, a breadcrumb app bar, an
|
|
11
|
-
* optional brand logo, app-bar slots and the routed page body, all driven by one
|
|
12
|
-
* `Navigation.bind` handle. Author it **inside** the enclosing `<Reactive>` that
|
|
13
|
-
* binds `nav`, and pass the same `Navigation.config` as `config` (the handle
|
|
14
|
-
* carries no labels/icons — the config is the single source of truth for the
|
|
15
|
-
* rail and breadcrumb). When the rows are data — a route per row of a record,
|
|
16
|
-
* which a config cannot list — pass `rail` (a `<NavList>` mapped from the rows)
|
|
17
|
-
* and `breadcrumb` in place of the derived ones.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
22
|
-
* import { East, NullType, UIComponentType } from "@elaraai/east";
|
|
23
|
-
* import { App, Navigation, Reactive, Image, Text } from "@elaraai/east-ui";
|
|
24
|
-
*
|
|
25
|
-
* const app = East.function([], UIComponentType, _$ => {
|
|
26
|
-
* const routes = Navigation.config({
|
|
27
|
-
* overview: { value: NullType, label: "Overview", section: "Analyse", icon: { prefix: "fas", name: "gauge-high" } },
|
|
28
|
-
* audit: { value: NullType, label: "Audit", section: "Manage", icon: { prefix: "fas", name: "list-check" } },
|
|
29
|
-
* });
|
|
30
|
-
* return (
|
|
31
|
-
* <Reactive>{$ => {
|
|
32
|
-
* const nav = $.let(Navigation.bind(routes, "app.route", [routes.Page.overview()]));
|
|
33
|
-
* return (
|
|
34
|
-
* <App nav={nav} config={routes} title="Acme Ops" logo={Image.dataUri("data:image/svg+xml,<svg/>")}
|
|
35
|
-
* pages={{ overview: () => <Text>Overview</Text>, audit: () => <Text>Audit</Text> }} />
|
|
36
|
-
* );
|
|
37
|
-
* }}</Reactive>
|
|
38
|
-
* );
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
* Desugars to `App.Root({ nav, config, pages, … })`. A generic function
|
|
44
|
-
* declaration (merged with the `App` namespace) so it is a valid generic JSX
|
|
45
|
-
* component.
|
|
46
|
-
*/
|
|
47
|
-
export declare function App<R extends NavRoutes>(props: AppInput<R>): UIElement;
|
|
48
|
-
export declare namespace App {
|
|
49
|
-
/** The underlying factory: `App.Root({ nav, config, pages, … })`. */
|
|
50
|
-
const Root: <R extends NavRoutes>(input: AppInput<R>) => import("@elaraai/east").ExprType<import("../../component.js").UIComponentType>;
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../src/runtime/navigation/app.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,6DAA6D;AAE7D,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAEtE;AAGD,yBAAiB,GAAG,CAAC;IACjB,qEAAqE;IAC9D,MAAM,IAAI,6HAAkB,CAAC;CACvC"}
|
|
@@ -1,53 +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
|
-
/** Navigation `<App>` tag — the application shell (#367). */
|
|
6
|
-
import { App as AppFactory } from "../../navigation/app/index.js";
|
|
7
|
-
/**
|
|
8
|
-
* The application shell — a collapsible nav rail, a breadcrumb app bar, an
|
|
9
|
-
* optional brand logo, app-bar slots and the routed page body, all driven by one
|
|
10
|
-
* `Navigation.bind` handle. Author it **inside** the enclosing `<Reactive>` that
|
|
11
|
-
* binds `nav`, and pass the same `Navigation.config` as `config` (the handle
|
|
12
|
-
* carries no labels/icons — the config is the single source of truth for the
|
|
13
|
-
* rail and breadcrumb). When the rows are data — a route per row of a record,
|
|
14
|
-
* which a config cannot list — pass `rail` (a `<NavList>` mapped from the rows)
|
|
15
|
-
* and `breadcrumb` in place of the derived ones.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
20
|
-
* import { East, NullType, UIComponentType } from "@elaraai/east";
|
|
21
|
-
* import { App, Navigation, Reactive, Image, Text } from "@elaraai/east-ui";
|
|
22
|
-
*
|
|
23
|
-
* const app = East.function([], UIComponentType, _$ => {
|
|
24
|
-
* const routes = Navigation.config({
|
|
25
|
-
* overview: { value: NullType, label: "Overview", section: "Analyse", icon: { prefix: "fas", name: "gauge-high" } },
|
|
26
|
-
* audit: { value: NullType, label: "Audit", section: "Manage", icon: { prefix: "fas", name: "list-check" } },
|
|
27
|
-
* });
|
|
28
|
-
* return (
|
|
29
|
-
* <Reactive>{$ => {
|
|
30
|
-
* const nav = $.let(Navigation.bind(routes, "app.route", [routes.Page.overview()]));
|
|
31
|
-
* return (
|
|
32
|
-
* <App nav={nav} config={routes} title="Acme Ops" logo={Image.dataUri("data:image/svg+xml,<svg/>")}
|
|
33
|
-
* pages={{ overview: () => <Text>Overview</Text>, audit: () => <Text>Audit</Text> }} />
|
|
34
|
-
* );
|
|
35
|
-
* }}</Reactive>
|
|
36
|
-
* );
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Desugars to `App.Root({ nav, config, pages, … })`. A generic function
|
|
42
|
-
* declaration (merged with the `App` namespace) so it is a valid generic JSX
|
|
43
|
-
* component.
|
|
44
|
-
*/
|
|
45
|
-
export function App(props) {
|
|
46
|
-
return AppFactory.Root(props);
|
|
47
|
-
}
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
49
|
-
(function (App) {
|
|
50
|
-
/** The underlying factory: `App.Root({ nav, config, pages, … })`. */
|
|
51
|
-
App.Root = AppFactory.Root;
|
|
52
|
-
})(App || (App = {}));
|
|
53
|
-
//# sourceMappingURL=app.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../../src/runtime/navigation/app.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,6DAA6D;AAE7D,OAAO,EAAE,GAAG,IAAI,UAAU,EAAiB,MAAM,+BAA+B,CAAC;AAIjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,GAAG,CAAsB,KAAkB;IACvD,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,CAAc,CAAC;AAC/C,CAAC;AAED,2DAA2D;AAC3D,WAAiB,GAAG;IAChB,qEAAqE;IACxD,QAAI,GAAG,UAAU,CAAC,IAAI,CAAC;AACxC,CAAC,EAHgB,GAAG,KAAH,GAAG,QAGnB"}
|
|
@@ -1,50 +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
|
-
/** Navigation `<Pages>` tag — the route-stack content switcher. */
|
|
6
|
-
import { type PagesInput } from "../../navigation/pages/index.js";
|
|
7
|
-
import { NavBindHandleType, type NavRoutes } from "../../navigation/pages/types.js";
|
|
8
|
-
import type { UIElement } from "../runtime.js";
|
|
9
|
-
/**
|
|
10
|
-
* Route-stack content switcher — renders only the active route's page
|
|
11
|
-
* (leaf-only) and re-renders on navigation. Takes the nav handle as a required
|
|
12
|
-
* prop (like `<DecisionQueue handle>`): bind it once in the enclosing
|
|
13
|
-
* `<Reactive>` with `Navigation.bind`, then share that one handle between the
|
|
14
|
-
* writer (`nav.go.*` / `nav.pop()`) and this switcher — which is what makes it
|
|
15
|
-
* re-render inside an e3 `ui()` task (#114). `R` (the route map) is inferred
|
|
16
|
-
* from `nav`, so each `pages` handler is fully typed (a wrong payload won't
|
|
17
|
-
* compile).
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
22
|
-
* import { East, NullType, UIComponentType } from "@elaraai/east";
|
|
23
|
-
* import { Navigation, Pages, Reactive } from "@elaraai/east-ui";
|
|
24
|
-
*
|
|
25
|
-
* const app = East.function([], UIComponentType, _$ => {
|
|
26
|
-
* const routes = Navigation.config({ overview: { value: NullType, label: "Overview" } });
|
|
27
|
-
* return (
|
|
28
|
-
* <Reactive>{$ => {
|
|
29
|
-
* const nav = $.let(Navigation.bind(routes, "app.nav", [routes.Page.overview()]));
|
|
30
|
-
* return <Pages nav={nav} pages={{ overview: () => overviewScreen() }} />;
|
|
31
|
-
* }}</Reactive>
|
|
32
|
-
* );
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* Desugars to `Pages.Root({ nav, pages })`. A generic function declaration
|
|
38
|
-
* (merged with the `Pages` namespace) so it is a valid generic JSX component.
|
|
39
|
-
*/
|
|
40
|
-
export declare function Pages<R extends NavRoutes>(props: PagesInput<R>): UIElement;
|
|
41
|
-
export declare namespace Pages {
|
|
42
|
-
/** The underlying factory: `Pages.Root({ nav, pages })`. */
|
|
43
|
-
const Root: <R extends NavRoutes>({ nav, pages }: PagesInput<R>) => import("@elaraai/east").ExprType<typeof import("../../component.js").UIComponentType>;
|
|
44
|
-
/** Navigation East types (namespaced — never bare-exported). */
|
|
45
|
-
const Types: {
|
|
46
|
-
/** `Handle(routes)` → the `Navigation.bind` handle `StructType` for a routes map. */
|
|
47
|
-
readonly Handle: typeof NavBindHandleType;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=pages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../src/runtime/navigation/pages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,mEAAmE;AAEnE,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAE1E;AAGD,yBAAiB,KAAK,CAAC;IACnB,4DAA4D;IACrD,MAAM,IAAI,+IAAoB,CAAC;IACtC,gEAAgE;IACzD,MAAM,KAAK;QACd,qFAAqF;;KAE/E,CAAC;CACd"}
|
|
@@ -1,52 +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
|
-
/** Navigation `<Pages>` tag — the route-stack content switcher. */
|
|
6
|
-
import { Pages as PagesFactory } from "../../navigation/pages/index.js";
|
|
7
|
-
import { NavBindHandleType } from "../../navigation/pages/types.js";
|
|
8
|
-
/**
|
|
9
|
-
* Route-stack content switcher — renders only the active route's page
|
|
10
|
-
* (leaf-only) and re-renders on navigation. Takes the nav handle as a required
|
|
11
|
-
* prop (like `<DecisionQueue handle>`): bind it once in the enclosing
|
|
12
|
-
* `<Reactive>` with `Navigation.bind`, then share that one handle between the
|
|
13
|
-
* writer (`nav.go.*` / `nav.pop()`) and this switcher — which is what makes it
|
|
14
|
-
* re-render inside an e3 `ui()` task (#114). `R` (the route map) is inferred
|
|
15
|
-
* from `nav`, so each `pages` handler is fully typed (a wrong payload won't
|
|
16
|
-
* compile).
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
21
|
-
* import { East, NullType, UIComponentType } from "@elaraai/east";
|
|
22
|
-
* import { Navigation, Pages, Reactive } from "@elaraai/east-ui";
|
|
23
|
-
*
|
|
24
|
-
* const app = East.function([], UIComponentType, _$ => {
|
|
25
|
-
* const routes = Navigation.config({ overview: { value: NullType, label: "Overview" } });
|
|
26
|
-
* return (
|
|
27
|
-
* <Reactive>{$ => {
|
|
28
|
-
* const nav = $.let(Navigation.bind(routes, "app.nav", [routes.Page.overview()]));
|
|
29
|
-
* return <Pages nav={nav} pages={{ overview: () => overviewScreen() }} />;
|
|
30
|
-
* }}</Reactive>
|
|
31
|
-
* );
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Desugars to `Pages.Root({ nav, pages })`. A generic function declaration
|
|
37
|
-
* (merged with the `Pages` namespace) so it is a valid generic JSX component.
|
|
38
|
-
*/
|
|
39
|
-
export function Pages(props) {
|
|
40
|
-
return PagesFactory.Root(props);
|
|
41
|
-
}
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
43
|
-
(function (Pages) {
|
|
44
|
-
/** The underlying factory: `Pages.Root({ nav, pages })`. */
|
|
45
|
-
Pages.Root = PagesFactory.Root;
|
|
46
|
-
/** Navigation East types (namespaced — never bare-exported). */
|
|
47
|
-
Pages.Types = {
|
|
48
|
-
/** `Handle(routes)` → the `Navigation.bind` handle `StructType` for a routes map. */
|
|
49
|
-
Handle: NavBindHandleType,
|
|
50
|
-
};
|
|
51
|
-
})(Pages || (Pages = {}));
|
|
52
|
-
//# sourceMappingURL=pages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../../src/runtime/navigation/pages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,mEAAmE;AAEnE,OAAO,EAAE,KAAK,IAAI,YAAY,EAAmB,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAkB,MAAM,iCAAiC,CAAC;AAGpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,UAAU,KAAK,CAAsB,KAAoB;IAC3D,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAc,CAAC;AACjD,CAAC;AAED,2DAA2D;AAC3D,WAAiB,KAAK;IAClB,4DAA4D;IAC/C,UAAI,GAAG,YAAY,CAAC,IAAI,CAAC;IACtC,gEAAgE;IACnD,WAAK,GAAG;QACjB,qFAAqF;QACrF,MAAM,EAAE,iBAAiB;KACnB,CAAC;AACf,CAAC,EARgB,KAAK,KAAL,KAAK,QAQrB"}
|
|
@@ -1,46 +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
|
-
/** Navigation `<Route>` tag — the nav-typed hosting slot (#333). */
|
|
6
|
-
import { type RouteInput } from "../../navigation/pages/index.js";
|
|
7
|
-
import type { NavRoutes } from "../../navigation/pages/types.js";
|
|
8
|
-
import type { UIElement } from "../runtime.js";
|
|
9
|
-
/**
|
|
10
|
-
* Nav-typed hosting slot — `<Pages>` generalized to any slot: renders only the
|
|
11
|
-
* active route's body and **remounts it on navigation**, but is placeable
|
|
12
|
-
* anywhere (a header widget, a sidebar, a drawer body). Bind the nav handle
|
|
13
|
-
* once in the enclosing `<Reactive>` and share it between the body `<Pages>`,
|
|
14
|
-
* the chrome, and any number of `<Route>` slots — they stay in lockstep and
|
|
15
|
-
* each remounts *its own* slot on navigation. Route keys are typed +
|
|
16
|
-
* exhaustive against the `Navigation.config`; each body receives the route's
|
|
17
|
-
* payload + the nav handle. For a non-route key (a `State`-bound mode, a
|
|
18
|
-
* tagged selection), use `<Match on cases>` instead.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
23
|
-
* import { East, NullType, UIComponentType } from "@elaraai/east";
|
|
24
|
-
* import { Navigation, Route, Reactive, Text } from "@elaraai/east-ui";
|
|
25
|
-
*
|
|
26
|
-
* const widget = East.function([], UIComponentType, _$ => {
|
|
27
|
-
* const routes = Navigation.config({ overview: { value: NullType, label: "Overview" } });
|
|
28
|
-
* return (
|
|
29
|
-
* <Reactive>{$ => {
|
|
30
|
-
* const nav = $.let(Navigation.bind(routes, "app.nav", [routes.Page.overview()]));
|
|
31
|
-
* return <Route nav={nav} routes={{ overview: () => <Text>Overview widget</Text> }} />;
|
|
32
|
-
* }}</Reactive>
|
|
33
|
-
* );
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* Desugars to `Route.Root({ nav, routes })`. A generic function declaration
|
|
39
|
-
* (merged with the `Route` namespace) so it is a valid generic JSX component.
|
|
40
|
-
*/
|
|
41
|
-
export declare function Route<R extends NavRoutes>(props: RouteInput<R>): UIElement;
|
|
42
|
-
export declare namespace Route {
|
|
43
|
-
/** The underlying factory: `Route.Root({ nav, routes })`. */
|
|
44
|
-
const Root: <R extends NavRoutes>({ nav, routes }: RouteInput<R>) => import("@elaraai/east").ExprType<typeof import("../../component.js").UIComponentType>;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=route.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../src/runtime/navigation/route.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oEAAoE;AAEpE,OAAO,EAAyB,KAAK,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAE1E;AAGD,yBAAiB,KAAK,CAAC;IACnB,6DAA6D;IACtD,MAAM,IAAI,gJAAoB,CAAC;CACzC"}
|
|
@@ -1,47 +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
|
-
/** Navigation `<Route>` tag — the nav-typed hosting slot (#333). */
|
|
6
|
-
import { Route as RouteFactory } from "../../navigation/pages/index.js";
|
|
7
|
-
/**
|
|
8
|
-
* Nav-typed hosting slot — `<Pages>` generalized to any slot: renders only the
|
|
9
|
-
* active route's body and **remounts it on navigation**, but is placeable
|
|
10
|
-
* anywhere (a header widget, a sidebar, a drawer body). Bind the nav handle
|
|
11
|
-
* once in the enclosing `<Reactive>` and share it between the body `<Pages>`,
|
|
12
|
-
* the chrome, and any number of `<Route>` slots — they stay in lockstep and
|
|
13
|
-
* each remounts *its own* slot on navigation. Route keys are typed +
|
|
14
|
-
* exhaustive against the `Navigation.config`; each body receives the route's
|
|
15
|
-
* payload + the nav handle. For a non-route key (a `State`-bound mode, a
|
|
16
|
-
* tagged selection), use `<Match on cases>` instead.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
21
|
-
* import { East, NullType, UIComponentType } from "@elaraai/east";
|
|
22
|
-
* import { Navigation, Route, Reactive, Text } from "@elaraai/east-ui";
|
|
23
|
-
*
|
|
24
|
-
* const widget = East.function([], UIComponentType, _$ => {
|
|
25
|
-
* const routes = Navigation.config({ overview: { value: NullType, label: "Overview" } });
|
|
26
|
-
* return (
|
|
27
|
-
* <Reactive>{$ => {
|
|
28
|
-
* const nav = $.let(Navigation.bind(routes, "app.nav", [routes.Page.overview()]));
|
|
29
|
-
* return <Route nav={nav} routes={{ overview: () => <Text>Overview widget</Text> }} />;
|
|
30
|
-
* }}</Reactive>
|
|
31
|
-
* );
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Desugars to `Route.Root({ nav, routes })`. A generic function declaration
|
|
37
|
-
* (merged with the `Route` namespace) so it is a valid generic JSX component.
|
|
38
|
-
*/
|
|
39
|
-
export function Route(props) {
|
|
40
|
-
return RouteFactory.Root(props);
|
|
41
|
-
}
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
43
|
-
(function (Route) {
|
|
44
|
-
/** The underlying factory: `Route.Root({ nav, routes })`. */
|
|
45
|
-
Route.Root = RouteFactory.Root;
|
|
46
|
-
})(Route || (Route = {}));
|
|
47
|
-
//# sourceMappingURL=route.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/runtime/navigation/route.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oEAAoE;AAEpE,OAAO,EAAE,KAAK,IAAI,YAAY,EAAmB,MAAM,iCAAiC,CAAC;AAIzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,KAAK,CAAsB,KAAoB;IAC3D,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAc,CAAC;AACjD,CAAC;AAED,2DAA2D;AAC3D,WAAiB,KAAK;IAClB,6DAA6D;IAChD,UAAI,GAAG,YAAY,CAAC,IAAI,CAAC;AAC1C,CAAC,EAHgB,KAAK,KAAL,KAAK,QAGrB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const boardEdit: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
-
export declare const boardLibraryDnd: import("@elaraai/east").ExampleDef<[], any>;
|
|
3
|
-
/**
|
|
4
|
-
* THE Board configurator (pass 5) — ONE live day board; the preset axis is a
|
|
5
|
-
* pure DATA struct (areas / shifts / people / assignments / requirements /
|
|
6
|
-
* maxVisible / mode / summary), so published, coverage numerals and the +N
|
|
7
|
-
* overflow all flow through the same instance: an empty requirements array is
|
|
8
|
-
* "no coverage chrome" and a large maxVisible is "no cap".
|
|
9
|
-
*/
|
|
10
|
-
export declare const boardVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
11
|
-
/**
|
|
12
|
-
* Review chrome (#265) — the shared commitBar foot (Approve all / Reject all /
|
|
13
|
-
* Rerun) beside per-tile ghost accept.
|
|
14
|
-
*/
|
|
15
|
-
export declare const boardReview: import("@elaraai/east").ExampleDef<[], any>;
|
|
16
|
-
/** Fill (#320) — height="fill" in a bounded Box virtualizes the 200 area rows. */
|
|
17
|
-
export declare const boardFill: import("@elaraai/east").ExampleDef<[], any>;
|
|
18
|
-
//# sourceMappingURL=board.examples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"board.examples.d.ts","sourceRoot":"","sources":["../../../test/collections/board.examples.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,SAAS,6CA6EpB,CAAC;AAEH,eAAO,MAAM,eAAe,6CA4D1B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,6CAiKxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW,6CA2CtB,CAAC;AAEH,kFAAkF;AAClF,eAAO,MAAM,SAAS,6CAyCpB,CAAC"}
|