@elaraai/east-ui 1.0.80 → 1.0.82
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/charts/chart/index.d.ts +4 -0
- package/dist/src/charts/chart/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.d.ts +8 -0
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/collections/deck/index.d.ts +8 -0
- package/dist/src/collections/deck/index.d.ts.map +1 -1
- package/dist/src/collections/index.d.ts +2 -2
- package/dist/src/collections/index.d.ts.map +1 -1
- package/dist/src/collections/index.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +4 -0
- package/dist/src/collections/library/index.d.ts.map +1 -1
- package/dist/src/collections/library/types.d.ts +4 -0
- package/dist/src/collections/library/types.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.d.ts +56 -19
- package/dist/src/collections/matrix/index.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.js +38 -24
- package/dist/src/collections/matrix/index.js.map +1 -1
- package/dist/src/collections/plan/assemble.d.ts +655 -2113
- package/dist/src/collections/plan/assemble.d.ts.map +1 -1
- package/dist/src/collections/plan/assemble.js +159 -136
- package/dist/src/collections/plan/assemble.js.map +1 -1
- package/dist/src/collections/plan/builders.d.ts +193 -40
- package/dist/src/collections/plan/builders.d.ts.map +1 -1
- package/dist/src/collections/plan/builders.js +162 -32
- package/dist/src/collections/plan/builders.js.map +1 -1
- package/dist/src/collections/plan/factories.d.ts +290 -116
- package/dist/src/collections/plan/factories.d.ts.map +1 -1
- package/dist/src/collections/plan/factories.js +281 -156
- package/dist/src/collections/plan/factories.js.map +1 -1
- package/dist/src/collections/plan/index.d.ts +111 -58
- package/dist/src/collections/plan/index.d.ts.map +1 -1
- package/dist/src/collections/plan/index.js +62 -31
- package/dist/src/collections/plan/index.js.map +1 -1
- package/dist/src/collections/plan/ir.d.ts +759 -1769
- package/dist/src/collections/plan/ir.d.ts.map +1 -1
- package/dist/src/collections/plan/ir.js +51 -27
- package/dist/src/collections/plan/ir.js.map +1 -1
- package/dist/src/collections/plan/pick.d.ts +89 -71
- package/dist/src/collections/plan/pick.d.ts.map +1 -1
- package/dist/src/collections/plan/pick.js +101 -86
- package/dist/src/collections/plan/pick.js.map +1 -1
- package/dist/src/collections/plan/root.d.ts +164 -77
- package/dist/src/collections/plan/root.d.ts.map +1 -1
- package/dist/src/collections/plan/root.js +350 -42
- package/dist/src/collections/plan/root.js.map +1 -1
- package/dist/src/collections/plan/series.d.ts +12524 -10527
- package/dist/src/collections/plan/series.d.ts.map +1 -1
- package/dist/src/collections/plan/series.js +1596 -298
- package/dist/src/collections/plan/series.js.map +1 -1
- package/dist/src/collections/plan/types.d.ts +6115 -2802
- package/dist/src/collections/plan/types.d.ts.map +1 -1
- package/dist/src/collections/plan/types.js +575 -170
- package/dist/src/collections/plan/types.js.map +1 -1
- package/dist/src/collections/sheet/bridge.d.ts +154 -43
- package/dist/src/collections/sheet/bridge.d.ts.map +1 -1
- package/dist/src/collections/sheet/bridge.js +383 -240
- package/dist/src/collections/sheet/bridge.js.map +1 -1
- package/dist/src/collections/sheet/columns.d.ts +66 -16
- package/dist/src/collections/sheet/columns.d.ts.map +1 -1
- package/dist/src/collections/sheet/columns.js +25 -25
- package/dist/src/collections/sheet/columns.js.map +1 -1
- package/dist/src/collections/sheet/context-bridge.d.ts +48 -0
- package/dist/src/collections/sheet/context-bridge.d.ts.map +1 -0
- package/dist/src/collections/sheet/context-bridge.js +216 -0
- package/dist/src/collections/sheet/context-bridge.js.map +1 -0
- package/dist/src/collections/sheet/draft-bridge.d.ts +37 -0
- package/dist/src/collections/sheet/draft-bridge.d.ts.map +1 -0
- package/dist/src/collections/sheet/draft-bridge.js +153 -0
- package/dist/src/collections/sheet/draft-bridge.js.map +1 -0
- package/dist/src/collections/sheet/drafts.d.ts +14 -0
- package/dist/src/collections/sheet/drafts.d.ts.map +1 -0
- package/dist/src/collections/sheet/drafts.js +14 -0
- package/dist/src/collections/sheet/drafts.js.map +1 -0
- package/dist/src/collections/sheet/editing-bridge.d.ts +36 -0
- package/dist/src/collections/sheet/editing-bridge.d.ts.map +1 -0
- package/dist/src/collections/sheet/editing-bridge.js +196 -0
- package/dist/src/collections/sheet/editing-bridge.js.map +1 -0
- package/dist/src/collections/sheet/editing-types.d.ts +268 -0
- package/dist/src/collections/sheet/editing-types.d.ts.map +1 -0
- package/dist/src/collections/sheet/editing-types.js +34 -0
- package/dist/src/collections/sheet/editing-types.js.map +1 -0
- package/dist/src/collections/sheet/edits.d.ts +37 -0
- package/dist/src/collections/sheet/edits.d.ts.map +1 -0
- package/dist/src/collections/sheet/edits.js +31 -0
- package/dist/src/collections/sheet/edits.js.map +1 -0
- package/dist/src/collections/sheet/group.d.ts +165 -0
- package/dist/src/collections/sheet/group.d.ts.map +1 -0
- package/dist/src/collections/sheet/group.js +52 -0
- package/dist/src/collections/sheet/group.js.map +1 -0
- package/dist/src/collections/sheet/index.d.ts +171 -27
- package/dist/src/collections/sheet/index.d.ts.map +1 -1
- package/dist/src/collections/sheet/index.js +99 -17
- package/dist/src/collections/sheet/index.js.map +1 -1
- package/dist/src/collections/sheet/link.d.ts +22 -16
- package/dist/src/collections/sheet/link.d.ts.map +1 -1
- package/dist/src/collections/sheet/link.js +18 -12
- package/dist/src/collections/sheet/link.js.map +1 -1
- package/dist/src/collections/sheet/registers.d.ts +152 -5
- package/dist/src/collections/sheet/registers.d.ts.map +1 -1
- package/dist/src/collections/sheet/registers.js +154 -5
- package/dist/src/collections/sheet/registers.js.map +1 -1
- package/dist/src/collections/sheet/root.d.ts +175 -26
- package/dist/src/collections/sheet/root.d.ts.map +1 -1
- package/dist/src/collections/sheet/root.js +150 -26
- package/dist/src/collections/sheet/root.js.map +1 -1
- package/dist/src/collections/sheet/seed-bridge.d.ts +14 -0
- package/dist/src/collections/sheet/seed-bridge.d.ts.map +1 -0
- package/dist/src/collections/sheet/seed-bridge.js +51 -0
- package/dist/src/collections/sheet/seed-bridge.js.map +1 -0
- package/dist/src/collections/sheet/sub-rows.d.ts +249 -0
- package/dist/src/collections/sheet/sub-rows.d.ts.map +1 -0
- package/dist/src/collections/sheet/sub-rows.js +222 -0
- package/dist/src/collections/sheet/sub-rows.js.map +1 -0
- package/dist/src/collections/sheet/transactions.d.ts +76 -0
- package/dist/src/collections/sheet/transactions.d.ts.map +1 -0
- package/dist/src/collections/sheet/transactions.js +40 -0
- package/dist/src/collections/sheet/transactions.js.map +1 -0
- package/dist/src/collections/sheet/types.d.ts +12034 -3651
- package/dist/src/collections/sheet/types.d.ts.map +1 -1
- package/dist/src/collections/sheet/types.js +365 -48
- package/dist/src/collections/sheet/types.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +98 -123
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +97 -111
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/table/types.d.ts +87 -31
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/collections/table/types.js +51 -26
- package/dist/src/collections/table/types.js.map +1 -1
- package/dist/src/collections/value-tree/flatten.d.ts.map +1 -1
- package/dist/src/collections/value-tree/flatten.js +4 -1
- package/dist/src/collections/value-tree/flatten.js.map +1 -1
- package/dist/src/component.d.ts +5075 -4079
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +46 -46
- package/dist/src/component.js.map +1 -1
- package/dist/src/contracts/approval.d.ts +10 -8
- package/dist/src/contracts/approval.d.ts.map +1 -1
- package/dist/src/contracts/approval.js +10 -8
- package/dist/src/contracts/approval.js.map +1 -1
- package/dist/src/contracts/drag.d.ts +11 -9
- package/dist/src/contracts/drag.d.ts.map +1 -1
- package/dist/src/contracts/drag.js +28 -21
- package/dist/src/contracts/drag.js.map +1 -1
- package/dist/src/contracts/editing.d.ts +1283 -0
- package/dist/src/contracts/editing.d.ts.map +1 -0
- package/dist/src/contracts/editing.js +711 -0
- package/dist/src/contracts/editing.js.map +1 -0
- package/dist/src/contracts/index.d.ts +2 -1
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/index.js +2 -1
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/pick.d.ts +6 -7
- package/dist/src/contracts/pick.d.ts.map +1 -1
- package/dist/src/contracts/pick.js +6 -7
- package/dist/src/contracts/pick.js.map +1 -1
- package/dist/src/contracts/review.d.ts +3 -1
- package/dist/src/contracts/review.d.ts.map +1 -1
- package/dist/src/contracts/review.js +3 -1
- package/dist/src/contracts/review.js.map +1 -1
- package/dist/src/contracts/source.d.ts +270 -80
- package/dist/src/contracts/source.d.ts.map +1 -1
- package/dist/src/contracts/source.js +357 -58
- package/dist/src/contracts/source.js.map +1 -1
- package/dist/src/display/chip-rail/index.d.ts.map +1 -1
- package/dist/src/display/chip-rail/index.js +10 -10
- package/dist/src/display/chip-rail/index.js.map +1 -1
- package/dist/src/extension.d.ts +2 -1
- package/dist/src/extension.d.ts.map +1 -1
- package/dist/src/extension.js +2 -1
- package/dist/src/extension.js.map +1 -1
- package/dist/src/format/index.d.ts +1 -154
- package/dist/src/format/index.d.ts.map +1 -1
- package/dist/src/format/types.d.ts +35 -23
- package/dist/src/format/types.d.ts.map +1 -1
- package/dist/src/format/types.js +16 -14
- package/dist/src/format/types.js.map +1 -1
- package/dist/src/forms/field/index.js +4 -4
- package/dist/src/forms/field/index.js.map +1 -1
- package/dist/src/forms/file-upload/index.js +16 -16
- package/dist/src/forms/file-upload/index.js.map +1 -1
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +12 -5
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +8 -3
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +11 -3
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js +47 -47
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/flex/index.d.ts.map +1 -1
- package/dist/src/layout/flex/index.js +47 -47
- package/dist/src/layout/flex/index.js.map +1 -1
- package/dist/src/layout/grid/index.js +11 -11
- package/dist/src/layout/grid/index.js.map +1 -1
- package/dist/src/layout/scroll-area/index.d.ts.map +1 -1
- package/dist/src/layout/scroll-area/index.js +8 -8
- package/dist/src/layout/scroll-area/index.js.map +1 -1
- package/dist/src/layout/separator/index.d.ts.map +1 -1
- package/dist/src/layout/separator/index.js +6 -6
- package/dist/src/layout/separator/index.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js +46 -46
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/layout/sticky/index.d.ts.map +1 -1
- package/dist/src/layout/sticky/index.js +8 -8
- package/dist/src/layout/sticky/index.js.map +1 -1
- package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/index.js +8 -8
- package/dist/src/overlays/action-bar/index.js.map +1 -1
- package/dist/src/platform/index.d.ts +1 -1
- package/dist/src/platform/index.d.ts.map +1 -1
- package/dist/src/platform/index.js +1 -1
- package/dist/src/platform/index.js.map +1 -1
- package/dist/src/platform/slice/impl.d.ts +62 -51
- package/dist/src/platform/slice/impl.d.ts.map +1 -1
- package/dist/src/platform/slice/impl.js +155 -72
- package/dist/src/platform/slice/impl.js.map +1 -1
- package/dist/src/platform/slice/index.d.ts +3744 -2226
- package/dist/src/platform/slice/index.d.ts.map +1 -1
- package/dist/src/platform/slice/index.js +43 -1
- package/dist/src/platform/slice/index.js.map +1 -1
- package/dist/src/runtime/collections/deck.d.ts +4 -0
- package/dist/src/runtime/collections/deck.d.ts.map +1 -1
- package/dist/src/runtime/collections/matrix.d.ts +10 -9
- package/dist/src/runtime/collections/matrix.d.ts.map +1 -1
- package/dist/src/runtime/collections/matrix.js +11 -6
- package/dist/src/runtime/collections/matrix.js.map +1 -1
- package/dist/src/runtime/collections/plan.d.ts +148 -65
- package/dist/src/runtime/collections/plan.d.ts.map +1 -1
- package/dist/src/runtime/collections/plan.js +155 -67
- package/dist/src/runtime/collections/plan.js.map +1 -1
- package/dist/src/runtime/collections/sheet.d.ts +56 -23
- package/dist/src/runtime/collections/sheet.d.ts.map +1 -1
- package/dist/src/runtime/collections/sheet.js +30 -22
- package/dist/src/runtime/collections/sheet.js.map +1 -1
- package/dist/src/runtime/collections/table.d.ts +18 -11
- package/dist/src/runtime/collections/table.d.ts.map +1 -1
- package/dist/src/runtime/collections/table.js +7 -4
- package/dist/src/runtime/collections/table.js.map +1 -1
- package/dist/src/shared/reify.d.ts +4 -46
- package/dist/src/shared/reify.d.ts.map +1 -1
- package/dist/src/shared/reify.js +4 -61
- package/dist/src/shared/reify.js.map +1 -1
- package/dist/src/shared/tree.d.ts +88 -0
- package/dist/src/shared/tree.d.ts.map +1 -0
- package/dist/src/shared/tree.js +134 -0
- package/dist/src/shared/tree.js.map +1 -0
- package/dist/src/slice/breakdown/index.d.ts +4 -0
- package/dist/src/slice/breakdown/index.d.ts.map +1 -1
- package/dist/src/slice/breakdown/types.d.ts +4 -0
- package/dist/src/slice/breakdown/types.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.d.ts +24 -4
- package/dist/src/slice/cohort/index.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.js +8 -4
- package/dist/src/slice/cohort/index.js.map +1 -1
- package/dist/src/slice/cohort/types.d.ts +11 -0
- package/dist/src/slice/cohort/types.d.ts.map +1 -1
- package/dist/src/slice/cohort/types.js +7 -0
- package/dist/src/slice/cohort/types.js.map +1 -1
- package/dist/src/slice/filter/index.d.ts +4 -0
- package/dist/src/slice/filter/index.d.ts.map +1 -1
- package/dist/src/slice/filter/types.d.ts +4 -0
- package/dist/src/slice/filter/types.d.ts.map +1 -1
- package/dist/src/slice/index.d.ts +736 -0
- package/dist/src/slice/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.d.ts +4 -0
- package/dist/src/slice/legend/index.d.ts.map +1 -1
- package/dist/src/slice/legend/types.d.ts +4 -0
- package/dist/src/slice/legend/types.d.ts.map +1 -1
- package/dist/src/slice/rail/index.d.ts +8 -4
- package/dist/src/slice/rail/index.d.ts.map +1 -1
- package/dist/src/slice/rail/index.js.map +1 -1
- package/dist/src/slice/range/index.d.ts +4 -0
- package/dist/src/slice/range/index.d.ts.map +1 -1
- package/dist/src/slice/range/types.d.ts +4 -0
- package/dist/src/slice/range/types.d.ts.map +1 -1
- package/dist/src/slice/search/index.d.ts +4 -0
- package/dist/src/slice/search/index.d.ts.map +1 -1
- package/dist/src/slice/search/types.d.ts +4 -0
- package/dist/src/slice/search/types.d.ts.map +1 -1
- package/dist/src/slice/summary/index.d.ts +4 -0
- package/dist/src/slice/summary/index.d.ts.map +1 -1
- package/dist/src/slice/summary/types.d.ts +4 -0
- package/dist/src/slice/summary/types.d.ts.map +1 -1
- package/dist/src/typography/code/index.js +1 -1
- package/dist/src/typography/code/index.js.map +1 -1
- package/dist/src/typography/code-block/index.js +7 -7
- package/dist/src/typography/code-block/index.js.map +1 -1
- package/dist/src/typography/heading/index.js +2 -2
- package/dist/src/typography/heading/index.js.map +1 -1
- package/dist/src/typography/list/index.js +1 -1
- package/dist/src/typography/list/index.js.map +1 -1
- package/dist/src/typography/mark/index.js +1 -1
- package/dist/src/typography/mark/index.js.map +1 -1
- package/dist/src/typography/note/index.js +1 -1
- package/dist/src/typography/note/index.js.map +1 -1
- package/dist/src/typography/numeric/index.d.ts +3 -308
- package/dist/src/typography/numeric/index.d.ts.map +1 -1
- package/dist/src/typography/numeric/index.js +4 -4
- package/dist/src/typography/numeric/index.js.map +1 -1
- package/dist/src/typography/numeric/types.d.ts +1 -154
- package/dist/src/typography/numeric/types.d.ts.map +1 -1
- package/dist/src/typography/text/index.js +1 -1
- package/dist/src/typography/text/index.js.map +1 -1
- package/dist/test/collections/matrix.examples.d.ts +7 -3
- package/dist/test/collections/matrix.examples.d.ts.map +1 -1
- package/dist/test/collections/matrix.examples.js +55 -24
- package/dist/test/collections/matrix.examples.js.map +1 -1
- package/dist/test/collections/paged-source.examples.d.ts +4 -0
- package/dist/test/collections/paged-source.examples.d.ts.map +1 -1
- package/dist/test/collections/paged-source.examples.js +98 -13
- package/dist/test/collections/paged-source.examples.js.map +1 -1
- package/dist/test/collections/plan.examples.d.ts +101 -26
- package/dist/test/collections/plan.examples.d.ts.map +1 -1
- package/dist/test/collections/plan.examples.js +1481 -755
- package/dist/test/collections/plan.examples.js.map +1 -1
- package/dist/test/collections/sheet-link.examples.d.ts +7 -0
- package/dist/test/collections/sheet-link.examples.d.ts.map +1 -0
- package/dist/test/collections/sheet-link.examples.js +41 -0
- package/dist/test/collections/sheet-link.examples.js.map +1 -0
- package/dist/test/collections/sheet-transactions.examples.d.ts +7 -0
- package/dist/test/collections/sheet-transactions.examples.d.ts.map +1 -0
- package/dist/test/collections/sheet-transactions.examples.js +58 -0
- package/dist/test/collections/sheet-transactions.examples.js.map +1 -0
- package/dist/test/collections/sheet.examples.d.ts +52 -5
- package/dist/test/collections/sheet.examples.d.ts.map +1 -1
- package/dist/test/collections/sheet.examples.js +500 -158
- package/dist/test/collections/sheet.examples.js.map +1 -1
- package/dist/test/collections/table.examples.d.ts +31 -3
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +188 -28
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/contracts/editing.examples.d.ts +7 -0
- package/dist/test/contracts/editing.examples.d.ts.map +1 -0
- package/dist/test/contracts/editing.examples.js +58 -0
- package/dist/test/contracts/editing.examples.js.map +1 -0
- package/dist/test/layout/splitter.examples.d.ts.map +1 -1
- package/dist/test/layout/splitter.examples.js +3 -1
- package/dist/test/layout/splitter.examples.js.map +1 -1
- package/dist/test/platform/slice.examples.d.ts.map +1 -1
- package/dist/test/platform/slice.examples.js +1 -0
- package/dist/test/platform/slice.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +5 -2
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/package.json +4 -3
- package/dist/src/collections/plan/data-forms.d.ts +0 -332
- package/dist/src/collections/plan/data-forms.d.ts.map +0 -1
- package/dist/src/collections/plan/data-forms.js +0 -212
- package/dist/src/collections/plan/data-forms.js.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export declare const sheetLinkPrint: import("@elaraai/east").ExampleDef<[], any>;
|
|
6
|
+
export declare const sheetLinkParse: import("@elaraai/east").ExampleDef<[], any>;
|
|
7
|
+
//# sourceMappingURL=sheet-link.examples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-link.examples.d.ts","sourceRoot":"","sources":["../../../test/collections/sheet-link.examples.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,eAAO,MAAM,cAAc,6CAYzB,CAAC;AAEH,eAAO,MAAM,cAAc,6CAezB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { East, StringType, example, none, some, variant } from "@elaraai/east";
|
|
6
|
+
import { Sheet } from "@elaraai/east-ui";
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// The link grammar (B§4.1 / B§4.2) — `Sheet.link.print` and `Sheet.link.parse`
|
|
9
|
+
// are East functions: a task, a fill or a slice's search text calls them
|
|
10
|
+
// exactly as the Sheet does.
|
|
11
|
+
// ============================================================================
|
|
12
|
+
export const sheetLinkPrint = example({
|
|
13
|
+
keywords: ["Sheet", "link", "print", "Link", "Member", "identified", "range", "counted", "placeholder", "grammar", "text"],
|
|
14
|
+
description: "Print a link as the planner types it — from > to, members comma-separated, a range as from-to, a count as N x key and the placeholder as TBC",
|
|
15
|
+
fn: East.function([], StringType, ($) => {
|
|
16
|
+
const link = $.const({
|
|
17
|
+
from: [variant("identified", { key: "M2140" }), variant("range", { from: "M2141", to: "M2145" })],
|
|
18
|
+
to: [variant("counted", { n: 4n, key: "CNC lathe" }), variant("placeholder", null)],
|
|
19
|
+
}, Sheet.Types.Link);
|
|
20
|
+
return Sheet.link.print(link);
|
|
21
|
+
}),
|
|
22
|
+
inputs: [],
|
|
23
|
+
returns: "M2140, M2141-M2145 > 4 x CNC lathe, TBC",
|
|
24
|
+
});
|
|
25
|
+
export const sheetLinkParse = example({
|
|
26
|
+
keywords: ["Sheet", "link", "parse", "Link", "RegisterMembers", "register", "alias", "identified", "counted", "range", "placeholder", "text", "grammar"],
|
|
27
|
+
description: "Parse the planner's text into a typed link against a register — codes and aliases resolve case-insensitively, N x kind counts a family, a short range completes from its lower bound, TBC is the placeholder and anything else is kept as text",
|
|
28
|
+
fn: East.function([], Sheet.Types.Link, ($) => {
|
|
29
|
+
const members = $.const([
|
|
30
|
+
{ key: "M2140", label: "M2140", kind: "machine", aliases: [], meta: some("CNC lathe"), parent: some("Line 2"), tone: none },
|
|
31
|
+
{ key: "CNC lathe", label: "CNC lathe", kind: "family", aliases: ["lathe", "lathes"], meta: some("family"), parent: none, tone: none },
|
|
32
|
+
], Sheet.Types.RegisterMembers);
|
|
33
|
+
return Sheet.link.parse("m2140 > 4 x lathe, M2141-45, TBC, paint shop", members);
|
|
34
|
+
}),
|
|
35
|
+
inputs: [],
|
|
36
|
+
returns: {
|
|
37
|
+
from: [variant("identified", { key: "M2140" })],
|
|
38
|
+
to: [variant("counted", { n: 4n, key: "CNC lathe" }), variant("range", { from: "M2141", to: "M2145" }), variant("placeholder", null), variant("text", "paint shop")],
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=sheet-link.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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AAE,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;KACvK;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
export declare const sheetApplyBatch: import("@elaraai/east").ExampleDef<[], any>;
|
|
6
|
+
export declare const sheetApplyEntries: import("@elaraai/east").ExampleDef<[], any>;
|
|
7
|
+
//# sourceMappingURL=sheet-transactions.examples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-transactions.examples.d.ts","sourceRoot":"","sources":["../../../test/collections/sheet-transactions.examples.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,eAAO,MAAM,eAAe,6CAkB1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,6CA8B5B,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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, East, IntegerType, OptionType, StringType, StructType, example, none, some, variant } from "@elaraai/east";
|
|
6
|
+
import { Sheet } from "@elaraai/east-ui";
|
|
7
|
+
const Job = StructType({ id: StringType, task: StringType, qty: IntegerType });
|
|
8
|
+
export const sheetApplyBatch = example({
|
|
9
|
+
keywords: ["Sheet", "apply", "ChangeSet", "patch", "atomic", "snapshot", "batch"],
|
|
10
|
+
description: "Apply an entry patch against the complete inline snapshot",
|
|
11
|
+
fn: East.function([], ArrayType(Job), ($) => {
|
|
12
|
+
const before = $.const({ id: "a", task: "Cut", qty: 2n }, Job);
|
|
13
|
+
const after = $.const({ id: "a", task: "Cut", qty: 3n }, Job);
|
|
14
|
+
const rows = $.const([before], ArrayType(Job));
|
|
15
|
+
const oldEntry = $.const(some(before), OptionType(Job));
|
|
16
|
+
const newEntry = $.const(some(after), OptionType(Job));
|
|
17
|
+
const batch = $.const({
|
|
18
|
+
requestId: "example-request", base: variant("snapshot", rows), label: "Set quantity",
|
|
19
|
+
changes: [{ id: "a", patch: East.diff(oldEntry, newEntry), place: none }],
|
|
20
|
+
}, Sheet.Types.ChangeSet(Job));
|
|
21
|
+
const apply = $.const(Sheet.apply(Job, "id"));
|
|
22
|
+
return apply(rows, batch, none).unwrap("applied");
|
|
23
|
+
}),
|
|
24
|
+
inputs: [],
|
|
25
|
+
returns: [{ id: "a", task: "Cut", qty: 3n }],
|
|
26
|
+
});
|
|
27
|
+
export const sheetApplyEntries = example({
|
|
28
|
+
keywords: ["Sheet", "Types", "Entry", "group", "row", "child", "variant", "apply", "ChangeSet", "batch", "atomic"],
|
|
29
|
+
description: "Apply a batch to work packages and loose tasks in one collection — Sheet.Types.Entry names the group-or-row union by its child field, and one entry patch reorders a package's tasks",
|
|
30
|
+
fn: East.function([], ArrayType(StringType), ($) => {
|
|
31
|
+
const TaskType = StructType({ id: StringType, task: StringType });
|
|
32
|
+
const PackageType = StructType({ id: StringType, name: StringType, tasks: ArrayType(TaskType) });
|
|
33
|
+
const Entry = Sheet.Types.Entry(PackageType, "tasks");
|
|
34
|
+
const before = $.const(variant("group", { id: "p1", name: "P-40 roughing", tasks: [
|
|
35
|
+
{ id: "t1", task: "Machine blanks" }, { id: "t2", task: "Inspect lots" },
|
|
36
|
+
] }), Entry);
|
|
37
|
+
const after = $.const(variant("group", { id: "p1", name: "P-40 roughing", tasks: [
|
|
38
|
+
{ id: "t2", task: "Inspect lots" }, { id: "t1", task: "Machine blanks" },
|
|
39
|
+
] }), Entry);
|
|
40
|
+
const loose = $.const(variant("row", { id: "t9", task: "Pack for shipping" }), Entry);
|
|
41
|
+
const entries = $.const([before, loose], ArrayType(Entry));
|
|
42
|
+
const oldEntry = $.const(some(before), OptionType(Entry));
|
|
43
|
+
const newEntry = $.const(some(after), OptionType(Entry));
|
|
44
|
+
const batch = $.const({
|
|
45
|
+
requestId: "reorder-roughing", base: variant("snapshot", entries), label: "Move a task",
|
|
46
|
+
changes: [{ id: "p1", patch: East.diff(oldEntry, newEntry), place: none }],
|
|
47
|
+
}, Sheet.Types.ChangeSet(Entry));
|
|
48
|
+
const apply = $.const(Sheet.apply(Entry, "id"));
|
|
49
|
+
const applied = $.const(apply(entries, batch, none).unwrap("applied"));
|
|
50
|
+
return applied.map((_$, entry) => entry.match({
|
|
51
|
+
group: (_$2, p) => East.str `${p.name}: ${p.tasks.map((_$3, t) => t.task).stringJoin(" → ")}`,
|
|
52
|
+
row: (_$2, t) => t.task,
|
|
53
|
+
}));
|
|
54
|
+
}),
|
|
55
|
+
inputs: [],
|
|
56
|
+
returns: ["P-40 roughing: Inspect lots → Machine blanks", "Pack for shipping"],
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=sheet-transactions.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-transactions.examples.js","sourceRoot":"","sources":["../../../test/collections/sheet-transactions.examples.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/H,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,MAAM,GAAG,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,WAAW,EAAE,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,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SAC7E,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;QACvE,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YAC1C,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAA,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;YAC5F,GAAG,EAAI,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI;SAC5B,CAAC,CAAC,CAAC;IACR,CAAC,CAAC;IACF,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,8CAA8C,EAAE,mBAAmB,CAAC;CACjF,CAAC,CAAC"}
|
|
@@ -24,7 +24,7 @@ export declare const sheetPlan: import("@elaraai/east").ExampleDef<[], any>;
|
|
|
24
24
|
* similar row's quantity), sequence (a week after the last dated row), default
|
|
25
25
|
* (eight hours at the driver's rate), a domain pattern proposer, a learned
|
|
26
26
|
* follower, and an ASYNC proposer behind a platform function; every take
|
|
27
|
-
* logs its provenance through `
|
|
27
|
+
* logs its provenance through `onPatch`.
|
|
28
28
|
*/
|
|
29
29
|
export declare const sheetCopilot: import("@elaraai/east").ExampleDef<[], any>;
|
|
30
30
|
/**
|
|
@@ -36,16 +36,21 @@ export declare const sheetCopilot: import("@elaraai/east").ExampleDef<[], any>;
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const sheetLens: import("@elaraai/east").ExampleDef<[], any>;
|
|
38
38
|
/**
|
|
39
|
-
* Write-back (§3.7) —
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* Write-back (§3.7) — onPatch journals one complete gesture, while the
|
|
40
|
+
* live onUpdate adapter checks and applies the composed batch once. The
|
|
41
|
+
* Sheet holds local drafts until Apply changes is pressed.
|
|
42
42
|
*/
|
|
43
43
|
export declare const sheetWriteBack: import("@elaraai/east").ExampleDef<[], any>;
|
|
44
|
+
/**
|
|
45
|
+
* Grouped editing — named work packages with ordered child rows. Explicit
|
|
46
|
+
* constructors supply hidden metadata; the schema determines completeness.
|
|
47
|
+
*/
|
|
48
|
+
export declare const sheetGrouped: import("@elaraai/east").ExampleDef<[], any>;
|
|
44
49
|
/**
|
|
45
50
|
* The paged arm (§3.13) — the same tag over a windowed source: windows land
|
|
46
51
|
* as the planner scrolls, the footer carries the transport line, the blank
|
|
47
52
|
* tail appears once the source is exhausted, search is a key search over
|
|
48
|
-
* `seek`, and
|
|
53
|
+
* `seek`, and the immutable snapshot is read-only. A mutable source needs an authoritative onApply callback.
|
|
49
54
|
*/
|
|
50
55
|
export declare const sheetPaged: import("@elaraai/east").ExampleDef<[], any>;
|
|
51
56
|
/**
|
|
@@ -53,4 +58,46 @@ export declare const sheetPaged: import("@elaraai/east").ExampleDef<[], any>;
|
|
|
53
58
|
* history fill reasoning over the resident sheet.
|
|
54
59
|
*/
|
|
55
60
|
export declare const sheetStress: import("@elaraai/east").ExampleDef<[], any>;
|
|
61
|
+
/** Schema completeness plus an optional business rule, evaluated on typed drafts. */
|
|
62
|
+
export declare const sheetReadiness: import("@elaraai/east").ExampleDef<[], any>;
|
|
63
|
+
/** Row insertion and capability limits over a live collection. */
|
|
64
|
+
export declare const sheetInsertion: import("@elaraai/east").ExampleDef<[], any>;
|
|
65
|
+
/**
|
|
66
|
+
* Sub rows (#844) — read-only rows under each line that share none of its
|
|
67
|
+
* columns. `Sheet.subRows` is keyed like `columns`: each key names an array
|
|
68
|
+
* field of the line type and maps one element to a sub row — a struct source
|
|
69
|
+
* with chips and labelled facets (a `none` facet drops out), and a variant
|
|
70
|
+
* source matched arm by arm. The group's noun is the host's word.
|
|
71
|
+
*/
|
|
72
|
+
export declare const sheetSubRows: import("@elaraai/east").ExampleDef<[], any>;
|
|
73
|
+
/**
|
|
74
|
+
* Column rules (#844) — what a column offers, how deep a date reads, and
|
|
75
|
+
* what a cell says beyond its value: an `options` rule narrows the status
|
|
76
|
+
* menu until the row has an order code; the start date reads at the row's
|
|
77
|
+
* own `level` and prints the `actual` start once one is recorded; the status
|
|
78
|
+
* cell's `detail` is the order code; machines are a `ranged` kind, so runs
|
|
79
|
+
* of consecutive codes are offered and printed as one range.
|
|
80
|
+
*/
|
|
81
|
+
export declare const sheetRules: import("@elaraai/east").ExampleDef<[], any>;
|
|
82
|
+
/**
|
|
83
|
+
* Registers and the driver (§3.3) — a register is the grammar's vocabulary,
|
|
84
|
+
* projected from the host's rows by accessors: machines from an Array with a
|
|
85
|
+
* meta and a parent, lines from a Dict whose key rides as the accessors'
|
|
86
|
+
* second argument, and the machine families read off the same machines (the
|
|
87
|
+
* lathes fold into one member), joined into the one register the Machines
|
|
88
|
+
* column resolves against. The driver is the `lookup` column whose member
|
|
89
|
+
* decides what the row does: its row gives the quantity its unit and the End
|
|
90
|
+
* fill its duration.
|
|
91
|
+
*/
|
|
92
|
+
export declare const sheetRegisters: import("@elaraai/east").ExampleDef<[], any>;
|
|
93
|
+
/**
|
|
94
|
+
* Loose rows between the groups (#846) — the source holds entries
|
|
95
|
+
* `Sheet.Types.Entry(PackageType, "tasks")`: a work package with its tasks,
|
|
96
|
+
* or a task that belongs to no package. A loose task draws as a plain row,
|
|
97
|
+
* numbered in the packages' sequence; the seam above a package's band, or
|
|
98
|
+
* beside a loose task, inserts a loose task, and a task's seam inserts a task
|
|
99
|
+
* into its package. `id` names a field of both types: a loose task is an
|
|
100
|
+
* entry, identified like a package.
|
|
101
|
+
*/
|
|
102
|
+
export declare const sheetLoose: import("@elaraai/east").ExampleDef<[], any>;
|
|
56
103
|
//# sourceMappingURL=sheet.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.examples.d.ts","sourceRoot":"","sources":["../../../test/collections/sheet.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheet.examples.d.ts","sourceRoot":"","sources":["../../../test/collections/sheet.examples.tsx"],"names":[],"mappings":"AA6CA;;;;GAIG;AACH,eAAO,MAAM,UAAU,6CA6BrB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,6CAuHxB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,SAAS,6CA4VpB,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,6CAmKvB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,6CAsEpB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,cAAc,6CA8CzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY,6CAmDvB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,6CAiCrB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW,6CA6CtB,CAAC;AAEH,qFAAqF;AACrF,eAAO,MAAM,cAAc,6CAkCzB,CAAC;AAEH,kEAAkE;AAClE,eAAO,MAAM,cAAc,6CAuBzB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,6CAwEvB,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,6CAqDrB,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,6CA2EzB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,6CA6CrB,CAAC"}
|