@embeddable.com/remarkable-pro 0.1.8 → 0.1.9
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 +8 -8
- package/dist/BarChartDefaultPro.js +5 -5
- package/dist/BarChartGroupedHorizontalPro.js +5 -5
- package/dist/BarChartGroupedPro.js +9 -9
- package/dist/BarChartStackedHorizontalPro.js +5 -5
- package/dist/BarChartStackedPro.js +5 -5
- package/dist/{ChartCard-BmBTN11g.js → ChartCard-Bu-80NJh.js} +7 -7
- package/dist/{ChartCard-BmBTN11g.js.map → ChartCard-Bu-80NJh.js.map} +1 -1
- package/dist/{Color.type.emb-tRPNtuPs.js → Color.type.emb-JBTB4VAn.js} +32 -32
- package/dist/{Color.type.emb-tRPNtuPs.js.map → Color.type.emb-JBTB4VAn.js.map} +1 -1
- package/dist/ColorEditor.js +10 -29
- package/dist/ColorEditor.js.map +1 -1
- package/dist/ComparisonPeriodSelectFieldPro.js +3 -3
- package/dist/DateRangePickerCustomPro.js +12 -39
- package/dist/DateRangePickerCustomPro.js.map +1 -1
- package/dist/DateRangeSelectFieldPro.js +3 -3
- package/dist/{DimensionAndMeasureSingleSelectField-Bap43crU.js → DimensionAndMeasureSingleSelectField-C5B9m3hv.js} +8 -7
- package/dist/DimensionAndMeasureSingleSelectField-C5B9m3hv.js.map +1 -0
- package/dist/DimensionSingleSelectFieldPro.js +12 -27
- package/dist/DimensionSingleSelectFieldPro.js.map +1 -1
- package/dist/DonutChartPro.js +4 -4
- package/dist/DonutLabelChartPro.js +4 -4
- package/dist/{EditorCard-BEOWlY3S.js → EditorCard-DlwWVuY3.js} +11 -11
- package/dist/EditorCard-DlwWVuY3.js.map +1 -0
- package/dist/EmptyBlockPro.js +7 -6
- package/dist/EmptyBlockPro.js.map +1 -1
- package/dist/{GranularitySelectField-D0AUovNu.js → GranularitySelectField-DpCZ47f8.js} +28 -25
- package/dist/{GranularitySelectField-D0AUovNu.js.map → GranularitySelectField-DpCZ47f8.js.map} +1 -1
- package/dist/GranularitySelectFieldPro.js +11 -27
- package/dist/GranularitySelectFieldPro.js.map +1 -1
- package/dist/HeatMapPro.js +4 -4
- package/dist/{IconCalendarFilled-Dlxre0eW.js → IconCalendarFilled-DPibPYqC.js} +2 -2
- package/dist/{IconCalendarFilled-Dlxre0eW.js.map → IconCalendarFilled-DPibPYqC.js.map} +1 -1
- package/dist/KpiChartNumberComparisonPro.js +4 -4
- package/dist/KpiChartNumberPro.js +6 -6
- package/dist/LineChartComparisonDefaultPro.js +5 -5
- package/dist/LineChartDefaultPro.js +5 -5
- package/dist/LineChartGroupedPro.js +5 -5
- package/dist/MeasureSingleSelectFieldPro.js +14 -29
- package/dist/MeasureSingleSelectFieldPro.js.map +1 -1
- package/dist/MultiSelectFieldPro.js +4 -4
- package/dist/PieChartPro.js +4 -4
- package/dist/PivotTablePro.js +4 -4
- package/dist/SingleSelectFieldPro.js +4 -4
- package/dist/TableChartPaginated.js +8 -8
- package/dist/TableScrollable.js +58 -480
- package/dist/TableScrollable.js.map +1 -1
- package/dist/{bars.utils-C6w2ekZW.js → bars.utils-DZf4BZCu.js} +7 -7
- package/dist/{bars.utils-C6w2ekZW.js.map → bars.utils-DZf4BZCu.js.map} +1 -1
- package/dist/{charts.utils-5taHDsqH.js → charts.utils-MNXWiXfk.js} +14 -5
- package/dist/{charts.utils-5taHDsqH.js.map → charts.utils-MNXWiXfk.js.map} +1 -1
- package/dist/{component.inputs.constants-DIZMtQw0.js → component.inputs.constants-Cj-atN8w.js} +11 -10
- package/dist/{component.inputs.constants-DIZMtQw0.js.map → component.inputs.constants-Cj-atN8w.js.map} +1 -1
- package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts +1 -1
- package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts +1 -1
- package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts +1 -1
- package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts +1 -1
- package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts +1 -1
- package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartStackedPro/index.d.ts +1 -1
- package/dist/components/charts/bars/BarChartStackedPro/index.d.ts.map +1 -1
- package/dist/components/charts/kpis/KpiChartNumberComparisonPro/index.d.ts +1 -1
- package/dist/components/charts/kpis/KpiChartNumberComparisonPro/index.d.ts.map +1 -1
- package/dist/components/charts/kpis/KpiChartNumberPro/index.d.ts +1 -1
- package/dist/components/charts/kpis/KpiChartNumberPro/index.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartComparisonDefaultPro/LineChartComparisonDefaultPro.utils.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts +1 -1
- package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts +1 -1
- package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartGroupedPro/LineChartGroupedPro.utils.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartGroupedPro/index.d.ts +1 -1
- package/dist/components/charts/lines/LineChartGroupedPro/index.d.ts.map +1 -1
- package/dist/components/charts/lines/lines.utils.d.ts +1 -1
- package/dist/components/charts/lines/lines.utils.d.ts.map +1 -1
- package/dist/components/charts/pies/DonutChartPro/index.d.ts +1 -1
- package/dist/components/charts/pies/DonutChartPro/index.d.ts.map +1 -1
- package/dist/components/charts/pies/DonutLabelChartPro/index.d.ts +1 -1
- package/dist/components/charts/pies/DonutLabelChartPro/index.d.ts.map +1 -1
- package/dist/components/charts/pies/PieChartPro/index.d.ts +1 -1
- package/dist/components/charts/pies/PieChartPro/index.d.ts.map +1 -1
- package/dist/components/charts/shared/ChartGranularitySelectField/ChartGranularitySelectField.d.ts +1 -2
- package/dist/components/charts/shared/ChartGranularitySelectField/ChartGranularitySelectField.d.ts.map +1 -1
- package/dist/components/charts/tables/HeatMapPro/index.d.ts +1 -1
- package/dist/components/charts/tables/HeatMapPro/index.d.ts.map +1 -1
- package/dist/components/charts/tables/PivotTablePro/index.d.ts +1 -1
- package/dist/components/charts/tables/PivotTablePro/index.d.ts.map +1 -1
- package/dist/components/charts/tables/TableChartPaginated/index.d.ts +1 -1
- package/dist/components/charts/tables/TableChartPaginated/index.d.ts.map +1 -1
- package/dist/components/charts/tables/TableScrollable/index.d.ts +1 -1
- package/dist/components/charts/tables/TableScrollable/index.d.ts.map +1 -1
- package/dist/components/editors/ComparisonPeriodSelectFieldPro/index.d.ts +1 -1
- package/dist/components/editors/ComparisonPeriodSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/DimensionSingleSelectFieldPro/index.d.ts +1 -1
- package/dist/components/editors/DimensionSingleSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/GranularitySelectFieldPro/index.d.ts +1 -1
- package/dist/components/editors/GranularitySelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/MeasureSingleSelectFieldPro/index.d.ts +1 -1
- package/dist/components/editors/MeasureSingleSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/MultiSelectFieldPro/index.d.ts +1 -1
- package/dist/components/editors/MultiSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/SingleSelectFieldPro/index.d.ts +1 -1
- package/dist/components/editors/SingleSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/dates/DateRangePickerCustomPro/index.d.ts +1 -1
- package/dist/components/editors/dates/DateRangePickerCustomPro/index.d.ts.map +1 -1
- package/dist/components/editors/dates/DateRangePickerPresetsPro/index.d.ts +1 -1
- package/dist/components/editors/dates/DateRangePickerPresetsPro/index.d.ts.map +1 -1
- package/dist/components/editors/shared/DimensionAndMeasureSingleSelectField/DimensionAndMeasureSingleSelectField.d.ts +1 -2
- package/dist/components/editors/shared/DimensionAndMeasureSingleSelectField/DimensionAndMeasureSingleSelectField.d.ts.map +1 -1
- package/dist/components/editors/shared/EditorCard/EditorCard.d.ts +1 -2
- package/dist/components/editors/shared/EditorCard/EditorCard.d.ts.map +1 -1
- package/dist/{dates.utils-BF32dTLi.js → dates.utils-D13NY0HZ.js} +32 -27
- package/dist/{dates.utils-BF32dTLi.js.map → dates.utils-D13NY0HZ.js.map} +1 -1
- package/dist/embeddable-components.json +28 -28
- package/dist/{granularity.utils-DAAi-602.js → granularity.utils-COYhEZ3f.js} +3 -3
- package/dist/granularity.utils-COYhEZ3f.js.map +1 -0
- package/dist/{index-BL76s-yZ.js → index-1LMAV7gp.js} +15 -11
- package/dist/index-1LMAV7gp.js.map +1 -0
- package/dist/index-5qsLc5gK.js +28 -0
- package/dist/index-5qsLc5gK.js.map +1 -0
- package/dist/{index-BSXcd7SN.js → index-77C7AtLU.js} +5 -5
- package/dist/index-77C7AtLU.js.map +1 -0
- package/dist/{index-CGmgAyAB.js → index-B0Z1wHFa.js} +5 -5
- package/dist/index-B0Z1wHFa.js.map +1 -0
- package/dist/{index-miobE3AH.js → index-BIYe6Mxp.js} +16 -16
- package/dist/index-BIYe6Mxp.js.map +1 -0
- package/dist/index-BLtSOe_I.js +28 -0
- package/dist/index-BLtSOe_I.js.map +1 -0
- package/dist/index-BfrhwVwQ.js +30 -0
- package/dist/index-BfrhwVwQ.js.map +1 -0
- package/dist/{index-CvQFVQLU.js → index-BownhTSN.js} +10 -10
- package/dist/index-BownhTSN.js.map +1 -0
- package/dist/{index-BDpQF_cG.js → index-BwwtBJde.js} +18 -18
- package/dist/index-BwwtBJde.js.map +1 -0
- package/dist/{index-C4C09WJe.js → index-C6YdlImA.js} +10 -10
- package/dist/index-C6YdlImA.js.map +1 -0
- package/dist/{index-DQDBupb0.js → index-CDfc3oko.js} +60 -60
- package/dist/index-CDfc3oko.js.map +1 -0
- package/dist/index-CKM7Eu4P.js +29 -0
- package/dist/index-CKM7Eu4P.js.map +1 -0
- package/dist/{index-DJeAhPf-.js → index-CWAfLnlR.js} +11 -11
- package/dist/index-CWAfLnlR.js.map +1 -0
- package/dist/index-CWoNbj8I.js +40 -0
- package/dist/index-CWoNbj8I.js.map +1 -0
- package/dist/index-CfSyZuh4.js +436 -0
- package/dist/index-CfSyZuh4.js.map +1 -0
- package/dist/{index-B3L4DXwu.js → index-ChBjG9Oi.js} +12 -12
- package/dist/index-ChBjG9Oi.js.map +1 -0
- package/dist/{index-BRywHn8j.js → index-Ci4fIfj8.js} +8 -8
- package/dist/index-Ci4fIfj8.js.map +1 -0
- package/dist/{index-CfscOxbu.js → index-CwEdsnOz.js} +10 -10
- package/dist/index-CwEdsnOz.js.map +1 -0
- package/dist/index-CzKKN6Om.js +9 -0
- package/dist/index-CzKKN6Om.js.map +1 -0
- package/dist/{index-BKikv8mC.js → index-D65Rq3k-.js} +6 -6
- package/dist/index-D65Rq3k-.js.map +1 -0
- package/dist/{index-GK0v6bfO.js → index-DA8SRHFS.js} +16 -16
- package/dist/index-DA8SRHFS.js.map +1 -0
- package/dist/{index-B8IHON3t.js → index-DILo_r4-.js} +8 -8
- package/dist/index-DILo_r4-.js.map +1 -0
- package/dist/{index-C3QKhnf_.js → index-DK0M5jbC.js} +10 -10
- package/dist/index-DK0M5jbC.js.map +1 -0
- package/dist/{index-DhA_rNUY.js → index-DKN0VZXM.js} +13 -13
- package/dist/index-DKN0VZXM.js.map +1 -0
- package/dist/{index-D4nH7Tfx.js → index-DN5C1NTk.js} +5 -5
- package/dist/index-DN5C1NTk.js.map +1 -0
- package/dist/{index-SfB11gF_.js → index-d6y81S-C.js} +23 -23
- package/dist/index-d6y81S-C.js.map +1 -0
- package/dist/{index-B5__yodm.js → index-r9MBmJ_q.js} +5 -5
- package/dist/index-r9MBmJ_q.js.map +1 -0
- package/dist/{index-De7NmChy.js → index-s6HzicAx.js} +20 -20
- package/dist/index-s6HzicAx.js.map +1 -0
- package/dist/index.d.ts +67 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +152 -91
- package/dist/index.js.map +1 -1
- package/dist/{lines.utils-COGf_F0b.js → lines.utils-CEGfmIHB.js} +5 -5
- package/dist/lines.utils-CEGfmIHB.js.map +1 -0
- package/dist/{pies.utils-FfqwwwDi.js → pies.utils-CxJtBPWG.js} +5 -5
- package/dist/{pies.utils-FfqwwwDi.js.map → pies.utils-CxJtBPWG.js.map} +1 -1
- package/dist/preview.data.constants-DWqfMVjy.js +123 -0
- package/dist/preview.data.constants-DWqfMVjy.js.map +1 -0
- package/dist/styles.utils-BfpH_m_W.js.map +1 -1
- package/dist/{tables.hooks-DFEu8kZn.js → tables.hooks-fVC_4V5K.js} +2 -1
- package/dist/{tables.hooks-DFEu8kZn.js.map → tables.hooks-fVC_4V5K.js.map} +1 -1
- package/dist/{tables.utils-CBn15nfE.js → tables.utils-D4RGHDWw.js} +4 -4
- package/dist/{tables.utils-CBn15nfE.js.map → tables.utils-D4RGHDWw.js.map} +1 -1
- package/dist/theme/styles/styles.utils.d.ts +1 -2
- package/dist/theme/styles/styles.utils.d.ts.map +1 -1
- package/dist/{timeRange.utils-B4CCk0Na.js → timeRange.utils-D8kYnjqp.js} +5 -5
- package/dist/{timeRange.utils-B4CCk0Na.js.map → timeRange.utils-D8kYnjqp.js.map} +1 -1
- package/package.json +1 -1
- package/dist/DimensionAndMeasureSingleSelectField-Bap43crU.js.map +0 -1
- package/dist/EditorCard-BEOWlY3S.js.map +0 -1
- package/dist/formatter.utils-BuiHCNHH.js +0 -54
- package/dist/formatter.utils-BuiHCNHH.js.map +0 -1
- package/dist/granularity.utils-DAAi-602.js.map +0 -1
- package/dist/index-B3L4DXwu.js.map +0 -1
- package/dist/index-B5__yodm.js.map +0 -1
- package/dist/index-B8IHON3t.js.map +0 -1
- package/dist/index-BDpQF_cG.js.map +0 -1
- package/dist/index-BKikv8mC.js.map +0 -1
- package/dist/index-BL76s-yZ.js.map +0 -1
- package/dist/index-BRywHn8j.js.map +0 -1
- package/dist/index-BSXcd7SN.js.map +0 -1
- package/dist/index-C3QKhnf_.js.map +0 -1
- package/dist/index-C4C09WJe.js.map +0 -1
- package/dist/index-CGmgAyAB.js.map +0 -1
- package/dist/index-CfscOxbu.js.map +0 -1
- package/dist/index-CvQFVQLU.js.map +0 -1
- package/dist/index-D4nH7Tfx.js.map +0 -1
- package/dist/index-DJeAhPf-.js.map +0 -1
- package/dist/index-DQDBupb0.js.map +0 -1
- package/dist/index-De7NmChy.js.map +0 -1
- package/dist/index-DhA_rNUY.js.map +0 -1
- package/dist/index-GK0v6bfO.js.map +0 -1
- package/dist/index-SfB11gF_.js.map +0 -1
- package/dist/index-miobE3AH.js.map +0 -1
- package/dist/lines.utils-COGf_F0b.js.map +0 -1
- package/dist/preview.data.constants-DDnGcvzL.js +0 -72
- package/dist/preview.data.constants-DDnGcvzL.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,98 +1,159 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { i as
|
|
10
|
-
import { i as
|
|
11
|
-
import { i as
|
|
12
|
-
import {
|
|
13
|
-
import { i as
|
|
14
|
-
import {
|
|
15
|
-
import { i as
|
|
16
|
-
import { i as
|
|
17
|
-
import {
|
|
18
|
-
import { i as
|
|
19
|
-
import { i as
|
|
20
|
-
import { i as
|
|
21
|
-
import { g as
|
|
22
|
-
import { i as
|
|
23
|
-
import { i as
|
|
24
|
-
import { i as
|
|
25
|
-
import { g as
|
|
26
|
-
import {
|
|
27
|
-
import { i as
|
|
28
|
-
import { i as
|
|
29
|
-
import { i as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
1
|
+
import { g as r, a as o, b as t, i as s } from "./styles.utils-BfpH_m_W.js";
|
|
2
|
+
import { i as l, s as n } from "./color.utils-BSg_DFOh.js";
|
|
3
|
+
import { c as m, g, i as P, p as f } from "./preview.data.constants-DWqfMVjy.js";
|
|
4
|
+
import { g as u, a as d, b as x, c as h, l as S, d as b, u as c } from "./dates.utils-D13NY0HZ.js";
|
|
5
|
+
import { d as T, a as F, b as L, c as O, e as G, f as R, g as y, h as B, r as v, i as M, j as A } from "./charts.utils-MNXWiXfk.js";
|
|
6
|
+
import { C as I, G as E, d as H, a as j, g as K, i as V, b as w, c as z, r as N, e as W, s as X, t as _, f as U } from "./component.inputs.constants-Cj-atN8w.js";
|
|
7
|
+
import { g as q, a as J } from "./timeRange.utils-D8kYnjqp.js";
|
|
8
|
+
import { i as Y } from "./index-CwEdsnOz.js";
|
|
9
|
+
import { i as ee } from "./index-D65Rq3k-.js";
|
|
10
|
+
import { i as re } from "./index-DKN0VZXM.js";
|
|
11
|
+
import { i as te } from "./index-BIYe6Mxp.js";
|
|
12
|
+
import { i as ie } from "./index-s6HzicAx.js";
|
|
13
|
+
import { i as ne } from "./index-C6YdlImA.js";
|
|
14
|
+
import { g as me, a as ge, b as Pe } from "./bars.utils-DZf4BZCu.js";
|
|
15
|
+
import { i as Ce } from "./index-BownhTSN.js";
|
|
16
|
+
import { i as de } from "./index-CWAfLnlR.js";
|
|
17
|
+
import { g as he } from "./kpis.utils-DsZ2GzuB.js";
|
|
18
|
+
import { i as be, g as ce, a as De } from "./index-DA8SRHFS.js";
|
|
19
|
+
import { i as Fe, g as Le, a as Oe } from "./index-d6y81S-C.js";
|
|
20
|
+
import { i as Re, g as ye, a as Be } from "./index-CDfc3oko.js";
|
|
21
|
+
import { g as Me } from "./lines.utils-CEGfmIHB.js";
|
|
22
|
+
import { i as ke } from "./index-DILo_r4-.js";
|
|
23
|
+
import { i as Ee } from "./index-r9MBmJ_q.js";
|
|
24
|
+
import { i as je } from "./index-DK0M5jbC.js";
|
|
25
|
+
import { g as Ve, a as we } from "./pies.utils-CxJtBPWG.js";
|
|
26
|
+
import { i as Ne } from "./index-ChBjG9Oi.js";
|
|
27
|
+
import { i as Xe, g as _e, a as Ue, b as Ze, c as qe } from "./index-1LMAV7gp.js";
|
|
28
|
+
import { i as Qe } from "./index-77C7AtLU.js";
|
|
29
|
+
import { T as $e, i as ea } from "./index-CfSyZuh4.js";
|
|
30
|
+
import { g as ra, a as oa, b as ta, c as sa } from "./tables.utils-D4RGHDWw.js";
|
|
31
|
+
import { g as la, u as na } from "./tables.hooks-fVC_4V5K.js";
|
|
32
|
+
import { C as ma } from "./ChartCard-Bu-80NJh.js";
|
|
33
|
+
import { C as Pa, g as fa } from "./granularity.utils-COYhEZ3f.js";
|
|
34
|
+
import { i as ua } from "./index-CzKKN6Om.js";
|
|
35
|
+
import { u as xa } from "./charts.fillGaps.hooks-C7KsWcZb.js";
|
|
36
|
+
import { i as Sa, g as ba, a as ca } from "./index-Ci4fIfj8.js";
|
|
37
|
+
import { i as Ta, g as Fa } from "./index-BwwtBJde.js";
|
|
38
|
+
import { i as Oa } from "./index-CWoNbj8I.js";
|
|
39
|
+
import { i as Ra } from "./index-DN5C1NTk.js";
|
|
40
|
+
import { i as Ba } from "./index-B0Z1wHFa.js";
|
|
41
|
+
import { i as Ma } from "./index-BLtSOe_I.js";
|
|
42
|
+
import { i as ka } from "./index-5qsLc5gK.js";
|
|
43
|
+
import { i as Ea } from "./index-CKM7Eu4P.js";
|
|
44
|
+
import { E as ja } from "./EditorCard-DlwWVuY3.js";
|
|
45
|
+
import { D as Va, g as wa } from "./DimensionAndMeasureSingleSelectField-C5B9m3hv.js";
|
|
46
|
+
import { G as Na, g as Wa, a as Xa, b as _a } from "./GranularitySelectField-DpCZ47f8.js";
|
|
47
|
+
import { i as Za } from "./index-BfrhwVwQ.js";
|
|
34
48
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
49
|
+
te as BarChartDefaultHorizontalPro,
|
|
50
|
+
Y as BarChartDefaultPro,
|
|
51
|
+
ne as BarChartGroupedHorizontalPro,
|
|
52
|
+
re as BarChartGroupedPro,
|
|
53
|
+
ie as BarChartStackedHorizontalPro,
|
|
54
|
+
ee as BarChartStackedPro,
|
|
55
|
+
ma as ChartCard,
|
|
56
|
+
Pa as ChartGranularitySelectField,
|
|
57
|
+
Za as ColorEditorPro,
|
|
58
|
+
Sa as ComparisonPeriodSelectFieldPro,
|
|
59
|
+
I as ComparisonPeriodType,
|
|
60
|
+
Oa as DateRangePickerCustomPro,
|
|
61
|
+
Ta as DateRangeSelectFieldPro,
|
|
62
|
+
Va as DimensionAndMeasureSingleSelectField,
|
|
63
|
+
Ma as DimensionSingleSelectFieldPro,
|
|
64
|
+
ke as DonutChartPro,
|
|
65
|
+
je as DonutLabelChartPro,
|
|
66
|
+
ja as EditorCard,
|
|
67
|
+
ua as EmptyContainerPro,
|
|
68
|
+
E as Granularity,
|
|
69
|
+
Na as GranularitySelectField,
|
|
70
|
+
Ea as GranularitySelectFieldPro,
|
|
71
|
+
Ne as HeatMapPro,
|
|
72
|
+
de as KpiChartNumberComparisonPro,
|
|
73
|
+
Ce as KpiChartNumberPro,
|
|
74
|
+
Re as LineChartComparisonDefaultPro,
|
|
75
|
+
be as LineChartDefaultPro,
|
|
76
|
+
Fe as LineChartGroupedPro,
|
|
77
|
+
ka as MeasureSingleSelectFieldPro,
|
|
78
|
+
Ra as MultiSelectFieldPro,
|
|
79
|
+
Ee as PieChartPro,
|
|
80
|
+
Xe as PivotTablePro,
|
|
81
|
+
Ba as SingleSelectFieldPro,
|
|
82
|
+
$e as TABLE_SCROLLABLE_SIZE,
|
|
83
|
+
Qe as TableChartPaginatedPro,
|
|
84
|
+
ea as TableScrollablePro,
|
|
85
|
+
m as cache,
|
|
86
|
+
T as defaultChartMenuProOptions,
|
|
87
|
+
F as defaultComparisonPeriodOptions,
|
|
88
|
+
L as defaultDateRangeOptions,
|
|
89
|
+
H as defaultGranularitySelectFieldOptions,
|
|
90
|
+
O as defaultTableCellStyleOptions,
|
|
91
|
+
j as dimensionMeasureSubInputs,
|
|
92
|
+
G as exportCSV,
|
|
93
|
+
R as exportPNG,
|
|
94
|
+
y as exportXLSX,
|
|
95
|
+
Wa as getAvailableGranularityOptionsFromTimeRange,
|
|
96
|
+
me as getBarChartProData,
|
|
97
|
+
ge as getBarChartProOptions,
|
|
98
|
+
Pe as getBarStackedChartProData,
|
|
99
|
+
r as getColor,
|
|
100
|
+
q as getComparisonPeriodDateRange,
|
|
101
|
+
J as getComparisonPeriodLabel,
|
|
102
|
+
ba as getComparisonPeriodSelectFieldProOptions,
|
|
103
|
+
u as getDateRangeFromTimeRange,
|
|
104
|
+
Fa as getDateRangeSelectFieldProOptions,
|
|
105
|
+
wa as getDimensionAndMeasureOptions,
|
|
67
106
|
o as getDimensionMeasureColor,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
107
|
+
fa as getDimensionWithGranularity,
|
|
108
|
+
Xa as getGranularitySelectFieldOptions,
|
|
109
|
+
he as getKpiResults,
|
|
110
|
+
ye as getLineChartComparisonProData,
|
|
111
|
+
Be as getLineChartComparisonProOptions,
|
|
112
|
+
Le as getLineChartGroupedProData,
|
|
113
|
+
Oe as getLineChartGroupedProOptions,
|
|
114
|
+
ce as getLineChartProData,
|
|
115
|
+
De as getLineChartProOptions,
|
|
116
|
+
Me as getLineChartProOptionsOnClick,
|
|
75
117
|
t as getObjectStableKey,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
118
|
+
Ve as getPieChartProData,
|
|
119
|
+
we as getPieChartProOptions,
|
|
120
|
+
_e as getPivotColumnTotalsFor,
|
|
121
|
+
Ue as getPivotDimension,
|
|
122
|
+
Ze as getPivotMeasures,
|
|
123
|
+
qe as getPivotRowTotalsFor,
|
|
124
|
+
_a as getSafeSelection,
|
|
125
|
+
ra as getTableHeaderAlign,
|
|
126
|
+
oa as getTableHeaderMinWidth,
|
|
127
|
+
ta as getTableHeaders,
|
|
128
|
+
sa as getTableRows,
|
|
129
|
+
la as getTableSortedResults,
|
|
130
|
+
g as getThemeFormatter,
|
|
131
|
+
d as getTimeRangeFromDateRange,
|
|
132
|
+
x as getTimeRangeFromPresets,
|
|
133
|
+
h as getTimeRangeLabel,
|
|
134
|
+
K as granularities,
|
|
135
|
+
B as groupTailAsOther,
|
|
136
|
+
V as i18n,
|
|
137
|
+
w as i18nSetup,
|
|
85
138
|
s as injectCssVariables,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
139
|
+
z as inputs,
|
|
140
|
+
l as isColorValid,
|
|
141
|
+
ca as isComparisonPeriodAvailable,
|
|
142
|
+
P as isValidISODate,
|
|
143
|
+
S as loadDayjsLocale,
|
|
144
|
+
b as localToUtcDate,
|
|
145
|
+
f as previewData,
|
|
146
|
+
v as remarkableTheme,
|
|
147
|
+
M as remarkableThemeFormatter,
|
|
148
|
+
A as remarkableThemeStyles,
|
|
149
|
+
N as resolveI18nProps,
|
|
150
|
+
W as resolveI18nString,
|
|
92
151
|
n as setColorAlpha,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
152
|
+
X as subInputs,
|
|
153
|
+
_ as timeDimensionSubInputs,
|
|
154
|
+
U as timeDimensionWithGranularitySelectFieldSubInputs,
|
|
155
|
+
xa as useFillGaps,
|
|
156
|
+
na as useGetTableSortedResults,
|
|
157
|
+
c as useLoadDayjsLocale
|
|
97
158
|
};
|
|
98
159
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const m = (
|
|
2
|
-
const { onLineClicked: l } =
|
|
1
|
+
const m = (g) => {
|
|
2
|
+
const { onLineClicked: l } = g;
|
|
3
3
|
return l ? {
|
|
4
4
|
onClick: (o, x, e) => {
|
|
5
5
|
var u;
|
|
@@ -19,8 +19,8 @@ const m = (c) => {
|
|
|
19
19
|
!1
|
|
20
20
|
)[0];
|
|
21
21
|
(!t || t.index !== i) && (t = n.find((a) => {
|
|
22
|
-
const s = e.data.datasets[a.datasetIndex],
|
|
23
|
-
return
|
|
22
|
+
const s = e.data.datasets[a.datasetIndex], c = Array.isArray(s == null ? void 0 : s.data) ? s.data[i] : void 0;
|
|
23
|
+
return c != null;
|
|
24
24
|
}));
|
|
25
25
|
let d;
|
|
26
26
|
if (t) {
|
|
@@ -37,4 +37,4 @@ const m = (c) => {
|
|
|
37
37
|
export {
|
|
38
38
|
m as g
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=lines.utils-
|
|
40
|
+
//# sourceMappingURL=lines.utils-CEGfmIHB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lines.utils-CEGfmIHB.js","sources":["../src/components/charts/lines/lines.utils.ts"],"sourcesContent":["import { ChartDataset, ChartOptions, InteractionItem } from 'chart.js';\n\nexport type LineChartProOptionsClickArg = {\n dimensionValue: string | number | null;\n groupingDimensionValue?: string | boolean | null;\n};\nexport type LineChartProOptionsClick = (arg: LineChartProOptionsClickArg) => void;\n\ntype LineDataset = ChartDataset<'line'> & {\n rawLabel?: string;\n};\n\nexport const getLineChartProOptionsOnClick = (props: {\n onLineClicked?: LineChartProOptionsClick;\n}): ChartOptions<'line'> => {\n const { onLineClicked } = props;\n\n if (!onLineClicked) return {};\n\n return {\n onClick: (event, _elements, chart) => {\n const native = (event as unknown as { native?: Event }).native ?? (event as unknown as Event);\n\n // 1. Resolve the X-axis slice (all datasets at the same X)\n const slice = chart.getElementsAtEventForMode(native, 'x', { intersect: false }, false);\n\n if (!slice?.length) {\n onLineClicked({\n dimensionValue: null,\n groupingDimensionValue: null,\n });\n return;\n }\n\n const xIndex = slice[0]!.index;\n const dimensionValue = (chart.data.labels?.[xIndex] ?? null) as string | number | null;\n\n // 2. Resolve the specific series (group) via nearest point\n let nearest: InteractionItem | undefined = chart.getElementsAtEventForMode(\n native,\n 'nearest',\n { intersect: true },\n false,\n )[0];\n\n // If nearest is missing or points to a different X, fall back to an element in the slice\n if (!nearest || nearest.index !== xIndex) {\n nearest = slice.find((el) => {\n const ds: LineDataset = chart.data.datasets[el.datasetIndex] as LineDataset;\n const val = Array.isArray(ds?.data) ? ds.data[xIndex] : undefined;\n return val !== null && val !== undefined;\n });\n }\n\n // 3. Compute the grouping key with the requested fallbacks\n let groupingDimensionValue; // default when X is found but no nearest\n\n if (!nearest) {\n // No nearest even after fallback — keep false to signal \"no series picked\"\n // (axisDimensionValue is valid because slice existed)\n } else {\n const ds: LineDataset = chart.data.datasets[nearest.datasetIndex] as LineDataset;\n groupingDimensionValue = (ds?.rawLabel ?? null) as string | boolean | null;\n }\n\n onLineClicked({\n dimensionValue,\n groupingDimensionValue,\n });\n },\n };\n};\n"],"names":["getLineChartProOptionsOnClick","props","onLineClicked","event","_elements","chart","_a","native","slice","xIndex","dimensionValue","nearest","el","ds","val","groupingDimensionValue"],"mappings":"AAYO,MAAMA,IAAgC,CAACC,MAElB;AAC1B,QAAM,EAAE,eAAAC,MAAkBD;AAE1B,SAAKC,IAEE;AAAA,IACL,SAAS,CAACC,GAAOC,GAAWC,MAAU;AARnC,UAAAC;AASD,YAAMC,IAAUJ,EAAwC,UAAWA,GAG7DK,IAAQH,EAAM,0BAA0BE,GAAQ,KAAK,EAAE,WAAW,GAAA,GAAS,EAAK;AAEtF,UAAI,EAACC,KAAA,QAAAA,EAAO,SAAQ;AAClB,QAAAN,EAAc;AAAA,UACZ,gBAAgB;AAAA,UAChB,wBAAwB;AAAA,QAAA,CACzB;AACD;AAAA,MACF;AAEA,YAAMO,IAASD,EAAM,CAAC,EAAG,OACnBE,MAAkBJ,IAAAD,EAAM,KAAK,WAAX,gBAAAC,EAAoBG,OAAW;AAGvD,UAAIE,IAAuCN,EAAM;AAAA,QAC/CE;AAAA,QACA;AAAA,QACA,EAAE,WAAW,GAAA;AAAA,QACb;AAAA,MAAA,EACA,CAAC;AAGH,OAAI,CAACI,KAAWA,EAAQ,UAAUF,OAChCE,IAAUH,EAAM,KAAK,CAACI,MAAO;AAC3B,cAAMC,IAAkBR,EAAM,KAAK,SAASO,EAAG,YAAY,GACrDE,IAAM,MAAM,QAAQD,KAAA,gBAAAA,EAAI,IAAI,IAAIA,EAAG,KAAKJ,CAAM,IAAI;AACxD,eAAOK,KAAQ;AAAA,MACjB,CAAC;AAIH,UAAIC;AAEJ,UAAKJ,GAGE;AACL,cAAME,IAAkBR,EAAM,KAAK,SAASM,EAAQ,YAAY;AAChE,QAAAI,KAA0BF,KAAA,gBAAAA,EAAI,aAAY;AAAA,MAC5C;AAEA,MAAAX,EAAc;AAAA,QACZ,gBAAAQ;AAAA,QACA,wBAAAK;AAAA,MAAA,CACD;AAAA,IACH;AAAA,EAAA,IApDyB,CAAA;AAsD7B;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as c, g } from "./charts.utils-
|
|
2
|
-
import { g as u } from "./
|
|
1
|
+
import { r as c, h as g } from "./charts.utils-MNXWiXfk.js";
|
|
2
|
+
import { g as u } from "./preview.data.constants-DWqfMVjy.js";
|
|
3
3
|
import { a as l } from "./styles.utils-BfpH_m_W.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as f } from "./component.inputs.constants-
|
|
4
|
+
import { a as b } from "./Color.type.emb-JBTB4VAn.js";
|
|
5
|
+
import { i as f } from "./component.inputs.constants-Cj-atN8w.js";
|
|
6
6
|
const F = (a, n = c) => {
|
|
7
7
|
const s = u(n);
|
|
8
8
|
if (!a.data)
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
M as a,
|
|
75
75
|
F as g
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=pies.utils-
|
|
77
|
+
//# sourceMappingURL=pies.utils-CxJtBPWG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pies.utils-
|
|
1
|
+
{"version":3,"file":"pies.utils-CxJtBPWG.js","sources":["../src/components/charts/pies/pies.utils.ts"],"sourcesContent":["import { DataResponse, Dimension, Measure } from '@embeddable.com/core';\nimport { ChartData, ChartOptions } from 'chart.js';\nimport { groupTailAsOther } from '../charts.utils';\nimport { Theme } from '../../../theme/theme.types';\nimport { remarkableTheme } from '../../../theme/theme.constants';\nimport { getThemeFormatter } from '../../../theme/formatter/formatter.utils';\nimport { getDimensionMeasureColor } from '../../../theme/styles/styles.utils';\nimport { getChartColors } from '@embeddable.com/remarkable-ui';\nimport { i18n } from '../../../theme/i18n/i18n';\n\nexport const getPieChartProData = (\n props: {\n data: DataResponse['data'];\n dimension: Dimension;\n measure: Measure;\n maxLegendItems?: number;\n },\n theme: Theme = remarkableTheme,\n): ChartData<'pie'> => {\n const themeFormatter = getThemeFormatter(theme);\n\n if (!props.data)\n return {\n labels: [],\n datasets: [{ data: [] }],\n };\n\n const groupedData = groupTailAsOther(\n props.data,\n props.dimension,\n [props.measure],\n props.maxLegendItems,\n );\n\n const chartColors = getChartColors();\n const backgroundColor = groupedData.map((item, index) =>\n getDimensionMeasureColor({\n dimensionOrMeasure: props.dimension,\n theme,\n color: 'background',\n value: `${props.dimension.name}.${item[props.dimension.name]}`,\n chartColors,\n index,\n }),\n );\n\n const borderColor = groupedData.map((item, index) =>\n getDimensionMeasureColor({\n dimensionOrMeasure: props.dimension,\n theme,\n color: 'border',\n value: `${props.dimension.name}.${item[props.dimension.name]}`,\n chartColors,\n index,\n }),\n );\n\n return {\n labels: groupedData.map((item) => {\n const value = item[props.dimension.name];\n const formattedValue = themeFormatter.data(props.dimension, value);\n\n // If formatter did not work, try i18n translation\n if (value === formattedValue) {\n return i18n.t(value);\n }\n return formattedValue;\n }),\n datasets: [\n {\n data: groupedData.map((item) => item[props.measure.name]),\n backgroundColor,\n borderColor,\n },\n ],\n };\n};\n\nexport const getPieChartProOptions = (\n measure: Measure,\n theme: Theme = remarkableTheme,\n): Partial<ChartOptions<'pie'>> => {\n const themeFormatter = getThemeFormatter(theme);\n\n return {\n plugins: {\n legend: { position: theme.charts.legendPosition ?? 'bottom' },\n datalabels: {\n formatter: (value: string | number) => themeFormatter.data(measure, value),\n },\n tooltip: {\n callbacks: {\n label(context) {\n const raw = context.raw as number;\n const total = context.dataset.data.reduce(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (sum: number, v: any) => sum + parseFloat(v),\n 0,\n );\n const pct = Math.round((raw / total) * 100);\n return `${themeFormatter.data(measure, raw)} (${pct}%)`;\n },\n },\n },\n },\n };\n};\n"],"names":["getPieChartProData","props","theme","remarkableTheme","themeFormatter","getThemeFormatter","groupedData","groupTailAsOther","chartColors","getChartColors","backgroundColor","item","index","getDimensionMeasureColor","borderColor","value","formattedValue","i18n","getPieChartProOptions","measure","context","raw","total","sum","v","pct"],"mappings":";;;;;AAU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QACA,aAAAI;AAAA,MAAA;AAAA,IACF;AAAA,EACF;AAEJ,GAEaI,IAAwB,CACnCC,GACAjB,IAAeC,MACkB;AACjC,QAAMC,IAAiBC,EAAkBH,CAAK;AAE9C,SAAO;AAAA,IACL,SAAS;AAAA,MACP,QAAQ,EAAE,UAAUA,EAAM,OAAO,kBAAkB,SAAA;AAAA,MACnD,YAAY;AAAA,QACV,WAAW,CAACa,MAA2BX,EAAe,KAAKe,GAASJ,CAAK;AAAA,MAAA;AAAA,MAE3E,SAAS;AAAA,QACP,WAAW;AAAA,UACT,MAAMK,GAAS;AACb,kBAAMC,IAAMD,EAAQ,KACdE,IAAQF,EAAQ,QAAQ,KAAK;AAAA;AAAA,cAEjC,CAACG,GAAaC,MAAWD,IAAM,WAAWC,CAAC;AAAA,cAC3C;AAAA,YAAA,GAEIC,IAAM,KAAK,MAAOJ,IAAMC,IAAS,GAAG;AAC1C,mBAAO,GAAGlB,EAAe,KAAKe,GAASE,CAAG,CAAC,KAAKI,CAAG;AAAA,UACrD;AAAA,QAAA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEJ;"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { D as N, e as b } from "./component.inputs.constants-Cj-atN8w.js";
|
|
2
|
+
import { Q as R, R as T, U as i } from "./Color.type.emb-JBTB4VAn.js";
|
|
3
|
+
const m = (a) => {
|
|
4
|
+
const c = {};
|
|
5
|
+
return (d) => {
|
|
6
|
+
const f = JSON.stringify(d);
|
|
7
|
+
let e = c[f];
|
|
8
|
+
return e || (e = a(d), c[f] = e, e);
|
|
9
|
+
};
|
|
10
|
+
}, U = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}$/, O = (a) => !!(a && U.test(a)), y = (a) => {
|
|
11
|
+
const c = m(
|
|
12
|
+
(t) => a.formatter.numberFormatter(a, t)
|
|
13
|
+
), l = m(
|
|
14
|
+
(t) => a.formatter.dataNumberFormatter(a, t)
|
|
15
|
+
), d = m(
|
|
16
|
+
(t) => a.formatter.dateTimeFormatter(a, t)
|
|
17
|
+
), f = m(
|
|
18
|
+
(t) => a.formatter.dataDateTimeFormatter(a, t)
|
|
19
|
+
), e = m(
|
|
20
|
+
(t) => a.formatter.dataOthersFormatter(a, t)
|
|
21
|
+
);
|
|
22
|
+
return {
|
|
23
|
+
string: (t) => a.formatter.stringFormatter().format(t),
|
|
24
|
+
number: (t, r) => c(r).format(t),
|
|
25
|
+
dateTime: (t, r) => d(r).format(t),
|
|
26
|
+
dimensionOrMeasureTitle: (t) => {
|
|
27
|
+
var s;
|
|
28
|
+
const r = (s = t.inputs) == null ? void 0 : s.displayName;
|
|
29
|
+
if (r)
|
|
30
|
+
return r.includes("|") ? b(r) : r;
|
|
31
|
+
const n = e(t).format(t.name);
|
|
32
|
+
return n === t.name ? t.title ?? t.name : n;
|
|
33
|
+
},
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
|
+
data: (t, r) => {
|
|
36
|
+
var C, F, g, D, S, A;
|
|
37
|
+
let n = r;
|
|
38
|
+
if (r == null)
|
|
39
|
+
return ((C = t.inputs) == null ? void 0 : C.displayNullAs) ?? "";
|
|
40
|
+
if (((F = t.inputs) == null ? void 0 : F.displayFormat) === N.JSON)
|
|
41
|
+
return JSON.stringify(r, null, 2);
|
|
42
|
+
if (((g = t.inputs) == null ? void 0 : g.displayFormat) === N.MARKDOWN)
|
|
43
|
+
return r;
|
|
44
|
+
if (typeof r == "object")
|
|
45
|
+
return JSON.stringify(r);
|
|
46
|
+
t.nativeType === "number" && (n = l(t).format(r)), t.nativeType === "time" && O(r) && (n = f(t).format(new Date(r))), (t.nativeType === "boolean" || t.nativeType === "string") && (n = e(t).format(r));
|
|
47
|
+
const s = `${((D = t.inputs) == null ? void 0 : D.prefix) || ""}${n}${((S = t.inputs) == null ? void 0 : S.suffix) || ""}`;
|
|
48
|
+
return (A = t.inputs) != null && A.maxCharacters ? s.length <= t.inputs.maxCharacters ? s : s.substring(0, t.inputs.maxCharacters) + "..." : s;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}, u = "country", o = "count", E = "average", p = "category", M = R(u, "string", { title: "Country" }), G = T(o, "number", { title: "Count" }), V = T(E, "number", { title: "Average" }), K = R(p, "string", {
|
|
52
|
+
title: "Category"
|
|
53
|
+
}), x = i(
|
|
54
|
+
[u, o],
|
|
55
|
+
[
|
|
56
|
+
["US", 120],
|
|
57
|
+
["GER", 100],
|
|
58
|
+
["UK", 80],
|
|
59
|
+
["FRA", 70],
|
|
60
|
+
["SPA", 55]
|
|
61
|
+
]
|
|
62
|
+
), I = i(
|
|
63
|
+
[u, p, o],
|
|
64
|
+
[
|
|
65
|
+
["US", 100],
|
|
66
|
+
["GER", 90],
|
|
67
|
+
["UK", 75],
|
|
68
|
+
["FRA", 85],
|
|
69
|
+
["SPA", 60]
|
|
70
|
+
]
|
|
71
|
+
), P = i(
|
|
72
|
+
[u, p, o],
|
|
73
|
+
[
|
|
74
|
+
["US", "Cat 1", 120],
|
|
75
|
+
["US", "Cat 2", 130],
|
|
76
|
+
["GER", "Cat 1", 100],
|
|
77
|
+
["GER", "Cat 2", 110],
|
|
78
|
+
["UK", "Cat 1", 80],
|
|
79
|
+
["UK", "Cat 2", 95],
|
|
80
|
+
["FRA", "Cat 1", 70],
|
|
81
|
+
["FRA", "Cat 2", 60],
|
|
82
|
+
["SPA", "Cat 1", 55],
|
|
83
|
+
["SPA", "Cat 2", 35]
|
|
84
|
+
]
|
|
85
|
+
), h = i(
|
|
86
|
+
[u, p, o],
|
|
87
|
+
[
|
|
88
|
+
["US", "Cat 1", 100],
|
|
89
|
+
["US", "Cat 2", 115],
|
|
90
|
+
["GER", "Cat 1", 90],
|
|
91
|
+
["GER", "Cat 2", 125],
|
|
92
|
+
["UK", "Cat 1", 75],
|
|
93
|
+
["UK", "Cat 2", 105],
|
|
94
|
+
["FRA", "Cat 1", 85],
|
|
95
|
+
["FRA", "Cat 2", 55],
|
|
96
|
+
["SPA", "Cat 1", 60],
|
|
97
|
+
["SPA", "Cat 2", 30]
|
|
98
|
+
]
|
|
99
|
+
), J = i([o], [[120]]), $ = i([o], [[100]]), w = {
|
|
100
|
+
embeddableId: "",
|
|
101
|
+
datasetId: "",
|
|
102
|
+
inputName: "",
|
|
103
|
+
variableValues: {}
|
|
104
|
+
}, B = {
|
|
105
|
+
dataset: w,
|
|
106
|
+
dimension: M,
|
|
107
|
+
dimensionGroup: K,
|
|
108
|
+
measure: G,
|
|
109
|
+
measureVariant: V,
|
|
110
|
+
results1Measure: J,
|
|
111
|
+
results1MeasureVariant: $,
|
|
112
|
+
results1Measure1Dimension: x,
|
|
113
|
+
results1Measure1DimensionVariant: I,
|
|
114
|
+
results1Measure2Dimensions: P,
|
|
115
|
+
results1Measure2DimensionsVariant: h
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
m as c,
|
|
119
|
+
y as g,
|
|
120
|
+
O as i,
|
|
121
|
+
B as p
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=preview.data.constants-DWqfMVjy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview.data.constants-DWqfMVjy.js","sources":["../src/utils/cache.utils.ts","../src/utils/data.utils.ts","../src/theme/formatter/formatter.utils.ts","../src/components/preview.data.constants.ts"],"sourcesContent":["/**\n * Creates a formatter cache.\n * Cache used to prevent unnecessary (expensive) creation of formatter objects\n */\nexport const cache = <Params, Formatter>(factory: (params?: Params) => Formatter) => {\n const internalCache: { [key: string]: Formatter } = {};\n const get = (params?: Params) => {\n const key = JSON.stringify(params);\n let formatter = internalCache[key];\n if (formatter) {\n return formatter;\n }\n formatter = factory(params);\n internalCache[key] = formatter;\n return formatter;\n };\n return get;\n};\n","const ISO_DATE_TIME_REGEX = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$/;\n\nexport const isValidISODate = (value: string): boolean => {\n return Boolean(value && ISO_DATE_TIME_REGEX.test(value));\n};\n","import { DimensionOrMeasure } from '@embeddable.com/core';\nimport { DateTimeFormatter, NumberFormatter, StringFormatter } from './formatter.types';\nimport { Theme } from '../theme.types';\nimport { cache } from '../../utils/cache.utils';\nimport { isValidISODate } from '../../utils/data.utils';\nimport { resolveI18nString } from '../../components/component.utils';\nimport { DisplayFormatTypeOptions } from '../../components/types/DisplayFormat.type.emb';\n\nexport type GetThemeFormatter = {\n string: (key: string) => string;\n number: (value: number | bigint, options?: Intl.NumberFormatOptions) => string;\n dateTime: (value: Date, options?: Intl.DateTimeFormatOptions) => string;\n dimensionOrMeasureTitle: (key: DimensionOrMeasure) => string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: (key: DimensionOrMeasure, value: any) => string;\n};\n\nexport const getThemeFormatter = (theme: Theme): GetThemeFormatter => {\n const cachedNumberFormatter = cache<Intl.NumberFormatOptions, NumberFormatter>((options) =>\n theme.formatter.numberFormatter(theme, options),\n );\n\n const cachedDataNumberFormatter = cache<DimensionOrMeasure, NumberFormatter>((key) =>\n theme.formatter.dataNumberFormatter(theme, key!),\n );\n\n const cachedDateTimeFormatter = cache<Intl.DateTimeFormatOptions, DateTimeFormatter>((options) =>\n theme.formatter.dateTimeFormatter(theme, options),\n );\n\n const cachedDataDateTimeFormatter = cache<DimensionOrMeasure, DateTimeFormatter>((key) =>\n theme.formatter.dataDateTimeFormatter(theme, key!),\n );\n\n const cachedDataOthersFormatter = cache<DimensionOrMeasure, StringFormatter>((key) =>\n theme.formatter.dataOthersFormatter(theme, key!),\n );\n\n return {\n string: (key: string) => theme.formatter.stringFormatter().format(key),\n number: (value: number | bigint, options?: Intl.NumberFormatOptions): string => {\n return cachedNumberFormatter(options).format(value);\n },\n dateTime: (value: Date, options?: Intl.DateTimeFormatOptions): string => {\n return cachedDateTimeFormatter(options).format(value);\n },\n dimensionOrMeasureTitle: (key: DimensionOrMeasure): string => {\n const displayName = key.inputs?.displayName;\n if (displayName) {\n if (displayName.includes('|')) {\n return resolveI18nString(displayName);\n }\n return displayName;\n }\n\n const resolved = cachedDataOthersFormatter(key).format(key.name);\n return resolved === key.name ? (key.title ?? key.name) : resolved;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: (key: DimensionOrMeasure, value: any): string => {\n let newValue = value;\n\n // Nulls\n if (value == null) {\n return key.inputs?.displayNullAs ?? '';\n }\n\n // JSON and Markdown\n if (key.inputs?.displayFormat === DisplayFormatTypeOptions.JSON) {\n return JSON.stringify(value, null, 2);\n } else if (key.inputs?.displayFormat === DisplayFormatTypeOptions.MARKDOWN) {\n return value;\n }\n // Objects\n if (typeof value === 'object') {\n return JSON.stringify(value);\n }\n\n // Number\n if (key.nativeType === 'number') {\n newValue = cachedDataNumberFormatter(key).format(value);\n }\n\n // Time\n if (key.nativeType === 'time' && isValidISODate(value)) {\n newValue = cachedDataDateTimeFormatter(key).format(new Date(value));\n }\n\n // Others (boolean and string)\n if (key.nativeType === 'boolean' || key.nativeType === 'string') {\n newValue = cachedDataOthersFormatter(key).format(value);\n }\n\n // Prefix and suffix\n const appended = `${key.inputs?.prefix || ''}${newValue}${key.inputs?.suffix || ''}`;\n\n // Max characters\n if (key.inputs?.maxCharacters) {\n if (appended.length <= key.inputs.maxCharacters) {\n return appended;\n }\n return appended.substring(0, key.inputs.maxCharacters) + '...';\n }\n\n return appended;\n },\n };\n};\n","import { mockDataResponse, mockDimension, mockMeasure } from '@embeddable.com/core';\n\nconst dimensionName = 'country';\nconst measureName = 'count';\nconst measureVariantName = 'average';\nconst dimensionGroupName = 'category';\n\nconst dimension = mockDimension(dimensionName, 'string', { title: 'Country' });\nconst measure = mockMeasure(measureName, 'number', { title: 'Count' });\nconst measureVariant = mockMeasure(measureVariantName, 'number', { title: 'Average' });\nconst dimensionGroup = mockDimension(dimensionGroupName, 'string', {\n title: 'Category',\n});\n\nconst results1Measure1Dimension = mockDataResponse(\n [dimensionName, measureName],\n [\n ['US', 120],\n ['GER', 100],\n ['UK', 80],\n ['FRA', 70],\n ['SPA', 55],\n ],\n);\n\nconst results1Measure1DimensionVariant = mockDataResponse(\n [dimensionName, dimensionGroupName, measureName],\n [\n ['US', 100],\n ['GER', 90],\n ['UK', 75],\n ['FRA', 85],\n ['SPA', 60],\n ],\n);\n\nconst results1Measure2Dimensions = mockDataResponse(\n [dimensionName, dimensionGroupName, measureName],\n [\n ['US', 'Cat 1', 120],\n ['US', 'Cat 2', 130],\n\n ['GER', 'Cat 1', 100],\n ['GER', 'Cat 2', 110],\n\n ['UK', 'Cat 1', 80],\n ['UK', 'Cat 2', 95],\n\n ['FRA', 'Cat 1', 70],\n ['FRA', 'Cat 2', 60],\n\n ['SPA', 'Cat 1', 55],\n ['SPA', 'Cat 2', 35],\n ],\n);\n\nconst results1Measure2DimensionsVariant = mockDataResponse(\n [dimensionName, dimensionGroupName, measureName],\n [\n ['US', 'Cat 1', 100],\n ['US', 'Cat 2', 115],\n\n ['GER', 'Cat 1', 90],\n ['GER', 'Cat 2', 125],\n\n ['UK', 'Cat 1', 75],\n ['UK', 'Cat 2', 105],\n\n ['FRA', 'Cat 1', 85],\n ['FRA', 'Cat 2', 55],\n\n ['SPA', 'Cat 1', 60],\n ['SPA', 'Cat 2', 30],\n ],\n);\n\nconst results1Measure = mockDataResponse([measureName], [[120]]);\nconst results1MeasureVariant = mockDataResponse([measureName], [[100]]);\n\nconst dataset = {\n embeddableId: '',\n datasetId: '',\n inputName: '',\n variableValues: {},\n};\n\nexport const previewData = {\n dataset,\n dimension,\n dimensionGroup,\n measure,\n measureVariant,\n results1Measure,\n results1MeasureVariant,\n results1Measure1Dimension,\n results1Measure1DimensionVariant,\n results1Measure2Dimensions,\n results1Measure2DimensionsVariant,\n} as const;\n"],"names":["cache","factory","internalCache","params","key","formatter","ISO_DATE_TIME_REGEX","isValidISODate","value","getThemeFormatter","theme","cachedNumberFormatter","options","cachedDataNumberFormatter","cachedDateTimeFormatter","cachedDataDateTimeFormatter","cachedDataOthersFormatter","displayName","_a","resolveI18nString","resolved","newValue","_b","DisplayFormatTypeOptions","_c","appended","_d","_e","_f","dimensionName","measureName","measureVariantName","dimensionGroupName","dimension","mockDimension","measure","mockMeasure","measureVariant","dimensionGroup","results1Measure1Dimension","mockDataResponse","results1Measure1DimensionVariant","results1Measure2Dimensions","results1Measure2DimensionsVariant","results1Measure","results1MeasureVariant","dataset","previewData"],"mappings":";;AAIO,MAAMA,IAAQ,CAAoBC,MAA4C;AACnF,QAAMC,IAA8C,CAAA;AAWpD,SAVY,CAACC,MAAoB;AAC/B,UAAMC,IAAM,KAAK,UAAUD,CAAM;AACjC,QAAIE,IAAYH,EAAcE,CAAG;AACjC,WAAIC,MAGJA,IAAYJ,EAAQE,CAAM,GAC1BD,EAAcE,CAAG,IAAIC,GACdA;AAAA,EACT;AAEF,GCjBMC,IAAsB,gDAEfC,IAAiB,CAACC,MACtB,GAAQA,KAASF,EAAoB,KAAKE,CAAK,ICc3CC,IAAoB,CAACC,MAAoC;AACpE,QAAMC,IAAwBX;AAAA,IAAiD,CAACY,MAC9EF,EAAM,UAAU,gBAAgBA,GAAOE,CAAO;AAAA,EAAA,GAG1CC,IAA4Bb;AAAA,IAA2C,CAACI,MAC5EM,EAAM,UAAU,oBAAoBA,GAAON,CAAI;AAAA,EAAA,GAG3CU,IAA0Bd;AAAA,IAAqD,CAACY,MACpFF,EAAM,UAAU,kBAAkBA,GAAOE,CAAO;AAAA,EAAA,GAG5CG,IAA8Bf;AAAA,IAA6C,CAACI,MAChFM,EAAM,UAAU,sBAAsBA,GAAON,CAAI;AAAA,EAAA,GAG7CY,IAA4BhB;AAAA,IAA2C,CAACI,MAC5EM,EAAM,UAAU,oBAAoBA,GAAON,CAAI;AAAA,EAAA;AAGjD,SAAO;AAAA,IACL,QAAQ,CAACA,MAAgBM,EAAM,UAAU,gBAAA,EAAkB,OAAON,CAAG;AAAA,IACrE,QAAQ,CAACI,GAAwBI,MACxBD,EAAsBC,CAAO,EAAE,OAAOJ,CAAK;AAAA,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AAE;AAAA,IAEnB,CAAC,OAAO,SAAS,EAAE;AAAA,IACnB,CAAC,OAAO,SAAS,EAAE;AAAA,EAAA;AAEvB,GAEMa,IAAoCH;AAAA,EACxC,CAACX,GAAeG,GAAoBF,CAAW;AAAA,EAC/C;AAAA,IACE,CAAC,MAAM,SAAS,GAAG;AAAA,IACnB,CAAC,MAAM,SAAS,GAAG;AAAA,IAEnB,CAAC,OAAO,SAAS,EAAE;AAAA,IACnB,CAAC,OAAO,SAAS,GAAG;AAAA,IAEpB,CAAC,MAAM,SAAS,EAAE;AAAA,IAClB,CAAC,MAAM,SAAS,GAAG;AAAA,IAEnB,CAAC,OAAO,SAAS,EAAE;AAAA,IACnB,CAAC,OAAO,SAAS,EAAE;AAAA,IAEnB,CAAC,OAAO,SAAS,EAAE;AAAA,IACnB,CAAC,OAAO,SAAS,EAAE;AAAA,EAAA;AAEvB,GAEMc,IAAkBJ,EAAiB,CAACV,CAAW,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GACzDe,IAAyBL,EAAiB,CAACV,CAAW,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAEhEgB,IAAU;AAAA,EACd,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,gBAAgB,CAAA;AAClB,GAEaC,IAAc;AAAA,EACzB,SAAAD;AAAA,EACA,WAAAb;AAAA,EACA,gBAAAK;AAAA,EACA,SAAAH;AAAA,EACA,gBAAAE;AAAA,EACA,iBAAAO;AAAA,EACA,wBAAAC;AAAA,EACA,2BAAAN;AAAA,EACA,kCAAAE;AAAA,EACA,4BAAAC;AAAA,EACA,mCAAAC;AACF;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.utils-BfpH_m_W.js","sources":["../src/utils/object.utils.ts","../src/theme/styles/styles.utils.ts"],"sourcesContent":["export const getObjectStableKey = (obj: unknown): string => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const stableStringify = (o: any): string => {\n if (o && typeof o === 'object' && !Array.isArray(o)) {\n return (\n '{' +\n Object.keys(o)\n .sort()\n .map((k) => `\"${k}\":${stableStringify(o[k])}`)\n .join(',') +\n '}'\n );\n } else if (Array.isArray(o)) {\n return '[' + o.map(stableStringify).join(',') + ']';\n }\n return JSON.stringify(o);\n };\n\n const json = stableStringify(obj);\n\n // FNV-1a 32-bit hash\n let hash = 0x811c9dc5;\n for (let i = 0; i < json.length; i++) {\n hash ^= json.charCodeAt(i);\n hash += (hash << 1) + (hash << 4) + (hash << 7) + (hash << 8) + (hash << 24);\n }\n\n return (hash >>> 0).toString(16);\n};\n","import { Dimension, Measure } from '@embeddable.com/core';\nimport { Theme } from '../theme.types';\nimport { getObjectStableKey } from '../../utils/object.utils';\n\nconst generateCssVariables = (variables: Record<string, string>) => {\n let textContent = '';\n Object.keys(variables).forEach((key) => {\n const value = variables[key];\n textContent += `${key}: ${value};\\n`;\n });\n return textContent;\n};\n\n// TODO: check the possibility of injecting via CSS (future)\nexport const injectCssVariables = (styles: Record<string, string>) => {\n const css = `:root {\\n${generateCssVariables(styles)}}`;\n const styleId = 'remarkable-ui-embeddable-style';\n let styleEl = document.getElementById(styleId) as HTMLStyleElement | null;\n\n if (styleEl) {\n // Overwrite the old vars\n styleEl.textContent = css;\n } else {\n styleEl = document.createElement('style');\n styleEl.id = styleId;\n styleEl.textContent = css;\n document.head.appendChild(styleEl);\n }\n\n return () => styleEl?.remove();\n};\n\nconst colorsMap = new Map<string, Map<string, string>>();\nconst colorsInUse = new Map<string, Set<string>>();\n\n/* \nWe save the colors to session storage so that they are persistent across refreshes. \nThis is important, for example, if the user is looking at multiple tabs, or if the user refreshes the page.\n*/\nconst STORAGE_KEY = 'embeddable';\n\nconst saveColorsMap = () => {\n const obj: Record<string, Record<string, string>> = {};\n for (const [cat, m] of colorsMap) {\n obj[cat] = Object.fromEntries(m);\n }\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(obj));\n};\n\nconst loadColorMap = () => {\n if (typeof window === 'undefined' || typeof document === 'undefined') return;\n\n const data = sessionStorage.getItem(STORAGE_KEY);\n if (!data) return;\n const obj: Record<string, Record<string, string>> = JSON.parse(data);\n for (const cat in obj) {\n const m = new Map(Object.entries(obj[cat] ?? {}));\n colorsMap.set(cat, m);\n colorsInUse.set(cat, new Set(m.values()));\n }\n};\n\nloadColorMap();\n\nexport const getColor = (key: string, value: string, palette: string[], idx: number): string => {\n if (typeof window === 'undefined' || typeof document === 'undefined') return '';\n\n // Initialize structures if needed\n if (!colorsMap.has(key)) {\n colorsMap.set(key, new Map());\n colorsInUse.set(key, new Set());\n }\n\n const catMap = colorsMap.get(key)!;\n\n // Return existing color if already assigned\n if (catMap.has(value)) return catMap.get(value)!;\n\n // Find first colorsInUse color, fallback to indexed one\n const color = palette[idx % palette.length];\n\n if (typeof color !== 'string') {\n throw new Error('No valid color found in palette');\n }\n\n // Save mapping and mark as colorsInUse\n catMap.set(value, color);\n saveColorsMap();\n\n return color;\n};\n\
|
|
1
|
+
{"version":3,"file":"styles.utils-BfpH_m_W.js","sources":["../src/utils/object.utils.ts","../src/theme/styles/styles.utils.ts"],"sourcesContent":["export const getObjectStableKey = (obj: unknown): string => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const stableStringify = (o: any): string => {\n if (o && typeof o === 'object' && !Array.isArray(o)) {\n return (\n '{' +\n Object.keys(o)\n .sort()\n .map((k) => `\"${k}\":${stableStringify(o[k])}`)\n .join(',') +\n '}'\n );\n } else if (Array.isArray(o)) {\n return '[' + o.map(stableStringify).join(',') + ']';\n }\n return JSON.stringify(o);\n };\n\n const json = stableStringify(obj);\n\n // FNV-1a 32-bit hash\n let hash = 0x811c9dc5;\n for (let i = 0; i < json.length; i++) {\n hash ^= json.charCodeAt(i);\n hash += (hash << 1) + (hash << 4) + (hash << 7) + (hash << 8) + (hash << 24);\n }\n\n return (hash >>> 0).toString(16);\n};\n","import { Dimension, Measure } from '@embeddable.com/core';\nimport { Theme } from '../theme.types';\nimport { getObjectStableKey } from '../../utils/object.utils';\n\nconst generateCssVariables = (variables: Record<string, string>) => {\n let textContent = '';\n Object.keys(variables).forEach((key) => {\n const value = variables[key];\n textContent += `${key}: ${value};\\n`;\n });\n return textContent;\n};\n\n// TODO: check the possibility of injecting via CSS (future)\nexport const injectCssVariables = (styles: Record<string, string>) => {\n const css = `:root {\\n${generateCssVariables(styles)}}`;\n const styleId = 'remarkable-ui-embeddable-style';\n let styleEl = document.getElementById(styleId) as HTMLStyleElement | null;\n\n if (styleEl) {\n // Overwrite the old vars\n styleEl.textContent = css;\n } else {\n styleEl = document.createElement('style');\n styleEl.id = styleId;\n styleEl.textContent = css;\n document.head.appendChild(styleEl);\n }\n\n return () => styleEl?.remove();\n};\n\nconst colorsMap = new Map<string, Map<string, string>>();\nconst colorsInUse = new Map<string, Set<string>>();\n\n/* \nWe save the colors to session storage so that they are persistent across refreshes. \nThis is important, for example, if the user is looking at multiple tabs, or if the user refreshes the page.\n*/\nconst STORAGE_KEY = 'embeddable';\n\nconst saveColorsMap = () => {\n const obj: Record<string, Record<string, string>> = {};\n for (const [cat, m] of colorsMap) {\n obj[cat] = Object.fromEntries(m);\n }\n sessionStorage.setItem(STORAGE_KEY, JSON.stringify(obj));\n};\n\nconst loadColorMap = () => {\n if (typeof window === 'undefined' || typeof document === 'undefined') return;\n\n const data = sessionStorage.getItem(STORAGE_KEY);\n if (!data) return;\n const obj: Record<string, Record<string, string>> = JSON.parse(data);\n for (const cat in obj) {\n const m = new Map(Object.entries(obj[cat] ?? {}));\n colorsMap.set(cat, m);\n colorsInUse.set(cat, new Set(m.values()));\n }\n};\n\nloadColorMap();\n\nexport const getColor = (key: string, value: string, palette: string[], idx: number): string => {\n if (typeof window === 'undefined' || typeof document === 'undefined') return '';\n\n // Initialize structures if needed\n if (!colorsMap.has(key)) {\n colorsMap.set(key, new Map());\n colorsInUse.set(key, new Set());\n }\n\n const catMap = colorsMap.get(key)!;\n\n // Return existing color if already assigned\n if (catMap.has(value)) return catMap.get(value)!;\n\n // Find first colorsInUse color, fallback to indexed one\n const color = palette[idx % palette.length];\n\n if (typeof color !== 'string') {\n throw new Error('No valid color found in palette');\n }\n\n // Save mapping and mark as colorsInUse\n catMap.set(value, color);\n saveColorsMap();\n\n return color;\n};\n\nexport type GetDimensionMeasureColorProps = {\n dimensionOrMeasure: Dimension | Measure;\n theme: Theme;\n value: string;\n color: 'background' | 'border';\n index: number;\n chartColors: string[];\n};\n\nexport const getDimensionMeasureColor = ({\n dimensionOrMeasure,\n theme,\n color,\n value,\n index,\n chartColors,\n}: GetDimensionMeasureColorProps) => {\n // 1) Color from inputs\n const inputColor = dimensionOrMeasure.inputs?.color;\n if (inputColor) return inputColor;\n\n // 2) Color from theme (entity-specific)\n const entity = dimensionOrMeasure.__type__ === 'measure' ? 'measure' : 'dimensionValue';\n const backgroundColor = theme.charts['backgroundColorMap']?.[entity]?.[value];\n const borderColor = theme.charts['borderColorMap']?.[entity]?.[value];\n\n if (color === 'background') {\n if (backgroundColor) return backgroundColor;\n if (borderColor) return borderColor; // fallback to border\n }\n\n if (color === 'border') {\n if (borderColor) return borderColor;\n if (backgroundColor) return backgroundColor; // fallback to background\n }\n\n // 3) Palette fallback (theme palette -> provided palette)\n const themeKey = getObjectStableKey(theme);\n const paletteKey = color === 'background' ? 'backgroundColors' : 'borderColors';\n const key = `${themeKey}.charts.${paletteKey}`;\n\n // Fallback to chartColors\n const palette = theme.charts?.[paletteKey] ?? theme.charts.backgroundColors ?? chartColors;\n\n return getColor(key, value, palette, index);\n};\n"],"names":["getObjectStableKey","obj","stableStringify","o","k","json","hash","i","generateCssVariables","variables","textContent","key","value","injectCssVariables","styles","css","styleId","styleEl","colorsMap","colorsInUse","STORAGE_KEY","saveColorsMap","cat","m","loadColorMap","data","getColor","palette","idx","catMap","color","getDimensionMeasureColor","dimensionOrMeasure","theme","index","chartColors","_a","_b","_c","_d","_e","_f","inputColor","entity","backgroundColor","borderColor","themeKey","paletteKey"],"mappings":"AAAO,MAAMA,I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AAAsB;AAAA,EACA,aAAAC;AACF,MAAqC;AD5G9B,MAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;AC8GL,QAAMC,KAAaN,IAAAJ,EAAmB,WAAnB,gBAAAI,EAA2B;AAC9C,MAAIM,EAAY,QAAOA;AAGvB,QAAMC,IAASX,EAAmB,aAAa,YAAY,YAAY,kBACjEY,KAAkBN,KAAAD,IAAAJ,EAAM,OAAO,uBAAb,gBAAAI,EAAqCM,OAArC,gBAAAL,EAA+C1B,IACjEiC,KAAcL,KAAAD,IAAAN,EAAM,OAAO,mBAAb,gBAAAM,EAAiCI,OAAjC,gBAAAH,EAA2C5B;AAE/D,MAAIkB,MAAU,cAAc;AAC1B,QAAIc,EAAiB,QAAOA;AAC5B,QAAIC,EAAa,QAAOA;AAAA,EAC1B;AAEA,MAAIf,MAAU,UAAU;AACtB,QAAIe,EAAa,QAAOA;AACxB,QAAID,EAAiB,QAAOA;AAAA,EAC9B;AAGA,QAAME,IAAW9C,EAAmBiC,CAAK,GACnCc,IAAajB,MAAU,eAAe,qBAAqB,gBAC3DnB,IAAM,GAAGmC,CAAQ,WAAWC,CAAU,IAGtCpB,MAAUc,IAAAR,EAAM,WAAN,gBAAAQ,EAAeM,OAAed,EAAM,OAAO,oBAAoBE;AAE/E,SAAOT,EAASf,GAAKC,GAAOe,GAASO,CAAK;AAC5C;"}
|
|
@@ -41,6 +41,7 @@ const A = (e) => (t, n) => e === "asc" ? t < n ? -1 : t > n ? 1 : 0 : e === "des
|
|
|
41
41
|
return s = u(s, e.rowOrder, e.rowDimension, e.columnDimension), s;
|
|
42
42
|
}, h = (e) => T(() => M(e), [e]);
|
|
43
43
|
export {
|
|
44
|
+
M as g,
|
|
44
45
|
h as u
|
|
45
46
|
};
|
|
46
|
-
//# sourceMappingURL=tables.hooks-
|
|
47
|
+
//# sourceMappingURL=tables.hooks-fVC_4V5K.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tables.hooks-
|
|
1
|
+
{"version":3,"file":"tables.hooks-fVC_4V5K.js","sources":["../src/components/charts/tables/tables.hooks.ts"],"sourcesContent":["import { DataResponse, Dimension, Measure } from '@embeddable.com/core';\nimport { useMemo } from 'react';\n\ntype Order = 'asc' | 'desc' | 'equal';\n\nfunction getTablePredominantOrder(arr: (string | number | boolean)[]): Order {\n let asc = 0;\n let desc = 0;\n\n for (let i = 0; i < arr.length - 1; i++) {\n const a = arr[i];\n const b = arr[i + 1];\n\n if (a == null || b == null) continue;\n\n if (a < b) asc++;\n else if (a > b) desc++;\n }\n\n if (asc > desc) return 'asc';\n if (desc > asc) return 'desc';\n return 'equal';\n}\n\nfunction isTableOrderMixed(arr: (string | number | boolean)[]): boolean {\n let asc = 0;\n let desc = 0;\n\n for (let i = 0; i < arr.length - 1; i++) {\n const a = arr[i];\n const b = arr[i + 1];\n\n if (a == null || b == null) continue;\n\n if (a < b) asc++;\n else if (a > b) desc++;\n }\n\n return asc > 0 && desc > 0;\n}\n\nconst getTableSortComparator = (order: Order) => {\n return <T>(a: T, b: T) => {\n if (order === 'asc') {\n return a < b ? -1 : a > b ? 1 : 0;\n }\n if (order === 'desc') {\n return a > b ? -1 : a < b ? 1 : 0;\n }\n return 0;\n };\n};\n\ntype useGetTableSortedResultsProps = {\n results: DataResponse;\n columnOrder: (string | number | boolean)[];\n rowOrder: (string | number | boolean)[];\n columnDimension: Dimension;\n rowDimension: Dimension;\n measures: Measure[];\n};\n\nexport const getTableSortedResults = (props: useGetTableSortedResultsProps) => {\n const data = props.results.data ?? [];\n const firstRow = data[0];\n\n if (!firstRow) return [];\n\n const buildEmptyMeasures = () =>\n props.measures.reduce<Record<string, unknown>>((acc, measure) => {\n acc[measure.name] = undefined;\n return acc;\n }, {});\n\n const reorderByAxis = (\n inputData: Record<string, unknown>[],\n axisOrder: (string | number | boolean)[],\n axisDimension: Dimension,\n fixedDimension: Dimension,\n ) => {\n if (!isTableOrderMixed(axisOrder)) {\n return inputData;\n }\n\n const order = getTablePredominantOrder(axisOrder);\n const sortedAxisOrder = [...axisOrder].sort(getTableSortComparator(order));\n\n // \"Leader\" rows: one per value in the axis order, at the fixed dimension's first value\n const leaderRows = sortedAxisOrder.map((value) => {\n const existing = inputData.find(\n (x) =>\n x[axisDimension.name] === value &&\n x[fixedDimension.name] === firstRow[fixedDimension.name],\n );\n\n if (existing) return existing;\n\n return {\n ...firstRow,\n [axisDimension.name]: value,\n ...buildEmptyMeasures(),\n };\n });\n\n // Remove rows that are already covered by leaderRows (same [axis, fixed] tuple)\n const restResults = inputData.filter(\n (resultRow) =>\n !leaderRows.some(\n (leaderRow) =>\n leaderRow[axisDimension.name] === resultRow[axisDimension.name] &&\n leaderRow[fixedDimension.name] === resultRow[fixedDimension.name],\n ),\n );\n\n return [...leaderRows, ...restResults];\n };\n\n // Apply both sorts sequentially: fix columns first, then rows\n let result = reorderByAxis(data, props.columnOrder, props.columnDimension, props.rowDimension);\n result = reorderByAxis(result, props.rowOrder, props.rowDimension, props.columnDimension);\n\n return result;\n};\n\nexport const useGetTableSortedResults = (props: useGetTableSortedResultsProps) => {\n const results = useMemo(() => {\n return getTableSortedResults(props);\n }, [props]);\n return results;\n};\n"],"names":["getTablePredominantOrder","arr","asc","desc","i","a","b","isTableOrderMixed","getTableSortComparator","order","getTableSortedResults","props","data","firstRow","buildEmptyMeasures","acc","measure","reorderByAxis","inputData","axisOrder","axisDimension","fixedDimension","leaderRows","value","existing","x","restResults","resultRow","leaderRow","result","useGetTableSortedResults","useMemo"],"mappings":";AAKA,SAASA,EAAyBC,GAA2C;AAC3E,MAAIC,IAAM,GACNC,IAAO;AAEX,WAASC,IAAI,GAAGA,IAAIH,EAAI,SAAS,GAAGG,KAAK;AACvC,UAAMC,IAAIJ,EAAIG,CAAC,GACTE,IAAIL,EAAIG,IAAI,CAAC;AAEnB,IAAIC,KAAK,QAAQC,KAAK,SAElBD,IAAIC,IAAGJ,MACFG,IAAIC,KAAGH;AAAA,EAClB;AAEA,SAAID,IAAMC,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tB,GAAGT,EAAA;AAAA,MAAmB;AAAA,IAE1B,CAAC,GAGKY,IAAcR,EAAU;AAAA,MAC5B,CAACS,MACC,CAACL,EAAW;AAAA,QACV,CAACM,MACCA,EAAUR,EAAc,IAAI,MAAMO,EAAUP,EAAc,IAAI,KAC9DQ,EAAUP,EAAe,IAAI,MAAMM,EAAUN,EAAe,IAAI;AAAA,MAAA;AAAA,IACpE;AAGJ,WAAO,CAAC,GAAGC,GAAY,GAAGI,CAAW;AAAA,EACvC;AAGA,MAAIG,IAASZ,EAAcL,GAAMD,EAAM,aAAaA,EAAM,iBAAiBA,EAAM,YAAY;AAC7F,SAAAkB,IAASZ,EAAcY,GAAQlB,EAAM,UAAUA,EAAM,cAAcA,EAAM,eAAe,GAEjFkB;AACT,GAEaC,IAA2B,CAACnB,MACvBoB,EAAQ,MACfrB,EAAsBC,CAAK,GACjC,CAACA,CAAK,CAAC;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as ze, $ as di, a0 as ht,
|
|
2
|
-
import { g as yi } from "./
|
|
3
|
-
import { D as mn } from "./component.inputs.constants-
|
|
1
|
+
import { j as ze, $ as di, a0 as ht, c as Je } from "./Color.type.emb-JBTB4VAn.js";
|
|
2
|
+
import { g as yi } from "./preview.data.constants-DWqfMVjy.js";
|
|
3
|
+
import { D as mn } from "./component.inputs.constants-Cj-atN8w.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { g as tr } from "./_commonjsHelpers-C6fGbg64.js";
|
|
6
6
|
function ki(e, t) {
|
|
@@ -8748,4 +8748,4 @@ export {
|
|
|
8748
8748
|
Kc as c,
|
|
8749
8749
|
qc as g
|
|
8750
8750
|
};
|
|
8751
|
-
//# sourceMappingURL=tables.utils-
|
|
8751
|
+
//# sourceMappingURL=tables.utils-D4RGHDWw.js.map
|