@devgateway/dvz-ui-react 1.5.3 → 1.6.0
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/cjs/common.css +1 -1
- package/dist/cjs/embeddable/chart/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/Line.js +1 -1
- package/dist/cjs/embeddable/chart/Pie.js +1 -1
- package/dist/cjs/embeddable/chart/colors/ManualColors.js +1 -1
- package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/index.js +1 -1
- package/dist/cjs/embeddable/common/colors/ManualColors.js +1 -1
- package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
- package/dist/cjs/embeddable/filtered-posts/NoData.js +2 -2
- package/dist/cjs/embeddable/filtered-posts/index.js +1 -1
- package/dist/cjs/embeddable/filtered-posts/utils.js +1 -1
- package/dist/cjs/embeddable/posts-filter/CategoricalFilter.js +1 -0
- package/dist/cjs/embeddable/posts-filter/PostsFilterDropdown.js +1 -1
- package/dist/cjs/embeddable/posts-filter/YearFilter.js +1 -0
- package/dist/cjs/embeddable/posts-filter/index.js +1 -1
- package/dist/cjs/embeddable/posts-filters-reset-button/index.js +1 -1
- package/dist/cjs/embeddable/posts-pagination/index.js +1 -1
- package/dist/cjs/embeddable/reducers/data-api.js +1 -1
- package/dist/cjs/embeddable/reducers/data.js +1 -1
- package/dist/cjs/embeddable/reducers/embeddable-api.js +1 -1
- package/dist/cjs/embeddable/time-line/mobile.js +1 -1
- package/dist/cjs/embeddable/vertical-featuredtabs/index.js +2 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/layout/Layout.js +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/esm/common.css +1 -1
- package/dist/esm/embeddable/chart/Bar.js +253 -235
- package/dist/esm/embeddable/chart/Line.js +122 -121
- package/dist/esm/embeddable/chart/Pie.js +82 -81
- package/dist/esm/embeddable/chart/colors/ManualColors.js +33 -33
- package/dist/esm/embeddable/chart/data/Bar.js +18 -16
- package/dist/esm/embeddable/chart/index.js +298 -286
- package/dist/esm/embeddable/common/colors/ManualColors.js +22 -22
- package/dist/esm/embeddable/d3Map/BaseLayer.js +4 -1
- package/dist/esm/embeddable/d3Map/DataLayer.js +5 -1
- package/dist/esm/embeddable/filtered-posts/NoData.js +25 -18
- package/dist/esm/embeddable/filtered-posts/index.js +131 -89
- package/dist/esm/embeddable/filtered-posts/utils.js +3 -2
- package/dist/esm/embeddable/posts-filter/CategoricalFilter.js +72 -0
- package/dist/esm/embeddable/posts-filter/PostsFilterDropdown.js +106 -92
- package/dist/esm/embeddable/posts-filter/YearFilter.js +60 -0
- package/dist/esm/embeddable/posts-filter/index.js +160 -191
- package/dist/esm/embeddable/posts-filters-reset-button/index.js +21 -15
- package/dist/esm/embeddable/posts-pagination/index.js +36 -33
- package/dist/esm/embeddable/reducers/data-api.js +35 -35
- package/dist/esm/embeddable/reducers/data.js +116 -107
- package/dist/esm/embeddable/reducers/embeddable-api.js +8 -8
- package/dist/esm/embeddable/time-line/mobile.js +119 -118
- package/dist/esm/embeddable/vertical-featuredtabs/index.js +202 -131
- package/dist/esm/index.js +66 -64
- package/dist/esm/layout/Layout.js +8 -6
- package/dist/esm/styles.css +1 -1
- package/dist/types/dvz-ui/src/embeddable/chart/colors/ManualColors.d.ts +1 -1
- package/dist/types/dvz-ui/src/embeddable/filtered-posts/NoData.d.ts +1 -0
- package/dist/types/dvz-ui/src/embeddable/filtered-posts/index.d.ts +2 -1
- package/dist/types/dvz-ui/src/embeddable/filtered-posts/utils.d.ts +3 -0
- package/dist/types/dvz-ui/src/embeddable/posts-filter/CategoricalFilter.d.ts +9 -0
- package/dist/types/dvz-ui/src/embeddable/posts-filter/PostsFilterDropdown.d.ts +1 -0
- package/dist/types/dvz-ui/src/embeddable/posts-filter/YearFilter.d.ts +12 -0
- package/dist/types/dvz-ui/src/embeddable/posts-filter/index.d.ts +2 -0
- package/dist/types/dvz-ui/src/embeddable/reducers/data-api.d.ts +3 -1
- package/dist/types/dvz-ui/src/embeddable/reducers/data.d.ts +5 -0
- package/dist/types/dvz-ui/src/embeddable/time-line/mobile.d.ts +2 -1
- package/dist/types/dvz-ui/src/translations/af.json.d.ts +1 -2
- package/dist/types/dvz-ui/src/translations/am.json.d.ts +35 -35
- package/dist/types/dvz-ui/src/translations/index.d.ts +2 -1
- package/dist/types/dvz-ui/src/utils/data.d.ts +2 -0
- package/package.json +4 -3
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Container as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { jsx as p, jsxs as ue } from "react/jsx-runtime";
|
|
2
|
+
import { useState as V, useRef as Qa, useEffect as me } from "react";
|
|
3
|
+
import { Container as pe } from "semantic-ui-react";
|
|
4
|
+
import Za from "../data/DataProvider.js";
|
|
5
|
+
import Oa from "../data/DataConsumer.js";
|
|
6
|
+
import ja from "../../utils/deviceType.js";
|
|
7
|
+
import er from "./Pie.js";
|
|
8
8
|
import "immutable";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { PostContent as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
9
|
+
import tr from "./Radar.js";
|
|
10
|
+
import ar from "./Bar.js";
|
|
11
|
+
import rr from "./Line.js";
|
|
12
|
+
import { PostContent as or } from "@devgateway/wp-react-lib";
|
|
13
|
+
import Z from "./data/index.js";
|
|
14
|
+
import nr from "./CSVDataFrame.js";
|
|
15
|
+
import sr from "./colors/ColorProvider.js";
|
|
16
|
+
import st from "./Messages.js";
|
|
17
17
|
import { connect as ir } from "react-redux";
|
|
18
|
-
import { injectIntl as
|
|
19
|
-
const dr = (
|
|
18
|
+
import { injectIntl as lr } from "react-intl";
|
|
19
|
+
const dr = (v) => {
|
|
20
|
+
console.log("manual colors...", v["data-manual-colors"]);
|
|
20
21
|
let {
|
|
21
|
-
parent:
|
|
22
|
-
editing:
|
|
23
|
-
unique:
|
|
24
|
-
childContent:
|
|
25
|
-
categories:
|
|
26
|
-
injectedMeasures:
|
|
27
|
-
"data-app":
|
|
28
|
-
"data-dvz-proxy-dataset-id":
|
|
29
|
-
"data-group":
|
|
30
|
-
"data-height":
|
|
31
|
-
"data-type":
|
|
22
|
+
parent: he,
|
|
23
|
+
editing: i = !1,
|
|
24
|
+
unique: O,
|
|
25
|
+
childContent: L,
|
|
26
|
+
categories: G,
|
|
27
|
+
injectedMeasures: l,
|
|
28
|
+
"data-app": o = "csv",
|
|
29
|
+
"data-dvz-proxy-dataset-id": ge,
|
|
30
|
+
"data-group": fe = "default",
|
|
31
|
+
"data-height": X = 500,
|
|
32
|
+
"data-type": B = "bar",
|
|
32
33
|
//'data-source': source = 'gender/smoke',f
|
|
33
|
-
"data-dimension1":
|
|
34
|
-
"data-dimension2":
|
|
35
|
-
"data-dimension3":
|
|
36
|
-
"data-color-by":
|
|
37
|
-
"data-scheme":
|
|
38
|
-
"data-group-mode":
|
|
39
|
-
"data-left-legend":
|
|
40
|
-
"data-legend-label":
|
|
34
|
+
"data-dimension1": P,
|
|
35
|
+
"data-dimension2": be,
|
|
36
|
+
"data-dimension3": mr,
|
|
37
|
+
"data-color-by": E = "index",
|
|
38
|
+
"data-scheme": j = "system",
|
|
39
|
+
"data-group-mode": it = "grouped",
|
|
40
|
+
"data-left-legend": lt = "Left Legend",
|
|
41
|
+
"data-legend-label": dt = "",
|
|
41
42
|
"data-bottom-legend": ct = "Bottom Legend",
|
|
42
43
|
"data-dualmode": ut,
|
|
43
44
|
"data-legend-position": we = "right",
|
|
44
45
|
"data-show-legends": xe = "true",
|
|
45
|
-
"data-data-source-label":
|
|
46
|
-
"data-chart-data-source":
|
|
47
|
-
"data-toggle-info-label":
|
|
48
|
-
"data-toggle-chart-label":
|
|
46
|
+
"data-data-source-label": pr = "Source",
|
|
47
|
+
"data-chart-data-source": hr = "Data Source",
|
|
48
|
+
"data-toggle-info-label": gr = "Info Graphic",
|
|
49
|
+
"data-toggle-chart-label": fr = "Chart",
|
|
49
50
|
//'data-number-format': format = '{"style":"percent", "minimumFractionDigits": 1, "maximumFractionDigits": 1}',
|
|
50
51
|
"data-tick-rotation": u = 0,
|
|
51
52
|
"data-tick-color": mt = "rgb(92,93,99)",
|
|
52
53
|
"data-measures": pt = "{}",
|
|
53
|
-
"data-format":
|
|
54
|
+
"data-format": br = "{}",
|
|
54
55
|
"data-csv": ht = "",
|
|
55
56
|
"data-margin-left": gt = 50,
|
|
56
57
|
"data-margin-top": ft = 25,
|
|
@@ -62,39 +63,39 @@ const dr = (R) => {
|
|
|
62
63
|
"data-filters": Lt = "[]",
|
|
63
64
|
//filters
|
|
64
65
|
"data-tooltip-html": yt = "",
|
|
65
|
-
"data-layout":
|
|
66
|
+
"data-layout": ee = "vertical",
|
|
66
67
|
"data-reverse": Le = "false",
|
|
67
|
-
"data-offset-y":
|
|
68
|
+
"data-offset-y": Tt = "-40",
|
|
68
69
|
"data-line-layer-enabled": ye = "false",
|
|
69
70
|
//"data-csv-line-layer-data": csvLineLayerData = "",
|
|
70
71
|
//"data-csv-line-color": lineColor = "#000000",
|
|
71
72
|
//"data-csv-line-tooltip": lineTooltip = "",
|
|
72
73
|
//"data-csv-line-title": lineTitle = "",
|
|
73
|
-
"data-overlays":
|
|
74
|
-
"data-max-value":
|
|
75
|
-
"data-value-scale":
|
|
76
|
-
"data-swap":
|
|
77
|
-
"data-no-data-message":
|
|
74
|
+
"data-overlays": kt = "[]",
|
|
75
|
+
"data-max-value": Ct = "auto",
|
|
76
|
+
"data-value-scale": Mt = "linear",
|
|
77
|
+
"data-swap": U = "false",
|
|
78
|
+
"data-no-data-message": It = "No data matches your selection",
|
|
78
79
|
"data-bar-color": Dt = "rgb(0,0,0)",
|
|
79
|
-
"data-override-tick-color":
|
|
80
|
-
"data-fixed-min-value":
|
|
81
|
-
"data-fixed-max-value":
|
|
80
|
+
"data-override-tick-color": Te = "false",
|
|
81
|
+
"data-fixed-min-value": At = 0,
|
|
82
|
+
"data-fixed-max-value": Rt = 0,
|
|
82
83
|
"data-bar-padding": Ft = 0.15,
|
|
83
84
|
"data-bar-label-position": Bt = "middle",
|
|
84
85
|
"data-line-label-position": Pt = "none",
|
|
85
|
-
"data-show-grid":
|
|
86
|
-
"data-include-overall":
|
|
86
|
+
"data-show-grid": ke = "true",
|
|
87
|
+
"data-include-overall": Ce = "false",
|
|
87
88
|
"data-bar-inner-padding": Et = 0.7,
|
|
88
89
|
"data-x-label-color": Nt = "#000",
|
|
89
90
|
"data-bar-label-color": zt = "#000",
|
|
90
|
-
"data-legend-label-color":
|
|
91
|
-
"data-tooltip-enabled":
|
|
92
|
-
"data-use-check-box-background":
|
|
91
|
+
"data-legend-label-color": Vt = "#000",
|
|
92
|
+
"data-tooltip-enabled": Me = "true",
|
|
93
|
+
"data-use-check-box-background": Ie = "false",
|
|
93
94
|
"data-use-label-background": De = "true",
|
|
94
|
-
"data-highlight-xaxis-line":
|
|
95
|
-
"data-show-tick-line":
|
|
95
|
+
"data-highlight-xaxis-line": Ae = "false",
|
|
96
|
+
"data-show-tick-line": Re = "true",
|
|
96
97
|
"data-show-right-axis": Fe = "true",
|
|
97
|
-
"data-manual-colors":
|
|
98
|
+
"data-manual-colors": Gt = "{}",
|
|
98
99
|
"data-right-legend": Xt = "",
|
|
99
100
|
"data-offset-right": Ut = "40",
|
|
100
101
|
"data-offset-bottom": $t = "40",
|
|
@@ -118,25 +119,25 @@ const dr = (R) => {
|
|
|
118
119
|
"data-group-total-label": ea = "",
|
|
119
120
|
"data-group-total-format": ta = "{}",
|
|
120
121
|
"data-group-total-label-offset": aa,
|
|
121
|
-
"data-group-total-fixed-position":
|
|
122
|
-
"data-tooltip-enable-markdown":
|
|
123
|
-
"data-y-axis-tick-values":
|
|
122
|
+
"data-group-total-fixed-position": Ve = "false",
|
|
123
|
+
"data-tooltip-enable-markdown": $ = "false",
|
|
124
|
+
"data-y-axis-tick-values": Ge = "10",
|
|
124
125
|
"data-x-axis-tick-values": Xe = "10",
|
|
125
|
-
"data-enable-grid-y":
|
|
126
|
-
"data-enable-grid-x":
|
|
126
|
+
"data-enable-grid-y": y = "true",
|
|
127
|
+
"data-enable-grid-x": T = "false",
|
|
127
128
|
"data-offset-text": ra = 0,
|
|
128
|
-
"data-overall-label":
|
|
129
|
+
"data-overall-label": te = "Overall",
|
|
129
130
|
"data-min-max-clamp": oa = "false",
|
|
130
131
|
"data-reverse-legend": Ue = "false",
|
|
131
132
|
"data-sort": $e = "default",
|
|
132
|
-
"data-sort-reverse":
|
|
133
|
+
"data-sort-reverse": S = "false",
|
|
133
134
|
"data-sort-second-dimension": Se = "default",
|
|
134
|
-
"data-sort-reverse-second-dimension":
|
|
135
|
+
"data-sort-reverse-second-dimension": H = "false",
|
|
135
136
|
"data-radar-curve": na = "linearClosed",
|
|
136
|
-
"data-radar-fill-opacity":
|
|
137
|
-
"data-radar-border-width":
|
|
138
|
-
"data-radar-grid-levels":
|
|
139
|
-
"data-radar-grid-shape":
|
|
137
|
+
"data-radar-fill-opacity": sa = 0.25,
|
|
138
|
+
"data-radar-border-width": ia = 2,
|
|
139
|
+
"data-radar-grid-levels": la = 3,
|
|
140
|
+
"data-radar-grid-shape": da = "circular",
|
|
140
141
|
"data-radar-grid-label-offset": ca = 36,
|
|
141
142
|
"data-radar-enable-dots": He = "true",
|
|
142
143
|
"data-radar-dot-size": ua = 8,
|
|
@@ -144,36 +145,38 @@ const dr = (R) => {
|
|
|
144
145
|
"data-radar-dot-label-offset": ma = -12,
|
|
145
146
|
"data-mobile-customization": Ye = "{}",
|
|
146
147
|
"data-show-percentage": qe = "false",
|
|
147
|
-
"data-preview-mode":
|
|
148
|
+
"data-preview-mode": h = "Desktop",
|
|
148
149
|
"data-wait-for-filters": pa = "false",
|
|
149
150
|
"data-line-curve": ha = "linear",
|
|
150
151
|
"data-show-legends-in-columns": Je = "false",
|
|
151
152
|
"data-number-of-legend-columns": ga = 4,
|
|
152
|
-
pageModuleProps:
|
|
153
|
-
} =
|
|
154
|
-
const fa =
|
|
153
|
+
pageModuleProps: g
|
|
154
|
+
} = v;
|
|
155
|
+
const fa = i, t = JSON.parse(
|
|
155
156
|
decodeURIComponent(Ye)
|
|
156
|
-
), [
|
|
157
|
+
), [ae, ba] = V(
|
|
157
158
|
window.innerWidth <= 1250
|
|
158
|
-
),
|
|
159
|
-
|
|
160
|
-
const wa = ["Tablet"].includes(
|
|
161
|
-
const e = window.matchMedia(
|
|
159
|
+
), b = ae && ((t == null ? void 0 : t.showCustomization) ?? !1);
|
|
160
|
+
g != null && g.previewMode && (g != null && g.editing) && (h = g.previewMode, i = g.editing);
|
|
161
|
+
const wa = ["Tablet"].includes(h) && i, xa = ["Mobile"].includes(h) && i, va = ["Desktop"].includes(h) && i, d = b && h !== "Desktop", c = b && !i, re = () => {
|
|
162
|
+
const e = window.matchMedia(
|
|
163
|
+
"(min-width: 768px) and (max-width: 1250px)"
|
|
164
|
+
).matches, r = window.matchMedia("(max-width: 767px)").matches;
|
|
162
165
|
switch (!0) {
|
|
163
166
|
case va:
|
|
164
167
|
return u;
|
|
165
168
|
case wa:
|
|
166
|
-
return
|
|
169
|
+
return b ? (t == null ? void 0 : t.tabletXAxisTextRotation) ?? u : u;
|
|
167
170
|
case xa:
|
|
168
|
-
return
|
|
171
|
+
return b ? (t == null ? void 0 : t.mobileXAxisTextRotation) ?? u : u;
|
|
169
172
|
case e:
|
|
170
|
-
return
|
|
171
|
-
case
|
|
172
|
-
return
|
|
173
|
+
return b ? (t == null ? void 0 : t.tabletXAxisTextRotation) ?? u : u;
|
|
174
|
+
case r:
|
|
175
|
+
return b ? (t == null ? void 0 : t.mobileXAxisTextRotation) ?? u : u;
|
|
173
176
|
default:
|
|
174
177
|
return u;
|
|
175
178
|
}
|
|
176
|
-
}, La =
|
|
179
|
+
}, La = re(), [ya, _e] = V(La), Ke = v.intl.locale, W = Qa(null), Qe = (e) => {
|
|
177
180
|
try {
|
|
178
181
|
return fa ? e : decodeURIComponent(e);
|
|
179
182
|
} catch {
|
|
@@ -186,170 +189,185 @@ const dr = (R) => {
|
|
|
186
189
|
console.error(`error parsing value:${e}`);
|
|
187
190
|
}
|
|
188
191
|
return null;
|
|
189
|
-
},
|
|
192
|
+
}, Ta = () => {
|
|
193
|
+
const e = k(Gt);
|
|
194
|
+
if (!e) return null;
|
|
195
|
+
const r = e[o];
|
|
196
|
+
if (o === "csv" && r && j === "manual") {
|
|
197
|
+
if (r[E] !== void 0)
|
|
198
|
+
return r;
|
|
199
|
+
if (typeof r == "object" && r !== null && !Array.isArray(r) && Object.values(r).some(
|
|
200
|
+
(m) => typeof m == "string" && (m.startsWith("#") || m.startsWith("rgb"))
|
|
201
|
+
))
|
|
202
|
+
return { [E]: r };
|
|
203
|
+
}
|
|
204
|
+
return r;
|
|
205
|
+
}, ka = () => k(pt), Ze = () => {
|
|
190
206
|
var e;
|
|
191
|
-
if (a != null && a[
|
|
192
|
-
let
|
|
193
|
-
if (!
|
|
194
|
-
const
|
|
195
|
-
for (let
|
|
196
|
-
if (a != null && a[
|
|
197
|
-
|
|
207
|
+
if (a != null && a[o]) {
|
|
208
|
+
let r = (e = a == null ? void 0 : a[o]) == null ? void 0 : e.format;
|
|
209
|
+
if (!r) {
|
|
210
|
+
const n = Object.keys(a == null ? void 0 : a[o]);
|
|
211
|
+
for (let m = 0; m < n.length; m++)
|
|
212
|
+
if (a != null && a[o][n[m]].selected && (a != null && a[o][n[m]].format)) {
|
|
213
|
+
r = a == null ? void 0 : a[o][n[m]].format;
|
|
198
214
|
break;
|
|
199
215
|
}
|
|
200
216
|
}
|
|
201
|
-
return
|
|
217
|
+
return r;
|
|
202
218
|
}
|
|
203
219
|
return a != null && a.csv ? a.csv.format : null;
|
|
204
|
-
},
|
|
220
|
+
}, Ca = () => {
|
|
205
221
|
let e = null;
|
|
206
|
-
return a != null && a[
|
|
207
|
-
},
|
|
222
|
+
return a != null && a[o] ? a[o].useCustomAxisFormat && a[o].customFormat && (e = a[o].customFormat) : a != null && a.csv && a.csv.useCustomAxisFormat && a.csv.customFormat && (e = a.csv.customFormat), e;
|
|
223
|
+
}, Ma = () => a != null && a[o] ? Object.keys(a[o]).map((e) => ({ value: e, ...a[o][e] })).filter((e) => e.selected).map((e) => e.value) : [], Oe = () => {
|
|
208
224
|
const e = {};
|
|
209
|
-
return a != null && a[
|
|
210
|
-
e[
|
|
225
|
+
return a != null && a[o] && Object.keys(a[o]).map((n) => ({ value: n, ...a[o][n] })).filter((n) => n.selected && n.hasCustomLabel).forEach((n) => {
|
|
226
|
+
e[n.value] = n.customLabel;
|
|
211
227
|
}), e;
|
|
212
|
-
},
|
|
213
|
-
(e) => a[
|
|
228
|
+
}, Ia = () => a != null && a[o] ? Object.keys(a[o]).filter(
|
|
229
|
+
(e) => a[o][e].allowSelection
|
|
214
230
|
) : [];
|
|
215
|
-
let a =
|
|
216
|
-
const Da =
|
|
217
|
-
let
|
|
218
|
-
if (
|
|
219
|
-
const e = Object.keys(
|
|
220
|
-
a =
|
|
231
|
+
let a = ka(), w = Ma(), f = Ze();
|
|
232
|
+
const Da = Ia();
|
|
233
|
+
let oe = lt, ne = Xt, se = Qe(yt);
|
|
234
|
+
if (l != null && l[o]) {
|
|
235
|
+
const e = Object.keys(l[o].measures).map((r) => ({ value: r, ...l[o].measures[r] })).filter((r) => r.selected).map((r) => r.value);
|
|
236
|
+
a = l, w = e, f = Ze(), oe = l.leftTitle, ne = l.rightTitle, l.customTooltip && (se = l.customTooltip);
|
|
221
237
|
}
|
|
222
|
-
const
|
|
223
|
-
style:
|
|
224
|
-
notation:
|
|
225
|
-
currency:
|
|
226
|
-
minimumFractionDigits: parseInt(
|
|
227
|
-
maximumFractionDigits: parseInt(
|
|
238
|
+
const Aa = f ? {
|
|
239
|
+
style: f.style === "compacted" ? "decimal" : f.style,
|
|
240
|
+
notation: f.style === "compacted" ? "compact" : "standard",
|
|
241
|
+
currency: f.currency,
|
|
242
|
+
minimumFractionDigits: parseInt(f.minimumFractionDigits),
|
|
243
|
+
maximumFractionDigits: parseInt(f.maximumFractionDigits)
|
|
228
244
|
} : {
|
|
229
245
|
notation: "standard",
|
|
230
246
|
currency: "USD",
|
|
231
247
|
minimumFractionDigits: 2,
|
|
232
248
|
maximumFractionDigits: 2
|
|
233
|
-
},
|
|
234
|
-
style: (
|
|
235
|
-
notation: (
|
|
236
|
-
currency:
|
|
249
|
+
}, Ra = Ca(), s = k(ta), Fa = {
|
|
250
|
+
style: (s == null ? void 0 : s.style) === "compacted" ? "decimal" : s == null ? void 0 : s.style,
|
|
251
|
+
notation: (s == null ? void 0 : s.style) === "compacted" ? "compact" : "standard",
|
|
252
|
+
currency: s == null ? void 0 : s.currency,
|
|
237
253
|
minimumFractionDigits: parseInt(
|
|
238
|
-
|
|
254
|
+
s == null ? void 0 : s.minimumFractionDigits
|
|
239
255
|
),
|
|
240
256
|
maximumFractionDigits: parseInt(
|
|
241
|
-
|
|
257
|
+
s == null ? void 0 : s.maximumFractionDigits
|
|
242
258
|
)
|
|
243
|
-
}, [Ba,
|
|
244
|
-
scheme:
|
|
245
|
-
colorBy:
|
|
246
|
-
},
|
|
259
|
+
}, [Ba, wr] = V(ve), Pa = i ? ve : Ba, Ea = {
|
|
260
|
+
scheme: j,
|
|
261
|
+
colorBy: E
|
|
262
|
+
}, Y = i ? X - 80 : X, Na = () => (d || c) && !(t != null && t.showXAxisTitle) ? "" : ct, za = () => d || c ? t != null && t.showYAxisTitle ? oe : "" : oe, Va = () => d || c ? t != null && t.showRightAxisTitle ? ne : "" : ne, Ga = {
|
|
247
263
|
left: za(),
|
|
248
264
|
bottom: Na(),
|
|
249
|
-
right:
|
|
250
|
-
},
|
|
265
|
+
right: Va()
|
|
266
|
+
}, q = (e) => {
|
|
251
267
|
if (e === "true" || e === !0)
|
|
252
268
|
return !0;
|
|
253
269
|
if (e === "false" || e === !1)
|
|
254
270
|
return !1;
|
|
255
271
|
}, je = () => {
|
|
256
|
-
|
|
257
|
-
}, Xa = () =>
|
|
258
|
-
|
|
272
|
+
q(T) && !q(y) ? (T = !1, y = !0) : !q(T) && q(y) && (T = !0, y = !1);
|
|
273
|
+
}, Xa = () => ee === "horizontal" ? (je(), "vertical") : (je(), "horizontal"), Ua = () => t != null && t.chartLayoutOverride ? Xa() : ee, J = (e, r, n) => e ? Number.parseInt(r) ?? n : n, et = (e, r, n) => e ? r ?? n : n;
|
|
274
|
+
me(() => {
|
|
259
275
|
const e = () => {
|
|
260
276
|
ba(window.innerWidth <= 1250);
|
|
261
|
-
const
|
|
262
|
-
_e(
|
|
277
|
+
const r = re();
|
|
278
|
+
_e(r);
|
|
263
279
|
};
|
|
264
|
-
return window.addEventListener("resize", e), _e(
|
|
280
|
+
return window.addEventListener("resize", e), _e(re()), () => {
|
|
265
281
|
window.removeEventListener("resize", e);
|
|
266
282
|
};
|
|
267
283
|
}, [
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
284
|
+
i,
|
|
285
|
+
h,
|
|
286
|
+
b,
|
|
271
287
|
u,
|
|
272
288
|
t == null ? void 0 : t.tabletXAxisTextRotation,
|
|
273
289
|
t == null ? void 0 : t.mobileXAxisTextRotation
|
|
274
290
|
]);
|
|
275
291
|
const $a = () => {
|
|
276
|
-
const e = ["tablet", "mobile", "midTablet"].includes(
|
|
277
|
-
|
|
292
|
+
const e = ["tablet", "mobile", "midTablet"].includes(
|
|
293
|
+
ja()
|
|
294
|
+
);
|
|
295
|
+
return i && h === "Desktop" ? we : e ? "bottom" : we;
|
|
278
296
|
}, tt = {
|
|
279
|
-
app:
|
|
280
|
-
editing:
|
|
297
|
+
app: o,
|
|
298
|
+
editing: i,
|
|
281
299
|
tickColor: decodeURIComponent(mt),
|
|
282
300
|
tickRotation: ya,
|
|
283
|
-
layout:
|
|
301
|
+
layout: d || c ? Ua() : ee,
|
|
284
302
|
reverse: Le == !0 || Le == "true",
|
|
285
303
|
showLegends: xe == !0 || xe == "true",
|
|
286
|
-
legendLabel:
|
|
287
|
-
swap:
|
|
288
|
-
showGrid:
|
|
304
|
+
legendLabel: dt,
|
|
305
|
+
swap: U == !0 || U == "true",
|
|
306
|
+
showGrid: ke == !0 || ke == "true",
|
|
289
307
|
showPercentage: qe == !0 || qe == "true",
|
|
290
|
-
marginLeft:
|
|
291
|
-
|
|
308
|
+
marginLeft: J(
|
|
309
|
+
d || c,
|
|
292
310
|
Number.parseInt(t == null ? void 0 : t.marginLeft),
|
|
293
311
|
parseInt(gt)
|
|
294
312
|
),
|
|
295
|
-
marginTop:
|
|
296
|
-
|
|
313
|
+
marginTop: J(
|
|
314
|
+
d || c,
|
|
297
315
|
Number.parseInt(t == null ? void 0 : t.marginTop),
|
|
298
316
|
parseInt(ft)
|
|
299
317
|
),
|
|
300
|
-
marginRight:
|
|
301
|
-
|
|
318
|
+
marginRight: J(
|
|
319
|
+
d || c,
|
|
302
320
|
Number.parseInt(t == null ? void 0 : t.marginRight),
|
|
303
321
|
Number.parseInt(bt)
|
|
304
322
|
),
|
|
305
|
-
marginBottom:
|
|
306
|
-
|
|
323
|
+
marginBottom: J(
|
|
324
|
+
d || c,
|
|
307
325
|
Number.parseInt(t == null ? void 0 : t.marginBottom),
|
|
308
326
|
Number.parseInt(wt)
|
|
309
327
|
),
|
|
310
|
-
height: `${
|
|
328
|
+
height: `${Y}px`,
|
|
311
329
|
legendPosition: $a(),
|
|
312
|
-
legends:
|
|
313
|
-
tooltip:
|
|
330
|
+
legends: Ga,
|
|
331
|
+
tooltip: $ == !0 || $ == "true" ? se : se.replace(/\r\n/g, "<hr/>").replace(/[\r\n]/g, "<hr/>"),
|
|
314
332
|
colors: Ea,
|
|
315
|
-
groupMode:
|
|
316
|
-
format:
|
|
333
|
+
groupMode: it,
|
|
334
|
+
format: Aa,
|
|
317
335
|
startAngle: xt,
|
|
318
336
|
endAngle: vt,
|
|
319
|
-
offsetY:
|
|
337
|
+
offsetY: Tt,
|
|
320
338
|
// csvLineLayerData,
|
|
321
339
|
// lineColor: decodeURIComponent(lineColor),
|
|
322
340
|
// lineTooltip,
|
|
323
341
|
// lineTitle,
|
|
324
|
-
maxValue:
|
|
325
|
-
valueScale:
|
|
326
|
-
categories:
|
|
342
|
+
maxValue: Ct,
|
|
343
|
+
valueScale: Mt,
|
|
344
|
+
categories: G,
|
|
327
345
|
lineLayerEnabled: ye == !0 || ye == "true",
|
|
328
|
-
overlays: k(
|
|
346
|
+
overlays: k(kt) || [],
|
|
329
347
|
barColor: decodeURIComponent(Dt),
|
|
330
|
-
overrideTickColor:
|
|
331
|
-
fixedMinValue:
|
|
332
|
-
fixedMaxValue:
|
|
348
|
+
overrideTickColor: Te == !0 || Te == "true",
|
|
349
|
+
fixedMinValue: At,
|
|
350
|
+
fixedMaxValue: Rt,
|
|
333
351
|
barPadding: et(
|
|
334
|
-
|
|
352
|
+
d || c,
|
|
335
353
|
t == null ? void 0 : t.barPadding,
|
|
336
354
|
Ft
|
|
337
355
|
),
|
|
338
356
|
barLabelPosition: Bt,
|
|
339
357
|
lineLabelPosition: Pt,
|
|
340
358
|
barInnerPadding: et(
|
|
341
|
-
|
|
359
|
+
d || c,
|
|
342
360
|
t == null ? void 0 : t.barInnerPadding,
|
|
343
361
|
Et
|
|
344
362
|
),
|
|
345
363
|
xLabelColor: decodeURIComponent(Nt),
|
|
346
364
|
barLabelColor: decodeURIComponent(zt),
|
|
347
|
-
legendLabelColor: decodeURIComponent(
|
|
348
|
-
tooltipEnabled:
|
|
365
|
+
legendLabelColor: decodeURIComponent(Vt),
|
|
366
|
+
tooltipEnabled: Me == !0 || Me == "true",
|
|
349
367
|
legendLabelBack: De == !0 || De == "true",
|
|
350
|
-
legendCheckBack:
|
|
351
|
-
highlightXAxisLine:
|
|
352
|
-
showTickLine:
|
|
368
|
+
legendCheckBack: Ie == !0 || Ie == "true",
|
|
369
|
+
highlightXAxisLine: Ae == !0 || Ae == "true",
|
|
370
|
+
showTickLine: Re == !0 || Re == "true",
|
|
353
371
|
showRightAxis: Fe == !0 || Fe == "true",
|
|
354
372
|
offsetRight: Ut,
|
|
355
373
|
offsetBottom: $t,
|
|
@@ -364,7 +382,7 @@ const dr = (R) => {
|
|
|
364
382
|
groupTotalLabel: ea,
|
|
365
383
|
groupTotalFormat: Fa,
|
|
366
384
|
groupTotalOffset: aa,
|
|
367
|
-
groupTotalFixedPosition:
|
|
385
|
+
groupTotalFixedPosition: Ve == !0 || Ve == "true",
|
|
368
386
|
centerLabel: Jt,
|
|
369
387
|
showArcLabels: Ee == !0 || Ee == "true",
|
|
370
388
|
showArcLinkLabels: Ne == !0 || Ne == "true",
|
|
@@ -374,25 +392,25 @@ const dr = (R) => {
|
|
|
374
392
|
centerLabelXOffset: Zt,
|
|
375
393
|
centerLabelYOffset: Ot,
|
|
376
394
|
userMeasures: Da,
|
|
377
|
-
tooltipEnableMarkdown:
|
|
378
|
-
yAxisTickValues:
|
|
379
|
-
xAxisTickValues:
|
|
380
|
-
enableGridY:
|
|
381
|
-
enableGridX:
|
|
395
|
+
tooltipEnableMarkdown: $ == !0 || $ == "true",
|
|
396
|
+
yAxisTickValues: d || c ? t.yAxisTickValues ?? Ge : Ge,
|
|
397
|
+
xAxisTickValues: d || c ? t.xAxisTickValues ?? Xe : Xe,
|
|
398
|
+
enableGridY: y == !0 || y == "true",
|
|
399
|
+
enableGridX: T == !0 || T == "true",
|
|
382
400
|
offsetText: ra,
|
|
383
|
-
selectedMeasures:
|
|
384
|
-
overallLabel:
|
|
401
|
+
selectedMeasures: w,
|
|
402
|
+
overallLabel: te,
|
|
385
403
|
minMaxClamp: oa,
|
|
386
404
|
reverseLegend: Ue == !0 || Ue == "true",
|
|
387
|
-
customAxisFormat:
|
|
405
|
+
customAxisFormat: Ra,
|
|
388
406
|
sort: $e,
|
|
389
|
-
sortReverse:
|
|
390
|
-
sortReverseSecondDimension:
|
|
407
|
+
sortReverse: S == !0 || S == "true",
|
|
408
|
+
sortReverseSecondDimension: H == !0 || H == "true",
|
|
391
409
|
radarCurve: na,
|
|
392
|
-
radarFillOpacity:
|
|
393
|
-
radarBorderWidth:
|
|
394
|
-
radarGridLevels:
|
|
395
|
-
radarGridShape:
|
|
410
|
+
radarFillOpacity: sa,
|
|
411
|
+
radarBorderWidth: ia,
|
|
412
|
+
radarGridLevels: la,
|
|
413
|
+
radarGridShape: da,
|
|
396
414
|
radarGridLabelOffset: ca,
|
|
397
415
|
radarEnableDots: He == !0 || He == "true",
|
|
398
416
|
radarDotSize: ua,
|
|
@@ -400,91 +418,93 @@ const dr = (R) => {
|
|
|
400
418
|
radarDotLabelOffset: ma,
|
|
401
419
|
sortSecondDimension: Se,
|
|
402
420
|
mobileCustomization: Ye,
|
|
403
|
-
dimension1:
|
|
404
|
-
previewMode:
|
|
421
|
+
dimension1: P,
|
|
422
|
+
previewMode: h,
|
|
405
423
|
lineCurve: ha,
|
|
406
424
|
showLegendsInColumns: Je == !0 || Je == "true",
|
|
407
425
|
numberOfLegendColumns: parseInt(ga) || 4
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
e.value != null && e.value.filter((
|
|
411
|
-
}),
|
|
412
|
-
let
|
|
413
|
-
if (
|
|
414
|
-
|
|
426
|
+
}, ie = {}, le = k(Lt) || {};
|
|
427
|
+
le && le.forEach && le.forEach((e) => {
|
|
428
|
+
e.value != null && e.value.filter((r) => r != null && r.toString().trim() != "").length > 0 && (ie[e.param] = e.value);
|
|
429
|
+
}), ge && (ie.dvzProxyDatasetId = ge);
|
|
430
|
+
let C = null, M = null;
|
|
431
|
+
if (o === "csv")
|
|
432
|
+
C = nr;
|
|
415
433
|
else
|
|
416
|
-
switch (
|
|
434
|
+
switch (B) {
|
|
417
435
|
case "line":
|
|
418
|
-
|
|
436
|
+
C = Z.LineDataFrame;
|
|
419
437
|
break;
|
|
420
438
|
case "pie":
|
|
421
|
-
|
|
439
|
+
C = Z.PieDataFrame;
|
|
422
440
|
break;
|
|
423
441
|
case "radar":
|
|
424
|
-
|
|
442
|
+
C = Z.BarDataFrame;
|
|
425
443
|
break;
|
|
426
444
|
default:
|
|
427
|
-
|
|
445
|
+
C = Z.BarDataFrame;
|
|
428
446
|
break;
|
|
429
447
|
}
|
|
430
|
-
let
|
|
431
|
-
switch (
|
|
448
|
+
let I = !1;
|
|
449
|
+
switch (B) {
|
|
432
450
|
case "bar":
|
|
433
|
-
|
|
451
|
+
M = ar, I = o != "csv" && P == "none" && w.length == 0;
|
|
434
452
|
break;
|
|
435
453
|
case "line":
|
|
436
|
-
|
|
454
|
+
M = rr, I = o !== "csv" && (w.length === 0 || P === "none");
|
|
437
455
|
break;
|
|
438
456
|
case "pie":
|
|
439
|
-
|
|
457
|
+
I = o != "csv" && w.length == 0, M = er;
|
|
440
458
|
break;
|
|
441
459
|
case "radar":
|
|
442
|
-
|
|
460
|
+
I = o != "csv" && w.length == 0, M = tr;
|
|
443
461
|
break;
|
|
444
462
|
default:
|
|
445
|
-
|
|
463
|
+
M = /* @__PURE__ */ p("div", { children: "No Chart" });
|
|
446
464
|
break;
|
|
447
465
|
}
|
|
448
|
-
const Sa = ut === "true",
|
|
449
|
-
|
|
450
|
-
const [at, Ha] =
|
|
466
|
+
const Sa = ut === "true", N = [];
|
|
467
|
+
P != "none" && N.push(P), be != "none" && N.push(be);
|
|
468
|
+
const [at, Ha] = V(0), [xr, Wa] = V(rt());
|
|
451
469
|
function rt() {
|
|
452
470
|
var e;
|
|
453
471
|
return ((e = window.screen.orientation) == null ? void 0 : e.type) || (window.innerWidth > window.innerHeight ? "landscape-primary" : "portrait-primary");
|
|
454
472
|
}
|
|
455
|
-
return
|
|
473
|
+
return me(() => {
|
|
456
474
|
const e = setTimeout(() => {
|
|
457
|
-
|
|
458
|
-
const
|
|
475
|
+
ae && (() => {
|
|
476
|
+
const n = W.current.querySelector(
|
|
459
477
|
".legends.container.has-standard-12-font-size.bottom"
|
|
460
|
-
) ||
|
|
461
|
-
|
|
462
|
-
|
|
478
|
+
) || W.current.querySelector(
|
|
479
|
+
".legends.container.items-section:not(.legends.container.top .items-section)"
|
|
480
|
+
);
|
|
481
|
+
if (!n || n.closest(".legends.container.top")) return;
|
|
482
|
+
const { clientHeight: m } = n, z = window.getComputedStyle(n), Ya = parseInt(z.marginTop), ot = parseInt(z.marginBottom), qa = parseInt(z.paddingTop), Ja = parseInt(z.paddingBottom), _a = m + Ya + ot + qa + Ja, nt = n.closest(
|
|
463
483
|
".ui.fluid.container.content"
|
|
464
484
|
);
|
|
465
485
|
if (nt) {
|
|
466
486
|
const x = nt.querySelector(".data-source");
|
|
467
487
|
if (x) {
|
|
468
|
-
const
|
|
469
|
-
if (
|
|
470
|
-
if (
|
|
471
|
-
const
|
|
472
|
-
if (
|
|
473
|
-
let
|
|
474
|
-
|
|
488
|
+
const D = x.getBoundingClientRect(), A = n.getBoundingClientRect();
|
|
489
|
+
if (A.bottom !== 0 && D.top !== 0) {
|
|
490
|
+
if (n.textContent.trim() === "") return;
|
|
491
|
+
const _ = ot, K = A.bottom + _, ce = window.getComputedStyle(x), Q = parseFloat(ce.marginTop) || 0, R = D.top - Q;
|
|
492
|
+
if (K > R) {
|
|
493
|
+
let F = K - R;
|
|
494
|
+
F < 5 && (F += 1), x.style.marginTop = `${F + 1}px`;
|
|
475
495
|
}
|
|
476
496
|
} else
|
|
477
497
|
setTimeout(() => {
|
|
478
|
-
|
|
498
|
+
D.top < A.bottom && (x.style.marginTop = `${A.bottom - D.top + 1}px`);
|
|
479
499
|
}, 1e3);
|
|
480
500
|
}
|
|
481
501
|
}
|
|
482
|
-
const
|
|
483
|
-
if (
|
|
484
|
-
const x =
|
|
485
|
-
if (
|
|
486
|
-
const
|
|
487
|
-
|
|
502
|
+
const de = n.closest(".chart.container");
|
|
503
|
+
if (de) {
|
|
504
|
+
const x = de.getBoundingClientRect(), D = window.getComputedStyle(de), A = Number.parseFloat(D.marginBottom) || 0, _ = x.bottom + A, K = n.getBoundingClientRect(), ce = Number.parseFloat(z.marginTop) || 0, Q = K.top - ce;
|
|
505
|
+
if (Q < _) {
|
|
506
|
+
const R = _ - Q, F = 200, Ka = Math.min(R + 1, F);
|
|
507
|
+
R > 0 && R < F && (n.style.marginTop = `${Ka}px`);
|
|
488
508
|
}
|
|
489
509
|
}
|
|
490
510
|
Ha(_a);
|
|
@@ -493,7 +513,7 @@ const dr = (R) => {
|
|
|
493
513
|
return () => {
|
|
494
514
|
clearTimeout(e);
|
|
495
515
|
};
|
|
496
|
-
}, [
|
|
516
|
+
}, [ae, W]), me(() => {
|
|
497
517
|
const e = () => {
|
|
498
518
|
setTimeout(() => {
|
|
499
519
|
Wa(rt());
|
|
@@ -502,68 +522,68 @@ const dr = (R) => {
|
|
|
502
522
|
return window.screen.orientation ? window.screen.orientation.addEventListener("change", e) : window.addEventListener("resize", e), () => {
|
|
503
523
|
window.screen.orientation ? window.screen.orientation.removeEventListener("change", e) : window.removeEventListener("resize", e);
|
|
504
524
|
};
|
|
505
|
-
}, []), /* @__PURE__ */
|
|
506
|
-
|
|
525
|
+
}, []), /* @__PURE__ */ p("div", { ref: W, children: /* @__PURE__ */ ue(
|
|
526
|
+
pe,
|
|
507
527
|
{
|
|
508
528
|
className: "chart container",
|
|
509
529
|
style: {
|
|
510
|
-
minHeight:
|
|
530
|
+
minHeight: B === "pie" && window.innerWidth <= 480 ? `${parseInt(X) + parseInt(at) * 0.5}px` : `${parseInt(X) + parseInt(at)}px`
|
|
511
531
|
},
|
|
512
532
|
fluid: !0,
|
|
513
533
|
children: [
|
|
514
|
-
/* @__PURE__ */
|
|
515
|
-
|
|
534
|
+
/* @__PURE__ */ p(
|
|
535
|
+
Za,
|
|
516
536
|
{
|
|
517
|
-
editing:
|
|
518
|
-
style: { height: `${
|
|
519
|
-
params:
|
|
537
|
+
editing: i,
|
|
538
|
+
style: { height: `${Y}px` },
|
|
539
|
+
params: ie,
|
|
520
540
|
waitForFilters: pa === "true",
|
|
521
|
-
app:
|
|
522
|
-
group:
|
|
541
|
+
app: o,
|
|
542
|
+
group: fe,
|
|
523
543
|
csv: ht,
|
|
524
|
-
store: [
|
|
525
|
-
source:
|
|
526
|
-
children: /* @__PURE__ */
|
|
527
|
-
|
|
544
|
+
store: [o, O, ...N],
|
|
545
|
+
source: N.join("/"),
|
|
546
|
+
children: /* @__PURE__ */ ue(
|
|
547
|
+
pe,
|
|
528
548
|
{
|
|
529
|
-
style: { height: `${
|
|
549
|
+
style: { height: `${Y}px` },
|
|
530
550
|
className: "body",
|
|
531
551
|
fluid: !0,
|
|
532
552
|
children: [
|
|
533
|
-
|
|
534
|
-
!
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
|
|
553
|
+
I && /* @__PURE__ */ p(st, { editing: i }),
|
|
554
|
+
!I && /* @__PURE__ */ ue(Oa, { children: [
|
|
555
|
+
/* @__PURE__ */ p(st, { app: o, group: fe, noDataMsg: It, children: " " }),
|
|
556
|
+
/* @__PURE__ */ p(
|
|
557
|
+
C,
|
|
538
558
|
{
|
|
539
559
|
locale: Ke,
|
|
540
|
-
colorBy:
|
|
560
|
+
colorBy: E,
|
|
541
561
|
hiddenBars: St,
|
|
542
|
-
swap:
|
|
543
|
-
type:
|
|
562
|
+
swap: U === "true" || U === !0,
|
|
563
|
+
type: B,
|
|
544
564
|
includeTotal: !0,
|
|
545
|
-
includeOverall:
|
|
546
|
-
overallLabel:
|
|
547
|
-
measures:
|
|
548
|
-
dimensions: [...
|
|
565
|
+
includeOverall: Ce === !0 || Ce === "true",
|
|
566
|
+
overallLabel: te,
|
|
567
|
+
measures: w,
|
|
568
|
+
dimensions: [...N],
|
|
549
569
|
sort: $e,
|
|
550
|
-
sortReverse:
|
|
570
|
+
sortReverse: S === !0 || S === "true",
|
|
551
571
|
sortSecondDimension: Se,
|
|
552
|
-
sortReverseSecondDimension:
|
|
572
|
+
sortReverseSecondDimension: H === !0 || H === "true",
|
|
553
573
|
customLabels: Oe(),
|
|
554
|
-
children: /* @__PURE__ */
|
|
555
|
-
|
|
574
|
+
children: /* @__PURE__ */ p(
|
|
575
|
+
sr,
|
|
556
576
|
{
|
|
557
|
-
type:
|
|
558
|
-
app:
|
|
577
|
+
type: B,
|
|
578
|
+
app: o,
|
|
559
579
|
locale: Ke,
|
|
560
|
-
overallLabel:
|
|
580
|
+
overallLabel: te,
|
|
561
581
|
customLabels: Oe(),
|
|
562
|
-
manualColors:
|
|
563
|
-
colorBy:
|
|
564
|
-
scheme:
|
|
582
|
+
manualColors: Ta(),
|
|
583
|
+
colorBy: E,
|
|
584
|
+
scheme: j,
|
|
565
585
|
barColor: tt.barColor,
|
|
566
|
-
children: /* @__PURE__ */
|
|
586
|
+
children: /* @__PURE__ */ p(M, { ...tt })
|
|
567
587
|
}
|
|
568
588
|
)
|
|
569
589
|
}
|
|
@@ -574,31 +594,23 @@ const dr = (R) => {
|
|
|
574
594
|
)
|
|
575
595
|
}
|
|
576
596
|
),
|
|
577
|
-
/* @__PURE__ */
|
|
578
|
-
Sa &&
|
|
579
|
-
|
|
597
|
+
/* @__PURE__ */ p("br", {}),
|
|
598
|
+
Sa && L && Pa === "info" && /* @__PURE__ */ p(
|
|
599
|
+
pe,
|
|
580
600
|
{
|
|
581
601
|
fluid: !0,
|
|
582
|
-
style: { height:
|
|
602
|
+
style: { height: Y + "px" },
|
|
583
603
|
className: "body",
|
|
584
|
-
children: /* @__PURE__ */
|
|
585
|
-
rr,
|
|
586
|
-
{
|
|
587
|
-
post: { content: { rendered: v } }
|
|
588
|
-
}
|
|
589
|
-
)
|
|
604
|
+
children: /* @__PURE__ */ p(or, { post: { content: { rendered: L } } })
|
|
590
605
|
}
|
|
591
606
|
)
|
|
592
607
|
]
|
|
593
608
|
}
|
|
594
609
|
) });
|
|
595
|
-
},
|
|
596
|
-
const { "data-app":
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
]), d = {};
|
|
600
|
-
return v && Object.keys(v).length > 0 && (d.injectedMeasures = v ?? {}), N && (d.pageModuleProps = N), d;
|
|
601
|
-
}, cr = {}, Gr = ir(lr, cr)(sr(dr));
|
|
610
|
+
}, cr = (v, he) => {
|
|
611
|
+
const { "data-app": i, "data-group": O } = he, L = v.getIn(["data", "measures", i, O]), G = v.getIn(["data", "pageModuleProps"]), l = {};
|
|
612
|
+
return L && Object.keys(L).length > 0 && (l.injectedMeasures = L ?? {}), G && (l.pageModuleProps = G), l;
|
|
613
|
+
}, ur = {}, Gr = ir(cr, ur)(lr(dr));
|
|
602
614
|
export {
|
|
603
615
|
Gr as default
|
|
604
616
|
};
|