@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,206 +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 { ArrayType, BooleanType, FloatType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, } from "@elaraai/east";
|
|
6
|
-
import { DensityType } from "../../style.js";
|
|
7
|
-
import { PlotGutterType } from "../../shared/plot-gutter.js";
|
|
8
|
-
/**
|
|
9
|
-
* A reduction applied across a calendar row (the weekly totals rail) or
|
|
10
|
-
* column (the aggregate row). Mirrors the Table component's aggregate
|
|
11
|
-
* vocabulary so the two collections stay consistent.
|
|
12
|
-
*
|
|
13
|
-
* @property sum - Numeric sum of the member cell values
|
|
14
|
-
* @property mean - Numeric mean of the member cell values
|
|
15
|
-
* @property min - Minimum member value
|
|
16
|
-
* @property max - Maximum member value
|
|
17
|
-
* @property count - Number of member cells present
|
|
18
|
-
*/
|
|
19
|
-
export const CalendarAggregateType = VariantType({
|
|
20
|
-
/** Numeric sum of the member cell values */
|
|
21
|
-
sum: NullType,
|
|
22
|
-
/** Numeric mean of the member cell values */
|
|
23
|
-
mean: NullType,
|
|
24
|
-
/** Minimum member value */
|
|
25
|
-
min: NullType,
|
|
26
|
-
/** Maximum member value */
|
|
27
|
-
max: NullType,
|
|
28
|
-
/** Number of member cells present */
|
|
29
|
-
count: NullType,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* The heatmap colour scale — how a cell value maps to a fill.
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* `ramp` is a low→high list of CSS colours; when absent the renderer uses
|
|
36
|
-
* the built-in eight-step teal ramp (theme-aware — it flips to a bright-on-
|
|
37
|
-
* dark ramp in dark mode). `steps` buckets the domain (default the ramp
|
|
38
|
-
* length). The intensity domain lives on the root as `domain`.
|
|
39
|
-
*
|
|
40
|
-
* @property ramp - Optional low→high colour list (absent = the default ramp)
|
|
41
|
-
* @property steps - Number of intensity buckets
|
|
42
|
-
*/
|
|
43
|
-
export const CalendarScaleType = StructType({
|
|
44
|
-
/** Optional low→high colour list (absent = the default ramp) */
|
|
45
|
-
ramp: OptionType(ArrayType(StringType)),
|
|
46
|
-
/** Number of intensity buckets */
|
|
47
|
-
steps: IntegerType,
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* The weekly totals rail — a trailing column that reduces each week row and
|
|
51
|
-
* (optionally) shows a proportion bar against the largest total.
|
|
52
|
-
*
|
|
53
|
-
* @property aggregate - The reduction applied across each week's cells
|
|
54
|
-
* @property label - The rail's column header (e.g. `"Σ wk"`)
|
|
55
|
-
* @property bar - Whether to draw the proportion bar under each total
|
|
56
|
-
*/
|
|
57
|
-
export const CalendarTotalsType = StructType({
|
|
58
|
-
/** The reduction applied across each week's cells */
|
|
59
|
-
aggregate: CalendarAggregateType,
|
|
60
|
-
/** The rail's column header (e.g. `"Σ wk"`) */
|
|
61
|
-
label: StringType,
|
|
62
|
-
/** Whether to draw the proportion bar under each total */
|
|
63
|
-
bar: BooleanType,
|
|
64
|
-
});
|
|
65
|
-
/**
|
|
66
|
-
* The aggregate row — a trailing row that reduces each weekday column
|
|
67
|
-
* (e.g. the per-weekday mean), pinned under the grid with a top rule.
|
|
68
|
-
*
|
|
69
|
-
* @property aggregate - The reduction applied across each weekday's cells
|
|
70
|
-
* @property label - The row's label (e.g. `"mean"`)
|
|
71
|
-
*/
|
|
72
|
-
export const CalendarAggregateRowType = StructType({
|
|
73
|
-
/** The reduction applied across each weekday's cells */
|
|
74
|
-
aggregate: CalendarAggregateType,
|
|
75
|
-
/** The row's label (e.g. `"mean"`) */
|
|
76
|
-
label: StringType,
|
|
77
|
-
});
|
|
78
|
-
/**
|
|
79
|
-
* The footer's low→high gradient legend that decodes the heatmap ramp.
|
|
80
|
-
*
|
|
81
|
-
* @property low - The low-end caption (e.g. `"low"`)
|
|
82
|
-
* @property high - The high-end caption (e.g. `"high"`)
|
|
83
|
-
*/
|
|
84
|
-
export const CalendarLegendType = StructType({
|
|
85
|
-
/** The low-end caption (e.g. `"low"`) */
|
|
86
|
-
low: StringType,
|
|
87
|
-
/** The high-end caption (e.g. `"high"`) */
|
|
88
|
-
high: StringType,
|
|
89
|
-
});
|
|
90
|
-
/**
|
|
91
|
-
* The selection footer — shown once a cell is selected. Reads the selected
|
|
92
|
-
* cell's `value` (labelled `valueLabel`) and, when present, its `compare`
|
|
93
|
-
* baseline (labelled `compareLabel`) plus the computed delta chip.
|
|
94
|
-
*
|
|
95
|
-
* @property valueLabel - Label for the cell value (e.g. `"predicted"`)
|
|
96
|
-
* @property compareLabel - Label for the compare baseline (e.g. `"last yr"`)
|
|
97
|
-
* @property legend - Optional low→high gradient legend, pinned footer-right
|
|
98
|
-
*/
|
|
99
|
-
export const CalendarFooterType = StructType({
|
|
100
|
-
/** Label for the cell value (e.g. `"predicted"`) */
|
|
101
|
-
valueLabel: StringType,
|
|
102
|
-
/** Label for the compare baseline (e.g. `"last yr"`) */
|
|
103
|
-
compareLabel: StringType,
|
|
104
|
-
/** Optional low→high gradient legend, pinned footer-right */
|
|
105
|
-
legend: OptionType(CalendarLegendType),
|
|
106
|
-
});
|
|
107
|
-
/**
|
|
108
|
-
* A cell reference on the calendar grid — what `onSelect` receives.
|
|
109
|
-
*
|
|
110
|
-
* @property week - The row's week label
|
|
111
|
-
* @property day - The day column ("Mon" … "Sun")
|
|
112
|
-
*/
|
|
113
|
-
export const CalendarCellRefType = StructType({
|
|
114
|
-
/** The row's week label */
|
|
115
|
-
week: StringType,
|
|
116
|
-
/** The day column ("Mon" … "Sun") */
|
|
117
|
-
day: StringType,
|
|
118
|
-
});
|
|
119
|
-
/**
|
|
120
|
-
* A resolved calendar cell.
|
|
121
|
-
*
|
|
122
|
-
* @remarks
|
|
123
|
-
* One element per (week, day) the data covered; days with no cell render
|
|
124
|
-
* the neutral hatched fill. `compare` is the footer's baseline (last year /
|
|
125
|
-
* forecast) — when present the footer prints it and a computed delta chip;
|
|
126
|
-
* `summary` is optional extra footer text.
|
|
127
|
-
*
|
|
128
|
-
* @property week - The row's week label (rows appear in first-appearance order)
|
|
129
|
-
* @property day - The day column ("Mon" … "Sun", exact match)
|
|
130
|
-
* @property value - The intensity / printed value
|
|
131
|
-
* @property text - The cell text (formatted value)
|
|
132
|
-
* @property compare - Optional baseline for the footer delta (e.g. last year)
|
|
133
|
-
* @property summary - Optional extra selection-footer text for this day
|
|
134
|
-
*/
|
|
135
|
-
export const CalendarCellType = StructType({
|
|
136
|
-
/** The row's week label (rows appear in first-appearance order) */
|
|
137
|
-
week: StringType,
|
|
138
|
-
/** The day column ("Mon" … "Sun", exact match) */
|
|
139
|
-
day: StringType,
|
|
140
|
-
/** The intensity / printed value */
|
|
141
|
-
value: FloatType,
|
|
142
|
-
/** The cell text (formatted value) */
|
|
143
|
-
text: StringType,
|
|
144
|
-
/** Optional baseline for the footer delta (e.g. last year) */
|
|
145
|
-
compare: OptionType(FloatType),
|
|
146
|
-
/** Optional extra selection-footer text for this day */
|
|
147
|
-
summary: OptionType(StringType),
|
|
148
|
-
});
|
|
149
|
-
/**
|
|
150
|
-
* East StructType for the Calendar component.
|
|
151
|
-
*
|
|
152
|
-
* @remarks
|
|
153
|
-
* Day-of-week × week heatmap coloured by intensity — visualisation only:
|
|
154
|
-
* clicking selects/drills a day (`onSelect` / the footer `action`), but
|
|
155
|
-
* there are no events, no committed/proposed state, and no drag & drop.
|
|
156
|
-
* Optional chrome: the weekly `totals` rail, the per-weekday `aggregateRow`,
|
|
157
|
-
* and the selection `footer` (with its gradient legend).
|
|
158
|
-
*
|
|
159
|
-
* @property cells - The resolved cells
|
|
160
|
-
* @property values - Whether the numeric value is printed inside each cell
|
|
161
|
-
* @property scale - Optional heatmap scale override (ramp / steps)
|
|
162
|
-
* @property domain - Optional explicit intensity domain (default: observed min/max)
|
|
163
|
-
* @property totals - Optional weekly totals rail (per-row aggregation)
|
|
164
|
-
* @property aggregateRow - Optional per-weekday aggregate row (per-column aggregation)
|
|
165
|
-
* @property footer - Optional selection footer (value / compare / delta + legend)
|
|
166
|
-
* @property actionLabel - Optional footer drill label
|
|
167
|
-
* @property onAction - Optional footer drill callback (receives the selected cell)
|
|
168
|
-
* @property onSelect - Optional cell-click callback
|
|
169
|
-
* @property density - Optional density preset (comfortable | compact | condensed)
|
|
170
|
-
*/
|
|
171
|
-
export const CalendarRootType = StructType({
|
|
172
|
-
/** The resolved cells */
|
|
173
|
-
cells: ArrayType(CalendarCellType),
|
|
174
|
-
/** Whether the numeric value is printed inside each cell */
|
|
175
|
-
values: BooleanType,
|
|
176
|
-
/** Optional heatmap scale override (ramp / steps) */
|
|
177
|
-
scale: OptionType(CalendarScaleType),
|
|
178
|
-
/** Optional explicit intensity domain (default: observed min/max) */
|
|
179
|
-
domain: OptionType(StructType({
|
|
180
|
-
/** Domain minimum */
|
|
181
|
-
min: FloatType,
|
|
182
|
-
/** Domain maximum */
|
|
183
|
-
max: FloatType,
|
|
184
|
-
})),
|
|
185
|
-
/** Optional weekly totals rail (per-row aggregation) */
|
|
186
|
-
totals: OptionType(CalendarTotalsType),
|
|
187
|
-
/** Optional per-weekday aggregate row (per-column aggregation) */
|
|
188
|
-
aggregateRow: OptionType(CalendarAggregateRowType),
|
|
189
|
-
/** Optional selection footer (value / compare / delta + legend) */
|
|
190
|
-
footer: OptionType(CalendarFooterType),
|
|
191
|
-
/** Optional footer drill label */
|
|
192
|
-
actionLabel: OptionType(StringType),
|
|
193
|
-
/** Optional footer drill callback (receives the selected cell) */
|
|
194
|
-
onAction: OptionType(FunctionType([CalendarCellRefType], NullType)),
|
|
195
|
-
/** Optional cell-click callback */
|
|
196
|
-
onSelect: OptionType(FunctionType([CalendarCellRefType], NullType)),
|
|
197
|
-
/** Optional density preset (comfortable | compact | condensed); default comfortable */
|
|
198
|
-
density: OptionType(DensityType),
|
|
199
|
-
/** Shared plot gutter (#147) — pins the day grid to `[left, W−right]` so a Calendar stacked under a Chart lines up; `left` is the week-label column width */
|
|
200
|
-
plotGutter: OptionType(PlotGutterType),
|
|
201
|
-
/** Uniform sizing (#320): bound the calendar; it scrolls within. `"fill"` fills the parent box. */
|
|
202
|
-
height: OptionType(StringType),
|
|
203
|
-
/** Uniform sizing (#320): max-height cap; content-sized up to it. */
|
|
204
|
-
maxHeight: OptionType(StringType),
|
|
205
|
-
});
|
|
206
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/collections/calendar/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,SAAS,EACT,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC;IAC7C,4CAA4C;IAC5C,GAAG,EAAE,QAAQ;IACb,6CAA6C;IAC7C,IAAI,EAAE,QAAQ;IACd,2BAA2B;IAC3B,GAAG,EAAE,QAAQ;IACb,2BAA2B;IAC3B,GAAG,EAAE,QAAQ;IACb,qCAAqC;IACrC,KAAK,EAAE,QAAQ;CAClB,CAAC,CAAC;AAQH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;IACxC,gEAAgE;IAChE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,kCAAkC;IAClC,KAAK,EAAE,WAAW;CACrB,CAAC,CAAC;AAKH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IACzC,qDAAqD;IACrD,SAAS,EAAE,qBAAqB;IAChC,+CAA+C;IAC/C,KAAK,EAAE,UAAU;IACjB,0DAA0D;IAC1D,GAAG,EAAE,WAAW;CACnB,CAAC,CAAC;AAKH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAC;IAC/C,wDAAwD;IACxD,SAAS,EAAE,qBAAqB;IAChC,sCAAsC;IACtC,KAAK,EAAE,UAAU;CACpB,CAAC,CAAC;AAKH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IACzC,yCAAyC;IACzC,GAAG,EAAE,UAAU;IACf,2CAA2C;IAC3C,IAAI,EAAE,UAAU;CACnB,CAAC,CAAC;AAKH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IACzC,oDAAoD;IACpD,UAAU,EAAE,UAAU;IACtB,wDAAwD;IACxD,YAAY,EAAE,UAAU;IACxB,6DAA6D;IAC7D,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC;CACzC,CAAC,CAAC;AAKH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;IAC1C,2BAA2B;IAC3B,IAAI,EAAE,UAAU;IAChB,qCAAqC;IACrC,GAAG,EAAE,UAAU;CAClB,CAAC,CAAC;AAOH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACvC,mEAAmE;IACnE,IAAI,EAAE,UAAU;IAChB,kDAAkD;IAClD,GAAG,EAAE,UAAU;IACf,oCAAoC;IACpC,KAAK,EAAE,SAAS;IAChB,sCAAsC;IACtC,IAAI,EAAE,UAAU;IAChB,8DAA8D;IAC9D,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9B,wDAAwD;IACxD,OAAO,EAAE,UAAU,CAAC,UAAU,CAAC;CAClC,CAAC,CAAC;AAOH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACvC,yBAAyB;IACzB,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC;IAClC,4DAA4D;IAC5D,MAAM,EAAE,WAAW;IACnB,qDAAqD;IACrD,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACpC,qEAAqE;IACrE,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;QAC1B,qBAAqB;QACrB,GAAG,EAAE,SAAS;QACd,qBAAqB;QACrB,GAAG,EAAE,SAAS;KACjB,CAAC,CAAC;IACH,wDAAwD;IACxD,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACtC,kEAAkE;IAClE,YAAY,EAAE,UAAU,CAAC,wBAAwB,CAAC;IAClD,mEAAmE;IACnE,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACtC,kCAAkC;IAClC,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC;IACnC,kEAAkE;IAClE,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACnE,mCAAmC;IACnC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACnE,uFAAuF;IACvF,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAChC,6JAA6J;IAC7J,UAAU,EAAE,UAAU,CAAC,cAAc,CAAC;IACtC,mGAAmG;IACnG,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;IAC9B,qEAAqE;IACrE,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC;CACpC,CAAC,CAAC"}
|
|
@@ -1,430 +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 { type ExprType, type SubtypeExprOrValue, type TypeOf, ArrayType, BooleanType, DateTimeType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
-
import { UIComponentType } from "../../component.js";
|
|
7
|
-
import { DensityType, type DensityLiteral } from "../../style/interaction.js";
|
|
8
|
-
import { SliceBindType, SliceChromeType } from "../../platform/slice/index.js";
|
|
9
|
-
import { type SliceAffordanceLiteral } from "../../contracts/slice-affordances.js";
|
|
10
|
-
import { FlowchartLinkKindType, FlowchartOrientationType, FlowchartLinkModeType, FlowchartStateType, FlowchartLinkType, FlowchartLaneType, FlowchartTriggerType, FlowchartFreshnessType, FlowchartLinkCreateEventType, FlowchartLaneRenameEventType, FlowchartStateAddEventType, FlowchartStateEditEventType, FlowchartStateMoveEventType } from "./types.js";
|
|
11
|
-
export { FlowchartLinkKindType, FlowchartOrientationType, FlowchartLinkModeType, FlowchartEvidenceType, FlowchartStateType, FlowchartLinkType, FlowchartLaneType, FlowchartTriggerType, FlowchartFreshnessType, FlowchartLinkCreateEventType, FlowchartLaneRenameEventType, FlowchartStateAddEventType, FlowchartStateEditEventType, FlowchartStateMoveEventType, } from "./types.js";
|
|
12
|
-
/**
|
|
13
|
-
* East type for the Flowchart root — the resolved mirror of the inline
|
|
14
|
-
* `Flowchart` struct in `component.ts`. Keep the two spellings in sync
|
|
15
|
-
* field-for-field.
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* Per-field docs live on {@link FlowchartConfig}; events and collection
|
|
19
|
-
* row types are documented in `./types.ts`.
|
|
20
|
-
*/
|
|
21
|
-
export declare const FlowchartRootType: StructType<{
|
|
22
|
-
states: ArrayType<FlowchartStateType>;
|
|
23
|
-
links: ArrayType<FlowchartLinkType>;
|
|
24
|
-
lanes: ArrayType<FlowchartLaneType>;
|
|
25
|
-
triggers: ArrayType<FlowchartTriggerType>;
|
|
26
|
-
orientation: OptionType<FlowchartOrientationType>;
|
|
27
|
-
freshness: OptionType<FlowchartFreshnessType>;
|
|
28
|
-
minimap: OptionType<BooleanType>;
|
|
29
|
-
legend: OptionType<BooleanType>;
|
|
30
|
-
density: OptionType<DensityType>;
|
|
31
|
-
height: OptionType<StringType>;
|
|
32
|
-
maxHeight: OptionType<StringType>;
|
|
33
|
-
slice: OptionType<SliceChromeType>;
|
|
34
|
-
stateHover: OptionType<FunctionType<[StringType], UIComponentType>>;
|
|
35
|
-
linkHover: OptionType<FunctionType<[StringType], UIComponentType>>;
|
|
36
|
-
triggerHover: OptionType<FunctionType<[StringType], UIComponentType>>;
|
|
37
|
-
onSelectState: OptionType<FunctionType<[StringType], NullType>>;
|
|
38
|
-
onSelectLink: OptionType<FunctionType<[StringType], NullType>>;
|
|
39
|
-
onSelectTrigger: OptionType<FunctionType<[StringType], NullType>>;
|
|
40
|
-
onTracePath: OptionType<FunctionType<[StringType], NullType>>;
|
|
41
|
-
linkMode: OptionType<FlowchartLinkModeType>;
|
|
42
|
-
onCreateLink: OptionType<FunctionType<[FlowchartLinkCreateEventType], NullType>>;
|
|
43
|
-
onDeleteLink: OptionType<FunctionType<[StringType], NullType>>;
|
|
44
|
-
canConnect: OptionType<FunctionType<[StringType, StringType], BooleanType>>;
|
|
45
|
-
onAddLane: OptionType<FunctionType<[], NullType>>;
|
|
46
|
-
onRenameLane: OptionType<FunctionType<[FlowchartLaneRenameEventType], NullType>>;
|
|
47
|
-
onDeleteLane: OptionType<FunctionType<[StringType], NullType>>;
|
|
48
|
-
onAddState: OptionType<FunctionType<[FlowchartStateAddEventType], NullType>>;
|
|
49
|
-
onEditState: OptionType<FunctionType<[FlowchartStateEditEventType], NullType>>;
|
|
50
|
-
onMoveState: OptionType<FunctionType<[FlowchartStateMoveEventType], NullType>>;
|
|
51
|
-
readOnly: OptionType<BooleanType>;
|
|
52
|
-
}>;
|
|
53
|
-
/**
|
|
54
|
-
* Type representing the flowchart root.
|
|
55
|
-
*/
|
|
56
|
-
export type FlowchartRootType = typeof FlowchartRootType;
|
|
57
|
-
/**
|
|
58
|
-
* The struct element type of a `SubtypeExprOrValue<ArrayType<StructType>>`.
|
|
59
|
-
*/
|
|
60
|
-
export type RowElement<T extends SubtypeExprOrValue<ArrayType<StructType>>> = TypeOf<T> extends ArrayType<infer S> ? (S extends StructType ? S : never) : never;
|
|
61
|
-
/** String shorthand for {@link FlowchartLinkKindType}. */
|
|
62
|
-
export type FlowchartLinkKindLiteral = "planned" | "observed";
|
|
63
|
-
/** String shorthand for {@link FlowchartOrientationType}. */
|
|
64
|
-
export type FlowchartOrientationLiteral = "LR" | "TD";
|
|
65
|
-
/** String shorthand for {@link FlowchartLinkModeType}. */
|
|
66
|
-
export type FlowchartLinkModeLiteral = "draw" | "connect";
|
|
67
|
-
/**
|
|
68
|
-
* Fields the `state` mapper returns — one state node, before defaults.
|
|
69
|
-
*/
|
|
70
|
-
export interface FlowchartStateFields {
|
|
71
|
-
/** Short mono code — the node identity ("RCT"). */
|
|
72
|
-
key: SubtypeExprOrValue<StringType>;
|
|
73
|
-
/** Optional display label under the code. */
|
|
74
|
-
label?: SubtypeExprOrValue<StringType>;
|
|
75
|
-
/** The lane (ordered phase) this state belongs to. */
|
|
76
|
-
lane: SubtypeExprOrValue<StringType>;
|
|
77
|
-
/** Optional state-class member count → the ×N badge (an Option so per-row absence is expressible). */
|
|
78
|
-
members?: SubtypeExprOrValue<OptionType<IntegerType>>;
|
|
79
|
-
/** Optional free-text notes surfaced on hover / inspector. */
|
|
80
|
-
notes?: SubtypeExprOrValue<StringType>;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Evidence fields the `link` mapper may return — all optional, per-row
|
|
84
|
-
* absence via each field's Option.
|
|
85
|
-
*/
|
|
86
|
-
export interface FlowchartEvidenceFields {
|
|
87
|
-
/** Total measured volume behind the arrow (drives stroke weight + badge). */
|
|
88
|
-
volume?: SubtypeExprOrValue<OptionType<FloatTypeAlias>>;
|
|
89
|
-
/** Event count behind the arrow (e.g. transfers). */
|
|
90
|
-
count?: SubtypeExprOrValue<OptionType<IntegerType>>;
|
|
91
|
-
/** When the evidence was measured. */
|
|
92
|
-
measuredAt?: SubtypeExprOrValue<OptionType<DateTimeType>>;
|
|
93
|
-
/** Volume unit suffix for badges ("kt"). */
|
|
94
|
-
unit?: SubtypeExprOrValue<StringType>;
|
|
95
|
-
}
|
|
96
|
-
type FloatTypeAlias = import("@elaraai/east").FloatType;
|
|
97
|
-
/**
|
|
98
|
-
* Fields the `link` mapper returns — one transition, before defaults.
|
|
99
|
-
*/
|
|
100
|
-
export interface FlowchartLinkFields {
|
|
101
|
-
/** Optional stable identity (selection / delete events); default derived from endpoints. */
|
|
102
|
-
key?: SubtypeExprOrValue<StringType>;
|
|
103
|
-
/** Source state key. */
|
|
104
|
-
from: SubtypeExprOrValue<StringType>;
|
|
105
|
-
/** Target state key. */
|
|
106
|
-
to: SubtypeExprOrValue<StringType>;
|
|
107
|
-
/** Optional kind — "planned" (default, solid) | "observed" (dashed). */
|
|
108
|
-
kind?: SubtypeExprOrValue<FlowchartLinkKindType> | FlowchartLinkKindLiteral;
|
|
109
|
-
/** Optional decision trigger key (0..1 per link) → the lettered diamond. */
|
|
110
|
-
trigger?: SubtypeExprOrValue<OptionType<StringType>>;
|
|
111
|
-
/** Optional imported evidence (weight, badges, provenance). */
|
|
112
|
-
evidence?: FlowchartEvidenceFields;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Fields the `lane` mapper returns — one ordered phase band.
|
|
116
|
-
*/
|
|
117
|
-
export interface FlowchartLaneFields {
|
|
118
|
-
/** Lane identity referenced by states. */
|
|
119
|
-
key: SubtypeExprOrValue<StringType>;
|
|
120
|
-
/** Optional band header label (defaults to the key, uppercased). */
|
|
121
|
-
label?: SubtypeExprOrValue<StringType>;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Fields the `trigger` mapper returns — one decision trigger.
|
|
125
|
-
*/
|
|
126
|
-
export interface FlowchartTriggerFields {
|
|
127
|
-
/** Trigger identity referenced by links. */
|
|
128
|
-
key: SubtypeExprOrValue<StringType>;
|
|
129
|
-
/** Decision name ("press"). */
|
|
130
|
-
label: SubtypeExprOrValue<StringType>;
|
|
131
|
-
/** Optional diamond letter (default: first letter of the label). */
|
|
132
|
-
letter?: SubtypeExprOrValue<StringType>;
|
|
133
|
-
/** Optional owning role / system ("press-scheduler"). */
|
|
134
|
-
owner?: SubtypeExprOrValue<StringType>;
|
|
135
|
-
/** Optional state keys queued at the decision. */
|
|
136
|
-
queue?: SubtypeExprOrValue<ArrayType<StringType>>;
|
|
137
|
-
/** Optional outcome summary line ("P* (×14 slots)"). */
|
|
138
|
-
outcomes?: SubtypeExprOrValue<StringType>;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* A literal lanes input — plain `{ key, label? }` entries in band order.
|
|
142
|
-
*/
|
|
143
|
-
export type FlowchartLaneLiteral = {
|
|
144
|
-
key: string;
|
|
145
|
-
label?: string;
|
|
146
|
-
};
|
|
147
|
-
/**
|
|
148
|
-
* Eyebrow freshness chip input.
|
|
149
|
-
*/
|
|
150
|
-
export interface FlowchartFreshnessInput {
|
|
151
|
-
/** Chip label ("evidence-2026.06"). */
|
|
152
|
-
label: SubtypeExprOrValue<StringType>;
|
|
153
|
-
/** Optional stamp printed after the label. */
|
|
154
|
-
date?: SubtypeExprOrValue<DateTimeType>;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Configuration for a Flowchart.
|
|
158
|
-
*
|
|
159
|
-
* @remarks
|
|
160
|
-
* A self-contained, slice-consuming state-transition flowchart: states as
|
|
161
|
-
* nodes in ordered phase lanes, H/V-routed transition arrows, optional
|
|
162
|
-
* per-link decision triggers (lettered diamonds), evidence-weighted
|
|
163
|
-
* strokes, and built-in hover-card / inspector / highlight surfaces
|
|
164
|
-
* derived from core + declared fields ("no new canvas encodings").
|
|
165
|
-
*
|
|
166
|
-
* @typeParam S - The states-table row struct
|
|
167
|
-
* @typeParam L - The links-table row struct
|
|
168
|
-
* @typeParam N - The lanes-table row struct
|
|
169
|
-
* @typeParam T - The triggers-table row struct
|
|
170
|
-
*/
|
|
171
|
-
export interface FlowchartConfig<S extends StructType = StructType, L extends StructType = StructType, N extends StructType = StructType, T extends StructType = StructType> {
|
|
172
|
-
/** Row mapper from a state row to node fields — omit when rows are already `Flowchart.Types.State`. */
|
|
173
|
-
state?: (row: ExprType<S>) => FlowchartStateFields | ExprType<FlowchartStateType>;
|
|
174
|
-
/** Row mapper from a link row to transition fields — omit when rows are already `Flowchart.Types.Link`. */
|
|
175
|
-
link?: (row: ExprType<L>) => FlowchartLinkFields | ExprType<FlowchartLinkType>;
|
|
176
|
-
/** Row mapper from a lane row to band fields — omit for literal `{ key, label? }` arrays or `Flowchart.Types.Lane` rows. */
|
|
177
|
-
lane?: (row: ExprType<N>) => FlowchartLaneFields | ExprType<FlowchartLaneType>;
|
|
178
|
-
/** Optional decision-trigger rows; links reference them by key. */
|
|
179
|
-
triggers?: SubtypeExprOrValue<ArrayType<StructType>>;
|
|
180
|
-
/** Row mapper from a trigger row — omit when rows are already `Flowchart.Types.Trigger`. */
|
|
181
|
-
trigger?: (row: ExprType<T>) => FlowchartTriggerFields | ExprType<FlowchartTriggerType>;
|
|
182
|
-
/** Initial orientation — "LR" (default) | "TD"; the eyebrow segment toggles it (view state, never a chip). */
|
|
183
|
-
orientation?: SubtypeExprOrValue<FlowchartOrientationType> | FlowchartOrientationLiteral;
|
|
184
|
-
/** Optional eyebrow freshness chip. */
|
|
185
|
-
freshness?: FlowchartFreshnessInput;
|
|
186
|
-
/** Optional minimap toggle (default: auto — shown at ≥ 25 states). */
|
|
187
|
-
minimap?: SubtypeExprOrValue<BooleanType> | boolean;
|
|
188
|
-
/** Optional legend toggle (default true). */
|
|
189
|
-
legend?: SubtypeExprOrValue<BooleanType> | boolean;
|
|
190
|
-
/** Optional density. */
|
|
191
|
-
density?: SubtypeExprOrValue<DensityType> | DensityLiteral;
|
|
192
|
-
/** Optional height — pins the component (uniform sizing #320); body scrolls within. */
|
|
193
|
-
height?: SubtypeExprOrValue<StringType>;
|
|
194
|
-
/** Optional maxHeight — caps the component, content-sized until the cap. */
|
|
195
|
-
maxHeight?: SubtypeExprOrValue<StringType>;
|
|
196
|
-
/** Optional bound slice handle — mounts the eyebrow slice cluster; consumers feed `links` via `Slice.rows`. */
|
|
197
|
-
slice?: SubtypeExprOrValue<SliceBindType>;
|
|
198
|
-
/** Slice affordances (default `["filter","search"]`; search = "⌕ find state"). `"brush"` is a build-time error — a flowchart has no continuous 1-D axis. */
|
|
199
|
-
affordances?: SliceAffordanceLiteral[];
|
|
200
|
-
/** Optional hover-card content builder for STATES — receives the hovered state's key and returns arbitrary UI, evaluated lazily on hover; absent ⇒ no state hover card. */
|
|
201
|
-
stateHover?: SubtypeExprOrValue<FunctionType<[StringType], UIComponentType>>;
|
|
202
|
-
/** Optional hover-card content builder for LINKS — receives the hovered link's key; absent ⇒ no link hover card. */
|
|
203
|
-
linkHover?: SubtypeExprOrValue<FunctionType<[StringType], UIComponentType>>;
|
|
204
|
-
/** Optional hover-card content builder for TRIGGERS — receives the hovered trigger's key; absent ⇒ no trigger hover card. */
|
|
205
|
-
triggerHover?: SubtypeExprOrValue<FunctionType<[StringType], UIComponentType>>;
|
|
206
|
-
/** Optional state-click callback (node key). */
|
|
207
|
-
onSelectState?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
208
|
-
/** Optional link-click callback (link key). */
|
|
209
|
-
onSelectLink?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
210
|
-
/** Optional trigger-click callback (trigger key; the click also highlights governed links). */
|
|
211
|
-
onSelectTrigger?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
212
|
-
/** Optional ⌥-click trace-path callback (link key). */
|
|
213
|
-
onTracePath?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
214
|
-
/** Link-authoring mode — "draw" (adds locally) | "connect" (event-only); absent ⇒ read-only links. */
|
|
215
|
-
linkMode?: SubtypeExprOrValue<FlowchartLinkModeType> | FlowchartLinkModeLiteral;
|
|
216
|
-
/** Optional link-creation callback — a completed out-handle → node drag ({ from, to }). */
|
|
217
|
-
onCreateLink?: SubtypeExprOrValue<FunctionType<[FlowchartLinkCreateEventType], NullType>>;
|
|
218
|
-
/** Optional link-delete callback — Del with a link selected (link key). */
|
|
219
|
-
onDeleteLink?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
220
|
-
/** Optional connection validator — `(from, to)` BEFORE the draft snaps; false forbids the pair. A throwing validator logs and ALLOWS (fail-open). */
|
|
221
|
-
canConnect?: SubtypeExprOrValue<FunctionType<[StringType, StringType], BooleanType>>;
|
|
222
|
-
/** Optional add-lane callback — its presence renders the dashed "+ LANE" tail affordance (full lane height); absent ⇒ no affordance. */
|
|
223
|
-
onAddLane?: SubtypeExprOrValue<FunctionType<[], NullType>>;
|
|
224
|
-
/** Optional lane-rename callback — its presence makes lane headers click-to-edit (Enter / blur commits, Esc cancels); receives { key, label }. */
|
|
225
|
-
onRenameLane?: SubtypeExprOrValue<FunctionType<[FlowchartLaneRenameEventType], NullType>>;
|
|
226
|
-
/** Optional lane-delete callback — its presence renders an × beside each header (lane key). The HOST decides the cascade; the canvas stays safe either way: states referencing a missing lane fall into the LAST lane, and links to deleted states render as the neg-dashed "No state row" ghosts — orphans stay visible. */
|
|
227
|
-
onDeleteLane?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
228
|
-
/** Optional state-add callback — its presence enables the "+ STATE" ghost: hovering a lane band reveals one dashed node-footprint ghost parked one row below the lane's last node; click turns it into the inline editor (code auto-focused, label below); ⏎ commits { lane, key, label }, esc / blur-empty dismisses. The committed state starts unconnected. */
|
|
229
|
-
onAddState?: SubtypeExprOrValue<FunctionType<[FlowchartStateAddEventType], NullType>>;
|
|
230
|
-
/** Optional state-edit callback — its presence makes nodes double-click-to-edit in the same inline editor; receives { key, code, label } where key is the ORIGINAL identity (rekeying links is the host's call). */
|
|
231
|
-
onEditState?: SubtypeExprOrValue<FunctionType<[FlowchartStateEditEventType], NullType>>;
|
|
232
|
-
/** Optional state-move callback — its presence lets nodes drag across lanes (candidate bands highlight while dragging); receives { key, lane } on drop. */
|
|
233
|
-
onMoveState?: SubtypeExprOrValue<FunctionType<[FlowchartStateMoveEventType], NullType>>;
|
|
234
|
-
/** Optional runtime edit gate — true suppresses every authoring affordance (connect gesture, Del delete, + LANE) without unwiring the callbacks; selection and hover stay (inspecting isn't editing). Reactive-capable: feed a permission / published-mode flag. */
|
|
235
|
-
readOnly?: SubtypeExprOrValue<BooleanType> | boolean;
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Creates a Flowchart — a self-contained state-transition flowchart.
|
|
239
|
-
*
|
|
240
|
-
* @typeParam S - The states-table input
|
|
241
|
-
* @typeParam L - The links-table input
|
|
242
|
-
* @typeParam N - The lanes-table input
|
|
243
|
-
* @typeParam T - The triggers-table input
|
|
244
|
-
* @param states - The state rows (nodes)
|
|
245
|
-
* @param config - The Flowchart configuration ({@link FlowchartConfig}) plus
|
|
246
|
-
* the `links` / `lanes` (required) and `triggers` (optional) tables
|
|
247
|
-
* @returns An East expression of `UIComponentType`
|
|
248
|
-
*
|
|
249
|
-
* @example
|
|
250
|
-
* ```ts
|
|
251
|
-
* import { East } from "@elaraai/east";
|
|
252
|
-
* import { Flowchart, UIComponentType } from "@elaraai/east-ui";
|
|
253
|
-
*
|
|
254
|
-
* const example = East.function([], UIComponentType, _$ =>
|
|
255
|
-
* Flowchart.Root(
|
|
256
|
-
* [{ code: "RMI", name: "Raw intake", phase: "prep" },
|
|
257
|
-
* { code: "CUT", name: "Cut blanks", phase: "prep" }],
|
|
258
|
-
* {
|
|
259
|
-
* state: s => ({ key: s.code, label: s.name, lane: s.phase }),
|
|
260
|
-
* links: [{ src: "RMI", dst: "CUT" }],
|
|
261
|
-
* link: l => ({ from: l.src, to: l.dst }),
|
|
262
|
-
* lanes: [{ key: "prep", label: "Prep" }],
|
|
263
|
-
* },
|
|
264
|
-
* ),
|
|
265
|
-
* );
|
|
266
|
-
* ```
|
|
267
|
-
*/
|
|
268
|
-
declare function createFlowchart<S extends SubtypeExprOrValue<ArrayType<StructType>>, L extends SubtypeExprOrValue<ArrayType<StructType>>, N extends SubtypeExprOrValue<ArrayType<StructType>> = [], T extends SubtypeExprOrValue<ArrayType<StructType>> = []>(states: S, config: FlowchartConfig<RowElement<S>, RowElement<L>, RowElement<N>, RowElement<T>> & {
|
|
269
|
-
links: L;
|
|
270
|
-
lanes: N | readonly FlowchartLaneLiteral[];
|
|
271
|
-
triggers?: T;
|
|
272
|
-
}): ExprType<UIComponentType>;
|
|
273
|
-
/**
|
|
274
|
-
* Flowchart component namespace.
|
|
275
|
-
*
|
|
276
|
-
* @remarks
|
|
277
|
-
* `Flowchart.Root(states, config)` builds the flowchart from up to four
|
|
278
|
-
* flat tables (states, links, lanes, triggers); closed-set fields in data
|
|
279
|
-
* (`kind`, `orientation`, `linkMode`) are typed variant values
|
|
280
|
-
* (`Flowchart.Types.*`).
|
|
281
|
-
*/
|
|
282
|
-
export declare const Flowchart: {
|
|
283
|
-
/**
|
|
284
|
-
* Creates a Flowchart — a self-contained state-transition flowchart.
|
|
285
|
-
*
|
|
286
|
-
* @remarks
|
|
287
|
-
* See {@link FlowchartConfig} for per-field docs. States render as
|
|
288
|
-
* nodes in ordered phase lanes; links as H/V-routed arrows; triggers
|
|
289
|
-
* as lettered diamonds. Hover cards, the inspector and the highlight
|
|
290
|
-
* grammar are built-in surfaces derived from core + declared fields.
|
|
291
|
-
*/
|
|
292
|
-
readonly Root: typeof createFlowchart;
|
|
293
|
-
/**
|
|
294
|
-
* East types for flowchart rows, closed-set fields and events.
|
|
295
|
-
*/
|
|
296
|
-
readonly Types: {
|
|
297
|
-
/**
|
|
298
|
-
* East StructType for the Flowchart component.
|
|
299
|
-
*
|
|
300
|
-
* @remarks
|
|
301
|
-
* See {@link FlowchartRootType} for per-field docs.
|
|
302
|
-
*/
|
|
303
|
-
readonly Flowchart: StructType<{
|
|
304
|
-
states: ArrayType<FlowchartStateType>;
|
|
305
|
-
links: ArrayType<FlowchartLinkType>;
|
|
306
|
-
lanes: ArrayType<FlowchartLaneType>;
|
|
307
|
-
triggers: ArrayType<FlowchartTriggerType>;
|
|
308
|
-
orientation: OptionType<FlowchartOrientationType>;
|
|
309
|
-
freshness: OptionType<FlowchartFreshnessType>;
|
|
310
|
-
minimap: OptionType<BooleanType>;
|
|
311
|
-
legend: OptionType<BooleanType>;
|
|
312
|
-
density: OptionType<DensityType>;
|
|
313
|
-
height: OptionType<StringType>;
|
|
314
|
-
maxHeight: OptionType<StringType>;
|
|
315
|
-
slice: OptionType<SliceChromeType>;
|
|
316
|
-
stateHover: OptionType<FunctionType<[StringType], UIComponentType>>;
|
|
317
|
-
linkHover: OptionType<FunctionType<[StringType], UIComponentType>>;
|
|
318
|
-
triggerHover: OptionType<FunctionType<[StringType], UIComponentType>>;
|
|
319
|
-
onSelectState: OptionType<FunctionType<[StringType], NullType>>;
|
|
320
|
-
onSelectLink: OptionType<FunctionType<[StringType], NullType>>;
|
|
321
|
-
onSelectTrigger: OptionType<FunctionType<[StringType], NullType>>;
|
|
322
|
-
onTracePath: OptionType<FunctionType<[StringType], NullType>>;
|
|
323
|
-
linkMode: OptionType<FlowchartLinkModeType>;
|
|
324
|
-
onCreateLink: OptionType<FunctionType<[FlowchartLinkCreateEventType], NullType>>;
|
|
325
|
-
onDeleteLink: OptionType<FunctionType<[StringType], NullType>>;
|
|
326
|
-
canConnect: OptionType<FunctionType<[StringType, StringType], BooleanType>>;
|
|
327
|
-
onAddLane: OptionType<FunctionType<[], NullType>>;
|
|
328
|
-
onRenameLane: OptionType<FunctionType<[FlowchartLaneRenameEventType], NullType>>;
|
|
329
|
-
onDeleteLane: OptionType<FunctionType<[StringType], NullType>>;
|
|
330
|
-
onAddState: OptionType<FunctionType<[FlowchartStateAddEventType], NullType>>;
|
|
331
|
-
onEditState: OptionType<FunctionType<[FlowchartStateEditEventType], NullType>>;
|
|
332
|
-
onMoveState: OptionType<FunctionType<[FlowchartStateMoveEventType], NullType>>;
|
|
333
|
-
readOnly: OptionType<BooleanType>;
|
|
334
|
-
}>;
|
|
335
|
-
/** One state node ({@link FlowchartStateType}). */
|
|
336
|
-
readonly State: StructType<{
|
|
337
|
-
readonly key: StringType;
|
|
338
|
-
readonly label: OptionType<StringType>;
|
|
339
|
-
readonly lane: StringType;
|
|
340
|
-
readonly members: OptionType<IntegerType>;
|
|
341
|
-
readonly notes: OptionType<StringType>;
|
|
342
|
-
}>;
|
|
343
|
-
/** One transition ({@link FlowchartLinkType}). */
|
|
344
|
-
readonly Link: StructType<{
|
|
345
|
-
readonly key: OptionType<StringType>;
|
|
346
|
-
readonly from: StringType;
|
|
347
|
-
readonly to: StringType;
|
|
348
|
-
readonly kind: OptionType<import("@elaraai/east").VariantType<{
|
|
349
|
-
readonly planned: NullType;
|
|
350
|
-
readonly observed: NullType;
|
|
351
|
-
}>>;
|
|
352
|
-
readonly trigger: OptionType<StringType>;
|
|
353
|
-
readonly evidence: OptionType<StructType<{
|
|
354
|
-
readonly volume: OptionType<import("@elaraai/east").FloatType>;
|
|
355
|
-
readonly count: OptionType<IntegerType>;
|
|
356
|
-
readonly measuredAt: OptionType<DateTimeType>;
|
|
357
|
-
readonly unit: OptionType<StringType>;
|
|
358
|
-
}>>;
|
|
359
|
-
}>;
|
|
360
|
-
/** One ordered phase band ({@link FlowchartLaneType}). */
|
|
361
|
-
readonly Lane: StructType<{
|
|
362
|
-
readonly key: StringType;
|
|
363
|
-
readonly label: OptionType<StringType>;
|
|
364
|
-
}>;
|
|
365
|
-
/** One decision trigger ({@link FlowchartTriggerType}). */
|
|
366
|
-
readonly Trigger: StructType<{
|
|
367
|
-
readonly key: StringType;
|
|
368
|
-
readonly label: StringType;
|
|
369
|
-
readonly letter: OptionType<StringType>;
|
|
370
|
-
readonly owner: OptionType<StringType>;
|
|
371
|
-
readonly queue: OptionType<ArrayType<StringType>>;
|
|
372
|
-
readonly outcomes: OptionType<StringType>;
|
|
373
|
-
}>;
|
|
374
|
-
/** Imported link evidence ({@link FlowchartEvidenceType}). */
|
|
375
|
-
readonly Evidence: StructType<{
|
|
376
|
-
readonly volume: OptionType<import("@elaraai/east").FloatType>;
|
|
377
|
-
readonly count: OptionType<IntegerType>;
|
|
378
|
-
readonly measuredAt: OptionType<DateTimeType>;
|
|
379
|
-
readonly unit: OptionType<StringType>;
|
|
380
|
-
}>;
|
|
381
|
-
/** Link kind — planned | observed ({@link FlowchartLinkKindType}). */
|
|
382
|
-
readonly Kind: import("@elaraai/east").VariantType<{
|
|
383
|
-
readonly planned: NullType;
|
|
384
|
-
readonly observed: NullType;
|
|
385
|
-
}>;
|
|
386
|
-
/** Canvas orientation — LR | TD ({@link FlowchartOrientationType}). */
|
|
387
|
-
readonly Orientation: import("@elaraai/east").VariantType<{
|
|
388
|
-
readonly LR: NullType;
|
|
389
|
-
readonly TD: NullType;
|
|
390
|
-
}>;
|
|
391
|
-
/** Link-authoring mode — draw | connect ({@link FlowchartLinkModeType}). */
|
|
392
|
-
readonly LinkMode: import("@elaraai/east").VariantType<{
|
|
393
|
-
readonly draw: NullType;
|
|
394
|
-
readonly connect: NullType;
|
|
395
|
-
}>;
|
|
396
|
-
/** Eyebrow freshness chip ({@link FlowchartFreshnessType}). */
|
|
397
|
-
readonly Freshness: StructType<{
|
|
398
|
-
readonly label: StringType;
|
|
399
|
-
readonly date: OptionType<DateTimeType>;
|
|
400
|
-
}>;
|
|
401
|
-
/** Link-creation event ({@link FlowchartLinkCreateEventType}). */
|
|
402
|
-
readonly LinkCreateEvent: StructType<{
|
|
403
|
-
readonly from: StringType;
|
|
404
|
-
readonly to: StringType;
|
|
405
|
-
}>;
|
|
406
|
-
/** Lane-rename event ({@link FlowchartLaneRenameEventType}). */
|
|
407
|
-
readonly LaneRenameEvent: StructType<{
|
|
408
|
-
readonly key: StringType;
|
|
409
|
-
readonly label: StringType;
|
|
410
|
-
}>;
|
|
411
|
-
/** State-add event ({@link FlowchartStateAddEventType}). */
|
|
412
|
-
readonly StateAddEvent: StructType<{
|
|
413
|
-
readonly lane: StringType;
|
|
414
|
-
readonly key: StringType;
|
|
415
|
-
readonly label: StringType;
|
|
416
|
-
}>;
|
|
417
|
-
/** State-edit event ({@link FlowchartStateEditEventType}). */
|
|
418
|
-
readonly StateEditEvent: StructType<{
|
|
419
|
-
readonly key: StringType;
|
|
420
|
-
readonly code: StringType;
|
|
421
|
-
readonly label: StringType;
|
|
422
|
-
}>;
|
|
423
|
-
/** State-move event ({@link FlowchartStateMoveEventType}). */
|
|
424
|
-
readonly StateMoveEvent: StructType<{
|
|
425
|
-
readonly key: StringType;
|
|
426
|
-
readonly lane: StringType;
|
|
427
|
-
}>;
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
//# sourceMappingURL=index.d.ts.map
|