@embeddable.com/remarkable-pro 0.0.3 → 0.0.5
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/README.md +68 -17
- package/dist/BarChartDefaultHorizontalPro.js +25 -85
- package/dist/BarChartDefaultHorizontalPro.js.map +1 -1
- package/dist/BarChartDefaultPro.js +25 -84
- package/dist/BarChartDefaultPro.js.map +1 -1
- package/dist/BarChartGroupedHorizontalPro.js +33 -102
- package/dist/BarChartGroupedHorizontalPro.js.map +1 -1
- package/dist/BarChartGroupedPro.js +27 -95
- package/dist/BarChartGroupedPro.js.map +1 -1
- package/dist/BarChartStackedHorizontalPro.js +28 -98
- package/dist/BarChartStackedHorizontalPro.js.map +1 -1
- package/dist/BarChartStackedPro.js +28 -97
- package/dist/BarChartStackedPro.js.map +1 -1
- package/dist/{ChartCard-CsKQOusx.js → ChartCard-DPqhmLst.js} +19 -19
- package/dist/{ChartCard-CsKQOusx.js.map → ChartCard-DPqhmLst.js.map} +1 -1
- package/dist/{Color.type.emb-9H0O-uuD.js → Color.type.emb-WlORCMYm.js} +2 -2
- package/dist/{Color.type.emb-9H0O-uuD.js.map → Color.type.emb-WlORCMYm.js.map} +1 -1
- package/dist/ColorEditor.js +2 -2
- package/dist/{ComparisonPeriod.type.emb-C3XjaFoD.js → ComparisonPeriod.type.emb-2GetmOu1.js} +2 -2
- package/dist/{ComparisonPeriod.type.emb-C3XjaFoD.js.map → ComparisonPeriod.type.emb-2GetmOu1.js.map} +1 -1
- package/dist/ComparisonPeriodSelectFieldPro.js +17 -58
- package/dist/ComparisonPeriodSelectFieldPro.js.map +1 -1
- package/dist/DateRangeSelectFieldPro.js +3 -3
- package/dist/DonutChartPro.js +3 -3
- package/dist/DonutLabelChartPro.js +3 -3
- package/dist/EditorCard-BaL9GbQ9.js +32 -0
- package/dist/{EditorCard-BMEwnQuU.js.map → EditorCard-BaL9GbQ9.js.map} +1 -1
- package/dist/HeatMapPro.js +26 -93
- package/dist/HeatMapPro.js.map +1 -1
- package/dist/KpiChartNumberComparisonPro.js +25 -94
- package/dist/KpiChartNumberComparisonPro.js.map +1 -1
- package/dist/KpiChartNumberPro.js +14 -31
- package/dist/KpiChartNumberPro.js.map +1 -1
- package/dist/LineChartComparisonDefaultPro.js +59 -370
- package/dist/LineChartComparisonDefaultPro.js.map +1 -1
- package/dist/LineChartDefaultPro.js +31 -179
- package/dist/LineChartDefaultPro.js.map +1 -1
- package/dist/LineChartGroupedPro.js +30 -174
- package/dist/LineChartGroupedPro.js.map +1 -1
- package/dist/MultiSelectFieldPro.js +3 -3
- package/dist/PieChartPro.js +3 -3
- package/dist/PivotTablePro.js +23 -86
- package/dist/PivotTablePro.js.map +1 -1
- package/dist/SingleSelectFieldPro.js +3 -3
- package/dist/TableChartPaginated.js +37 -172
- package/dist/TableChartPaginated.js.map +1 -1
- package/dist/{bars.utils-BU_k5fia.js → bars.utils-aO0eZx5e.js} +7 -7
- package/dist/{bars.utils-BU_k5fia.js.map → bars.utils-aO0eZx5e.js.map} +1 -1
- package/dist/{charts.utils-rO92wRxO.js → charts.utils-CZnXoUqF.js} +4 -4
- package/dist/{charts.utils-rO92wRxO.js.map → charts.utils-CZnXoUqF.js.map} +1 -1
- package/dist/{component.constants-uP1WYyUb.js → component.constants-C7cqSNbp.js} +2 -2
- package/dist/{component.constants-uP1WYyUb.js.map → component.constants-C7cqSNbp.js.map} +1 -1
- package/dist/components/charts/tables/HeatMapPro/index.d.ts.map +1 -1
- package/dist/components/charts/tables/PivotTablePro/index.d.ts.map +1 -1
- package/dist/components/charts/tables/tables.hooks.d.ts +17 -0
- package/dist/components/charts/tables/tables.hooks.d.ts.map +1 -0
- package/dist/embeddable-components.json +13 -13
- package/dist/{formatter.utils-CeEdL8uQ.js → formatter.utils-CfrcSyDX.js} +2 -2
- package/dist/{formatter.utils-CeEdL8uQ.js.map → formatter.utils-CfrcSyDX.js.map} +1 -1
- package/dist/{index-Dwl9clc9.js → index-2EH0Voxh.js} +5 -5
- package/dist/{index-Dwl9clc9.js.map → index-2EH0Voxh.js.map} +1 -1
- package/dist/index-85Nzu6wl.js +95 -0
- package/dist/index-85Nzu6wl.js.map +1 -0
- package/dist/index-9GEogpMN.js +82 -0
- package/dist/index-9GEogpMN.js.map +1 -0
- package/dist/{index-BWpUwKTH.js → index-BAomPP89.js} +5 -5
- package/dist/{index-BWpUwKTH.js.map → index-BAomPP89.js.map} +1 -1
- package/dist/{index-DLFOG9Ar.js → index-BQf2W8Zn.js} +6 -6
- package/dist/{index-DLFOG9Ar.js.map → index-BQf2W8Zn.js.map} +1 -1
- package/dist/index-BSc_Axva.js +326 -0
- package/dist/index-BSc_Axva.js.map +1 -0
- package/dist/index-BjdJeBiT.js +73 -0
- package/dist/index-BjdJeBiT.js.map +1 -0
- package/dist/index-C1EIos9z.js +159 -0
- package/dist/index-C1EIos9z.js.map +1 -0
- package/dist/index-C_F-ZHJz.js +163 -0
- package/dist/index-C_F-ZHJz.js.map +1 -0
- package/dist/index-Cc-mtCkt.js +83 -0
- package/dist/index-Cc-mtCkt.js.map +1 -0
- package/dist/index-CvmifdRS.js +72 -0
- package/dist/index-CvmifdRS.js.map +1 -0
- package/dist/index-D1L8EF47.js +82 -0
- package/dist/index-D1L8EF47.js.map +1 -0
- package/dist/{index-DedIqjbn.js → index-D8D1R5YG.js} +17 -18
- package/dist/{index-DedIqjbn.js.map → index-D8D1R5YG.js.map} +1 -1
- package/dist/index-DGz1wzRd.js +81 -0
- package/dist/index-DGz1wzRd.js.map +1 -0
- package/dist/index-DORMEL0e.js +82 -0
- package/dist/index-DORMEL0e.js.map +1 -0
- package/dist/index-DTuHmdil.js +89 -0
- package/dist/index-DTuHmdil.js.map +1 -0
- package/dist/index-DZU1PTjb.js +148 -0
- package/dist/index-DZU1PTjb.js.map +1 -0
- package/dist/index-DaeSYZkv.js +30 -0
- package/dist/index-DaeSYZkv.js.map +1 -0
- package/dist/{index-Brb617sy.js → index-Dhwlo6sD.js} +5 -5
- package/dist/{index-Brb617sy.js.map → index-Dhwlo6sD.js.map} +1 -1
- package/dist/{index-B8bT85NR.js → index-L9ViZuWi.js} +5 -5
- package/dist/{index-B8bT85NR.js.map → index-L9ViZuWi.js.map} +1 -1
- package/dist/{index-DrosyYQD.js → index-WCMGd0_l.js} +15 -14
- package/dist/{index-DrosyYQD.js.map → index-WCMGd0_l.js.map} +1 -1
- package/dist/index-wy7P41uG.js +56 -0
- package/dist/index-wy7P41uG.js.map +1 -0
- package/dist/index.d.ts +27 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +117 -74
- package/dist/index.js.map +1 -1
- package/dist/{pies.utils-Dap7Duqb.js → pies.utils-DlK4ABKU.js} +5 -5
- package/dist/{pies.utils-Dap7Duqb.js.map → pies.utils-DlK4ABKU.js.map} +1 -1
- package/dist/remarkable-pro.css +1 -1
- package/dist/tables.hooks-BQdyUxau.js +45 -0
- package/dist/tables.hooks-BQdyUxau.js.map +1 -0
- package/dist/{timeRange.utils-J3a4XL64.js → timeRange.utils-CWl9EGOR.js} +2 -2
- package/dist/{timeRange.utils-J3a4XL64.js.map → timeRange.utils-CWl9EGOR.js.map} +1 -1
- package/package.json +2 -2
- package/dist/EditorCard-BMEwnQuU.js +0 -32
|
@@ -1,96 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { u as Y } from "./charts.fillGaps.hooks-YayOXVmt.js";
|
|
7
|
-
const Z = (e) => {
|
|
8
|
-
var n, l;
|
|
9
|
-
const a = P();
|
|
10
|
-
M(a);
|
|
11
|
-
const {
|
|
12
|
-
description: d,
|
|
13
|
-
groupBy: i,
|
|
14
|
-
measure: s,
|
|
15
|
-
reverseXAxis: x,
|
|
16
|
-
showLegend: p,
|
|
17
|
-
showLogarithmicScale: c,
|
|
18
|
-
showTooltips: h,
|
|
19
|
-
showTotalLabels: g,
|
|
20
|
-
showValueLabels: b,
|
|
21
|
-
title: C,
|
|
22
|
-
xAxis: r,
|
|
23
|
-
xAxisLabel: A,
|
|
24
|
-
yAxisLabel: B,
|
|
25
|
-
yAxisRangeMax: y,
|
|
26
|
-
yAxisRangeMin: D,
|
|
27
|
-
onBarClicked: V
|
|
28
|
-
} = R(e), o = Y({
|
|
29
|
-
results: e.results,
|
|
30
|
-
dimension: e.xAxis
|
|
31
|
-
}), t = Q(
|
|
32
|
-
{
|
|
33
|
-
data: o.data,
|
|
34
|
-
dimension: r,
|
|
35
|
-
groupDimension: i,
|
|
36
|
-
measure: s
|
|
37
|
-
},
|
|
38
|
-
a
|
|
39
|
-
), f = L(
|
|
40
|
-
U(
|
|
41
|
-
{ measures: [s], horizontal: !1, onBarClicked: V, data: t, dimension: r },
|
|
42
|
-
a
|
|
43
|
-
),
|
|
44
|
-
((l = (n = a.charts) == null ? void 0 : n.barChartGroupedPro) == null ? void 0 : l.options) || {}
|
|
45
|
-
);
|
|
46
|
-
return /* @__PURE__ */ m.jsx(
|
|
47
|
-
q,
|
|
48
|
-
{
|
|
49
|
-
data: o,
|
|
50
|
-
dimensionsAndMeasures: [s, r, i],
|
|
51
|
-
errorMessage: o.error,
|
|
52
|
-
subtitle: d,
|
|
53
|
-
title: C,
|
|
54
|
-
children: /* @__PURE__ */ m.jsx(
|
|
55
|
-
w,
|
|
56
|
-
{
|
|
57
|
-
data: t,
|
|
58
|
-
showLegend: p,
|
|
59
|
-
showTooltips: h,
|
|
60
|
-
showValueLabels: b,
|
|
61
|
-
showLogarithmicScale: c,
|
|
62
|
-
xAxisLabel: A,
|
|
63
|
-
yAxisLabel: B,
|
|
64
|
-
reverseXAxis: x,
|
|
65
|
-
yAxisRangeMin: D,
|
|
66
|
-
yAxisRangeMax: y,
|
|
67
|
-
showTotalLabels: g,
|
|
68
|
-
options: f
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
}, $ = {
|
|
1
|
+
import { V as a, l as s } from "./index-D8D1R5YG.js";
|
|
2
|
+
import { defineComponent as i } from "@embeddable.com/react";
|
|
3
|
+
import { B as r } from "./index-DGz1wzRd.js";
|
|
4
|
+
import { v as o, D as n, z as l, w as t, F as m, G as u, H as p, I as d, J as x, K as g, M as c, N as b, O as V, P as h, S as B, T as D } from "./component.constants-C7cqSNbp.js";
|
|
5
|
+
const C = {
|
|
74
6
|
name: "BarChartGroupedPro",
|
|
75
7
|
label: "Bar Chart - Grouped",
|
|
76
8
|
category: "Bar Charts",
|
|
77
9
|
inputs: [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{ ...
|
|
81
|
-
{ ...
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
{ ...
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
10
|
+
o,
|
|
11
|
+
n,
|
|
12
|
+
{ ...l, name: "xAxis", label: "X-axis" },
|
|
13
|
+
{ ...t, name: "groupBy", label: "Group by" },
|
|
14
|
+
m,
|
|
15
|
+
u,
|
|
16
|
+
p,
|
|
17
|
+
d,
|
|
18
|
+
x,
|
|
19
|
+
{ ...g, defaultValue: !1 },
|
|
20
|
+
c,
|
|
21
|
+
b,
|
|
22
|
+
V,
|
|
23
|
+
h,
|
|
24
|
+
B,
|
|
25
|
+
D
|
|
94
26
|
],
|
|
95
27
|
events: [
|
|
96
28
|
{
|
|
@@ -110,10 +42,10 @@ const Z = (e) => {
|
|
|
110
42
|
]
|
|
111
43
|
}
|
|
112
44
|
]
|
|
113
|
-
},
|
|
45
|
+
}, k = i(r, C, {
|
|
114
46
|
props: (e) => ({
|
|
115
47
|
...e,
|
|
116
|
-
results:
|
|
48
|
+
results: s({
|
|
117
49
|
limit: e.maxResults,
|
|
118
50
|
from: e.dataset,
|
|
119
51
|
select: [e.xAxis, e.groupBy, e.measure]
|
|
@@ -121,13 +53,13 @@ const Z = (e) => {
|
|
|
121
53
|
}),
|
|
122
54
|
events: {
|
|
123
55
|
onBarClicked: (e) => ({
|
|
124
|
-
axisDimensionValue: e.axisDimensionValue ||
|
|
125
|
-
groupingDimensionValue: e.groupingDimensionValue ||
|
|
56
|
+
axisDimensionValue: e.axisDimensionValue || a.noFilter(),
|
|
57
|
+
groupingDimensionValue: e.groupingDimensionValue || a.noFilter()
|
|
126
58
|
})
|
|
127
59
|
}
|
|
128
60
|
});
|
|
129
61
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
62
|
+
k as default,
|
|
63
|
+
C as meta
|
|
132
64
|
};
|
|
133
65
|
//# sourceMappingURL=BarChartGroupedPro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChartGroupedPro.js","sources":["../src/components/charts/bars/BarChartGroupedPro/
|
|
1
|
+
{"version":3,"file":"BarChartGroupedPro.js","sources":["../src/components/charts/bars/BarChartGroupedPro/BarChartGroupedPro.emb.ts"],"sourcesContent":["import { Value, loadData } from '@embeddable.com/core';\nimport { defineComponent, EmbeddedComponentMeta, Inputs } from '@embeddable.com/react';\nimport BarChartGroupedPro from './index';\nimport {\n dataset,\n description,\n dimensionWithDateBounds,\n dimension,\n showLegend,\n showTooltips,\n showValueLabels,\n title,\n measure,\n showLogarithmicScale,\n xAxisLabel,\n yAxisLabel,\n reverseXAxis,\n yAxisRangeMin,\n yAxisRangeMax,\n maxResults,\n} from '../../../component.constants';\n\nexport const meta = {\n name: 'BarChartGroupedPro',\n label: 'Bar Chart - Grouped',\n category: 'Bar Charts',\n inputs: [\n dataset,\n measure,\n { ...dimensionWithDateBounds, name: 'xAxis', label: 'X-axis' },\n { ...dimension, name: 'groupBy', label: 'Group by' },\n title,\n description,\n maxResults,\n showLegend,\n showTooltips,\n { ...showValueLabels, defaultValue: false },\n showLogarithmicScale,\n xAxisLabel,\n yAxisLabel,\n reverseXAxis,\n yAxisRangeMin,\n yAxisRangeMax,\n ],\n events: [\n {\n name: 'onBarClicked',\n label: 'A bar is clicked',\n properties: [\n {\n name: 'axisDimensionValue',\n label: 'Clicked Axis Dimension Value',\n type: 'string',\n },\n {\n name: 'groupingDimensionValue',\n label: 'Clicked Grouping Dimension Value',\n type: 'string',\n },\n ],\n },\n ],\n} as const satisfies EmbeddedComponentMeta;\n\nexport default defineComponent(BarChartGroupedPro, meta, {\n props: (inputs: Inputs<typeof meta>) => {\n return {\n ...inputs,\n results: loadData({\n limit: inputs.maxResults,\n from: inputs.dataset,\n select: [inputs.xAxis, inputs.groupBy, inputs.measure],\n }),\n };\n },\n events: {\n onBarClicked: (value) => {\n return {\n axisDimensionValue: value.axisDimensionValue || Value.noFilter(),\n groupingDimensionValue: value.groupingDimensionValue || Value.noFilter(),\n };\n },\n },\n});\n"],"names":["meta","dataset","measure","dimensionWithDateBounds","dimension","title","description","maxResults","showLegend","showTooltips","showValueLabels","showLogarithmicScale","xAxisLabel","yAxisLabel","reverseXAxis","yAxisRangeMin","yAxisRangeMax","BarChartGroupedPro_emb","defineComponent","BarChartGroupedPro","inputs","loadData","value","Value"],"mappings":";;;;AAsBO,MAAMA,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,IACNC;AAAA,IACAC;AAAA,IACA,EAAE,GAAGC,GAAyB,MAAM,SAAS,OAAO,SAAA;AAAA,IACpD,EAAE,GAAGC,GAAW,MAAM,WAAW,OAAO,WAAA;AAAA,IACxCC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACA,EAAE,GAAGC,GAAiB,cAAc,GAAA;AAAA,IACpCC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA;AAAA,EAEF,QAAQ;AAAA,IACN;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,YAAY;AAAA,QACV;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QAAA;AAAA,QAER;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QAAA;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEJ,GAEAC,IAAeC,EAAgBC,GAAoBnB,GAAM;AAAA,EACvD,OAAO,CAACoB,OACC;AAAA,IACL,GAAGA;AAAA,IACH,SAASC,EAAS;AAAA,MAChB,OAAOD,EAAO;AAAA,MACd,MAAMA,EAAO;AAAA,MACb,QAAQ,CAACA,EAAO,OAAOA,EAAO,SAASA,EAAO,OAAO;AAAA,IAAA,CACtD;AAAA,EAAA;AAAA,EAGL,QAAQ;AAAA,IACN,cAAc,CAACE,OACN;AAAA,MACL,oBAAoBA,EAAM,sBAAsBC,EAAM,SAAA;AAAA,MACtD,wBAAwBD,EAAM,0BAA0BC,EAAM,SAAA;AAAA,IAAS;AAAA,EAE3E;AAEJ,CAAC;"}
|
|
@@ -1,99 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { u as Z } from "./charts.fillGaps.hooks-YayOXVmt.js";
|
|
7
|
-
const $ = (a) => {
|
|
8
|
-
var n, l;
|
|
9
|
-
const e = S();
|
|
10
|
-
R(e);
|
|
11
|
-
const {
|
|
12
|
-
description: d,
|
|
13
|
-
groupBy: i,
|
|
14
|
-
measure: s,
|
|
15
|
-
reverseYAxis: x,
|
|
16
|
-
showLegend: c,
|
|
17
|
-
showLogarithmicScale: h,
|
|
18
|
-
showTooltips: g,
|
|
19
|
-
showTotalLabels: p,
|
|
20
|
-
showValueLabels: b,
|
|
21
|
-
title: C,
|
|
22
|
-
yAxis: o,
|
|
23
|
-
xAxisLabel: A,
|
|
24
|
-
yAxisLabel: B,
|
|
25
|
-
xAxisRangeMax: V,
|
|
26
|
-
xAxisRangeMin: k,
|
|
27
|
-
onBarClicked: y
|
|
28
|
-
} = M(a), r = Z({
|
|
29
|
-
results: a.results,
|
|
30
|
-
dimension: a.yAxis
|
|
31
|
-
}), t = Q(
|
|
32
|
-
{
|
|
33
|
-
data: r.data,
|
|
34
|
-
dimension: o,
|
|
35
|
-
groupDimension: i,
|
|
36
|
-
measure: s
|
|
37
|
-
},
|
|
38
|
-
e
|
|
39
|
-
), D = L(
|
|
40
|
-
X(
|
|
41
|
-
{ measures: [s], horizontal: !0, onBarClicked: y, data: t, dimension: o },
|
|
42
|
-
e
|
|
43
|
-
),
|
|
44
|
-
((l = (n = e.charts) == null ? void 0 : n.barChartStackedHorizontalPro) == null ? void 0 : l.options) || {}
|
|
45
|
-
);
|
|
46
|
-
return /* @__PURE__ */ m.jsx(
|
|
47
|
-
q,
|
|
48
|
-
{
|
|
49
|
-
data: r,
|
|
50
|
-
dimensionsAndMeasures: [s, o, i],
|
|
51
|
-
errorMessage: r.error,
|
|
52
|
-
subtitle: d,
|
|
53
|
-
title: C,
|
|
54
|
-
children: /* @__PURE__ */ m.jsx(
|
|
55
|
-
f,
|
|
56
|
-
{
|
|
57
|
-
data: t,
|
|
58
|
-
showLegend: c,
|
|
59
|
-
showTooltips: g,
|
|
60
|
-
showValueLabels: b,
|
|
61
|
-
showLogarithmicScale: h,
|
|
62
|
-
xAxisLabel: A,
|
|
63
|
-
yAxisLabel: B,
|
|
64
|
-
reverseYAxis: x,
|
|
65
|
-
xAxisRangeMin: k,
|
|
66
|
-
xAxisRangeMax: V,
|
|
67
|
-
showTotalLabels: p,
|
|
68
|
-
options: D,
|
|
69
|
-
stacked: !0,
|
|
70
|
-
horizontal: !0
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
}, aa = {
|
|
1
|
+
import { V as e, l as s } from "./index-D8D1R5YG.js";
|
|
2
|
+
import { defineComponent as i } from "@embeddable.com/react";
|
|
3
|
+
import { B as o } from "./index-Cc-mtCkt.js";
|
|
4
|
+
import { v as r, D as l, z as n, w as t, F as m, G as u, H as d, I as x, J as c, K as p, M as g, N as b, O as V, R as h, U as B, V as D, L as C } from "./component.constants-C7cqSNbp.js";
|
|
5
|
+
const f = {
|
|
76
6
|
name: "BarChartStackedHorizontalPro",
|
|
77
7
|
label: "Bar Chart - Stacked Horizontal",
|
|
78
8
|
category: "Bar Charts",
|
|
79
9
|
inputs: [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
{ ...
|
|
83
|
-
{ ...
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
{ ...
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
10
|
+
r,
|
|
11
|
+
l,
|
|
12
|
+
{ ...n, name: "yAxis", label: "Y-axis" },
|
|
13
|
+
{ ...t, name: "groupBy", label: "Group by" },
|
|
14
|
+
m,
|
|
15
|
+
u,
|
|
16
|
+
d,
|
|
17
|
+
x,
|
|
18
|
+
c,
|
|
19
|
+
{ ...p, defaultValue: !1 },
|
|
20
|
+
g,
|
|
21
|
+
b,
|
|
22
|
+
V,
|
|
23
|
+
h,
|
|
24
|
+
B,
|
|
25
|
+
D,
|
|
26
|
+
C
|
|
97
27
|
],
|
|
98
28
|
events: [
|
|
99
29
|
{
|
|
@@ -113,10 +43,10 @@ const $ = (a) => {
|
|
|
113
43
|
]
|
|
114
44
|
}
|
|
115
45
|
]
|
|
116
|
-
},
|
|
46
|
+
}, w = i(o, f, {
|
|
117
47
|
props: (a) => ({
|
|
118
48
|
...a,
|
|
119
|
-
results:
|
|
49
|
+
results: s({
|
|
120
50
|
limit: a.maxResults,
|
|
121
51
|
from: a.dataset,
|
|
122
52
|
select: [a.yAxis, a.groupBy, a.measure]
|
|
@@ -124,13 +54,13 @@ const $ = (a) => {
|
|
|
124
54
|
}),
|
|
125
55
|
events: {
|
|
126
56
|
onBarClicked: (a) => ({
|
|
127
|
-
axisDimensionValue: a.axisDimensionValue ||
|
|
128
|
-
groupingDimensionValue: a.groupingDimensionValue ||
|
|
57
|
+
axisDimensionValue: a.axisDimensionValue || e.noFilter(),
|
|
58
|
+
groupingDimensionValue: a.groupingDimensionValue || e.noFilter()
|
|
129
59
|
})
|
|
130
60
|
}
|
|
131
61
|
});
|
|
132
62
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
63
|
+
w as default,
|
|
64
|
+
f as meta
|
|
135
65
|
};
|
|
136
66
|
//# sourceMappingURL=BarChartStackedHorizontalPro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChartStackedHorizontalPro.js","sources":["../src/components/charts/bars/BarChartStackedHorizontalPro/
|
|
1
|
+
{"version":3,"file":"BarChartStackedHorizontalPro.js","sources":["../src/components/charts/bars/BarChartStackedHorizontalPro/BarChartStackedHorizontalPro.emb.ts"],"sourcesContent":["import { Value, loadData } from '@embeddable.com/core';\nimport { defineComponent, EmbeddedComponentMeta, Inputs } from '@embeddable.com/react';\nimport BarChartStackedHorizontalPro from './index';\nimport {\n dataset,\n description,\n dimensionWithDateBounds,\n dimension,\n showLegend,\n showTooltips,\n showValueLabels,\n title,\n measure,\n showLogarithmicScale,\n xAxisLabel,\n yAxisLabel,\n showTotalLabels,\n reverseYAxis,\n xAxisRangeMin,\n xAxisRangeMax,\n maxResults,\n} from '../../../component.constants';\n\nexport const meta = {\n name: 'BarChartStackedHorizontalPro',\n label: 'Bar Chart - Stacked Horizontal',\n category: 'Bar Charts',\n inputs: [\n dataset,\n measure,\n { ...dimensionWithDateBounds, name: 'yAxis', label: 'Y-axis' },\n { ...dimension, name: 'groupBy', label: 'Group by' },\n title,\n description,\n maxResults,\n showLegend,\n showTooltips,\n { ...showValueLabels, defaultValue: false },\n showLogarithmicScale,\n xAxisLabel,\n yAxisLabel,\n reverseYAxis,\n xAxisRangeMin,\n xAxisRangeMax,\n showTotalLabels,\n ],\n events: [\n {\n name: 'onBarClicked',\n label: 'A bar is clicked',\n properties: [\n {\n name: 'axisDimensionValue',\n label: 'Clicked Axis Dimension Value',\n type: 'string',\n },\n {\n name: 'groupingDimensionValue',\n label: 'Clicked Grouping Dimension Value',\n type: 'string',\n },\n ],\n },\n ],\n} as const satisfies EmbeddedComponentMeta;\n\nexport default defineComponent(BarChartStackedHorizontalPro, meta, {\n props: (inputs: Inputs<typeof meta>) => {\n return {\n ...inputs,\n results: loadData({\n limit: inputs.maxResults,\n from: inputs.dataset,\n select: [inputs.yAxis, inputs.groupBy, inputs.measure],\n }),\n };\n },\n events: {\n onBarClicked: (value) => {\n return {\n axisDimensionValue: value.axisDimensionValue || Value.noFilter(),\n groupingDimensionValue: value.groupingDimensionValue || Value.noFilter(),\n };\n },\n },\n});\n"],"names":["meta","dataset","measure","dimensionWithDateBounds","dimension","title","description","maxResults","showLegend","showTooltips","showValueLabels","showLogarithmicScale","xAxisLabel","yAxisLabel","reverseYAxis","xAxisRangeMin","xAxisRangeMax","showTotalLabels","BarChartStackedHorizontalPro_emb","defineComponent","BarChartStackedHorizontalPro","inputs","loadData","value","Value"],"mappings":";;;;AAuBO,MAAMA,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,IACNC;AAAA,IACAC;AAAA,IACA,EAAE,GAAGC,GAAyB,MAAM,SAAS,OAAO,SAAA;AAAA,IACpD,EAAE,GAAGC,GAAW,MAAM,WAAW,OAAO,WAAA;AAAA,IACxCC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACA,EAAE,GAAGC,GAAiB,cAAc,GAAA;AAAA,IACpCC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA;AAAA,EAEF,QAAQ;AAAA,IACN;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,YAAY;AAAA,QACV;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QAAA;AAAA,QAER;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QAAA;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEJ,GAEAC,IAAeC,EAAgBC,GAA8BpB,GAAM;AAAA,EACjE,OAAO,CAACqB,OACC;AAAA,IACL,GAAGA;AAAA,IACH,SAASC,EAAS;AAAA,MAChB,OAAOD,EAAO;AAAA,MACd,MAAMA,EAAO;AAAA,MACb,QAAQ,CAACA,EAAO,OAAOA,EAAO,SAASA,EAAO,OAAO;AAAA,IAAA,CACtD;AAAA,EAAA;AAAA,EAGL,QAAQ;AAAA,IACN,cAAc,CAACE,OACN;AAAA,MACL,oBAAoBA,EAAM,sBAAsBC,EAAM,SAAA;AAAA,MACtD,wBAAwBD,EAAM,0BAA0BC,EAAM,SAAA;AAAA,IAAS;AAAA,EAE3E;AAEJ,CAAC;"}
|
|
@@ -1,98 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { u as Z } from "./charts.fillGaps.hooks-YayOXVmt.js";
|
|
7
|
-
const $ = (a) => {
|
|
8
|
-
var n, l;
|
|
9
|
-
const e = S();
|
|
10
|
-
M(e);
|
|
11
|
-
const {
|
|
12
|
-
description: d,
|
|
13
|
-
groupBy: o,
|
|
14
|
-
measure: s,
|
|
15
|
-
reverseXAxis: x,
|
|
16
|
-
showLegend: c,
|
|
17
|
-
showLogarithmicScale: h,
|
|
18
|
-
showTooltips: g,
|
|
19
|
-
showTotalLabels: p,
|
|
20
|
-
showValueLabels: b,
|
|
21
|
-
title: C,
|
|
22
|
-
xAxis: r,
|
|
23
|
-
xAxisLabel: A,
|
|
24
|
-
yAxisLabel: B,
|
|
25
|
-
yAxisRangeMax: k,
|
|
26
|
-
yAxisRangeMin: y,
|
|
27
|
-
onBarClicked: D
|
|
28
|
-
} = R(a), i = Z({
|
|
29
|
-
results: a.results,
|
|
30
|
-
dimension: a.xAxis
|
|
31
|
-
}), t = U(
|
|
32
|
-
{
|
|
33
|
-
data: i.data,
|
|
34
|
-
dimension: r,
|
|
35
|
-
groupDimension: o,
|
|
36
|
-
measure: s
|
|
37
|
-
},
|
|
38
|
-
e
|
|
39
|
-
), L = V(
|
|
40
|
-
Y(
|
|
41
|
-
{ measures: [s], horizontal: !1, onBarClicked: D, data: t, dimension: r },
|
|
42
|
-
e
|
|
43
|
-
),
|
|
44
|
-
((l = (n = e.charts) == null ? void 0 : n.barChartStackedPro) == null ? void 0 : l.options) || {}
|
|
45
|
-
);
|
|
46
|
-
return /* @__PURE__ */ m.jsx(
|
|
47
|
-
Q,
|
|
48
|
-
{
|
|
49
|
-
data: i,
|
|
50
|
-
dimensionsAndMeasures: [s, r, o],
|
|
51
|
-
errorMessage: i.error,
|
|
52
|
-
subtitle: d,
|
|
53
|
-
title: C,
|
|
54
|
-
children: /* @__PURE__ */ m.jsx(
|
|
55
|
-
f,
|
|
56
|
-
{
|
|
57
|
-
data: t,
|
|
58
|
-
showLegend: c,
|
|
59
|
-
showTooltips: g,
|
|
60
|
-
showValueLabels: b,
|
|
61
|
-
showLogarithmicScale: h,
|
|
62
|
-
xAxisLabel: A,
|
|
63
|
-
yAxisLabel: B,
|
|
64
|
-
reverseXAxis: x,
|
|
65
|
-
yAxisRangeMin: y,
|
|
66
|
-
yAxisRangeMax: k,
|
|
67
|
-
showTotalLabels: p,
|
|
68
|
-
options: L,
|
|
69
|
-
stacked: !0
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
}, aa = {
|
|
1
|
+
import { V as e, l as s } from "./index-D8D1R5YG.js";
|
|
2
|
+
import { defineComponent as i } from "@embeddable.com/react";
|
|
3
|
+
import { B as o } from "./index-9GEogpMN.js";
|
|
4
|
+
import { v as r, D as l, z as n, w as t, F as m, G as u, H as d, I as x, J as c, K as p, M as g, N as b, O as h, P as V, S as B, T as D, L as C } from "./component.constants-C7cqSNbp.js";
|
|
5
|
+
const f = {
|
|
75
6
|
name: "BarChartStackedPro",
|
|
76
7
|
label: "Bar Chart - Stacked",
|
|
77
8
|
category: "Bar Charts",
|
|
78
9
|
inputs: [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
{ ...
|
|
82
|
-
{ ...
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
{ ...
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
10
|
+
r,
|
|
11
|
+
l,
|
|
12
|
+
{ ...n, name: "xAxis", label: "X-axis" },
|
|
13
|
+
{ ...t, name: "groupBy", label: "Group by" },
|
|
14
|
+
m,
|
|
15
|
+
u,
|
|
16
|
+
d,
|
|
17
|
+
x,
|
|
18
|
+
c,
|
|
19
|
+
{ ...p, defaultValue: !1 },
|
|
20
|
+
g,
|
|
21
|
+
b,
|
|
22
|
+
h,
|
|
23
|
+
V,
|
|
24
|
+
B,
|
|
25
|
+
D,
|
|
26
|
+
C
|
|
96
27
|
],
|
|
97
28
|
events: [
|
|
98
29
|
{
|
|
@@ -112,10 +43,10 @@ const $ = (a) => {
|
|
|
112
43
|
]
|
|
113
44
|
}
|
|
114
45
|
]
|
|
115
|
-
},
|
|
46
|
+
}, w = i(o, f, {
|
|
116
47
|
props: (a) => ({
|
|
117
48
|
...a,
|
|
118
|
-
results:
|
|
49
|
+
results: s({
|
|
119
50
|
limit: a.maxResults,
|
|
120
51
|
from: a.dataset,
|
|
121
52
|
select: [a.xAxis, a.groupBy, a.measure]
|
|
@@ -123,13 +54,13 @@ const $ = (a) => {
|
|
|
123
54
|
}),
|
|
124
55
|
events: {
|
|
125
56
|
onBarClicked: (a) => ({
|
|
126
|
-
axisDimensionValue: a.axisDimensionValue ||
|
|
127
|
-
groupingDimensionValue: a.groupingDimensionValue ||
|
|
57
|
+
axisDimensionValue: a.axisDimensionValue || e.noFilter(),
|
|
58
|
+
groupingDimensionValue: a.groupingDimensionValue || e.noFilter()
|
|
128
59
|
})
|
|
129
60
|
}
|
|
130
61
|
});
|
|
131
62
|
export {
|
|
132
|
-
|
|
133
|
-
|
|
63
|
+
w as default,
|
|
64
|
+
f as meta
|
|
134
65
|
};
|
|
135
66
|
//# sourceMappingURL=BarChartStackedPro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarChartStackedPro.js","sources":["../src/components/charts/bars/BarChartStackedPro/
|
|
1
|
+
{"version":3,"file":"BarChartStackedPro.js","sources":["../src/components/charts/bars/BarChartStackedPro/BarChartStackedPro.emb.ts"],"sourcesContent":["import { Value, loadData } from '@embeddable.com/core';\nimport { defineComponent, EmbeddedComponentMeta, Inputs } from '@embeddable.com/react';\nimport BarChartStackedPro from './index';\nimport {\n dataset,\n description,\n dimensionWithDateBounds,\n dimension,\n showLegend,\n showTooltips,\n showValueLabels,\n title,\n measure,\n showLogarithmicScale,\n xAxisLabel,\n yAxisLabel,\n reverseXAxis,\n yAxisRangeMin,\n yAxisRangeMax,\n showTotalLabels,\n maxResults,\n} from '../../../component.constants';\n\nexport const meta = {\n name: 'BarChartStackedPro',\n label: 'Bar Chart - Stacked',\n category: 'Bar Charts',\n inputs: [\n dataset,\n measure,\n { ...dimensionWithDateBounds, name: 'xAxis', label: 'X-axis' },\n { ...dimension, name: 'groupBy', label: 'Group by' },\n title,\n description,\n maxResults,\n showLegend,\n showTooltips,\n { ...showValueLabels, defaultValue: false },\n showLogarithmicScale,\n xAxisLabel,\n yAxisLabel,\n reverseXAxis,\n yAxisRangeMin,\n yAxisRangeMax,\n showTotalLabels,\n ],\n events: [\n {\n name: 'onBarClicked',\n label: 'A bar is clicked',\n properties: [\n {\n name: 'axisDimensionValue',\n label: 'Clicked Axis Dimension Value',\n type: 'string',\n },\n {\n name: 'groupingDimensionValue',\n label: 'Clicked Grouping Dimension Value',\n type: 'string',\n },\n ],\n },\n ],\n} as const satisfies EmbeddedComponentMeta;\n\nexport default defineComponent(BarChartStackedPro, meta, {\n props: (inputs: Inputs<typeof meta>) => {\n return {\n ...inputs,\n results: loadData({\n limit: inputs.maxResults,\n from: inputs.dataset,\n select: [inputs.xAxis, inputs.groupBy, inputs.measure],\n }),\n };\n },\n events: {\n onBarClicked: (value) => {\n return {\n axisDimensionValue: value.axisDimensionValue || Value.noFilter(),\n groupingDimensionValue: value.groupingDimensionValue || Value.noFilter(),\n };\n },\n },\n});\n"],"names":["meta","dataset","measure","dimensionWithDateBounds","dimension","title","description","maxResults","showLegend","showTooltips","showValueLabels","showLogarithmicScale","xAxisLabel","yAxisLabel","reverseXAxis","yAxisRangeMin","yAxisRangeMax","showTotalLabels","BarChartStackedPro_emb","defineComponent","BarChartStackedPro","inputs","loadData","value","Value"],"mappings":";;;;AAuBO,MAAMA,IAAO;AAAA,EAClB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,QAAQ;AAAA,IACNC;AAAA,IACAC;AAAA,IACA,EAAE,GAAGC,GAAyB,MAAM,SAAS,OAAO,SAAA;AAAA,IACpD,EAAE,GAAGC,GAAW,MAAM,WAAW,OAAO,WAAA;AAAA,IACxCC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACA,EAAE,GAAGC,GAAiB,cAAc,GAAA;AAAA,IACpCC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,EAAA;AAAA,EAEF,QAAQ;AAAA,IACN;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,MACP,YAAY;AAAA,QACV;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QAAA;AAAA,QAER;AAAA,UACE,MAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAM;AAAA,QAAA;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEJ,GAEAC,IAAeC,EAAgBC,GAAoBpB,GAAM;AAAA,EACvD,OAAO,CAACqB,OACC;AAAA,IACL,GAAGA;AAAA,IACH,SAASC,EAAS;AAAA,MAChB,OAAOD,EAAO;AAAA,MACd,MAAMA,EAAO;AAAA,MACb,QAAQ,CAACA,EAAO,OAAOA,EAAO,SAASA,EAAO,OAAO;AAAA,IAAA,CACtD;AAAA,EAAA;AAAA,EAGL,QAAQ;AAAA,IACN,cAAc,CAACE,OACN;AAAA,MACL,oBAAoBA,EAAM,sBAAsBC,EAAM,SAAA;AAAA,MACtD,wBAAwBD,EAAM,0BAA0BC,EAAM,SAAA;AAAA,IAAS;AAAA,EAE3E;AAEJ,CAAC;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as R, j as t, t as D, v as w, w as I, x as S, A as k, C as L,
|
|
2
|
-
import
|
|
1
|
+
import { s as R, j as t, t as D, v as w, w as I, x as S, A as k, C as L, p as N, y as x, q as M, z as b, r as _ } from "./index-D8D1R5YG.js";
|
|
2
|
+
import f, { useRef as T } from "react";
|
|
3
3
|
import { useTheme as j } from "@embeddable.com/react";
|
|
4
|
-
import { a as v, i as C, a0 as A } from "./component.constants-
|
|
4
|
+
import { a as v, i as C, a0 as A } from "./component.constants-C7cqSNbp.js";
|
|
5
5
|
/**
|
|
6
6
|
* @license @tabler/icons-react v3.35.0 - MIT
|
|
7
7
|
*
|
|
@@ -14,19 +14,19 @@ const F = [["path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-0
|
|
|
14
14
|
loading: O,
|
|
15
15
|
hidden: P,
|
|
16
16
|
chartCardRightContent: V
|
|
17
|
-
},
|
|
18
|
-
loading:
|
|
19
|
-
},
|
|
20
|
-
list:
|
|
17
|
+
}, q = "_loading_k5y8w_7", z = {
|
|
18
|
+
loading: q
|
|
19
|
+
}, p = () => /* @__PURE__ */ t.jsx(D, { className: z.loading }), B = "_list_mwshn_1", K = {
|
|
20
|
+
list: B
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function U({ src: s, className: a, ...r }) {
|
|
23
23
|
const e = decodeURIComponent(s.replace(/^data:image\/svg\+xml,/, ""));
|
|
24
24
|
return /* @__PURE__ */ t.jsx("div", { className: a, ...r, dangerouslySetInnerHTML: { __html: e } });
|
|
25
25
|
}
|
|
26
26
|
const G = (s) => {
|
|
27
27
|
const a = j();
|
|
28
28
|
v(a);
|
|
29
|
-
const [r, e] =
|
|
29
|
+
const [r, e] = f.useState(!1), i = a.defaults.chartMenuOptions ?? [];
|
|
30
30
|
if (i.length === 0)
|
|
31
31
|
return null;
|
|
32
32
|
const d = (n) => {
|
|
@@ -45,28 +45,28 @@ const G = (s) => {
|
|
|
45
45
|
{
|
|
46
46
|
side: "bottom",
|
|
47
47
|
align: "end",
|
|
48
|
-
triggerComponent: r ? /* @__PURE__ */ t.jsx(
|
|
49
|
-
children: /* @__PURE__ */ t.jsx(I, { className:
|
|
48
|
+
triggerComponent: r ? /* @__PURE__ */ t.jsx(p, {}) : /* @__PURE__ */ t.jsx(k, { icon: $ }),
|
|
49
|
+
children: /* @__PURE__ */ t.jsx(I, { className: K.list, autoFocus: !0, children: i.map((n, l) => {
|
|
50
50
|
const h = C.t(n.labelKey);
|
|
51
51
|
return /* @__PURE__ */ t.jsx(
|
|
52
52
|
S,
|
|
53
53
|
{
|
|
54
54
|
label: h,
|
|
55
55
|
onClick: () => c(n.onClick),
|
|
56
|
-
startIcon: n.iconSrc ? /* @__PURE__ */ t.jsx(
|
|
56
|
+
startIcon: n.iconSrc ? /* @__PURE__ */ t.jsx(U, { src: n.iconSrc }) : void 0
|
|
57
57
|
},
|
|
58
58
|
l
|
|
59
59
|
);
|
|
60
60
|
}) })
|
|
61
61
|
}
|
|
62
62
|
);
|
|
63
|
-
}, J =
|
|
63
|
+
}, J = f.forwardRef(
|
|
64
64
|
({ title: s, subtitle: a, children: r, data: e, errorMessage: i, dimensionsAndMeasures: d = [], ...c }, n) => {
|
|
65
65
|
var g;
|
|
66
66
|
const l = j();
|
|
67
67
|
v(l);
|
|
68
|
-
const h = T(null), u = !!(e != null && e.data && ((g = e.data) == null ? void 0 : g.length) > 0), m = !e || (e == null ? void 0 : e.isLoading),
|
|
69
|
-
|
|
68
|
+
const h = T(null), u = !!(e != null && e.data && ((g = e.data) == null ? void 0 : g.length) > 0), m = !e || (e == null ? void 0 : e.isLoading), y = () => m && !u ? /* @__PURE__ */ t.jsx(b, {}) : i ? /* @__PURE__ */ t.jsx(
|
|
69
|
+
_,
|
|
70
70
|
{
|
|
71
71
|
variant: "error",
|
|
72
72
|
icon: A,
|
|
@@ -74,7 +74,7 @@ const G = (s) => {
|
|
|
74
74
|
message: i
|
|
75
75
|
}
|
|
76
76
|
) : u ? r : /* @__PURE__ */ t.jsx(
|
|
77
|
-
|
|
77
|
+
_,
|
|
78
78
|
{
|
|
79
79
|
title: C.t("charts.emptyTitle"),
|
|
80
80
|
message: C.t("charts.emptyMessage")
|
|
@@ -91,7 +91,7 @@ const G = (s) => {
|
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
93
|
className: x(o.fixedContent, m ? o.loading : o.hidden),
|
|
94
|
-
children: /* @__PURE__ */ t.jsx(
|
|
94
|
+
children: /* @__PURE__ */ t.jsx(p, {})
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
97
|
/* @__PURE__ */ t.jsx(
|
|
@@ -113,7 +113,7 @@ const G = (s) => {
|
|
|
113
113
|
] })
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
|
-
/* @__PURE__ */ t.jsx(M, { ref: c.onCustomDownload ? n : h, children:
|
|
116
|
+
/* @__PURE__ */ t.jsx(M, { ref: c.onCustomDownload ? n : h, children: y() })
|
|
117
117
|
] });
|
|
118
118
|
}
|
|
119
119
|
);
|
|
@@ -121,4 +121,4 @@ J.displayName = "ChartCard";
|
|
|
121
121
|
export {
|
|
122
122
|
J as C
|
|
123
123
|
};
|
|
124
|
-
//# sourceMappingURL=ChartCard-
|
|
124
|
+
//# sourceMappingURL=ChartCard-DPqhmLst.js.map
|