@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pick.js","sourceRoot":"","sources":["../../../../src/collections/plan/pick.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAIH,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"pick.js","sourceRoot":"","sources":["../../../../src/collections/plan/pick.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAIH,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,EACV,UAAU,EACV,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAwD,MAAM,yBAAyB,CAAC;AAC1H,OAAO,EAAE,cAAc,EAAE,WAAW,EAAkE,MAAM,aAAa,CAAC;AAE1H;;;;;GAKG;AACH,MAAM,UAAU,GAAkC;IAC9C,IAAI,EAAK,gBAAgB;IACzB,6EAA6E;IAC7E,0EAA0E;IAC1E,0EAA0E;IAC1E,+DAA+D;IAC/D,OAAO,EAAE,eAAe;IACxB,KAAK,EAAI,YAAY;IACrB,IAAI,EAAK,mBAAmB;IAC5B,KAAK,EAAI,YAAY;IACrB,KAAK,EAAI,YAAY;IACrB,MAAM,EAAG,MAAM;IACf,KAAK,EAAI,aAAa;IACtB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAI,OAAO;IAChB,IAAI,EAAK,MAAM;CAClB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,sBAAsB,GAAG,UAAU,CAAC;IACtC,GAAG,EAAO,UAAU;IAC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ooleanType, DictType, FunctionType, NullType, OptionType, StringType
|
|
11
|
+
import { type EastType, type ExprType, type SubtypeExprOrValue, Expr, ArrayType, BooleanType, DictType, FunctionType, NullType, OptionType, StringType } from "@elaraai/east";
|
|
12
12
|
import { UIComponentType } from "../../component.js";
|
|
13
13
|
import { StatusValueType, type StatusValueLiteral } from "../../feedback/status/types.js";
|
|
14
14
|
import { DensityType, type DensityLiteral } from "../../style/interaction.js";
|
|
15
|
-
import { type ReviewConfig } from "../../contracts/review.js";
|
|
16
15
|
import { DragEventType } from "../../contracts/drag.js";
|
|
17
16
|
import { SliceBindType } from "../../platform/slice/index.js";
|
|
18
17
|
import { type SliceAffordanceLiteral } from "../../contracts/slice-affordances.js";
|
|
19
|
-
import { PlanGrainType, type PlanGrainLiteral, PlanLinkType,
|
|
18
|
+
import { PlanGrainType, type PlanGrainLiteral, PlanLinkType, PlanRowIdType, PlanGroupToggleEventType, PlanElementRefType, PlanUiBindType, type PlanAxisKindLiteral, type PlanAxisInput } from "./types.js";
|
|
20
19
|
import { PlanSeriesType, type PlanSeriesInput } from "./series.js";
|
|
21
20
|
import { type PickHandle } from "../../contracts/pick.js";
|
|
22
21
|
import { type PagedSourceLike } from "../../contracts/source.js";
|
|
23
22
|
/**
|
|
24
|
-
* The Plan review
|
|
25
|
-
*
|
|
23
|
+
* The Plan's review chrome (#880) — the decision column and the batch foot.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* A verdict is a gesture of the editing session, not a callback: the series
|
|
27
|
+
* whose rows are reviewed names the entry field a verdict writes
|
|
28
|
+
* (`review: { verdict: "approval" }`), Approve / Reject on a row and Approve
|
|
29
|
+
* all / Reject all at the foot draft its entries, and Apply sends them as one
|
|
30
|
+
* checked batch (`editing`). Rerun changes no data, so it stays a callback.
|
|
31
|
+
*
|
|
32
|
+
* @property columnLabel - The decision column's header (default `"Decision"`)
|
|
33
|
+
* @property summary - The foot's eyebrow — a host-composed component
|
|
34
|
+
* @property onRerun - Rerun (absent ⇒ no Rerun button)
|
|
35
|
+
* @property rerunLabel - The Rerun button's label (default `"Rerun"`)
|
|
26
36
|
*/
|
|
27
|
-
export
|
|
37
|
+
export interface PlanReviewConfig {
|
|
38
|
+
/** The decision column's header (default `"Decision"`). */
|
|
39
|
+
columnLabel?: SubtypeExprOrValue<StringType> | string;
|
|
40
|
+
/** The foot's eyebrow — a host-composed component. */
|
|
41
|
+
summary?: SubtypeExprOrValue<UIComponentType>;
|
|
42
|
+
/** Rerun (absent ⇒ no Rerun button) — it changes no data, so it stays a callback. */
|
|
43
|
+
onRerun?: SubtypeExprOrValue<FunctionType<[], NullType>>;
|
|
44
|
+
/** The Rerun button's label (default `"Rerun"`). */
|
|
45
|
+
rerunLabel?: SubtypeExprOrValue<StringType> | string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The Plan's editing session (#880) — the Sheet's, over the canvas's entries:
|
|
49
|
+
* every verdict, every dropped card and every moved or resized element (#825)
|
|
50
|
+
* is a DRAFT of the entry it was made on, each gesture one undoable
|
|
51
|
+
* transaction, and Apply one checked, idempotent batch against the base the
|
|
52
|
+
* drafts began from.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* The entries are `data`'s top-level entries: a gesture on a row at any depth
|
|
56
|
+
* drafts the entry its row came from (the whole subtree rides in it), and the
|
|
57
|
+
* canvas draws a draft by deriving the entry's rows again — exactly what
|
|
58
|
+
* Apply leaves. The callbacks are East functions over the canvas's own entry
|
|
59
|
+
* type `R` and key type `K`:
|
|
60
|
+
*
|
|
61
|
+
* - `onApply(Editing.Types.ChangeSet(R, K)) → Editing.Types.ApplyResult`
|
|
62
|
+
* commits a batch — sync or async. Its base is the inline `Dict`'s snapshot,
|
|
63
|
+
* or a paged source's revision; a batch against a source that moved is
|
|
64
|
+
* refused, never rebased.
|
|
65
|
+
* - `onUpdate(Dict<K, R>)` is the inline adapter instead: with
|
|
66
|
+
* `data={liveHandle}` it applies each batch with `Editing.apply` over the
|
|
67
|
+
* handle's latest `Dict` and writes the whole result — idempotent across
|
|
68
|
+
* retries. Exclusive with `onApply`.
|
|
69
|
+
* - `onPatch(Plan.Types.PatchEvent(R))` observes every gesture.
|
|
70
|
+
* - `ready(R, K) → Editing.Types.Readiness` is the author's check over one
|
|
71
|
+
* drafted entry; a refusal blocks Apply and names the entry.
|
|
72
|
+
*
|
|
73
|
+
* @property onApply - Commit one checked batch (sync or async)
|
|
74
|
+
* @property onUpdate - The inline adapter's writer — the whole collection with the batch applied (requires `data={liveHandle}`)
|
|
75
|
+
* @property onPatch - Observe every gesture
|
|
76
|
+
* @property mode - `"batch"` (Apply sends) or `"auto"` (each ready gesture goes at once)
|
|
77
|
+
* @property ready - The author's readiness check over a drafted entry
|
|
78
|
+
*/
|
|
79
|
+
export interface PlanEditingConfig {
|
|
80
|
+
/** Commit one checked batch — `Fn(Editing.Types.ChangeSet(R, K)) → Editing.Types.ApplyResult`, sync or async. */
|
|
81
|
+
onApply?: ExprType<EastType>;
|
|
82
|
+
/** The inline adapter's writer — `Fn(Dict<K, R>) → Null`; requires `data={liveHandle}`, exclusive with `onApply`. */
|
|
83
|
+
onUpdate?: ExprType<EastType>;
|
|
84
|
+
/** Observe every gesture — `Fn(Plan.Types.PatchEvent(R)) → Null`. */
|
|
85
|
+
onPatch?: ExprType<EastType>;
|
|
86
|
+
/** When a ready batch goes: on Apply (`"batch"`, the default), or at once (`"auto"`). */
|
|
87
|
+
mode?: "batch" | "auto";
|
|
88
|
+
/** The author's check over one drafted entry — `Fn(R, K) → Editing.Types.Readiness`. */
|
|
89
|
+
ready?: ExprType<EastType>;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A whole-value bind handle (`State.bind` / `Data.bind`) over a keyed
|
|
93
|
+
* collection — accepted as `data`. The canvas reads it as the inline arm, and
|
|
94
|
+
* `editing.onUpdate` writes each applied batch back through it (#880).
|
|
95
|
+
*/
|
|
96
|
+
export interface PlanBindHandle {
|
|
97
|
+
/** The handle's read. */
|
|
98
|
+
read: (...args: never[]) => Expr<DictType<EastType, EastType>>;
|
|
99
|
+
}
|
|
28
100
|
/**
|
|
29
101
|
* Configuration for {@link Plan.Root} (the `<Plan>` tag's props).
|
|
30
102
|
*
|
|
@@ -39,62 +111,55 @@ export type PlanReviewConfig = ReviewConfig<PlanRowRefType>;
|
|
|
39
111
|
*
|
|
40
112
|
* @typeParam K - The canvas's axis kind — inferred from `axis`
|
|
41
113
|
* @property axis - The shared axis declaration (`Plan.axis` / `.time` / `.number` / `.ordinal`)
|
|
42
|
-
* @property
|
|
43
|
-
* @property
|
|
44
|
-
* @property series - The row series over `data` — `Plan.series.*` values (declared order resolves key collisions; rows sit in KEY order); exclusive with `pick`
|
|
114
|
+
* @property data - The source — a `Dict<K, R>` value/expression, a bind handle over one, or a paged source of one; pairs with `series` or `pick`
|
|
115
|
+
* @property series - The row series over `data` — `Plan.series.*` values; the list IS the layout; exclusive with `pick`
|
|
45
116
|
* @property pick - A bound series library (`Plan.pick`) — the canvas shows the picked series and mounts the library panel; exclusive with `series`
|
|
117
|
+
* @property links - The link graph (R1) — run-edge quantity links (`Plan.link` values)
|
|
46
118
|
* @property grain - Initial grain (`"group"` / `"resource"`; default resource)
|
|
47
119
|
* @property popover - Generalized click-popover resolver over the element ref (`none` result ⇒ no surface)
|
|
48
120
|
* @property hover - Generalized hovercard resolver over the element ref (`none` result ⇒ no surface)
|
|
49
|
-
* @property expandRender - The R2 developer render for rows declaring `expand` (called with the row
|
|
50
|
-
* @property expandGutter - The R2 gutter render — fills the expanded row's grown gutter cell (called with the row
|
|
51
|
-
* @property review - The
|
|
121
|
+
* @property expandRender - The R2 developer render for rows declaring `expand` (called with the row's id)
|
|
122
|
+
* @property expandGutter - The R2 gutter render — fills the expanded row's grown gutter cell (called with the row's id)
|
|
123
|
+
* @property review - The review chrome (decision column + batch foot); a verdict is a gesture of `editing`
|
|
124
|
+
* @property editing - The editing session (#880) — every verdict, dropped card, move and resize a draft, applied as one checked batch
|
|
52
125
|
* @property slice - Bound slice chrome (toolbar affordances)
|
|
53
126
|
* @property footer - Status-footer items
|
|
54
|
-
* @property id - DnD target identity
|
|
127
|
+
* @property id - DnD target identity (omit ⇒ the canvas is no drop target)
|
|
55
128
|
* @property sources - Library ids accepted for `add` drags
|
|
56
|
-
* @property
|
|
57
|
-
* @property canDrop - IR-level drop veto (the ⊘ stage)
|
|
129
|
+
* @property canDrop - IR-level drop veto (the ⊘ stage) — consulted before a drop becomes a draft
|
|
58
130
|
* @property onSelect - Row click (selection)
|
|
59
|
-
* @property
|
|
60
|
-
* @property
|
|
61
|
-
* @property onMarkClick - Event mark / decision diamond click
|
|
62
|
-
* @property onChipClick - Cards chip click
|
|
63
|
-
* @property onCellClick - Heat / table / weight / segment cell click
|
|
64
|
-
* @property onGroupToggle - Group strip ↔ rows toggle
|
|
131
|
+
* @property onElementClick - A click on any element — run, tile, mark, chip, cell or link ribbon — by its ref (#824)
|
|
132
|
+
* @property onGroupToggle - A row with children expanded or collapsed
|
|
65
133
|
* @property onGrainChange - Grain segment change
|
|
134
|
+
* @property ui - A bound interaction state (`State.bind` at `Plan.Types.UiState`, #824)
|
|
66
135
|
* @property style - Sizing, density and gutter width
|
|
67
136
|
*/
|
|
68
137
|
export interface PlanConfig<K extends PlanAxisKindLiteral = PlanAxisKindLiteral> {
|
|
69
|
-
/** The shared axis declaration (`Plan.axis` / `.time` / `.number` / `.ordinal`) — fixes the canvas kind `K`.
|
|
138
|
+
/** The shared axis declaration (`Plan.axis` / `.time` / `.number` / `.ordinal`) — fixes the canvas kind `K`.
|
|
139
|
+
* A time or number axis states its `window`, or the canvas binds a `slice` whose range supplies it —
|
|
140
|
+
* there is no fit to the data (#822), inline or paged. */
|
|
70
141
|
axis: PlanAxisInput<K>;
|
|
71
|
-
/** The
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* for the
|
|
142
|
+
/** The source — a KEYED collection: a `Dict<K, R>` value or expression (a
|
|
143
|
+
* `$.let`-bound map, `Data.bind(...).read()`) or a whole-value bind handle
|
|
144
|
+
* over one (`data={handle}` — what `editing.onUpdate` writes back
|
|
145
|
+
* through) for the INLINE arm, or a `$.let`-bound paged handle over one
|
|
146
|
+
* (`Data.bindPaged(ops)`) for the PAGED arm; the East type is the
|
|
147
|
+
* discriminant. Any key type: a row's path
|
|
148
|
+
* starts with its entry's key (the String itself, any other key as its
|
|
149
|
+
* `.east` text), so the canvas is addressed by the keys the source is
|
|
150
|
+
* searched and windowed by. Entries may be any East type — a struct, a
|
|
151
|
+
* recursive node, or a collection (`groupToDicts`' groups).
|
|
75
152
|
*
|
|
76
|
-
* The keys are load-bearing: a leaf row's key IS its data key, so the
|
|
77
|
-
* canvas is ordered and addressed by the same keys the source is
|
|
78
|
-
* (`datasetGetPage` windows and `datasetFindKey` searches that key order).
|
|
79
153
|
* A positional collection is refused — key it at the call site with
|
|
80
|
-
* `rows.toDict((_$, r) => r.id)`, which makes the choice explicit.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*
|
|
84
|
-
* window (#567 D8). */
|
|
85
|
-
data: SubtypeExprOrValue<DictType<StringType, StructType>> | PagedSourceLike;
|
|
86
|
-
/** The row series over `data` — `Plan.series.*` values, applied in DECLARED
|
|
87
|
-
* order (a TS array or an East expression of
|
|
88
|
-
* `ArrayType(Plan.Types.Series(R))`).
|
|
89
|
-
*
|
|
90
|
-
* Declared order resolves KEY COLLISIONS only (last wins). It does NOT
|
|
91
|
-
* set row order on screen: the canvas is one keyed collection
|
|
92
|
-
* (`PlanRowsCollectionType` is a `Dict`, decoded as a `SortedMap`), so
|
|
93
|
-
* rows sit in canonical KEY order however the series are listed. Order
|
|
94
|
-
* rows by keying them for it — a `prefix` per series, or ordered data
|
|
95
|
-
* keys (`"10-line1"`, `"20-line2"`).
|
|
154
|
+
* `rows.toDict((_$, r) => r.id)`, which makes the choice explicit. */
|
|
155
|
+
data: SubtypeExprOrValue<DictType<EastType, EastType>> | PlanBindHandle | PagedSourceLike;
|
|
156
|
+
/** The row series over `data` — `Plan.series.*` values, a TS array or an
|
|
157
|
+
* East expression of `ArrayType(Plan.Types.Series(R))`.
|
|
96
158
|
*
|
|
97
|
-
*
|
|
159
|
+
* The list IS the layout (#822): each series contributes one contiguous
|
|
160
|
+
* block, top to bottom in declared order, its rows in source order, each
|
|
161
|
+
* parent followed by its subtree. Series keys must be unique across the
|
|
162
|
+
* whole series tree — a TS array is checked here.
|
|
98
163
|
*
|
|
99
164
|
* Every series' axis kind must lie within the axis's (`K`): a `"time"`
|
|
100
165
|
* series on a `"number"` axis fails to compile here. */
|
|
@@ -108,10 +173,9 @@ export interface PlanConfig<K extends PlanAxisKindLiteral = PlanAxisKindLiteral>
|
|
|
108
173
|
* Give one or the other: `series` for a fixed canvas, `pick` for a canvas
|
|
109
174
|
* whose rows the user chooses.
|
|
110
175
|
*
|
|
111
|
-
* The Plan does the rest — it feeds itself the picked series
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* needs: `series` IS the item list and `data` IS what the counts derive from.
|
|
176
|
+
* The Plan does the rest — it feeds itself the picked series (in the pick's
|
|
177
|
+
* order, which is the layout) and mounts the library panel as chrome, the
|
|
178
|
+
* way `slice` mounts the rail.
|
|
115
179
|
*
|
|
116
180
|
* A pick is STATE, so a Plan carrying one must sit inside a `Reactive` —
|
|
117
181
|
* `Plan.pick` binds through `State.bind`, and a bind outside a reactive
|
|
@@ -119,28 +183,33 @@ export interface PlanConfig<K extends PlanAxisKindLiteral = PlanAxisKindLiteral>
|
|
|
119
183
|
*/
|
|
120
184
|
pick?: PickHandle<ReturnType<typeof PlanSeriesType>>;
|
|
121
185
|
/** The link graph (R1) — run-edge quantity links (`Plan.link` values, map-derivable
|
|
122
|
-
* from data); the links-focus control gathers a
|
|
186
|
+
* from data, their ends `Plan.ref(series, …path)`); the links-focus control gathers a
|
|
187
|
+
* row's transitive family over it. */
|
|
123
188
|
links?: SubtypeExprOrValue<ArrayType<PlanLinkType>>;
|
|
124
189
|
/** Initial grain (default `"resource"`). */
|
|
125
190
|
grain?: PlanGrainLiteral | SubtypeExprOrValue<PlanGrainType>;
|
|
126
191
|
/** Generalized click-popover resolver — called with the clicked element's
|
|
127
192
|
* ref (`run` / `event` / `chip` / `mark` / `cell` arm, each carrying the
|
|
128
|
-
* row
|
|
193
|
+
* row's id, or a ribbon's `link` arm); returning `none` opens no surface. */
|
|
129
194
|
popover?: SubtypeExprOrValue<FunctionType<[PlanElementRefType], OptionType<UIComponentType>>>;
|
|
130
195
|
/** Generalized hovercard resolver — the hover twin of `popover`. */
|
|
131
196
|
hover?: SubtypeExprOrValue<FunctionType<[PlanElementRefType], OptionType<UIComponentType>>>;
|
|
132
|
-
/** The R2 developer render — called with the row
|
|
197
|
+
/** The R2 developer render — called with the row's id when a row declaring
|
|
133
198
|
* `expand` focuses; builds the mounted body from captured data /
|
|
134
199
|
* bind-handles. */
|
|
135
|
-
expandRender?: SubtypeExprOrValue<FunctionType<[
|
|
200
|
+
expandRender?: SubtypeExprOrValue<FunctionType<[PlanRowIdType], UIComponentType>>;
|
|
136
201
|
/** The R2 GUTTER render — an expanded row's gutter cell grows with the row
|
|
137
202
|
* (one tall cell, top-aligned under the row's name), and this fills the
|
|
138
203
|
* space that opens up: the identity, measures or controls that only earn
|
|
139
|
-
* their place once the row has the canvas. Called with the same row
|
|
204
|
+
* their place once the row has the canvas. Called with the same row id
|
|
140
205
|
* as `expandRender`. */
|
|
141
|
-
expandGutter?: SubtypeExprOrValue<FunctionType<[
|
|
142
|
-
/** The
|
|
206
|
+
expandGutter?: SubtypeExprOrValue<FunctionType<[PlanRowIdType], UIComponentType>>;
|
|
207
|
+
/** The review chrome (decision column + batch foot, #880). A verdict is a gesture of `editing`, written into
|
|
208
|
+
* the field the reviewed series names (`review: { verdict }` on the series). */
|
|
143
209
|
review?: PlanReviewConfig;
|
|
210
|
+
/** The editing session (#880) — see {@link PlanEditingConfig}. Without it the canvas takes no gesture: the
|
|
211
|
+
* decision buttons are disabled, no card lands and nothing moves. */
|
|
212
|
+
editing?: PlanEditingConfig;
|
|
144
213
|
/** Bound slice chrome — the handle + toolbar affordances (default `["cohort","filter","search","range","resolution","brush","summary"]`). */
|
|
145
214
|
slice?: {
|
|
146
215
|
/** The bound handle from `Slice.bind`. */
|
|
@@ -157,30 +226,46 @@ export interface PlanConfig<K extends PlanAxisKindLiteral = PlanAxisKindLiteral>
|
|
|
157
226
|
/** Right-align the item. */
|
|
158
227
|
end?: boolean;
|
|
159
228
|
}[];
|
|
160
|
-
/** DnD target identity — names the Plan in drag-grammar cell refs
|
|
229
|
+
/** DnD target identity — names the Plan in drag-grammar cell refs, which is how a Library's cards reach it:
|
|
230
|
+
* omit it and no card lands. A card lands only on a row whose series declares `edit.create` (where it
|
|
231
|
+
* lands and how it becomes an item). The canvas's own elements move whether or not it has an `id` —
|
|
232
|
+
* where their series declares a move's fields (`edit.key` and `start` / `end`, or `at`, #825). Each is a
|
|
233
|
+
* draft of the root's `editing` session. */
|
|
161
234
|
id?: string;
|
|
162
235
|
/** Library ids accepted for `add` drags (omit = no adds). */
|
|
163
236
|
sources?: string[];
|
|
164
|
-
/**
|
|
165
|
-
|
|
166
|
-
|
|
237
|
+
/** IR-level drop veto — consulted with the candidate event (`add` for a card; `move` or `resize` for an
|
|
238
|
+
* element moved, #825; a `CellRef.row` is the row id's canonical text) where the drag rests and again
|
|
239
|
+
* before it becomes a draft; `false` ⇒ the ⊘ invalid stage; a throwing predicate fails open. */
|
|
167
240
|
canDrop?: SubtypeExprOrValue<FunctionType<[DragEventType], BooleanType>>;
|
|
168
|
-
/** Row click (selection). */
|
|
169
|
-
onSelect?: SubtypeExprOrValue<FunctionType<[
|
|
170
|
-
/**
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
/** Cards chip click (`{ row, chip }`). */
|
|
177
|
-
onChipClick?: SubtypeExprOrValue<FunctionType<[PlanChipClickEventType], NullType>>;
|
|
178
|
-
/** Bucket-cell click (`{ row, at }` — the bucket instant, not an index). */
|
|
179
|
-
onCellClick?: SubtypeExprOrValue<FunctionType<[PlanCellClickEventType], NullType>>;
|
|
180
|
-
/** Group strip ↔ rows toggle (fires after the in-place swap). */
|
|
241
|
+
/** Row click (selection) — the row's id. */
|
|
242
|
+
onSelect?: SubtypeExprOrValue<FunctionType<[PlanRowIdType], NullType>>;
|
|
243
|
+
/** A click on any element, by its ref (#824) — `run` (`{ row, run }`), `event` (`{ row, event }`),
|
|
244
|
+
* `mark` (an event mark or a decision diamond, `{ row, mark }`), `chip` (`{ row, chip }`), `cell`
|
|
245
|
+
* (`{ row, at }` — the bucket's instant, not an index) or a link ribbon's `link` (`{ key, from, to }`).
|
|
246
|
+
* One function over one variant, as the `popover` / `hover` resolvers are: `ref.match({ … })`. */
|
|
247
|
+
onElementClick?: SubtypeExprOrValue<FunctionType<[PlanElementRefType], NullType>>;
|
|
248
|
+
/** A row with children expanded or collapsed (fires after the in-place swap). */
|
|
181
249
|
onGroupToggle?: SubtypeExprOrValue<FunctionType<[PlanGroupToggleEventType], NullType>>;
|
|
182
250
|
/** Grain segment change (grain is Plan-local state; initial via `grain`). */
|
|
183
251
|
onGrainChange?: SubtypeExprOrValue<FunctionType<[PlanGrainType], NullType>>;
|
|
252
|
+
/**
|
|
253
|
+
* The canvas's interaction state, held by the host (#824) — a
|
|
254
|
+
* `State.bind([Plan.Types.UiState], key, Plan.uiState())` handle.
|
|
255
|
+
*
|
|
256
|
+
* @remarks
|
|
257
|
+
* Bound, the canvas reads it and writes the user's actions back: the
|
|
258
|
+
* selection, the rows folded or opened against what they declare, the
|
|
259
|
+
* charts expanded. Write it from outside to select a row, fold or open one,
|
|
260
|
+
* expand a chart, or — through `focus` — bring a row into view (a deep
|
|
261
|
+
* link, a list beside the canvas); the canvas spends a `focus` request
|
|
262
|
+
* once it has. Unbound, the canvas keeps the state itself and persists the
|
|
263
|
+
* user's folds and charts under its storage key (#813).
|
|
264
|
+
*
|
|
265
|
+
* A write re-renders whatever reads the state, like any `State.bind`: read
|
|
266
|
+
* it in the `Reactive` that renders the canvas only for what depends on it.
|
|
267
|
+
*/
|
|
268
|
+
ui?: SubtypeExprOrValue<PlanUiBindType>;
|
|
184
269
|
/** Sizing (#320), density, gutter width. */
|
|
185
270
|
style?: {
|
|
186
271
|
/** Definite height (`"fill"` fills the parent). */
|
|
@@ -199,12 +284,14 @@ export interface PlanConfig<K extends PlanAxisKindLiteral = PlanAxisKindLiteral>
|
|
|
199
284
|
* @typeParam K - The canvas's axis kind, inferred from `config.axis`; every series must lie within it
|
|
200
285
|
* @param config - The Plan configuration ({@link PlanConfig})
|
|
201
286
|
* @returns An East expression of `UIComponentType`
|
|
287
|
+
* @throws {Error} When `data` is not a keyed source, `series` / `pick` are both or neither given, two series share a
|
|
288
|
+
* key, a bound series list reads another key type than `data`, or the axis states no window and no slice is bound
|
|
202
289
|
*
|
|
203
290
|
* @remarks
|
|
204
291
|
* Window and resolution have no callbacks by design: they are slice writes
|
|
205
|
-
* (`setRange` / `setResolution`) — hosts observe the slice.
|
|
206
|
-
*
|
|
207
|
-
*
|
|
292
|
+
* (`setRange` / `setResolution`) — hosts observe the slice. A change to the
|
|
293
|
+
* data — a verdict, a dropped card, a moved or resized element — is a draft of
|
|
294
|
+
* the `editing` session, applied as one checked batch (#880, #825).
|
|
208
295
|
*/
|
|
209
296
|
export declare function createPlanRoot<K extends PlanAxisKindLiteral = PlanAxisKindLiteral>(config: PlanConfig<K>): ExprType<UIComponentType>;
|
|
210
297
|
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../src/collections/plan/root.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,SAAS,
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../../src/collections/plan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