@elaraai/east-ui 0.0.1-beta.2 → 0.0.1-beta.4
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 +4 -4
- package/dist/src/buttons/button/index.d.ts +57 -0
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +57 -0
- package/dist/src/buttons/button/index.js.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +62 -0
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +62 -0
- package/dist/src/buttons/icon-button/index.js.map +1 -1
- package/dist/src/charts/index.d.ts +603 -18
- package/dist/src/charts/index.d.ts.map +1 -1
- package/dist/src/charts/index.js +603 -20
- package/dist/src/charts/index.js.map +1 -1
- package/dist/src/charts/sparkline/index.d.ts +47 -0
- package/dist/src/charts/sparkline/index.d.ts.map +1 -1
- package/dist/src/charts/sparkline/index.js +47 -0
- package/dist/src/charts/sparkline/index.js.map +1 -1
- package/dist/src/collections/data-list/index.d.ts +89 -0
- package/dist/src/collections/data-list/index.d.ts.map +1 -1
- package/dist/src/collections/data-list/index.js +89 -0
- package/dist/src/collections/data-list/index.js.map +1 -1
- package/dist/src/collections/gantt/index.d.ts +177 -4
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.js +177 -4
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +99 -0
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +99 -0
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/tree-view/index.d.ts +170 -0
- package/dist/src/collections/tree-view/index.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.js +170 -0
- package/dist/src/collections/tree-view/index.js.map +1 -1
- package/dist/src/container/card/index.d.ts +60 -0
- package/dist/src/container/card/index.d.ts.map +1 -1
- package/dist/src/container/card/index.js +60 -0
- package/dist/src/container/card/index.js.map +1 -1
- package/dist/src/disclosure/accordion/index.d.ts +83 -0
- package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
- package/dist/src/disclosure/accordion/index.js +83 -0
- package/dist/src/disclosure/accordion/index.js.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts +60 -4
- package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.js +60 -4
- package/dist/src/disclosure/carousel/index.js.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +179 -0
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.js +179 -0
- package/dist/src/disclosure/tabs/index.js.map +1 -1
- package/dist/src/display/avatar/index.d.ts +35 -0
- package/dist/src/display/avatar/index.d.ts.map +1 -1
- package/dist/src/display/avatar/index.js +35 -0
- package/dist/src/display/avatar/index.js.map +1 -1
- package/dist/src/display/badge/index.d.ts +35 -0
- package/dist/src/display/badge/index.d.ts.map +1 -1
- package/dist/src/display/badge/index.js +35 -0
- package/dist/src/display/badge/index.js.map +1 -1
- package/dist/src/display/icon/index.d.ts +78 -6
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +78 -6
- package/dist/src/display/icon/index.js.map +1 -1
- package/dist/src/display/stat/index.d.ts +67 -2
- package/dist/src/display/stat/index.d.ts.map +1 -1
- package/dist/src/display/stat/index.js +68 -3
- package/dist/src/display/stat/index.js.map +1 -1
- package/dist/src/display/tag/index.d.ts +48 -0
- package/dist/src/display/tag/index.d.ts.map +1 -1
- package/dist/src/display/tag/index.js +48 -0
- package/dist/src/display/tag/index.js.map +1 -1
- package/dist/src/feedback/alert/index.d.ts +64 -0
- package/dist/src/feedback/alert/index.d.ts.map +1 -1
- package/dist/src/feedback/alert/index.js +64 -0
- package/dist/src/feedback/alert/index.js.map +1 -1
- package/dist/src/feedback/progress/index.d.ts +54 -0
- package/dist/src/feedback/progress/index.d.ts.map +1 -1
- package/dist/src/feedback/progress/index.js +54 -0
- package/dist/src/feedback/progress/index.js.map +1 -1
- package/dist/src/forms/checkbox/index.d.ts +38 -0
- package/dist/src/forms/checkbox/index.d.ts.map +1 -1
- package/dist/src/forms/checkbox/index.js +38 -0
- package/dist/src/forms/checkbox/index.js.map +1 -1
- package/dist/src/forms/field/index.d.ts +42 -0
- package/dist/src/forms/field/index.d.ts.map +1 -1
- package/dist/src/forms/field/index.js +42 -0
- package/dist/src/forms/field/index.js.map +1 -1
- package/dist/src/forms/fieldset/index.d.ts +30 -3
- package/dist/src/forms/fieldset/index.d.ts.map +1 -1
- package/dist/src/forms/fieldset/index.js +30 -3
- package/dist/src/forms/fieldset/index.js.map +1 -1
- package/dist/src/forms/file-upload/index.d.ts +48 -4
- package/dist/src/forms/file-upload/index.d.ts.map +1 -1
- package/dist/src/forms/file-upload/index.js +48 -4
- package/dist/src/forms/file-upload/index.js.map +1 -1
- package/dist/src/forms/input/index.d.ts +93 -14
- package/dist/src/forms/input/index.d.ts.map +1 -1
- package/dist/src/forms/input/index.js +93 -14
- package/dist/src/forms/input/index.js.map +1 -1
- package/dist/src/forms/select/index.d.ts +10 -6
- package/dist/src/forms/select/index.d.ts.map +1 -1
- package/dist/src/forms/select/index.js +10 -6
- package/dist/src/forms/select/index.js.map +1 -1
- package/dist/src/forms/slider/index.d.ts +15 -0
- package/dist/src/forms/slider/index.d.ts.map +1 -1
- package/dist/src/forms/slider/index.js +15 -0
- package/dist/src/forms/slider/index.js.map +1 -1
- package/dist/src/forms/switch/index.d.ts +20 -0
- package/dist/src/forms/switch/index.d.ts.map +1 -1
- package/dist/src/forms/switch/index.js +20 -0
- package/dist/src/forms/switch/index.js.map +1 -1
- package/dist/src/forms/tags-input/index.d.ts +33 -4
- package/dist/src/forms/tags-input/index.d.ts.map +1 -1
- package/dist/src/forms/tags-input/index.js +33 -4
- package/dist/src/forms/tags-input/index.js.map +1 -1
- package/dist/src/forms/textarea/index.d.ts +36 -4
- package/dist/src/forms/textarea/index.d.ts.map +1 -1
- package/dist/src/forms/textarea/index.js +36 -4
- package/dist/src/forms/textarea/index.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +135 -0
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js +135 -0
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/grid/index.d.ts +103 -0
- package/dist/src/layout/grid/index.d.ts.map +1 -1
- package/dist/src/layout/grid/index.js +103 -0
- package/dist/src/layout/grid/index.js.map +1 -1
- package/dist/src/layout/separator/index.d.ts +41 -0
- package/dist/src/layout/separator/index.d.ts.map +1 -1
- package/dist/src/layout/separator/index.js +41 -0
- package/dist/src/layout/separator/index.js.map +1 -1
- package/dist/src/layout/splitter/index.d.ts +92 -0
- package/dist/src/layout/splitter/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.js +92 -0
- package/dist/src/layout/splitter/index.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts +158 -0
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js +158 -0
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/overlays/action-bar/index.d.ts +105 -0
- package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/index.js +105 -0
- package/dist/src/overlays/action-bar/index.js.map +1 -1
- package/dist/src/overlays/dialog/index.d.ts +88 -0
- package/dist/src/overlays/dialog/index.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.js +88 -0
- package/dist/src/overlays/dialog/index.js.map +1 -1
- package/dist/src/overlays/drawer/index.d.ts +64 -0
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js +64 -0
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/hover-card/index.d.ts +77 -0
- package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.js +77 -0
- package/dist/src/overlays/hover-card/index.js.map +1 -1
- package/dist/src/overlays/menu/index.d.ts +132 -8
- package/dist/src/overlays/menu/index.d.ts.map +1 -1
- package/dist/src/overlays/menu/index.js +132 -8
- package/dist/src/overlays/menu/index.js.map +1 -1
- package/dist/src/overlays/popover/index.d.ts +84 -0
- package/dist/src/overlays/popover/index.d.ts.map +1 -1
- package/dist/src/overlays/popover/index.js +84 -0
- package/dist/src/overlays/popover/index.js.map +1 -1
- package/dist/src/overlays/toggle-tip/index.d.ts +67 -0
- package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/index.js +67 -0
- package/dist/src/overlays/toggle-tip/index.js.map +1 -1
- package/dist/src/overlays/tooltip/index.d.ts +78 -0
- package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
- package/dist/src/overlays/tooltip/index.js +78 -0
- package/dist/src/overlays/tooltip/index.js.map +1 -1
- package/dist/src/typography/index.d.ts +39 -0
- package/dist/src/typography/index.d.ts.map +1 -1
- package/dist/src/typography/index.js +39 -0
- package/dist/src/typography/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/charts/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,eAAe;AACf,OAAO,EACH,eAAe,EACf,aAAa,EACb,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,SAAS,EACT,eAAe,EACf,aAAa,GAShB,MAAM,YAAY,CAAC;AAEpB,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAuB,MAAM,iBAAiB,CAAC;AAErE,YAAY;AACZ,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC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YAAY;QACtB;;;;;;;;;WASG;QACH,QAAQ,EAAE,YAAY;QACtB;;;;;;;;;;;;;WAaG;QACH,UAAU,EAAE,cAAc;QAC1B;;;;;;;;;;;WAWG;QACH,OAAO,EAAE,WAAW;QACpB;;;;;;;;;;WAUG;QACH,WAAW,EAAE,eAAe;QAC5B;;;;;;;;;;WAUG;QACH,UAAU,EAAE,cAAc;QAC1B;;;;;;;;;WASG;QACH,cAAc,EAAE,kBAAkB;KACrC;CACK,CAAC;AAEX,oDAAoD;AACpD,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -60,8 +60,46 @@ declare function createSparkline(data: SubtypeExprOrValue<ArrayType<FloatType>>,
|
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
62
|
export declare const Sparkline: {
|
|
63
|
+
/**
|
|
64
|
+
* Creates a Sparkline component with data and optional styling.
|
|
65
|
+
*
|
|
66
|
+
* @param data - Array of numeric values to plot
|
|
67
|
+
* @param style - Optional styling configuration
|
|
68
|
+
* @returns An East expression representing the sparkline component
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Sparkline is a compact inline chart for showing trends in data.
|
|
72
|
+
* It's commonly used in tables, dashboards, and alongside statistics
|
|
73
|
+
* to show historical values or trends without taking much space.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* import { East } from "@elaraai/east";
|
|
78
|
+
* import { Sparkline, UIComponentType } from "@elaraai/east-ui";
|
|
79
|
+
*
|
|
80
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
81
|
+
* return Sparkline.Root(
|
|
82
|
+
* [1.2, 2.4, 1.8, 3.1, 2.9, 4.2],
|
|
83
|
+
* { type: "area", color: "teal.500" }
|
|
84
|
+
* );
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
63
88
|
readonly Root: typeof createSparkline;
|
|
64
89
|
readonly Types: {
|
|
90
|
+
/**
|
|
91
|
+
* The concrete East type for Sparkline component data.
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* Sparkline is a compact inline chart for showing trends.
|
|
95
|
+
* It displays an array of numeric values as a small visualization.
|
|
96
|
+
*
|
|
97
|
+
* @property data - Array of numeric values to plot (ArrayType<FloatType>)
|
|
98
|
+
* @property type - Chart type line or area (OptionType<SparklineChartType>)
|
|
99
|
+
* @property color - Line/fill color (OptionType<StringType>)
|
|
100
|
+
* @property height - Height of the sparkline (OptionType<StringType>)
|
|
101
|
+
* @property width - Width of the sparkline (OptionType<StringType>)
|
|
102
|
+
*/
|
|
65
103
|
readonly Sparkline: import("@elaraai/east").StructType<{
|
|
66
104
|
data: ArrayType<FloatType>;
|
|
67
105
|
type: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
@@ -72,6 +110,15 @@ export declare const Sparkline: {
|
|
|
72
110
|
height: import("@elaraai/east").OptionType<StringType>;
|
|
73
111
|
width: import("@elaraai/east").OptionType<StringType>;
|
|
74
112
|
}>;
|
|
113
|
+
/**
|
|
114
|
+
* Variant type for Sparkline chart appearance.
|
|
115
|
+
*
|
|
116
|
+
* @remarks
|
|
117
|
+
* Determines how the sparkline data is visualized.
|
|
118
|
+
*
|
|
119
|
+
* @property line - Line chart connecting data points
|
|
120
|
+
* @property area - Filled area chart below the line
|
|
121
|
+
*/
|
|
75
122
|
readonly ChartType: import("@elaraai/east").VariantType<{
|
|
76
123
|
line: import("@elaraai/east").NullType;
|
|
77
124
|
area: import("@elaraai/east").NullType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/charts/sparkline/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,SAAS,EACT,SAAS,EAET,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAGH,KAAK,cAAc,EACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,GACtB,MAAM,YAAY,CAAC;AAMpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iBAAS,eAAe,CACpB,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,EAC9C,KAAK,CAAC,EAAE,cAAc,GACvB,QAAQ,CAAC,eAAe,CAAC,CAoB3B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/charts/sparkline/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,SAAS,EACT,SAAS,EAET,UAAU,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAGH,KAAK,cAAc,EACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,GACtB,MAAM,YAAY,CAAC;AAMpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iBAAS,eAAe,CACpB,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,EAC9C,KAAK,CAAC,EAAE,cAAc,GACvB,QAAQ,CAAC,eAAe,CAAC,CAoB3B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,SAAS;IAClB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;;;QAGC;;;;;;;;;;;;WAYG;;;;;;;;;;;QAEH;;;;;;;;WAQG;;;;;;CAGD,CAAC"}
|
|
@@ -82,9 +82,56 @@ function createSparkline(data, style) {
|
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
84
|
export const Sparkline = {
|
|
85
|
+
/**
|
|
86
|
+
* Creates a Sparkline component with data and optional styling.
|
|
87
|
+
*
|
|
88
|
+
* @param data - Array of numeric values to plot
|
|
89
|
+
* @param style - Optional styling configuration
|
|
90
|
+
* @returns An East expression representing the sparkline component
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
* Sparkline is a compact inline chart for showing trends in data.
|
|
94
|
+
* It's commonly used in tables, dashboards, and alongside statistics
|
|
95
|
+
* to show historical values or trends without taking much space.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* import { East } from "@elaraai/east";
|
|
100
|
+
* import { Sparkline, UIComponentType } from "@elaraai/east-ui";
|
|
101
|
+
*
|
|
102
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
103
|
+
* return Sparkline.Root(
|
|
104
|
+
* [1.2, 2.4, 1.8, 3.1, 2.9, 4.2],
|
|
105
|
+
* { type: "area", color: "teal.500" }
|
|
106
|
+
* );
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
85
110
|
Root: createSparkline,
|
|
86
111
|
Types: {
|
|
112
|
+
/**
|
|
113
|
+
* The concrete East type for Sparkline component data.
|
|
114
|
+
*
|
|
115
|
+
* @remarks
|
|
116
|
+
* Sparkline is a compact inline chart for showing trends.
|
|
117
|
+
* It displays an array of numeric values as a small visualization.
|
|
118
|
+
*
|
|
119
|
+
* @property data - Array of numeric values to plot (ArrayType<FloatType>)
|
|
120
|
+
* @property type - Chart type line or area (OptionType<SparklineChartType>)
|
|
121
|
+
* @property color - Line/fill color (OptionType<StringType>)
|
|
122
|
+
* @property height - Height of the sparkline (OptionType<StringType>)
|
|
123
|
+
* @property width - Width of the sparkline (OptionType<StringType>)
|
|
124
|
+
*/
|
|
87
125
|
Sparkline: SparklineType,
|
|
126
|
+
/**
|
|
127
|
+
* Variant type for Sparkline chart appearance.
|
|
128
|
+
*
|
|
129
|
+
* @remarks
|
|
130
|
+
* Determines how the sparkline data is visualized.
|
|
131
|
+
*
|
|
132
|
+
* @property line - Line chart connecting data points
|
|
133
|
+
* @property area - Filled area chart below the line
|
|
134
|
+
*/
|
|
88
135
|
ChartType: SparklineChartType,
|
|
89
136
|
},
|
|
90
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/charts/sparkline/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGH,IAAI,EACJ,SAAS,EACT,SAAS,EACT,OAAO,EACP,UAAU,GACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACH,aAAa,EACb,kBAAkB,GAErB,MAAM,YAAY,CAAC;AAEpB,kBAAkB;AAClB,OAAO,EACH,aAAa,EACb,kBAAkB,GAGrB,MAAM,YAAY,CAAC;AAEpB,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,SAAS,eAAe,CACpB,IAA8C,EAC9C,KAAsB;IAGtB,MAAM,SAAS,GAAG,KAAK,EAAE,IAAI;QACzB,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;YAC7B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,kBAAkB,CAAC;YAC3D,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QACjB,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,cAAc,GAAG,CAAC,GAA+C,EAAE,EAAE;QACvE,IAAI,GAAG,KAAK,SAAS;YAAE,OAAO,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACpD,OAAO,OAAO,CAAC,MAAM,EAAE,GAAG,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CAAC,IAAI,KAAK,QAAQ;YAC7B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,kBAAkB,CAAC;YAC3D,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;QACjB,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,cAAc,GAAG,CAAC,GAA+C,EAAE,EAAE;QACvE,IAAI,GAAG,KAAK,SAAS;YAAE,OAAO,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACpD,OAAO,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,CAAC,CAAC;IAEF,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE;QACnC,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC;QACpE,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC;QACnC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC;QACrC,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC;KACtC,CAAC,EAAE,eAAe,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE;QACH;;;;;;;;;;;;WAYG;QACH,SAAS,EAAE,aAAa;QACxB;;;;;;;;WAQG;QACH,SAAS,EAAE,kBAAkB;KAChC;CACK,CAAC"}
|
|
@@ -136,9 +136,72 @@ declare function DataListRoot(items: SubtypeExprOrValue<ArrayType<DataListItemTy
|
|
|
136
136
|
* ```
|
|
137
137
|
*/
|
|
138
138
|
export declare const DataList: {
|
|
139
|
+
/**
|
|
140
|
+
* Creates a DataList component with items and optional styling.
|
|
141
|
+
*
|
|
142
|
+
* @param items - Array of DataList items
|
|
143
|
+
* @param style - Optional styling configuration
|
|
144
|
+
* @returns An East expression representing the data list component
|
|
145
|
+
*
|
|
146
|
+
* @remarks
|
|
147
|
+
* DataList is used to display structured label-value pairs, commonly used
|
|
148
|
+
* for displaying metadata, details, or key-value information.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```ts
|
|
152
|
+
* import { East } from "@elaraai/east";
|
|
153
|
+
* import { DataList, UIComponentType } from "@elaraai/east-ui";
|
|
154
|
+
*
|
|
155
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
156
|
+
* return DataList.Root([
|
|
157
|
+
* DataList.Item("Name", "John Doe"),
|
|
158
|
+
* DataList.Item("Email", "john@example.com"),
|
|
159
|
+
* DataList.Item("Role", "Administrator"),
|
|
160
|
+
* ], {
|
|
161
|
+
* orientation: "horizontal",
|
|
162
|
+
* });
|
|
163
|
+
* });
|
|
164
|
+
* ```
|
|
165
|
+
*/
|
|
139
166
|
readonly Root: typeof DataListRoot;
|
|
167
|
+
/**
|
|
168
|
+
* Creates a DataList item with label and value.
|
|
169
|
+
*
|
|
170
|
+
* @param label - The term/label for this item
|
|
171
|
+
* @param value - The definition/value for this item
|
|
172
|
+
* @returns An East expression representing the data list item
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* Each DataList item represents a single label-value pair.
|
|
176
|
+
* Items are typically created as an array passed to DataList.Root.
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* ```ts
|
|
180
|
+
* import { East } from "@elaraai/east";
|
|
181
|
+
* import { DataList, UIComponentType } from "@elaraai/east-ui";
|
|
182
|
+
*
|
|
183
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
184
|
+
* return DataList.Root([
|
|
185
|
+
* DataList.Item("Status", "Active"),
|
|
186
|
+
* DataList.Item("Count", "42"),
|
|
187
|
+
* ]);
|
|
188
|
+
* });
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
140
191
|
readonly Item: typeof DataListItem;
|
|
141
192
|
readonly Types: {
|
|
193
|
+
/**
|
|
194
|
+
* Type for DataList component data.
|
|
195
|
+
*
|
|
196
|
+
* @remarks
|
|
197
|
+
* DataList displays a list of label-value pairs, similar to an HTML
|
|
198
|
+
* description list (dl/dt/dd).
|
|
199
|
+
*
|
|
200
|
+
* @property items - Array of label-value items
|
|
201
|
+
* @property orientation - Layout direction (horizontal or vertical)
|
|
202
|
+
* @property size - Size of the data list
|
|
203
|
+
* @property variant - Visual variant (subtle or bold)
|
|
204
|
+
*/
|
|
142
205
|
readonly Root: StructType<{
|
|
143
206
|
items: ArrayType<StructType<{
|
|
144
207
|
label: StringType;
|
|
@@ -158,14 +221,40 @@ export declare const DataList: {
|
|
|
158
221
|
bold: import("@elaraai/east").NullType;
|
|
159
222
|
}>>;
|
|
160
223
|
}>;
|
|
224
|
+
/**
|
|
225
|
+
* Type for DataList item data.
|
|
226
|
+
*
|
|
227
|
+
* @remarks
|
|
228
|
+
* Each item in a DataList has a label and value pair.
|
|
229
|
+
*
|
|
230
|
+
* @property label - The term/label for this item
|
|
231
|
+
* @property value - The definition/value for this item
|
|
232
|
+
*/
|
|
161
233
|
readonly Item: StructType<{
|
|
162
234
|
label: StringType;
|
|
163
235
|
value: StringType;
|
|
164
236
|
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Variant types for DataList visual style.
|
|
239
|
+
*
|
|
240
|
+
* @remarks
|
|
241
|
+
* - subtle: Light/subtle styling
|
|
242
|
+
* - bold: Bold/emphasized styling
|
|
243
|
+
*/
|
|
165
244
|
readonly Variant: import("@elaraai/east").VariantType<{
|
|
166
245
|
subtle: import("@elaraai/east").NullType;
|
|
167
246
|
bold: import("@elaraai/east").NullType;
|
|
168
247
|
}>;
|
|
248
|
+
/**
|
|
249
|
+
* Size options for DataList component.
|
|
250
|
+
*
|
|
251
|
+
* @remarks
|
|
252
|
+
* Chakra UI DataList only supports sm, md, lg sizes (not xs).
|
|
253
|
+
*
|
|
254
|
+
* @property sm - Small data list
|
|
255
|
+
* @property md - Medium data list (default)
|
|
256
|
+
* @property lg - Large data list
|
|
257
|
+
*/
|
|
169
258
|
readonly Size: import("@elaraai/east").VariantType<{
|
|
170
259
|
sm: import("@elaraai/east").NullType;
|
|
171
260
|
md: import("@elaraai/east").NullType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/collections/data-list/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EAEb,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EAET,KAAK,kBAAkB,EAC1B,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAyC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EACH,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,KAAK,aAAa,GACrB,MAAM,YAAY,CAAC;AAMpB;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;EAG3B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AAMvD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AAMvD;;;;;;;;;;;;;GAaG;AACH,iBAAS,YAAY,CACjB,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,EACpC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,GACrC,QAAQ,CAAC,gBAAgB,CAAC,CAa5B;AAMD;;;;;;;;;;;;;;;;;;;;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,CACjB,KAAK,EAAE,kBAAkB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,EACtD,KAAK,CAAC,EAAE,aAAa,GACtB,QAAQ,CAAC,eAAe,CAAC,CAyB3B;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ;IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;;IAEH;;;;;;;;;;;;;;;;;;;;;;;OAuBG;;;QAGC;;;;;;;;;;;WAWG;;;;;;;;;;;;;;;;;;;;QAEH;;;;;;;;WAQG;;;;;QAEH;;;;;;WAMG;;;;;QAEH;;;;;;;;;WASG;;;;;;;CAGD,CAAC"}
|
|
@@ -165,12 +165,101 @@ function DataListRoot(items, style) {
|
|
|
165
165
|
* ```
|
|
166
166
|
*/
|
|
167
167
|
export const DataList = {
|
|
168
|
+
/**
|
|
169
|
+
* Creates a DataList component with items and optional styling.
|
|
170
|
+
*
|
|
171
|
+
* @param items - Array of DataList items
|
|
172
|
+
* @param style - Optional styling configuration
|
|
173
|
+
* @returns An East expression representing the data list component
|
|
174
|
+
*
|
|
175
|
+
* @remarks
|
|
176
|
+
* DataList is used to display structured label-value pairs, commonly used
|
|
177
|
+
* for displaying metadata, details, or key-value information.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* ```ts
|
|
181
|
+
* import { East } from "@elaraai/east";
|
|
182
|
+
* import { DataList, UIComponentType } from "@elaraai/east-ui";
|
|
183
|
+
*
|
|
184
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
185
|
+
* return DataList.Root([
|
|
186
|
+
* DataList.Item("Name", "John Doe"),
|
|
187
|
+
* DataList.Item("Email", "john@example.com"),
|
|
188
|
+
* DataList.Item("Role", "Administrator"),
|
|
189
|
+
* ], {
|
|
190
|
+
* orientation: "horizontal",
|
|
191
|
+
* });
|
|
192
|
+
* });
|
|
193
|
+
* ```
|
|
194
|
+
*/
|
|
168
195
|
Root: DataListRoot,
|
|
196
|
+
/**
|
|
197
|
+
* Creates a DataList item with label and value.
|
|
198
|
+
*
|
|
199
|
+
* @param label - The term/label for this item
|
|
200
|
+
* @param value - The definition/value for this item
|
|
201
|
+
* @returns An East expression representing the data list item
|
|
202
|
+
*
|
|
203
|
+
* @remarks
|
|
204
|
+
* Each DataList item represents a single label-value pair.
|
|
205
|
+
* Items are typically created as an array passed to DataList.Root.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```ts
|
|
209
|
+
* import { East } from "@elaraai/east";
|
|
210
|
+
* import { DataList, UIComponentType } from "@elaraai/east-ui";
|
|
211
|
+
*
|
|
212
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
213
|
+
* return DataList.Root([
|
|
214
|
+
* DataList.Item("Status", "Active"),
|
|
215
|
+
* DataList.Item("Count", "42"),
|
|
216
|
+
* ]);
|
|
217
|
+
* });
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
169
220
|
Item: DataListItem,
|
|
170
221
|
Types: {
|
|
222
|
+
/**
|
|
223
|
+
* Type for DataList component data.
|
|
224
|
+
*
|
|
225
|
+
* @remarks
|
|
226
|
+
* DataList displays a list of label-value pairs, similar to an HTML
|
|
227
|
+
* description list (dl/dt/dd).
|
|
228
|
+
*
|
|
229
|
+
* @property items - Array of label-value items
|
|
230
|
+
* @property orientation - Layout direction (horizontal or vertical)
|
|
231
|
+
* @property size - Size of the data list
|
|
232
|
+
* @property variant - Visual variant (subtle or bold)
|
|
233
|
+
*/
|
|
171
234
|
Root: DataListRootType,
|
|
235
|
+
/**
|
|
236
|
+
* Type for DataList item data.
|
|
237
|
+
*
|
|
238
|
+
* @remarks
|
|
239
|
+
* Each item in a DataList has a label and value pair.
|
|
240
|
+
*
|
|
241
|
+
* @property label - The term/label for this item
|
|
242
|
+
* @property value - The definition/value for this item
|
|
243
|
+
*/
|
|
172
244
|
Item: DataListItemType,
|
|
245
|
+
/**
|
|
246
|
+
* Variant types for DataList visual style.
|
|
247
|
+
*
|
|
248
|
+
* @remarks
|
|
249
|
+
* - subtle: Light/subtle styling
|
|
250
|
+
* - bold: Bold/emphasized styling
|
|
251
|
+
*/
|
|
173
252
|
Variant: DataListVariantType,
|
|
253
|
+
/**
|
|
254
|
+
* Size options for DataList component.
|
|
255
|
+
*
|
|
256
|
+
* @remarks
|
|
257
|
+
* Chakra UI DataList only supports sm, md, lg sizes (not xs).
|
|
258
|
+
*
|
|
259
|
+
* @property sm - Small data list
|
|
260
|
+
* @property md - Medium data list (default)
|
|
261
|
+
* @property lg - Large data list
|
|
262
|
+
*/
|
|
174
263
|
Size: DataListSizeType,
|
|
175
264
|
},
|
|
176
265
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collections/data-list/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,IAAI,EACJ,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,GAEV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAsB,MAAM,YAAY,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAwB;AACxB,OAAO,EACH,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GAGnB,MAAM,YAAY,CAAC;AAEpB,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACvC,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CACpB,CAAC,CAAC;AAOH,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACvC,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC;IAClC,WA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,KAAK,EAAE;QACH,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,mBAAmB;QAC5B,IAAI,EAAE,gBAAgB;KACzB;CACK,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/collections/data-list/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,IAAI,EACJ,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,GAEV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAsB,MAAM,YAAY,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAwB;AACxB,OAAO,EACH,mBAAmB,EACnB,eAAe,EACf,gBAAgB,GAGnB,MAAM,YAAY,CAAC;AAEpB,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACvC,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CACpB,CAAC,CAAC;AAOH,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;IACvC,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC;IAClC,WAAW,EAAE,UAAU,CAAC,eAAe,CAAC;IACxC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAClC,OAAO,EAAE,UAAU,CAAC,mBAAmB,CAAC;CAC3C,CAAC,CAAC;AAOH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;;;;;;;;;;;GAaG;AACH,SAAS,YAAY,CACjB,KAAoC,EACpC,KAAoC;IAEpC,MAAM,SAAS,GAAG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B;CACK,CAAC"}
|
|
@@ -7256,14 +7256,112 @@ declare function createGantt<T extends SubtypeExprOrValue<ArrayType<StructType>>
|
|
|
7256
7256
|
* ```
|
|
7257
7257
|
*/
|
|
7258
7258
|
export declare const Gantt: {
|
|
7259
|
-
/**
|
|
7259
|
+
/**
|
|
7260
|
+
* Creates a Gantt component following the Table pattern.
|
|
7261
|
+
*
|
|
7262
|
+
* @typeParam T - The struct type of each data row
|
|
7263
|
+
* @param data - Array of data structs
|
|
7264
|
+
* @param columns - Column specification for the left-side table columns
|
|
7265
|
+
* @param events - Function to extract events from each row
|
|
7266
|
+
* @param style - Optional Gantt styling
|
|
7267
|
+
* @returns An East expression representing the Gantt component
|
|
7268
|
+
*
|
|
7269
|
+
* @remarks
|
|
7270
|
+
* Gantt charts display time-based events (tasks and milestones) in rows.
|
|
7271
|
+
* Each row has table columns on the left and a timeline with events on the right.
|
|
7272
|
+
* The API follows the Table pattern for column configuration.
|
|
7273
|
+
*
|
|
7274
|
+
* @example
|
|
7275
|
+
* ```ts
|
|
7276
|
+
* import { East } from "@elaraai/east";
|
|
7277
|
+
* import { Gantt, UIComponentType } from "@elaraai/east-ui";
|
|
7278
|
+
*
|
|
7279
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
7280
|
+
* return Gantt.Root(
|
|
7281
|
+
* [
|
|
7282
|
+
* { name: "Design", start: new Date("2024-01-01"), end: new Date("2024-01-15") },
|
|
7283
|
+
* { name: "Development", start: new Date("2024-01-10"), end: new Date("2024-02-01") },
|
|
7284
|
+
* ],
|
|
7285
|
+
* ["name"],
|
|
7286
|
+
* row => [Gantt.Task({ start: row.start, end: row.end })],
|
|
7287
|
+
* { showToday: true }
|
|
7288
|
+
* );
|
|
7289
|
+
* });
|
|
7290
|
+
* ```
|
|
7291
|
+
*/
|
|
7260
7292
|
readonly Root: typeof createGantt;
|
|
7261
|
-
/**
|
|
7293
|
+
/**
|
|
7294
|
+
* Creates a Task event for a Gantt row.
|
|
7295
|
+
*
|
|
7296
|
+
* @param input - Task configuration
|
|
7297
|
+
* @returns An East expression representing the Task event
|
|
7298
|
+
*
|
|
7299
|
+
* @remarks
|
|
7300
|
+
* Tasks represent work items that span a duration from start to end date.
|
|
7301
|
+
* Tasks can show progress and be styled with different colors.
|
|
7302
|
+
*
|
|
7303
|
+
* @example
|
|
7304
|
+
* ```ts
|
|
7305
|
+
* import { East } from "@elaraai/east";
|
|
7306
|
+
* import { Gantt, UIComponentType } from "@elaraai/east-ui";
|
|
7307
|
+
*
|
|
7308
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
7309
|
+
* return Gantt.Root(
|
|
7310
|
+
* [{ name: "Task", start: new Date("2024-01-01"), end: new Date("2024-01-15") }],
|
|
7311
|
+
* ["name"],
|
|
7312
|
+
* row => [Gantt.Task({
|
|
7313
|
+
* start: row.start,
|
|
7314
|
+
* end: row.end,
|
|
7315
|
+
* label: "Design Phase",
|
|
7316
|
+
* progress: 75,
|
|
7317
|
+
* colorPalette: "blue",
|
|
7318
|
+
* })]
|
|
7319
|
+
* );
|
|
7320
|
+
* });
|
|
7321
|
+
* ```
|
|
7322
|
+
*/
|
|
7262
7323
|
readonly Task: typeof createTask;
|
|
7263
|
-
/**
|
|
7324
|
+
/**
|
|
7325
|
+
* Creates a Milestone event for a Gantt row.
|
|
7326
|
+
*
|
|
7327
|
+
* @param input - Milestone configuration
|
|
7328
|
+
* @returns An East expression representing the Milestone event
|
|
7329
|
+
*
|
|
7330
|
+
* @remarks
|
|
7331
|
+
* Milestones represent single points in time (e.g., deadlines, releases).
|
|
7332
|
+
* They appear as markers on the timeline rather than bars.
|
|
7333
|
+
*
|
|
7334
|
+
* @example
|
|
7335
|
+
* ```ts
|
|
7336
|
+
* import { East } from "@elaraai/east";
|
|
7337
|
+
* import { Gantt, UIComponentType } from "@elaraai/east-ui";
|
|
7338
|
+
*
|
|
7339
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
7340
|
+
* return Gantt.Root(
|
|
7341
|
+
* [{ name: "Launch", date: new Date("2024-02-01") }],
|
|
7342
|
+
* ["name"],
|
|
7343
|
+
* row => [Gantt.Milestone({
|
|
7344
|
+
* date: row.date,
|
|
7345
|
+
* label: "Launch",
|
|
7346
|
+
* colorPalette: "green",
|
|
7347
|
+
* })]
|
|
7348
|
+
* );
|
|
7349
|
+
* });
|
|
7350
|
+
* ```
|
|
7351
|
+
*/
|
|
7264
7352
|
readonly Milestone: typeof createMilestone;
|
|
7265
|
-
/** Type definitions for Gantt components */
|
|
7266
7353
|
readonly Types: {
|
|
7354
|
+
/**
|
|
7355
|
+
* Type for Gantt component data.
|
|
7356
|
+
*
|
|
7357
|
+
* @remarks
|
|
7358
|
+
* Gantt displays rows with time-based events (tasks and milestones).
|
|
7359
|
+
* The time range is derived from the events' domain.
|
|
7360
|
+
*
|
|
7361
|
+
* @property rows - Array of Gantt rows
|
|
7362
|
+
* @property columns - Array of column definitions (same as Table)
|
|
7363
|
+
* @property style - Optional styling configuration
|
|
7364
|
+
*/
|
|
7267
7365
|
readonly Root: StructType<{
|
|
7268
7366
|
rows: ArrayType<StructType<{
|
|
7269
7367
|
cells: DictType<StringType, StructType<{
|
|
@@ -10828,6 +10926,15 @@ export declare const Gantt: {
|
|
|
10828
10926
|
showToday: OptionType<BooleanType>;
|
|
10829
10927
|
}>>;
|
|
10830
10928
|
}>;
|
|
10929
|
+
/**
|
|
10930
|
+
* East type for a Gantt row.
|
|
10931
|
+
*
|
|
10932
|
+
* @remarks
|
|
10933
|
+
* Each row has table cells (displayed on the left) and events (displayed on the right as a timeline).
|
|
10934
|
+
*
|
|
10935
|
+
* @property cells - Dict of column key to cell content (same as Table)
|
|
10936
|
+
* @property events - Array of events (Task or Milestone variants)
|
|
10937
|
+
*/
|
|
10831
10938
|
readonly Row: StructType<{
|
|
10832
10939
|
cells: DictType<StringType, StructType<{
|
|
10833
10940
|
value: import("@elaraai/east").VariantType<{
|
|
@@ -14351,6 +14458,15 @@ export declare const Gantt: {
|
|
|
14351
14458
|
}>;
|
|
14352
14459
|
}>>;
|
|
14353
14460
|
}>;
|
|
14461
|
+
/**
|
|
14462
|
+
* Gantt event variant type.
|
|
14463
|
+
*
|
|
14464
|
+
* @remarks
|
|
14465
|
+
* Events can be either tasks (with duration) or milestones (single point).
|
|
14466
|
+
*
|
|
14467
|
+
* @property Task - A task spanning from start to end date
|
|
14468
|
+
* @property Milestone - A milestone at a specific date
|
|
14469
|
+
*/
|
|
14354
14470
|
readonly Event: import("@elaraai/east").VariantType<{
|
|
14355
14471
|
Task: StructType<{
|
|
14356
14472
|
start: DateTimeType;
|
|
@@ -14387,6 +14503,18 @@ export declare const Gantt: {
|
|
|
14387
14503
|
}>>;
|
|
14388
14504
|
}>;
|
|
14389
14505
|
}>;
|
|
14506
|
+
/**
|
|
14507
|
+
* Task event data for Gantt charts.
|
|
14508
|
+
*
|
|
14509
|
+
* @remarks
|
|
14510
|
+
* Represents a task bar spanning from start to end date.
|
|
14511
|
+
*
|
|
14512
|
+
* @property start - Start date/time of the task
|
|
14513
|
+
* @property end - End date/time of the task
|
|
14514
|
+
* @property label - Optional label to display on the task bar
|
|
14515
|
+
* @property progress - Optional progress percentage (0-100)
|
|
14516
|
+
* @property colorPalette - Optional color scheme for the task bar
|
|
14517
|
+
*/
|
|
14390
14518
|
readonly Task: StructType<{
|
|
14391
14519
|
start: DateTimeType;
|
|
14392
14520
|
end: DateTimeType;
|
|
@@ -14405,6 +14533,16 @@ export declare const Gantt: {
|
|
|
14405
14533
|
pink: import("@elaraai/east").NullType;
|
|
14406
14534
|
}>>;
|
|
14407
14535
|
}>;
|
|
14536
|
+
/**
|
|
14537
|
+
* Milestone event data for Gantt charts.
|
|
14538
|
+
*
|
|
14539
|
+
* @remarks
|
|
14540
|
+
* Represents a single point in time milestone.
|
|
14541
|
+
*
|
|
14542
|
+
* @property date - The date/time of the milestone
|
|
14543
|
+
* @property label - Optional label to display near the milestone
|
|
14544
|
+
* @property colorPalette - Optional color scheme for the milestone marker
|
|
14545
|
+
*/
|
|
14408
14546
|
readonly Milestone: StructType<{
|
|
14409
14547
|
date: DateTimeType;
|
|
14410
14548
|
label: OptionType<StringType>;
|
|
@@ -14421,6 +14559,22 @@ export declare const Gantt: {
|
|
|
14421
14559
|
pink: import("@elaraai/east").NullType;
|
|
14422
14560
|
}>>;
|
|
14423
14561
|
}>;
|
|
14562
|
+
/**
|
|
14563
|
+
* Style type for the Gantt component.
|
|
14564
|
+
*
|
|
14565
|
+
* @remarks
|
|
14566
|
+
* All properties are optional and wrapped in {@link OptionType}.
|
|
14567
|
+
* Reuses table styling properties where applicable.
|
|
14568
|
+
*
|
|
14569
|
+
* @property variant - Table variant (line or outline)
|
|
14570
|
+
* @property size - Table size (sm, md, lg)
|
|
14571
|
+
* @property striped - Whether to show zebra stripes on rows
|
|
14572
|
+
* @property interactive - Whether to highlight rows on hover
|
|
14573
|
+
* @property stickyHeader - Whether the header sticks when scrolling
|
|
14574
|
+
* @property showColumnBorder - Whether to show borders between columns
|
|
14575
|
+
* @property colorPalette - Default color scheme for events
|
|
14576
|
+
* @property showToday - Whether to show a today marker line
|
|
14577
|
+
*/
|
|
14424
14578
|
readonly Style: StructType<{
|
|
14425
14579
|
variant: OptionType<import("@elaraai/east").VariantType<{
|
|
14426
14580
|
line: import("@elaraai/east").NullType;
|
|
@@ -14449,6 +14603,16 @@ export declare const Gantt: {
|
|
|
14449
14603
|
}>>;
|
|
14450
14604
|
showToday: OptionType<BooleanType>;
|
|
14451
14605
|
}>;
|
|
14606
|
+
/**
|
|
14607
|
+
* East type for a table column definition.
|
|
14608
|
+
*
|
|
14609
|
+
* @remarks
|
|
14610
|
+
* Defines the header text and key for a column.
|
|
14611
|
+
*
|
|
14612
|
+
* @property key - The column key (field name)
|
|
14613
|
+
* @property type - The column value type
|
|
14614
|
+
* @property header - Optional header text for the column
|
|
14615
|
+
*/
|
|
14452
14616
|
readonly Column: StructType<{
|
|
14453
14617
|
key: StringType;
|
|
14454
14618
|
type: import("@elaraai/east").VariantType<{
|
|
@@ -14460,6 +14624,15 @@ export declare const Gantt: {
|
|
|
14460
14624
|
}>;
|
|
14461
14625
|
header: OptionType<StringType>;
|
|
14462
14626
|
}>;
|
|
14627
|
+
/**
|
|
14628
|
+
* East type for a table cell.
|
|
14629
|
+
*
|
|
14630
|
+
* @remarks
|
|
14631
|
+
* Defines the type for a table cell.
|
|
14632
|
+
*
|
|
14633
|
+
* @property value - The cell value as a literal
|
|
14634
|
+
* @property content - Optional UI component content for the cell
|
|
14635
|
+
*/
|
|
14463
14636
|
readonly Cell: StructType<{
|
|
14464
14637
|
value: import("@elaraai/east").VariantType<{
|
|
14465
14638
|
Boolean: BooleanType;
|