@elaraai/east-ui-components 0.0.1-beta.6 → 0.0.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9819 -652
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9830 -666
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
- package/dist/buttons/button/index.d.ts +0 -25
- package/dist/buttons/button/index.d.ts.map +0 -1
- package/dist/buttons/icon-button/index.d.ts +0 -22
- package/dist/buttons/icon-button/index.d.ts.map +0 -1
- package/dist/buttons/index.d.ts +0 -10
- package/dist/buttons/index.d.ts.map +0 -1
- package/dist/charts/area/index.d.ts +0 -16
- package/dist/charts/area/index.d.ts.map +0 -1
- package/dist/charts/bar/index.d.ts +0 -16
- package/dist/charts/bar/index.d.ts.map +0 -1
- package/dist/charts/bar-list/index.d.ts +0 -16
- package/dist/charts/bar-list/index.d.ts.map +0 -1
- package/dist/charts/bar-segment/index.d.ts +0 -16
- package/dist/charts/bar-segment/index.d.ts.map +0 -1
- package/dist/charts/index.d.ts +0 -17
- package/dist/charts/index.d.ts.map +0 -1
- package/dist/charts/line/index.d.ts +0 -16
- package/dist/charts/line/index.d.ts.map +0 -1
- package/dist/charts/pie/index.d.ts +0 -16
- package/dist/charts/pie/index.d.ts.map +0 -1
- package/dist/charts/radar/index.d.ts +0 -16
- package/dist/charts/radar/index.d.ts.map +0 -1
- package/dist/charts/scatter/index.d.ts +0 -16
- package/dist/charts/scatter/index.d.ts.map +0 -1
- package/dist/charts/sparkline/index.d.ts +0 -35
- package/dist/charts/sparkline/index.d.ts.map +0 -1
- package/dist/charts/utils.d.ts +0 -151
- package/dist/charts/utils.d.ts.map +0 -1
- package/dist/collections/data-list/index.d.ts +0 -24
- package/dist/collections/data-list/index.d.ts.map +0 -1
- package/dist/collections/gantt/EventAxis.d.ts +0 -14
- package/dist/collections/gantt/EventAxis.d.ts.map +0 -1
- package/dist/collections/gantt/GanttEventRow.d.ts +0 -20
- package/dist/collections/gantt/GanttEventRow.d.ts.map +0 -1
- package/dist/collections/gantt/GanttMilestone.d.ts +0 -16
- package/dist/collections/gantt/GanttMilestone.d.ts.map +0 -1
- package/dist/collections/gantt/GanttTask.d.ts +0 -17
- package/dist/collections/gantt/GanttTask.d.ts.map +0 -1
- package/dist/collections/gantt/index.d.ts +0 -65
- package/dist/collections/gantt/index.d.ts.map +0 -1
- package/dist/collections/index.d.ts +0 -8
- package/dist/collections/index.d.ts.map +0 -1
- package/dist/collections/table/index.d.ts +0 -59
- package/dist/collections/table/index.d.ts.map +0 -1
- package/dist/collections/tree-view/index.d.ts +0 -31
- package/dist/collections/tree-view/index.d.ts.map +0 -1
- package/dist/component.d.ts +0 -15
- package/dist/component.d.ts.map +0 -1
- package/dist/container/card/index.d.ts +0 -22
- package/dist/container/card/index.d.ts.map +0 -1
- package/dist/container/index.d.ts +0 -6
- package/dist/container/index.d.ts.map +0 -1
- package/dist/disclosure/accordion/index.d.ts +0 -36
- package/dist/disclosure/accordion/index.d.ts.map +0 -1
- package/dist/disclosure/carousel/index.d.ts +0 -22
- package/dist/disclosure/carousel/index.d.ts.map +0 -1
- package/dist/disclosure/index.d.ts +0 -8
- package/dist/disclosure/index.d.ts.map +0 -1
- package/dist/disclosure/tabs/index.d.ts +0 -45
- package/dist/disclosure/tabs/index.d.ts.map +0 -1
- package/dist/display/avatar/index.d.ts +0 -22
- package/dist/display/avatar/index.d.ts.map +0 -1
- package/dist/display/badge/index.d.ts +0 -22
- package/dist/display/badge/index.d.ts.map +0 -1
- package/dist/display/icon/index.d.ts +0 -22
- package/dist/display/icon/index.d.ts.map +0 -1
- package/dist/display/index.d.ts +0 -10
- package/dist/display/index.d.ts.map +0 -1
- package/dist/display/stat/index.d.ts +0 -16
- package/dist/display/stat/index.d.ts.map +0 -1
- package/dist/display/tag/index.d.ts +0 -22
- package/dist/display/tag/index.d.ts.map +0 -1
- package/dist/feedback/alert/index.d.ts +0 -22
- package/dist/feedback/alert/index.d.ts.map +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.d.ts.map +0 -1
- package/dist/feedback/progress/index.d.ts +0 -22
- package/dist/feedback/progress/index.d.ts.map +0 -1
- package/dist/forms/checkbox/index.d.ts +0 -22
- package/dist/forms/checkbox/index.d.ts.map +0 -1
- package/dist/forms/field/index.d.ts +0 -22
- package/dist/forms/field/index.d.ts.map +0 -1
- package/dist/forms/fieldset/index.d.ts +0 -76
- package/dist/forms/fieldset/index.d.ts.map +0 -1
- package/dist/forms/file-upload/index.d.ts +0 -22
- package/dist/forms/file-upload/index.d.ts.map +0 -1
- package/dist/forms/index.d.ts +0 -15
- package/dist/forms/index.d.ts.map +0 -1
- package/dist/forms/input/index.d.ts +0 -60
- package/dist/forms/input/index.d.ts.map +0 -1
- package/dist/forms/select/index.d.ts +0 -31
- package/dist/forms/select/index.d.ts.map +0 -1
- package/dist/forms/slider/index.d.ts +0 -22
- package/dist/forms/slider/index.d.ts.map +0 -1
- package/dist/forms/switch/index.d.ts +0 -22
- package/dist/forms/switch/index.d.ts.map +0 -1
- package/dist/forms/tags-input/index.d.ts +0 -22
- package/dist/forms/tags-input/index.d.ts.map +0 -1
- package/dist/forms/textarea/index.d.ts +0 -22
- package/dist/forms/textarea/index.d.ts.map +0 -1
- package/dist/index.d.ts +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/layout/box/index.d.ts +0 -25
- package/dist/layout/box/index.d.ts.map +0 -1
- package/dist/layout/grid/index.d.ts +0 -25
- package/dist/layout/grid/index.d.ts.map +0 -1
- package/dist/layout/index.d.ts +0 -13
- package/dist/layout/index.d.ts.map +0 -1
- package/dist/layout/separator/index.d.ts +0 -25
- package/dist/layout/separator/index.d.ts.map +0 -1
- package/dist/layout/splitter/index.d.ts +0 -33
- package/dist/layout/splitter/index.d.ts.map +0 -1
- package/dist/layout/stack/index.d.ts +0 -25
- package/dist/layout/stack/index.d.ts.map +0 -1
- package/dist/overlays/action-bar/index.d.ts +0 -18
- package/dist/overlays/action-bar/index.d.ts.map +0 -1
- package/dist/overlays/dialog/index.d.ts +0 -16
- package/dist/overlays/dialog/index.d.ts.map +0 -1
- package/dist/overlays/drawer/index.d.ts +0 -16
- package/dist/overlays/drawer/index.d.ts.map +0 -1
- package/dist/overlays/hover-card/index.d.ts +0 -16
- package/dist/overlays/hover-card/index.d.ts.map +0 -1
- package/dist/overlays/index.d.ts +0 -13
- package/dist/overlays/index.d.ts.map +0 -1
- package/dist/overlays/menu/index.d.ts +0 -18
- package/dist/overlays/menu/index.d.ts.map +0 -1
- package/dist/overlays/popover/index.d.ts +0 -16
- package/dist/overlays/popover/index.d.ts.map +0 -1
- package/dist/overlays/toggle-tip/index.d.ts +0 -17
- package/dist/overlays/toggle-tip/index.d.ts.map +0 -1
- package/dist/overlays/tooltip/index.d.ts +0 -16
- package/dist/overlays/tooltip/index.d.ts.map +0 -1
- package/dist/platform/hooks.d.ts +0 -145
- package/dist/platform/hooks.d.ts.map +0 -1
- package/dist/platform/index.d.ts +0 -16
- package/dist/platform/index.d.ts.map +0 -1
- package/dist/platform/store.d.ts +0 -114
- package/dist/platform/store.d.ts.map +0 -1
- package/dist/typography/code/index.d.ts +0 -22
- package/dist/typography/code/index.d.ts.map +0 -1
- package/dist/typography/code-block/index.d.ts +0 -35
- package/dist/typography/code-block/index.d.ts.map +0 -1
- package/dist/typography/heading/index.d.ts +0 -22
- package/dist/typography/heading/index.d.ts.map +0 -1
- package/dist/typography/highlight/index.d.ts +0 -27
- package/dist/typography/highlight/index.d.ts.map +0 -1
- package/dist/typography/index.d.ts +0 -13
- package/dist/typography/index.d.ts.map +0 -1
- package/dist/typography/link/index.d.ts +0 -22
- package/dist/typography/link/index.d.ts.map +0 -1
- package/dist/typography/list/index.d.ts +0 -22
- package/dist/typography/list/index.d.ts.map +0 -1
- package/dist/typography/mark/index.d.ts +0 -22
- package/dist/typography/mark/index.d.ts.map +0 -1
- package/dist/typography/text/index.d.ts +0 -25
- package/dist/typography/text/index.d.ts.map +0 -1
- package/dist/utils/RowSortManager.d.ts +0 -68
- package/dist/utils/RowSortManager.d.ts.map +0 -1
- package/dist/utils/RowStateManager.d.ts +0 -42
- package/dist/utils/RowStateManager.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -7
- package/dist/utils.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/east-ui-components",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.7",
|
|
4
4
|
"description": "React components for rendering East UI types with Chakra UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -35,14 +35,18 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@chakra-ui/charts": "^3.30.0",
|
|
37
37
|
"@chakra-ui/react": "^3.0.0",
|
|
38
|
-
"@elaraai/east": "^0.0.1-beta.
|
|
39
|
-
"@elaraai/east-ui": "^0.0.1-beta.
|
|
38
|
+
"@elaraai/east": "^0.0.1-beta.14",
|
|
39
|
+
"@elaraai/east-ui": "^0.0.1-beta.7",
|
|
40
40
|
"@emotion/react": "^11.14.0",
|
|
41
41
|
"@fortawesome/fontawesome-svg-core": "^7.1.0",
|
|
42
42
|
"@fortawesome/free-brands-svg-icons": "^7.1.0",
|
|
43
43
|
"@fortawesome/free-regular-svg-icons": "^7.1.0",
|
|
44
44
|
"@fortawesome/free-solid-svg-icons": "^7.1.0",
|
|
45
45
|
"@fortawesome/react-fontawesome": "^3.1.1",
|
|
46
|
+
"@internationalized/date": "^3.8.0",
|
|
47
|
+
"@react-aria/datepicker": "^3.14.0",
|
|
48
|
+
"@react-aria/i18n": "^3.12.8",
|
|
49
|
+
"@react-stately/datepicker": "^3.14.0",
|
|
46
50
|
"@tanstack/react-table": "^8.21.3",
|
|
47
51
|
"@tanstack/react-virtual": "^3.13.9",
|
|
48
52
|
"recharts": "^3.5.0",
|
|
@@ -1,25 +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 ButtonProps } from "@chakra-ui/react";
|
|
6
|
-
import { type ValueTypeOf } from "@elaraai/east";
|
|
7
|
-
import { Button } from "@elaraai/east-ui";
|
|
8
|
-
/** East Button value type */
|
|
9
|
-
export type ButtonValue = ValueTypeOf<typeof Button.Types.Button>;
|
|
10
|
-
/**
|
|
11
|
-
* Converts an East UI Button value to Chakra UI Button props.
|
|
12
|
-
* Pure function - easy to test independently.
|
|
13
|
-
*
|
|
14
|
-
* @param value - The East Button value
|
|
15
|
-
* @returns Chakra Button props
|
|
16
|
-
*/
|
|
17
|
-
export declare function toChakraButton(value: ButtonValue): ButtonProps;
|
|
18
|
-
export interface EastChakraButtonProps {
|
|
19
|
-
value: ButtonValue;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Renders an East UI Button value using Chakra UI Button component.
|
|
23
|
-
*/
|
|
24
|
-
export declare const EastChakraButton: import("react").NamedExoticComponent<EastChakraButtonProps>;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/buttons/button/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAM1C,6BAA6B;AAC7B,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAElE;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,CAU9D;AAED,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,WAAW,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,6DAQ0B,CAAC"}
|
|
@@ -1,22 +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 IconButtonProps } from "@chakra-ui/react";
|
|
6
|
-
import { type ValueTypeOf } from "@elaraai/east";
|
|
7
|
-
import { IconButton } from "@elaraai/east-ui";
|
|
8
|
-
/** East IconButton value type */
|
|
9
|
-
export type IconButtonValue = ValueTypeOf<typeof IconButton.Types.IconButton>;
|
|
10
|
-
/**
|
|
11
|
-
* Converts an East UI IconButton value to Chakra UI IconButton props.
|
|
12
|
-
* Pure function - easy to test independently.
|
|
13
|
-
*/
|
|
14
|
-
export declare function toChakraIconButton(value: IconButtonValue): Omit<IconButtonProps, "children" | "aria-label">;
|
|
15
|
-
export interface EastChakraIconButtonProps {
|
|
16
|
-
value: IconButtonValue;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Renders an East UI IconButton value using Chakra UI IconButton component.
|
|
20
|
-
*/
|
|
21
|
-
export declare const EastChakraIconButton: import("react").NamedExoticComponent<EastChakraIconButtonProps>;
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/buttons/icon-button/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAkC,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAMxF,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAU9C,iCAAiC;AACjC,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAE9E;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,YAAY,CAAC,CAU3G;AAED,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,eAAe,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,iEAQ0B,CAAC"}
|
package/dist/buttons/index.d.ts
DELETED
|
@@ -1,10 +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
|
-
* Button components for interactive actions.
|
|
7
|
-
*/
|
|
8
|
-
export { toChakraButton, EastChakraButton, type ButtonValue, type EastChakraButtonProps, } from "./button/index.js";
|
|
9
|
-
export { toChakraIconButton, EastChakraIconButton, type IconButtonValue, type EastChakraIconButtonProps, } from "./icon-button/index.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/buttons/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,OAAO,EACH,cAAc,EACd,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,qBAAqB,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,eAAe,EACpB,KAAK,yBAAyB,GACjC,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East AreaChart value type */
|
|
8
|
-
export type AreaChartValue = ValueTypeOf<typeof EastChart.Types.AreaChart>;
|
|
9
|
-
export interface EastChakraAreaChartProps {
|
|
10
|
-
value: AreaChartValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI AreaChart value using Chakra UI Charts.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraAreaChart: import("react").NamedExoticComponent<EastChakraAreaChartProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/area/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqBtD,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,gEA6I0B,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East BarChart value type */
|
|
8
|
-
export type BarChartValue = ValueTypeOf<typeof EastChart.Types.BarChart>;
|
|
9
|
-
export interface EastChakraBarChartProps {
|
|
10
|
-
value: BarChartValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI BarChart value using Chakra UI Charts.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraBarChart: import("react").NamedExoticComponent<EastChakraBarChartProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/bar/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqBtD,+BAA+B;AAC/B,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAEzE,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,aAAa,CAAC;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,+DA0J0B,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East BarList value type */
|
|
8
|
-
export type BarListValue = ValueTypeOf<typeof EastChart.Types.BarList>;
|
|
9
|
-
export interface EastChakraBarListProps {
|
|
10
|
-
value: BarListValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI BarList value using Chakra UI BarList.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraBarList: import("react").NamedExoticComponent<EastChakraBarListProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/bar-list/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMtD,8BAA8B;AAC9B,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAEvE,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,YAAY,CAAC;CACvB;AAmED;;GAEG;AACH,eAAO,MAAM,iBAAiB,8DAgD0B,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East BarSegment value type */
|
|
8
|
-
export type BarSegmentValue = ValueTypeOf<typeof EastChart.Types.BarSegment>;
|
|
9
|
-
export interface EastChakraBarSegmentProps {
|
|
10
|
-
value: BarSegmentValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI BarSegment value using Chakra UI BarSegment.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraBarSegment: import("react").NamedExoticComponent<EastChakraBarSegmentProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/bar-segment/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMtD,iCAAiC;AACjC,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAE7E,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,eAAe,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,iEAqC0B,CAAC"}
|
package/dist/charts/index.d.ts
DELETED
|
@@ -1,17 +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
|
-
* Chart components for data visualization.
|
|
7
|
-
*/
|
|
8
|
-
export { EastChakraSparkline, type EastChakraSparklineProps } from "./sparkline/index.js";
|
|
9
|
-
export { EastChakraAreaChart, type EastChakraAreaChartProps } from "./area/index.js";
|
|
10
|
-
export { EastChakraBarChart, type EastChakraBarChartProps } from "./bar/index.js";
|
|
11
|
-
export { EastChakraLineChart, type EastChakraLineChartProps } from "./line/index.js";
|
|
12
|
-
export { EastChakraScatterChart, type EastChakraScatterChartProps } from "./scatter/index.js";
|
|
13
|
-
export { EastChakraPieChart, type EastChakraPieChartProps } from "./pie/index.js";
|
|
14
|
-
export { EastChakraRadarChart, type EastChakraRadarChartProps } from "./radar/index.js";
|
|
15
|
-
export { EastChakraBarList, type EastChakraBarListProps } from "./bar-list/index.js";
|
|
16
|
-
export { EastChakraBarSegment, type EastChakraBarSegmentProps } from "./bar-segment/index.js";
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/charts/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,KAAK,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East LineChart value type */
|
|
8
|
-
export type LineChartValue = ValueTypeOf<typeof EastChart.Types.LineChart>;
|
|
9
|
-
export interface EastChakraLineChartProps {
|
|
10
|
-
value: LineChartValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI LineChart value using Chakra UI Charts.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraLineChart: import("react").NamedExoticComponent<EastChakraLineChartProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/line/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqBtD,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,gEA4I0B,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East PieChart value type */
|
|
8
|
-
export type PieChartValue = ValueTypeOf<typeof EastChart.Types.PieChart>;
|
|
9
|
-
export interface EastChakraPieChartProps {
|
|
10
|
-
value: PieChartValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI PieChart value using Chakra UI Charts.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraPieChart: import("react").NamedExoticComponent<EastChakraPieChartProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/pie/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAatD,+BAA+B;AAC/B,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAEzE,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,aAAa,CAAC;CACxB;AAgBD;;GAEG;AACH,eAAO,MAAM,kBAAkB,+DA4F0B,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East RadarChart value type */
|
|
8
|
-
export type RadarChartValue = ValueTypeOf<typeof EastChart.Types.RadarChart>;
|
|
9
|
-
export interface EastChakraRadarChartProps {
|
|
10
|
-
value: RadarChartValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI RadarChart value using Chakra UI Charts.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraRadarChart: import("react").NamedExoticComponent<EastChakraRadarChartProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/radar/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAetD,iCAAiC;AACjC,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAE7E,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,eAAe,CAAC;CAC1B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,iEA+F0B,CAAC"}
|
|
@@ -1,16 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Chart as EastChart } from "@elaraai/east-ui";
|
|
7
|
-
/** East ScatterChart value type */
|
|
8
|
-
export type ScatterChartValue = ValueTypeOf<typeof EastChart.Types.ScatterChart>;
|
|
9
|
-
export interface EastChakraScatterChartProps {
|
|
10
|
-
value: ScatterChartValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI ScatterChart value using Chakra UI Charts.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraScatterChart: import("react").NamedExoticComponent<EastChakraScatterChartProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/scatter/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAqBtD,mCAAmC;AACnC,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;AAEjF,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,iBAAiB,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,mEA4I0B,CAAC"}
|
|
@@ -1,35 +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 ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import { Sparkline } from "@elaraai/east-ui";
|
|
7
|
-
/** East Sparkline value type */
|
|
8
|
-
export type SparklineValue = ValueTypeOf<typeof Sparkline.Types.Sparkline>;
|
|
9
|
-
/**
|
|
10
|
-
* Sparkline style props for rendering.
|
|
11
|
-
*/
|
|
12
|
-
export interface SparklineStyleProps {
|
|
13
|
-
data: number[];
|
|
14
|
-
chartType: "line" | "area";
|
|
15
|
-
color: string;
|
|
16
|
-
width: string;
|
|
17
|
-
height: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Converts an East UI Sparkline value to Sparkline style props.
|
|
21
|
-
* Pure function - easy to test independently.
|
|
22
|
-
*
|
|
23
|
-
* @param value - The East Sparkline value
|
|
24
|
-
* @returns Sparkline style props
|
|
25
|
-
*/
|
|
26
|
-
export declare function toChakraSparkline(value: SparklineValue): SparklineStyleProps;
|
|
27
|
-
export interface EastChakraSparklineProps {
|
|
28
|
-
value: SparklineValue;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Renders an East UI Sparkline value using simple inline SVG.
|
|
32
|
-
* Lightweight implementation suitable for table cells and dense layouts.
|
|
33
|
-
*/
|
|
34
|
-
export declare const EastChakraSparkline: import("react").NamedExoticComponent<EastChakraSparklineProps>;
|
|
35
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/charts/sparkline/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,mBAAmB,CAQ5E;AAED,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,cAAc,CAAC;CACzB;AAuDD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,gEAkD0B,CAAC"}
|
package/dist/charts/utils.d.ts
DELETED
|
@@ -1,151 +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 ValueTypeOf, type LiteralValueType } from "@elaraai/east";
|
|
6
|
-
import type { ChartAxisType, ChartSeriesType, ChartGridType, ChartLegendType, ChartTooltipType, ChartMarginType, TickFormatType } from "@elaraai/east-ui/internal";
|
|
7
|
-
import type { UseChartProps, UseChartReturn } from "@chakra-ui/charts";
|
|
8
|
-
import type { CartesianGridProps, XAxisProps, YAxisProps, TooltipProps as RechartsTooltipProps, LegendProps as RechartsLegendProps } from "recharts";
|
|
9
|
-
/** East ChartSeries value type */
|
|
10
|
-
export type ChartSeriesValue = ValueTypeOf<ChartSeriesType>;
|
|
11
|
-
/** East ChartAxis value type */
|
|
12
|
-
export type ChartAxisValue = ValueTypeOf<ChartAxisType>;
|
|
13
|
-
/** East ChartGrid value type */
|
|
14
|
-
export type ChartGridValue = ValueTypeOf<ChartGridType>;
|
|
15
|
-
/** East ChartLegend value type */
|
|
16
|
-
export type ChartLegendValue = ValueTypeOf<ChartLegendType>;
|
|
17
|
-
/** East ChartTooltip value type */
|
|
18
|
-
export type ChartTooltipValue = ValueTypeOf<ChartTooltipType>;
|
|
19
|
-
/** East ChartMargin value type */
|
|
20
|
-
export type ChartMarginValue = ValueTypeOf<ChartMarginType>;
|
|
21
|
-
/** East TickFormat value type */
|
|
22
|
-
export type TickFormatValue = ValueTypeOf<TickFormatType>;
|
|
23
|
-
/** Recharts margin type */
|
|
24
|
-
export interface RechartsMargin {
|
|
25
|
-
top?: number;
|
|
26
|
-
right?: number;
|
|
27
|
-
bottom?: number;
|
|
28
|
-
left?: number;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Series item type derived from Chakra's UseChartProps.
|
|
32
|
-
* This is the type expected by useChart's series parameter.
|
|
33
|
-
*/
|
|
34
|
-
export type ChartSeriesItem = NonNullable<UseChartProps<Record<string, unknown>>["series"]>[number];
|
|
35
|
-
/**
|
|
36
|
-
* Converts an East ChartSeries value to props for Chakra useChart series.
|
|
37
|
-
* Pure function - easy to test independently.
|
|
38
|
-
*
|
|
39
|
-
* @param value - The East ChartSeries value
|
|
40
|
-
* @returns ChartSeriesItem props for Chakra useChart
|
|
41
|
-
*/
|
|
42
|
-
export declare function toChartSeries(value: ChartSeriesValue): ChartSeriesItem;
|
|
43
|
-
/**
|
|
44
|
-
* Converts an East ChartAxis value to XAxis component props.
|
|
45
|
-
* Pure function - easy to test independently.
|
|
46
|
-
*
|
|
47
|
-
* @param value - The East ChartAxis value
|
|
48
|
-
* @param chart - The Chakra chart instance (for key() function)
|
|
49
|
-
* @returns Partial XAxisProps
|
|
50
|
-
*/
|
|
51
|
-
export declare function toRechartsXAxis(value: ChartAxisValue, chart: UseChartReturn<Record<string, unknown>>): Partial<XAxisProps>;
|
|
52
|
-
/**
|
|
53
|
-
* Converts an East ChartAxis value to YAxis component props.
|
|
54
|
-
* Pure function - easy to test independently.
|
|
55
|
-
*
|
|
56
|
-
* @param value - The East ChartAxis value
|
|
57
|
-
* @param chart - The Chakra chart instance (for key() function)
|
|
58
|
-
* @returns Partial YAxisProps
|
|
59
|
-
*/
|
|
60
|
-
export declare function toRechartsYAxis(value: ChartAxisValue, chart: UseChartReturn<Record<string, unknown>>): Partial<YAxisProps>;
|
|
61
|
-
/**
|
|
62
|
-
* Extracts the tick format value from an East ChartAxis value.
|
|
63
|
-
*
|
|
64
|
-
* @param value - The East ChartAxis value
|
|
65
|
-
* @returns The TickFormat value or undefined
|
|
66
|
-
*/
|
|
67
|
-
export declare function getAxisTickFormat(value: ChartAxisValue): TickFormatValue | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Converts an East ChartGrid value to CartesianGrid component props.
|
|
70
|
-
* Pure function - easy to test independently.
|
|
71
|
-
*
|
|
72
|
-
* @param value - The East ChartGrid value
|
|
73
|
-
* @param chart - The Chakra chart instance (for color() function)
|
|
74
|
-
* @returns Partial CartesianGridProps
|
|
75
|
-
*/
|
|
76
|
-
export declare function toRechartsCartesianGrid(value: ChartGridValue, chart: UseChartReturn<Record<string, unknown>>): Partial<CartesianGridProps>;
|
|
77
|
-
/**
|
|
78
|
-
* Checks if grid should be shown from an East ChartGrid value.
|
|
79
|
-
*
|
|
80
|
-
* @param value - The East ChartGrid value
|
|
81
|
-
* @returns Whether the grid should be shown
|
|
82
|
-
*/
|
|
83
|
-
export declare function shouldShowGrid(value: ChartGridValue): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Converts an East ChartLegend value to Legend component props.
|
|
86
|
-
* Pure function - easy to test independently.
|
|
87
|
-
*
|
|
88
|
-
* @param value - The East ChartLegend value
|
|
89
|
-
* @returns Partial RechartsLegendProps
|
|
90
|
-
*/
|
|
91
|
-
export declare function toRechartsLegend(value: ChartLegendValue): Partial<RechartsLegendProps>;
|
|
92
|
-
/**
|
|
93
|
-
* Checks if legend should be shown from an East ChartLegend value.
|
|
94
|
-
*
|
|
95
|
-
* @param value - The East ChartLegend value
|
|
96
|
-
* @returns Whether the legend should be shown
|
|
97
|
-
*/
|
|
98
|
-
export declare function shouldShowLegend(value: ChartLegendValue): boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Converts an East ChartTooltip value to Tooltip component props.
|
|
101
|
-
* Pure function - easy to test independently.
|
|
102
|
-
*
|
|
103
|
-
* @param value - The East ChartTooltip value
|
|
104
|
-
* @returns Partial RechartsTooltipProps
|
|
105
|
-
*/
|
|
106
|
-
export declare function toRechartsTooltip<TValue extends number | string | Array<number | string>, TName extends string>(value: ChartTooltipValue): Partial<RechartsTooltipProps<TValue, TName>>;
|
|
107
|
-
/**
|
|
108
|
-
* Checks if tooltip should be shown from an East ChartTooltip value.
|
|
109
|
-
*
|
|
110
|
-
* @param value - The East ChartTooltip value
|
|
111
|
-
* @returns Whether the tooltip should be shown
|
|
112
|
-
*/
|
|
113
|
-
export declare function shouldShowTooltip(value: ChartTooltipValue): boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Converts an East ChartMargin value to Recharts Margin.
|
|
116
|
-
* Pure function - easy to test independently.
|
|
117
|
-
*
|
|
118
|
-
* @param value - The East ChartMargin value
|
|
119
|
-
* @returns Margin props for Recharts
|
|
120
|
-
*/
|
|
121
|
-
export declare function toRechartsMargin(value: ChartMarginValue): RechartsMargin;
|
|
122
|
-
/**
|
|
123
|
-
* Creates a tick formatter function based on TickFormat value and Chakra chart.
|
|
124
|
-
*
|
|
125
|
-
* @param value - The East TickFormat value
|
|
126
|
-
* @param chart - The Chakra chart instance
|
|
127
|
-
* @returns A tick formatter function or undefined
|
|
128
|
-
*/
|
|
129
|
-
export declare function createTickFormatter(value: TickFormatValue | undefined, chart: UseChartReturn<Record<string, unknown>>): ((value: number) => string) | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* Converts an East LiteralValue to a plain JavaScript value.
|
|
132
|
-
*
|
|
133
|
-
* @param value - The East LiteralValue
|
|
134
|
-
* @returns The plain JavaScript value
|
|
135
|
-
*/
|
|
136
|
-
export declare function convertLiteralValue(value: ValueTypeOf<typeof LiteralValueType>): unknown;
|
|
137
|
-
/**
|
|
138
|
-
* Converts an East Dict data point (Map) to a plain object.
|
|
139
|
-
*
|
|
140
|
-
* @param dataPoint - The East Dict data point
|
|
141
|
-
* @returns A plain JavaScript object
|
|
142
|
-
*/
|
|
143
|
-
export declare function convertDataPoint(dataPoint: Map<string, ValueTypeOf<typeof LiteralValueType>>): Record<string, unknown>;
|
|
144
|
-
/**
|
|
145
|
-
* Converts an array of East Dict data points to plain objects.
|
|
146
|
-
*
|
|
147
|
-
* @param data - Array of East Dict data points
|
|
148
|
-
* @returns Array of plain JavaScript objects
|
|
149
|
-
*/
|
|
150
|
-
export declare function convertChartData(data: Map<string, ValueTypeOf<typeof LiteralValueType>>[]): Record<string, unknown>[];
|
|
151
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/charts/utils.ts"],"names":[],"mappings":"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"}
|
|
@@ -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 { type DataListRootProps } from "@chakra-ui/react";
|
|
6
|
-
import { type ValueTypeOf } from "@elaraai/east";
|
|
7
|
-
import { DataList } from "@elaraai/east-ui";
|
|
8
|
-
/** East DataList Root value type */
|
|
9
|
-
export type DataListRootValue = ValueTypeOf<typeof DataList.Types.Root>;
|
|
10
|
-
/** East DataList Item value type */
|
|
11
|
-
export type DataListItemValue = ValueTypeOf<typeof DataList.Types.Item>;
|
|
12
|
-
/**
|
|
13
|
-
* Converts an East UI DataList Root value to Chakra UI DataListRoot props.
|
|
14
|
-
* Pure function - easy to test independently.
|
|
15
|
-
*/
|
|
16
|
-
export declare function toChakraDataListRoot(value: DataListRootValue): DataListRootProps;
|
|
17
|
-
export interface EastChakraDataListProps {
|
|
18
|
-
value: DataListRootValue;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Renders an East UI DataList value using Chakra UI DataList components.
|
|
22
|
-
*/
|
|
23
|
-
export declare const EastChakraDataList: import("react").NamedExoticComponent<EastChakraDataListProps>;
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/collections/data-list/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAEH,KAAK,iBAAiB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAM5C,oCAAoC;AACpC,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAExE,oCAAoC;AACpC,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAExE;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,iBAAiB,GAAG,iBAAiB,CAMhF;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,iBAAiB,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,+DAa8B,CAAC"}
|
|
@@ -1,14 +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
|
-
export interface EventAxisProps {
|
|
6
|
-
startDate: Date;
|
|
7
|
-
endDate: Date;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const generateDateTicks: (startDate: Date, endDate: Date, maxTicks?: number) => Date[];
|
|
12
|
-
export declare const getDatePosition: (date: Date, startDate: Date, endDate: Date, width: number) => number;
|
|
13
|
-
export declare const EventAxis: ({ startDate, endDate, width, height, }: EventAxisProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
//# sourceMappingURL=EventAxis.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventAxis.d.ts","sourceRoot":"","sources":["../../../src/collections/gantt/EventAxis.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AASD,eAAO,MAAM,iBAAiB,GAAI,WAAW,IAAI,EAAE,SAAS,IAAI,EAAE,WAAU,MAAU,KAAG,IAAI,EAa5F,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,EAAE,WAAW,IAAI,EAAE,SAAS,IAAI,EAAE,OAAO,MAAM,KAAG,MAK3F,CAAC;AAKF,eAAO,MAAM,SAAS,GAAI,wCAKvB,cAAc,4CA8ChB,CAAC"}
|
|
@@ -1,20 +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 { ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import type { Gantt } from "@elaraai/east-ui";
|
|
7
|
-
export type GanttEventValue = ValueTypeOf<typeof Gantt.Types.Event>;
|
|
8
|
-
export type GanttRowValue = ValueTypeOf<typeof Gantt.Types.Row>;
|
|
9
|
-
export interface GanttEventRowProps {
|
|
10
|
-
events: GanttEventValue[];
|
|
11
|
-
rowIndex: number;
|
|
12
|
-
y: number;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
startDate: Date;
|
|
16
|
-
endDate: Date;
|
|
17
|
-
onEventClick?: ((event: GanttEventValue, rowIndex: number, eventIndex: number) => void) | undefined;
|
|
18
|
-
}
|
|
19
|
-
export declare const GanttEventRow: ({ events, rowIndex, y, width, height, startDate, endDate, onEventClick, }: GanttEventRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
//# sourceMappingURL=GanttEventRow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GanttEventRow.d.ts","sourceRoot":"","sources":["../../../src/collections/gantt/GanttEventRow.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI9C,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AAEhE,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACvG;AA2CD,eAAO,MAAM,aAAa,GAAI,2EAS3B,kBAAkB,4CAsCpB,CAAC"}
|
|
@@ -1,16 +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 { ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import type { Gantt } from "@elaraai/east-ui";
|
|
7
|
-
export type GanttMilestoneValue = ValueTypeOf<typeof Gantt.Types.Milestone>;
|
|
8
|
-
export interface GanttMilestoneProps {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
height: number;
|
|
12
|
-
value: GanttMilestoneValue;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const GanttMilestone: ({ x, y, height, value, onClick, }: GanttMilestoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
//# sourceMappingURL=GanttMilestone.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GanttMilestone.d.ts","sourceRoot":"","sources":["../../../src/collections/gantt/GanttMilestone.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG9C,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,OAAO,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE5E,MAAM,WAAW,mBAAmB;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,mBAAmB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAQD,eAAO,MAAM,cAAc,GAAI,mCAM5B,mBAAmB,4CAsErB,CAAC"}
|
|
@@ -1,17 +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 { ValueTypeOf } from "@elaraai/east";
|
|
6
|
-
import type { Gantt } from "@elaraai/east-ui";
|
|
7
|
-
export type GanttTaskValue = ValueTypeOf<typeof Gantt.Types.Task>;
|
|
8
|
-
export interface GanttTaskProps {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
value: GanttTaskValue;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const GanttTask: ({ x, y, width, height, value, onClick, }: GanttTaskProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=GanttTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GanttTask.d.ts","sourceRoot":"","sources":["../../../src/collections/gantt/GanttTask.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAG9C,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAElE,MAAM,WAAW,cAAc;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,SAAS,GAAI,0CAOvB,cAAc,4CA4FhB,CAAC"}
|