@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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { WidgetDigitalInputRootStyled as c, WidgetDigitalInputSecondValueStyled as V } from "./slots/WidgetDigitalInputSlots.js";
|
|
3
|
+
import { WidgetBaseThreeValues as S } from "../WidgetBaseThreeValues/WidgetBaseThreeValues.js";
|
|
4
|
+
import { useGetValues as W } from "./hooks/useGetValues.js";
|
|
5
|
+
function y({
|
|
6
|
+
title: i,
|
|
7
|
+
isOpen: o,
|
|
8
|
+
titleOpen: r,
|
|
9
|
+
titleClosed: a,
|
|
10
|
+
imageUrlOpen: l,
|
|
11
|
+
imageUrlClosed: n,
|
|
12
|
+
value: u,
|
|
13
|
+
chipColorOpen: d = "info",
|
|
14
|
+
size: e,
|
|
15
|
+
tooltip: f,
|
|
16
|
+
isAlarm: m,
|
|
17
|
+
menuActions: s
|
|
18
|
+
}) {
|
|
19
|
+
const [
|
|
20
|
+
g,
|
|
21
|
+
p
|
|
22
|
+
] = W({
|
|
23
|
+
isOpen: o,
|
|
24
|
+
titleOpen: r,
|
|
25
|
+
titleClosed: a,
|
|
26
|
+
chipColorOpen: d,
|
|
27
|
+
imageUrlOpen: l,
|
|
28
|
+
imageUrlClosed: n
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(
|
|
31
|
+
S,
|
|
32
|
+
{
|
|
33
|
+
title: i,
|
|
34
|
+
leftValue: p,
|
|
35
|
+
firstValue: g,
|
|
36
|
+
secondValue: /* @__PURE__ */ t(V, { ownerState: {
|
|
37
|
+
size: e
|
|
38
|
+
}, children: u }),
|
|
39
|
+
size: e,
|
|
40
|
+
tooltip: f,
|
|
41
|
+
isAlarm: m,
|
|
42
|
+
menuActions: s
|
|
43
|
+
}
|
|
44
|
+
) });
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
y as WidgetDigitalInput,
|
|
48
|
+
y as default
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetDigitalInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/cards/WidgetDigitalInput/WidgetDigitalInput.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,wBA8BtC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getTypographyStyles as i } from "@m4l/components";
|
|
2
|
+
const o = {
|
|
3
|
+
/**
|
|
4
|
+
* Root container: container query context for responsive layout.
|
|
5
|
+
*/
|
|
6
|
+
widgetDigitalInputRoot: (t) => ({
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
alignItems: "flex-start",
|
|
10
|
+
alignSelf: "stretch",
|
|
11
|
+
width: "100%",
|
|
12
|
+
height: "100%"
|
|
13
|
+
}),
|
|
14
|
+
/**
|
|
15
|
+
* Second value container.
|
|
16
|
+
*/
|
|
17
|
+
widgetDigitalInputSecondValue: ({ theme: t, ownerState: e }) => ({
|
|
18
|
+
...i(t?.generalSettings?.isMobile, e?.size || "medium", "bodyDens"),
|
|
19
|
+
color: t.vars.palette.text.secondary,
|
|
20
|
+
WebkitTextStrokeColor: t.vars.palette.text.secondary,
|
|
21
|
+
overflow: "hidden",
|
|
22
|
+
textOverflow: "ellipsis",
|
|
23
|
+
fontFamily: "Jura",
|
|
24
|
+
fontWeight: 700,
|
|
25
|
+
minWidth: 0,
|
|
26
|
+
display: "-webkit-box",
|
|
27
|
+
WebkitBoxOrient: "vertical",
|
|
28
|
+
WebkitLineClamp: 2,
|
|
29
|
+
lineClamp: 2
|
|
30
|
+
})
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
o as widgetDigitalInputStyles
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/cards/WidgetDigitalInput/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useGetValuesProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the first value (Chip) and image to display based on open/closed state.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useGetValues({ isOpen, titleOpen, titleClosed, chipColorOpen, imageUrlOpen, imageUrlClosed, }: useGetValuesProps): import("@emotion/react/jsx-runtime").JSX.Element[];
|
|
6
|
+
//# sourceMappingURL=useGetValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGetValues.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/cards/WidgetDigitalInput/hooks/useGetValues.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,SAAS,EACT,WAAW,EACX,aAAa,EACb,YAAY,EACZ,cAAc,GACf,EAAE,iBAAiB,sDAiBnB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as m } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as f } from "react";
|
|
3
|
+
import { Chip as h, Image as d } from "@m4l/components";
|
|
4
|
+
function V({
|
|
5
|
+
isOpen: t,
|
|
6
|
+
titleOpen: a,
|
|
7
|
+
titleClosed: c,
|
|
8
|
+
chipColorOpen: r,
|
|
9
|
+
imageUrlOpen: o,
|
|
10
|
+
imageUrlClosed: u
|
|
11
|
+
}) {
|
|
12
|
+
const e = t ? a : c, l = f(() => /* @__PURE__ */ m(h, { color: t ? r : "default", label: e }), [t, r, e]), s = f(() => /* @__PURE__ */ m(d, { src: t ? o : u, alt: t ? "Open" : "Closed", width: 50, height: 50 }), [t, o, u]);
|
|
13
|
+
return [l, s];
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
V as useGetValues
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/cards/WidgetDigitalInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EACV,uBAAuB,GACxB,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slot names for the WidgetDigitalInput component.
|
|
3
|
+
* Must match the keys in WidgetDigitalInput.styles.ts.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum WidgetDigitalInputSlots {
|
|
6
|
+
widgetDigitalInputRoot = "widgetDigitalInputRoot",
|
|
7
|
+
widgetDigitalInputSecondValue = "widgetDigitalInputSecondValue"
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=WidgetDigitalInputEnum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetDigitalInputEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/cards/WidgetDigitalInput/slots/WidgetDigitalInputEnum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,uBAAuB;IACjC,sBAAsB,2BAA2B;IACjD,6BAA6B,kCAAkC;CAChE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const WidgetDigitalInputRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: any;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const WidgetDigitalInputSecondValueStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "paragraph" | "p" | "style" | "className" | "children" | "sx" | "classes" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY" | "typography" | "align" | "gutterBottom" | "noWrap" | "variant" | "variantMapping">, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "hidden" | "paragraph" | "p" | "slot" | "style" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "sx" | "classes" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY" | "typography" | "align" | "gutterBottom" | "noWrap" | "variant" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState?: any;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
//# sourceMappingURL=WidgetDigitalInputSlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetDigitalInputSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/cards/WidgetDigitalInput/slots/WidgetDigitalInputSlots.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,4BAA4B;;6NAGU,CAAC;AAEpD,eAAO,MAAM,mCAAmC;;UAGU,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { styled as t } from "@mui/material/styles";
|
|
2
|
+
import { widgetDigitalInputStyles as i } from "../WidgetDigitalInput.styles.js";
|
|
3
|
+
import { WidgetDigitalInputSlots as o } from "./WidgetDigitalInputEnum.js";
|
|
4
|
+
import { WIDGET_DIGITAL_INPUT_KEY_COMPONENT as e } from "../constants.js";
|
|
5
|
+
import { Typography as l } from "@mui/material";
|
|
6
|
+
const m = t("div", {
|
|
7
|
+
name: e,
|
|
8
|
+
slot: o.widgetDigitalInputRoot
|
|
9
|
+
})(i.widgetDigitalInputRoot), r = t(l, {
|
|
10
|
+
name: e,
|
|
11
|
+
slot: o.widgetDigitalInputSecondValue
|
|
12
|
+
})(i.widgetDigitalInputSecondValue);
|
|
13
|
+
export {
|
|
14
|
+
m as WidgetDigitalInputRootStyled,
|
|
15
|
+
r as WidgetDigitalInputSecondValueStyled
|
|
16
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { WidgetDigitalInputSlots } from './slots/WidgetDigitalInputEnum';
|
|
2
|
+
import { WIDGET_DIGITAL_INPUT_KEY_COMPONENT } from './constants';
|
|
3
|
+
import { M4LOverridesStyleRules, MenuAction } from '@m4l/components';
|
|
4
|
+
import { Theme } from '@mui/material/styles';
|
|
5
|
+
import { Sizes, ChipColorOptions } from '@m4l/styles';
|
|
6
|
+
/**
|
|
7
|
+
* Props for the WidgetDigitalInput component.
|
|
8
|
+
*/
|
|
9
|
+
export interface WidgetDigitalInputProps {
|
|
10
|
+
title: string;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
titleOpen: string;
|
|
13
|
+
titleClosed: string;
|
|
14
|
+
imageUrlOpen: string;
|
|
15
|
+
imageUrlClosed: string;
|
|
16
|
+
value?: string;
|
|
17
|
+
chipColorOpen?: Extract<ChipColorOptions, 'info' | 'error'>;
|
|
18
|
+
isAlarm?: boolean;
|
|
19
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
menuActions?: MenuAction[];
|
|
22
|
+
}
|
|
23
|
+
export interface useGetValuesProps {
|
|
24
|
+
isOpen: boolean;
|
|
25
|
+
titleOpen: string;
|
|
26
|
+
titleClosed: string;
|
|
27
|
+
chipColorOpen?: ChipColorOptions;
|
|
28
|
+
imageUrlOpen: string;
|
|
29
|
+
imageUrlClosed: string;
|
|
30
|
+
}
|
|
31
|
+
export type WidgetDigitalInputOwnerState = {
|
|
32
|
+
size?: WidgetDigitalInputProps['size'];
|
|
33
|
+
};
|
|
34
|
+
export type WidgetDigitalInputSlotsType = keyof typeof WidgetDigitalInputSlots;
|
|
35
|
+
export type WidgetDigitalInputStyles = M4LOverridesStyleRules<WidgetDigitalInputSlotsType, typeof WIDGET_DIGITAL_INPUT_KEY_COMPONENT, Theme>;
|
|
36
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/cards/WidgetDigitalInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;CACxC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,MAAM,OAAO,uBAAuB,CAAC;AAC/E,MAAM,MAAM,wBAAwB,GAAG,sBAAsB,CAAC,2BAA2B,EAAE,OAAO,kCAAkC,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChartPieProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* ChartPie component for the pie chart.
|
|
4
|
+
* @param values - Values for the chart
|
|
5
|
+
* @param size - Component size
|
|
6
|
+
* @returns ChartPie component
|
|
7
|
+
*/
|
|
8
|
+
export declare function ChartPie({ values, size }: ChartPieProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ChartPie;
|
|
10
|
+
//# sourceMappingURL=ChartPie.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPie.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartPie/ChartPie.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAUjE;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,aAAa,oDAoCvD;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { jsx as t, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
|
2
2
|
import l from "echarts-for-react";
|
|
3
3
|
import { useRef as m } from "react";
|
|
4
4
|
import { CustomLegend as d } from "./subcomponents/CustomLegend/CustomLegend.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ChartPieRootStyled as f, ChartPieParentStyled as c, ChartContainerStyled as p, LegendContainerStyled as u } from "./slots/ChartPieSlots.js";
|
|
6
|
+
import { useChartPieData as C } from "./hooks/useChartPieData.js";
|
|
7
7
|
import { useChartResize as g } from "./hooks/useChartResize.js";
|
|
8
8
|
function z({ values: n, size: i }) {
|
|
9
9
|
const e = m(null), { data: r, options: a } = C(n), h = g(e), s = {
|
|
@@ -33,6 +33,6 @@ function z({ values: n, size: i }) {
|
|
|
33
33
|
] }) });
|
|
34
34
|
}
|
|
35
35
|
export {
|
|
36
|
-
z as
|
|
36
|
+
z as ChartPie,
|
|
37
37
|
z as default
|
|
38
38
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPie.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartPie/ChartPie.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,eAAO,MAAM,cAAc,EAAE,cAkN5B,CAAC"}
|
|
@@ -5,7 +5,7 @@ const n = {
|
|
|
5
5
|
* Root container: container query context for responsive layout.
|
|
6
6
|
* ***************************************************************
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
chartPieRoot: () => ({
|
|
9
9
|
containerName: "root",
|
|
10
10
|
containerType: "size",
|
|
11
11
|
width: "100%",
|
|
@@ -16,7 +16,7 @@ const n = {
|
|
|
16
16
|
* Inner flex container wrapping the chart and the legend.
|
|
17
17
|
* ******************************************************************
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
chartPieParent: () => ({
|
|
20
20
|
display: "flex",
|
|
21
21
|
flexFlow: "row wrap",
|
|
22
22
|
justifyContent: "center",
|
|
@@ -190,5 +190,5 @@ const n = {
|
|
|
190
190
|
})
|
|
191
191
|
};
|
|
192
192
|
export {
|
|
193
|
-
n as
|
|
193
|
+
n as chartPieStyles
|
|
194
194
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChartPieData } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Single ChartPieData item shape for test overrides.
|
|
4
|
+
*/
|
|
5
|
+
export type ChartPieDataItemShape = ChartPieData;
|
|
6
|
+
/**
|
|
7
|
+
* Default ChartPieData array for options tests (two segments).
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultChartPieData: ChartPieData[];
|
|
10
|
+
/**
|
|
11
|
+
* Factory for ChartPieData[] with optional overrides.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createChartPieData(overrides?: Partial<ChartPieData>[]): ChartPieData[];
|
|
14
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/widgets/src/charts/ChartPie/__tests__/helpers/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAAY,EAiB7C,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,GAClC,YAAY,EAAE,CAMhB"}
|
|
@@ -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/ChartPie/__tests__/helpers/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,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/ChartPie/__tests__/helpers/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;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,OAAO,sBAAsB,EAAE,KAAK,CACtE;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAS,OAAO,sBAAsB,EAAE,KAAK,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChartPieValueItem } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Default values for ChartPie (two segments).
|
|
4
|
+
*/
|
|
5
|
+
export declare const defaultChartPieValues: ChartPieValueItem[];
|
|
6
|
+
/**
|
|
7
|
+
* Minimal single-segment values for render tests.
|
|
8
|
+
*/
|
|
9
|
+
export declare const minimalChartPieValues: ChartPieValueItem[];
|
|
10
|
+
/**
|
|
11
|
+
* Factory for ChartPieValueItem[] with optional per-item overrides.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createChartPieValues(overrides?: Partial<ChartPieValueItem>[]): ChartPieValueItem[];
|
|
14
|
+
//# 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/ChartPie/__tests__/helpers/values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAGpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAEpD,CAAC;AAEF;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,EAAE,GACvC,iBAAiB,EAAE,CAIrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/widgets/src/charts/ChartPie/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartPieData } from '../types';
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
3
|
/**
|
|
4
4
|
* Builds the ECharts options configuration for the pie chart from data and theme.
|
|
5
5
|
*/
|
|
6
|
-
export declare function generateOptions(data:
|
|
6
|
+
export declare function generateOptions(data: ChartPieData[], theme: Theme): {
|
|
7
7
|
baseOption: {
|
|
8
8
|
tooltip: {
|
|
9
9
|
show: boolean;
|
|
@@ -58,7 +58,7 @@ export declare function generateOptions(data: PieChartData[], theme: Theme): {
|
|
|
58
58
|
radius: string[];
|
|
59
59
|
center: string[];
|
|
60
60
|
padAngle: number;
|
|
61
|
-
data:
|
|
61
|
+
data: ChartPieData[];
|
|
62
62
|
label: {
|
|
63
63
|
show: boolean;
|
|
64
64
|
position: string;
|
|
@@ -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/ChartPie/helpers/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,KAAK;;;;;;;;;;;YAsBxD,oDAAoD;iCACtB,GAAG,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAD3C,oDAAoD;;;;EAuE7D;AAED,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remap.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"remap.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartPie/helpers/remap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG5D;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,YAAY,EAAE,CAazE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChartPieProps } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Returns the remapped pie chart data and ECharts options for the given values and current theme.
|
|
4
4
|
*/
|
|
5
|
-
export declare function
|
|
6
|
-
data: import('..').
|
|
5
|
+
export declare function useChartPieData(values: ChartPieProps['values']): {
|
|
6
|
+
data: import('..').ChartPieData[];
|
|
7
7
|
options: {
|
|
8
8
|
baseOption: {
|
|
9
9
|
tooltip: {
|
|
@@ -58,7 +58,7 @@ export declare function usePieChartData(values: PieChartProps['values']): {
|
|
|
58
58
|
radius: string[];
|
|
59
59
|
center: string[];
|
|
60
60
|
padAngle: number;
|
|
61
|
-
data: import('..').
|
|
61
|
+
data: import('..').ChartPieData[];
|
|
62
62
|
label: {
|
|
63
63
|
show: boolean;
|
|
64
64
|
position: string;
|
|
@@ -85,4 +85,4 @@ export declare function usePieChartData(values: PieChartProps['values']): {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
//# sourceMappingURL=
|
|
88
|
+
//# sourceMappingURL=useChartPieData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChartPieData.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartPie/hooks/useChartPieData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChartResize.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/
|
|
1
|
+
{"version":3,"file":"useChartResize.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartPie/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/ChartPie/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,YAAY,GACb,MAAM,SAAS,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Slot names for the
|
|
3
|
-
* Must match the keys in
|
|
2
|
+
* Slot names for the ChartPie component.
|
|
3
|
+
* Must match the keys in ChartPie.styles.ts.
|
|
4
4
|
*/
|
|
5
|
-
export declare enum
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare enum ChartPieSlots {
|
|
6
|
+
chartPieRoot = "chartPieRoot",
|
|
7
|
+
chartPieParent = "chartPieParent",
|
|
8
8
|
chartContainer = "chartContainer",
|
|
9
9
|
legendContainer = "legendContainer",
|
|
10
10
|
legendItem = "legendItem",
|
|
@@ -15,4 +15,4 @@ export declare enum PieChartSlots {
|
|
|
15
15
|
legendItemValueBadge = "legendItemValueBadge",
|
|
16
16
|
legendItemCategory = "legendItemCategory"
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=ChartPieEnum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartPieEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/widgets/src/charts/ChartPie/slots/ChartPieEnum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,aAAa;IACvB,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IAEjC,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var n = /* @__PURE__ */ ((e) => (e.
|
|
1
|
+
var n = /* @__PURE__ */ ((e) => (e.chartPieRoot = "chartPieRoot", e.chartPieParent = "chartPieParent", 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
2
|
export {
|
|
3
|
-
n as
|
|
3
|
+
n as ChartPieSlots
|
|
4
4
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
ownerState?: (Partial<import('../types').
|
|
1
|
+
export declare const ChartPieRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
|
+
ownerState?: (Partial<import('../types').ChartPieOwnerState> & 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 ChartPieParentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
5
|
+
ownerState?: (Partial<import('../types').ChartPieOwnerState> & 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').ChartPieOwnerState> & 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').ChartPieOwnerState> & 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').ChartPieOwnerState> & 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').ChartPieOwnerState> & Record<string, unknown>) | undefined;
|
|
18
18
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<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').ChartPieOwnerState> & 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').ChartPieOwnerState> & 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=ChartPieSlots.d.ts.map
|