@embeddable.com/remarkable-pro 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BarChartDefaultHorizontalPro.js +3 -3
- package/dist/BarChartDefaultPro.js +3 -3
- package/dist/BarChartGroupedHorizontalPro.js +3 -3
- package/dist/BarChartGroupedPro.js +3 -3
- package/dist/BarChartStackedHorizontalPro.js +3 -3
- package/dist/BarChartStackedPro.js +3 -3
- package/dist/{ChartCard-DsPc_21K.js → ChartCard-B5IaBBTs.js} +20 -20
- package/dist/{ChartCard-DsPc_21K.js.map → ChartCard-B5IaBBTs.js.map} +1 -1
- package/dist/{Color.type.emb-B6HPqRjW.js → Color.type.emb-C4VcPjfM.js} +62 -61
- package/dist/{Color.type.emb-B6HPqRjW.js.map → Color.type.emb-C4VcPjfM.js.map} +1 -1
- package/dist/ColorEditor.js +1 -1
- package/dist/ComparisonPeriodSelectFieldPro.js +3 -3
- package/dist/DateRangePickerCustomPro.js +3 -3
- package/dist/DateRangeSelectFieldPro.js +3 -3
- package/dist/DonutChartPro.js +3 -3
- package/dist/DonutLabelChartPro.js +3 -3
- package/dist/{EditorCard-aOGeW4jt.js → EditorCard-CcsUaHcd.js} +5 -5
- package/dist/{EditorCard-aOGeW4jt.js.map → EditorCard-CcsUaHcd.js.map} +1 -1
- package/dist/GranularitySelectFieldPro.js +3 -3
- package/dist/HeatMapPro.js +3 -3
- package/dist/KpiChartNumberComparisonPro.js +3 -3
- package/dist/KpiChartNumberPro.js +3 -3
- package/dist/LineChartComparisonDefaultPro.js +3 -3
- package/dist/LineChartDefaultPro.js +3 -3
- package/dist/LineChartGroupedPro.js +3 -3
- package/dist/MultiSelectFieldPro.js +3 -3
- package/dist/PieChartPro.js +3 -3
- package/dist/PivotTablePro.js +3 -3
- package/dist/SingleSelectFieldPro.js +3 -3
- package/dist/TableChartPaginated.js +3 -3
- package/dist/TableScrollable.js +4 -4
- package/dist/{bars.utils-DtHJ7gBc.js → bars.utils-Ck1w7NOo.js} +35 -35
- package/dist/bars.utils-Ck1w7NOo.js.map +1 -0
- package/dist/{charts.utils-DM6cHNrK.js → charts.utils-g6NE_Jo3.js} +4 -4
- package/dist/{charts.utils-DM6cHNrK.js.map → charts.utils-g6NE_Jo3.js.map} +1 -1
- package/dist/{component.inputs.constants-jJBFejC-.js → component.inputs.constants-DN1efWXx.js} +26 -26
- package/dist/{component.inputs.constants-jJBFejC-.js.map → component.inputs.constants-DN1efWXx.js.map} +1 -1
- package/dist/components/charts/bars/bars.utils.d.ts.map +1 -1
- package/dist/embeddable-components.json +14 -14
- package/dist/{formatter.utils-BUUUf91Q.js → formatter.utils-pzrkapRL.js} +2 -2
- package/dist/{formatter.utils-BUUUf91Q.js.map → formatter.utils-pzrkapRL.js.map} +1 -1
- package/dist/{index-DZ_H2OEY.js → index-1mMgdK6h.js} +5 -5
- package/dist/{index-DZ_H2OEY.js.map → index-1mMgdK6h.js.map} +1 -1
- package/dist/{index-Bif__GxM.js → index-4mTCN1nI.js} +5 -5
- package/dist/{index-Bif__GxM.js.map → index-4mTCN1nI.js.map} +1 -1
- package/dist/{index-CxgncSEN.js → index-53w_cRnE.js} +5 -5
- package/dist/{index-CxgncSEN.js.map → index-53w_cRnE.js.map} +1 -1
- package/dist/{index-CKT9qwYq.js → index-7Vgn0Xsn.js} +5 -5
- package/dist/{index-CKT9qwYq.js.map → index-7Vgn0Xsn.js.map} +1 -1
- package/dist/{index-Z5AHoasI.js → index-B6z6eyJE.js} +5 -5
- package/dist/{index-Z5AHoasI.js.map → index-B6z6eyJE.js.map} +1 -1
- package/dist/{index-F6XINVuQ.js → index-BEYR5f2d.js} +5 -5
- package/dist/{index-F6XINVuQ.js.map → index-BEYR5f2d.js.map} +1 -1
- package/dist/{index-D0Y3IwQg.js → index-BUWTt_8s.js} +5 -5
- package/dist/{index-D0Y3IwQg.js.map → index-BUWTt_8s.js.map} +1 -1
- package/dist/{index-DZIiW5Nz.js → index-BjuvAqGb.js} +4 -4
- package/dist/{index-DZIiW5Nz.js.map → index-BjuvAqGb.js.map} +1 -1
- package/dist/{index-BcDgD_JS.js → index-Brl5KgVS.js} +5 -5
- package/dist/{index-BcDgD_JS.js.map → index-Brl5KgVS.js.map} +1 -1
- package/dist/{index-B-Tq5-JV.js → index-C_ExmNre.js} +5 -5
- package/dist/{index-B-Tq5-JV.js.map → index-C_ExmNre.js.map} +1 -1
- package/dist/{index-LhNKcA1s.js → index-Cdu6WHsa.js} +4 -4
- package/dist/{index-LhNKcA1s.js.map → index-Cdu6WHsa.js.map} +1 -1
- package/dist/{index-CZ9Sw8H3.js → index-Cr68Ha2O.js} +5 -5
- package/dist/{index-CZ9Sw8H3.js.map → index-Cr68Ha2O.js.map} +1 -1
- package/dist/{index-cLri0mtu.js → index-DCVqVqS5.js} +6 -6
- package/dist/{index-cLri0mtu.js.map → index-DCVqVqS5.js.map} +1 -1
- package/dist/{index-Ct3Qtgor.js → index-DG77FUkS.js} +5 -5
- package/dist/{index-Ct3Qtgor.js.map → index-DG77FUkS.js.map} +1 -1
- package/dist/{index-CQlKWTOb.js → index-DHYMtecu.js} +5 -5
- package/dist/{index-CQlKWTOb.js.map → index-DHYMtecu.js.map} +1 -1
- package/dist/{index-DF_tK19U.js → index-DXVl7yqM.js} +5 -5
- package/dist/{index-DF_tK19U.js.map → index-DXVl7yqM.js.map} +1 -1
- package/dist/{index-dov3IPMj.js → index-DXkwaXvx.js} +6 -6
- package/dist/{index-dov3IPMj.js.map → index-DXkwaXvx.js.map} +1 -1
- package/dist/{index-DVPIPYNB.js → index-Dy4jGo4x.js} +5 -5
- package/dist/{index-DVPIPYNB.js.map → index-Dy4jGo4x.js.map} +1 -1
- package/dist/{index-8A8KFAVc.js → index-JiDnk-OU.js} +5 -5
- package/dist/{index-8A8KFAVc.js.map → index-JiDnk-OU.js.map} +1 -1
- package/dist/{index-grfYNj7h.js → index-T15Mxwpw.js} +6 -6
- package/dist/{index-grfYNj7h.js.map → index-T15Mxwpw.js.map} +1 -1
- package/dist/{index-DVE9YBTf.js → index-t3j3ZF8E.js} +5 -5
- package/dist/{index-DVE9YBTf.js.map → index-t3j3ZF8E.js.map} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -83
- package/dist/{pies.utils-CIDqAzCT.js → pies.utils-dB2uJu3l.js} +5 -5
- package/dist/{pies.utils-CIDqAzCT.js.map → pies.utils-dB2uJu3l.js.map} +1 -1
- package/dist/{tables.utils-BVdgLNxV.js → tables.utils-B8IT-c8T.js} +4 -4
- package/dist/{tables.utils-BVdgLNxV.js.map → tables.utils-B8IT-c8T.js.map} +1 -1
- package/dist/{timeRange.utils-xV5aEhJD.js → timeRange.utils-DIFMUM1C.js} +2 -2
- package/dist/{timeRange.utils-xV5aEhJD.js.map → timeRange.utils-DIFMUM1C.js.map} +1 -1
- package/package.json +1 -1
- package/dist/bars.utils-DtHJ7gBc.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as s, l as i } from "./Color.type.emb-
|
|
1
|
+
import { V as s, l as i } from "./Color.type.emb-C4VcPjfM.js";
|
|
2
2
|
import { defineComponent as o } from "@embeddable.com/react";
|
|
3
|
-
import { B as r } from "./index-
|
|
4
|
-
import { b as e } from "./component.inputs.constants-
|
|
3
|
+
import { B as r } from "./index-DHYMtecu.js";
|
|
4
|
+
import { b as e } from "./component.inputs.constants-DN1efWXx.js";
|
|
5
5
|
const t = {
|
|
6
6
|
name: "BarChartDefaultHorizontalPro",
|
|
7
7
|
label: "Bar Chart - Default Horizontal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as s, l as i } from "./Color.type.emb-
|
|
1
|
+
import { V as s, l as i } from "./Color.type.emb-C4VcPjfM.js";
|
|
2
2
|
import { defineComponent as r } from "@embeddable.com/react";
|
|
3
|
-
import { B as t } from "./index-
|
|
4
|
-
import { b as e } from "./component.inputs.constants-
|
|
3
|
+
import { B as t } from "./index-Dy4jGo4x.js";
|
|
4
|
+
import { b as e } from "./component.inputs.constants-DN1efWXx.js";
|
|
5
5
|
const o = {
|
|
6
6
|
name: "BarChartDefaultPro",
|
|
7
7
|
label: "Bar Chart - Default",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as i, l as o } from "./Color.type.emb-
|
|
1
|
+
import { V as i, l as o } from "./Color.type.emb-C4VcPjfM.js";
|
|
2
2
|
import { defineComponent as r } from "@embeddable.com/react";
|
|
3
|
-
import { B as s } from "./index-
|
|
4
|
-
import { b as e } from "./component.inputs.constants-
|
|
3
|
+
import { B as s } from "./index-DXVl7yqM.js";
|
|
4
|
+
import { b as e } from "./component.inputs.constants-DN1efWXx.js";
|
|
5
5
|
const n = {
|
|
6
6
|
name: "BarChartGroupedHorizontalPro",
|
|
7
7
|
label: "Bar Chart - Grouped Horizontal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as i, l as r } from "./Color.type.emb-
|
|
1
|
+
import { V as i, l as r } from "./Color.type.emb-C4VcPjfM.js";
|
|
2
2
|
import { defineComponent as s } from "@embeddable.com/react";
|
|
3
|
-
import { B as o } from "./index-
|
|
4
|
-
import { b as e } from "./component.inputs.constants-
|
|
3
|
+
import { B as o } from "./index-7Vgn0Xsn.js";
|
|
4
|
+
import { b as e } from "./component.inputs.constants-DN1efWXx.js";
|
|
5
5
|
const n = {
|
|
6
6
|
name: "BarChartGroupedPro",
|
|
7
7
|
label: "Bar Chart - Grouped",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as i, l as o } from "./Color.type.emb-
|
|
1
|
+
import { V as i, l as o } from "./Color.type.emb-C4VcPjfM.js";
|
|
2
2
|
import { defineComponent as s } from "@embeddable.com/react";
|
|
3
|
-
import { B as r } from "./index-
|
|
4
|
-
import { b as e } from "./component.inputs.constants-
|
|
3
|
+
import { B as r } from "./index-Brl5KgVS.js";
|
|
4
|
+
import { b as e } from "./component.inputs.constants-DN1efWXx.js";
|
|
5
5
|
const t = {
|
|
6
6
|
name: "BarChartStackedHorizontalPro",
|
|
7
7
|
label: "Bar Chart - Stacked Horizontal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as i, l as s } from "./Color.type.emb-
|
|
1
|
+
import { V as i, l as s } from "./Color.type.emb-C4VcPjfM.js";
|
|
2
2
|
import { defineComponent as o } from "@embeddable.com/react";
|
|
3
|
-
import { B as r } from "./index-
|
|
4
|
-
import { b as e } from "./component.inputs.constants-
|
|
3
|
+
import { B as r } from "./index-4mTCN1nI.js";
|
|
4
|
+
import { b as e } from "./component.inputs.constants-DN1efWXx.js";
|
|
5
5
|
const t = {
|
|
6
6
|
name: "BarChartStackedPro",
|
|
7
7
|
label: "Bar Chart - Stacked",
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import f, { useRef as
|
|
1
|
+
import { s as R, j as t, Q as I, x as S, y as L, z as N, A as k, n as D, o as M, R as x, p as b, U as T, q as _ } from "./Color.type.emb-C4VcPjfM.js";
|
|
2
|
+
import f, { useRef as w } from "react";
|
|
3
3
|
import { useTheme as j } from "@embeddable.com/react";
|
|
4
|
-
import { a as p, i as C, I as A } from "./component.inputs.constants-
|
|
4
|
+
import { a as p, i as C, I as A } from "./component.inputs.constants-DN1efWXx.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license @tabler/icons-react v3.36.1 - MIT
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license.
|
|
9
9
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
const F = [["path", { d: "M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-0" }], ["path", { d: "M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }], ["path", { d: "M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-2" }]],
|
|
12
|
-
chartCard:
|
|
13
|
-
fixedContent:
|
|
14
|
-
loading:
|
|
11
|
+
const F = [["path", { d: "M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-0" }], ["path", { d: "M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }], ["path", { d: "M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-2" }]], $ = R("outline", "dots-vertical", "DotsVertical", F), E = "_chartCard_84eo6_1", H = "_fixedContent_84eo6_6", O = "_loading_84eo6_13", P = "_hidden_84eo6_18", U = "_chartCardRightContent_84eo6_22", o = {
|
|
12
|
+
chartCard: E,
|
|
13
|
+
fixedContent: H,
|
|
14
|
+
loading: O,
|
|
15
15
|
hidden: P,
|
|
16
|
-
chartCardRightContent:
|
|
17
|
-
},
|
|
18
|
-
loading:
|
|
19
|
-
}, v = () => /* @__PURE__ */ t.jsx(I, { className:
|
|
20
|
-
list:
|
|
16
|
+
chartCardRightContent: U
|
|
17
|
+
}, V = "_loading_1amm4_7", q = {
|
|
18
|
+
loading: V
|
|
19
|
+
}, v = () => /* @__PURE__ */ t.jsx(I, { className: q.loading }), z = "_list_mwshn_1", B = {
|
|
20
|
+
list: z
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function K({ src: s, className: a, ...r }) {
|
|
23
23
|
const e = decodeURIComponent(s.replace(/^data:image\/svg\+xml,/, ""));
|
|
24
24
|
return /* @__PURE__ */ t.jsx("div", { className: a, ...r, dangerouslySetInnerHTML: { __html: e } });
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Q = (s) => {
|
|
27
27
|
const a = j();
|
|
28
28
|
p(a);
|
|
29
29
|
const [r, e] = f.useState(!1), i = a.defaults.chartMenuOptions ?? [];
|
|
@@ -45,15 +45,15 @@ const z = (s) => {
|
|
|
45
45
|
{
|
|
46
46
|
side: "bottom",
|
|
47
47
|
align: "end",
|
|
48
|
-
triggerComponent: r ? /* @__PURE__ */ t.jsx(v, {}) : /* @__PURE__ */ t.jsx(k, { icon:
|
|
49
|
-
children: /* @__PURE__ */ t.jsx(L, { className:
|
|
48
|
+
triggerComponent: r ? /* @__PURE__ */ t.jsx(v, {}) : /* @__PURE__ */ t.jsx(k, { icon: $ }),
|
|
49
|
+
children: /* @__PURE__ */ t.jsx(L, { className: B.list, autoFocus: !0, children: i.map((n, c) => {
|
|
50
50
|
const h = C.t(n.labelKey);
|
|
51
51
|
return /* @__PURE__ */ t.jsx(
|
|
52
52
|
N,
|
|
53
53
|
{
|
|
54
54
|
label: h,
|
|
55
55
|
onClick: () => d(n.onClick),
|
|
56
|
-
startIcon: n.iconSrc ? /* @__PURE__ */ t.jsx(
|
|
56
|
+
startIcon: n.iconSrc ? /* @__PURE__ */ t.jsx(K, { src: n.iconSrc }) : void 0
|
|
57
57
|
},
|
|
58
58
|
c
|
|
59
59
|
);
|
|
@@ -65,7 +65,7 @@ const z = (s) => {
|
|
|
65
65
|
var u;
|
|
66
66
|
const c = j();
|
|
67
67
|
p(c);
|
|
68
|
-
const h =
|
|
68
|
+
const h = w(null), g = !!(e != null && e.data && ((u = e.data) == null ? void 0 : u.length) > 0), m = !e || (e == null ? void 0 : e.isLoading), y = () => m && !g ? /* @__PURE__ */ t.jsx(T, {}) : i ? /* @__PURE__ */ t.jsx(
|
|
69
69
|
_,
|
|
70
70
|
{
|
|
71
71
|
variant: "error",
|
|
@@ -99,7 +99,7 @@ const z = (s) => {
|
|
|
99
99
|
{
|
|
100
100
|
className: x(o.fixedContent, m ? o.hidden : o.visible),
|
|
101
101
|
children: /* @__PURE__ */ t.jsx(
|
|
102
|
-
|
|
102
|
+
Q,
|
|
103
103
|
{
|
|
104
104
|
title: s,
|
|
105
105
|
containerRef: h,
|
|
@@ -121,4 +121,4 @@ G.displayName = "ChartCard";
|
|
|
121
121
|
export {
|
|
122
122
|
G as C
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=ChartCard-
|
|
124
|
+
//# sourceMappingURL=ChartCard-B5IaBBTs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartCard-DsPc_21K.js","sources":["../node_modules/@tabler/icons-react/dist/esm/icons/IconDotsVertical.mjs","../src/components/charts/shared/ChartCard/ChartCardLoading/ChartCardLoading.tsx","../src/components/charts/shared/ChartCard/ChartCardMenuPro/ChartCardMenuPro.tsx","../src/components/charts/shared/ChartCard/ChartCard.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.36.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-2\" }]];\nconst IconDotsVertical = createReactComponent(\"outline\", \"dots-vertical\", \"DotsVertical\", __iconNode);\n\nexport { __iconNode, IconDotsVertical as default };\n//# sourceMappingURL=IconDotsVertical.mjs.map\n","import { IconLoader2 } from '@tabler/icons-react';\nimport styles from './ChartCardLoading.module.css';\n\nexport const ChartCardLoading = () => <IconLoader2 className={styles.loading} />;\n","import { IconDotsVertical } from '@tabler/icons-react';\nimport React from 'react';\nimport { useTheme } from '@embeddable.com/react';\nimport { ChartCardLoading } from '../ChartCardLoading/ChartCardLoading';\nimport { i18n, i18nSetup } from '../../../../../theme/i18n/i18n';\nimport { Theme } from '../../../../../theme/theme.types';\nimport {\n Dropdown,\n ActionIcon,\n SelectFieldContent,\n SelectListOption,\n} from '@embeddable.com/remarkable-ui';\nimport styles from './ChartCardMenuPro.module.css';\nimport { ChartCardMenuOptionOnClickProps } from '../../../../../theme/defaults/defaults.ChartCardMenu.constants';\n\ntype InlineSvgFromDataProps = React.HTMLAttributes<HTMLSpanElement> & {\n src: string;\n};\n\nexport function InlineSvgFromData({ src, className, ...rest }: InlineSvgFromDataProps) {\n // Remove prefix and URL-decode the SVG markup\n const svgMarkup = decodeURIComponent(src.replace(/^data:image\\/svg\\+xml,/, ''));\n\n return <div className={className} {...rest} dangerouslySetInnerHTML={{ __html: svgMarkup }} />;\n}\n\ntype ChartCardMenuProProps = Omit<ChartCardMenuOptionOnClickProps, 'theme'>;\n\nexport const ChartCardMenuPro: React.FC<ChartCardMenuProProps> = (props) => {\n const theme: Theme = useTheme() as Theme;\n i18nSetup(theme);\n\n const [isLoading, setIsLoading] = React.useState(false);\n\n const options = theme.defaults.chartMenuOptions ?? [];\n\n if (options.length === 0) {\n return null;\n }\n\n const startAction = (onClick: () => void | Promise<void>) => {\n setTimeout(() => {\n Promise.resolve(onClick()).finally(() => setIsLoading(false));\n }, 100);\n };\n\n const handleExport = (onClick: (props: ChartCardMenuOptionOnClickProps) => void) => {\n setIsLoading(true);\n if (props.onCustomDownload) {\n props.onCustomDownload((args) => startAction(() => onClick(args)));\n return;\n }\n startAction(() => onClick({ ...props, theme }));\n };\n\n return (\n <Dropdown\n side=\"bottom\"\n align=\"end\"\n triggerComponent={isLoading ? <ChartCardLoading /> : <ActionIcon icon={IconDotsVertical} />}\n >\n <SelectFieldContent className={styles.list} autoFocus>\n {options.map((option, index) => {\n const label = i18n.t(option.labelKey);\n\n return (\n <SelectListOption\n key={index}\n label={label}\n onClick={() => handleExport(option.onClick)}\n startIcon={option.iconSrc ? <InlineSvgFromData src={option.iconSrc} /> : undefined}\n />\n );\n })}\n </SelectFieldContent>\n </Dropdown>\n );\n};\n","import React, { CSSProperties, useRef } from 'react';\nimport { IconAlertCircle } from '@tabler/icons-react';\nimport {\n Card,\n CardContent,\n CardFeedback,\n CardHeader,\n Skeleton,\n} from '@embeddable.com/remarkable-ui';\nimport styles from './ChartCard.module.css';\nimport { DataResponse, Dimension, Measure } from '@embeddable.com/core';\nimport { useTheme } from '@embeddable.com/react';\nimport { ChartCardLoading } from './ChartCardLoading/ChartCardLoading';\nimport { ChartCardMenuPro } from './ChartCardMenuPro/ChartCardMenuPro';\nimport { Theme } from '../../../../theme/theme.types';\nimport { i18n, i18nSetup } from '../../../../theme/i18n/i18n';\nimport clsx from 'clsx';\nimport { ChartCardMenuOptionOnClickProps } from '../../../../theme/defaults/defaults.ChartCardMenu.constants';\n\ntype ChartCardProps = {\n title: string;\n subtitle?: string;\n children: React.ReactNode;\n data: DataResponse;\n errorMessage?: string;\n style?: CSSProperties;\n dimensionsAndMeasures?: (Dimension | Measure)[];\n onCustomDownload?: (props: (props: ChartCardMenuOptionOnClickProps) => void) => void;\n};\n\nexport const ChartCard = React.forwardRef<HTMLDivElement, ChartCardProps>(\n (\n { title, subtitle, children, data, errorMessage, dimensionsAndMeasures = [], onCustomDownload },\n ref,\n ) => {\n const theme: Theme = useTheme() as Theme;\n i18nSetup(theme);\n\n const chartRef = useRef<HTMLDivElement>(null);\n\n const hasData = Boolean(data?.data && data.data?.length > 0);\n\n const isLoading = !data || data?.isLoading;\n\n const getDisplay = () => {\n if (isLoading && !hasData) {\n return <Skeleton />;\n }\n\n if (errorMessage) {\n return (\n <CardFeedback\n variant=\"error\"\n icon={IconAlertCircle}\n title={i18n.t('charts.errorTitle')}\n message={errorMessage}\n />\n );\n }\n\n if (!hasData) {\n return (\n <CardFeedback\n title={i18n.t('charts.emptyTitle')}\n message={i18n.t('charts.emptyMessage')}\n />\n );\n }\n\n return children;\n };\n\n return (\n <Card className={styles.chartCard}>\n <CardHeader\n title={title}\n subtitle={subtitle}\n rightContent={\n <div className={styles.chartCardRightContent}>\n <div\n className={clsx(styles.fixedContent, isLoading ? styles.loading : styles.hidden)}\n >\n <ChartCardLoading />\n </div>\n <div\n className={clsx(styles.fixedContent, isLoading ? styles.hidden : styles.visible)}\n >\n <ChartCardMenuPro\n title={title}\n containerRef={chartRef}\n data={data?.data}\n dimensionsAndMeasures={dimensionsAndMeasures}\n onCustomDownload={onCustomDownload}\n />\n </div>\n </div>\n }\n />\n\n <CardContent ref={onCustomDownload ? ref : chartRef}>{getDisplay()}</CardContent>\n </Card>\n );\n },\n);\n\nChartCard.displayName = 'ChartCard';\n"],"names":["__iconNode","IconDotsVertical","createReactComponent","ChartCardLoading","jsx","IconLoader2","styles","InlineSvgFromData","src","className","rest","svgMarkup","ChartCardMenuPro","props","theme","useTheme","i18nSetup","isLoading","setIsLoading","React","options","startAction","onClick","handleExport","args","Dropdown","ActionIcon","SelectFieldContent","option","index","label","i18n","SelectListOption","ChartCard","title","subtitle","children","data","errorMessage","dimensionsAndMeasures","onCustomDownload","ref","chartRef","useRef","hasData","_a","getDisplay","Skeleton","CardFeedback","IconAlertCircle","jsxs","Card","CardHeader","clsx","CardContent"],"mappings":";;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa,CAAC,CAAC,QAAQ,EAAE,GAAK,uCAAuC,KAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,GAAK,uCAAuC,KAAO,SAAS,GAAG,CAAC,QAAQ,EAAE,GAAK,sCAAsC,KAAO,QAAO,CAAE,CAAC,GACzOC,IAAmBC,EAAqB,WAAW,iBAAiB,gBAAgBF,CAAU;;;;;;;;GCPvFG,IAAmB,MAAMC,gBAAAA,EAAAA,IAACC,GAAA,EAAY,WAAWC,EAAO,SAAS;;;ACgBvE,SAASC,EAAkB,EAAE,KAAAC,GAAK,WAAAC,GAAW,GAAGC,KAAgC;AAErF,QAAMC,IAAY,mBAAmBH,EAAI,QAAQ,0BAA0B,EAAE,CAAC;AAE9E,SAAOJ,gBAAAA,EAAAA,IAAC,SAAI,WAAAK,GAAuB,GAAGC,GAAM,yBAAyB,EAAE,QAAQC,EAAA,GAAa;AAC9F;AAIO,MAAMC,IAAoD,CAACC,MAAU;AAC1E,QAAMC,IAAeC,EAAA;AACrB,EAAAC,EAAUF,CAAK;AAEf,QAAM,CAACG,GAAWC,CAAY,IAAIC,EAAM,SAAS,EAAK,GAEhDC,IAAUN,EA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AWiD,EAAK/C,EAAO,cAAcW,IAAYX,EAAO,SAASA,EAAO,OAAO;AAAA,gBAE/E,UAAAF,gBAAAA,EAAAA;AAAAA,kBAACQ;AAAA,kBAAA;AAAA,oBACC,OAAAsB;AAAA,oBACA,cAAcQ;AAAA,oBACd,MAAML,KAAA,gBAAAA,EAAM;AAAA,oBACZ,uBAAAE;AAAA,oBACA,kBAAAC;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACF;AAAA,YAAA;AAAA,UACF,EAAA,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,4BAIHc,GAAA,EAAY,KAAKd,IAAmBC,IAAMC,GAAW,cAAW,CAAE;AAAA,IAAA,GACrE;AAAA,EAEJ;AACF;AAEAT,EAAU,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"ChartCard-B5IaBBTs.js","sources":["../node_modules/@tabler/icons-react/dist/esm/icons/IconDotsVertical.mjs","../src/components/charts/shared/ChartCard/ChartCardLoading/ChartCardLoading.tsx","../src/components/charts/shared/ChartCard/ChartCardMenuPro/ChartCardMenuPro.tsx","../src/components/charts/shared/ChartCard/ChartCard.tsx"],"sourcesContent":["/**\n * @license @tabler/icons-react v3.36.1 - MIT\n *\n * This source code is licensed under the MIT license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createReactComponent from '../createReactComponent.mjs';\n\nconst __iconNode = [[\"path\", { \"d\": \"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-2\" }]];\nconst IconDotsVertical = createReactComponent(\"outline\", \"dots-vertical\", \"DotsVertical\", __iconNode);\n\nexport { __iconNode, IconDotsVertical as default };\n//# sourceMappingURL=IconDotsVertical.mjs.map\n","import { IconLoader2 } from '@tabler/icons-react';\nimport styles from './ChartCardLoading.module.css';\n\nexport const ChartCardLoading = () => <IconLoader2 className={styles.loading} />;\n","import { IconDotsVertical } from '@tabler/icons-react';\nimport React from 'react';\nimport { useTheme } from '@embeddable.com/react';\nimport { ChartCardLoading } from '../ChartCardLoading/ChartCardLoading';\nimport { i18n, i18nSetup } from '../../../../../theme/i18n/i18n';\nimport { Theme } from '../../../../../theme/theme.types';\nimport {\n Dropdown,\n ActionIcon,\n SelectFieldContent,\n SelectListOption,\n} from '@embeddable.com/remarkable-ui';\nimport styles from './ChartCardMenuPro.module.css';\nimport { ChartCardMenuOptionOnClickProps } from '../../../../../theme/defaults/defaults.ChartCardMenu.constants';\n\ntype InlineSvgFromDataProps = React.HTMLAttributes<HTMLSpanElement> & {\n src: string;\n};\n\nexport function InlineSvgFromData({ src, className, ...rest }: InlineSvgFromDataProps) {\n // Remove prefix and URL-decode the SVG markup\n const svgMarkup = decodeURIComponent(src.replace(/^data:image\\/svg\\+xml,/, ''));\n\n return <div className={className} {...rest} dangerouslySetInnerHTML={{ __html: svgMarkup }} />;\n}\n\ntype ChartCardMenuProProps = Omit<ChartCardMenuOptionOnClickProps, 'theme'>;\n\nexport const ChartCardMenuPro: React.FC<ChartCardMenuProProps> = (props) => {\n const theme: Theme = useTheme() as Theme;\n i18nSetup(theme);\n\n const [isLoading, setIsLoading] = React.useState(false);\n\n const options = theme.defaults.chartMenuOptions ?? [];\n\n if (options.length === 0) {\n return null;\n }\n\n const startAction = (onClick: () => void | Promise<void>) => {\n setTimeout(() => {\n Promise.resolve(onClick()).finally(() => setIsLoading(false));\n }, 100);\n };\n\n const handleExport = (onClick: (props: ChartCardMenuOptionOnClickProps) => void) => {\n setIsLoading(true);\n if (props.onCustomDownload) {\n props.onCustomDownload((args) => startAction(() => onClick(args)));\n return;\n }\n startAction(() => onClick({ ...props, theme }));\n };\n\n return (\n <Dropdown\n side=\"bottom\"\n align=\"end\"\n triggerComponent={isLoading ? <ChartCardLoading /> : <ActionIcon icon={IconDotsVertical} />}\n >\n <SelectFieldContent className={styles.list} autoFocus>\n {options.map((option, index) => {\n const label = i18n.t(option.labelKey);\n\n return (\n <SelectListOption\n key={index}\n label={label}\n onClick={() => handleExport(option.onClick)}\n startIcon={option.iconSrc ? <InlineSvgFromData src={option.iconSrc} /> : undefined}\n />\n );\n })}\n </SelectFieldContent>\n </Dropdown>\n );\n};\n","import React, { CSSProperties, useRef } from 'react';\nimport { IconAlertCircle } from '@tabler/icons-react';\nimport {\n Card,\n CardContent,\n CardFeedback,\n CardHeader,\n Skeleton,\n} from '@embeddable.com/remarkable-ui';\nimport styles from './ChartCard.module.css';\nimport { DataResponse, Dimension, Measure } from '@embeddable.com/core';\nimport { useTheme } from '@embeddable.com/react';\nimport { ChartCardLoading } from './ChartCardLoading/ChartCardLoading';\nimport { ChartCardMenuPro } from './ChartCardMenuPro/ChartCardMenuPro';\nimport { Theme } from '../../../../theme/theme.types';\nimport { i18n, i18nSetup } from '../../../../theme/i18n/i18n';\nimport clsx from 'clsx';\nimport { ChartCardMenuOptionOnClickProps } from '../../../../theme/defaults/defaults.ChartCardMenu.constants';\n\ntype ChartCardProps = {\n title: string;\n subtitle?: string;\n children: React.ReactNode;\n data: DataResponse;\n errorMessage?: string;\n style?: CSSProperties;\n dimensionsAndMeasures?: (Dimension | Measure)[];\n onCustomDownload?: (props: (props: ChartCardMenuOptionOnClickProps) => void) => void;\n};\n\nexport const ChartCard = React.forwardRef<HTMLDivElement, ChartCardProps>(\n (\n { title, subtitle, children, data, errorMessage, dimensionsAndMeasures = [], onCustomDownload },\n ref,\n ) => {\n const theme: Theme = useTheme() as Theme;\n i18nSetup(theme);\n\n const chartRef = useRef<HTMLDivElement>(null);\n\n const hasData = Boolean(data?.data && data.data?.length > 0);\n\n const isLoading = !data || data?.isLoading;\n\n const getDisplay = () => {\n if (isLoading && !hasData) {\n return <Skeleton />;\n }\n\n if (errorMessage) {\n return (\n <CardFeedback\n variant=\"error\"\n icon={IconAlertCircle}\n title={i18n.t('charts.errorTitle')}\n message={errorMessage}\n />\n );\n }\n\n if (!hasData) {\n return (\n <CardFeedback\n title={i18n.t('charts.emptyTitle')}\n message={i18n.t('charts.emptyMessage')}\n />\n );\n }\n\n return children;\n };\n\n return (\n <Card className={styles.chartCard}>\n <CardHeader\n title={title}\n subtitle={subtitle}\n rightContent={\n <div className={styles.chartCardRightContent}>\n <div\n className={clsx(styles.fixedContent, isLoading ? styles.loading : styles.hidden)}\n >\n <ChartCardLoading />\n </div>\n <div\n className={clsx(styles.fixedContent, isLoading ? styles.hidden : styles.visible)}\n >\n <ChartCardMenuPro\n title={title}\n containerRef={chartRef}\n data={data?.data}\n dimensionsAndMeasures={dimensionsAndMeasures}\n onCustomDownload={onCustomDownload}\n />\n </div>\n </div>\n }\n />\n\n <CardContent ref={onCustomDownload ? ref : chartRef}>{getDisplay()}</CardContent>\n </Card>\n );\n },\n);\n\nChartCard.displayName = 'ChartCard';\n"],"names":["__iconNode","IconDotsVertical","createReactComponent","ChartCardLoading","jsx","IconLoader2","styles","InlineSvgFromData","src","className","rest","svgMarkup","ChartCardMenuPro","props","theme","useTheme","i18nSetup","isLoading","setIsLoading","React","options","startAction","onClick","handleExport","args","Dropdown","ActionIcon","SelectFieldContent","option","index","label","i18n","SelectListOption","ChartCard","title","subtitle","children","data","errorMessage","dimensionsAndMeasures","onCustomDownload","ref","chartRef","useRef","hasData","_a","getDisplay","Skeleton","CardFeedback","IconAlertCircle","jsxs","Card","CardHeader","clsx","CardContent"],"mappings":";;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa,CAAC,CAAC,QAAQ,EAAE,GAAK,uCAAuC,KAAO,QAAO,CAAE,GAAG,CAAC,QAAQ,EAAE,GAAK,uCAAuC,KAAO,SAAS,GAAG,CAAC,QAAQ,EAAE,GAAK,sCAAsC,KAAO,QAAO,CAAE,CAAC,GACzOC,IAAmBC,EAAqB,WAAW,iBAAiB,gBAAgBF,CAAU;;;;;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EAAAA,KAACC,GAAA,EAAK,WAAW7C,EAAO,WACtB,UAAA;AAAA,MAAAF,gBAAAA,EAAAA;AAAAA,QAACgD;AAAA,QAAA;AAAA,UACC,OAAAlB;AAAA,UACA,UAAAC;AAAA,UACA,cACEe,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAW5C,EAAO,uBACrB,UAAA;AAAA,YAAAF,gBAAAA,EAAAA;AAAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAWiD,EAAK/C,EAAO,cAAcW,IAAYX,EAAO,UAAUA,EAAO,MAAM;AAAA,gBAE/E,gCAACH,GAAA,CAAA,CAAiB;AAAA,cAAA;AAAA,YAAA;AAAA,YAEpBC,gBAAAA,EAAAA;AAAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAWiD,EAAK/C,EAAO,cAAcW,IAAYX,EAAO,SAASA,EAAO,OAAO;AAAA,gBAE/E,UAAAF,gBAAAA,EAAAA;AAAAA,kBAACQ;AAAA,kBAAA;AAAA,oBACC,OAAAsB;AAAA,oBACA,cAAcQ;AAAA,oBACd,MAAML,KAAA,gBAAAA,EAAM;AAAA,oBACZ,uBAAAE;AAAA,oBACA,kBAAAC;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACF;AAAA,YAAA;AAAA,UACF,EAAA,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,4BAIHc,GAAA,EAAY,KAAKd,IAAmBC,IAAMC,GAAW,cAAW,CAAE;AAAA,IAAA,GACrE;AAAA,EAEJ;AACF;AAEAT,EAAU,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -537,7 +537,7 @@ function Gv(e, t, n, a, r) {
|
|
|
537
537
|
countRows: e.countRows
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
const qv = "embeddable-event:load-data", Kv = (e, t, n, a) => {
|
|
540
|
+
const qv = "embeddable-event:load-data", jDe = "time", Kv = (e, t, n, a) => {
|
|
541
541
|
if (!t.from)
|
|
542
542
|
return "No dataset selected";
|
|
543
543
|
if (t.select && (t.dimensions || t.measures || t.timeDimensions))
|
|
@@ -566,14 +566,14 @@ const qv = "embeddable-event:load-data", Kv = (e, t, n, a) => {
|
|
|
566
566
|
propertyName: a
|
|
567
567
|
}
|
|
568
568
|
}));
|
|
569
|
-
},
|
|
569
|
+
}, ODe = (e) => ({
|
|
570
570
|
requestParams: e,
|
|
571
571
|
dataLoader: Kv
|
|
572
572
|
}), Lf = (e) => (e == null ? void 0 : e.__type__) === Ff, Yf = (e) => (e == null ? void 0 : e.__type__) === Rf, uc = (e) => "dimension" in (e ?? {}) && !("__type__" in e), Qv = (e) => Lf(e) || Yf(e), cc = (e, t) => ({
|
|
573
573
|
operation: e,
|
|
574
574
|
value: t ?? null,
|
|
575
575
|
__embeddableVariableMeta: !0
|
|
576
|
-
}),
|
|
576
|
+
}), EDe = {
|
|
577
577
|
noFilter: () => cc("NO_FILTER"),
|
|
578
578
|
of: (e) => cc("VALUE", e)
|
|
579
579
|
}, Jv = () => globalThis.__EMBEDDABLE_BUNDLE_HASH__ ?? null, Uv = (e, t) => {
|
|
@@ -606,7 +606,7 @@ const qv = "embeddable-event:load-data", Kv = (e, t, n, a) => {
|
|
|
606
606
|
oP,
|
|
607
607
|
sP,
|
|
608
608
|
lP
|
|
609
|
-
], cP = () => globalThis.__EMBEDDABLE_BUNDLE_HASH__ ?? null,
|
|
609
|
+
], cP = () => globalThis.__EMBEDDABLE_BUNDLE_HASH__ ?? null, zDe = (e, t) => {
|
|
610
610
|
var r, i, o, s;
|
|
611
611
|
const n = cP();
|
|
612
612
|
globalThis.__EMBEDDABLE__ ?? (globalThis.__EMBEDDABLE__ = {});
|
|
@@ -59220,7 +59220,7 @@ var L$e = "MenuAnchor", Bu = S.forwardRef(
|
|
|
59220
59220
|
}
|
|
59221
59221
|
);
|
|
59222
59222
|
Bu.displayName = L$e;
|
|
59223
|
-
var Y$e = "MenuPortal", [
|
|
59223
|
+
var Y$e = "MenuPortal", [FDe, $w] = ja(Y$e, {
|
|
59224
59224
|
forceMount: void 0
|
|
59225
59225
|
}), Ot = "MenuContent", [X$e, Gu] = ja(Ot), xw = S.forwardRef(
|
|
59226
59226
|
(e, t) => {
|
|
@@ -59587,7 +59587,7 @@ var nxe = "MenuArrow", zw = S.forwardRef(
|
|
|
59587
59587
|
}
|
|
59588
59588
|
);
|
|
59589
59589
|
zw.displayName = nxe;
|
|
59590
|
-
var axe = "MenuSub", [
|
|
59590
|
+
var axe = "MenuSub", [RDe, Aw] = ja(axe), Hr = "MenuSubTrigger", Iw = S.forwardRef(
|
|
59591
59591
|
(e, t) => {
|
|
59592
59592
|
const n = gr(Hr, e.__scopeMenu), a = Di(Hr, e.__scopeMenu), r = Aw(Hr, e.__scopeMenu), i = Gu(Hr, e.__scopeMenu), o = S.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: l } = i, d = { __scopeMenu: e.__scopeMenu }, u = S.useCallback(() => {
|
|
59593
59593
|
o.current && window.clearTimeout(o.current), o.current = null;
|
|
@@ -60278,7 +60278,7 @@ Zt.register(
|
|
|
60278
60278
|
is,
|
|
60279
60279
|
ds
|
|
60280
60280
|
);
|
|
60281
|
-
var
|
|
60281
|
+
var VDe = ({ data: e, onSegmentClick: t, options: n = {}, ...a }) => {
|
|
60282
60282
|
const r = Te(null), i = St(XWe(a), n), o = (s) => {
|
|
60283
60283
|
const l = Hs(s, r);
|
|
60284
60284
|
t == null || t(l);
|
|
@@ -60386,7 +60386,7 @@ Zt.register(
|
|
|
60386
60386
|
ds,
|
|
60387
60387
|
eu
|
|
60388
60388
|
);
|
|
60389
|
-
var
|
|
60389
|
+
var LDe = ({ options: e = {}, data: t, onSegmentClick: n, ...a }) => {
|
|
60390
60390
|
const r = Te(null), i = St(GWe(a), e), o = (s) => {
|
|
60391
60391
|
const l = Hs(s, r);
|
|
60392
60392
|
n == null || n(l);
|
|
@@ -60446,7 +60446,7 @@ var VDe = ({ options: e = {}, data: t, onSegmentClick: n, ...a }) => {
|
|
|
60446
60446
|
/* @__PURE__ */ k.jsx("span", { className: ft.kpiComparisonLabel, children: d ? s ?? r : r })
|
|
60447
60447
|
] }) }) })
|
|
60448
60448
|
] });
|
|
60449
|
-
}, KWe = ({ condition: e, wrapper: t, children: n }) => e ? t(n) : /* @__PURE__ */ k.jsx(k.Fragment, { children: n }), QWe = KWe,
|
|
60449
|
+
}, KWe = ({ condition: e, wrapper: t, children: n }) => e ? t(n) : /* @__PURE__ */ k.jsx(k.Fragment, { children: n }), QWe = KWe, YDe = ({
|
|
60450
60450
|
value: e,
|
|
60451
60451
|
valueFontSize: t,
|
|
60452
60452
|
trendFontSize: n,
|
|
@@ -60578,7 +60578,7 @@ var VDe = ({ options: e = {}, data: t, onSegmentClick: n, ...a }) => {
|
|
|
60578
60578
|
}, [e, t]), n;
|
|
60579
60579
|
}, Sf = 10;
|
|
60580
60580
|
Zt.register(da, os, is, ds, eu);
|
|
60581
|
-
var
|
|
60581
|
+
var XDe = ({
|
|
60582
60582
|
label: e,
|
|
60583
60583
|
subLabel: t,
|
|
60584
60584
|
options: n = {},
|
|
@@ -60606,7 +60606,7 @@ var YDe = ({
|
|
|
60606
60606
|
) });
|
|
60607
60607
|
};
|
|
60608
60608
|
Zt.register(da, os, is, ds, eu);
|
|
60609
|
-
var
|
|
60609
|
+
var BDe = ({
|
|
60610
60610
|
data: e,
|
|
60611
60611
|
options: t = {},
|
|
60612
60612
|
onSegmentClick: n,
|
|
@@ -60730,7 +60730,7 @@ var XDe = ({
|
|
|
60730
60730
|
minWidth: e ? `${e}px` : "unset",
|
|
60731
60731
|
maxWidth: e ? `${e}px` : "unset",
|
|
60732
60732
|
width: e ? `${e}px` : "unset"
|
|
60733
|
-
}),
|
|
60733
|
+
}), GDe = ({
|
|
60734
60734
|
data: e,
|
|
60735
60735
|
showValues: t = !1,
|
|
60736
60736
|
className: n,
|
|
@@ -60838,7 +60838,7 @@ var XDe = ({
|
|
|
60838
60838
|
] })
|
|
60839
60839
|
}
|
|
60840
60840
|
) });
|
|
60841
|
-
}, zf = (e) => typeof e == "number" && !Number.isNaN(e), Fl = (e, t) => `${e.toFixed(t)}%`,
|
|
60841
|
+
}, zf = (e) => typeof e == "number" && !Number.isNaN(e), Fl = (e, t) => `${e.toFixed(t)}%`, qDe = ({
|
|
60842
60842
|
columnWidth: e,
|
|
60843
60843
|
firstColumnWidth: t,
|
|
60844
60844
|
data: n,
|
|
@@ -61338,7 +61338,7 @@ var mDe = (e, t) => (e == null ? void 0 : e.id) === t.id ? e.direction === "asc"
|
|
|
61338
61338
|
}
|
|
61339
61339
|
);
|
|
61340
61340
|
wDe.displayName = "TablePaginated";
|
|
61341
|
-
var
|
|
61341
|
+
var KDe = ({
|
|
61342
61342
|
availableHeight: e,
|
|
61343
61343
|
headerHeight: t,
|
|
61344
61344
|
rowHeight: n,
|
|
@@ -61612,7 +61612,7 @@ var tc = ({
|
|
|
61612
61612
|
const { from: n, to: a } = e;
|
|
61613
61613
|
if (!(!n || !a))
|
|
61614
61614
|
return `${n ? n.toLocaleDateString() : ""} - ${a ? a.toLocaleDateString() : ""}`;
|
|
61615
|
-
},
|
|
61615
|
+
}, QDe = ({
|
|
61616
61616
|
locale: e,
|
|
61617
61617
|
displayValue: t,
|
|
61618
61618
|
value: n,
|
|
@@ -61846,7 +61846,7 @@ function dv(e, t = 300) {
|
|
|
61846
61846
|
}, t);
|
|
61847
61847
|
};
|
|
61848
61848
|
}
|
|
61849
|
-
var
|
|
61849
|
+
var JDe = ({
|
|
61850
61850
|
startIcon: e,
|
|
61851
61851
|
label: t,
|
|
61852
61852
|
required: n,
|
|
@@ -61971,7 +61971,7 @@ var QDe = ({
|
|
|
61971
61971
|
),
|
|
61972
61972
|
f && /* @__PURE__ */ k.jsx(_i, { message: f, variant: "error" })
|
|
61973
61973
|
] });
|
|
61974
|
-
},
|
|
61974
|
+
}, UDe = ({
|
|
61975
61975
|
label: e,
|
|
61976
61976
|
required: t,
|
|
61977
61977
|
value: n = "",
|
|
@@ -62076,7 +62076,7 @@ var QDe = ({
|
|
|
62076
62076
|
({ children: e, className: t, ...n }, a) => /* @__PURE__ */ k.jsx("div", { className: we(es.card, t), ref: a, ...n, children: e })
|
|
62077
62077
|
);
|
|
62078
62078
|
SDe.displayName = "Card";
|
|
62079
|
-
var
|
|
62079
|
+
var ZDe = ({ title: e, subtitle: t, rightContent: n }) => !e && !t && !n ? null : /* @__PURE__ */ k.jsxs("div", { className: es.cardHeader, children: [
|
|
62080
62080
|
/* @__PURE__ */ k.jsxs("div", { className: es.leftContent, children: [
|
|
62081
62081
|
e && /* @__PURE__ */ k.jsx("h1", { children: e }),
|
|
62082
62082
|
t && /* @__PURE__ */ k.jsx("p", { children: t })
|
|
@@ -62086,7 +62086,7 @@ var UDe = ({ title: e, subtitle: t, rightContent: n }) => !e && !t && !n ? null
|
|
|
62086
62086
|
({ children: e }, t) => /* @__PURE__ */ k.jsx("div", { className: es.cardContent, ref: t, children: e })
|
|
62087
62087
|
);
|
|
62088
62088
|
CDe.displayName = "CardContent";
|
|
62089
|
-
var
|
|
62089
|
+
var e_e = ({
|
|
62090
62090
|
icon: e,
|
|
62091
62091
|
title: t,
|
|
62092
62092
|
message: n,
|
|
@@ -62096,7 +62096,7 @@ var ZDe = ({
|
|
|
62096
62096
|
e && /* @__PURE__ */ k.jsx(e, {}),
|
|
62097
62097
|
/* @__PURE__ */ k.jsx("h2", { children: t }),
|
|
62098
62098
|
/* @__PURE__ */ k.jsx("p", { children: n })
|
|
62099
|
-
] }),
|
|
62099
|
+
] }), t_e = () => /* @__PURE__ */ k.jsx("div", { className: jWe.skeleton }), n_e = (e, t) => {
|
|
62100
62100
|
var r, i;
|
|
62101
62101
|
const n = Object.keys(e ?? {}), a = Object.keys(t ?? {});
|
|
62102
62102
|
if (n.length !== a.length)
|
|
@@ -62106,62 +62106,63 @@ var ZDe = ({
|
|
|
62106
62106
|
return !1;
|
|
62107
62107
|
return !0;
|
|
62108
62108
|
};
|
|
62109
|
-
const
|
|
62109
|
+
const a_e = Uv("color", {
|
|
62110
62110
|
label: "Color",
|
|
62111
62111
|
optionLabel: (e) => e.toUpperCase()
|
|
62112
62112
|
});
|
|
62113
62113
|
export {
|
|
62114
62114
|
Fr as A,
|
|
62115
|
-
|
|
62116
|
-
|
|
62117
|
-
|
|
62118
|
-
|
|
62119
|
-
|
|
62120
|
-
|
|
62121
|
-
|
|
62115
|
+
VDe as B,
|
|
62116
|
+
jDe as C,
|
|
62117
|
+
XDe as D,
|
|
62118
|
+
bP as E,
|
|
62119
|
+
WDe as F,
|
|
62120
|
+
iv as G,
|
|
62121
|
+
GDe as H,
|
|
62122
62122
|
Bf as I,
|
|
62123
|
-
|
|
62124
|
-
|
|
62125
|
-
|
|
62126
|
-
|
|
62127
|
-
|
|
62128
|
-
|
|
62129
|
-
|
|
62130
|
-
|
|
62131
|
-
|
|
62132
|
-
|
|
62123
|
+
rv as J,
|
|
62124
|
+
YDe as K,
|
|
62125
|
+
LDe as L,
|
|
62126
|
+
JDe as M,
|
|
62127
|
+
yP as N,
|
|
62128
|
+
Ls as O,
|
|
62129
|
+
BDe as P,
|
|
62130
|
+
WP as Q,
|
|
62131
|
+
we as R,
|
|
62132
|
+
UDe as S,
|
|
62133
62133
|
wDe as T,
|
|
62134
|
-
|
|
62135
|
-
|
|
62136
|
-
|
|
62137
|
-
|
|
62138
|
-
|
|
62139
|
-
|
|
62134
|
+
t_e as U,
|
|
62135
|
+
EDe as V,
|
|
62136
|
+
Uv as W,
|
|
62137
|
+
zDe as X,
|
|
62138
|
+
Lf as Y,
|
|
62139
|
+
bDe as Z,
|
|
62140
|
+
cDe as _,
|
|
62140
62141
|
EWe as a,
|
|
62141
62142
|
Qw as b,
|
|
62142
62143
|
re as c,
|
|
62143
|
-
|
|
62144
|
+
KDe as d,
|
|
62144
62145
|
pDe as e,
|
|
62145
|
-
|
|
62146
|
+
QDe as f,
|
|
62146
62147
|
ae as g,
|
|
62147
62148
|
Fs as h,
|
|
62148
62149
|
Wf as i,
|
|
62149
62150
|
k as j,
|
|
62150
|
-
|
|
62151
|
-
|
|
62151
|
+
qDe as k,
|
|
62152
|
+
ODe as l,
|
|
62152
62153
|
St as m,
|
|
62153
|
-
|
|
62154
|
-
|
|
62155
|
-
|
|
62156
|
-
|
|
62157
|
-
|
|
62158
|
-
|
|
62159
|
-
|
|
62154
|
+
SDe as n,
|
|
62155
|
+
ZDe as o,
|
|
62156
|
+
CDe as p,
|
|
62157
|
+
e_e as q,
|
|
62158
|
+
a_e as r,
|
|
62159
|
+
Ze as s,
|
|
62160
|
+
PDe as t,
|
|
62160
62161
|
UWe as u,
|
|
62161
|
-
|
|
62162
|
-
|
|
62163
|
-
|
|
62164
|
-
|
|
62165
|
-
|
|
62162
|
+
n_e as v,
|
|
62163
|
+
$De as w,
|
|
62164
|
+
ec as x,
|
|
62165
|
+
tc as y,
|
|
62166
|
+
nr as z
|
|
62166
62167
|
};
|
|
62167
|
-
//# sourceMappingURL=Color.type.emb-
|
|
62168
|
+
//# sourceMappingURL=Color.type.emb-C4VcPjfM.js.map
|