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