@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
|
@@ -1,208 +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` — the planning spreadsheet (`libs/east-ui/docs/proposals/Sheet
|
|
7
|
-
* Spec.md`): a sheet whose rows are the host's records, whose columns are
|
|
8
|
-
* TYPED (a date, a quantity with a unit, a register lookup, a directed link
|
|
9
|
-
* between register members, a stamped read-only code), whose blank tail
|
|
10
|
-
* invites the next row, and whose copilot fills cells and proposes whole
|
|
11
|
-
* rows from rules the author writes as East functions.
|
|
12
|
-
*
|
|
13
|
-
* The module is the namespace assembler over the split sources:
|
|
14
|
-
* `types.ts` (the closed wire types + the typed constructors) ·
|
|
15
|
-
* `columns.ts` (`Sheet.column.*`) · `registers.ts` (`Sheet.register.*`,
|
|
16
|
-
* `Sheet.driver`) · `link.ts` (`Sheet.link.*`) · `group.ts` (`Sheet.group`,
|
|
17
|
-
* `Sheet.group.cell.*`) · `sub-rows.ts` (`Sheet.subRows` / `Sheet.subRow`) ·
|
|
18
|
-
* `transactions.ts` and `drafts.ts` (the Sheet's names for the shared editing
|
|
19
|
-
* contract, `contracts/editing.ts` #879 — `Sheet.apply`, the checked batch
|
|
20
|
-
* types, the draft entry types and the `onPatch` event — plus the new-row
|
|
21
|
-
* contexts only a sheet has) · `edits.ts` (the `edits` capabilities) ·
|
|
22
|
-
* `bridge.ts` (the typed bridge) · `context-bridge.ts`, `draft-bridge.ts` and
|
|
23
|
-
* `seed-bridge.ts` (draft-aware contexts, draft decoding and the `newRow` /
|
|
24
|
-
* `newGroup` defaults) · `editing-bridge.ts` and `editing-types.ts` (the
|
|
25
|
-
* editing session's callbacks and their closed transport, the inline
|
|
26
|
-
* `onUpdate` adapter among them) · `root.ts` (`Sheet.Root`).
|
|
27
|
-
*
|
|
28
|
-
* One namespace object per category, the `Plan.series` / `Plan.at` /
|
|
29
|
-
* `Plan.Types` split, so categories never mix as they grow.
|
|
30
|
-
*
|
|
31
|
-
* @packageDocumentation
|
|
32
|
-
*/
|
|
33
|
-
import { East, some, none, } from "@elaraai/east";
|
|
34
|
-
import { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetLineType, SheetBandType, SheetGroupCellType, SheetGroupType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, SheetSidesValueType, SheetStoreType, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, SheetColumnType, SheetViewType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetFacetType, SheetSubRowType, SheetDateLevelType, SheetOptionsRuleType, SheetNounType, sheetContextType, sheetCheckContextType, } from "./types.js";
|
|
35
|
-
import { text, date, quantity, integer, lookup, reference, enumColumn, set, link, stamped, custom } from "./columns.js";
|
|
36
|
-
import { createMembers, concatMembers, createDriver } from "./registers.js";
|
|
37
|
-
import { createArity, check, parseLink, printLink, SheetMembersType, SheetRegisterMembersType } from "./link.js";
|
|
38
|
-
import { createSheet } from "./root.js";
|
|
39
|
-
import { createSubRows, createSubRow } from "./sub-rows.js";
|
|
40
|
-
import { createGroup, text as groupText, date as groupDate, quantity as groupQuantity, integer as groupInteger, reference as groupReference, enumCell as groupEnum, stamped as groupStamped, } from "./group.js";
|
|
41
|
-
import { applySheet, SheetPositionType, SheetEntryPlacementType, SheetRowDestinationType, SheetFieldIssueType, SheetReadinessType, SheetIssueType, SheetBatchReadinessType, SheetOriginType, SheetApplyResultType, SheetNewRowType, SheetNewGroupType, SheetDraftTypeFor, SheetBaseTypeFor, SheetChangeTypeFor, SheetChangeSetTypeFor, SheetAppliedTypeFor } from "./transactions.js";
|
|
42
|
-
export * from "./transactions.js";
|
|
43
|
-
import { SheetEntryTypeFor, SheetDraftGroupTypeFor, SheetDraftEntryTypeFor, SheetDraftChangeTypeFor, SheetPatchEventTypeFor } from "./drafts.js";
|
|
44
|
-
export * from "./drafts.js";
|
|
45
|
-
export * from "./editing-types.js";
|
|
46
|
-
// Re-export the UIComp-free types so consumers reach everything via this barrel.
|
|
47
|
-
export { SheetMemberType, SheetLinkType, SheetCellType, SheetRowType, SheetLineType, SheetBandType, SheetFacetType, SheetSubRowType, SheetDateLevelType, SheetOptionsRuleType, SheetNounType, SHEET_TITLE_CELL, sheetRuleCell, SheetGroupCellType, SheetGroupType, SheetRowsCollectionType, SheetRowsType, SheetRegisterMemberType, SheetRegisterType, SheetDriverType, SheetHalfType, SheetSidesValueType, SheetStoreType, SheetMemberKindType, SheetMultipleType, SheetSideLockType, SheetSidesType, SheetCountedType, SheetContextType, SheetFillType, SheetProposalType, SheetProviderType, SheetProposerType, SheetSuggestType, SheetCheckContextType, SheetCheckType, SheetArityType, SheetColumnKindType, SheetColumnType, SheetViewType, SheetEditType, SheetSelectionType, SheetFooterItemType, SheetStyleType, SheetRootType, SheetContextTypeFor, SheetFillTypeFor, SheetPatchTypeFor, SheetProposalTypeFor, SheetCheckContextTypeFor, SheetGroupContextTypeFor, SheetGroupCheckContextTypeFor, sheetContextType, sheetCheckContextType, sheetLinesOf, } from "./types.js";
|
|
48
|
-
export {} from "./columns.js";
|
|
49
|
-
export {} from "./registers.js";
|
|
50
|
-
export { SheetMembersType, SheetRegisterMembersType, printMember, linkKeys, } from "./link.js";
|
|
51
|
-
export { createSheet, } from "./root.js";
|
|
52
|
-
export { createGroup, } from "./group.js";
|
|
53
|
-
export { createSubRows, createSubRow, } from "./sub-rows.js";
|
|
54
|
-
export { describeColumn, describeGroupCell, optionPayload, cellTagOf } from "./bridge.js";
|
|
55
|
-
// ============================================================================
|
|
56
|
-
// Sheet.patch
|
|
57
|
-
// ============================================================================
|
|
58
|
-
/**
|
|
59
|
-
* Builds a row patch — `Sheet.patch(R, { … })`: the fields it sets, every
|
|
60
|
-
* other field `none`. A proposer returns patches as its proposed rows
|
|
61
|
-
* (§3.6), and `newRow` / `newGroup` return one as a new row's explicit
|
|
62
|
-
* defaults, including required fields no column shows — a field it leaves
|
|
63
|
-
* `none` starts missing. Takes the literal-record form of `R`'s fields, each
|
|
64
|
-
* a literal or an expression of the FIELD's type.
|
|
65
|
-
*
|
|
66
|
-
* @typeParam R - The host's row type
|
|
67
|
-
* @param rowType - The row type value
|
|
68
|
-
* @param record - The fields to set
|
|
69
|
-
* @returns An expression of `Sheet.Types.Patch(R)`
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```tsx
|
|
73
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
74
|
-
* import { ArrayType, East, IntegerType, StringType, StructType } from "@elaraai/east";
|
|
75
|
-
* import { Reactive, Sheet, State, Text, UIComponentType, VStack } from "@elaraai/east-ui";
|
|
76
|
-
*
|
|
77
|
-
* const sheet = East.function([], UIComponentType, (_$) => (
|
|
78
|
-
* <Reactive>{$ => {
|
|
79
|
-
* const RowType = StructType({ id: StringType, task: StringType, qty: IntegerType, createdBy: StringType });
|
|
80
|
-
* const jobs = $.const(State.bind([ArrayType(RowType)], "sheet_insertion_jobs", [
|
|
81
|
-
* { id: "rough", task: "Rough machining", qty: 120n, createdBy: "planner" },
|
|
82
|
-
* { id: "inspect", task: "Inspect lots", qty: 4n, createdBy: "planner" },
|
|
83
|
-
* { id: "finish", task: "Finish housings", qty: 120n, createdBy: "planner" },
|
|
84
|
-
* ]));
|
|
85
|
-
* const saved = $.const(jobs.read());
|
|
86
|
-
* return <VStack gap="3" align="stretch">
|
|
87
|
-
* <Text textStyle="caption" color="fg.muted">Hover or focus a gutter to insert before a row. Select a row marker for Insert above/below, or use Alt+Insert and Alt+Shift+Insert. Name the draft and Apply to save it.</Text>
|
|
88
|
-
* <Sheet data={jobs} id="id" columns={{ task: Sheet.column.text(RowType), qty: Sheet.column.integer(RowType) }}
|
|
89
|
-
* edits={{ insertRows: true, removeRows: false, moveRows: "none" }}
|
|
90
|
-
* newRow={East.function([Sheet.Types.NewRow], Sheet.Types.Patch(RowType), () => Sheet.patch(RowType, { qty: 1n, createdBy: "planner" }))}
|
|
91
|
-
* onUpdate={jobs.write} blanks={2n} />
|
|
92
|
-
* <Text.MonoLabel>{East.str`SAVED · ${saved.map((_$, row) => row.task).stringJoin(" → ")}`}</Text.MonoLabel>
|
|
93
|
-
* </VStack>;
|
|
94
|
-
* }}</Reactive>
|
|
95
|
-
* ));
|
|
96
|
-
* ```
|
|
97
|
-
*/
|
|
98
|
-
export function createPatch(rowType, record) {
|
|
99
|
-
const patchType = SheetPatchTypeFor(rowType);
|
|
100
|
-
const fields = {};
|
|
101
|
-
const rec = record;
|
|
102
|
-
for (const name of Object.keys(rowType.fields)) {
|
|
103
|
-
fields[name] = rec[name] !== undefined ? some(rec[name]) : none;
|
|
104
|
-
}
|
|
105
|
-
return East.value(fields, patchType);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* The `Sheet` namespace — the planning spreadsheet. Assemble a sheet with
|
|
109
|
-
* `Sheet.Root` (the `<Sheet>` tag), declare columns with `Sheet.column.*`
|
|
110
|
-
* (row type first), registers with `Sheet.register.members` / `.concat` and
|
|
111
|
-
* the driver with `Sheet.driver`, link rules with `Sheet.link.*`, proposed
|
|
112
|
-
* rows and new-row defaults with `Sheet.patch`, grouped rows with
|
|
113
|
-
* `Sheet.group` (#740), sub rows with `Sheet.subRows` / `Sheet.subRow`
|
|
114
|
-
* (#844), apply a checked batch to a collection with `Sheet.apply`, and
|
|
115
|
-
* reach every East type — the closed wire types and the typed constructors
|
|
116
|
-
* `DraftContext(R, D)` / `Fill(T)` / `Patch(R)` / `Proposal(R)` /
|
|
117
|
-
* `PatchEvent(E)` / `ChangeSet(E)` / `Entry(G, "rows")` / `CheckContext(R)`
|
|
118
|
-
* — via `Sheet.Types.*`. The `<Sheet>` tag carries every member but `Root`.
|
|
119
|
-
*/
|
|
120
|
-
export const Sheet = {
|
|
121
|
-
Root: createSheet,
|
|
122
|
-
column: { text, date, quantity, integer, lookup, reference, enum: enumColumn, set, link, stamped, custom },
|
|
123
|
-
register: { members: createMembers, concat: concatMembers },
|
|
124
|
-
driver: createDriver,
|
|
125
|
-
link: { arity: createArity, check, parse: parseLink, print: printLink },
|
|
126
|
-
patch: createPatch,
|
|
127
|
-
subRows: createSubRows,
|
|
128
|
-
subRow: createSubRow,
|
|
129
|
-
apply: applySheet,
|
|
130
|
-
group: Object.assign(createGroup, {
|
|
131
|
-
cell: { text: groupText, date: groupDate, quantity: groupQuantity, integer: groupInteger, reference: groupReference, enum: groupEnum, stamped: groupStamped },
|
|
132
|
-
}),
|
|
133
|
-
Types: {
|
|
134
|
-
Entry: SheetEntryTypeFor,
|
|
135
|
-
DraftGroup: SheetDraftGroupTypeFor,
|
|
136
|
-
DraftEntry: SheetDraftEntryTypeFor,
|
|
137
|
-
DraftChange: SheetDraftChangeTypeFor,
|
|
138
|
-
PatchEvent: SheetPatchEventTypeFor,
|
|
139
|
-
Position: SheetPositionType,
|
|
140
|
-
EntryPlacement: SheetEntryPlacementType,
|
|
141
|
-
RowDestination: SheetRowDestinationType,
|
|
142
|
-
FieldIssue: SheetFieldIssueType,
|
|
143
|
-
Readiness: SheetReadinessType,
|
|
144
|
-
Issue: SheetIssueType,
|
|
145
|
-
BatchReadiness: SheetBatchReadinessType,
|
|
146
|
-
Origin: SheetOriginType,
|
|
147
|
-
ApplyResult: SheetApplyResultType,
|
|
148
|
-
NewRow: SheetNewRowType,
|
|
149
|
-
NewGroup: SheetNewGroupType,
|
|
150
|
-
Draft: SheetDraftTypeFor,
|
|
151
|
-
Base: SheetBaseTypeFor,
|
|
152
|
-
Change: SheetChangeTypeFor,
|
|
153
|
-
ChangeSet: SheetChangeSetTypeFor,
|
|
154
|
-
Applied: SheetAppliedTypeFor,
|
|
155
|
-
Root: SheetRootType,
|
|
156
|
-
Row: SheetRowType,
|
|
157
|
-
Line: SheetLineType,
|
|
158
|
-
SubRow: SheetSubRowType,
|
|
159
|
-
Facet: SheetFacetType,
|
|
160
|
-
DateLevel: SheetDateLevelType,
|
|
161
|
-
OptionsRule: SheetOptionsRuleType,
|
|
162
|
-
Noun: SheetNounType,
|
|
163
|
-
Band: SheetBandType,
|
|
164
|
-
Group: SheetGroupType,
|
|
165
|
-
GroupCell: SheetGroupCellType,
|
|
166
|
-
Rows: SheetRowsCollectionType,
|
|
167
|
-
RowSource: SheetRowsType,
|
|
168
|
-
Cell: SheetCellType,
|
|
169
|
-
Link: SheetLinkType,
|
|
170
|
-
Member: SheetMemberType,
|
|
171
|
-
Members: SheetMembersType,
|
|
172
|
-
Counted: SheetCountedType,
|
|
173
|
-
Sides: SheetSidesValueType,
|
|
174
|
-
Half: SheetHalfType,
|
|
175
|
-
Store: SheetStoreType,
|
|
176
|
-
RegisterMember: SheetRegisterMemberType,
|
|
177
|
-
RegisterMembers: SheetRegisterMembersType,
|
|
178
|
-
Register: SheetRegisterType,
|
|
179
|
-
Driver: SheetDriverType,
|
|
180
|
-
MemberKind: SheetMemberKindType,
|
|
181
|
-
Multiple: SheetMultipleType,
|
|
182
|
-
SideLock: SheetSideLockType,
|
|
183
|
-
SidesDeclaration: SheetSidesType,
|
|
184
|
-
Column: SheetColumnType,
|
|
185
|
-
ColumnKind: SheetColumnKindType,
|
|
186
|
-
WireContext: SheetContextType,
|
|
187
|
-
WireFill: SheetFillType,
|
|
188
|
-
WireProposal: SheetProposalType,
|
|
189
|
-
Provider: SheetProviderType,
|
|
190
|
-
Proposer: SheetProposerType,
|
|
191
|
-
Suggest: SheetSuggestType,
|
|
192
|
-
WireCheckContext: SheetCheckContextType,
|
|
193
|
-
Check: SheetCheckType,
|
|
194
|
-
Arity: SheetArityType,
|
|
195
|
-
View: SheetViewType,
|
|
196
|
-
WireEdit: SheetEditType,
|
|
197
|
-
Selection: SheetSelectionType,
|
|
198
|
-
FooterItem: SheetFooterItemType,
|
|
199
|
-
Style: SheetStyleType,
|
|
200
|
-
Context: sheetContextType,
|
|
201
|
-
DraftContext: sheetContextType,
|
|
202
|
-
Fill: SheetFillTypeFor,
|
|
203
|
-
Patch: SheetPatchTypeFor,
|
|
204
|
-
Proposal: SheetProposalTypeFor,
|
|
205
|
-
CheckContext: sheetCheckContextType,
|
|
206
|
-
},
|
|
207
|
-
};
|
|
208
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collections/sheet/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2B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AS,EAAE,kBAAkB;QAC7B,UAAU,EAAE,mBAAmB;QAC/B,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,gBAAgB;QACzB,YAAY,EAAE,gBAAgB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,oBAAoB;QAC9B,YAAY,EAAE,qBAAqB;KACtC;CACJ,CAAC"}
|
|
@@ -1,398 +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.link` — the link value's helpers: the grammar's parse / print pair
|
|
7
|
-
* as exported East functions (B§4.1, `Sheet Spec.md` §3.4), and the
|
|
8
|
-
* `arity` / `check` declarations a link column takes.
|
|
9
|
-
*
|
|
10
|
-
* The grammar here is the SYNTACTIC half the renderer and a task share —
|
|
11
|
-
* splitting halves on `>`, members on `,`, the counted form, ranges, the
|
|
12
|
-
* placeholder — resolved against a register's members so a code is
|
|
13
|
-
* `identified` and anything else is kept as `text`. Candidate scoring,
|
|
14
|
-
* prefix completion and the countable-by-attribute forms are the renderer's
|
|
15
|
-
* (`link/grammar.ts`, P3): they need the editor, not a value.
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import { type EastType, type ExprType, type SubtypeExprOrValue, ArrayType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, SetType } from "@elaraai/east";
|
|
20
|
-
import { SheetCountedType, type SheetHalfLiteral, type SheetAnyContextOf, type SheetAnyCheckContextOf } from "./types.js";
|
|
21
|
-
/** A list of link members. */
|
|
22
|
-
export declare const SheetMembersType: ArrayType<import("@elaraai/east").VariantType<{
|
|
23
|
-
readonly identified: StructType<{
|
|
24
|
-
readonly key: StringType;
|
|
25
|
-
}>;
|
|
26
|
-
readonly range: StructType<{
|
|
27
|
-
readonly from: StringType;
|
|
28
|
-
readonly to: StringType;
|
|
29
|
-
}>;
|
|
30
|
-
readonly counted: StructType<{
|
|
31
|
-
readonly n: IntegerType;
|
|
32
|
-
readonly key: StringType;
|
|
33
|
-
}>;
|
|
34
|
-
readonly placeholder: NullType;
|
|
35
|
-
readonly text: StringType;
|
|
36
|
-
}>>;
|
|
37
|
-
/** A list of register members — what `parse` resolves against. */
|
|
38
|
-
export declare const SheetRegisterMembersType: ArrayType<StructType<{
|
|
39
|
-
readonly key: StringType;
|
|
40
|
-
readonly label: StringType;
|
|
41
|
-
readonly kind: StringType;
|
|
42
|
-
readonly aliases: ArrayType<StringType>;
|
|
43
|
-
readonly meta: OptionType<StringType>;
|
|
44
|
-
readonly parent: OptionType<StringType>;
|
|
45
|
-
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
46
|
-
readonly success: NullType;
|
|
47
|
-
readonly warning: NullType;
|
|
48
|
-
readonly danger: NullType;
|
|
49
|
-
readonly info: NullType;
|
|
50
|
-
readonly neutral: NullType;
|
|
51
|
-
}>>;
|
|
52
|
-
}>>;
|
|
53
|
-
/**
|
|
54
|
-
* Print one member in the grammar's display form.
|
|
55
|
-
*
|
|
56
|
-
* @remarks
|
|
57
|
-
* A module-scope East function (the Plan's `REBASE_ROWS` precedent): built
|
|
58
|
-
* once, called by `print` and by the factory's `String`-field projection.
|
|
59
|
-
*/
|
|
60
|
-
export declare const printMember: import("@elaraai/east").CallableFunctionExpr<[import("@elaraai/east").VariantType<{
|
|
61
|
-
readonly identified: StructType<{
|
|
62
|
-
readonly key: StringType;
|
|
63
|
-
}>;
|
|
64
|
-
readonly range: StructType<{
|
|
65
|
-
readonly from: StringType;
|
|
66
|
-
readonly to: StringType;
|
|
67
|
-
}>;
|
|
68
|
-
readonly counted: StructType<{
|
|
69
|
-
readonly n: IntegerType;
|
|
70
|
-
readonly key: StringType;
|
|
71
|
-
}>;
|
|
72
|
-
readonly placeholder: NullType;
|
|
73
|
-
readonly text: StringType;
|
|
74
|
-
}>], StringType>;
|
|
75
|
-
/**
|
|
76
|
-
* `Sheet.link.print` — a link value as the planner would type it (B§4.2):
|
|
77
|
-
* `a > b`, `b` for a destination-only link, `a >` for a source-only one.
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```ts
|
|
81
|
-
* import { East, StringType, variant } from "@elaraai/east";
|
|
82
|
-
* import { Sheet } from "@elaraai/east-ui";
|
|
83
|
-
*
|
|
84
|
-
* const printed = East.function([], StringType, ($) => {
|
|
85
|
-
* const link = $.const({
|
|
86
|
-
* from: [variant("identified", { key: "M2140" }), variant("range", { from: "M2141", to: "M2145" })],
|
|
87
|
-
* to: [variant("counted", { n: 4n, key: "CNC lathe" }), variant("placeholder", null)],
|
|
88
|
-
* }, Sheet.Types.Link);
|
|
89
|
-
* return Sheet.link.print(link);
|
|
90
|
-
* });
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
export declare const printLink: import("@elaraai/east").CallableFunctionExpr<[StructType<{
|
|
94
|
-
readonly from: ArrayType<import("@elaraai/east").VariantType<{
|
|
95
|
-
readonly identified: StructType<{
|
|
96
|
-
readonly key: StringType;
|
|
97
|
-
}>;
|
|
98
|
-
readonly range: StructType<{
|
|
99
|
-
readonly from: StringType;
|
|
100
|
-
readonly to: StringType;
|
|
101
|
-
}>;
|
|
102
|
-
readonly counted: StructType<{
|
|
103
|
-
readonly n: IntegerType;
|
|
104
|
-
readonly key: StringType;
|
|
105
|
-
}>;
|
|
106
|
-
readonly placeholder: NullType;
|
|
107
|
-
readonly text: StringType;
|
|
108
|
-
}>>;
|
|
109
|
-
readonly to: ArrayType<import("@elaraai/east").VariantType<{
|
|
110
|
-
readonly identified: StructType<{
|
|
111
|
-
readonly key: StringType;
|
|
112
|
-
}>;
|
|
113
|
-
readonly range: StructType<{
|
|
114
|
-
readonly from: StringType;
|
|
115
|
-
readonly to: StringType;
|
|
116
|
-
}>;
|
|
117
|
-
readonly counted: StructType<{
|
|
118
|
-
readonly n: IntegerType;
|
|
119
|
-
readonly key: StringType;
|
|
120
|
-
}>;
|
|
121
|
-
readonly placeholder: NullType;
|
|
122
|
-
readonly text: StringType;
|
|
123
|
-
}>>;
|
|
124
|
-
}>], StringType>;
|
|
125
|
-
/**
|
|
126
|
-
* Print one member with the register's LABELS — the `store: "canonical"`
|
|
127
|
-
* form (B§4.2): an identified member prints its member's label when the
|
|
128
|
-
* register has it, its key otherwise; every other member prints as
|
|
129
|
-
* {@link printMember}.
|
|
130
|
-
*/
|
|
131
|
-
export declare const printMemberWith: import("@elaraai/east").CallableFunctionExpr<[import("@elaraai/east").VariantType<{
|
|
132
|
-
readonly identified: StructType<{
|
|
133
|
-
readonly key: StringType;
|
|
134
|
-
}>;
|
|
135
|
-
readonly range: StructType<{
|
|
136
|
-
readonly from: StringType;
|
|
137
|
-
readonly to: StringType;
|
|
138
|
-
}>;
|
|
139
|
-
readonly counted: StructType<{
|
|
140
|
-
readonly n: IntegerType;
|
|
141
|
-
readonly key: StringType;
|
|
142
|
-
}>;
|
|
143
|
-
readonly placeholder: NullType;
|
|
144
|
-
readonly text: StringType;
|
|
145
|
-
}>, ArrayType<StructType<{
|
|
146
|
-
readonly key: StringType;
|
|
147
|
-
readonly label: StringType;
|
|
148
|
-
readonly kind: StringType;
|
|
149
|
-
readonly aliases: ArrayType<StringType>;
|
|
150
|
-
readonly meta: OptionType<StringType>;
|
|
151
|
-
readonly parent: OptionType<StringType>;
|
|
152
|
-
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
153
|
-
readonly success: NullType;
|
|
154
|
-
readonly warning: NullType;
|
|
155
|
-
readonly danger: NullType;
|
|
156
|
-
readonly info: NullType;
|
|
157
|
-
readonly neutral: NullType;
|
|
158
|
-
}>>;
|
|
159
|
-
}>>], StringType>;
|
|
160
|
-
/**
|
|
161
|
-
* `Sheet.link.print` with the register's labels — what a `String` field
|
|
162
|
-
* stores under `store: "canonical"` (B§4.2).
|
|
163
|
-
*/
|
|
164
|
-
export declare const printLinkWith: import("@elaraai/east").CallableFunctionExpr<[StructType<{
|
|
165
|
-
readonly from: ArrayType<import("@elaraai/east").VariantType<{
|
|
166
|
-
readonly identified: StructType<{
|
|
167
|
-
readonly key: StringType;
|
|
168
|
-
}>;
|
|
169
|
-
readonly range: StructType<{
|
|
170
|
-
readonly from: StringType;
|
|
171
|
-
readonly to: StringType;
|
|
172
|
-
}>;
|
|
173
|
-
readonly counted: StructType<{
|
|
174
|
-
readonly n: IntegerType;
|
|
175
|
-
readonly key: StringType;
|
|
176
|
-
}>;
|
|
177
|
-
readonly placeholder: NullType;
|
|
178
|
-
readonly text: StringType;
|
|
179
|
-
}>>;
|
|
180
|
-
readonly to: ArrayType<import("@elaraai/east").VariantType<{
|
|
181
|
-
readonly identified: StructType<{
|
|
182
|
-
readonly key: StringType;
|
|
183
|
-
}>;
|
|
184
|
-
readonly range: StructType<{
|
|
185
|
-
readonly from: StringType;
|
|
186
|
-
readonly to: StringType;
|
|
187
|
-
}>;
|
|
188
|
-
readonly counted: StructType<{
|
|
189
|
-
readonly n: IntegerType;
|
|
190
|
-
readonly key: StringType;
|
|
191
|
-
}>;
|
|
192
|
-
readonly placeholder: NullType;
|
|
193
|
-
readonly text: StringType;
|
|
194
|
-
}>>;
|
|
195
|
-
}>, ArrayType<StructType<{
|
|
196
|
-
readonly key: StringType;
|
|
197
|
-
readonly label: StringType;
|
|
198
|
-
readonly kind: StringType;
|
|
199
|
-
readonly aliases: ArrayType<StringType>;
|
|
200
|
-
readonly meta: OptionType<StringType>;
|
|
201
|
-
readonly parent: OptionType<StringType>;
|
|
202
|
-
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
203
|
-
readonly success: NullType;
|
|
204
|
-
readonly warning: NullType;
|
|
205
|
-
readonly danger: NullType;
|
|
206
|
-
readonly info: NullType;
|
|
207
|
-
readonly neutral: NullType;
|
|
208
|
-
}>>;
|
|
209
|
-
}>>], StringType>;
|
|
210
|
-
/**
|
|
211
|
-
* `Sheet.link.parse` — the planner's text to a typed link, resolved against
|
|
212
|
-
* a register's members (B§4.1 / B§4.2): `a > b` fills both halves, `b`
|
|
213
|
-
* alone is a destination-only link, `a >` a source-only one.
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```ts
|
|
217
|
-
* import { East, none, some } from "@elaraai/east";
|
|
218
|
-
* import { Sheet } from "@elaraai/east-ui";
|
|
219
|
-
*
|
|
220
|
-
* const parsed = East.function([], Sheet.Types.Link, ($) => {
|
|
221
|
-
* const members = $.const([
|
|
222
|
-
* { key: "M2140", label: "M2140", kind: "machine", aliases: [], meta: some("CNC lathe"), parent: some("Line 2"), tone: none },
|
|
223
|
-
* { key: "CNC lathe", label: "CNC lathe", kind: "family", aliases: ["lathe", "lathes"], meta: some("family"), parent: none, tone: none },
|
|
224
|
-
* ], Sheet.Types.RegisterMembers);
|
|
225
|
-
* return Sheet.link.parse("m2140 > 4 x lathe, M2141-45, TBC, paint shop", members);
|
|
226
|
-
* });
|
|
227
|
-
* ```
|
|
228
|
-
*/
|
|
229
|
-
export declare const parseLink: import("@elaraai/east").CallableFunctionExpr<[StringType, ArrayType<StructType<{
|
|
230
|
-
readonly key: StringType;
|
|
231
|
-
readonly label: StringType;
|
|
232
|
-
readonly kind: StringType;
|
|
233
|
-
readonly aliases: ArrayType<StringType>;
|
|
234
|
-
readonly meta: OptionType<StringType>;
|
|
235
|
-
readonly parent: OptionType<StringType>;
|
|
236
|
-
readonly tone: OptionType<import("@elaraai/east").VariantType<{
|
|
237
|
-
readonly success: NullType;
|
|
238
|
-
readonly warning: NullType;
|
|
239
|
-
readonly danger: NullType;
|
|
240
|
-
readonly info: NullType;
|
|
241
|
-
readonly neutral: NullType;
|
|
242
|
-
}>>;
|
|
243
|
-
}>>], StructType<{
|
|
244
|
-
readonly from: ArrayType<import("@elaraai/east").VariantType<{
|
|
245
|
-
readonly identified: StructType<{
|
|
246
|
-
readonly key: StringType;
|
|
247
|
-
}>;
|
|
248
|
-
readonly range: StructType<{
|
|
249
|
-
readonly from: StringType;
|
|
250
|
-
readonly to: StringType;
|
|
251
|
-
}>;
|
|
252
|
-
readonly counted: StructType<{
|
|
253
|
-
readonly n: IntegerType;
|
|
254
|
-
readonly key: StringType;
|
|
255
|
-
}>;
|
|
256
|
-
readonly placeholder: NullType;
|
|
257
|
-
readonly text: StringType;
|
|
258
|
-
}>>;
|
|
259
|
-
readonly to: ArrayType<import("@elaraai/east").VariantType<{
|
|
260
|
-
readonly identified: StructType<{
|
|
261
|
-
readonly key: StringType;
|
|
262
|
-
}>;
|
|
263
|
-
readonly range: StructType<{
|
|
264
|
-
readonly from: StringType;
|
|
265
|
-
readonly to: StringType;
|
|
266
|
-
}>;
|
|
267
|
-
readonly counted: StructType<{
|
|
268
|
-
readonly n: IntegerType;
|
|
269
|
-
readonly key: StringType;
|
|
270
|
-
}>;
|
|
271
|
-
readonly placeholder: NullType;
|
|
272
|
-
readonly text: StringType;
|
|
273
|
-
}>>;
|
|
274
|
-
}>>;
|
|
275
|
-
/** The register keys a link's identified and counted members name — the `exists` check's vocabulary. */
|
|
276
|
-
export declare const linkKeys: import("@elaraai/east").CallableFunctionExpr<[StructType<{
|
|
277
|
-
readonly from: ArrayType<import("@elaraai/east").VariantType<{
|
|
278
|
-
readonly identified: StructType<{
|
|
279
|
-
readonly key: StringType;
|
|
280
|
-
}>;
|
|
281
|
-
readonly range: StructType<{
|
|
282
|
-
readonly from: StringType;
|
|
283
|
-
readonly to: StringType;
|
|
284
|
-
}>;
|
|
285
|
-
readonly counted: StructType<{
|
|
286
|
-
readonly n: IntegerType;
|
|
287
|
-
readonly key: StringType;
|
|
288
|
-
}>;
|
|
289
|
-
readonly placeholder: NullType;
|
|
290
|
-
readonly text: StringType;
|
|
291
|
-
}>>;
|
|
292
|
-
readonly to: ArrayType<import("@elaraai/east").VariantType<{
|
|
293
|
-
readonly identified: StructType<{
|
|
294
|
-
readonly key: StringType;
|
|
295
|
-
}>;
|
|
296
|
-
readonly range: StructType<{
|
|
297
|
-
readonly from: StringType;
|
|
298
|
-
readonly to: StringType;
|
|
299
|
-
}>;
|
|
300
|
-
readonly counted: StructType<{
|
|
301
|
-
readonly n: IntegerType;
|
|
302
|
-
readonly key: StringType;
|
|
303
|
-
}>;
|
|
304
|
-
readonly placeholder: NullType;
|
|
305
|
-
readonly text: StringType;
|
|
306
|
-
}>>;
|
|
307
|
-
}>], SetType<StringType>>;
|
|
308
|
-
/**
|
|
309
|
-
* A link column's arity declaration — `Sheet.link.arity(half, implied)`:
|
|
310
|
-
* an author rule over the typed context saying how many members the half
|
|
311
|
-
* should hold and which countable member to propose (B§4.6).
|
|
312
|
-
*
|
|
313
|
-
* @typeParam R - The host's row type
|
|
314
|
-
* @typeParam D - The driver's row type
|
|
315
|
-
* @property half - The half the rule counts (`"from"` / `"to"`)
|
|
316
|
-
* @property implied - `(ctx) => Option<Counted>` — an `East.function` over `Sheet.Types.Context(R, D)`
|
|
317
|
-
*/
|
|
318
|
-
export interface SheetArityInput<R extends StructType = StructType, D extends EastType = EastType> {
|
|
319
|
-
/** The half the rule counts. */
|
|
320
|
-
readonly half: SheetHalfLiteral;
|
|
321
|
-
/** The rule — how many, and which countable member, given the row as it would be. */
|
|
322
|
-
readonly implied: SubtypeExprOrValue<FunctionType<[SheetAnyContextOf<R, D>], OptionType<SheetCountedType>>>;
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Declares a link column's arity rule.
|
|
326
|
-
*
|
|
327
|
-
* @typeParam R - The host's row type (inferred from `implied`)
|
|
328
|
-
* @typeParam D - The driver's row type (inferred from `implied`)
|
|
329
|
-
* @param half - The half the rule counts
|
|
330
|
-
* @param implied - The rule — an `East.function` over `Sheet.Types.Context(R, D)` returning `Option<Sheet.Types.Counted>`
|
|
331
|
-
* @returns The declaration a `Sheet.column.link` config takes as `arity`
|
|
332
|
-
*/
|
|
333
|
-
export declare function createArity<R extends StructType, D extends EastType>(half: SheetHalfLiteral, implied: SubtypeExprOrValue<FunctionType<[SheetAnyContextOf<R, D>], OptionType<SheetCountedType>>>): SheetArityInput<R, D>;
|
|
334
|
-
/** The grammar's own check — the member must resolve in the register. */
|
|
335
|
-
export interface SheetExistsCheck {
|
|
336
|
-
/** Discriminant. */
|
|
337
|
-
readonly exists: true;
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* One member check on a link column: the grammar's `exists`, or an author
|
|
341
|
-
* rule over `Sheet.Types.CheckContext(R)` returning `some(message)` to flag
|
|
342
|
-
* the member (B§2 `check`). Flags are shown, never enforced.
|
|
343
|
-
*
|
|
344
|
-
* @typeParam R - The host's row type
|
|
345
|
-
*/
|
|
346
|
-
export type SheetCheckInput<R extends StructType = StructType> = SheetExistsCheck | SubtypeExprOrValue<FunctionType<[SheetAnyCheckContextOf<R>], OptionType<StringType>>>;
|
|
347
|
-
/** `Sheet.link.check` — the built-in checks. */
|
|
348
|
-
export declare const check: {
|
|
349
|
-
/**
|
|
350
|
-
* The grammar's own check: an identified, counted or range member must
|
|
351
|
-
* name a register key; a placeholder or text passes.
|
|
352
|
-
*
|
|
353
|
-
* @returns The `exists` check
|
|
354
|
-
*/
|
|
355
|
-
readonly exists: () => SheetExistsCheck;
|
|
356
|
-
};
|
|
357
|
-
/** Whether a check input is the `exists` marker. */
|
|
358
|
-
export declare function isExistsCheck(c: unknown): c is SheetExistsCheck;
|
|
359
|
-
/** The lock-table input of a link column's `sides` — half → sides value → tag text. */
|
|
360
|
-
export type SheetLocksInput = Partial<Record<SheetHalfLiteral, Partial<Record<"both" | "from" | "to" | "in", string>>>>;
|
|
361
|
-
/** A `none` of the given type, as an expression — the shared fallback spelling. */
|
|
362
|
-
export declare function noneOf<T extends EastType>(type: T): ExprType<OptionType<T>>;
|
|
363
|
-
/** The empty link value. */
|
|
364
|
-
export declare const EMPTY_LINK: import("@elaraai/east").StructExpr<{
|
|
365
|
-
readonly from: ArrayType<import("@elaraai/east").VariantType<{
|
|
366
|
-
readonly identified: StructType<{
|
|
367
|
-
readonly key: StringType;
|
|
368
|
-
}>;
|
|
369
|
-
readonly range: StructType<{
|
|
370
|
-
readonly from: StringType;
|
|
371
|
-
readonly to: StringType;
|
|
372
|
-
}>;
|
|
373
|
-
readonly counted: StructType<{
|
|
374
|
-
readonly n: IntegerType;
|
|
375
|
-
readonly key: StringType;
|
|
376
|
-
}>;
|
|
377
|
-
readonly placeholder: NullType;
|
|
378
|
-
readonly text: StringType;
|
|
379
|
-
}>>;
|
|
380
|
-
readonly to: ArrayType<import("@elaraai/east").VariantType<{
|
|
381
|
-
readonly identified: StructType<{
|
|
382
|
-
readonly key: StringType;
|
|
383
|
-
}>;
|
|
384
|
-
readonly range: StructType<{
|
|
385
|
-
readonly from: StringType;
|
|
386
|
-
readonly to: StringType;
|
|
387
|
-
}>;
|
|
388
|
-
readonly counted: StructType<{
|
|
389
|
-
readonly n: IntegerType;
|
|
390
|
-
readonly key: StringType;
|
|
391
|
-
}>;
|
|
392
|
-
readonly placeholder: NullType;
|
|
393
|
-
readonly text: StringType;
|
|
394
|
-
}>>;
|
|
395
|
-
}>;
|
|
396
|
-
/** Re-exported so the builders type their `NullType` driver default without a second import. */
|
|
397
|
-
export { NullType };
|
|
398
|
-
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/collections/sheet/link.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,OAAO,EAIV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAIH,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC9B,MAAM,YAAY,CAA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