@embeddable.com/remarkable-pro 0.0.20 → 0.0.22
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 +17 -10
- package/dist/BarChartDefaultHorizontalPro.js.map +1 -1
- package/dist/BarChartDefaultPro.js +17 -10
- package/dist/BarChartDefaultPro.js.map +1 -1
- package/dist/BarChartGroupedHorizontalPro.js +19 -11
- package/dist/BarChartGroupedHorizontalPro.js.map +1 -1
- package/dist/BarChartGroupedPro.js +19 -11
- package/dist/BarChartGroupedPro.js.map +1 -1
- package/dist/BarChartStackedHorizontalPro.js +18 -10
- package/dist/BarChartStackedHorizontalPro.js.map +1 -1
- package/dist/BarChartStackedPro.js +19 -11
- package/dist/BarChartStackedPro.js.map +1 -1
- package/dist/ChartCard-B3B1rFYh.js +116 -0
- package/dist/ChartCard-B3B1rFYh.js.map +1 -0
- package/dist/{Color.type.emb-C4VcPjfM.js → Color.type.emb-sebikYGW.js} +9031 -9009
- package/dist/{Color.type.emb-C4VcPjfM.js.map → Color.type.emb-sebikYGW.js.map} +1 -1
- package/dist/ColorEditor.js +1 -1
- package/dist/ComparisonPeriodSelectFieldPro.js +11 -8
- package/dist/ComparisonPeriodSelectFieldPro.js.map +1 -1
- package/dist/DateRangePickerCustomPro.js +33 -28
- package/dist/DateRangePickerCustomPro.js.map +1 -1
- package/dist/DateRangeSelectFieldPro.js +12 -8
- package/dist/DateRangeSelectFieldPro.js.map +1 -1
- package/dist/DonutChartPro.js +23 -15
- package/dist/DonutChartPro.js.map +1 -1
- package/dist/DonutLabelChartPro.js +31 -11
- package/dist/DonutLabelChartPro.js.map +1 -1
- package/dist/{EditorCard-CcsUaHcd.js → EditorCard-DpSCsmZJ.js} +3 -3
- package/dist/{EditorCard-CcsUaHcd.js.map → EditorCard-DpSCsmZJ.js.map} +1 -1
- package/dist/GranularitySelectFieldPro.js +104 -81
- package/dist/GranularitySelectFieldPro.js.map +1 -1
- package/dist/HeatMapPro.js +18 -10
- package/dist/HeatMapPro.js.map +1 -1
- package/dist/IconCalendarFilled-Bfm3jkzE.js +12 -0
- package/dist/IconCalendarFilled-Bfm3jkzE.js.map +1 -0
- package/dist/KpiChartNumberComparisonPro.js +25 -14
- package/dist/KpiChartNumberComparisonPro.js.map +1 -1
- package/dist/KpiChartNumberPro.js +23 -14
- package/dist/KpiChartNumberPro.js.map +1 -1
- package/dist/LineChartComparisonDefaultPro.js +37 -19
- package/dist/LineChartComparisonDefaultPro.js.map +1 -1
- package/dist/LineChartDefaultPro.js +21 -14
- package/dist/LineChartDefaultPro.js.map +1 -1
- package/dist/LineChartGroupedPro.js +25 -17
- package/dist/LineChartGroupedPro.js.map +1 -1
- package/dist/MultiSelectFieldPro.js +22 -16
- package/dist/MultiSelectFieldPro.js.map +1 -1
- package/dist/PieChartPro.js +23 -15
- package/dist/PieChartPro.js.map +1 -1
- package/dist/PivotTablePro.js +19 -11
- package/dist/PivotTablePro.js.map +1 -1
- package/dist/SingleSelectFieldPro.js +22 -16
- package/dist/SingleSelectFieldPro.js.map +1 -1
- package/dist/TableChartPaginated.js +62 -43
- package/dist/TableChartPaginated.js.map +1 -1
- package/dist/TableScrollable.js +324 -315
- package/dist/TableScrollable.js.map +1 -1
- package/dist/{bars.utils-Ck1w7NOo.js → bars.utils-jvwOEGnf.js} +10 -9
- package/dist/bars.utils-jvwOEGnf.js.map +1 -0
- package/dist/{charts.utils-g6NE_Jo3.js → charts.utils-Q9qc_Fq5.js} +13 -13
- package/dist/charts.utils-Q9qc_Fq5.js.map +1 -0
- package/dist/{component.inputs.constants-DN1efWXx.js → component.inputs.constants-Ds7YpNhT.js} +35 -35
- package/dist/{component.inputs.constants-DN1efWXx.js.map → component.inputs.constants-Ds7YpNhT.js.map} +1 -1
- package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts +11 -12
- package/dist/components/charts/bars/BarChartDefaultHorizontalPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts +11 -12
- package/dist/components/charts/bars/BarChartDefaultPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts +10 -11
- package/dist/components/charts/bars/BarChartGroupedHorizontalPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts +10 -11
- package/dist/components/charts/bars/BarChartGroupedPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts +10 -11
- package/dist/components/charts/bars/BarChartStackedHorizontalPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/BarChartStackedPro/index.d.ts +10 -11
- package/dist/components/charts/bars/BarChartStackedPro/index.d.ts.map +1 -1
- package/dist/components/charts/bars/bars.utils.d.ts +1 -1
- package/dist/components/charts/bars/bars.utils.d.ts.map +1 -1
- package/dist/components/charts/kpis/KpiChartNumberComparisonPro/index.d.ts +6 -7
- package/dist/components/charts/kpis/KpiChartNumberComparisonPro/index.d.ts.map +1 -1
- package/dist/components/charts/kpis/KpiChartNumberPro/index.d.ts +3 -4
- package/dist/components/charts/kpis/KpiChartNumberPro/index.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartComparisonDefaultPro/LineChartComparisonDefaultPro.utils.d.ts +3 -3
- package/dist/components/charts/lines/LineChartComparisonDefaultPro/LineChartComparisonDefaultPro.utils.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts +12 -13
- package/dist/components/charts/lines/LineChartComparisonDefaultPro/index.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartDefaultPro/LineChartDefaultPro.utils.d.ts +1 -1
- package/dist/components/charts/lines/LineChartDefaultPro/LineChartDefaultPro.utils.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts +10 -11
- package/dist/components/charts/lines/LineChartDefaultPro/index.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartGroupedPro/LineChartGroupedPro.utils.d.ts +1 -1
- package/dist/components/charts/lines/LineChartGroupedPro/LineChartGroupedPro.utils.d.ts.map +1 -1
- package/dist/components/charts/lines/LineChartGroupedPro/index.d.ts +10 -11
- 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.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.map +1 -1
- package/dist/components/charts/pies/pies.types.d.ts +7 -8
- package/dist/components/charts/pies/pies.types.d.ts.map +1 -1
- package/dist/components/charts/shared/ChartCard/ChartCard.d.ts +7 -6
- package/dist/components/charts/shared/ChartCard/ChartCard.d.ts.map +1 -1
- package/dist/components/charts/tables/HeatMapPro/index.d.ts +3 -4
- package/dist/components/charts/tables/HeatMapPro/index.d.ts.map +1 -1
- package/dist/components/charts/tables/PivotTablePro/index.d.ts +2 -3
- package/dist/components/charts/tables/PivotTablePro/index.d.ts.map +1 -1
- package/dist/components/charts/tables/TableChartPaginated/index.d.ts +6 -8
- package/dist/components/charts/tables/TableChartPaginated/index.d.ts.map +1 -1
- package/dist/components/charts/tables/TableScrollable/index.d.ts +6 -8
- package/dist/components/charts/tables/TableScrollable/index.d.ts.map +1 -1
- package/dist/components/editors/ComparisonPeriodSelectFieldPro/index.d.ts +2 -3
- package/dist/components/editors/ComparisonPeriodSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/GranularitySelectFieldPro/GranularitySelectFieldPro.utils.d.ts +2 -10
- package/dist/components/editors/GranularitySelectFieldPro/GranularitySelectFieldPro.utils.d.ts.map +1 -1
- package/dist/components/editors/GranularitySelectFieldPro/index.d.ts +6 -6
- package/dist/components/editors/GranularitySelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/MultiSelectFieldPro/index.d.ts +4 -5
- package/dist/components/editors/MultiSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/SingleSelectFieldPro/index.d.ts +4 -5
- package/dist/components/editors/SingleSelectFieldPro/index.d.ts.map +1 -1
- package/dist/components/editors/dates/DateRangePickerCustomPro/index.d.ts +3 -4
- package/dist/components/editors/dates/DateRangePickerCustomPro/index.d.ts.map +1 -1
- package/dist/components/editors/dates/DateRangePickerPresetsPro/index.d.ts +3 -4
- package/dist/components/editors/dates/DateRangePickerPresetsPro/index.d.ts.map +1 -1
- package/dist/components/preview.data.constants.d.ts +18 -0
- package/dist/components/preview.data.constants.d.ts.map +1 -0
- package/dist/embeddable-components.json +40 -15
- package/dist/embeddable-theme-0137e.js +191 -191
- package/dist/{formatter.utils-pzrkapRL.js → formatter.utils-tS15PLXn.js} +2 -2
- package/dist/{formatter.utils-pzrkapRL.js.map → formatter.utils-tS15PLXn.js.map} +1 -1
- package/dist/index--Dbq1zrZ.js +31 -0
- package/dist/index--Dbq1zrZ.js.map +1 -0
- package/dist/index-9_2gSWFU.js +83 -0
- package/dist/index-9_2gSWFU.js.map +1 -0
- package/dist/index-APU1GD5M.js +166 -0
- package/dist/index-APU1GD5M.js.map +1 -0
- package/dist/index-BDRs__KW.js +113 -0
- package/dist/index-BDRs__KW.js.map +1 -0
- package/dist/index-BNZ1R6AK.js +84 -0
- package/dist/index-BNZ1R6AK.js.map +1 -0
- package/dist/index-BUk63KEk.js +87 -0
- package/dist/index-BUk63KEk.js.map +1 -0
- package/dist/index-BsWftigv.js +123 -0
- package/dist/index-BsWftigv.js.map +1 -0
- package/dist/index-C0pj3lvE.js +73 -0
- package/dist/index-C0pj3lvE.js.map +1 -0
- package/dist/{index-t3j3ZF8E.js → index-CBgU-nlM.js} +5 -5
- package/dist/index-CBgU-nlM.js.map +1 -0
- package/dist/{index-BjuvAqGb.js → index-CCdQwMMN.js} +6 -6
- package/dist/index-CCdQwMMN.js.map +1 -0
- package/dist/{index-BEYR5f2d.js → index-CDtF3MO_.js} +45 -36
- package/dist/index-CDtF3MO_.js.map +1 -0
- package/dist/{index-B6z6eyJE.js → index-CTC3YNmw.js} +5 -5
- package/dist/index-CTC3YNmw.js.map +1 -0
- package/dist/index-ClKPfSrQ.js +63 -0
- package/dist/index-ClKPfSrQ.js.map +1 -0
- package/dist/index-DbizaE6y.js +72 -0
- package/dist/index-DbizaE6y.js.map +1 -0
- package/dist/index-KxvT6RdK.js +63 -0
- package/dist/index-KxvT6RdK.js.map +1 -0
- package/dist/index-Nj7bJ8tg.js +161 -0
- package/dist/index-Nj7bJ8tg.js.map +1 -0
- package/dist/index-Y3ALLAIp.js +82 -0
- package/dist/index-Y3ALLAIp.js.map +1 -0
- package/dist/index-dv4kCcao.js +75 -0
- package/dist/index-dv4kCcao.js.map +1 -0
- package/dist/index-h3GKi8po.js +332 -0
- package/dist/index-h3GKi8po.js.map +1 -0
- package/dist/{index-DXVl7yqM.js → index-t4O5NpPA.js} +32 -31
- package/dist/index-t4O5NpPA.js.map +1 -0
- package/dist/index-t7YCtFvf.js +97 -0
- package/dist/index-t7YCtFvf.js.map +1 -0
- package/dist/index.js +29 -29
- package/dist/lines.utils-COGf_F0b.js +40 -0
- package/dist/lines.utils-COGf_F0b.js.map +1 -0
- package/dist/{pies.utils-dB2uJu3l.js → pies.utils-LUs6Ak8R.js} +12 -12
- package/dist/{pies.utils-dB2uJu3l.js.map → pies.utils-LUs6Ak8R.js.map} +1 -1
- package/dist/preview.data.constants-tDMYNi0n.js +71 -0
- package/dist/preview.data.constants-tDMYNi0n.js.map +1 -0
- package/dist/remarkable-pro.css +1 -1
- package/dist/{tables.utils-B8IT-c8T.js → tables.utils-DzHoBZUS.js} +4 -4
- package/dist/{tables.utils-B8IT-c8T.js.map → tables.utils-DzHoBZUS.js.map} +1 -1
- package/dist/{timeRange.utils-DIFMUM1C.js → timeRange.utils-Dz0fdD_b.js} +2 -2
- package/dist/{timeRange.utils-DIFMUM1C.js.map → timeRange.utils-Dz0fdD_b.js.map} +1 -1
- package/package.json +6 -6
- package/dist/ChartCard-B5IaBBTs.js +0 -124
- package/dist/ChartCard-B5IaBBTs.js.map +0 -1
- package/dist/bars.utils-Ck1w7NOo.js.map +0 -1
- package/dist/charts.utils-g6NE_Jo3.js.map +0 -1
- package/dist/index-1mMgdK6h.js +0 -62
- package/dist/index-1mMgdK6h.js.map +0 -1
- package/dist/index-4mTCN1nI.js +0 -82
- package/dist/index-4mTCN1nI.js.map +0 -1
- package/dist/index-53w_cRnE.js +0 -111
- package/dist/index-53w_cRnE.js.map +0 -1
- package/dist/index-7Vgn0Xsn.js +0 -81
- package/dist/index-7Vgn0Xsn.js.map +0 -1
- package/dist/index-B6z6eyJE.js.map +0 -1
- package/dist/index-BEYR5f2d.js.map +0 -1
- package/dist/index-BUWTt_8s.js +0 -95
- package/dist/index-BUWTt_8s.js.map +0 -1
- package/dist/index-BjuvAqGb.js.map +0 -1
- package/dist/index-Brl5KgVS.js +0 -83
- package/dist/index-Brl5KgVS.js.map +0 -1
- package/dist/index-C_ExmNre.js +0 -163
- package/dist/index-C_ExmNre.js.map +0 -1
- package/dist/index-Cdu6WHsa.js +0 -128
- package/dist/index-Cdu6WHsa.js.map +0 -1
- package/dist/index-Cr68Ha2O.js +0 -159
- package/dist/index-Cr68Ha2O.js.map +0 -1
- package/dist/index-DCVqVqS5.js +0 -71
- package/dist/index-DCVqVqS5.js.map +0 -1
- package/dist/index-DG77FUkS.js +0 -30
- package/dist/index-DG77FUkS.js.map +0 -1
- package/dist/index-DHYMtecu.js +0 -73
- package/dist/index-DHYMtecu.js.map +0 -1
- package/dist/index-DXVl7yqM.js.map +0 -1
- package/dist/index-DXkwaXvx.js +0 -330
- package/dist/index-DXkwaXvx.js.map +0 -1
- package/dist/index-Dy4jGo4x.js +0 -72
- package/dist/index-Dy4jGo4x.js.map +0 -1
- package/dist/index-JiDnk-OU.js +0 -62
- package/dist/index-JiDnk-OU.js.map +0 -1
- package/dist/index-T15Mxwpw.js +0 -84
- package/dist/index-T15Mxwpw.js.map +0 -1
- package/dist/index-t3j3ZF8E.js.map +0 -1
- package/dist/lines.utils-CFEUUo4k.js +0 -40
- package/dist/lines.utils-CFEUUo4k.js.map +0 -1
package/dist/TableScrollable.js
CHANGED
|
@@ -1,456 +1,459 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { a as
|
|
4
|
-
import { C as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { b as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { j as N, U as ie, V as se, l as F, m as ue } from "./Color.type.emb-sebikYGW.js";
|
|
2
|
+
import { useTheme as le, definePreview as ce, defineComponent as fe } from "@embeddable.com/react";
|
|
3
|
+
import { a as de, r as me, i as pe, b as w, s as M } from "./component.inputs.constants-Ds7YpNhT.js";
|
|
4
|
+
import { C as ge } from "./ChartCard-B3B1rFYh.js";
|
|
5
|
+
import { useState as z, useRef as R, useEffect as k, useCallback as he } from "react";
|
|
6
|
+
import { b as be, c as Ee } from "./tables.utils-DzHoBZUS.js";
|
|
7
|
+
import { p as x } from "./preview.data.constants-tDMYNi0n.js";
|
|
8
|
+
const P = 25, { getOwnPropertyNames: we, getOwnPropertySymbols: ye } = Object, { hasOwnProperty: je } = Object.prototype;
|
|
9
|
+
function U(n, e) {
|
|
10
|
+
return function(r, a, s) {
|
|
11
|
+
return n(r, a, s) && e(r, a, s);
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
|
-
function
|
|
14
|
-
return function(
|
|
15
|
-
if (!
|
|
16
|
-
return t
|
|
17
|
-
const { cache:
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
const c = t
|
|
22
|
-
return
|
|
14
|
+
function L(n) {
|
|
15
|
+
return function(t, r, a) {
|
|
16
|
+
if (!t || !r || typeof t != "object" || typeof r != "object")
|
|
17
|
+
return n(t, r, a);
|
|
18
|
+
const { cache: s } = a, u = s.get(t), o = s.get(r);
|
|
19
|
+
if (u && o)
|
|
20
|
+
return u === r && o === t;
|
|
21
|
+
s.set(t, r), s.set(r, t);
|
|
22
|
+
const c = n(t, r, a);
|
|
23
|
+
return s.delete(t), s.delete(r), c;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
26
|
+
function W(n) {
|
|
27
|
+
return we(n).concat(ye(n));
|
|
27
28
|
}
|
|
28
|
-
const
|
|
29
|
+
const Ce = (
|
|
29
30
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
30
|
-
Object.hasOwn || ((
|
|
31
|
-
),
|
|
31
|
+
Object.hasOwn || ((n, e) => je.call(n, e))
|
|
32
|
+
), Ae = "__v", qe = "__o", De = "_owner", { getOwnPropertyDescriptor: $, keys: G } = Object, C = (
|
|
32
33
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
33
|
-
Object.is || function(e,
|
|
34
|
-
return e ===
|
|
34
|
+
Object.is || function(e, t) {
|
|
35
|
+
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
35
36
|
}
|
|
36
37
|
);
|
|
37
|
-
function
|
|
38
|
-
return
|
|
38
|
+
function xe(n, e) {
|
|
39
|
+
return n === e;
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
41
|
+
function Oe(n, e) {
|
|
42
|
+
return n.byteLength === e.byteLength && S(new Uint8Array(n), new Uint8Array(e));
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
let
|
|
45
|
-
if (e.length !==
|
|
44
|
+
function Ie(n, e, t) {
|
|
45
|
+
let r = n.length;
|
|
46
|
+
if (e.length !== r)
|
|
46
47
|
return !1;
|
|
47
|
-
for (;
|
|
48
|
-
if (!
|
|
48
|
+
for (; r-- > 0; )
|
|
49
|
+
if (!t.equals(n[r], e[r], r, r, n, e, t))
|
|
49
50
|
return !1;
|
|
50
51
|
return !0;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
53
|
+
function Me(n, e) {
|
|
54
|
+
return n.byteLength === e.byteLength && S(new Uint8Array(n.buffer, n.byteOffset, n.byteLength), new Uint8Array(e.buffer, e.byteOffset, e.byteLength));
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
56
|
+
function Re(n, e) {
|
|
57
|
+
return C(n.getTime(), e.getTime());
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
59
|
+
function Le(n, e) {
|
|
60
|
+
return n.name === e.name && n.message === e.message && n.cause === e.cause && n.stack === e.stack;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
62
|
+
function K(n, e, t) {
|
|
63
|
+
const r = n.size;
|
|
64
|
+
if (r !== e.size)
|
|
64
65
|
return !1;
|
|
65
|
-
if (!
|
|
66
|
+
if (!r)
|
|
66
67
|
return !0;
|
|
67
|
-
const a = new Array(
|
|
68
|
-
let
|
|
69
|
-
for (; (
|
|
70
|
-
const
|
|
71
|
-
let
|
|
72
|
-
for (; (o =
|
|
68
|
+
const a = new Array(r), s = n.entries();
|
|
69
|
+
let u, o, c = 0;
|
|
70
|
+
for (; (u = s.next()) && !u.done; ) {
|
|
71
|
+
const p = e.entries();
|
|
72
|
+
let l = !1, g = 0;
|
|
73
|
+
for (; (o = p.next()) && !o.done; ) {
|
|
73
74
|
if (a[g]) {
|
|
74
75
|
g++;
|
|
75
76
|
continue;
|
|
76
77
|
}
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
|
|
78
|
+
const i = u.value, f = o.value;
|
|
79
|
+
if (t.equals(i[0], f[0], c, g, n, e, t) && t.equals(i[1], f[1], i[0], f[0], n, e, t)) {
|
|
80
|
+
l = a[g] = !0;
|
|
80
81
|
break;
|
|
81
82
|
}
|
|
82
83
|
g++;
|
|
83
84
|
}
|
|
84
|
-
if (!
|
|
85
|
+
if (!l)
|
|
85
86
|
return !1;
|
|
86
87
|
c++;
|
|
87
88
|
}
|
|
88
89
|
return !0;
|
|
89
90
|
}
|
|
90
|
-
function Se(
|
|
91
|
-
const
|
|
92
|
-
let a =
|
|
93
|
-
if (
|
|
91
|
+
function Se(n, e, t) {
|
|
92
|
+
const r = G(n);
|
|
93
|
+
let a = r.length;
|
|
94
|
+
if (G(e).length !== a)
|
|
94
95
|
return !1;
|
|
95
96
|
for (; a-- > 0; )
|
|
96
|
-
if (!
|
|
97
|
+
if (!Q(n, e, t, r[a]))
|
|
97
98
|
return !1;
|
|
98
99
|
return !0;
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
-
const
|
|
102
|
-
let a =
|
|
103
|
-
if (
|
|
101
|
+
function O(n, e, t) {
|
|
102
|
+
const r = W(n);
|
|
103
|
+
let a = r.length;
|
|
104
|
+
if (W(e).length !== a)
|
|
104
105
|
return !1;
|
|
105
|
-
let
|
|
106
|
+
let s, u, o;
|
|
106
107
|
for (; a-- > 0; )
|
|
107
|
-
if (
|
|
108
|
+
if (s = r[a], !Q(n, e, t, s) || (u = $(n, s), o = $(e, s), (u || o) && (!u || !o || u.configurable !== o.configurable || u.enumerable !== o.enumerable || u.writable !== o.writable)))
|
|
108
109
|
return !1;
|
|
109
110
|
return !0;
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
112
|
+
function ve(n, e) {
|
|
113
|
+
return C(n.valueOf(), e.valueOf());
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
115
|
+
function ke(n, e) {
|
|
116
|
+
return n.source === e.source && n.flags === e.flags;
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
118
|
+
function H(n, e, t) {
|
|
119
|
+
const r = n.size;
|
|
120
|
+
if (r !== e.size)
|
|
120
121
|
return !1;
|
|
121
|
-
if (!
|
|
122
|
+
if (!r)
|
|
122
123
|
return !0;
|
|
123
|
-
const a = new Array(
|
|
124
|
-
let
|
|
125
|
-
for (; (
|
|
124
|
+
const a = new Array(r), s = n.values();
|
|
125
|
+
let u, o;
|
|
126
|
+
for (; (u = s.next()) && !u.done; ) {
|
|
126
127
|
const c = e.values();
|
|
127
|
-
let
|
|
128
|
+
let p = !1, l = 0;
|
|
128
129
|
for (; (o = c.next()) && !o.done; ) {
|
|
129
|
-
if (!a[
|
|
130
|
-
|
|
130
|
+
if (!a[l] && t.equals(u.value, o.value, u.value, o.value, n, e, t)) {
|
|
131
|
+
p = a[l] = !0;
|
|
131
132
|
break;
|
|
132
133
|
}
|
|
133
|
-
|
|
134
|
+
l++;
|
|
134
135
|
}
|
|
135
|
-
if (!
|
|
136
|
+
if (!p)
|
|
136
137
|
return !1;
|
|
137
138
|
}
|
|
138
139
|
return !0;
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
-
let
|
|
142
|
-
if (e.byteLength !==
|
|
141
|
+
function S(n, e) {
|
|
142
|
+
let t = n.byteLength;
|
|
143
|
+
if (e.byteLength !== t || n.byteOffset !== e.byteOffset)
|
|
143
144
|
return !1;
|
|
144
|
-
for (;
|
|
145
|
-
if (t
|
|
145
|
+
for (; t-- > 0; )
|
|
146
|
+
if (n[t] !== e[t])
|
|
146
147
|
return !1;
|
|
147
148
|
return !0;
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
-
return
|
|
150
|
+
function Ue(n, e) {
|
|
151
|
+
return n.hostname === e.hostname && n.pathname === e.pathname && n.protocol === e.protocol && n.port === e.port && n.hash === e.hash && n.username === e.username && n.password === e.password;
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
-
return (
|
|
153
|
+
function Q(n, e, t, r) {
|
|
154
|
+
return (r === De || r === qe || r === Ae) && (n.$$typeof || e.$$typeof) ? !0 : Ce(e, r) && t.equals(n[r], e[r], r, r, n, e, t);
|
|
154
155
|
}
|
|
155
|
-
const
|
|
156
|
-
function
|
|
157
|
-
const e =
|
|
158
|
-
return function(
|
|
159
|
-
if (
|
|
156
|
+
const Pe = Object.prototype.toString;
|
|
157
|
+
function _e(n) {
|
|
158
|
+
const e = Ne(n), { areArraysEqual: t, areDatesEqual: r, areFunctionsEqual: a, areMapsEqual: s, areNumbersEqual: u, areObjectsEqual: o, areRegExpsEqual: c, areSetsEqual: p, getUnsupportedCustomComparator: l } = n;
|
|
159
|
+
return function(i, f, d) {
|
|
160
|
+
if (i === f)
|
|
160
161
|
return !0;
|
|
161
|
-
if (
|
|
162
|
+
if (i == null || f == null)
|
|
162
163
|
return !1;
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
164
|
+
const h = typeof i;
|
|
165
|
+
if (h !== typeof f)
|
|
165
166
|
return !1;
|
|
166
|
-
if (
|
|
167
|
-
return
|
|
168
|
-
const
|
|
169
|
-
if (
|
|
167
|
+
if (h !== "object")
|
|
168
|
+
return h === "number" || h === "bigint" ? u(i, f, d) : h === "function" ? a(i, f, d) : !1;
|
|
169
|
+
const m = i.constructor;
|
|
170
|
+
if (m !== f.constructor)
|
|
170
171
|
return !1;
|
|
171
|
-
if (
|
|
172
|
-
return o(
|
|
173
|
-
if (
|
|
174
|
-
return
|
|
175
|
-
if (
|
|
176
|
-
return
|
|
177
|
-
if (
|
|
178
|
-
return c(
|
|
179
|
-
if (
|
|
180
|
-
return i
|
|
181
|
-
if (
|
|
182
|
-
return
|
|
183
|
-
if (
|
|
172
|
+
if (m === Object)
|
|
173
|
+
return o(i, f, d);
|
|
174
|
+
if (m === Array)
|
|
175
|
+
return t(i, f, d);
|
|
176
|
+
if (m === Date)
|
|
177
|
+
return r(i, f, d);
|
|
178
|
+
if (m === RegExp)
|
|
179
|
+
return c(i, f, d);
|
|
180
|
+
if (m === Map)
|
|
181
|
+
return s(i, f, d);
|
|
182
|
+
if (m === Set)
|
|
183
|
+
return p(i, f, d);
|
|
184
|
+
if (m === Promise)
|
|
184
185
|
return !1;
|
|
185
|
-
if (Array.isArray(
|
|
186
|
-
return
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
return
|
|
190
|
-
const
|
|
191
|
-
return
|
|
186
|
+
if (Array.isArray(i))
|
|
187
|
+
return t(i, f, d);
|
|
188
|
+
const E = Pe.call(i), A = e[E];
|
|
189
|
+
if (A)
|
|
190
|
+
return A(i, f, d);
|
|
191
|
+
const I = l && l(i, f, d, E);
|
|
192
|
+
return I ? I(i, f, d) : !1;
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
-
let
|
|
196
|
-
areArrayBuffersEqual:
|
|
197
|
-
areArraysEqual:
|
|
198
|
-
areDataViewsEqual:
|
|
199
|
-
areDatesEqual:
|
|
200
|
-
areErrorsEqual:
|
|
201
|
-
areFunctionsEqual:
|
|
202
|
-
areMapsEqual:
|
|
203
|
-
areNumbersEqual:
|
|
204
|
-
areObjectsEqual:
|
|
205
|
-
arePrimitiveWrappersEqual:
|
|
206
|
-
areRegExpsEqual:
|
|
207
|
-
areSetsEqual:
|
|
208
|
-
areTypedArraysEqual:
|
|
209
|
-
areUrlsEqual:
|
|
195
|
+
function Be({ circular: n, createCustomConfig: e, strict: t }) {
|
|
196
|
+
let r = {
|
|
197
|
+
areArrayBuffersEqual: Oe,
|
|
198
|
+
areArraysEqual: t ? O : Ie,
|
|
199
|
+
areDataViewsEqual: Me,
|
|
200
|
+
areDatesEqual: Re,
|
|
201
|
+
areErrorsEqual: Le,
|
|
202
|
+
areFunctionsEqual: xe,
|
|
203
|
+
areMapsEqual: t ? U(K, O) : K,
|
|
204
|
+
areNumbersEqual: C,
|
|
205
|
+
areObjectsEqual: t ? O : Se,
|
|
206
|
+
arePrimitiveWrappersEqual: ve,
|
|
207
|
+
areRegExpsEqual: ke,
|
|
208
|
+
areSetsEqual: t ? U(H, O) : H,
|
|
209
|
+
areTypedArraysEqual: t ? U(S, O) : S,
|
|
210
|
+
areUrlsEqual: Ue,
|
|
210
211
|
getUnsupportedCustomComparator: void 0
|
|
211
212
|
};
|
|
212
|
-
if (e && (
|
|
213
|
-
const a =
|
|
214
|
-
|
|
213
|
+
if (e && (r = Object.assign({}, r, e(r))), n) {
|
|
214
|
+
const a = L(r.areArraysEqual), s = L(r.areMapsEqual), u = L(r.areObjectsEqual), o = L(r.areSetsEqual);
|
|
215
|
+
r = Object.assign({}, r, {
|
|
215
216
|
areArraysEqual: a,
|
|
216
|
-
areMapsEqual:
|
|
217
|
-
areObjectsEqual:
|
|
217
|
+
areMapsEqual: s,
|
|
218
|
+
areObjectsEqual: u,
|
|
218
219
|
areSetsEqual: o
|
|
219
220
|
});
|
|
220
221
|
}
|
|
221
|
-
return
|
|
222
|
+
return r;
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
-
return function(e,
|
|
225
|
-
return
|
|
224
|
+
function Ve(n) {
|
|
225
|
+
return function(e, t, r, a, s, u, o) {
|
|
226
|
+
return n(e, t, o);
|
|
226
227
|
};
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
-
if (
|
|
229
|
+
function Te({ circular: n, comparator: e, createState: t, equals: r, strict: a }) {
|
|
230
|
+
if (t)
|
|
230
231
|
return function(o, c) {
|
|
231
|
-
const { cache:
|
|
232
|
+
const { cache: p = n ? /* @__PURE__ */ new WeakMap() : void 0, meta: l } = t();
|
|
232
233
|
return e(o, c, {
|
|
233
|
-
cache:
|
|
234
|
-
equals:
|
|
235
|
-
meta:
|
|
234
|
+
cache: p,
|
|
235
|
+
equals: r,
|
|
236
|
+
meta: l,
|
|
236
237
|
strict: a
|
|
237
238
|
});
|
|
238
239
|
};
|
|
239
|
-
if (
|
|
240
|
+
if (n)
|
|
240
241
|
return function(o, c) {
|
|
241
242
|
return e(o, c, {
|
|
242
243
|
cache: /* @__PURE__ */ new WeakMap(),
|
|
243
|
-
equals:
|
|
244
|
+
equals: r,
|
|
244
245
|
meta: void 0,
|
|
245
246
|
strict: a
|
|
246
247
|
});
|
|
247
248
|
};
|
|
248
|
-
const
|
|
249
|
+
const s = {
|
|
249
250
|
cache: void 0,
|
|
250
|
-
equals:
|
|
251
|
+
equals: r,
|
|
251
252
|
meta: void 0,
|
|
252
253
|
strict: a
|
|
253
254
|
};
|
|
254
255
|
return function(o, c) {
|
|
255
|
-
return e(o, c,
|
|
256
|
+
return e(o, c, s);
|
|
256
257
|
};
|
|
257
258
|
}
|
|
258
|
-
function
|
|
259
|
+
function Ne({ areArrayBuffersEqual: n, areArraysEqual: e, areDataViewsEqual: t, areDatesEqual: r, areErrorsEqual: a, areFunctionsEqual: s, areMapsEqual: u, areNumbersEqual: o, areObjectsEqual: c, arePrimitiveWrappersEqual: p, areRegExpsEqual: l, areSetsEqual: g, areTypedArraysEqual: i, areUrlsEqual: f }) {
|
|
259
260
|
return {
|
|
260
261
|
"[object Arguments]": c,
|
|
261
262
|
"[object Array]": e,
|
|
262
|
-
"[object ArrayBuffer]":
|
|
263
|
-
"[object AsyncGeneratorFunction]":
|
|
263
|
+
"[object ArrayBuffer]": n,
|
|
264
|
+
"[object AsyncGeneratorFunction]": s,
|
|
264
265
|
"[object BigInt]": o,
|
|
265
|
-
"[object BigInt64Array]":
|
|
266
|
-
"[object BigUint64Array]":
|
|
267
|
-
"[object Boolean]":
|
|
268
|
-
"[object DataView]":
|
|
269
|
-
"[object Date]":
|
|
266
|
+
"[object BigInt64Array]": i,
|
|
267
|
+
"[object BigUint64Array]": i,
|
|
268
|
+
"[object Boolean]": p,
|
|
269
|
+
"[object DataView]": t,
|
|
270
|
+
"[object Date]": r,
|
|
270
271
|
// If an error tag, it should be tested explicitly. Like RegExp, the properties are not
|
|
271
272
|
// enumerable, and therefore will give false positives if tested like a standard object.
|
|
272
273
|
"[object Error]": a,
|
|
273
|
-
"[object Float16Array]":
|
|
274
|
-
"[object Float32Array]":
|
|
275
|
-
"[object Float64Array]":
|
|
276
|
-
"[object Function]":
|
|
277
|
-
"[object GeneratorFunction]":
|
|
278
|
-
"[object Int8Array]":
|
|
279
|
-
"[object Int16Array]":
|
|
280
|
-
"[object Int32Array]":
|
|
281
|
-
"[object Map]":
|
|
282
|
-
"[object Number]":
|
|
283
|
-
"[object Object]": (
|
|
274
|
+
"[object Float16Array]": i,
|
|
275
|
+
"[object Float32Array]": i,
|
|
276
|
+
"[object Float64Array]": i,
|
|
277
|
+
"[object Function]": s,
|
|
278
|
+
"[object GeneratorFunction]": s,
|
|
279
|
+
"[object Int8Array]": i,
|
|
280
|
+
"[object Int16Array]": i,
|
|
281
|
+
"[object Int32Array]": i,
|
|
282
|
+
"[object Map]": u,
|
|
283
|
+
"[object Number]": p,
|
|
284
|
+
"[object Object]": (d, h, m) => (
|
|
284
285
|
// The exception for value comparison is custom `Promise`-like class instances. These should
|
|
285
286
|
// be treated the same as standard `Promise` objects, which means strict equality, and if
|
|
286
287
|
// it reaches this point then that strict equality comparison has already failed.
|
|
287
|
-
typeof
|
|
288
|
+
typeof d.then != "function" && typeof h.then != "function" && c(d, h, m)
|
|
288
289
|
),
|
|
289
290
|
// For RegExp, the properties are not enumerable, and therefore will give false positives if
|
|
290
291
|
// tested like a standard object.
|
|
291
|
-
"[object RegExp]":
|
|
292
|
+
"[object RegExp]": l,
|
|
292
293
|
"[object Set]": g,
|
|
293
|
-
"[object String]":
|
|
294
|
+
"[object String]": p,
|
|
294
295
|
"[object URL]": f,
|
|
295
|
-
"[object Uint8Array]":
|
|
296
|
-
"[object Uint8ClampedArray]":
|
|
297
|
-
"[object Uint16Array]":
|
|
298
|
-
"[object Uint32Array]":
|
|
296
|
+
"[object Uint8Array]": i,
|
|
297
|
+
"[object Uint8ClampedArray]": i,
|
|
298
|
+
"[object Uint16Array]": i,
|
|
299
|
+
"[object Uint32Array]": i
|
|
299
300
|
};
|
|
300
301
|
}
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
const Fe = y();
|
|
303
|
+
y({ strict: !0 });
|
|
304
|
+
y({ circular: !0 });
|
|
305
|
+
y({
|
|
305
306
|
circular: !0,
|
|
306
307
|
strict: !0
|
|
307
308
|
});
|
|
308
|
-
|
|
309
|
-
createInternalComparator: () =>
|
|
309
|
+
y({
|
|
310
|
+
createInternalComparator: () => C
|
|
310
311
|
});
|
|
311
|
-
|
|
312
|
+
y({
|
|
312
313
|
strict: !0,
|
|
313
|
-
createInternalComparator: () =>
|
|
314
|
+
createInternalComparator: () => C
|
|
314
315
|
});
|
|
315
|
-
|
|
316
|
+
y({
|
|
316
317
|
circular: !0,
|
|
317
|
-
createInternalComparator: () =>
|
|
318
|
+
createInternalComparator: () => C
|
|
318
319
|
});
|
|
319
|
-
|
|
320
|
+
y({
|
|
320
321
|
circular: !0,
|
|
321
|
-
createInternalComparator: () =>
|
|
322
|
+
createInternalComparator: () => C,
|
|
322
323
|
strict: !0
|
|
323
324
|
});
|
|
324
|
-
function
|
|
325
|
-
const { circular: e = !1, createInternalComparator:
|
|
326
|
-
return
|
|
325
|
+
function y(n = {}) {
|
|
326
|
+
const { circular: e = !1, createInternalComparator: t, createState: r, strict: a = !1 } = n, s = Be(n), u = _e(s), o = t ? t(u) : Ve(u);
|
|
327
|
+
return Te({ circular: e, comparator: u, createState: r, equals: o, strict: a });
|
|
327
328
|
}
|
|
328
|
-
let
|
|
329
|
-
const
|
|
330
|
-
const e =
|
|
331
|
-
|
|
332
|
-
const [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
329
|
+
let Z;
|
|
330
|
+
const X = (n) => {
|
|
331
|
+
const e = le();
|
|
332
|
+
de(e);
|
|
333
|
+
const [t, r] = z(!1), [a, s] = z([]), { description: u, title: o } = me(n), {
|
|
334
|
+
hideMenu: c,
|
|
335
|
+
dataset: p,
|
|
336
|
+
results: l,
|
|
337
|
+
allResults: g,
|
|
338
|
+
dimensionsAndMeasures: i,
|
|
339
|
+
displayNullAs: f,
|
|
340
|
+
showIndex: d,
|
|
341
|
+
clickDimension: h,
|
|
342
|
+
state: m,
|
|
343
|
+
setState: E,
|
|
344
|
+
onRowClicked: A
|
|
345
|
+
} = n, I = be({ dimensionsAndMeasures: i, displayNullAs: f }, e), v = (l == null ? void 0 : l.data) ?? [], _ = R(null), B = R(null), q = R(!0), V = R(null);
|
|
346
|
+
k(() => {
|
|
347
|
+
Fe(p.variableValues, V.current) || (q.current = !0, V.current = p.variableValues, E == null || E((b) => ({
|
|
348
|
+
...b,
|
|
347
349
|
page: 0
|
|
348
350
|
})));
|
|
349
|
-
}, [
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
352
|
-
if (
|
|
353
|
-
|
|
351
|
+
}, [p.variableValues]), k(() => {
|
|
352
|
+
var b;
|
|
353
|
+
if (l != null && l.data) {
|
|
354
|
+
if (q.current) {
|
|
355
|
+
s([...v]), q.current = !1, (b = B.current) == null || b.scrollToTop("smooth");
|
|
354
356
|
return;
|
|
355
357
|
}
|
|
356
|
-
|
|
358
|
+
s((j) => [...j, ...v]);
|
|
357
359
|
}
|
|
358
|
-
}, [
|
|
359
|
-
const
|
|
360
|
-
(
|
|
361
|
-
|
|
362
|
-
...
|
|
363
|
-
...
|
|
360
|
+
}, [v]);
|
|
361
|
+
const D = he(
|
|
362
|
+
(b) => {
|
|
363
|
+
E == null || E((j) => ({
|
|
364
|
+
...j,
|
|
365
|
+
...b
|
|
364
366
|
}));
|
|
365
367
|
},
|
|
366
|
-
[
|
|
367
|
-
),
|
|
368
|
-
|
|
368
|
+
[E]
|
|
369
|
+
), Y = (b) => {
|
|
370
|
+
r(!0), D({ isLoadingDownloadData: !0 }), Z = (j) => b({
|
|
369
371
|
title: o,
|
|
370
|
-
data:
|
|
371
|
-
dimensionsAndMeasures:
|
|
372
|
-
containerRef:
|
|
372
|
+
data: j,
|
|
373
|
+
dimensionsAndMeasures: i,
|
|
374
|
+
containerRef: _,
|
|
373
375
|
theme: e
|
|
374
376
|
});
|
|
375
|
-
},
|
|
376
|
-
var
|
|
377
|
-
if (!
|
|
378
|
-
const
|
|
379
|
-
|
|
377
|
+
}, ee = (b) => {
|
|
378
|
+
var T;
|
|
379
|
+
if (!h) return;
|
|
380
|
+
const j = (T = a[b]) == null ? void 0 : T[h.name];
|
|
381
|
+
A == null || A(j);
|
|
380
382
|
};
|
|
381
|
-
|
|
382
|
-
if (
|
|
383
|
-
if (!
|
|
383
|
+
k(() => {
|
|
384
|
+
if (t) {
|
|
385
|
+
if (!g || g.isLoading)
|
|
384
386
|
return;
|
|
385
|
-
|
|
387
|
+
Z(g.data), r(!1), D({ isLoadingDownloadData: !1 });
|
|
386
388
|
}
|
|
387
|
-
}, [
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
return /* @__PURE__ */
|
|
394
|
-
|
|
389
|
+
}, [t, g, D]);
|
|
390
|
+
const ne = () => {
|
|
391
|
+
l.isLoading || D({ page: ((m == null ? void 0 : m.page) ?? 0) + 1 });
|
|
392
|
+
}, re = (b) => {
|
|
393
|
+
q.current = !0, D({ sort: b, page: 0 });
|
|
394
|
+
}, te = (l == null ? void 0 : l.data) && l.data.length === P, oe = !!(l != null && l.isLoading || g != null && g.isLoading), ae = (l == null ? void 0 : l.isLoading) && !q.current;
|
|
395
|
+
return /* @__PURE__ */ N.jsx(
|
|
396
|
+
ge,
|
|
395
397
|
{
|
|
396
|
-
ref:
|
|
398
|
+
ref: _,
|
|
397
399
|
title: o,
|
|
398
|
-
|
|
400
|
+
description: u,
|
|
399
401
|
data: {
|
|
400
|
-
isLoading:
|
|
402
|
+
isLoading: oe,
|
|
401
403
|
data: a
|
|
402
404
|
},
|
|
403
|
-
dimensionsAndMeasures:
|
|
404
|
-
errorMessage:
|
|
405
|
-
onCustomDownload:
|
|
406
|
-
|
|
407
|
-
|
|
405
|
+
dimensionsAndMeasures: i,
|
|
406
|
+
errorMessage: l == null ? void 0 : l.error,
|
|
407
|
+
onCustomDownload: Y,
|
|
408
|
+
hideMenu: c,
|
|
409
|
+
children: /* @__PURE__ */ N.jsx(
|
|
410
|
+
ie,
|
|
408
411
|
{
|
|
409
|
-
ref:
|
|
410
|
-
hasMoreData:
|
|
411
|
-
onRowIndexClick:
|
|
412
|
-
headers:
|
|
413
|
-
rows:
|
|
414
|
-
showIndex:
|
|
415
|
-
sort:
|
|
416
|
-
isLoading:
|
|
417
|
-
loadingLabel:
|
|
418
|
-
onNextPage:
|
|
419
|
-
onSortChange:
|
|
412
|
+
ref: B,
|
|
413
|
+
hasMoreData: te,
|
|
414
|
+
onRowIndexClick: ee,
|
|
415
|
+
headers: I,
|
|
416
|
+
rows: Ee({ rows: a, clickDimension: h }),
|
|
417
|
+
showIndex: d,
|
|
418
|
+
sort: m == null ? void 0 : m.sort,
|
|
419
|
+
isLoading: ae,
|
|
420
|
+
loadingLabel: pe.t("common.loading"),
|
|
421
|
+
onNextPage: ne,
|
|
422
|
+
onSortChange: re
|
|
420
423
|
}
|
|
421
424
|
)
|
|
422
425
|
}
|
|
423
426
|
);
|
|
424
|
-
},
|
|
427
|
+
}, ze = {
|
|
425
428
|
name: "TableScrollable",
|
|
426
429
|
label: "Table Chart - Scrollable",
|
|
427
430
|
category: "Table Charts",
|
|
428
431
|
inputs: [
|
|
429
|
-
|
|
432
|
+
w.dataset,
|
|
430
433
|
{
|
|
431
|
-
...
|
|
434
|
+
...w.dimensionsAndMeasures,
|
|
432
435
|
label: "Columns",
|
|
433
436
|
inputs: [
|
|
434
|
-
...
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
...w.dimensionsAndMeasures.inputs,
|
|
438
|
+
M.width,
|
|
439
|
+
M.align,
|
|
440
|
+
M.displayFormat,
|
|
441
|
+
M.tableCellStyle
|
|
439
442
|
]
|
|
440
443
|
},
|
|
441
|
-
|
|
442
|
-
|
|
444
|
+
w.title,
|
|
445
|
+
w.description,
|
|
443
446
|
{
|
|
444
|
-
...
|
|
447
|
+
...w.boolean,
|
|
445
448
|
name: "showIndex",
|
|
446
449
|
label: "Show index column",
|
|
447
450
|
defaultValue: !0,
|
|
448
451
|
category: "Component Settings"
|
|
449
452
|
},
|
|
450
|
-
|
|
451
|
-
{ ...
|
|
453
|
+
w.displayNullAs,
|
|
454
|
+
{ ...w.maxResults, label: "Max results to download" },
|
|
452
455
|
{
|
|
453
|
-
...
|
|
456
|
+
...w.dimensionSimple,
|
|
454
457
|
label: "Dimension to set on click",
|
|
455
458
|
name: "clickDimension",
|
|
456
459
|
category: "Data mapping for interactions",
|
|
@@ -470,60 +473,66 @@ const Ve = (t) => {
|
|
|
470
473
|
]
|
|
471
474
|
}
|
|
472
475
|
]
|
|
473
|
-
},
|
|
476
|
+
}, Qe = ce(X, {
|
|
477
|
+
dimensionsAndMeasures: [x.dimension, x.dimensionGroup, x.measure],
|
|
478
|
+
results: x.results1Measure2Dimensions,
|
|
479
|
+
dataset: x.dataset,
|
|
480
|
+
hideMenu: !0
|
|
481
|
+
}), J = {
|
|
474
482
|
page: 0,
|
|
475
483
|
sort: void 0,
|
|
476
484
|
isLoadingDownloadData: !1
|
|
477
|
-
},
|
|
485
|
+
}, Xe = fe(X, ze, {
|
|
478
486
|
/* @ts-expect-error - to be fixed in @embeddable.com/react */
|
|
479
|
-
props: (
|
|
480
|
-
const
|
|
487
|
+
props: (n, [e, t]) => {
|
|
488
|
+
const r = n.dimensionsAndMeasures.find(
|
|
481
489
|
(o) => {
|
|
482
490
|
var c;
|
|
483
491
|
return o.name === ((c = e == null ? void 0 : e.sort) == null ? void 0 : c.id);
|
|
484
492
|
}
|
|
485
|
-
), a =
|
|
493
|
+
), a = r && (e != null && e.sort) ? [
|
|
486
494
|
{
|
|
487
|
-
property:
|
|
495
|
+
property: r,
|
|
488
496
|
direction: e.sort.direction
|
|
489
497
|
}
|
|
490
|
-
] : [],
|
|
498
|
+
] : [], s = n.dimensionsAndMeasures.some(
|
|
491
499
|
(o) => {
|
|
492
500
|
var c;
|
|
493
|
-
return o.name === ((c =
|
|
501
|
+
return o.name === ((c = n.clickDimension) == null ? void 0 : c.name);
|
|
494
502
|
}
|
|
495
|
-
),
|
|
496
|
-
...
|
|
497
|
-
...
|
|
503
|
+
), u = [
|
|
504
|
+
...n.dimensionsAndMeasures,
|
|
505
|
+
...s ? [] : [n.clickDimension]
|
|
498
506
|
];
|
|
499
507
|
return {
|
|
500
|
-
...
|
|
501
|
-
state:
|
|
508
|
+
...n,
|
|
509
|
+
state: ue(J, e ?? {}),
|
|
502
510
|
// Merge with default state
|
|
503
|
-
setState:
|
|
504
|
-
results:
|
|
505
|
-
from:
|
|
506
|
-
select:
|
|
507
|
-
offset: (e != null && e.page ? e.page :
|
|
508
|
-
limit:
|
|
511
|
+
setState: t,
|
|
512
|
+
results: F({
|
|
513
|
+
from: n.dataset,
|
|
514
|
+
select: u,
|
|
515
|
+
offset: (e != null && e.page ? e.page : J.page) * P,
|
|
516
|
+
limit: P,
|
|
509
517
|
orderBy: a
|
|
510
518
|
}),
|
|
511
|
-
allResults: e != null && e.isLoadingDownloadData ?
|
|
512
|
-
from:
|
|
513
|
-
select:
|
|
519
|
+
allResults: e != null && e.isLoadingDownloadData ? F({
|
|
520
|
+
from: n.dataset,
|
|
521
|
+
select: n.dimensionsAndMeasures,
|
|
514
522
|
orderBy: a,
|
|
515
|
-
limit:
|
|
523
|
+
limit: n.maxResults
|
|
516
524
|
}) : void 0
|
|
517
525
|
};
|
|
518
526
|
},
|
|
519
527
|
events: {
|
|
520
|
-
onRowClicked: (
|
|
521
|
-
rowDimensionValue:
|
|
528
|
+
onRowClicked: (n) => ({
|
|
529
|
+
rowDimensionValue: n !== void 0 ? n : se.noFilter()
|
|
522
530
|
})
|
|
523
531
|
}
|
|
524
532
|
});
|
|
525
533
|
export {
|
|
526
|
-
|
|
527
|
-
|
|
534
|
+
Xe as default,
|
|
535
|
+
ze as meta,
|
|
536
|
+
Qe as preview
|
|
528
537
|
};
|
|
529
538
|
//# sourceMappingURL=TableScrollable.js.map
|