@m4l/widgets 0.0.3 → 0.0.4-beta-feature-655-widget-digitalinput.0
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/cards/WidgetBase/WidgetBase.d.ts +13 -0
- package/cards/WidgetBase/WidgetBase.d.ts.map +1 -0
- package/cards/WidgetBase/WidgetBase.js +47 -0
- package/cards/WidgetBase/WidgetBase.styles.d.ts +3 -0
- package/cards/WidgetBase/WidgetBase.styles.d.ts.map +1 -0
- package/cards/WidgetBase/WidgetBase.styles.js +83 -0
- package/cards/WidgetBase/constants.d.ts +2 -0
- package/cards/WidgetBase/constants.d.ts.map +1 -0
- package/cards/WidgetBase/constants.js +4 -0
- package/cards/WidgetBase/index.d.ts +3 -0
- package/cards/WidgetBase/index.d.ts.map +1 -0
- package/cards/WidgetBase/slots/WidgetBaseEnum.d.ts +12 -0
- package/cards/WidgetBase/slots/WidgetBaseEnum.d.ts.map +1 -0
- package/cards/WidgetBase/slots/WidgetBaseEnum.js +4 -0
- package/cards/WidgetBase/slots/WidgetBaseSlots.d.ts +16 -0
- package/cards/WidgetBase/slots/WidgetBaseSlots.d.ts.map +1 -0
- package/cards/WidgetBase/slots/WidgetBaseSlots.js +28 -0
- package/cards/WidgetBase/types.d.ts +23 -0
- package/cards/WidgetBase/types.d.ts.map +1 -0
- package/cards/WidgetBaseThreeValues/WidgetBaseThreeValues.d.ts +16 -0
- package/cards/WidgetBaseThreeValues/WidgetBaseThreeValues.d.ts.map +1 -0
- package/cards/WidgetBaseThreeValues/WidgetBaseThreeValues.js +25 -0
- package/cards/WidgetBaseThreeValues/WidgetBaseThreeValues.styles.d.ts +3 -0
- package/cards/WidgetBaseThreeValues/WidgetBaseThreeValues.styles.d.ts.map +1 -0
- package/cards/WidgetBaseThreeValues/WidgetBaseThreeValues.styles.js +72 -0
- package/cards/WidgetBaseThreeValues/constants.d.ts +2 -0
- package/cards/WidgetBaseThreeValues/constants.d.ts.map +1 -0
- package/cards/WidgetBaseThreeValues/constants.js +4 -0
- package/cards/WidgetBaseThreeValues/index.d.ts +3 -0
- package/cards/WidgetBaseThreeValues/index.d.ts.map +1 -0
- package/cards/WidgetBaseThreeValues/slots/WidgetBaseThreeValuesEnum.d.ts +13 -0
- package/cards/WidgetBaseThreeValues/slots/WidgetBaseThreeValuesEnum.d.ts.map +1 -0
- package/cards/WidgetBaseThreeValues/slots/WidgetBaseThreeValuesEnum.js +4 -0
- package/cards/WidgetBaseThreeValues/slots/WidgetBaseThreeValuesSlots.d.ts +19 -0
- package/cards/WidgetBaseThreeValues/slots/WidgetBaseThreeValuesSlots.d.ts.map +1 -0
- package/cards/WidgetBaseThreeValues/slots/WidgetBaseThreeValuesSlots.js +31 -0
- package/cards/WidgetBaseThreeValues/types.d.ts +25 -0
- package/cards/WidgetBaseThreeValues/types.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/WidgetDigitalInput.d.ts +20 -0
- package/cards/WidgetDigitalInput/WidgetDigitalInput.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/WidgetDigitalInput.js +49 -0
- package/cards/WidgetDigitalInput/WidgetDigitalInput.styles.d.ts +3 -0
- package/cards/WidgetDigitalInput/WidgetDigitalInput.styles.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/WidgetDigitalInput.styles.js +34 -0
- package/cards/WidgetDigitalInput/constants.d.ts +2 -0
- package/cards/WidgetDigitalInput/constants.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/constants.js +4 -0
- package/cards/WidgetDigitalInput/hooks/useGetValues.d.ts +6 -0
- package/cards/WidgetDigitalInput/hooks/useGetValues.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/hooks/useGetValues.js +17 -0
- package/cards/WidgetDigitalInput/index.d.ts +3 -0
- package/cards/WidgetDigitalInput/index.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/slots/WidgetDigitalInputEnum.d.ts +9 -0
- package/cards/WidgetDigitalInput/slots/WidgetDigitalInputEnum.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/slots/WidgetDigitalInputEnum.js +4 -0
- package/cards/WidgetDigitalInput/slots/WidgetDigitalInputSlots.d.ts +7 -0
- package/cards/WidgetDigitalInput/slots/WidgetDigitalInputSlots.d.ts.map +1 -0
- package/cards/WidgetDigitalInput/slots/WidgetDigitalInputSlots.js +16 -0
- package/cards/WidgetDigitalInput/types.d.ts +36 -0
- package/cards/WidgetDigitalInput/types.d.ts.map +1 -0
- package/charts/ChartPie/ChartPie.d.ts +10 -0
- package/charts/ChartPie/ChartPie.d.ts.map +1 -0
- package/charts/{PieChart/PieChart.js → ChartPie/ChartPie.js} +3 -3
- package/charts/ChartPie/ChartPie.styles.d.ts +3 -0
- package/charts/ChartPie/ChartPie.styles.d.ts.map +1 -0
- package/charts/{PieChart/PieChart.styles.js → ChartPie/ChartPie.styles.js} +3 -3
- package/charts/ChartPie/__tests__/helpers/data.d.ts +14 -0
- package/charts/{PieChart → ChartPie}/__tests__/helpers/data.d.ts.map +1 -1
- package/charts/ChartPie/__tests__/helpers/index.d.ts +7 -0
- package/charts/{PieChart → ChartPie}/__tests__/helpers/index.d.ts.map +1 -1
- package/charts/{PieChart → ChartPie}/__tests__/helpers/theme.d.ts +1 -1
- package/charts/{PieChart → ChartPie}/__tests__/helpers/theme.d.ts.map +1 -1
- package/charts/ChartPie/__tests__/helpers/values.d.ts +14 -0
- package/charts/{PieChart → ChartPie}/__tests__/helpers/values.d.ts.map +1 -1
- package/charts/ChartPie/constants.d.ts +2 -0
- package/charts/{PieChart → ChartPie}/constants.d.ts.map +1 -1
- package/charts/ChartPie/constants.js +4 -0
- package/charts/{PieChart → ChartPie}/helpers/options.d.ts +3 -3
- package/charts/{PieChart → ChartPie}/helpers/options.d.ts.map +1 -1
- package/charts/ChartPie/helpers/remap.d.ts +6 -0
- package/charts/{PieChart → ChartPie}/helpers/remap.d.ts.map +1 -1
- package/charts/{PieChart/hooks/usePieChartData.d.ts → ChartPie/hooks/useChartPieData.d.ts} +5 -5
- package/charts/ChartPie/hooks/useChartPieData.d.ts.map +1 -0
- package/charts/{PieChart/hooks/usePieChartData.js → ChartPie/hooks/useChartPieData.js} +1 -1
- package/charts/{PieChart → ChartPie}/hooks/useChartResize.d.ts.map +1 -1
- package/charts/ChartPie/index.d.ts +3 -0
- package/charts/{PieChart → ChartPie}/index.d.ts.map +1 -1
- package/charts/{PieChart/slots/PieChartEnum.d.ts → ChartPie/slots/ChartPieEnum.d.ts} +6 -6
- package/charts/ChartPie/slots/ChartPieEnum.d.ts.map +1 -0
- package/charts/{PieChart/slots/PieChartEnum.js → ChartPie/slots/ChartPieEnum.js} +2 -2
- package/charts/{PieChart/slots/PieChartSlots.d.ts → ChartPie/slots/ChartPieSlots.d.ts} +11 -11
- package/charts/{PieChart/slots/PieChartSlots.d.ts.map → ChartPie/slots/ChartPieSlots.d.ts.map} +1 -1
- package/charts/ChartPie/slots/ChartPieSlots.js +52 -0
- package/charts/{PieChart → ChartPie}/subcomponents/CustomLegend/CustomLegend.d.ts.map +1 -1
- package/charts/{PieChart → ChartPie}/subcomponents/CustomLegend/CustomLegend.js +1 -1
- package/charts/{PieChart → ChartPie}/subcomponents/CustomLegend/types.d.ts +2 -2
- package/charts/{PieChart → ChartPie}/subcomponents/CustomLegend/types.d.ts.map +1 -1
- package/charts/{PieChart → ChartPie}/types.d.ts +15 -15
- package/charts/{PieChart → ChartPie}/types.d.ts.map +1 -1
- package/charts/ChartSeries/ChartSeries.d.ts +10 -0
- package/charts/ChartSeries/ChartSeries.d.ts.map +1 -0
- package/charts/{SeriesChart/SeriesChart.js → ChartSeries/ChartSeries.js} +2 -2
- package/charts/ChartSeries/ChartSeries.styles.d.ts +3 -0
- package/charts/ChartSeries/ChartSeries.styles.d.ts.map +1 -0
- package/charts/{SeriesChart/SeriesChart.styles.js → ChartSeries/ChartSeries.styles.js} +3 -3
- package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/index.d.ts +1 -1
- package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/index.d.ts.map +1 -1
- package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/theme.d.ts.map +1 -1
- package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/tooltip.d.ts.map +1 -1
- package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/types.d.ts.map +1 -1
- package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/values.d.ts +11 -11
- package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/values.d.ts.map +1 -1
- package/charts/ChartSeries/constants.d.ts +2 -0
- package/charts/ChartSeries/constants.d.ts.map +1 -0
- package/charts/ChartSeries/constants.js +4 -0
- package/charts/{SeriesChart → ChartSeries}/helpers/options.d.ts +2 -2
- package/charts/{SeriesChart → ChartSeries}/helpers/options.d.ts.map +1 -1
- package/charts/ChartSeries/helpers/tooltipFormatter.d.ts +6 -0
- package/charts/{SeriesChart → ChartSeries}/helpers/tooltipFormatter.d.ts.map +1 -1
- package/charts/ChartSeries/hooks/useChartResize.d.ts.map +1 -0
- package/charts/ChartSeries/index.d.ts +3 -0
- package/charts/{SeriesChart → ChartSeries}/index.d.ts.map +1 -1
- package/charts/{SeriesChart/slots/SeriesChartEnum.d.ts → ChartSeries/slots/ChartSeriesEnum.d.ts} +6 -6
- package/charts/ChartSeries/slots/ChartSeriesEnum.d.ts.map +1 -0
- package/charts/ChartSeries/slots/ChartSeriesEnum.js +4 -0
- package/charts/{SeriesChart/slots/SeriesChartSlots.d.ts → ChartSeries/slots/ChartSeriesSlots.d.ts} +11 -11
- package/charts/ChartSeries/slots/ChartSeriesSlots.d.ts.map +1 -0
- package/charts/{SeriesChart/slots/SeriesChartSlots.js → ChartSeries/slots/ChartSeriesSlots.js} +8 -8
- package/charts/{SeriesChart → ChartSeries}/types.d.ts +8 -8
- package/charts/{SeriesChart → ChartSeries}/types.d.ts.map +1 -1
- package/charts/index.d.ts +2 -2
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -4
- package/package.json +1 -1
- package/charts/PieChart/PieChart.d.ts +0 -10
- package/charts/PieChart/PieChart.d.ts.map +0 -1
- package/charts/PieChart/PieChart.styles.d.ts +0 -3
- package/charts/PieChart/PieChart.styles.d.ts.map +0 -1
- package/charts/PieChart/__tests__/helpers/data.d.ts +0 -14
- package/charts/PieChart/__tests__/helpers/index.d.ts +0 -7
- package/charts/PieChart/__tests__/helpers/values.d.ts +0 -14
- package/charts/PieChart/constants.d.ts +0 -2
- package/charts/PieChart/constants.js +0 -4
- package/charts/PieChart/helpers/remap.d.ts +0 -6
- package/charts/PieChart/hooks/usePieChartData.d.ts.map +0 -1
- package/charts/PieChart/index.d.ts +0 -3
- package/charts/PieChart/slots/PieChartEnum.d.ts.map +0 -1
- package/charts/PieChart/slots/PieChartSlots.js +0 -52
- package/charts/SeriesChart/SeriesChart.d.ts +0 -10
- package/charts/SeriesChart/SeriesChart.d.ts.map +0 -1
- package/charts/SeriesChart/SeriesChart.styles.d.ts +0 -3
- package/charts/SeriesChart/SeriesChart.styles.d.ts.map +0 -1
- package/charts/SeriesChart/constants.d.ts +0 -2
- package/charts/SeriesChart/constants.d.ts.map +0 -1
- package/charts/SeriesChart/constants.js +0 -4
- package/charts/SeriesChart/helpers/tooltipFormatter.d.ts +0 -6
- package/charts/SeriesChart/hooks/useChartResize.d.ts.map +0 -1
- package/charts/SeriesChart/index.d.ts +0 -3
- package/charts/SeriesChart/slots/SeriesChartEnum.d.ts.map +0 -1
- package/charts/SeriesChart/slots/SeriesChartEnum.js +0 -4
- package/charts/SeriesChart/slots/SeriesChartSlots.d.ts.map +0 -1
- /package/charts/{PieChart → ChartPie}/helpers/options.js +0 -0
- /package/charts/{PieChart → ChartPie}/helpers/remap.js +0 -0
- /package/charts/{PieChart → ChartPie}/hooks/useChartResize.d.ts +0 -0
- /package/charts/{PieChart → ChartPie}/hooks/useChartResize.js +0 -0
- /package/charts/{PieChart → ChartPie}/subcomponents/CustomLegend/CustomLegend.d.ts +0 -0
- /package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/theme.d.ts +0 -0
- /package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/tooltip.d.ts +0 -0
- /package/charts/{SeriesChart → ChartSeries}/__tests__/helpers/types.d.ts +0 -0
- /package/charts/{SeriesChart → ChartSeries}/helpers/options.js +0 -0
- /package/charts/{SeriesChart → ChartSeries}/helpers/tooltipFormatter.js +0 -0
- /package/charts/{SeriesChart → ChartSeries}/hooks/useChartResize.d.ts +0 -0
- /package/charts/{SeriesChart → ChartSeries}/hooks/useChartResize.js +0 -0
package/charts/{PieChart/slots/PieChartSlots.d.ts.map → ChartPie/slots/ChartPieSlots.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"ChartPieSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartPie/slots/ChartPieSlots.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB;;6NAGA,CAAC;AAEhC,eAAO,MAAM,oBAAoB;;6NAGA,CAAC;AAElC,eAAO,MAAM,oBAAoB;;6NAGA,CAAC;AAElC,eAAO,MAAM,qBAAqB;;6NAGA,CAAC;AAEnC,eAAO,MAAM,gBAAgB;;6NAGA,CAAC;AAE9B,eAAO,MAAM,qBAAqB;;6NAGA,CAAC;AAEnC,eAAO,MAAM,6BAA6B;;6NAGA,CAAC;AAE3C,eAAO,MAAM,gCAAgC;;6NAGA,CAAC;AAE9C,eAAO,MAAM,oBAAoB,EAAE,GAGF,CAAC;AAElC,eAAO,MAAM,0BAA0B,EAAE,GAGF,CAAC;AAExC,eAAO,MAAM,wBAAwB,EAAE,GAGF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { styled as e } from "@mui/material/styles";
|
|
2
|
+
import { Typography as a } from "@mui/material";
|
|
3
|
+
import { chartPieStyles as t } from "../ChartPie.styles.js";
|
|
4
|
+
import { ChartPieSlots as n } from "./ChartPieEnum.js";
|
|
5
|
+
import { CHART_PIE_KEY_COMPONENT as o } from "../constants.js";
|
|
6
|
+
const g = e("div", {
|
|
7
|
+
name: o,
|
|
8
|
+
slot: n.chartPieRoot
|
|
9
|
+
})(t.chartPieRoot), s = e("div", {
|
|
10
|
+
name: o,
|
|
11
|
+
slot: n.chartPieParent
|
|
12
|
+
})(t.chartPieParent), C = e("div", {
|
|
13
|
+
name: o,
|
|
14
|
+
slot: n.chartContainer
|
|
15
|
+
})(t.chartContainer), I = e("div", {
|
|
16
|
+
name: o,
|
|
17
|
+
slot: n.legendContainer
|
|
18
|
+
})(t.legendContainer), c = e("div", {
|
|
19
|
+
name: o,
|
|
20
|
+
slot: n.legendItem
|
|
21
|
+
})(t.legendItem), y = e("div", {
|
|
22
|
+
name: o,
|
|
23
|
+
slot: n.legendItemColor
|
|
24
|
+
})(t.legendItemColor), S = e("div", {
|
|
25
|
+
name: o,
|
|
26
|
+
slot: n.legendItemTextContainer
|
|
27
|
+
})(t.legendItemTextContainer), P = e("div", {
|
|
28
|
+
name: o,
|
|
29
|
+
slot: n.legendItemTextSubContainer
|
|
30
|
+
})(t.legendItemTextSubContainer), h = e(a, {
|
|
31
|
+
name: o,
|
|
32
|
+
slot: n.legendItemName
|
|
33
|
+
})(t.legendItemName), T = e(a, {
|
|
34
|
+
name: o,
|
|
35
|
+
slot: n.legendItemValueBadge
|
|
36
|
+
})(t.legendItemValueBadge), p = e(a, {
|
|
37
|
+
name: o,
|
|
38
|
+
slot: n.legendItemCategory
|
|
39
|
+
})(t.legendItemCategory);
|
|
40
|
+
export {
|
|
41
|
+
C as ChartContainerStyled,
|
|
42
|
+
s as ChartPieParentStyled,
|
|
43
|
+
g as ChartPieRootStyled,
|
|
44
|
+
I as LegendContainerStyled,
|
|
45
|
+
p as LegendItemCategoryStyled,
|
|
46
|
+
y as LegendItemColorStyled,
|
|
47
|
+
h as LegendItemNameStyled,
|
|
48
|
+
c as LegendItemStyled,
|
|
49
|
+
S as LegendItemTextContainerStyled,
|
|
50
|
+
P as LegendItemTextSubContainerStyled,
|
|
51
|
+
T as LegendItemValueBadgeStyled
|
|
52
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomLegend.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"CustomLegend.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartPie/subcomponents/CustomLegend/CustomLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAYjD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,iBAAiB,sDAiC7D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as n } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { LegendItemStyled as m, LegendItemColorStyled as a, LegendItemTextContainerStyled as g, LegendItemTextSubContainerStyled as c, LegendItemNameStyled as i, LegendItemValueBadgeStyled as S, LegendItemCategoryStyled as h } from "../../slots/
|
|
2
|
+
import { LegendItemStyled as m, LegendItemColorStyled as a, LegendItemTextContainerStyled as g, LegendItemTextSubContainerStyled as c, LegendItemNameStyled as i, LegendItemValueBadgeStyled as S, LegendItemCategoryStyled as h } from "../../slots/ChartPieSlots.js";
|
|
3
3
|
function s({ data: r, size: l }) {
|
|
4
4
|
return r.map((e, o) => {
|
|
5
5
|
const t = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Sizes } from '@m4l/styles';
|
|
2
|
-
import {
|
|
2
|
+
import { ChartPieData } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Props for the CustomLegend subcomponent.
|
|
5
5
|
*/
|
|
6
6
|
export interface CustomLegendProps {
|
|
7
|
-
data:
|
|
7
|
+
data: ChartPieData[];
|
|
8
8
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartPie/subcomponents/CustomLegend/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;CAC3C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Sizes } from '@m4l/styles';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ChartPieSlots } from './slots/ChartPieEnum';
|
|
3
|
+
import { CHART_PIE_KEY_COMPONENT } from './constants';
|
|
4
4
|
import { M4LOverridesStyleRules } from '@m4l/components';
|
|
5
5
|
import { Theme } from '@mui/material/styles';
|
|
6
6
|
/**
|
|
7
|
-
* Item for the
|
|
7
|
+
* Item for the ChartPie (API shape).
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface ChartPieValueItem {
|
|
10
10
|
/** Displays the category name. */
|
|
11
11
|
title: string;
|
|
12
12
|
/** Displays the formatted value of the category. */
|
|
@@ -17,18 +17,18 @@ export interface PieChartValueItem {
|
|
|
17
17
|
palletColor: string;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Props for the
|
|
20
|
+
* Props for the ChartPie component.
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface ChartPieProps {
|
|
23
23
|
/** Chart values (name, formatted value, numeric value, color). */
|
|
24
|
-
values:
|
|
24
|
+
values: ChartPieValueItem[];
|
|
25
25
|
/** Component size. */
|
|
26
26
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* Data for the
|
|
29
|
+
* Data for the ChartPie (name, value, itemStyle).
|
|
30
30
|
*/
|
|
31
|
-
export interface
|
|
31
|
+
export interface ChartPieData {
|
|
32
32
|
/** Displays the category name. */
|
|
33
33
|
name: string;
|
|
34
34
|
/** Displays the numeric value of the category. */
|
|
@@ -44,12 +44,12 @@ export interface PieChartData {
|
|
|
44
44
|
/** Displays the data length. */
|
|
45
45
|
lenght: number;
|
|
46
46
|
}
|
|
47
|
-
export type
|
|
48
|
-
color?:
|
|
49
|
-
length?:
|
|
50
|
-
size?:
|
|
47
|
+
export type ChartPieOwnerState = {
|
|
48
|
+
color?: ChartPieData['colorName'];
|
|
49
|
+
length?: ChartPieData['lenght'];
|
|
50
|
+
size?: ChartPieProps['size'];
|
|
51
51
|
selected?: boolean;
|
|
52
52
|
};
|
|
53
|
-
export type
|
|
54
|
-
export type
|
|
53
|
+
export type ChartPieSlotsType = keyof typeof ChartPieSlots;
|
|
54
|
+
export type ChartPieStyles = M4LOverridesStyleRules<ChartPieSlotsType, typeof CHART_PIE_KEY_COMPONENT, Theme>;
|
|
55
55
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartPie/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,CAAC,EAAE,MAAM,CAAC;IACV,kDAAkD;IAClD,CAAC,EAAE,MAAM,CAAC;IACV,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,sBAAsB;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,cAAc,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,aAAa,CAAC;AAC3D,MAAM,MAAM,cAAc,GAAG,sBAAsB,CAAC,iBAAiB,EAAE,OAAO,uBAAuB,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChartSeriesProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* ChartSeries component.
|
|
4
|
+
* @param values - Chart values
|
|
5
|
+
* @param _size - Component size (reserved for future use)
|
|
6
|
+
* @returns ChartSeries component
|
|
7
|
+
*/
|
|
8
|
+
export declare function ChartSeries({ values, scrollable }: ChartSeriesProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ChartSeries;
|
|
10
|
+
//# sourceMappingURL=ChartSeries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartSeries.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartSeries/ChartSeries.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAShD;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,UAAkB,EAAE,EAAE,gBAAgB,oDAsB3E;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import s from "echarts-for-react";
|
|
3
3
|
import { useRef as f, useMemo as a } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { ChartSeriesRootStyled as h, ChartContainerStyled as p } from "./slots/ChartSeriesSlots.js";
|
|
5
5
|
import { useChartResize as u } from "./hooks/useChartResize.js";
|
|
6
6
|
import { useTheme as c } from "@mui/material";
|
|
7
7
|
import { generateOptions as d } from "./helpers/options.js";
|
|
@@ -19,6 +19,6 @@ function z({ values: t, scrollable: r = !1 }) {
|
|
|
19
19
|
) }) });
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
|
-
z as
|
|
22
|
+
z as ChartSeries,
|
|
23
23
|
z as default
|
|
24
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartSeries.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartSeries/ChartSeries.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,iBAAiB,EAAE,iBA6B/B,CAAC"}
|
|
@@ -2,13 +2,13 @@ const e = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Root container: container query context for responsive layout.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
chartSeriesRoot: () => ({
|
|
6
6
|
containerName: "root",
|
|
7
7
|
containerType: "size",
|
|
8
8
|
width: "100%",
|
|
9
9
|
height: "100%"
|
|
10
10
|
}),
|
|
11
|
-
|
|
11
|
+
chartSeriesParent: () => ({}),
|
|
12
12
|
/**
|
|
13
13
|
* Chart container. ReactECharts renders inside.
|
|
14
14
|
*/
|
|
@@ -28,5 +28,5 @@ const e = {
|
|
|
28
28
|
legendItemCategory: () => ({})
|
|
29
29
|
};
|
|
30
30
|
export {
|
|
31
|
-
e as
|
|
31
|
+
e as chartSeriesStyles
|
|
32
32
|
};
|
|
@@ -6,7 +6,7 @@ export { createTheme, getThemeForOptions, emptyTheme, } from './theme';
|
|
|
6
6
|
/**
|
|
7
7
|
* Values helpers.
|
|
8
8
|
*/
|
|
9
|
-
export { barSeriesItem,
|
|
9
|
+
export { barSeriesItem, defaultChartSeriesValues, lineSeriesItem, minimalChartSeriesValues, multiAxisChartSeriesValues, oneRowValues, oneRowValuesWithUnit, scatterSeriesItem, singleYAxis, threeAxisChartSeriesValues, twoRowsTooltipValues, createChartSeriesValues, } from './values';
|
|
10
10
|
export type { SeriesItemShape } from './values';
|
|
11
11
|
/**
|
|
12
12
|
* Tooltip helpers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartSeries/__tests__/helpers/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,UAAU,GACX,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,wBAAwB,EACxB,0BAA0B,EAC1B,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD;;GAEG;AACH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartSeries/__tests__/helpers/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;;;;;;;;;;;EAWlE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACvC,GAAG,CACrC;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAS,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartSeries/__tests__/helpers/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAc5C;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,GAAE,OAAO,CAAC,YAAY,CAAM,GAAG,YAAY,CAEtF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,GAAG,YAAY,EAAE,CAErF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartSeries/__tests__/helpers/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,KAAK,GAAG,MAAM,CAAC;CAC5B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartSeriesValueItem } from '../../types';
|
|
2
2
|
/** Single series item shape for test overrides. */
|
|
3
|
-
export type SeriesItemShape =
|
|
3
|
+
export type SeriesItemShape = ChartSeriesValueItem['series'][number];
|
|
4
4
|
/** One row of values used across options specs (single point). */
|
|
5
|
-
export declare const oneRowValues:
|
|
5
|
+
export declare const oneRowValues: ChartSeriesValueItem['values'];
|
|
6
6
|
/** One row with a unit in the label (e.g. for yAxis name extraction). */
|
|
7
|
-
export declare const oneRowValuesWithUnit: (unit: string) =>
|
|
7
|
+
export declare const oneRowValuesWithUnit: (unit: string) => ChartSeriesValueItem["values"];
|
|
8
8
|
/** Default bar series item. Override with spread for tests. */
|
|
9
9
|
export declare const barSeriesItem: SeriesItemShape;
|
|
10
10
|
/** Default line series item. Override with spread for tests. */
|
|
@@ -17,29 +17,29 @@ export declare const singleYAxis: {
|
|
|
17
17
|
title: string;
|
|
18
18
|
}[];
|
|
19
19
|
/**
|
|
20
|
-
* Default values for
|
|
20
|
+
* Default values for ChartSeries (two rows, one series).
|
|
21
21
|
*/
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const defaultChartSeriesValues: ChartSeriesValueItem;
|
|
23
23
|
/**
|
|
24
24
|
* Minimal values (single row) for component render tests.
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const minimalChartSeriesValues: ChartSeriesValueItem;
|
|
27
27
|
/**
|
|
28
28
|
* Two xAxis, two yAxis, two series (for options multi-axis test).
|
|
29
29
|
*/
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const multiAxisChartSeriesValues: ChartSeriesValueItem;
|
|
31
31
|
/**
|
|
32
32
|
* Two rows with numeric labels (for tooltipFormatter "row per param" test).
|
|
33
33
|
*/
|
|
34
|
-
export declare const twoRowsTooltipValues:
|
|
34
|
+
export declare const twoRowsTooltipValues: ChartSeriesValueItem;
|
|
35
35
|
/**
|
|
36
36
|
* Three xAxis, three yAxis (only two series so third yAxis has no related series).
|
|
37
37
|
* Covers grid.top when xAxis.length > 2, grid.right when yAxis.length > 1,
|
|
38
38
|
* xAxis/yAxis offset when index > 1, and relatedSeries undefined for orphan yAxis.
|
|
39
39
|
*/
|
|
40
|
-
export declare const
|
|
40
|
+
export declare const threeAxisChartSeriesValues: ChartSeriesValueItem;
|
|
41
41
|
/**
|
|
42
42
|
* Build chart values with partial overrides.
|
|
43
43
|
*/
|
|
44
|
-
export declare function
|
|
44
|
+
export declare function createChartSeriesValues(overrides?: Partial<ChartSeriesValueItem>): ChartSeriesValueItem;
|
|
45
45
|
//# sourceMappingURL=values.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartSeries/__tests__/helpers/values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,mDAAmD;AACnD,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,kEAAkE;AAClE,eAAO,MAAM,YAAY,EAAE,oBAAoB,CAAC,QAAQ,CAEvD,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,oBAAoB,CAAC,QAAQ,CAEhF,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,aAAa,EAAE,eAM3B,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,cAAc,EAAE,eAM5B,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,EAAE,eAM/B,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,WAAW;;;GAA6B,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,oBAUtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,oBAOtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,oBAgBxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAMlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,oBAkBxC,CAAC;AAEF;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,GAAE,OAAO,CAAC,oBAAoB,CAAM,GAC5C,oBAAoB,CAEtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartSeries/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,mBAAmB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
import {
|
|
2
|
+
import { ChartSeriesProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Builds ECharts option config for the series chart from data and theme.
|
|
5
5
|
*/
|
|
6
|
-
export declare function generateOptions(values:
|
|
6
|
+
export declare function generateOptions(values: ChartSeriesProps['values'], theme: Theme, scrollable: boolean): any;
|
|
7
7
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartSeries/helpers/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,GAAG,GAAG,CA4O1G"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChartSeriesProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Formats ECharts tooltip params to HTML for ChartSeries.
|
|
4
|
+
*/
|
|
5
|
+
export declare function remapTooltipFormatter(params: any[], values: ChartSeriesProps['values'], themeColors: any): string;
|
|
6
|
+
//# sourceMappingURL=tooltipFormatter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltipFormatter.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"tooltipFormatter.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartSeries/helpers/tooltipFormatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,GAAG,UA+FxG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChartResize.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartSeries/hooks/useChartResize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAGlD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,yCAoB5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartSeries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EACV,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
|
package/charts/{SeriesChart/slots/SeriesChartEnum.d.ts → ChartSeries/slots/ChartSeriesEnum.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Slot names for the
|
|
3
|
-
* Must match the keys in
|
|
2
|
+
* Slot names for the ChartSeries component.
|
|
3
|
+
* Must match the keys in ChartSeries.styles.ts.
|
|
4
4
|
*/
|
|
5
|
-
export declare enum
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare enum ChartSeriesSlots {
|
|
6
|
+
chartSeriesRoot = "chartSeriesRoot",
|
|
7
|
+
chartSeriesParent = "chartSeriesParent",
|
|
8
8
|
chartContainer = "chartContainer",
|
|
9
9
|
legendContainer = "legendContainer",
|
|
10
10
|
legendItem = "legendItem",
|
|
@@ -15,4 +15,4 @@ export declare enum SeriesChartSlots {
|
|
|
15
15
|
legendItemValueBadge = "legendItemValueBadge",
|
|
16
16
|
legendItemCategory = "legendItemCategory"
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=ChartSeriesEnum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartSeriesEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartSeries/slots/ChartSeriesEnum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,uBAAuB,4BAA4B;IACnD,0BAA0B,+BAA+B;IACzD,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,kBAAkB,uBAAuB;CAC1C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var n = /* @__PURE__ */ ((e) => (e.chartSeriesRoot = "chartSeriesRoot", e.chartSeriesParent = "chartSeriesParent", e.chartContainer = "chartContainer", e.legendContainer = "legendContainer", e.legendItem = "legendItem", e.legendItemColor = "legendItemColor", e.legendItemTextContainer = "legendItemTextContainer", e.legendItemTextSubContainer = "legendItemTextSubContainer", e.legendItemName = "legendItemName", e.legendItemValueBadge = "legendItemValueBadge", e.legendItemCategory = "legendItemCategory", e))(n || {});
|
|
2
|
+
export {
|
|
3
|
+
n as ChartSeriesSlots
|
|
4
|
+
};
|
package/charts/{SeriesChart/slots/SeriesChartSlots.d.ts → ChartSeries/slots/ChartSeriesSlots.d.ts}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
ownerState?: (Partial<import('../types').
|
|
1
|
+
export declare const ChartSeriesRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
3
3
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
-
export declare const
|
|
5
|
-
ownerState?: (Partial<import('../types').
|
|
4
|
+
export declare const ChartSeriesParentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
6
6
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
7
|
export declare const ChartContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
8
|
-
ownerState?: (Partial<import('../types').
|
|
8
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
9
9
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
10
|
export declare const LegendContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
11
|
-
ownerState?: (Partial<import('../types').
|
|
11
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
12
12
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
13
|
export declare const LegendItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
14
|
-
ownerState?: (Partial<import('../types').
|
|
14
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
15
15
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
16
|
export declare const LegendItemColorStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
17
|
-
ownerState?: (Partial<import('../types').
|
|
17
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
18
18
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
19
|
export declare const LegendItemTextContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
|
-
ownerState?: (Partial<import('../types').
|
|
20
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
21
21
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
22
|
export declare const LegendItemTextSubContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
23
|
-
ownerState?: (Partial<import('../types').
|
|
23
|
+
ownerState?: (Partial<import('../types').ChartSeriesOwnerState> & Record<string, unknown>) | undefined;
|
|
24
24
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
25
25
|
export declare const LegendItemNameStyled: any;
|
|
26
26
|
export declare const LegendItemValueBadgeStyled: any;
|
|
27
27
|
export declare const LegendItemCategoryStyled: any;
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=ChartSeriesSlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartSeriesSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartSeries/slots/ChartSeriesSlots.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;6NAGG,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;6NAGG,CAAC;AAExC,eAAO,MAAM,oBAAoB;;6NAGG,CAAC;AAErC,eAAO,MAAM,qBAAqB;;6NAGG,CAAC;AAEtC,eAAO,MAAM,gBAAgB;;6NAGG,CAAC;AAEjC,eAAO,MAAM,qBAAqB;;yGAIG,CAAC;AAEtC,eAAO,MAAM,6BAA6B;;6NAGG,CAAC;AAE9C,eAAO,MAAM,gCAAgC;;6NAGG,CAAC;AAEjD,eAAO,MAAM,oBAAoB,EAAE,GAGC,CAAC;AAErC,eAAO,MAAM,0BAA0B,EAAE,GAGC,CAAC;AAE3C,eAAO,MAAM,wBAAwB,EAAE,GAGC,CAAC"}
|
package/charts/{SeriesChart/slots/SeriesChartSlots.js → ChartSeries/slots/ChartSeriesSlots.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { styled as e } from "@mui/material/styles";
|
|
2
2
|
import { Typography as r } from "@mui/material";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { chartSeriesStyles as t } from "../ChartSeries.styles.js";
|
|
4
|
+
import { ChartSeriesSlots as o } from "./ChartSeriesEnum.js";
|
|
5
|
+
import { CHART_SERIES_KEY_COMPONENT as n } from "../constants.js";
|
|
6
6
|
const g = e("div", {
|
|
7
7
|
name: n,
|
|
8
|
-
slot: o.
|
|
9
|
-
})(t.
|
|
8
|
+
slot: o.chartSeriesRoot
|
|
9
|
+
})(t.chartSeriesRoot);
|
|
10
10
|
e("div", {
|
|
11
11
|
name: n,
|
|
12
|
-
slot: o.
|
|
13
|
-
})(t.
|
|
12
|
+
slot: o.chartSeriesParent
|
|
13
|
+
})(t.chartSeriesParent);
|
|
14
14
|
const C = e("div", {
|
|
15
15
|
name: n,
|
|
16
16
|
slot: o.chartContainer
|
|
@@ -50,5 +50,5 @@ e(r, {
|
|
|
50
50
|
})(t.legendItemCategory);
|
|
51
51
|
export {
|
|
52
52
|
C as ChartContainerStyled,
|
|
53
|
-
g as
|
|
53
|
+
g as ChartSeriesRootStyled
|
|
54
54
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ChartSeriesSlots } from './slots/ChartSeriesEnum';
|
|
2
|
+
import { CHART_SERIES_KEY_COMPONENT } from './constants';
|
|
3
3
|
import { M4LOverridesStyleRules } from '@m4l/components';
|
|
4
4
|
import { Theme } from '@mui/material/styles';
|
|
5
5
|
/**
|
|
6
6
|
* Item for the series chart (API shape).
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface ChartSeriesValueItem {
|
|
9
9
|
/**
|
|
10
10
|
* Axis for the x-axis.
|
|
11
11
|
*/
|
|
@@ -43,15 +43,15 @@ export interface SeriesChartValueItem {
|
|
|
43
43
|
/**
|
|
44
44
|
* Props for the series chart component.
|
|
45
45
|
*/
|
|
46
|
-
export interface
|
|
46
|
+
export interface ChartSeriesProps {
|
|
47
47
|
/** Chart values (name, formatted value, numeric value, color). */
|
|
48
|
-
values:
|
|
48
|
+
values: ChartSeriesValueItem;
|
|
49
49
|
/** Chart scrollable option. */
|
|
50
50
|
scrollable?: boolean;
|
|
51
51
|
}
|
|
52
|
-
export type
|
|
52
|
+
export type ChartSeriesOwnerState = {
|
|
53
53
|
color?: string;
|
|
54
54
|
};
|
|
55
|
-
export type
|
|
56
|
-
export type
|
|
55
|
+
export type ChartSeriesSlotsType = keyof typeof ChartSeriesSlots;
|
|
56
|
+
export type ChartSeriesStyles = M4LOverridesStyleRules<ChartSeriesSlotsType, typeof CHART_SERIES_KEY_COMPONENT, Theme>;
|
|
57
57
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartSeries/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;GAEG;AAEH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ;;OAEG;IACH,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;IACJ;;OAEG;IACH,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;IACJ;;OAEG;IACH,MAAM,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG;YACb,CAAC,EAAE,MAAM,CAAC;YACV,CAAC,EAAE,MAAM,CAAC;SACX,GAAG,MAAM,CAAC;KACZ,EAAE,CAAC;CACL;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,MAAM,EAAE,oBAAoB,CAAC;IAC7B,+BAA+B;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,oBAAoB,EAAE,OAAO,0BAA0B,EAAE,KAAK,CAAC,CAAC"}
|
package/charts/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './ChartPie';
|
|
2
|
+
export * from './ChartSeries';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts
CHANGED
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ChartPie as t } from "./charts/ChartPie/ChartPie.js";
|
|
2
|
+
import { ChartSeries as i } from "./charts/ChartSeries/ChartSeries.js";
|
|
3
|
+
import { WidgetBase as p } from "./cards/WidgetBase/WidgetBase.js";
|
|
4
|
+
import { WidgetDigitalInput as m } from "./cards/WidgetDigitalInput/WidgetDigitalInput.js";
|
|
5
|
+
import { WidgetBaseThreeValues as g } from "./cards/WidgetBaseThreeValues/WidgetBaseThreeValues.js";
|
|
3
6
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
t as ChartPie,
|
|
8
|
+
i as ChartSeries,
|
|
9
|
+
p as WidgetBase,
|
|
10
|
+
g as WidgetBaseThreeValues,
|
|
11
|
+
m as WidgetDigitalInput
|
|
6
12
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PieChartProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* PieChart component for the pie chart.
|
|
4
|
-
* @param values - Values for the chart
|
|
5
|
-
* @param size - Component size
|
|
6
|
-
* @returns PieChart component
|
|
7
|
-
*/
|
|
8
|
-
export declare function PieChart({ values, size }: PieChartProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default PieChart;
|
|
10
|
-
//# sourceMappingURL=PieChart.d.ts.map
|