@elaraai/east-ui 1.0.67 → 1.0.69
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
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
import { type SubtypeExprOrValue, OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
-
import { DensityType, type DensityLiteral } from "../../style/interaction.js";
|
|
7
|
-
/**
|
|
8
|
-
* Style for {@link AlignedStack} — a vertical stack of axis/lane components that
|
|
9
|
-
* share one plot gutter. Minimal box-model knobs (the gutter is the point).
|
|
10
|
-
*
|
|
11
|
-
* @property gap - Vertical spacing between stacked children (CSS length / token)
|
|
12
|
-
* @property width - Stack width (default `100%`)
|
|
13
|
-
* @property height - Stack height
|
|
14
|
-
* @property minHeight - Stack min-height
|
|
15
|
-
* @property density - Density preset imposed on every lane child (comfortable | compact | condensed)
|
|
16
|
-
*/
|
|
17
|
-
export declare const AlignedStackStyleType: StructType<{
|
|
18
|
-
readonly gap: OptionType<StringType>;
|
|
19
|
-
readonly width: OptionType<StringType>;
|
|
20
|
-
readonly height: OptionType<StringType>;
|
|
21
|
-
readonly minHeight: OptionType<StringType>;
|
|
22
|
-
readonly density: OptionType<import("@elaraai/east").VariantType<{
|
|
23
|
-
readonly comfortable: import("@elaraai/east").NullType;
|
|
24
|
-
readonly compact: import("@elaraai/east").NullType;
|
|
25
|
-
readonly condensed: import("@elaraai/east").NullType;
|
|
26
|
-
}>>;
|
|
27
|
-
}>;
|
|
28
|
-
export type AlignedStackStyleType = typeof AlignedStackStyleType;
|
|
29
|
-
/**
|
|
30
|
-
* TS input for {@link AlignedStackStyleType}.
|
|
31
|
-
*
|
|
32
|
-
* @property gap - Vertical spacing between stacked children
|
|
33
|
-
* @property width - Stack width (default `100%`)
|
|
34
|
-
* @property height - Stack height
|
|
35
|
-
* @property minHeight - Stack min-height
|
|
36
|
-
* @property density - Density preset imposed on every lane child
|
|
37
|
-
*/
|
|
38
|
-
export interface AlignedStackStyle {
|
|
39
|
-
/** Vertical spacing between stacked children (CSS length / token). */
|
|
40
|
-
gap?: SubtypeExprOrValue<StringType>;
|
|
41
|
-
/** Stack width (default `100%`). */
|
|
42
|
-
width?: SubtypeExprOrValue<StringType>;
|
|
43
|
-
/** Stack height. */
|
|
44
|
-
height?: SubtypeExprOrValue<StringType>;
|
|
45
|
-
/** Stack min-height. */
|
|
46
|
-
minHeight?: SubtypeExprOrValue<StringType>;
|
|
47
|
-
/** Density preset imposed on every lane child (comfortable | compact | condensed). Each child still overrides with its own `density` if set. */
|
|
48
|
-
density?: SubtypeExprOrValue<DensityType> | DensityLiteral;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layout/aligned-stack/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE9E;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;EAMhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC;AAEjE;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAC9B,sEAAsE;IACtE,GAAG,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACrC,oCAAoC;IACpC,KAAK,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACvC,oBAAoB;IACpB,MAAM,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACxC,wBAAwB;IACxB,SAAS,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC3C,gJAAgJ;IAChJ,OAAO,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC;CAC9D"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
import { OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
-
import { DensityType } from "../../style/interaction.js";
|
|
7
|
-
/**
|
|
8
|
-
* Style for {@link AlignedStack} — a vertical stack of axis/lane components that
|
|
9
|
-
* share one plot gutter. Minimal box-model knobs (the gutter is the point).
|
|
10
|
-
*
|
|
11
|
-
* @property gap - Vertical spacing between stacked children (CSS length / token)
|
|
12
|
-
* @property width - Stack width (default `100%`)
|
|
13
|
-
* @property height - Stack height
|
|
14
|
-
* @property minHeight - Stack min-height
|
|
15
|
-
* @property density - Density preset imposed on every lane child (comfortable | compact | condensed)
|
|
16
|
-
*/
|
|
17
|
-
export const AlignedStackStyleType = StructType({
|
|
18
|
-
gap: OptionType(StringType),
|
|
19
|
-
width: OptionType(StringType),
|
|
20
|
-
height: OptionType(StringType),
|
|
21
|
-
minHeight: OptionType(StringType),
|
|
22
|
-
density: OptionType(DensityType),
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/layout/aligned-stack/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAuB,MAAM,4BAA4B,CAAC;AAE9E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;IAC5C,GAAG,EAAQ,UAAU,CAAC,UAAU,CAAC;IACjC,KAAK,EAAM,UAAU,CAAC,UAAU,CAAC;IACjC,MAAM,EAAK,UAAU,CAAC,UAAU,CAAC;IACjC,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC;IACjC,OAAO,EAAI,UAAU,CAAC,WAAW,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* `<Gantt>` tag — see the export's JSDoc.
|
|
7
|
-
*/
|
|
8
|
-
import type { SubtypeExprOrValue, ArrayType, StructType, ExprType, TypeOf } from "@elaraai/east";
|
|
9
|
-
import { Gantt as GanttFactory, type ColumnSpec, type DataFieldKeys, type GanttStyle, type GanttTaskType, type GanttMilestoneType } from "../../collections/gantt/index.js";
|
|
10
|
-
import type { UIElement } from "../runtime.js";
|
|
11
|
-
/**
|
|
12
|
-
* `<Gantt data={rows} columns={["name"]} rowSpec={row => ({ tasks: … })} />` —
|
|
13
|
-
* schema-typed gantt. Maps to `Gantt.Root`. `columns` is typed directly as
|
|
14
|
-
* `ColumnSpec<T>` (not an inferred generic) so an object-form column map gets
|
|
15
|
-
* excess-property checked — a key that is not a data field is a type error.
|
|
16
|
-
*/
|
|
17
|
-
declare function GanttTag<T extends SubtypeExprOrValue<ArrayType<StructType>>>(props: {
|
|
18
|
-
data: T;
|
|
19
|
-
columns: ColumnSpec<T>;
|
|
20
|
-
rowSpec: (row: ExprType<TypeOf<T> extends ArrayType<infer E> ? E : never>) => {
|
|
21
|
-
tasks?: SubtypeExprOrValue<ArrayType<GanttTaskType>>;
|
|
22
|
-
milestones?: SubtypeExprOrValue<ArrayType<GanttMilestoneType>>;
|
|
23
|
-
};
|
|
24
|
-
} & GanttStyle<DataFieldKeys<T>>): UIElement;
|
|
25
|
-
/**
|
|
26
|
-
* Schema-typed Gantt chart — a frozen identity grid on the left, a time axis on
|
|
27
|
-
* the right. Each data row becomes a chart row whose bars and diamonds come from
|
|
28
|
-
* `rowSpec`: it returns the row's tasks and milestones built from the row's
|
|
29
|
-
* fields. `columns` is the left-grid column list / config ({@link ColumnSpec}),
|
|
30
|
-
* and the remaining display options (the `axis` window/tier/format, `striped`,
|
|
31
|
-
* `showToday` now-line, `density`, `frozen` columns, `rowStatus`, drag steps,
|
|
32
|
-
* interaction callbacks) are flat ({@link GanttStyle}). Use it for project plans,
|
|
33
|
-
* roadmaps, and sprint timelines.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```tsx
|
|
37
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
38
|
-
* import { East } from "@elaraai/east";
|
|
39
|
-
* import { Gantt, UIComponentType } from "@elaraai/east-ui";
|
|
40
|
-
*
|
|
41
|
-
* const plan = East.function([], UIComponentType, _$ => (
|
|
42
|
-
* <Gantt
|
|
43
|
-
* data={[
|
|
44
|
-
* { task: "Planning", owner: "Alice", start: new Date("2024-01-01"), end: new Date("2024-01-15") },
|
|
45
|
-
* { task: "Design", owner: "Bob", start: new Date("2024-01-10"), end: new Date("2024-02-01") },
|
|
46
|
-
* ]}
|
|
47
|
-
* columns={["task", "owner"]}
|
|
48
|
-
* rowSpec={row => ({ tasks: [Gantt.Task({ start: row.start, end: row.end })] })}
|
|
49
|
-
* />
|
|
50
|
-
* ));
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Carries `Gantt.Task` (a duration bar — start/end, label, progress, status,
|
|
55
|
-
* popover) and `Gantt.Milestone` (a point diamond — date, label, kind) for use
|
|
56
|
-
* inside `rowSpec`, plus `Gantt.Types` for the task / milestone event types
|
|
57
|
-
* (`Gantt.Types.TaskClickEvent`, `Gantt.Types.TaskDragEvent`,
|
|
58
|
-
* `Gantt.Types.MilestoneClickEvent`, …; left-grid clicks use the shared
|
|
59
|
-
* `Table.Types.*` events). Desugars to `Gantt.Root(data, columns, rowSpec, style)`.
|
|
60
|
-
*/
|
|
61
|
-
export declare const Gantt: typeof GanttTag & {
|
|
62
|
-
Task: typeof GanttFactory.Task;
|
|
63
|
-
Milestone: typeof GanttFactory.Milestone;
|
|
64
|
-
Types: typeof GanttFactory.Types;
|
|
65
|
-
};
|
|
66
|
-
export {};
|
|
67
|
-
//# sourceMappingURL=gantt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gantt.d.ts","sourceRoot":"","sources":["../../../../src/runtime/collections/gantt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EACH,KAAK,IAAI,YAAY,EACrB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAC1B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,CAAC,SAAS,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EACjE,KAAK,EAAE;IACH,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACvB,OAAO,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK;QAC1E,KAAK,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;QACrD,UAAU,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC;KAClE,CAAC;CACL,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACjC,SAAS,CAQX;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,KAAK,EAAE,OAAO,QAAQ,GAAG;IAClC,IAAI,EAAE,OAAO,YAAY,CAAC,IAAI,CAAC;IAC/B,SAAS,EAAE,OAAO,YAAY,CAAC,SAAS,CAAC;IACzC,KAAK,EAAE,OAAO,YAAY,CAAC,KAAK,CAAC;CAKnC,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
import { Gantt as GanttFactory, } from "../../collections/gantt/index.js";
|
|
6
|
-
import { hasKeys } from "../combinators.js";
|
|
7
|
-
/**
|
|
8
|
-
* `<Gantt data={rows} columns={["name"]} rowSpec={row => ({ tasks: … })} />` —
|
|
9
|
-
* schema-typed gantt. Maps to `Gantt.Root`. `columns` is typed directly as
|
|
10
|
-
* `ColumnSpec<T>` (not an inferred generic) so an object-form column map gets
|
|
11
|
-
* excess-property checked — a key that is not a data field is a type error.
|
|
12
|
-
*/
|
|
13
|
-
function GanttTag(props) {
|
|
14
|
-
const { data, columns, rowSpec, ...style } = props;
|
|
15
|
-
return GanttFactory.Root(data, columns, rowSpec, (hasKeys(style) ? style : undefined));
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Schema-typed Gantt chart — a frozen identity grid on the left, a time axis on
|
|
19
|
-
* the right. Each data row becomes a chart row whose bars and diamonds come from
|
|
20
|
-
* `rowSpec`: it returns the row's tasks and milestones built from the row's
|
|
21
|
-
* fields. `columns` is the left-grid column list / config ({@link ColumnSpec}),
|
|
22
|
-
* and the remaining display options (the `axis` window/tier/format, `striped`,
|
|
23
|
-
* `showToday` now-line, `density`, `frozen` columns, `rowStatus`, drag steps,
|
|
24
|
-
* interaction callbacks) are flat ({@link GanttStyle}). Use it for project plans,
|
|
25
|
-
* roadmaps, and sprint timelines.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```tsx
|
|
29
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
30
|
-
* import { East } from "@elaraai/east";
|
|
31
|
-
* import { Gantt, UIComponentType } from "@elaraai/east-ui";
|
|
32
|
-
*
|
|
33
|
-
* const plan = East.function([], UIComponentType, _$ => (
|
|
34
|
-
* <Gantt
|
|
35
|
-
* data={[
|
|
36
|
-
* { task: "Planning", owner: "Alice", start: new Date("2024-01-01"), end: new Date("2024-01-15") },
|
|
37
|
-
* { task: "Design", owner: "Bob", start: new Date("2024-01-10"), end: new Date("2024-02-01") },
|
|
38
|
-
* ]}
|
|
39
|
-
* columns={["task", "owner"]}
|
|
40
|
-
* rowSpec={row => ({ tasks: [Gantt.Task({ start: row.start, end: row.end })] })}
|
|
41
|
-
* />
|
|
42
|
-
* ));
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @remarks
|
|
46
|
-
* Carries `Gantt.Task` (a duration bar — start/end, label, progress, status,
|
|
47
|
-
* popover) and `Gantt.Milestone` (a point diamond — date, label, kind) for use
|
|
48
|
-
* inside `rowSpec`, plus `Gantt.Types` for the task / milestone event types
|
|
49
|
-
* (`Gantt.Types.TaskClickEvent`, `Gantt.Types.TaskDragEvent`,
|
|
50
|
-
* `Gantt.Types.MilestoneClickEvent`, …; left-grid clicks use the shared
|
|
51
|
-
* `Table.Types.*` events). Desugars to `Gantt.Root(data, columns, rowSpec, style)`.
|
|
52
|
-
*/
|
|
53
|
-
export const Gantt = Object.assign(GanttTag, {
|
|
54
|
-
Task: GanttFactory.Task,
|
|
55
|
-
Milestone: GanttFactory.Milestone,
|
|
56
|
-
Types: GanttFactory.Types,
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=gantt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gantt.js","sourceRoot":"","sources":["../../../../src/runtime/collections/gantt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EACH,KAAK,IAAI,YAAY,GAMxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C;;;;;GAKG;AACH,SAAS,QAAQ,CACb,KAOgC;IAEhC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IACnD,OAAO,YAAY,CAAC,IAAI,CACpB,IAAI,EACJ,OAAO,EACP,OAAO,EACP,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAiC,CACvE,CAAC;AACN,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,KAAK,GAId,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IACxB,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,SAAS,EAAE,YAAY,CAAC,SAAS;IACjC,KAAK,EAAE,YAAY,CAAC,KAAK;CAC5B,CAAC,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* `<Planner.Point>` / `<Planner.Span>` tags — see the export's JSDoc.
|
|
7
|
-
*/
|
|
8
|
-
import type { SubtypeExprOrValue, ArrayType, StructType } from "@elaraai/east";
|
|
9
|
-
import { Planner as PlannerFactory, type PlannerConfig, type RowElement } from "../../collections/planner/index.js";
|
|
10
|
-
import type { UIElement } from "../runtime.js";
|
|
11
|
-
/**
|
|
12
|
-
* `<Planner.Point>` — schedule grid for instantaneous events, one cell per
|
|
13
|
-
* axis slot. Each row is a resource / stream; `events` places point markers at
|
|
14
|
-
* `Planner.at.*` slots, each carrying a lifecycle `state` (committed /
|
|
15
|
-
* proposed / rejected). The axis (`Planner.axis.number` / `.ordinal` /
|
|
16
|
-
* `.time`), the frozen identity columns, `groupBy`, `markers`, the `now`-line
|
|
17
|
-
* and `density` live on {@link PlannerConfig}; `data` is a flat prop. Use it
|
|
18
|
-
* for rosters, shift plans, and what-if scheduling. Maps to `Planner.Point`.
|
|
19
|
-
*/
|
|
20
|
-
declare function PlannerPoint<T extends SubtypeExprOrValue<ArrayType<StructType>>>(props: {
|
|
21
|
-
data: T;
|
|
22
|
-
} & PlannerConfig<RowElement<T>>): UIElement;
|
|
23
|
-
/**
|
|
24
|
-
* `<Planner.Span>` — the span sibling of `<Planner.Point>`: each event spans
|
|
25
|
-
* from `slot` to `endSlot` across the axis (a horizontal bar rather than a
|
|
26
|
-
* point), giving a lightweight swim-lane timeline. Same {@link PlannerConfig}
|
|
27
|
-
* config and event-state grammar as Point, typically over a `Planner.axis.time`
|
|
28
|
-
* axis. Maps to `Planner.Span`.
|
|
29
|
-
*/
|
|
30
|
-
declare function PlannerSpan<T extends SubtypeExprOrValue<ArrayType<StructType>>>(props: {
|
|
31
|
-
data: T;
|
|
32
|
-
} & PlannerConfig<RowElement<T>>): UIElement;
|
|
33
|
-
/**
|
|
34
|
-
* Slot-based scheduling grids — resources down the rows, an axis across the
|
|
35
|
-
* columns, with lifecycle-coloured events in the cells. Pick the member by
|
|
36
|
-
* event shape: {@link Planner.Point} for instantaneous events (one cell per
|
|
37
|
-
* slot), {@link Planner.Span} for events that stretch across a range. Use a
|
|
38
|
-
* planner for rosters, capacity plans, and proposed-vs-committed what-if views.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```tsx
|
|
42
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
43
|
-
* import { East } from "@elaraai/east";
|
|
44
|
-
* import { Planner, UIComponentType } from "@elaraai/east-ui";
|
|
45
|
-
*
|
|
46
|
-
* const roster = East.function([], UIComponentType, _$ => (
|
|
47
|
-
* <Planner.Point
|
|
48
|
-
* data={[
|
|
49
|
-
* { name: "api-01", role: "Lead", team: "Web" },
|
|
50
|
-
* { name: "api-02", role: "Engineer", team: "Web" },
|
|
51
|
-
* ]}
|
|
52
|
-
* axis={Planner.axis.number({ buckets: [{ key: "am", label: "AM" }, { key: "pm", label: "PM" }], range: { min: 1, max: 4 } })}
|
|
53
|
-
* groupBy={r => r.team}
|
|
54
|
-
* columns={[{ key: "name", frozen: true, value: r => r.name, sublabel: r => r.role }]}
|
|
55
|
-
* events={_r => [
|
|
56
|
-
* Planner.event({ slot: Planner.at.number(1), bucket: "am", label: "✓", state: "committed" }),
|
|
57
|
-
* Planner.event({ slot: Planner.at.number(3), bucket: "am", label: "plan", state: "added" }),
|
|
58
|
-
* ]}
|
|
59
|
-
* />
|
|
60
|
-
* ));
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @remarks
|
|
64
|
-
* Carries the axis builders (`Planner.axis.number` / `.ordinal` / `.time`), the
|
|
65
|
-
* slot constructors (`Planner.at.number` / `.ordinal` / `.time`), `Planner.event`
|
|
66
|
-
* (an event with slot / state / label / popover), `Planner.marker` (a
|
|
67
|
-
* status-flag ring), and `Planner.Types` (e.g. `Planner.Types.SelectEvent`).
|
|
68
|
-
* Desugars to `Planner.Point(data, config)` / `Planner.Span(data, config)`.
|
|
69
|
-
*/
|
|
70
|
-
export declare const Planner: {
|
|
71
|
-
Point: typeof PlannerPoint;
|
|
72
|
-
Span: typeof PlannerSpan;
|
|
73
|
-
axis: typeof PlannerFactory.axis;
|
|
74
|
-
at: typeof PlannerFactory.at;
|
|
75
|
-
event: typeof PlannerFactory.event;
|
|
76
|
-
marker: typeof PlannerFactory.marker;
|
|
77
|
-
Types: typeof PlannerFactory.Types;
|
|
78
|
-
};
|
|
79
|
-
export {};
|
|
80
|
-
//# sourceMappingURL=planner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planner.d.ts","sourceRoot":"","sources":["../../../../src/runtime/collections/planner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EACH,OAAO,IAAI,cAAc,EACzB,KAAK,aAAa,EAClB,KAAK,UAAU,EAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;;;;GAQG;AACH,iBAAS,YAAY,CAAC,CAAC,SAAS,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EACrE,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAClD,SAAS,CAGX;AAED;;;;;;GAMG;AACH,iBAAS,WAAW,CAAC,CAAC,SAAS,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EACpE,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAClD,SAAS,CAGX;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,OAAO,EAAE;IAClB,KAAK,EAAE,OAAO,YAAY,CAAC;IAC3B,IAAI,EAAE,OAAO,WAAW,CAAC;IACzB,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,EAAE,EAAE,OAAO,cAAc,CAAC,EAAE,CAAC;IAC7B,KAAK,EAAE,OAAO,cAAc,CAAC,KAAK,CAAC;IACnC,MAAM,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,OAAO,cAAc,CAAC,KAAK,CAAC;CAStC,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
import { Planner as PlannerFactory, } from "../../collections/planner/index.js";
|
|
6
|
-
/**
|
|
7
|
-
* `<Planner.Point>` — schedule grid for instantaneous events, one cell per
|
|
8
|
-
* axis slot. Each row is a resource / stream; `events` places point markers at
|
|
9
|
-
* `Planner.at.*` slots, each carrying a lifecycle `state` (committed /
|
|
10
|
-
* proposed / rejected). The axis (`Planner.axis.number` / `.ordinal` /
|
|
11
|
-
* `.time`), the frozen identity columns, `groupBy`, `markers`, the `now`-line
|
|
12
|
-
* and `density` live on {@link PlannerConfig}; `data` is a flat prop. Use it
|
|
13
|
-
* for rosters, shift plans, and what-if scheduling. Maps to `Planner.Point`.
|
|
14
|
-
*/
|
|
15
|
-
function PlannerPoint(props) {
|
|
16
|
-
const { data, ...config } = props;
|
|
17
|
-
return PlannerFactory.Point(data, config);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* `<Planner.Span>` — the span sibling of `<Planner.Point>`: each event spans
|
|
21
|
-
* from `slot` to `endSlot` across the axis (a horizontal bar rather than a
|
|
22
|
-
* point), giving a lightweight swim-lane timeline. Same {@link PlannerConfig}
|
|
23
|
-
* config and event-state grammar as Point, typically over a `Planner.axis.time`
|
|
24
|
-
* axis. Maps to `Planner.Span`.
|
|
25
|
-
*/
|
|
26
|
-
function PlannerSpan(props) {
|
|
27
|
-
const { data, ...config } = props;
|
|
28
|
-
return PlannerFactory.Span(data, config);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Slot-based scheduling grids — resources down the rows, an axis across the
|
|
32
|
-
* columns, with lifecycle-coloured events in the cells. Pick the member by
|
|
33
|
-
* event shape: {@link Planner.Point} for instantaneous events (one cell per
|
|
34
|
-
* slot), {@link Planner.Span} for events that stretch across a range. Use a
|
|
35
|
-
* planner for rosters, capacity plans, and proposed-vs-committed what-if views.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
40
|
-
* import { East } from "@elaraai/east";
|
|
41
|
-
* import { Planner, UIComponentType } from "@elaraai/east-ui";
|
|
42
|
-
*
|
|
43
|
-
* const roster = East.function([], UIComponentType, _$ => (
|
|
44
|
-
* <Planner.Point
|
|
45
|
-
* data={[
|
|
46
|
-
* { name: "api-01", role: "Lead", team: "Web" },
|
|
47
|
-
* { name: "api-02", role: "Engineer", team: "Web" },
|
|
48
|
-
* ]}
|
|
49
|
-
* axis={Planner.axis.number({ buckets: [{ key: "am", label: "AM" }, { key: "pm", label: "PM" }], range: { min: 1, max: 4 } })}
|
|
50
|
-
* groupBy={r => r.team}
|
|
51
|
-
* columns={[{ key: "name", frozen: true, value: r => r.name, sublabel: r => r.role }]}
|
|
52
|
-
* events={_r => [
|
|
53
|
-
* Planner.event({ slot: Planner.at.number(1), bucket: "am", label: "✓", state: "committed" }),
|
|
54
|
-
* Planner.event({ slot: Planner.at.number(3), bucket: "am", label: "plan", state: "added" }),
|
|
55
|
-
* ]}
|
|
56
|
-
* />
|
|
57
|
-
* ));
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* Carries the axis builders (`Planner.axis.number` / `.ordinal` / `.time`), the
|
|
62
|
-
* slot constructors (`Planner.at.number` / `.ordinal` / `.time`), `Planner.event`
|
|
63
|
-
* (an event with slot / state / label / popover), `Planner.marker` (a
|
|
64
|
-
* status-flag ring), and `Planner.Types` (e.g. `Planner.Types.SelectEvent`).
|
|
65
|
-
* Desugars to `Planner.Point(data, config)` / `Planner.Span(data, config)`.
|
|
66
|
-
*/
|
|
67
|
-
export const Planner = {
|
|
68
|
-
Point: PlannerPoint,
|
|
69
|
-
Span: PlannerSpan,
|
|
70
|
-
axis: PlannerFactory.axis,
|
|
71
|
-
at: PlannerFactory.at,
|
|
72
|
-
event: PlannerFactory.event,
|
|
73
|
-
marker: PlannerFactory.marker,
|
|
74
|
-
Types: PlannerFactory.Types,
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=planner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planner.js","sourceRoot":"","sources":["../../../../src/runtime/collections/planner.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EACH,OAAO,IAAI,cAAc,GAG5B,MAAM,oCAAoC,CAAC;AAG5C;;;;;;;;GAQG;AACH,SAAS,YAAY,CACjB,KAAiD;IAEjD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,MAAsC,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;;GAMG;AACH,SAAS,WAAW,CAChB,KAAiD;IAEjD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,MAAsC,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,MAAM,OAAO,GAQhB;IACA,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,cAAc,CAAC,IAAI;IACzB,EAAE,EAAE,cAAc,CAAC,EAAE;IACrB,KAAK,EAAE,cAAc,CAAC,KAAK;IAC3B,MAAM,EAAE,cAAc,CAAC,MAAM;IAC7B,KAAK,EAAE,cAAc,CAAC,KAAK;CAC9B,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* `<AlignedStack>` tag — see the export's JSDoc.
|
|
7
|
-
*/
|
|
8
|
-
import { AlignedStack as AlignedStackFactory } from "../../layout/aligned-stack/index.js";
|
|
9
|
-
import { type ContainerProps, type JsxTag } from "../combinators.js";
|
|
10
|
-
/**
|
|
11
|
-
* Vertically stacks axis/lane components (Chart, Trace, Calendar, Planner, …) on
|
|
12
|
-
* a **shared plot gutter** so their data lanes line up on a common x. Set
|
|
13
|
-
* `gutter` to `{ left, right }` (px) — every child's lane occupies exactly
|
|
14
|
-
* `[left, W − right]`, chrome (axes, frozen columns, headers) rendering within
|
|
15
|
-
* the gutter — or `"auto"` to measure the max gutter the children need. A
|
|
16
|
-
* child's own `plotGutter` prop overrides the inherited value (#147).
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
21
|
-
* import { East } from "@elaraai/east";
|
|
22
|
-
* import { AlignedStack, Chart, UIComponentType } from "@elaraai/east-ui";
|
|
23
|
-
*
|
|
24
|
-
* const aligned = East.function([], UIComponentType, _$ => (
|
|
25
|
-
* <AlignedStack gutter={{ left: "48px", right: "12px" }} gap="8px">
|
|
26
|
-
* <Chart layers={Chart.Line(rows, { x: r => r.day, y: r => r.value })} />
|
|
27
|
-
* {/* …a Trace / Planner on the same day axis… *\/}
|
|
28
|
-
* </AlignedStack>
|
|
29
|
-
* ));
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Carries `AlignedStack.Types`. Desugars to `AlignedStack.Root(children, options)`.
|
|
34
|
-
*/
|
|
35
|
-
export declare const AlignedStack: JsxTag<ContainerProps<typeof AlignedStackFactory.Root>> & {
|
|
36
|
-
Types: typeof AlignedStackFactory.Types;
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=aligned-stack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aligned-stack.d.ts","sourceRoot":"","sources":["../../../../src/runtime/layout/aligned-stack.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAa,KAAK,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,GAAG;IAAE,KAAK,EAAE,OAAO,mBAAmB,CAAC,KAAK,CAAA;CAClC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* `<AlignedStack>` tag — see the export's JSDoc.
|
|
7
|
-
*/
|
|
8
|
-
import { AlignedStack as AlignedStackFactory } from "../../layout/aligned-stack/index.js";
|
|
9
|
-
import { container } from "../combinators.js";
|
|
10
|
-
/**
|
|
11
|
-
* Vertically stacks axis/lane components (Chart, Trace, Calendar, Planner, …) on
|
|
12
|
-
* a **shared plot gutter** so their data lanes line up on a common x. Set
|
|
13
|
-
* `gutter` to `{ left, right }` (px) — every child's lane occupies exactly
|
|
14
|
-
* `[left, W − right]`, chrome (axes, frozen columns, headers) rendering within
|
|
15
|
-
* the gutter — or `"auto"` to measure the max gutter the children need. A
|
|
16
|
-
* child's own `plotGutter` prop overrides the inherited value (#147).
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
21
|
-
* import { East } from "@elaraai/east";
|
|
22
|
-
* import { AlignedStack, Chart, UIComponentType } from "@elaraai/east-ui";
|
|
23
|
-
*
|
|
24
|
-
* const aligned = East.function([], UIComponentType, _$ => (
|
|
25
|
-
* <AlignedStack gutter={{ left: "48px", right: "12px" }} gap="8px">
|
|
26
|
-
* <Chart layers={Chart.Line(rows, { x: r => r.day, y: r => r.value })} />
|
|
27
|
-
* {/* …a Trace / Planner on the same day axis… *\/}
|
|
28
|
-
* </AlignedStack>
|
|
29
|
-
* ));
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Carries `AlignedStack.Types`. Desugars to `AlignedStack.Root(children, options)`.
|
|
34
|
-
*/
|
|
35
|
-
export const AlignedStack = Object.assign(container(AlignedStackFactory.Root), { Types: AlignedStackFactory.Types });
|
|
36
|
-
//# sourceMappingURL=aligned-stack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aligned-stack.js","sourceRoot":"","sources":["../../../../src/runtime/layout/aligned-stack.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAoC,MAAM,mBAAmB,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,YAAY,GACrB,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare const ganttBasic: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
-
/**
|
|
3
|
-
* THE Gantt configurator (pass 4) — one preset axis spans the surface: the
|
|
4
|
-
* now-centred window, the quarter roadmap and week sprint windows, milestone
|
|
5
|
-
* diamonds, progress fills, styled labels, the five lifecycle treatments,
|
|
6
|
-
* the #262 state + status grammar, a 200-row stress window and the #320 fill
|
|
7
|
-
* contract. Every preset is DATA ({window, tier, format, header, rows}
|
|
8
|
-
* through one expression-fed axis + ONE rowSpec over the superset row), so
|
|
9
|
-
* only row-height presence (auto vs pixel) and the bounded-fill Box are
|
|
10
|
-
* prebuilt arms. Variant / density / striped / today compose across every
|
|
11
|
-
* preset; all eleven callbacks (and the ONE onDrag grammar funnel) log to
|
|
12
|
-
* the aside.
|
|
13
|
-
*/
|
|
14
|
-
export declare const ganttVariants: import("@elaraai/east").ExampleDef<[], any>;
|
|
15
|
-
export declare const ganttReactiveDrag: import("@elaraai/east").ExampleDef<[], any>;
|
|
16
|
-
/**
|
|
17
|
-
* Review chrome (#263) — the shared per-row Approve / Reject decision column
|
|
18
|
-
* (sticky beside the timeline) plus the commitBar batch foot, identical to
|
|
19
|
-
* the Planner's. A machine-written schedule under review: model-ghost bars
|
|
20
|
-
* on flagged rows resting `pending` (quiet warning dot), clean rows resting
|
|
21
|
-
* `approved`. Callbacks receive the acted-on `{ rowIndex }`.
|
|
22
|
-
*/
|
|
23
|
-
export declare const ganttReview: import("@elaraai/east").ExampleDef<[], any>;
|
|
24
|
-
/**
|
|
25
|
-
* Library → Gantt add (#268) — the Gantt registers as an ordinary drag
|
|
26
|
-
* target via the shared grammar: drag a crew card anywhere onto the
|
|
27
|
-
* timeline; the drop resolves to (row index key, snapped ISO instant),
|
|
28
|
-
* lands as an optimistic `proposed(added)` bar, and arrives through the ONE
|
|
29
|
-
* `onDrag` funnel. A `canDrop` veto (⊘ while hovering) keeps crews off the
|
|
30
|
-
* committed first row.
|
|
31
|
-
*/
|
|
32
|
-
export declare const ganttLibraryDnd: import("@elaraai/east").ExampleDef<[], any>;
|
|
33
|
-
//# sourceMappingURL=gantt.examples.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gantt.examples.d.ts","sourceRoot":"","sources":["../../../test/collections/gantt.examples.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,UAAU,6CAkBrB,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,6CA0SxB,CAAC;AAEH,eAAO,MAAM,iBAAiB,6CAyC5B,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,6CA0CtB,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,6CA+D1B,CAAC"}
|