@elaraai/east-ui 1.0.68 → 1.0.70
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/README.md +2 -2
- package/dist/src/charts/chart/index.d.ts +39 -4
- 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 +61 -3
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/types.d.ts +1 -1
- package/dist/src/charts/spec/types.js +1 -1
- package/dist/src/collections/blend/index.d.ts +1 -1
- package/dist/src/collections/blend/index.d.ts.map +1 -1
- package/dist/src/collections/blend/index.js +1 -1
- package/dist/src/collections/blend/index.js.map +1 -1
- package/dist/src/collections/blend/types.js +1 -1
- package/dist/src/collections/blend/types.js.map +1 -1
- package/dist/src/collections/board/index.d.ts +4 -4
- package/dist/src/collections/board/index.d.ts.map +1 -1
- package/dist/src/collections/board/index.js +1 -1
- package/dist/src/collections/board/index.js.map +1 -1
- package/dist/src/collections/board/types.js +1 -1
- package/dist/src/collections/board/types.js.map +1 -1
- package/dist/src/collections/calendar/index.d.ts +1 -1
- package/dist/src/collections/calendar/index.d.ts.map +1 -1
- package/dist/src/collections/deck/index.d.ts +58 -0
- package/dist/src/collections/deck/index.d.ts.map +1 -1
- package/dist/src/collections/index.d.ts +1 -2
- package/dist/src/collections/index.d.ts.map +1 -1
- package/dist/src/collections/index.js +1 -2
- package/dist/src/collections/index.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +29 -0
- package/dist/src/collections/library/index.d.ts.map +1 -1
- package/dist/src/collections/library/types.d.ts +29 -0
- package/dist/src/collections/library/types.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.d.ts +1 -1
- package/dist/src/collections/matrix/index.d.ts.map +1 -1
- package/dist/src/collections/plan/assemble.d.ts +3732 -0
- package/dist/src/collections/plan/assemble.d.ts.map +1 -0
- package/dist/src/collections/plan/assemble.js +187 -0
- package/dist/src/collections/plan/assemble.js.map +1 -0
- package/dist/src/collections/plan/builders.d.ts +612 -0
- package/dist/src/collections/plan/builders.d.ts.map +1 -0
- package/dist/src/collections/plan/builders.js +543 -0
- package/dist/src/collections/plan/builders.js.map +1 -0
- package/dist/src/collections/plan/data-forms.d.ts +332 -0
- package/dist/src/collections/plan/data-forms.d.ts.map +1 -0
- package/dist/src/collections/plan/data-forms.js +212 -0
- package/dist/src/collections/plan/data-forms.js.map +1 -0
- package/dist/src/collections/plan/factories.d.ts +338 -0
- package/dist/src/collections/plan/factories.d.ts.map +1 -0
- package/dist/src/collections/plan/factories.js +414 -0
- package/dist/src/collections/plan/factories.js.map +1 -0
- package/dist/src/collections/plan/index.d.ts +271 -0
- package/dist/src/collections/plan/index.d.ts.map +1 -0
- package/dist/src/collections/plan/index.js +162 -0
- package/dist/src/collections/plan/index.js.map +1 -0
- package/dist/src/collections/plan/ir.d.ts +3496 -0
- package/dist/src/collections/plan/ir.d.ts.map +1 -0
- package/dist/src/collections/plan/ir.js +83 -0
- package/dist/src/collections/plan/ir.js.map +1 -0
- package/dist/src/collections/plan/pick.d.ts +115 -0
- package/dist/src/collections/plan/pick.d.ts.map +1 -0
- package/dist/src/collections/plan/pick.js +193 -0
- package/dist/src/collections/plan/pick.js.map +1 -0
- package/dist/src/collections/plan/root.d.ts +210 -0
- package/dist/src/collections/plan/root.d.ts.map +1 -0
- package/dist/src/collections/plan/root.js +146 -0
- package/dist/src/collections/plan/root.js.map +1 -0
- package/dist/src/collections/plan/series.d.ts +11890 -0
- package/dist/src/collections/plan/series.d.ts.map +1 -0
- package/dist/src/collections/plan/series.js +412 -0
- package/dist/src/collections/plan/series.js.map +1 -0
- package/dist/src/collections/plan/types.d.ts +9291 -0
- package/dist/src/collections/plan/types.d.ts.map +1 -0
- package/dist/src/collections/plan/types.js +940 -0
- package/dist/src/collections/plan/types.js.map +1 -0
- package/dist/src/collections/roster/index.d.ts +4 -4
- package/dist/src/collections/roster/index.d.ts.map +1 -1
- package/dist/src/collections/roster/index.js +1 -1
- package/dist/src/collections/roster/index.js.map +1 -1
- package/dist/src/collections/roster/types.d.ts +1 -1
- package/dist/src/collections/roster/types.d.ts.map +1 -1
- package/dist/src/collections/roster/types.js +4 -3
- package/dist/src/collections/roster/types.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +70 -2
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +55 -11
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/table/types.d.ts +1 -1
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/component.d.ts +3898 -1339
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +83 -146
- package/dist/src/component.js.map +1 -1
- package/dist/src/container/card/types.d.ts +1 -1
- package/dist/src/container/card/types.d.ts.map +1 -1
- package/dist/src/contracts/approval.d.ts +117 -0
- package/dist/src/contracts/approval.d.ts.map +1 -0
- package/dist/src/contracts/approval.js +105 -0
- package/dist/src/contracts/approval.js.map +1 -0
- package/dist/src/contracts/drag.d.ts +3 -3
- package/dist/src/contracts/drag.d.ts.map +1 -1
- package/dist/src/contracts/drag.js +23 -10
- package/dist/src/contracts/drag.js.map +1 -1
- package/dist/src/contracts/index.d.ts +4 -1
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/index.js +4 -1
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/pick.d.ts +705 -0
- package/dist/src/contracts/pick.d.ts.map +1 -0
- package/dist/src/contracts/pick.js +360 -0
- package/dist/src/contracts/pick.js.map +1 -0
- package/dist/src/contracts/review.d.ts +7 -99
- package/dist/src/contracts/review.d.ts.map +1 -1
- package/dist/src/contracts/review.js +11 -85
- package/dist/src/contracts/review.js.map +1 -1
- package/dist/src/contracts/slice-affordances.d.ts +13 -4
- package/dist/src/contracts/slice-affordances.d.ts.map +1 -1
- package/dist/src/contracts/slice-affordances.js +13 -3
- package/dist/src/contracts/slice-affordances.js.map +1 -1
- package/dist/src/contracts/source.d.ts +432 -0
- package/dist/src/contracts/source.d.ts.map +1 -0
- package/dist/src/contracts/source.js +505 -0
- package/dist/src/contracts/source.js.map +1 -0
- package/dist/src/contracts/states.d.ts +130 -0
- package/dist/src/contracts/states.d.ts.map +1 -1
- package/dist/src/contracts/states.js +122 -0
- package/dist/src/contracts/states.js.map +1 -1
- package/dist/src/contracts/time.d.ts +76 -0
- package/dist/src/contracts/time.d.ts.map +1 -0
- package/dist/src/contracts/time.js +78 -0
- package/dist/src/contracts/time.js.map +1 -0
- package/dist/src/display/trace/types.d.ts +1 -1
- package/dist/src/display/trace/types.d.ts.map +1 -1
- package/dist/src/index.d.ts +10 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +22 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +5 -3
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +4 -3
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/dock/index.d.ts +1 -1
- package/dist/src/layout/dock/index.js +1 -1
- package/dist/src/layout/index.d.ts +0 -1
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +0 -1
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/overlays/drawer/types.d.ts +1 -1
- package/dist/src/overlays/drawer/types.d.ts.map +1 -1
- package/dist/src/pick/index.d.ts +443 -0
- package/dist/src/pick/index.d.ts.map +1 -0
- package/dist/src/pick/index.js +64 -0
- package/dist/src/pick/index.js.map +1 -0
- package/dist/src/pick/panel/index.d.ts +64 -0
- package/dist/src/pick/panel/index.d.ts.map +1 -0
- package/dist/src/pick/panel/index.js +61 -0
- package/dist/src/pick/panel/index.js.map +1 -0
- package/dist/src/platform/slice/index.d.ts +291 -0
- package/dist/src/platform/slice/index.d.ts.map +1 -1
- package/dist/src/platform/slice/index.js +16 -0
- package/dist/src/platform/slice/index.js.map +1 -1
- package/dist/src/runtime/collections/deck.d.ts +29 -0
- package/dist/src/runtime/collections/deck.d.ts.map +1 -1
- package/dist/src/runtime/collections/index.d.ts +1 -2
- package/dist/src/runtime/collections/index.d.ts.map +1 -1
- package/dist/src/runtime/collections/index.js +1 -2
- package/dist/src/runtime/collections/index.js.map +1 -1
- package/dist/src/runtime/collections/library.d.ts +1 -1
- package/dist/src/runtime/collections/library.js +1 -1
- package/dist/src/runtime/collections/plan.d.ts +98 -0
- package/dist/src/runtime/collections/plan.d.ts.map +1 -0
- package/dist/src/runtime/collections/plan.js +98 -0
- package/dist/src/runtime/collections/plan.js.map +1 -0
- package/dist/src/runtime/collections/schematic.d.ts +1 -1
- package/dist/src/runtime/collections/schematic.js +1 -1
- package/dist/src/runtime/collections/table.d.ts +9 -1
- package/dist/src/runtime/collections/table.d.ts.map +1 -1
- package/dist/src/runtime/collections/table.js +1 -7
- package/dist/src/runtime/collections/table.js.map +1 -1
- package/dist/src/runtime/layout/dock.d.ts +2 -2
- package/dist/src/runtime/layout/dock.js +2 -2
- package/dist/src/runtime/layout/index.d.ts +0 -1
- package/dist/src/runtime/layout/index.d.ts.map +1 -1
- package/dist/src/runtime/layout/index.js +0 -1
- package/dist/src/runtime/layout/index.js.map +1 -1
- package/dist/src/shared/plot-gutter.d.ts +6 -23
- package/dist/src/shared/plot-gutter.d.ts.map +1 -1
- package/dist/src/shared/plot-gutter.js +6 -19
- package/dist/src/shared/plot-gutter.js.map +1 -1
- package/dist/src/shared/reify.d.ts +47 -4
- package/dist/src/shared/reify.d.ts.map +1 -1
- package/dist/src/shared/reify.js +62 -4
- package/dist/src/shared/reify.js.map +1 -1
- package/dist/src/slice/breakdown/index.d.ts +27 -0
- package/dist/src/slice/breakdown/index.d.ts.map +1 -1
- package/dist/src/slice/breakdown/types.d.ts +27 -0
- package/dist/src/slice/breakdown/types.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.d.ts +54 -0
- package/dist/src/slice/cohort/index.d.ts.map +1 -1
- package/dist/src/slice/cohort/types.d.ts +27 -0
- package/dist/src/slice/cohort/types.d.ts.map +1 -1
- package/dist/src/slice/filter/index.d.ts +27 -0
- package/dist/src/slice/filter/index.d.ts.map +1 -1
- package/dist/src/slice/filter/types.d.ts +27 -0
- package/dist/src/slice/filter/types.d.ts.map +1 -1
- package/dist/src/slice/index.d.ts +405 -0
- package/dist/src/slice/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.d.ts +27 -0
- package/dist/src/slice/legend/index.d.ts.map +1 -1
- package/dist/src/slice/legend/types.d.ts +27 -0
- package/dist/src/slice/legend/types.d.ts.map +1 -1
- package/dist/src/slice/range/index.d.ts +60 -18
- package/dist/src/slice/range/index.d.ts.map +1 -1
- package/dist/src/slice/range/index.js +9 -1
- package/dist/src/slice/range/index.js.map +1 -1
- package/dist/src/slice/range/types.d.ts +63 -22
- package/dist/src/slice/range/types.d.ts.map +1 -1
- package/dist/src/slice/range/types.js +12 -5
- package/dist/src/slice/range/types.js.map +1 -1
- package/dist/src/slice/search/index.d.ts +27 -0
- package/dist/src/slice/search/index.d.ts.map +1 -1
- package/dist/src/slice/search/types.d.ts +27 -0
- package/dist/src/slice/search/types.d.ts.map +1 -1
- package/dist/src/slice/summary/index.d.ts +27 -0
- package/dist/src/slice/summary/index.d.ts.map +1 -1
- package/dist/src/slice/summary/types.d.ts +27 -0
- package/dist/src/slice/summary/types.d.ts.map +1 -1
- package/dist/src/style/content.d.ts +4 -6
- package/dist/src/style/content.d.ts.map +1 -1
- package/dist/src/style/content.js +4 -6
- package/dist/src/style/content.js.map +1 -1
- package/dist/src/style/scheme.js +1 -1
- package/dist/src/style/scheme.js.map +1 -1
- package/dist/test/collections/index.d.ts +2 -2
- package/dist/test/collections/index.d.ts.map +1 -1
- package/dist/test/collections/index.js +2 -2
- package/dist/test/collections/index.js.map +1 -1
- package/dist/test/collections/paged-source.examples.d.ts +9 -0
- package/dist/test/collections/paged-source.examples.d.ts.map +1 -0
- package/dist/test/collections/paged-source.examples.js +136 -0
- package/dist/test/collections/paged-source.examples.js.map +1 -0
- package/dist/test/collections/plan.examples.d.ts +125 -0
- package/dist/test/collections/plan.examples.d.ts.map +1 -0
- package/dist/test/collections/plan.examples.js +2939 -0
- package/dist/test/collections/plan.examples.js.map +1 -0
- package/dist/test/contracts/pick.examples.d.ts +6 -0
- package/dist/test/contracts/pick.examples.d.ts.map +1 -0
- package/dist/test/contracts/pick.examples.js +89 -0
- package/dist/test/contracts/pick.examples.js.map +1 -0
- package/dist/test/layout/dock.examples.d.ts +4 -4
- package/dist/test/layout/dock.examples.d.ts.map +1 -1
- package/dist/test/layout/dock.examples.js +34 -16
- package/dist/test/layout/dock.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +2 -1
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +67 -9
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/package.json +3 -3
- package/dist/src/collections/gantt/index.d.ts +0 -377
- package/dist/src/collections/gantt/index.d.ts.map +0 -1
- package/dist/src/collections/gantt/index.js +0 -896
- package/dist/src/collections/gantt/index.js.map +0 -1
- package/dist/src/collections/gantt/types.d.ts +0 -353
- package/dist/src/collections/gantt/types.d.ts.map +0 -1
- package/dist/src/collections/gantt/types.js +0 -207
- package/dist/src/collections/gantt/types.js.map +0 -1
- package/dist/src/collections/planner/index.d.ts +0 -624
- package/dist/src/collections/planner/index.d.ts.map +0 -1
- package/dist/src/collections/planner/index.js +0 -941
- package/dist/src/collections/planner/index.js.map +0 -1
- package/dist/src/collections/planner/types.d.ts +0 -615
- package/dist/src/collections/planner/types.d.ts.map +0 -1
- package/dist/src/collections/planner/types.js +0 -423
- package/dist/src/collections/planner/types.js.map +0 -1
- package/dist/src/layout/aligned-stack/index.d.ts +0 -101
- package/dist/src/layout/aligned-stack/index.d.ts.map +0 -1
- package/dist/src/layout/aligned-stack/index.js +0 -105
- package/dist/src/layout/aligned-stack/index.js.map +0 -1
- package/dist/src/layout/aligned-stack/types.d.ts +0 -50
- package/dist/src/layout/aligned-stack/types.d.ts.map +0 -1
- package/dist/src/layout/aligned-stack/types.js +0 -24
- package/dist/src/layout/aligned-stack/types.js.map +0 -1
- package/dist/src/runtime/collections/gantt.d.ts +0 -67
- package/dist/src/runtime/collections/gantt.d.ts.map +0 -1
- package/dist/src/runtime/collections/gantt.js +0 -58
- package/dist/src/runtime/collections/gantt.js.map +0 -1
- package/dist/src/runtime/collections/planner.d.ts +0 -80
- package/dist/src/runtime/collections/planner.d.ts.map +0 -1
- package/dist/src/runtime/collections/planner.js +0 -76
- package/dist/src/runtime/collections/planner.js.map +0 -1
- package/dist/src/runtime/layout/aligned-stack.d.ts +0 -38
- package/dist/src/runtime/layout/aligned-stack.d.ts.map +0 -1
- package/dist/src/runtime/layout/aligned-stack.js +0 -36
- package/dist/src/runtime/layout/aligned-stack.js.map +0 -1
- package/dist/test/collections/gantt.examples.d.ts +0 -33
- package/dist/test/collections/gantt.examples.d.ts.map +0 -1
- package/dist/test/collections/gantt.examples.js +0 -359
- package/dist/test/collections/gantt.examples.js.map +0 -1
- package/dist/test/collections/planner.examples.d.ts +0 -47
- package/dist/test/collections/planner.examples.d.ts.map +0 -1
- package/dist/test/collections/planner.examples.js +0 -546
- package/dist/test/collections/planner.examples.js.map +0 -1
- package/dist/test/layout/aligned-stack.examples.d.ts +0 -25
- package/dist/test/layout/aligned-stack.examples.d.ts.map +0 -1
- package/dist/test/layout/aligned-stack.examples.js +0 -294
- package/dist/test/layout/aligned-stack.examples.js.map +0 -1
|
@@ -13,7 +13,7 @@ import { container } from "../combinators.js";
|
|
|
13
13
|
* reflow to reclaim the freed space; it never overlays. The in-flow,
|
|
14
14
|
* collapse-to-rail sibling of `<Expandable>` (which instead fills the app
|
|
15
15
|
* container). Reach for it when a source panel should tuck away beside the
|
|
16
|
-
* thing it feeds — a `<Library>` drag-source beside a `<
|
|
16
|
+
* thing it feeds — a `<Library>` drag-source beside a `<Plan>` drop-target,
|
|
17
17
|
* a filter rail beside a board — so the board grows while the panel is stowed
|
|
18
18
|
* and the drop-target is never covered.
|
|
19
19
|
*
|
|
@@ -31,7 +31,7 @@ import { container } from "../combinators.js";
|
|
|
31
31
|
* ```tsx
|
|
32
32
|
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
33
33
|
* import { East } from "@elaraai/east";
|
|
34
|
-
* import { Box, Dock, HStack,
|
|
34
|
+
* import { Box, Dock, HStack, Text, UIComponentType } from "@elaraai/east-ui";
|
|
35
35
|
*
|
|
36
36
|
* const board = East.function([], UIComponentType, _$ => (
|
|
37
37
|
* <HStack gap="4" width="100%">
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
export { Box } from "./box.js";
|
|
7
7
|
export { Flex } from "./flex.js";
|
|
8
8
|
export { Stack, VStack, HStack } from "./stack.js";
|
|
9
|
-
export { AlignedStack } from "./aligned-stack.js";
|
|
10
9
|
export { ScrollArea } from "./scroll-area.js";
|
|
11
10
|
export { Sticky } from "./sticky.js";
|
|
12
11
|
export { Expandable } from "./expandable.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8CAA8C;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8CAA8C;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
export { Box } from "./box.js";
|
|
7
7
|
export { Flex } from "./flex.js";
|
|
8
8
|
export { Stack, VStack, HStack } from "./stack.js";
|
|
9
|
-
export { AlignedStack } from "./aligned-stack.js";
|
|
10
9
|
export { ScrollArea } from "./scroll-area.js";
|
|
11
10
|
export { Sticky } from "./sticky.js";
|
|
12
11
|
export { Expandable } from "./expandable.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtime/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8CAA8C;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtime/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,8CAA8C;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -6,22 +6,21 @@
|
|
|
6
6
|
* Shared **plot gutter** primitive (#147).
|
|
7
7
|
*
|
|
8
8
|
* A horizontal inset `{ left, right }` for axis/lane components (Chart, Trace,
|
|
9
|
-
* Calendar, Matrix, Table
|
|
9
|
+
* Calendar, Matrix, Table) so their data lanes occupy exactly
|
|
10
10
|
* `[left, W − right]` and line up on a common x when stacked. All chrome (axes,
|
|
11
11
|
* frozen label columns, week/row headers) renders **within** the gutter.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* prop overrides the inherited value (own-prop-over-context, like density).
|
|
12
|
+
* For a temporally-aligned composite the `Plan` canvas owns the whole
|
|
13
|
+
* alignment problem (one shared axis over heterogeneous rows) — the gutter
|
|
14
|
+
* prop remains for hand-stacked layouts.
|
|
16
15
|
*
|
|
17
16
|
* **px-only for cross-component alignment.** `StringType` admits any CSS length,
|
|
18
17
|
* but pixel-exact alignment only holds if all gutters resolve to the same px
|
|
19
|
-
* (Chart margins are numeric px). Use px values
|
|
18
|
+
* (Chart margins are numeric px). Use px values; `auto` is measured
|
|
20
19
|
* and therefore inherently px.
|
|
21
20
|
*
|
|
22
21
|
* @packageDocumentation
|
|
23
22
|
*/
|
|
24
|
-
import { type SubtypeExprOrValue, OptionType, StringType, StructType
|
|
23
|
+
import { type SubtypeExprOrValue, OptionType, StringType, StructType } from "@elaraai/east";
|
|
25
24
|
/**
|
|
26
25
|
* The per-component plot-gutter value — a `{ left, right }` horizontal inset.
|
|
27
26
|
* Both sides optional so a caller can pin just one edge.
|
|
@@ -46,20 +45,4 @@ export interface PlotGutter {
|
|
|
46
45
|
/** Right inset (CSS length, px recommended); the data lane ends at `W − right`. */
|
|
47
46
|
right?: SubtypeExprOrValue<StringType>;
|
|
48
47
|
}
|
|
49
|
-
/**
|
|
50
|
-
* The `<AlignedStack>` gutter mode — either an explicit `fixed` {@link PlotGutterType}
|
|
51
|
-
* imposed on every child, or `auto` (measure the max gutter the children need and
|
|
52
|
-
* impose that).
|
|
53
|
-
*
|
|
54
|
-
* @property auto - Measure each child's natural gutter, impose the max on all
|
|
55
|
-
* @property fixed - Impose this explicit `{ left, right }` on every child
|
|
56
|
-
*/
|
|
57
|
-
export declare const AlignedGutterType: VariantType<{
|
|
58
|
-
readonly auto: NullType;
|
|
59
|
-
readonly fixed: StructType<{
|
|
60
|
-
readonly left: OptionType<StringType>;
|
|
61
|
-
readonly right: OptionType<StringType>;
|
|
62
|
-
}>;
|
|
63
|
-
}>;
|
|
64
|
-
export type AlignedGutterType = typeof AlignedGutterType;
|
|
65
48
|
//# sourceMappingURL=plot-gutter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot-gutter.d.ts","sourceRoot":"","sources":["../../../src/shared/plot-gutter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"plot-gutter.d.ts","sourceRoot":"","sources":["../../../src/shared/plot-gutter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,cAAc;;;EAGzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACvB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACtC,mFAAmF;IACnF,KAAK,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;CAC1C"}
|
|
@@ -6,22 +6,21 @@
|
|
|
6
6
|
* Shared **plot gutter** primitive (#147).
|
|
7
7
|
*
|
|
8
8
|
* A horizontal inset `{ left, right }` for axis/lane components (Chart, Trace,
|
|
9
|
-
* Calendar, Matrix, Table
|
|
9
|
+
* Calendar, Matrix, Table) so their data lanes occupy exactly
|
|
10
10
|
* `[left, W − right]` and line up on a common x when stacked. All chrome (axes,
|
|
11
11
|
* frozen label columns, week/row headers) renders **within** the gutter.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* prop overrides the inherited value (own-prop-over-context, like density).
|
|
12
|
+
* For a temporally-aligned composite the `Plan` canvas owns the whole
|
|
13
|
+
* alignment problem (one shared axis over heterogeneous rows) — the gutter
|
|
14
|
+
* prop remains for hand-stacked layouts.
|
|
16
15
|
*
|
|
17
16
|
* **px-only for cross-component alignment.** `StringType` admits any CSS length,
|
|
18
17
|
* but pixel-exact alignment only holds if all gutters resolve to the same px
|
|
19
|
-
* (Chart margins are numeric px). Use px values
|
|
18
|
+
* (Chart margins are numeric px). Use px values; `auto` is measured
|
|
20
19
|
* and therefore inherently px.
|
|
21
20
|
*
|
|
22
21
|
* @packageDocumentation
|
|
23
22
|
*/
|
|
24
|
-
import { OptionType, StringType, StructType,
|
|
23
|
+
import { OptionType, StringType, StructType, } from "@elaraai/east";
|
|
25
24
|
/**
|
|
26
25
|
* The per-component plot-gutter value — a `{ left, right }` horizontal inset.
|
|
27
26
|
* Both sides optional so a caller can pin just one edge.
|
|
@@ -33,16 +32,4 @@ export const PlotGutterType = StructType({
|
|
|
33
32
|
left: OptionType(StringType),
|
|
34
33
|
right: OptionType(StringType),
|
|
35
34
|
});
|
|
36
|
-
/**
|
|
37
|
-
* The `<AlignedStack>` gutter mode — either an explicit `fixed` {@link PlotGutterType}
|
|
38
|
-
* imposed on every child, or `auto` (measure the max gutter the children need and
|
|
39
|
-
* impose that).
|
|
40
|
-
*
|
|
41
|
-
* @property auto - Measure each child's natural gutter, impose the max on all
|
|
42
|
-
* @property fixed - Impose this explicit `{ left, right }` on every child
|
|
43
|
-
*/
|
|
44
|
-
export const AlignedGutterType = VariantType({
|
|
45
|
-
auto: NullType,
|
|
46
|
-
fixed: PlotGutterType,
|
|
47
|
-
});
|
|
48
35
|
//# sourceMappingURL=plot-gutter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot-gutter.js","sourceRoot":"","sources":["../../../src/shared/plot-gutter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH
|
|
1
|
+
{"version":3,"file":"plot-gutter.js","sourceRoot":"","sources":["../../../src/shared/plot-gutter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAEH,UAAU,EACV,UAAU,EACV,UAAU,GACb,MAAM,eAAe,CAAC;AAEvB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACrC,IAAI,EAAG,UAAU,CAAC,UAAU,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
*
|
|
22
22
|
* @packageDocumentation
|
|
23
23
|
*/
|
|
24
|
-
import {
|
|
24
|
+
import { ArrayType, type BlockBuilder, type DictType, type EastType, type ExprType, type FunctionType, StringType, type StructType, type SubtypeExprOrValue, type TypeOf } from "@elaraai/east";
|
|
25
25
|
/**
|
|
26
26
|
* Reifies an accessor lambda into an East function, inferring the output
|
|
27
27
|
* type from the lambda's expanded result (single expansion via
|
|
28
28
|
* `East.function`'s inference overload).
|
|
29
29
|
*
|
|
30
|
-
* Use for accessors whose output type is caller-determined (Table
|
|
31
|
-
*
|
|
30
|
+
* Use for accessors whose output type is caller-determined (Table column
|
|
31
|
+
* `value`, Chart encodings). For mappers with a fixed output type,
|
|
32
32
|
* call `East.function(inputs, OutType, …)` directly — no inference needed.
|
|
33
33
|
*
|
|
34
34
|
* @typeParam I - The concrete East parameter types
|
|
@@ -62,7 +62,7 @@ export declare function mapRows<T extends EastType>(rows: ExprType<ArrayType<Str
|
|
|
62
62
|
/**
|
|
63
63
|
* `mapRows` for row mappers whose body needs a block builder — per-row
|
|
64
64
|
* normalizations that declare `$.let` bindings or emit statements (Matrix,
|
|
65
|
-
*
|
|
65
|
+
* Library row construction).
|
|
66
66
|
*
|
|
67
67
|
* @typeParam T - The fixed East element type the mapper produces
|
|
68
68
|
* @param rows - The caller's rows array expression
|
|
@@ -73,4 +73,47 @@ export declare function mapRows<T extends EastType>(rows: ExprType<ArrayType<Str
|
|
|
73
73
|
* @internal
|
|
74
74
|
*/
|
|
75
75
|
export declare function mapRowsBlock<T extends EastType>(rows: ExprType<ArrayType<StructType>>, outType: T, body: ($: BlockBuilder<T>, row: ExprType<StructType>) => SubtypeExprOrValue<T>): ExprType<ArrayType<T>>;
|
|
76
|
+
/**
|
|
77
|
+
* `mapRowsBlock` for per-row constructors that produce a **subtree** — an
|
|
78
|
+
* array of output elements per row — rather than exactly one element: the
|
|
79
|
+
* reified body's results are concat-flattened eagerly in a single pass, so
|
|
80
|
+
* no intermediate array-of-arrays is materialized (Plan row construction,
|
|
81
|
+
* where one data row expands to a parent plus its re-parented children).
|
|
82
|
+
*
|
|
83
|
+
* @typeParam T - The fixed East element type of the flattened result
|
|
84
|
+
* @param rows - The caller's rows array expression
|
|
85
|
+
* @param outType - The fixed East output ELEMENT type (the helper flattens `ArrayType(outType)` subtrees)
|
|
86
|
+
* @param body - Per-row subtree constructor; expanded exactly once against a typed placeholder row
|
|
87
|
+
* @returns The eagerly-flattened array expression
|
|
88
|
+
*
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
export declare function flatMapRowsBlock<T extends EastType>(rows: ExprType<ArrayType<StructType>>, outType: T, body: ($: BlockBuilder<ArrayType<NoInfer<T>>>, row: ExprType<StructType>) => SubtypeExprOrValue<ArrayType<NoInfer<T>>>): ExprType<ArrayType<T>>;
|
|
92
|
+
/**
|
|
93
|
+
* `flatMapRowsBlock` for per-ENTRY constructors that produce a KEYED subtree —
|
|
94
|
+
* a `Dict` of output elements per source entry — folded into one dictionary
|
|
95
|
+
* (Plan row construction, where the source is a keyed collection and the
|
|
96
|
+
* canvas rows inherit its keys, so duplicates are unconstructable).
|
|
97
|
+
*
|
|
98
|
+
* @remarks
|
|
99
|
+
* The body receives the entry's `(value, key)`, because a keyed dataset does
|
|
100
|
+
* not repeat its key inside the value — the key is where a row's identity
|
|
101
|
+
* comes from, not a field to re-derive.
|
|
102
|
+
*
|
|
103
|
+
* The accumulator is folded with `unionInPlace`, never with the pure `union`:
|
|
104
|
+
* `union` copies the whole B-tree per step, so a 200-entry window would rebuild
|
|
105
|
+
* the dictionary 200 times. `reduce` threads ONE accumulator and each entry's
|
|
106
|
+
* subtree is merged into it — the same shape `groupToArrays` uses for arrays.
|
|
107
|
+
*
|
|
108
|
+
* @typeParam K - The output dictionary's key type
|
|
109
|
+
* @typeParam V - The output dictionary's value type
|
|
110
|
+
* @param entries - The caller's keyed source expression
|
|
111
|
+
* @param dictType - The fixed East output dictionary type
|
|
112
|
+
* @param merge - Conflict policy when two entries produce the same key, as `(existing, incoming, key) => kept`
|
|
113
|
+
* @param body - Per-entry subtree constructor; expanded exactly once against typed placeholders
|
|
114
|
+
* @returns The folded dictionary expression
|
|
115
|
+
*
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
export declare function foldEntriesToDict<K extends EastType, V extends EastType>(entries: ExprType<DictType<StringType, StructType>>, dictType: DictType<K, V>, merge: SubtypeExprOrValue<FunctionType<[NoInfer<V>, NoInfer<V>, NoInfer<K>], NoInfer<V>>>, body: ($: BlockBuilder<DictType<NoInfer<K>, NoInfer<V>>>, value: ExprType<StructType>, key: ExprType<StringType>) => SubtypeExprOrValue<DictType<NoInfer<K>, NoInfer<V>>>): ExprType<DictType<K, V>>;
|
|
76
119
|
//# sourceMappingURL=reify.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reify.d.ts","sourceRoot":"","sources":["../../../src/shared/reify.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"reify.d.ts","sourceRoot":"","sources":["../../../src/shared/reify.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACH,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,QAAQ,EAEb,KAAK,QAAQ,EAEb,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,UAAU,EACV,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,MAAM,EACd,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,CAAC,SAAS,QAAQ,EAAE,EAAE,CAAC,EACvD,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EACd,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,KAAK,CAAC,GAC7D,QAAQ,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAOtC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,CAA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AQ,CAAC,CAAC,EAAE,CAAC,CAAC,EAIxB,KAAK,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EACzF,IAAI,EAAE,CACF,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EACjD,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,GAAG,EAAE,QAAQ,CAAC,UAAU,CAAC,KACxB,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1D,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAW1B"}
|
package/dist/src/shared/reify.js
CHANGED
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
*
|
|
22
22
|
* @packageDocumentation
|
|
23
23
|
*/
|
|
24
|
-
import { East, Expr, } from "@elaraai/east";
|
|
24
|
+
import { ArrayType, East, Expr, StringType, } from "@elaraai/east";
|
|
25
25
|
/**
|
|
26
26
|
* Reifies an accessor lambda into an East function, inferring the output
|
|
27
27
|
* type from the lambda's expanded result (single expansion via
|
|
28
28
|
* `East.function`'s inference overload).
|
|
29
29
|
*
|
|
30
|
-
* Use for accessors whose output type is caller-determined (Table
|
|
31
|
-
*
|
|
30
|
+
* Use for accessors whose output type is caller-determined (Table column
|
|
31
|
+
* `value`, Chart encodings). For mappers with a fixed output type,
|
|
32
32
|
* call `East.function(inputs, OutType, …)` directly — no inference needed.
|
|
33
33
|
*
|
|
34
34
|
* @typeParam I - The concrete East parameter types
|
|
@@ -67,7 +67,7 @@ export function mapRows(rows, outType, body) {
|
|
|
67
67
|
/**
|
|
68
68
|
* `mapRows` for row mappers whose body needs a block builder — per-row
|
|
69
69
|
* normalizations that declare `$.let` bindings or emit statements (Matrix,
|
|
70
|
-
*
|
|
70
|
+
* Library row construction).
|
|
71
71
|
*
|
|
72
72
|
* @typeParam T - The fixed East element type the mapper produces
|
|
73
73
|
* @param rows - The caller's rows array expression
|
|
@@ -82,4 +82,62 @@ export function mapRowsBlock(rows, outType, body) {
|
|
|
82
82
|
const fn = East.function([rowType], outType, ($, row) => body($, row));
|
|
83
83
|
return rows.map((_$, row) => fn(row));
|
|
84
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* `mapRowsBlock` for per-row constructors that produce a **subtree** — an
|
|
87
|
+
* array of output elements per row — rather than exactly one element: the
|
|
88
|
+
* reified body's results are concat-flattened eagerly in a single pass, so
|
|
89
|
+
* no intermediate array-of-arrays is materialized (Plan row construction,
|
|
90
|
+
* where one data row expands to a parent plus its re-parented children).
|
|
91
|
+
*
|
|
92
|
+
* @typeParam T - The fixed East element type of the flattened result
|
|
93
|
+
* @param rows - The caller's rows array expression
|
|
94
|
+
* @param outType - The fixed East output ELEMENT type (the helper flattens `ArrayType(outType)` subtrees)
|
|
95
|
+
* @param body - Per-row subtree constructor; expanded exactly once against a typed placeholder row
|
|
96
|
+
* @returns The eagerly-flattened array expression
|
|
97
|
+
*
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
export function flatMapRowsBlock(rows, outType, body) {
|
|
101
|
+
const rowType = Expr.type(rows).value;
|
|
102
|
+
const fn = East.function([rowType], ArrayType(outType), ($, row) => body($, row));
|
|
103
|
+
return rows.reduce((_$, acc, row) => acc.concat(fn(row)), East.value([], ArrayType(outType)));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* `flatMapRowsBlock` for per-ENTRY constructors that produce a KEYED subtree —
|
|
107
|
+
* a `Dict` of output elements per source entry — folded into one dictionary
|
|
108
|
+
* (Plan row construction, where the source is a keyed collection and the
|
|
109
|
+
* canvas rows inherit its keys, so duplicates are unconstructable).
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* The body receives the entry's `(value, key)`, because a keyed dataset does
|
|
113
|
+
* not repeat its key inside the value — the key is where a row's identity
|
|
114
|
+
* comes from, not a field to re-derive.
|
|
115
|
+
*
|
|
116
|
+
* The accumulator is folded with `unionInPlace`, never with the pure `union`:
|
|
117
|
+
* `union` copies the whole B-tree per step, so a 200-entry window would rebuild
|
|
118
|
+
* the dictionary 200 times. `reduce` threads ONE accumulator and each entry's
|
|
119
|
+
* subtree is merged into it — the same shape `groupToArrays` uses for arrays.
|
|
120
|
+
*
|
|
121
|
+
* @typeParam K - The output dictionary's key type
|
|
122
|
+
* @typeParam V - The output dictionary's value type
|
|
123
|
+
* @param entries - The caller's keyed source expression
|
|
124
|
+
* @param dictType - The fixed East output dictionary type
|
|
125
|
+
* @param merge - Conflict policy when two entries produce the same key, as `(existing, incoming, key) => kept`
|
|
126
|
+
* @param body - Per-entry subtree constructor; expanded exactly once against typed placeholders
|
|
127
|
+
* @returns The folded dictionary expression
|
|
128
|
+
*
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
export function foldEntriesToDict(entries, dictType,
|
|
132
|
+
// `dictType` is the ONLY inference site: the loose `SubtypeExprOrValue`
|
|
133
|
+
// faces below would otherwise widen `V` to the subtype form and the result
|
|
134
|
+
// would stop being assignable to the exact collection type.
|
|
135
|
+
merge, body) {
|
|
136
|
+
const valueType = Expr.type(entries).value;
|
|
137
|
+
const fn = East.function([valueType, StringType], dictType, ($, value, key) => body($, value, key));
|
|
138
|
+
return entries.reduce(($, acc, value, key) => {
|
|
139
|
+
$(acc.unionInPlace(fn(value, key), merge));
|
|
140
|
+
return acc;
|
|
141
|
+
}, East.value(new Map(), dictType));
|
|
142
|
+
}
|
|
85
143
|
//# sourceMappingURL=reify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reify.js","sourceRoot":"","sources":["../../../src/shared/reify.ts"],"names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KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,CAAiC,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IAC5E,OAAO,OAAO,CAAC,MAAM,CACjB,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QACnB,CAAC,CAAE,GAAgC,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACzE,OAAO,GAAG,CAAC;IACf,CAAC,EACD,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,EAAE,QAAQ,CAAC,CACK,CAAC;AAC7C,CAAC"}
|
|
@@ -194,6 +194,15 @@ export declare const SliceBreakdown: {
|
|
|
194
194
|
readonly search: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
195
195
|
readonly visible: import("@elaraai/east").OptionType<import("@elaraai/east").SetType<import("@elaraai/east").StringType>>;
|
|
196
196
|
readonly selectedIndex: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
197
|
+
readonly resolution: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
198
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
199
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
200
|
+
readonly day: import("@elaraai/east").NullType;
|
|
201
|
+
readonly week: import("@elaraai/east").NullType;
|
|
202
|
+
readonly month: import("@elaraai/east").NullType;
|
|
203
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
204
|
+
readonly year: import("@elaraai/east").NullType;
|
|
205
|
+
}>>;
|
|
197
206
|
}>>;
|
|
198
207
|
readonly write: import("@elaraai/east").FunctionType<[import("@elaraai/east").StructType<{
|
|
199
208
|
readonly range: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
@@ -343,6 +352,15 @@ export declare const SliceBreakdown: {
|
|
|
343
352
|
readonly search: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
344
353
|
readonly visible: import("@elaraai/east").OptionType<import("@elaraai/east").SetType<import("@elaraai/east").StringType>>;
|
|
345
354
|
readonly selectedIndex: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
355
|
+
readonly resolution: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
356
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
357
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
358
|
+
readonly day: import("@elaraai/east").NullType;
|
|
359
|
+
readonly week: import("@elaraai/east").NullType;
|
|
360
|
+
readonly month: import("@elaraai/east").NullType;
|
|
361
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
362
|
+
readonly year: import("@elaraai/east").NullType;
|
|
363
|
+
}>>;
|
|
346
364
|
}>], import("@elaraai/east").NullType>;
|
|
347
365
|
readonly setRange: import("@elaraai/east").FunctionType<[import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
348
366
|
readonly datetime: import("@elaraai/east").StructType<{
|
|
@@ -666,6 +684,15 @@ export declare const SliceBreakdown: {
|
|
|
666
684
|
readonly count: import("@elaraai/east").IntegerType;
|
|
667
685
|
readonly color: import("@elaraai/east").StringType;
|
|
668
686
|
}>>>;
|
|
687
|
+
readonly setResolution: import("@elaraai/east").FunctionType<[import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
688
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
689
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
690
|
+
readonly day: import("@elaraai/east").NullType;
|
|
691
|
+
readonly week: import("@elaraai/east").NullType;
|
|
692
|
+
readonly month: import("@elaraai/east").NullType;
|
|
693
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
694
|
+
readonly year: import("@elaraai/east").NullType;
|
|
695
|
+
}>>], import("@elaraai/east").NullType>;
|
|
669
696
|
}>;
|
|
670
697
|
readonly density: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
671
698
|
readonly compact: import("@elaraai/east").NullType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slice/breakdown/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAK1B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD,qCAAqC;AACrC,MAAM,WAAW,qBAAqB;IAClC,2CAA2C;IAC3C,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,yEAAyE;IACzE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,iBAAS,oBAAoB,CACzB,OAAO,EAAE,qBAAqB,GAC/B,QAAQ,CAAC,eAAe,CAAC,CAK3B;AAED,qDAAqD;AACrD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slice/breakdown/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAK1B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAEtD,qCAAqC;AACrC,MAAM,WAAW,qBAAqB;IAClC,2CAA2C;IAC3C,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,yEAAyE;IACzE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,iBAAS,oBAAoB,CACzB,OAAO,EAAE,qBAAqB,GAC/B,QAAQ,CAAC,eAAe,CAAC,CAK3B;AAED,qDAAqD;AACrD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjB,CAAC"}
|
|
@@ -162,6 +162,15 @@ export declare const SliceBreakdownPickerType: StructType<{
|
|
|
162
162
|
readonly search: OptionType<import("@elaraai/east").StringType>;
|
|
163
163
|
readonly visible: OptionType<import("@elaraai/east").SetType<import("@elaraai/east").StringType>>;
|
|
164
164
|
readonly selectedIndex: OptionType<import("@elaraai/east").IntegerType>;
|
|
165
|
+
readonly resolution: OptionType<import("@elaraai/east").VariantType<{
|
|
166
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
167
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
168
|
+
readonly day: import("@elaraai/east").NullType;
|
|
169
|
+
readonly week: import("@elaraai/east").NullType;
|
|
170
|
+
readonly month: import("@elaraai/east").NullType;
|
|
171
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
172
|
+
readonly year: import("@elaraai/east").NullType;
|
|
173
|
+
}>>;
|
|
165
174
|
}>>;
|
|
166
175
|
readonly write: import("@elaraai/east").FunctionType<[StructType<{
|
|
167
176
|
readonly range: OptionType<import("@elaraai/east").VariantType<{
|
|
@@ -311,6 +320,15 @@ export declare const SliceBreakdownPickerType: StructType<{
|
|
|
311
320
|
readonly search: OptionType<import("@elaraai/east").StringType>;
|
|
312
321
|
readonly visible: OptionType<import("@elaraai/east").SetType<import("@elaraai/east").StringType>>;
|
|
313
322
|
readonly selectedIndex: OptionType<import("@elaraai/east").IntegerType>;
|
|
323
|
+
readonly resolution: OptionType<import("@elaraai/east").VariantType<{
|
|
324
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
325
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
326
|
+
readonly day: import("@elaraai/east").NullType;
|
|
327
|
+
readonly week: import("@elaraai/east").NullType;
|
|
328
|
+
readonly month: import("@elaraai/east").NullType;
|
|
329
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
330
|
+
readonly year: import("@elaraai/east").NullType;
|
|
331
|
+
}>>;
|
|
314
332
|
}>], import("@elaraai/east").NullType>;
|
|
315
333
|
readonly setRange: import("@elaraai/east").FunctionType<[OptionType<import("@elaraai/east").VariantType<{
|
|
316
334
|
readonly datetime: StructType<{
|
|
@@ -634,6 +652,15 @@ export declare const SliceBreakdownPickerType: StructType<{
|
|
|
634
652
|
readonly count: import("@elaraai/east").IntegerType;
|
|
635
653
|
readonly color: import("@elaraai/east").StringType;
|
|
636
654
|
}>>>;
|
|
655
|
+
readonly setResolution: import("@elaraai/east").FunctionType<[OptionType<import("@elaraai/east").VariantType<{
|
|
656
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
657
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
658
|
+
readonly day: import("@elaraai/east").NullType;
|
|
659
|
+
readonly week: import("@elaraai/east").NullType;
|
|
660
|
+
readonly month: import("@elaraai/east").NullType;
|
|
661
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
662
|
+
readonly year: import("@elaraai/east").NullType;
|
|
663
|
+
}>>], import("@elaraai/east").NullType>;
|
|
637
664
|
}>;
|
|
638
665
|
readonly density: OptionType<import("@elaraai/east").VariantType<{
|
|
639
666
|
readonly compact: import("@elaraai/east").NullType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/slice/breakdown/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGvD;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/slice/breakdown/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGvD;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC"}
|
|
@@ -230,6 +230,15 @@ export declare const SliceCohort: {
|
|
|
230
230
|
readonly search: import("@elaraai/east").OptionType<StringType>;
|
|
231
231
|
readonly visible: import("@elaraai/east").OptionType<import("@elaraai/east").SetType<StringType>>;
|
|
232
232
|
readonly selectedIndex: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
233
|
+
readonly resolution: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
234
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
235
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
236
|
+
readonly day: import("@elaraai/east").NullType;
|
|
237
|
+
readonly week: import("@elaraai/east").NullType;
|
|
238
|
+
readonly month: import("@elaraai/east").NullType;
|
|
239
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
240
|
+
readonly year: import("@elaraai/east").NullType;
|
|
241
|
+
}>>;
|
|
233
242
|
}>>;
|
|
234
243
|
readonly write: import("@elaraai/east").FunctionType<[import("@elaraai/east").StructType<{
|
|
235
244
|
readonly range: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
@@ -379,6 +388,15 @@ export declare const SliceCohort: {
|
|
|
379
388
|
readonly search: import("@elaraai/east").OptionType<StringType>;
|
|
380
389
|
readonly visible: import("@elaraai/east").OptionType<import("@elaraai/east").SetType<StringType>>;
|
|
381
390
|
readonly selectedIndex: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
391
|
+
readonly resolution: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
392
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
393
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
394
|
+
readonly day: import("@elaraai/east").NullType;
|
|
395
|
+
readonly week: import("@elaraai/east").NullType;
|
|
396
|
+
readonly month: import("@elaraai/east").NullType;
|
|
397
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
398
|
+
readonly year: import("@elaraai/east").NullType;
|
|
399
|
+
}>>;
|
|
382
400
|
}>], import("@elaraai/east").NullType>;
|
|
383
401
|
readonly setRange: import("@elaraai/east").FunctionType<[import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
384
402
|
readonly datetime: import("@elaraai/east").StructType<{
|
|
@@ -702,6 +720,15 @@ export declare const SliceCohort: {
|
|
|
702
720
|
readonly count: import("@elaraai/east").IntegerType;
|
|
703
721
|
readonly color: StringType;
|
|
704
722
|
}>>>;
|
|
723
|
+
readonly setResolution: import("@elaraai/east").FunctionType<[import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
724
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
725
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
726
|
+
readonly day: import("@elaraai/east").NullType;
|
|
727
|
+
readonly week: import("@elaraai/east").NullType;
|
|
728
|
+
readonly month: import("@elaraai/east").NullType;
|
|
729
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
730
|
+
readonly year: import("@elaraai/east").NullType;
|
|
731
|
+
}>>], import("@elaraai/east").NullType>;
|
|
705
732
|
}>;
|
|
706
733
|
readonly createdBy: import("@elaraai/east").OptionType<StringType>;
|
|
707
734
|
readonly lastEdited: import("@elaraai/east").OptionType<StringType>;
|
|
@@ -878,6 +905,15 @@ export declare const SlicePresets: {
|
|
|
878
905
|
readonly search: import("@elaraai/east").OptionType<StringType>;
|
|
879
906
|
readonly visible: import("@elaraai/east").OptionType<import("@elaraai/east").SetType<StringType>>;
|
|
880
907
|
readonly selectedIndex: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
908
|
+
readonly resolution: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
909
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
910
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
911
|
+
readonly day: import("@elaraai/east").NullType;
|
|
912
|
+
readonly week: import("@elaraai/east").NullType;
|
|
913
|
+
readonly month: import("@elaraai/east").NullType;
|
|
914
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
915
|
+
readonly year: import("@elaraai/east").NullType;
|
|
916
|
+
}>>;
|
|
881
917
|
}>>;
|
|
882
918
|
readonly write: import("@elaraai/east").FunctionType<[import("@elaraai/east").StructType<{
|
|
883
919
|
readonly range: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
@@ -1027,6 +1063,15 @@ export declare const SlicePresets: {
|
|
|
1027
1063
|
readonly search: import("@elaraai/east").OptionType<StringType>;
|
|
1028
1064
|
readonly visible: import("@elaraai/east").OptionType<import("@elaraai/east").SetType<StringType>>;
|
|
1029
1065
|
readonly selectedIndex: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
1066
|
+
readonly resolution: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
1067
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
1068
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
1069
|
+
readonly day: import("@elaraai/east").NullType;
|
|
1070
|
+
readonly week: import("@elaraai/east").NullType;
|
|
1071
|
+
readonly month: import("@elaraai/east").NullType;
|
|
1072
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
1073
|
+
readonly year: import("@elaraai/east").NullType;
|
|
1074
|
+
}>>;
|
|
1030
1075
|
}>], import("@elaraai/east").NullType>;
|
|
1031
1076
|
readonly setRange: import("@elaraai/east").FunctionType<[import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
1032
1077
|
readonly datetime: import("@elaraai/east").StructType<{
|
|
@@ -1350,6 +1395,15 @@ export declare const SlicePresets: {
|
|
|
1350
1395
|
readonly count: import("@elaraai/east").IntegerType;
|
|
1351
1396
|
readonly color: StringType;
|
|
1352
1397
|
}>>>;
|
|
1398
|
+
readonly setResolution: import("@elaraai/east").FunctionType<[import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
1399
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
1400
|
+
readonly hour: import("@elaraai/east").NullType;
|
|
1401
|
+
readonly day: import("@elaraai/east").NullType;
|
|
1402
|
+
readonly week: import("@elaraai/east").NullType;
|
|
1403
|
+
readonly month: import("@elaraai/east").NullType;
|
|
1404
|
+
readonly quarter: import("@elaraai/east").NullType;
|
|
1405
|
+
readonly year: import("@elaraai/east").NullType;
|
|
1406
|
+
}>>], import("@elaraai/east").NullType>;
|
|
1353
1407
|
}>;
|
|
1354
1408
|
readonly createdBy: import("@elaraai/east").OptionType<StringType>;
|
|
1355
1409
|
readonly lastEdited: import("@elaraai/east").OptionType<StringType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/slice/cohort/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,UAAU,EACV,WAAW,EAId,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExE,kCAAkC;AAClC,MAAM,WAAW,kBAAkB;IAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMf,CAAC"}
|
|
@@ -197,6 +197,15 @@ export declare const SliceCohortPickerType: StructType<{
|
|
|
197
197
|
readonly search: OptionType<StringType>;
|
|
198
198
|
readonly visible: OptionType<import("@elaraai/east").SetType<StringType>>;
|
|
199
199
|
readonly selectedIndex: OptionType<import("@elaraai/east").IntegerType>;
|
|
200
|
+
readonly resolution: OptionType<VariantType<{
|
|
201
|
+
readonly auto: NullType;
|
|
202
|
+
readonly hour: NullType;
|
|
203
|
+
readonly day: NullType;
|
|
204
|
+
readonly week: NullType;
|
|
205
|
+
readonly month: NullType;
|
|
206
|
+
readonly quarter: NullType;
|
|
207
|
+
readonly year: NullType;
|
|
208
|
+
}>>;
|
|
200
209
|
}>>;
|
|
201
210
|
readonly write: import("@elaraai/east").FunctionType<[StructType<{
|
|
202
211
|
readonly range: OptionType<VariantType<{
|
|
@@ -346,6 +355,15 @@ export declare const SliceCohortPickerType: StructType<{
|
|
|
346
355
|
readonly search: OptionType<StringType>;
|
|
347
356
|
readonly visible: OptionType<import("@elaraai/east").SetType<StringType>>;
|
|
348
357
|
readonly selectedIndex: OptionType<import("@elaraai/east").IntegerType>;
|
|
358
|
+
readonly resolution: OptionType<VariantType<{
|
|
359
|
+
readonly auto: NullType;
|
|
360
|
+
readonly hour: NullType;
|
|
361
|
+
readonly day: NullType;
|
|
362
|
+
readonly week: NullType;
|
|
363
|
+
readonly month: NullType;
|
|
364
|
+
readonly quarter: NullType;
|
|
365
|
+
readonly year: NullType;
|
|
366
|
+
}>>;
|
|
349
367
|
}>], NullType>;
|
|
350
368
|
readonly setRange: import("@elaraai/east").FunctionType<[OptionType<VariantType<{
|
|
351
369
|
readonly datetime: StructType<{
|
|
@@ -669,6 +687,15 @@ export declare const SliceCohortPickerType: StructType<{
|
|
|
669
687
|
readonly count: import("@elaraai/east").IntegerType;
|
|
670
688
|
readonly color: StringType;
|
|
671
689
|
}>>>;
|
|
690
|
+
readonly setResolution: import("@elaraai/east").FunctionType<[OptionType<VariantType<{
|
|
691
|
+
readonly auto: NullType;
|
|
692
|
+
readonly hour: NullType;
|
|
693
|
+
readonly day: NullType;
|
|
694
|
+
readonly week: NullType;
|
|
695
|
+
readonly month: NullType;
|
|
696
|
+
readonly quarter: NullType;
|
|
697
|
+
readonly year: NullType;
|
|
698
|
+
}>>], NullType>;
|
|
672
699
|
}>;
|
|
673
700
|
readonly createdBy: OptionType<StringType>;
|
|
674
701
|
readonly lastEdited: OptionType<StringType>;
|