@embeddable.com/remarkable-pro 0.0.8 → 0.0.11
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-uZBftDKk.js +124 -0
- package/dist/ChartCard-uZBftDKk.js.map +1 -0
- package/dist/{Color.type.emb-CWTlQmpX.js → Color.type.emb-BPT7WKyR.js} +2 -2
- package/dist/{Color.type.emb-CWTlQmpX.js.map → Color.type.emb-BPT7WKyR.js.map} +1 -1
- package/dist/ColorEditor.js +2 -2
- package/dist/{ComparisonPeriod.type.emb-A4w1cgoZ.js → ComparisonPeriod.type.emb-Bq4r1RbE.js} +2 -2
- package/dist/{ComparisonPeriod.type.emb-A4w1cgoZ.js.map → ComparisonPeriod.type.emb-Bq4r1RbE.js.map} +1 -1
- package/dist/ComparisonPeriodSelectFieldPro.js +4 -4
- package/dist/DateRangeSelectFieldPro.js +3 -3
- package/dist/DonutChartPro.js +3 -3
- package/dist/DonutLabelChartPro.js +3 -3
- package/dist/{EditorCard-BZ9OPW3m.js → EditorCard-B95YC3pz.js} +3 -3
- package/dist/{EditorCard-BZ9OPW3m.js.map → EditorCard-B95YC3pz.js.map} +1 -1
- package/dist/HeatMapPro.js +4 -4
- package/dist/KpiChartNumberComparisonPro.js +14 -14
- package/dist/KpiChartNumberComparisonPro.js.map +1 -1
- package/dist/KpiChartNumberPro.js +3 -3
- package/dist/LineChartComparisonDefaultPro.js +5 -5
- package/dist/LineChartDefaultPro.js +4 -4
- 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/{bars.utils-wDaeYsgx.js → bars.utils-BHrcAtuH.js} +4 -4
- package/dist/{bars.utils-wDaeYsgx.js.map → bars.utils-BHrcAtuH.js.map} +1 -1
- package/dist/{charts.utils-DvG9esg1.js → charts.utils-DtFuEHDp.js} +23 -15
- package/dist/charts.utils-DtFuEHDp.js.map +1 -0
- package/dist/{component.constants-Dhb2rtRh.js → component.constants-DmK3uQGY.js} +78 -78
- package/dist/component.constants-DmK3uQGY.js.map +1 -0
- package/dist/components/charts/kpis/KpiChartNumberComparisonPro/index.d.ts.map +1 -1
- package/dist/components/charts/shared/ChartCard/ChartCard.d.ts +0 -1
- package/dist/components/charts/shared/ChartCard/ChartCard.d.ts.map +1 -1
- package/dist/embeddable-components.json +11 -11
- package/dist/embeddable-theme-0137e.js +20 -12
- package/dist/embeddable-types.js.map +1 -1
- package/dist/{formatter.utils-Bdp9Y-Lv.js → formatter.utils-DCDukEZ9.js} +2 -2
- package/dist/{formatter.utils-Bdp9Y-Lv.js.map → formatter.utils-DCDukEZ9.js.map} +1 -1
- package/dist/{index-BNMJTgo_.js → index-B92AHN8Y.js} +5 -5
- package/dist/{index-BNMJTgo_.js.map → index-B92AHN8Y.js.map} +1 -1
- package/dist/{index-YDGm7Lqn.js → index-BEM0olHp.js} +5 -5
- package/dist/{index-YDGm7Lqn.js.map → index-BEM0olHp.js.map} +1 -1
- package/dist/{index-CIrFPmqW.js → index-Bk1YIZZf.js} +5 -5
- package/dist/{index-CIrFPmqW.js.map → index-Bk1YIZZf.js.map} +1 -1
- package/dist/{index-cy3SJfGM.js → index-BuBPj3by.js} +5 -5
- package/dist/{index-cy3SJfGM.js.map → index-BuBPj3by.js.map} +1 -1
- package/dist/{index-xD9YxZRB.js → index-C23J5jXR.js} +5 -5
- package/dist/{index-xD9YxZRB.js.map → index-C23J5jXR.js.map} +1 -1
- package/dist/{index-CLN53xva.js → index-C6oyYlMu.js} +17 -17
- package/dist/index-C6oyYlMu.js.map +1 -0
- package/dist/{index-DyLLyX5j.js → index-C7mz7pKQ.js} +5 -5
- package/dist/{index-DyLLyX5j.js.map → index-C7mz7pKQ.js.map} +1 -1
- package/dist/{index-CGOYyhMg.js → index-CFoVL8LS.js} +6 -6
- package/dist/{index-CGOYyhMg.js.map → index-CFoVL8LS.js.map} +1 -1
- package/dist/{index-BSWbd7z_.js → index-CbWn6WMr.js} +5 -5
- package/dist/{index-BSWbd7z_.js.map → index-CbWn6WMr.js.map} +1 -1
- package/dist/index-Cj6xdAWZ.js +84 -0
- package/dist/{index-Dj2GCs_C.js.map → index-Cj6xdAWZ.js.map} +1 -1
- package/dist/{index-lk-Z0NGN.js → index-CmYz5k0C.js} +5 -5
- package/dist/{index-lk-Z0NGN.js.map → index-CmYz5k0C.js.map} +1 -1
- package/dist/{index-BANAOc5o.js → index-DSk9EA7t.js} +5 -5
- package/dist/{index-BANAOc5o.js.map → index-DSk9EA7t.js.map} +1 -1
- package/dist/{index-Ci7quilT.js → index-D_-Nl-64.js} +6 -6
- package/dist/{index-Ci7quilT.js.map → index-D_-Nl-64.js.map} +1 -1
- package/dist/{index-BFslD2mO.js → index-Dbg-T-ST.js} +5 -5
- package/dist/{index-BFslD2mO.js.map → index-Dbg-T-ST.js.map} +1 -1
- package/dist/{index-BzzDZ7Wg.js → index-Dfh1KgI5.js} +5 -5
- package/dist/{index-BzzDZ7Wg.js.map → index-Dfh1KgI5.js.map} +1 -1
- package/dist/{index-CK9V-wz1.js → index-DjwSlZQY.js} +3823 -3588
- package/dist/index-DjwSlZQY.js.map +1 -0
- package/dist/{index-DsuuGokg.js → index-GhU7CFw0.js} +5 -5
- package/dist/{index-DsuuGokg.js.map → index-GhU7CFw0.js.map} +1 -1
- package/dist/{index-D4L5OYNQ.js → index-O8I3E36E.js} +5 -5
- package/dist/{index-D4L5OYNQ.js.map → index-O8I3E36E.js.map} +1 -1
- package/dist/{index-CC_OkY5h.js → index-SIEfd0gp.js} +5 -5
- package/dist/{index-CC_OkY5h.js.map → index-SIEfd0gp.js.map} +1 -1
- package/dist/{index-DfMuZY6D.js → index-jqEl3LLC.js} +5 -5
- package/dist/{index-DfMuZY6D.js.map → index-jqEl3LLC.js.map} +1 -1
- package/dist/{index-B7H0xf_l.js → index-mp4eyizO.js} +5 -5
- package/dist/{index-B7H0xf_l.js.map → index-mp4eyizO.js.map} +1 -1
- package/dist/{index-CVTxkwt-.js → index-sJkPi8Q_.js} +5 -5
- package/dist/{index-CVTxkwt-.js.map → index-sJkPi8Q_.js.map} +1 -1
- package/dist/index.js +29 -29
- package/dist/{pies.utils-eND-eqpj.js → pies.utils-Zw1lwwC4.js} +5 -5
- package/dist/{pies.utils-eND-eqpj.js.map → pies.utils-Zw1lwwC4.js.map} +1 -1
- package/dist/remarkable-pro.css +1 -1
- package/dist/theme/i18n/translations/de.d.ts.map +1 -1
- package/dist/theme/i18n/translations/en.d.ts.map +1 -1
- package/dist/{timeRange.utils-DLTzyLvc.js → timeRange.utils-C96Hp2HD.js} +2 -2
- package/dist/{timeRange.utils-DLTzyLvc.js.map → timeRange.utils-C96Hp2HD.js.map} +1 -1
- package/package.json +6 -6
- package/dist/ChartCard-DbWy6Y6D.js +0 -127
- package/dist/ChartCard-DbWy6Y6D.js.map +0 -1
- package/dist/charts.utils-DvG9esg1.js.map +0 -1
- package/dist/component.constants-Dhb2rtRh.js.map +0 -1
- package/dist/index-CK9V-wz1.js.map +0 -1
- package/dist/index-CLN53xva.js.map +0 -1
- package/dist/index-Dj2GCs_C.js +0 -82
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as e, l as s } from "./index-
|
|
1
|
+
import { V as e, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as o } from "@embeddable.com/react";
|
|
3
|
-
import { B as r } from "./index-
|
|
4
|
-
import { v as i, E as t, z as l, F as n, G as m, I as x, J as u, K as d, M as c, N as f, O as h, R as p, U as D, V as b, X as B } from "./component.constants-
|
|
3
|
+
import { B as r } from "./index-Dfh1KgI5.js";
|
|
4
|
+
import { v as i, E as t, z as l, F as n, G as m, I as x, J as u, K as d, M as c, N as f, O as h, R as p, U as D, V as b, X as B } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "BarChartDefaultHorizontalPro",
|
|
7
7
|
label: "Bar Chart - Default Horizontal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as e, l as s } from "./index-
|
|
1
|
+
import { V as e, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as r } from "@embeddable.com/react";
|
|
3
|
-
import { B as i } from "./index-
|
|
4
|
-
import { v as t, E as o, z as l, F as n, G as m, I as x, J as u, K as d, M as c, N as f, O as h, P as p, S as D, T as b, W as B } from "./component.constants-
|
|
3
|
+
import { B as i } from "./index-jqEl3LLC.js";
|
|
4
|
+
import { v as t, E as o, z as l, F as n, G as m, I as x, J as u, K as d, M as c, N as f, O as h, P as p, S as D, T as b, W as B } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "BarChartDefaultPro",
|
|
7
7
|
label: "Bar Chart - Default",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as e, l as s } from "./index-
|
|
1
|
+
import { V as e, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as o } from "@embeddable.com/react";
|
|
3
|
-
import { B as i } from "./index-
|
|
4
|
-
import { v as r, D as n, z as l, w as t, F as m, G as u, H as p, I as d, J as x, K as g, M as c, N as V, O as b, R as h, U as B, V as D } from "./component.constants-
|
|
3
|
+
import { B as i } from "./index-B92AHN8Y.js";
|
|
4
|
+
import { v as r, D as n, z as l, w as t, F as m, G as u, H as p, I as d, J as x, K as g, M as c, N as V, O as b, R as h, U as B, V as D } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "BarChartGroupedHorizontalPro",
|
|
7
7
|
label: "Bar Chart - Grouped Horizontal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as a, l as s } from "./index-
|
|
1
|
+
import { V as a, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as i } from "@embeddable.com/react";
|
|
3
|
-
import { B as r } from "./index-
|
|
4
|
-
import { v as o, D as n, z as l, w as t, F as m, G as u, H as p, I as d, J as x, K as g, M as c, N as b, O as V, P as h, S as B, T as D } from "./component.constants-
|
|
3
|
+
import { B as r } from "./index-DSk9EA7t.js";
|
|
4
|
+
import { v as o, D as n, z as l, w as t, F as m, G as u, H as p, I as d, J as x, K as g, M as c, N as b, O as V, P as h, S as B, T as D } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "BarChartGroupedPro",
|
|
7
7
|
label: "Bar Chart - Grouped",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as e, l as s } from "./index-
|
|
1
|
+
import { V as e, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as i } from "@embeddable.com/react";
|
|
3
|
-
import { B as o } from "./index-
|
|
4
|
-
import { v as r, D as l, z as n, w as t, F as m, G as u, H as d, I as x, J as c, K as p, M as g, N as b, O as V, R as h, U as B, V as D, L as C } from "./component.constants-
|
|
3
|
+
import { B as o } from "./index-BEM0olHp.js";
|
|
4
|
+
import { v as r, D as l, z as n, w as t, F as m, G as u, H as d, I as x, J as c, K as p, M as g, N as b, O as V, R as h, U as B, V as D, L as C } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const f = {
|
|
6
6
|
name: "BarChartStackedHorizontalPro",
|
|
7
7
|
label: "Bar Chart - Stacked Horizontal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as e, l as s } from "./index-
|
|
1
|
+
import { V as e, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as i } from "@embeddable.com/react";
|
|
3
|
-
import { B as o } from "./index-
|
|
4
|
-
import { v as r, D as l, z as n, w as t, F as m, G as u, H as d, I as x, J as c, K as p, M as g, N as b, O as h, P as V, S as B, T as D, L as C } from "./component.constants-
|
|
3
|
+
import { B as o } from "./index-CbWn6WMr.js";
|
|
4
|
+
import { v as r, D as l, z as n, w as t, F as m, G as u, H as d, I as x, J as c, K as p, M as g, N as b, O as h, P as V, S as B, T as D, L as C } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const f = {
|
|
6
6
|
name: "BarChartStackedPro",
|
|
7
7
|
label: "Bar Chart - Stacked",
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { s as R, j as t, t as I, v as S, w as L, x as N, A as k, C as D, p as M, y as x, q as b, z as w, r as _ } from "./index-DjwSlZQY.js";
|
|
2
|
+
import f, { useRef as T } from "react";
|
|
3
|
+
import { useTheme as j } from "@embeddable.com/react";
|
|
4
|
+
import { a as p, i as m, a0 as A } from "./component.constants-DmK3uQGY.js";
|
|
5
|
+
/**
|
|
6
|
+
* @license @tabler/icons-react v3.36.0 - MIT
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license.
|
|
9
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
const F = [["path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-0" }], ["path", { d: "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }], ["path", { d: "M12 5m-1 0a1 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", V = "_chartCardRightContent_84eo6_22", o = {
|
|
12
|
+
chartCard: E,
|
|
13
|
+
fixedContent: H,
|
|
14
|
+
loading: O,
|
|
15
|
+
hidden: P,
|
|
16
|
+
chartCardRightContent: V
|
|
17
|
+
}, q = "_loading_1amm4_7", z = {
|
|
18
|
+
loading: q
|
|
19
|
+
}, v = () => /* @__PURE__ */ t.jsx(I, { className: z.loading }), B = "_list_mwshn_1", K = {
|
|
20
|
+
list: B
|
|
21
|
+
};
|
|
22
|
+
function U({ src: s, className: a, ...r }) {
|
|
23
|
+
const e = decodeURIComponent(s.replace(/^data:image\/svg\+xml,/, ""));
|
|
24
|
+
return /* @__PURE__ */ t.jsx("div", { className: a, ...r, dangerouslySetInnerHTML: { __html: e } });
|
|
25
|
+
}
|
|
26
|
+
const G = (s) => {
|
|
27
|
+
const a = j();
|
|
28
|
+
p(a);
|
|
29
|
+
const [r, e] = f.useState(!1), i = a.defaults.chartMenuOptions ?? [];
|
|
30
|
+
if (i.length === 0)
|
|
31
|
+
return null;
|
|
32
|
+
const l = (n) => {
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
Promise.resolve(n()).finally(() => e(!1));
|
|
35
|
+
}, 100);
|
|
36
|
+
}, d = (n) => {
|
|
37
|
+
if (e(!0), s.onCustomDownload) {
|
|
38
|
+
s.onCustomDownload((c) => l(() => n(c)));
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
l(() => n({ ...s, theme: a }));
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ t.jsx(
|
|
44
|
+
S,
|
|
45
|
+
{
|
|
46
|
+
side: "bottom",
|
|
47
|
+
align: "end",
|
|
48
|
+
triggerComponent: r ? /* @__PURE__ */ t.jsx(v, {}) : /* @__PURE__ */ t.jsx(k, { icon: $ }),
|
|
49
|
+
children: /* @__PURE__ */ t.jsx(L, { className: K.list, autoFocus: !0, children: i.map((n, c) => {
|
|
50
|
+
const h = m.t(n.labelKey);
|
|
51
|
+
return /* @__PURE__ */ t.jsx(
|
|
52
|
+
N,
|
|
53
|
+
{
|
|
54
|
+
label: h,
|
|
55
|
+
onClick: () => d(n.onClick),
|
|
56
|
+
startIcon: n.iconSrc ? /* @__PURE__ */ t.jsx(U, { src: n.iconSrc }) : void 0
|
|
57
|
+
},
|
|
58
|
+
c
|
|
59
|
+
);
|
|
60
|
+
}) })
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}, J = f.forwardRef(
|
|
64
|
+
({ title: s, subtitle: a, children: r, data: e, errorMessage: i, dimensionsAndMeasures: l = [], onCustomDownload: d }, n) => {
|
|
65
|
+
var u;
|
|
66
|
+
const c = j();
|
|
67
|
+
p(c);
|
|
68
|
+
const h = T(null), g = !!(e != null && e.data && ((u = e.data) == null ? void 0 : u.length) > 0), C = !e || (e == null ? void 0 : e.isLoading), y = () => C && !g ? /* @__PURE__ */ t.jsx(w, {}) : i ? /* @__PURE__ */ t.jsx(
|
|
69
|
+
_,
|
|
70
|
+
{
|
|
71
|
+
variant: "error",
|
|
72
|
+
icon: A,
|
|
73
|
+
title: m.t("charts.errorTitle"),
|
|
74
|
+
message: i
|
|
75
|
+
}
|
|
76
|
+
) : g ? r : /* @__PURE__ */ t.jsx(
|
|
77
|
+
_,
|
|
78
|
+
{
|
|
79
|
+
title: m.t("charts.emptyTitle"),
|
|
80
|
+
message: m.t("charts.emptyMessage")
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
return /* @__PURE__ */ t.jsxs(D, { className: o.chartCard, children: [
|
|
84
|
+
/* @__PURE__ */ t.jsx(
|
|
85
|
+
M,
|
|
86
|
+
{
|
|
87
|
+
title: s,
|
|
88
|
+
subtitle: a,
|
|
89
|
+
rightContent: /* @__PURE__ */ t.jsxs("div", { className: o.chartCardRightContent, children: [
|
|
90
|
+
/* @__PURE__ */ t.jsx(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
className: x(o.fixedContent, C ? o.loading : o.hidden),
|
|
94
|
+
children: /* @__PURE__ */ t.jsx(v, {})
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ t.jsx(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: x(o.fixedContent, C ? o.hidden : o.visible),
|
|
101
|
+
children: /* @__PURE__ */ t.jsx(
|
|
102
|
+
G,
|
|
103
|
+
{
|
|
104
|
+
title: s,
|
|
105
|
+
containerRef: h,
|
|
106
|
+
data: e == null ? void 0 : e.data,
|
|
107
|
+
dimensionsAndMeasures: l,
|
|
108
|
+
onCustomDownload: d
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] })
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ t.jsx(b, { ref: d ? n : h, children: y() })
|
|
117
|
+
] });
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
J.displayName = "ChartCard";
|
|
121
|
+
export {
|
|
122
|
+
J as C
|
|
123
|
+
};
|
|
124
|
+
//# sourceMappingURL=ChartCard-uZBftDKk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartCard-uZBftDKk.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.0 - 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\": \"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-0\" }], [\"path\", { \"d\": \"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0\", \"key\": \"svg-1\" }], [\"path\", { \"d\": \"M12 5m-1 0a1 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":"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","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e } from "./index-
|
|
1
|
+
import { d as e } from "./index-DjwSlZQY.js";
|
|
2
2
|
const r = e("color", {
|
|
3
3
|
label: "Color",
|
|
4
4
|
optionLabel: (o) => o.toUpperCase()
|
|
@@ -6,4 +6,4 @@ const r = e("color", {
|
|
|
6
6
|
export {
|
|
7
7
|
r as C
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=Color.type.emb-
|
|
9
|
+
//# sourceMappingURL=Color.type.emb-BPT7WKyR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Color.type.emb-
|
|
1
|
+
{"version":3,"file":"Color.type.emb-BPT7WKyR.js","sources":["../src/editors/ColorEditor/Color.type.emb.ts"],"sourcesContent":["import { defineType } from '@embeddable.com/core';\n\nconst ColorType = defineType('color', {\n label: 'Color',\n optionLabel: (value: string) => value.toUpperCase(),\n});\n\nexport default ColorType;\n"],"names":["ColorType","defineType","value"],"mappings":";AAEA,MAAMA,IAAYC,EAAW,SAAS;AAAA,EACpC,OAAO;AAAA,EACP,aAAa,CAACC,MAAkBA,EAAM,YAAA;AACxC,CAAC;"}
|
package/dist/ColorEditor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineEditor as l } from "@embeddable.com/react";
|
|
2
|
-
import { C as a } from "./Color.type.emb-
|
|
3
|
-
import { j as n, A as i, I as p, V as u } from "./index-
|
|
2
|
+
import { C as a } from "./Color.type.emb-BPT7WKyR.js";
|
|
3
|
+
import { j as n, A as i, I as p, V as u } from "./index-DjwSlZQY.js";
|
|
4
4
|
import { useState as m, useEffect as C } from "react";
|
|
5
5
|
const I = "_colorInputContainer_1o1qe_1", d = "_colorInput_1o1qe_1", s = {
|
|
6
6
|
colorInputContainer: I,
|
package/dist/{ComparisonPeriod.type.emb-A4w1cgoZ.js → ComparisonPeriod.type.emb-Bq4r1RbE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as i, b as o } from "./index-
|
|
1
|
+
import { d as i, b as o } from "./index-DjwSlZQY.js";
|
|
2
2
|
const e = i("comparisonPeriod", {
|
|
3
3
|
label: "Comparison Period",
|
|
4
4
|
optionLabel: (r) => r
|
|
@@ -11,4 +11,4 @@ o(e, "Previous year");
|
|
|
11
11
|
export {
|
|
12
12
|
e as C
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=ComparisonPeriod.type.emb-
|
|
14
|
+
//# sourceMappingURL=ComparisonPeriod.type.emb-Bq4r1RbE.js.map
|
package/dist/{ComparisonPeriod.type.emb-A4w1cgoZ.js.map → ComparisonPeriod.type.emb-Bq4r1RbE.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComparisonPeriod.type.emb-
|
|
1
|
+
{"version":3,"file":"ComparisonPeriod.type.emb-Bq4r1RbE.js","sources":["../src/components/types/ComparisonPeriod.type.emb.ts"],"sourcesContent":["import { defineOption, defineType } from '@embeddable.com/core';\n\nconst ComparisonPeriodType = defineType('comparisonPeriod', {\n label: 'Comparison Period',\n optionLabel: (value: string) => value,\n});\n\ndefineOption(ComparisonPeriodType, 'Previous period');\ndefineOption(ComparisonPeriodType, 'Previous week');\ndefineOption(ComparisonPeriodType, 'Previous month');\ndefineOption(ComparisonPeriodType, 'Previous quarter');\ndefineOption(ComparisonPeriodType, 'Previous year');\n\nexport default ComparisonPeriodType;\n"],"names":["ComparisonPeriodType","defineType","value","defineOption"],"mappings":";AAEA,MAAMA,IAAuBC,EAAW,oBAAoB;AAAA,EAC1D,OAAO;AAAA,EACP,aAAa,CAACC,MAAkBA;AAClC,CAAC;AAEDC,EAAaH,GAAsB,iBAAiB;AACpDG,EAAaH,GAAsB,eAAe;AAClDG,EAAaH,GAAsB,gBAAgB;AACnDG,EAAaH,GAAsB,kBAAkB;AACrDG,EAAaH,GAAsB,eAAe;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as r } from "@embeddable.com/react";
|
|
2
|
-
import { V as a } from "./index-
|
|
3
|
-
import { D as i } from "./index-
|
|
4
|
-
import { F as t, G as n, _ as l } from "./component.constants-
|
|
5
|
-
import { C as o } from "./ComparisonPeriod.type.emb-
|
|
2
|
+
import { V as a } from "./index-DjwSlZQY.js";
|
|
3
|
+
import { D as i } from "./index-C7mz7pKQ.js";
|
|
4
|
+
import { F as t, G as n, _ as l } from "./component.constants-DmK3uQGY.js";
|
|
5
|
+
import { C as o } from "./ComparisonPeriod.type.emb-Bq4r1RbE.js";
|
|
6
6
|
const p = {
|
|
7
7
|
name: "ComparisonPeriodSelectFieldPro",
|
|
8
8
|
label: "Comparison Period Select Field",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as t } from "@embeddable.com/react";
|
|
2
|
-
import { V as a } from "./index-
|
|
3
|
-
import { D as l } from "./index-
|
|
4
|
-
import { F as n, G as r, _ as o, g as i } from "./component.constants-
|
|
2
|
+
import { V as a } from "./index-DjwSlZQY.js";
|
|
3
|
+
import { D as l } from "./index-mp4eyizO.js";
|
|
4
|
+
import { F as n, G as r, _ as o, g as i } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const d = {
|
|
6
6
|
name: "DateRangeSelectFieldPro",
|
|
7
7
|
label: "Date Range Select Field",
|
package/dist/DonutChartPro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as a, l as s } from "./index-
|
|
1
|
+
import { V as a, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as t } from "@embeddable.com/react";
|
|
3
|
-
import { D as o } from "./index-
|
|
4
|
-
import { v as n, D as r, w as i, F as m, G as l, I as d, Z as u, J as p, K as c } from "./component.constants-
|
|
3
|
+
import { D as o } from "./index-Dbg-T-ST.js";
|
|
4
|
+
import { v as n, D as r, w as i, F as m, G as l, I as d, Z as u, J as p, K as c } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "DonutChartPro",
|
|
7
7
|
label: "Donut Chart",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as n } from "./index-
|
|
2
|
-
import { V as s, l as a } from "./index-
|
|
1
|
+
import { D as n } from "./index-CFoVL8LS.js";
|
|
2
|
+
import { V as s, l as a } from "./index-DjwSlZQY.js";
|
|
3
3
|
import { defineComponent as r } from "@embeddable.com/react";
|
|
4
|
-
import { v as o, D as t, w as l, F as i, G as m, I as d, Z as u, J as b, K as c } from "./component.constants-
|
|
4
|
+
import { v as o, D as t, w as l, F as i, G as m, I as d, Z as u, J as b, K as c } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const p = {
|
|
6
6
|
name: "DonutLabelChartPro",
|
|
7
7
|
label: "Donut Label Chart",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r, C as c, p as d, q as m, r as l } from "./index-
|
|
1
|
+
import { j as r, C as c, p as d, q as m, r as l } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { useTheme as p } from "@embeddable.com/react";
|
|
3
|
-
import { a as C, i as x, a0 as j } from "./component.constants-
|
|
3
|
+
import { a as C, i as x, a0 as j } from "./component.constants-DmK3uQGY.js";
|
|
4
4
|
const u = "_card_15bw3_1", f = {
|
|
5
5
|
card: u
|
|
6
6
|
}, b = ({
|
|
@@ -29,4 +29,4 @@ const u = "_card_15bw3_1", f = {
|
|
|
29
29
|
export {
|
|
30
30
|
b as E
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=EditorCard-
|
|
32
|
+
//# sourceMappingURL=EditorCard-B95YC3pz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorCard-
|
|
1
|
+
{"version":3,"file":"EditorCard-B95YC3pz.js","sources":["../src/components/editors/shared/EditorCard/EditorCard.tsx"],"sourcesContent":["import { useTheme } from '@embeddable.com/react';\nimport { i18n, i18nSetup } from '../../../../theme/i18n/i18n';\nimport styles from './EditorCard.module.css';\nimport { FC } from 'react';\nimport { Theme } from '../../../../theme/theme.types';\nimport { Card, CardContent, CardFeedback, CardHeader } from '@embeddable.com/remarkable-ui';\nimport { IconAlertCircle } from '@tabler/icons-react';\n\ntype EditorCardProps = {\n title?: string;\n subtitle?: string;\n children: React.ReactNode;\n errorMessage?: string;\n};\n\nexport const EditorCard: FC<EditorCardProps> = ({\n title,\n subtitle,\n children,\n errorMessage,\n ...props\n}) => {\n const theme: Theme = useTheme() as Theme;\n i18nSetup(theme);\n\n const getDisplay = () => {\n if (errorMessage) {\n return (\n <CardFeedback\n variant=\"error\"\n icon={IconAlertCircle}\n title={i18n.t('editors.errorTitle')}\n message={errorMessage}\n />\n );\n }\n\n return children;\n };\n\n return (\n <Card className={styles.card} {...props}>\n <CardHeader title={title} subtitle={subtitle} />\n <CardContent>{getDisplay()}</CardContent>\n </Card>\n );\n};\n"],"names":["EditorCard","title","subtitle","children","errorMessage","props","theme","useTheme","i18nSetup","getDisplay","jsx","CardFeedback","IconAlertCircle","i18n","Card","styles","CardHeader","CardContent"],"mappings":";;;;;GAeaA,IAAkC,CAAC;AAAA,EAC9C,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAeC,EAAA;AACrB,EAAAC,EAAUF,CAAK;AAEf,QAAMG,IAAa,MACbL,IAEAM,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAMC;AAAA,MACN,OAAOC,EAAK,EAAE,oBAAoB;AAAA,MAClC,SAAST;AAAA,IAAA;AAAA,EAAA,IAKRD;AAGT,gCACGW,GAAA,EAAK,WAAWC,EAAO,MAAO,GAAGV,GAChC,UAAA;AAAA,IAAAK,gBAAAA,EAAAA,IAACM,GAAA,EAAW,OAAAf,GAAc,UAAAC,EAAA,CAAoB;AAAA,IAC9CQ,gBAAAA,EAAAA,IAACO,GAAA,EAAa,UAAAR,EAAA,EAAW,CAAE;AAAA,EAAA,GAC7B;AAEJ;"}
|
package/dist/HeatMapPro.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l } from "./index-
|
|
1
|
+
import { l } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as n } from "@embeddable.com/react";
|
|
3
|
-
import { H as i } from "./index-
|
|
4
|
-
import { v as m, D as s, z as t, F as u, G as d, d as a, g as p, c as r, H as g } from "./component.constants-
|
|
5
|
-
import { C as o } from "./Color.type.emb-
|
|
3
|
+
import { H as i } from "./index-GhU7CFw0.js";
|
|
4
|
+
import { v as m, D as s, z as t, F as u, G as d, d as a, g as p, c as r, H as g } from "./component.constants-DmK3uQGY.js";
|
|
5
|
+
import { C as o } from "./Color.type.emb-BPT7WKyR.js";
|
|
6
6
|
const c = {
|
|
7
7
|
name: "HeatMapPro",
|
|
8
8
|
label: "Heat Map",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { v as l, D as s, y as p, b as c, F as g, G as
|
|
3
|
-
import { K as
|
|
4
|
-
import { l as i } from "./index-
|
|
5
|
-
import { C
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as t } from "@embeddable.com/react";
|
|
2
|
+
import { v as l, D as s, y as p, b as c, F as g, G as d, g as o, c as r } from "./component.constants-DmK3uQGY.js";
|
|
3
|
+
import { K as y } from "./index-Cj6xdAWZ.js";
|
|
4
|
+
import { l as i } from "./index-DjwSlZQY.js";
|
|
5
|
+
import { C } from "./ComparisonPeriod.type.emb-Bq4r1RbE.js";
|
|
6
|
+
const P = {
|
|
7
7
|
name: "KpiChartNumberComparisonPro",
|
|
8
8
|
label: "Kpi Chart - Number Comparison",
|
|
9
9
|
category: "Kpi Charts",
|
|
@@ -20,13 +20,13 @@ const D = {
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
name: "comparisonPeriod",
|
|
23
|
-
type:
|
|
23
|
+
type: C,
|
|
24
24
|
label: "Comparison Period",
|
|
25
25
|
description: "You can also connect this to a comparison period selector using its variable",
|
|
26
26
|
category: "Component Data"
|
|
27
27
|
},
|
|
28
28
|
g,
|
|
29
|
-
|
|
29
|
+
d,
|
|
30
30
|
{
|
|
31
31
|
...o,
|
|
32
32
|
name: "displayChangeAsPercentage",
|
|
@@ -49,15 +49,15 @@ const D = {
|
|
|
49
49
|
{
|
|
50
50
|
...r,
|
|
51
51
|
name: "changeFontSize",
|
|
52
|
-
label: "
|
|
52
|
+
label: "Trend Font Size"
|
|
53
53
|
}
|
|
54
54
|
]
|
|
55
|
-
}, v =
|
|
56
|
-
|
|
57
|
-
props: (e, [a, t]) => ({
|
|
55
|
+
}, v = t(y, P, {
|
|
56
|
+
props: (e, [a, m]) => ({
|
|
58
57
|
...e,
|
|
58
|
+
comparisonPeriod: e.comparisonPeriod,
|
|
59
59
|
comparisonDateRange: a == null ? void 0 : a.comparisonDateRange,
|
|
60
|
-
setComparisonDateRange: (n) =>
|
|
60
|
+
setComparisonDateRange: (n) => m({ comparisonDateRange: n }),
|
|
61
61
|
results: i({
|
|
62
62
|
from: e.dataset,
|
|
63
63
|
select: [e.measure],
|
|
@@ -86,6 +86,6 @@ const D = {
|
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
88
|
v as default,
|
|
89
|
-
|
|
89
|
+
P as meta
|
|
90
90
|
};
|
|
91
91
|
//# sourceMappingURL=KpiChartNumberComparisonPro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KpiChartNumberComparisonPro.js","sources":["../src/components/charts/kpis/KpiChartNumberComparisonPro/KpiChartNumberComparisonPro.emb.ts"],"sourcesContent":["import { defineComponent, EmbeddedComponentMeta, Inputs } from '@embeddable.com/react';\nimport {\n dataset,\n description,\n dimensionTime,\n genericBoolean,\n genericNumber,\n genericTimeRange,\n measure,\n title,\n} from '../../../component.constants';\nimport KpiChartNumberComparisonPro from './index';\nimport { loadData, TimeRange } from '@embeddable.com/core';\nimport ComparisonPeriodType from '../../../types/ComparisonPeriod.type.emb';\n\nexport const meta = {\n name: 'KpiChartNumberComparisonPro',\n label: 'Kpi Chart - Number Comparison',\n category: 'Kpi Charts',\n inputs: [\n dataset,\n measure,\n { ...dimensionTime, name: 'timeProperty', label: 'Time Property' },\n {\n ...genericTimeRange,\n name: 'primaryDateRange',\n label: 'Primary Date Range',\n description: 'You can also connect this to a date range selector using its variable',\n category: 'Component Data',\n },\n {\n name: 'comparisonPeriod',\n type: ComparisonPeriodType,\n label: 'Comparison Period',\n description: 'You can also connect this to a comparison period selector using its variable',\n category: 'Component Data',\n },\n title,\n description,\n {\n ...genericBoolean,\n name: 'displayChangeAsPercentage',\n label: 'Display Change as %',\n defaultValue: false,\n },\n {\n ...genericNumber,\n name: 'percentageDecimalPlaces',\n label: 'Percentage Decimal Places',\n defaultValue: 1,\n },\n {\n ...genericBoolean,\n name: 'reversePositiveNegativeColors',\n label: 'Reverse Positive/Negative Colors',\n defaultValue: false,\n },\n { ...genericNumber, name: 'fontSize', label: 'Font Size' },\n {\n ...genericNumber,\n name: 'changeFontSize',\n label: '
|
|
1
|
+
{"version":3,"file":"KpiChartNumberComparisonPro.js","sources":["../src/components/charts/kpis/KpiChartNumberComparisonPro/KpiChartNumberComparisonPro.emb.ts"],"sourcesContent":["import { defineComponent, EmbeddedComponentMeta, Inputs } from '@embeddable.com/react';\nimport {\n dataset,\n description,\n dimensionTime,\n genericBoolean,\n genericNumber,\n genericTimeRange,\n measure,\n title,\n} from '../../../component.constants';\nimport KpiChartNumberComparisonPro from './index';\nimport { loadData, TimeRange } from '@embeddable.com/core';\nimport ComparisonPeriodType from '../../../types/ComparisonPeriod.type.emb';\n\nexport const meta = {\n name: 'KpiChartNumberComparisonPro',\n label: 'Kpi Chart - Number Comparison',\n category: 'Kpi Charts',\n inputs: [\n dataset,\n measure,\n { ...dimensionTime, name: 'timeProperty', label: 'Time Property' },\n {\n ...genericTimeRange,\n name: 'primaryDateRange',\n label: 'Primary Date Range',\n description: 'You can also connect this to a date range selector using its variable',\n category: 'Component Data',\n },\n {\n name: 'comparisonPeriod',\n type: ComparisonPeriodType,\n label: 'Comparison Period',\n description: 'You can also connect this to a comparison period selector using its variable',\n category: 'Component Data',\n },\n title,\n description,\n {\n ...genericBoolean,\n name: 'displayChangeAsPercentage',\n label: 'Display Change as %',\n defaultValue: false,\n },\n {\n ...genericNumber,\n name: 'percentageDecimalPlaces',\n label: 'Percentage Decimal Places',\n defaultValue: 1,\n },\n {\n ...genericBoolean,\n name: 'reversePositiveNegativeColors',\n label: 'Reverse Positive/Negative Colors',\n defaultValue: false,\n },\n { ...genericNumber, name: 'fontSize', label: 'Font Size' },\n {\n ...genericNumber,\n name: 'changeFontSize',\n label: 'Trend Font Size',\n },\n ],\n} as const satisfies EmbeddedComponentMeta;\n\ntype KpiChartNumberComparisonProState = {\n comparisonDateRange: TimeRange;\n};\n\nexport default defineComponent(KpiChartNumberComparisonPro, meta, {\n props: (\n inputs: Inputs<typeof meta>,\n [state, setState]: [\n KpiChartNumberComparisonProState,\n (state: KpiChartNumberComparisonProState) => void,\n ],\n ) => {\n return {\n ...inputs,\n comparisonPeriod: inputs.comparisonPeriod as string | undefined,\n comparisonDateRange: state?.comparisonDateRange,\n setComparisonDateRange: (comparisonDateRange: TimeRange) => setState({ comparisonDateRange }),\n results: loadData({\n from: inputs.dataset,\n select: [inputs.measure],\n limit: 1,\n filters:\n inputs.primaryDateRange && inputs.timeProperty\n ? [\n {\n property: inputs.timeProperty,\n operator: 'inDateRange',\n value: inputs.primaryDateRange,\n },\n ]\n : undefined,\n }),\n resultsComparison:\n inputs.primaryDateRange && inputs.timeProperty && state?.comparisonDateRange\n ? loadData({\n from: inputs.dataset,\n select: [inputs.measure],\n limit: 1,\n filters: [\n {\n property: inputs.timeProperty,\n operator: 'inDateRange',\n value: state.comparisonDateRange,\n },\n ],\n })\n : undefined,\n };\n },\n});\n"],"names":["meta","dataset","measure","dimensionTime","genericTimeRange","ComparisonPeriodType","title","description","genericBoolean","genericNumber","KpiChartNumberComparisonPro_emb","defineComponent","KpiChartNumberComparisonPro","inputs","state","setState","comparisonDateRange","loadData"],"mappings":";;;;;AAeO,MAAMA,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,IACNC;AAAA,IACAC;AAAA,IACA,EAAE,GAAGC,GAAe,MAAM,gBAAgB,OAAO,gBAAA;AAAA,IACjD;AAAA,MACE,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,IAAA;AAAA,IAEZ;AAAA,MACE,MAAM;AAAA,MACN,MAAMC;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,IAAA;AAAA,IAEZC;AAAA,IACAC;AAAA,IACA;AAAA,MACE,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,IAAA;AAAA,IAEhB;AAAA,MACE,GAAGC;AAAA,MACH,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,IAAA;AAAA,IAEhB;AAAA,MACE,GAAGD;AAAA,MACH,MAAM;AAAA,MACN,OAAO;AAAA,MACP,cAAc;AAAA,IAAA;AAAA,IAEhB,EAAE,GAAGC,GAAe,MAAM,YAAY,OAAO,YAAA;AAAA,IAC7C;AAAA,MACE,GAAGA;AAAA,MACH,MAAM;AAAA,MACN,OAAO;AAAA,IAAA;AAAA,EACT;AAEJ,GAMAC,IAAeC,EAAgBC,GAA6BZ,GAAM;AAAA,EAChE,OAAO,CACLa,GACA,CAACC,GAAOC,CAAQ,OAKT;AAAA,IACL,GAAGF;AAAA,IACH,kBAAkBA,EAAO;AAAA,IACzB,qBAAqBC,KAAA,gBAAAA,EAAO;AAAA,IAC5B,wBAAwB,CAACE,MAAmCD,EAAS,EAAE,qBAAAC,GAAqB;AAAA,IAC5F,SAASC,EAAS;AAAA,MAChB,MAAMJ,EAAO;AAAA,MACb,QAAQ,CAACA,EAAO,OAAO;AAAA,MACvB,OAAO;AAAA,MACP,SACEA,EAAO,oBAAoBA,EAAO,eAC9B;AAAA,QACE;AAAA,UACE,UAAUA,EAAO;AAAA,UACjB,UAAU;AAAA,UACV,OAAOA,EAAO;AAAA,QAAA;AAAA,MAChB,IAEF;AAAA,IAAA,CACP;AAAA,IACD,mBACEA,EAAO,oBAAoBA,EAAO,iBAAgBC,KAAA,QAAAA,EAAO,uBACrDG,EAAS;AAAA,MACP,MAAMJ,EAAO;AAAA,MACb,QAAQ,CAACA,EAAO,OAAO;AAAA,MACvB,OAAO;AAAA,MACP,SAAS;AAAA,QACP;AAAA,UACE,UAAUA,EAAO;AAAA,UACjB,UAAU;AAAA,UACV,OAAOC,EAAM;AAAA,QAAA;AAAA,MACf;AAAA,IACF,CACD,IACD;AAAA,EAAA;AAGZ,CAAC;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as r } from "@embeddable.com/react";
|
|
2
|
-
import { v as a, D as t, F as o, G as m, c as s } from "./component.constants-
|
|
3
|
-
import { K as i } from "./index-
|
|
4
|
-
import { l as p } from "./index-
|
|
2
|
+
import { v as a, D as t, F as o, G as m, c as s } from "./component.constants-DmK3uQGY.js";
|
|
3
|
+
import { K as i } from "./index-Bk1YIZZf.js";
|
|
4
|
+
import { l as p } from "./index-DjwSlZQY.js";
|
|
5
5
|
const n = {
|
|
6
6
|
name: "KpiChartNumberPro",
|
|
7
7
|
label: "Kpi Chart - Number",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as p } from "@embeddable.com/react";
|
|
2
|
-
import { v as c, E as n, g as o, w as d, b as g, y, F as u, G as x, I as C, J as f, K as D, M as b, N as h, O as R, P as L, S as v, T as A, H as P } from "./component.constants-
|
|
3
|
-
import { L as T } from "./index-
|
|
4
|
-
import { V, l as s } from "./index-
|
|
5
|
-
import { C as w } from "./ComparisonPeriod.type.emb-
|
|
6
|
-
import { C as l } from "./Color.type.emb-
|
|
2
|
+
import { v as c, E as n, g as o, w as d, b as g, y, F as u, G as x, I as C, J as f, K as D, M as b, N as h, O as R, P as L, S as v, T as A, H as P } from "./component.constants-DmK3uQGY.js";
|
|
3
|
+
import { L as T } from "./index-D_-Nl-64.js";
|
|
4
|
+
import { V, l as s } from "./index-DjwSlZQY.js";
|
|
5
|
+
import { C as w } from "./ComparisonPeriod.type.emb-Bq4r1RbE.js";
|
|
6
|
+
import { C as l } from "./Color.type.emb-BPT7WKyR.js";
|
|
7
7
|
const F = {
|
|
8
8
|
name: "LineChartComparisonDefaultPro",
|
|
9
9
|
label: "Line Chart Comparison - Default",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as i } from "@embeddable.com/react";
|
|
2
|
-
import { v as l, E as s, g as a, z as n, F as t, G as o, I as r, J as m, K as u, M as d, N as c, O as p, P as x, S as L, T as f, H as C } from "./component.constants-
|
|
3
|
-
import { L as h } from "./index-
|
|
4
|
-
import { V as b, l as g } from "./index-
|
|
5
|
-
import { C as A } from "./Color.type.emb-
|
|
2
|
+
import { v as l, E as s, g as a, z as n, F as t, G as o, I as r, J as m, K as u, M as d, N as c, O as p, P as x, S as L, T as f, H as C } from "./component.constants-DmK3uQGY.js";
|
|
3
|
+
import { L as h } from "./index-sJkPi8Q_.js";
|
|
4
|
+
import { V as b, l as g } from "./index-DjwSlZQY.js";
|
|
5
|
+
import { C as A } from "./Color.type.emb-BPT7WKyR.js";
|
|
6
6
|
const D = {
|
|
7
7
|
name: "LineChartDefaultPro",
|
|
8
8
|
label: "Line Chart - Default",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as n } from "@embeddable.com/react";
|
|
2
|
-
import { v as o, D as a, g as i, z as l, w as r, F as t, G as m, H as u, I as p, J as d, K as g, M as x, N as c, O as L, P as b, S as V, T as h } from "./component.constants-
|
|
3
|
-
import { L as C } from "./index-
|
|
4
|
-
import { V as s, l as D } from "./index-
|
|
2
|
+
import { v as o, D as a, g as i, z as l, w as r, F as t, G as m, H as u, I as p, J as d, K as g, M as x, N as c, O as L, P as b, S as V, T as h } from "./component.constants-DmK3uQGY.js";
|
|
3
|
+
import { L as C } from "./index-SIEfd0gp.js";
|
|
4
|
+
import { V as s, l as D } from "./index-DjwSlZQY.js";
|
|
5
5
|
const f = {
|
|
6
6
|
name: "LineChartGroupedPro",
|
|
7
7
|
label: "Line Chart - Grouped",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i } from "@embeddable.com/react";
|
|
2
|
-
import { V as t, l as r } from "./index-
|
|
3
|
-
import { v as s, w as d, F as u, G as m, _ as c } from "./component.constants-
|
|
4
|
-
import { M as p, a as f } from "./index-
|
|
2
|
+
import { V as t, l as r } from "./index-DjwSlZQY.js";
|
|
3
|
+
import { v as s, w as d, F as u, G as m, _ as c } from "./component.constants-DmK3uQGY.js";
|
|
4
|
+
import { M as p, a as f } from "./index-BuBPj3by.js";
|
|
5
5
|
const g = {
|
|
6
6
|
name: "MultiSelectFieldPro",
|
|
7
7
|
label: "Multi Select Field",
|
package/dist/PieChartPro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as a, l as s } from "./index-
|
|
1
|
+
import { V as a, l as s } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as t } from "@embeddable.com/react";
|
|
3
|
-
import { P as o } from "./index-
|
|
4
|
-
import { v as i, D as n, w as r, F as m, G as l, I as d, Z as p, J as c, K as u } from "./component.constants-
|
|
3
|
+
import { P as o } from "./index-C23J5jXR.js";
|
|
4
|
+
import { v as i, D as n, w as r, F as m, G as l, I as d, Z as p, J as c, K as u } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const C = {
|
|
6
6
|
name: "PieChartPro",
|
|
7
7
|
label: "Pie Chart",
|
package/dist/PivotTablePro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as t } from "./index-
|
|
1
|
+
import { l as t } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as n } from "@embeddable.com/react";
|
|
3
|
-
import { P as i } from "./index-
|
|
4
|
-
import { v as m, E as o, k as a, z as l, F as r, G as u, d, c as s, H as b } from "./component.constants-
|
|
3
|
+
import { P as i } from "./index-CmYz5k0C.js";
|
|
4
|
+
import { v as m, E as o, k as a, z as l, F as r, G as u, d, c as s, H as b } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const c = {
|
|
6
6
|
name: "PivotTablePro",
|
|
7
7
|
label: "Pivot Table",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i } from "@embeddable.com/react";
|
|
2
|
-
import { V as n, l as r } from "./index-
|
|
3
|
-
import { v as s, w as d, F as m, G as c, _ as p } from "./component.constants-
|
|
4
|
-
import { M as u, S as g } from "./index-
|
|
2
|
+
import { V as n, l as r } from "./index-DjwSlZQY.js";
|
|
3
|
+
import { v as s, w as d, F as m, G as c, _ as p } from "./component.constants-DmK3uQGY.js";
|
|
4
|
+
import { M as u, S as g } from "./index-O8I3E36E.js";
|
|
5
5
|
const f = {
|
|
6
6
|
name: "SingleSelectFieldPro",
|
|
7
7
|
label: "Single Select Field",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V as u, l as i, m as t } from "./index-
|
|
1
|
+
import { V as u, l as i, m as t } from "./index-DjwSlZQY.js";
|
|
2
2
|
import { defineComponent as g } from "@embeddable.com/react";
|
|
3
|
-
import { T as f } from "./index-
|
|
4
|
-
import { v as p, C as d, s as D, e as b, F as C, G as w, g as A, d as R, H as h, x as M } from "./component.constants-
|
|
3
|
+
import { T as f } from "./index-C6oyYlMu.js";
|
|
4
|
+
import { v as p, C as d, s as D, e as b, F as C, G as w, g as A, d as R, H as h, x as M } from "./component.constants-DmK3uQGY.js";
|
|
5
5
|
const k = {
|
|
6
6
|
name: "TableChartPaginated",
|
|
7
7
|
label: "Table Chart - Paginated",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as F, g as P } from "./charts.utils-
|
|
2
|
-
import { g as h } from "./formatter.utils-
|
|
1
|
+
import { r as F, g as P } from "./charts.utils-DtFuEHDp.js";
|
|
2
|
+
import { g as h } from "./formatter.utils-DCDukEZ9.js";
|
|
3
3
|
import { g as p, a as g } from "./object.utils-D_Zzon-H.js";
|
|
4
|
-
import { g as T, a as v } from "./index-
|
|
4
|
+
import { g as T, a as v } from "./index-DjwSlZQY.js";
|
|
5
5
|
const B = (l, c) => {
|
|
6
6
|
var b;
|
|
7
7
|
const m = h(c), { data: o = [], dimension: i, groupDimension: d, measure: t } = l, r = [...new Set(o.map((n) => n[i.name]).filter((n) => n != null))].sort(), a = `${d.name}${(b = d.inputs) != null && b.granularity ? `.${d.inputs.granularity}` : ""}`, e = [...new Set(o.map((n) => n[a]))].filter((n) => n != null), s = p(c), u = v(), C = e.map((n, k) => {
|
|
@@ -142,4 +142,4 @@ export {
|
|
|
142
142
|
V as b,
|
|
143
143
|
B as g
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=bars.utils-
|
|
145
|
+
//# sourceMappingURL=bars.utils-BHrcAtuH.js.map
|