@astrato-io/visualizations 0.10.0 → 0.10.1
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/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/VISUALIZATION_DEFINITIONS.md +65 -12
- package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
- package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
- package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
- package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
- package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
- package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
- package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
- package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
- package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
- package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
- package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
- package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
- package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
- package/chunks/defaults-Dtk7fg3C.js +3 -0
- package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
- package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
- package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
- package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
- package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
- package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
- package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
- package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
- package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
- package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
- package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
- package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
- package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
- package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
- package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
- package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
- package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
- package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
- package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
- package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
- package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
- package/chunks/standalone-B794g9pE.js +1012 -0
- package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
- package/chunks/standalone-BA2YXyJS.js +422 -0
- package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
- package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
- package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
- package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
- package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
- package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
- package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
- package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
- package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
- package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
- package/chunks/standalone-Cl0TSfqC.js +396 -0
- package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
- package/chunks/standalone-DH0xTEes.js +2 -0
- package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
- package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
- package/chunks/standalone-DcnHjNnC.js +2 -0
- package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
- package/chunks/standalone-DrHdGkY7.js +762 -0
- package/chunks/standalone-c_rROMtx.js +287 -0
- package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
- package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
- package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
- package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
- package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
- package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
- package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
- package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
- package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +19 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +1 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +54 -54
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +67 -67
- package/src/definitions/index.d.ts +7 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
- package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
- package/src/types.d.ts +28 -28
- package/chunks/defaults-cyNhn37t.js +0 -3
- package/chunks/standalone-BR2JuRIC.js +0 -422
- package/chunks/standalone-BwJqDj2Z.js +0 -396
- package/chunks/standalone-CRfDOO1x.js +0 -287
- package/chunks/standalone-DZDGX3aa.js +0 -518
- package/chunks/standalone-DhfgeJIk.js +0 -1012
- package/chunks/standalone-KMQPsNsq.js +0 -2
- package/chunks/standalone-MBLSvsrY.js +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { o as e, r as t, t as n } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { $
|
|
3
|
-
import { $ as E, Bt as D, Cn as O, Ft as k, G as A, It as j, Lt as M, Mt as N, Pt as P, Rt as F, Ut as
|
|
4
|
-
import { s as de } from "./logger-
|
|
5
|
-
import { b as q, d as fe, f as pe, l as me, s as he, u as ge, x as _e } from "./with-html-element-
|
|
6
|
-
import { _ as ve, a as ye, c as be, d as J, l as xe, m as Se, p as Ce, u as we, v as Te } from "./react-dom-
|
|
7
|
-
import { c as Ee, d as De, f as Oe, i as ke, l as Ae, n as Y, t as je, u as Me } from "./isFocusVisible-
|
|
2
|
+
import { $t as r, Bo as i, Et as a, Fc as o, Ir as s, Jn as c, Jt as l, Kn as u, Lc as d, Ni as f, Oa as p, Qa as m, Vo as h, Xn as g, es as ee, gs as te, ia as _, ji as v, ll as y, ln as b, ol as ne, qn as x, sa as S, ta as C, uc as w, un as T, ws as re } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { $ as E, Bt as D, Cn as O, Ft as k, G as A, It as j, Lt as M, Mt as N, Pt as P, Rt as F, Ut as ie, W as I, X as L, Zt as ae, c as oe, ci as se, f as R, it as z, jt as ce, nt as le, ri as B, si as V, sn as H, tt as U, u as W, v as G, zr as ue, zt as K } from "./utils-DganVptf.js";
|
|
4
|
+
import { s as de } from "./logger-DdZpR7xZ.js";
|
|
5
|
+
import { b as q, d as fe, f as pe, l as me, s as he, u as ge, x as _e } from "./with-html-element-CiIhFEa5.js";
|
|
6
|
+
import { _ as ve, a as ye, c as be, d as J, l as xe, m as Se, p as Ce, u as we, v as Te } from "./react-dom-BGP4tbXV.js";
|
|
7
|
+
import { c as Ee, d as De, f as Oe, i as ke, l as Ae, n as Y, t as je, u as Me } from "./isFocusVisible-Bu8gGZu5.js";
|
|
8
8
|
import { r as Ne, t as Pe } from "./contains-BK-sRXcB.js";
|
|
9
9
|
import { p as Fe } from "./responsive.styles-FItb913l.js";
|
|
10
10
|
import { s as Ie, t as Le, u as Re } from "./src-77e3mC7i.js";
|
|
11
11
|
import { A as ze, D as Be, F as Ve, I as He, M as Ue, P as We, R as Ge, a as Ke, g as qe, h as Je, m as Ye, t as Xe, x as Ze } from "./src-D9XogOrc.js";
|
|
12
|
-
import "./builder-
|
|
13
|
-
var X = /* @__PURE__ */ e(
|
|
12
|
+
import "./builder-C-TKA-My.js";
|
|
13
|
+
var X = /* @__PURE__ */ e(se(), 1);
|
|
14
14
|
function Qe(e) {
|
|
15
15
|
return Te("MuiSlider", e);
|
|
16
16
|
}
|
|
@@ -157,12 +157,12 @@ function _t(e) {
|
|
|
157
157
|
let e = Array(P.length);
|
|
158
158
|
for (let t = 0; t < P.length; t += 1) e[t] = P[t].value;
|
|
159
159
|
return e;
|
|
160
|
-
}, [P]), [
|
|
160
|
+
}, [P]), [ie, I] = X.useState(-1), L = X.useRef(null), ae = De(p, L), oe = (e) => (t) => {
|
|
161
161
|
let n = Number(t.currentTarget.getAttribute("data-index"));
|
|
162
|
-
je(t.target) &&
|
|
163
|
-
},
|
|
164
|
-
je(t.target) ||
|
|
165
|
-
},
|
|
162
|
+
je(t.target) && I(n), x(n), e?.onFocus?.(t);
|
|
163
|
+
}, se = (e) => (t) => {
|
|
164
|
+
je(t.target) || I(-1), x(-1), e?.onBlur?.(t);
|
|
165
|
+
}, R = (e, t) => {
|
|
166
166
|
let n = Number(e.currentTarget.getAttribute("data-index")), r = N[n], a = F.indexOf(r), o = t;
|
|
167
167
|
if (P && h == null) {
|
|
168
168
|
let e = F[F.length - 1];
|
|
@@ -173,10 +173,10 @@ function _t(e) {
|
|
|
173
173
|
let e = o;
|
|
174
174
|
o = ft(N, o, n);
|
|
175
175
|
let t = n;
|
|
176
|
-
i || (t = o.indexOf(e)), pt(
|
|
176
|
+
i || (t = o.indexOf(e)), pt(L, t);
|
|
177
177
|
}
|
|
178
|
-
A(o),
|
|
179
|
-
},
|
|
178
|
+
A(o), I(n), u && !mt(o, k) && j(e, o, n), d && d(e, O.current ?? o);
|
|
179
|
+
}, z = (e) => (t) => {
|
|
180
180
|
if ([
|
|
181
181
|
"ArrowUp",
|
|
182
182
|
"ArrowDown",
|
|
@@ -232,20 +232,20 @@ function _t(e) {
|
|
|
232
232
|
];
|
|
233
233
|
o.includes(t.key) ? r = i === 0 ? F[0] : F[i - 1] : s.includes(t.key) && (r = i === F.length - 1 ? e : F[i + 1]);
|
|
234
234
|
}
|
|
235
|
-
r != null &&
|
|
235
|
+
r != null && R(t, r);
|
|
236
236
|
}
|
|
237
237
|
e?.onKeyDown?.(t);
|
|
238
238
|
};
|
|
239
239
|
le(() => {
|
|
240
|
-
let e = Ne(Ae(
|
|
241
|
-
r && Pe(
|
|
242
|
-
}, [r]), r && y !== -1 && b(-1), r &&
|
|
240
|
+
let e = Ne(Ae(L.current));
|
|
241
|
+
r && Pe(L.current, e) && e != null && "blur" in e && e.blur();
|
|
242
|
+
}, [r]), r && y !== -1 && b(-1), r && ie !== -1 && I(-1);
|
|
243
243
|
let ce = (e) => (t) => {
|
|
244
|
-
e.onChange?.(t),
|
|
244
|
+
e.onChange?.(t), R(t, t.currentTarget.valueAsNumber);
|
|
245
245
|
}, B = X.useRef(void 0), V = f;
|
|
246
246
|
a && f === "horizontal" && (V += "-reverse");
|
|
247
247
|
let H = (e) => {
|
|
248
|
-
let { current: t } =
|
|
248
|
+
let { current: t } = L;
|
|
249
249
|
if (!t) return null;
|
|
250
250
|
let { width: n, height: r, bottom: a, left: o } = t.getBoundingClientRect(), l;
|
|
251
251
|
l = V.startsWith("vertical") ? (a - e.y) / r : (e.x - o) / n, V.includes("-reverse") && (l = 1 - l);
|
|
@@ -276,13 +276,13 @@ function _t(e) {
|
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
278
278
|
let n = H(t);
|
|
279
|
-
n && (pt(
|
|
279
|
+
n && (pt(L, n.activeIndex, b, !1), T.current = n.activeIndex, A(n.newValue), !S && w.current > tt && C(!0), u && !mt(n.newValue, k) && j(e, n.newValue, n.activeIndex));
|
|
280
280
|
}), G = Me((e) => {
|
|
281
281
|
if ("pointerId" in e && e.pointerId !== E.current) return;
|
|
282
282
|
let t = st(e, _);
|
|
283
283
|
if (C(!1), !t) return;
|
|
284
284
|
let n = H(t);
|
|
285
|
-
b(-1), e.type === "touchend" && x(-1), n && d && d(e, O.current ?? n.newValue), "pointerType" in e &&
|
|
285
|
+
b(-1), e.type === "touchend" && x(-1), n && d && d(e, O.current ?? n.newValue), "pointerType" in e && L.current?.hasPointerCapture(e.pointerId) && L.current.releasePointerCapture(e.pointerId), _.current = void 0, E.current = -1, K();
|
|
286
286
|
}), ue = Me((e) => {
|
|
287
287
|
if (r) return;
|
|
288
288
|
if (re.current) {
|
|
@@ -297,17 +297,17 @@ function _t(e) {
|
|
|
297
297
|
if (n !== !1) {
|
|
298
298
|
B.current = -1;
|
|
299
299
|
let t = H(n);
|
|
300
|
-
t && (pt(
|
|
300
|
+
t && (pt(L, t.activeIndex, b, !1), T.current = t.activeIndex, A(t.newValue), u && !mt(t.newValue, k) && j(e, t.newValue, t.activeIndex));
|
|
301
301
|
}
|
|
302
302
|
w.current = 0;
|
|
303
|
-
let i = Ae(
|
|
303
|
+
let i = Ae(L.current);
|
|
304
304
|
i.addEventListener("touchmove", W, { passive: !0 }), i.addEventListener("touchend", G, { passive: !0 });
|
|
305
305
|
}), K = X.useCallback(() => {
|
|
306
|
-
let e = Ae(
|
|
306
|
+
let e = Ae(L.current);
|
|
307
307
|
e.removeEventListener("pointermove", W), e.removeEventListener("pointerup", G), e.removeEventListener("touchmove", W), e.removeEventListener("touchend", G);
|
|
308
308
|
}, [G, W]);
|
|
309
309
|
X.useEffect(() => {
|
|
310
|
-
let e =
|
|
310
|
+
let e = L.current;
|
|
311
311
|
if (e) return e.addEventListener("touchstart", ue, { passive: !0 }), () => {
|
|
312
312
|
e.removeEventListener("touchstart", ue), D(), K();
|
|
313
313
|
};
|
|
@@ -329,14 +329,14 @@ function _t(e) {
|
|
|
329
329
|
B.current = -1;
|
|
330
330
|
let e = H(n);
|
|
331
331
|
if (e) {
|
|
332
|
-
let n =
|
|
332
|
+
let n = L.current?.querySelector(`input[type="range"][data-index="${e.activeIndex}"]`), r = Ae(L.current), i = n != null && n === Ne(r);
|
|
333
333
|
b(e.activeIndex), T.current = e.activeIndex, i ? t.preventDefault() : (D(), v.current = requestAnimationFrame(() => {
|
|
334
|
-
v.current = null, pt(
|
|
334
|
+
v.current = null, pt(L, e.activeIndex, void 0, !1);
|
|
335
335
|
})), A(e.newValue), u && !mt(e.newValue, k) && j(t, e.newValue, e.activeIndex);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
w.current = 0, E.current = t.pointerId;
|
|
339
|
-
let i = Ae(
|
|
339
|
+
let i = Ae(L.current);
|
|
340
340
|
try {
|
|
341
341
|
t.currentTarget.setPointerCapture(t.pointerId);
|
|
342
342
|
} catch {}
|
|
@@ -348,7 +348,7 @@ function _t(e) {
|
|
|
348
348
|
};
|
|
349
349
|
return {
|
|
350
350
|
...e,
|
|
351
|
-
ref:
|
|
351
|
+
ref: ae,
|
|
352
352
|
...r
|
|
353
353
|
};
|
|
354
354
|
}, me = (e) => (t) => {
|
|
@@ -379,13 +379,13 @@ function _t(e) {
|
|
|
379
379
|
axis: V,
|
|
380
380
|
axisProps: ht,
|
|
381
381
|
dragging: S,
|
|
382
|
-
focusedThumbIndex:
|
|
382
|
+
focusedThumbIndex: ie,
|
|
383
383
|
getHiddenInputProps: (n = rt) => {
|
|
384
384
|
let i = ke(n), o = {
|
|
385
385
|
onChange: ce(i),
|
|
386
|
-
onFocus:
|
|
387
|
-
onBlur:
|
|
388
|
-
onKeyDown:
|
|
386
|
+
onFocus: oe(i),
|
|
387
|
+
onBlur: se(i),
|
|
388
|
+
onKeyDown: z(i)
|
|
389
389
|
}, u = {
|
|
390
390
|
...i,
|
|
391
391
|
...o
|
|
@@ -418,7 +418,7 @@ function _t(e) {
|
|
|
418
418
|
marks: P,
|
|
419
419
|
open: ne,
|
|
420
420
|
range: M,
|
|
421
|
-
rootRef:
|
|
421
|
+
rootRef: ae,
|
|
422
422
|
trackLeap: fe,
|
|
423
423
|
trackOffset: q,
|
|
424
424
|
values: N,
|
|
@@ -428,7 +428,7 @@ function _t(e) {
|
|
|
428
428
|
var Q = ue(), vt = (e) => {
|
|
429
429
|
let { open: t } = e;
|
|
430
430
|
return {
|
|
431
|
-
offset:
|
|
431
|
+
offset: z(t && Z.valueLabelOpen),
|
|
432
432
|
circle: Z.valueLabelCircle,
|
|
433
433
|
label: Z.valueLabelLabel
|
|
434
434
|
};
|
|
@@ -436,7 +436,7 @@ var Q = ue(), vt = (e) => {
|
|
|
436
436
|
function yt(e) {
|
|
437
437
|
let { children: t, className: n, value: r } = e, i = vt(e);
|
|
438
438
|
return t ? /*#__PURE__*/ X.cloneElement(t, { className: t.props.className }, /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [t.props.children, /*#__PURE__*/ (0, Q.jsx)("span", {
|
|
439
|
-
className:
|
|
439
|
+
className: z(i.offset, n),
|
|
440
440
|
"aria-hidden": !0,
|
|
441
441
|
children: /*#__PURE__*/ (0, Q.jsx)("span", {
|
|
442
442
|
className: i.circle,
|
|
@@ -665,7 +665,7 @@ var xt = J("span", {
|
|
|
665
665
|
},
|
|
666
666
|
[`&.${Z.disabled}`]: { "&:hover": { boxShadow: "none" } },
|
|
667
667
|
...e.focusVisible && { [`&.${Z.focusVisible}`]: {
|
|
668
|
-
...
|
|
668
|
+
...L,
|
|
669
669
|
...e.focusVisible
|
|
670
670
|
} },
|
|
671
671
|
variants: [
|
|
@@ -894,11 +894,11 @@ var xt = J("span", {
|
|
|
894
894
|
track: T,
|
|
895
895
|
valueLabelDisplay: D,
|
|
896
896
|
valueLabelFormat: O
|
|
897
|
-
}, { axisProps: j, getRootProps: M, getHiddenInputProps: N, getThumbProps: P, open: F, active:
|
|
897
|
+
}, { axisProps: j, getRootProps: M, getHiddenInputProps: N, getThumbProps: P, open: F, active: ie, axis: I, focusedThumbIndex: L, range: ae, dragging: oe, marks: se, values: R, trackOffset: ce, trackLeap: le, getThumbStyle: B } = _t({
|
|
898
898
|
...A,
|
|
899
899
|
rootRef: t
|
|
900
900
|
});
|
|
901
|
-
A.marked =
|
|
901
|
+
A.marked = se.length > 0 && se.some((e) => e.label), A.dragging = oe, A.focusedThumbIndex = L;
|
|
902
902
|
let V = Ot(A), H = {
|
|
903
903
|
slots: C,
|
|
904
904
|
slotProps: S
|
|
@@ -920,8 +920,8 @@ var xt = J("span", {
|
|
|
920
920
|
elementType: Ct,
|
|
921
921
|
externalForwardedProps: H,
|
|
922
922
|
additionalProps: { style: {
|
|
923
|
-
...j[
|
|
924
|
-
...j[
|
|
923
|
+
...j[I].offset(ce),
|
|
924
|
+
...j[I].leap(le)
|
|
925
925
|
} },
|
|
926
926
|
ownerState: A,
|
|
927
927
|
className: V.track
|
|
@@ -957,9 +957,9 @@ var xt = J("span", {
|
|
|
957
957
|
children: [
|
|
958
958
|
/*#__PURE__*/ (0, Q.jsx)(G, { ...ue }),
|
|
959
959
|
/*#__PURE__*/ (0, Q.jsx)(K, { ...de }),
|
|
960
|
-
|
|
961
|
-
let n = ct(e.value, g, h), r = j[
|
|
962
|
-
return i = T === !1 ?
|
|
960
|
+
se.filter((e) => e.value >= g && e.value <= h).map((e, t) => {
|
|
961
|
+
let n = ct(e.value, g, h), r = j[I].offset(n), i;
|
|
962
|
+
return i = T === !1 ? R.includes(e.value) : T === "normal" && (ae ? e.value >= R[0] && e.value <= R[R.length - 1] : e.value <= R[0]) || T === "inverted" && (ae ? e.value <= R[0] || e.value >= R[R.length - 1] : e.value >= R[0]), /*#__PURE__*/ (0, Q.jsxs)(X.Fragment, { children: [/*#__PURE__*/ (0, Q.jsx)(he, {
|
|
963
963
|
"data-index": t,
|
|
964
964
|
...ge,
|
|
965
965
|
...!Oe(he) && { markActive: i },
|
|
@@ -967,7 +967,7 @@ var xt = J("span", {
|
|
|
967
967
|
...r,
|
|
968
968
|
...ge.style
|
|
969
969
|
},
|
|
970
|
-
className:
|
|
970
|
+
className: z(ge.className, i && V.markActive)
|
|
971
971
|
}), e.label == null ? null : /*#__PURE__*/ (0, Q.jsx)(_e, {
|
|
972
972
|
"aria-hidden": !0,
|
|
973
973
|
"data-index": t,
|
|
@@ -977,26 +977,26 @@ var xt = J("span", {
|
|
|
977
977
|
...r,
|
|
978
978
|
...ve.style
|
|
979
979
|
},
|
|
980
|
-
className:
|
|
980
|
+
className: z(V.markLabel, ve.className, i && V.markLabelActive),
|
|
981
981
|
children: e.label
|
|
982
982
|
})] }, t);
|
|
983
983
|
}),
|
|
984
|
-
|
|
985
|
-
let n = ct(e, g, h), r = j[
|
|
984
|
+
R.map((e, t) => {
|
|
985
|
+
let n = ct(e, g, h), r = j[I].offset(n), s = D === "off" ? kt : pe;
|
|
986
986
|
return /*#__PURE__*/ (0, Q.jsx)(s, {
|
|
987
987
|
...!Oe(s) && {
|
|
988
988
|
valueLabelFormat: O,
|
|
989
989
|
valueLabelDisplay: D,
|
|
990
990
|
value: typeof O == "function" ? O(x(e), t) : O,
|
|
991
991
|
index: t,
|
|
992
|
-
open: F === t ||
|
|
992
|
+
open: F === t || ie === t || D === "on",
|
|
993
993
|
disabled: d
|
|
994
994
|
},
|
|
995
995
|
...me,
|
|
996
996
|
children: /*#__PURE__*/ (0, Q.jsx)(q, {
|
|
997
997
|
"data-index": t,
|
|
998
998
|
...fe,
|
|
999
|
-
className:
|
|
999
|
+
className: z(V.thumb, fe.className, ie === t && V.active, L === t && V.focusVisible),
|
|
1000
1000
|
style: {
|
|
1001
1001
|
...r,
|
|
1002
1002
|
...B(t),
|
|
@@ -1008,7 +1008,7 @@ var xt = J("span", {
|
|
|
1008
1008
|
"aria-valuenow": x(e),
|
|
1009
1009
|
"aria-labelledby": o,
|
|
1010
1010
|
"aria-valuetext": p ? p(x(e), t) : a,
|
|
1011
|
-
value:
|
|
1011
|
+
value: R[t],
|
|
1012
1012
|
...be
|
|
1013
1013
|
})
|
|
1014
1014
|
})
|
|
@@ -1016,7 +1016,7 @@ var xt = J("span", {
|
|
|
1016
1016
|
})
|
|
1017
1017
|
]
|
|
1018
1018
|
});
|
|
1019
|
-
}), jt =
|
|
1019
|
+
}), jt = I({
|
|
1020
1020
|
container: {
|
|
1021
1021
|
marginTop: 4,
|
|
1022
1022
|
marginBottom: 4,
|
|
@@ -1036,13 +1036,13 @@ var xt = J("span", {
|
|
|
1036
1036
|
textAlign: "left",
|
|
1037
1037
|
...V.normal13,
|
|
1038
1038
|
fontFamily: "var(--font-family, Roboto)",
|
|
1039
|
-
color:
|
|
1040
|
-
backgroundColor:
|
|
1041
|
-
border: `1px solid ${
|
|
1042
|
-
boxShadow: `0px 0.5px 1px ${
|
|
1039
|
+
color: p.mainDarkNavy,
|
|
1040
|
+
backgroundColor: p.white,
|
|
1041
|
+
border: `1px solid ${p.grey3}`,
|
|
1042
|
+
boxShadow: `0px 0.5px 1px ${p.alphaBlack(.1)}`,
|
|
1043
1043
|
borderRadius: 4,
|
|
1044
1044
|
"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button": { appearance: "none" },
|
|
1045
|
-
"&:disabled": { color:
|
|
1045
|
+
"&:disabled": { color: p.grey2 },
|
|
1046
1046
|
"&.inputWithValuePicker": { paddingLeft: 35 }
|
|
1047
1047
|
},
|
|
1048
1048
|
inputSuffixVariant: { paddingRight: 28 },
|
|
@@ -1057,8 +1057,8 @@ var xt = J("span", {
|
|
|
1057
1057
|
top: 4,
|
|
1058
1058
|
...V.normal12,
|
|
1059
1059
|
fontFamily: "var(--font-family, Roboto)",
|
|
1060
|
-
color:
|
|
1061
|
-
borderLeft: `1px solid ${
|
|
1060
|
+
color: p.grey2,
|
|
1061
|
+
borderLeft: `1px solid ${p.grey5}`
|
|
1062
1062
|
},
|
|
1063
1063
|
prefixImageContainer: {
|
|
1064
1064
|
width: 16,
|
|
@@ -1405,7 +1405,7 @@ function gn() {
|
|
|
1405
1405
|
return dn(e, gn());
|
|
1406
1406
|
}, Nt.apply(e, arguments), hn(e);
|
|
1407
1407
|
}
|
|
1408
|
-
var _n = [1, 100], vn =
|
|
1408
|
+
var _n = [1, 100], vn = I({
|
|
1409
1409
|
container: {
|
|
1410
1410
|
width: "calc(100% - 20px)",
|
|
1411
1411
|
height: 32,
|
|
@@ -1437,7 +1437,7 @@ var _n = [1, 100], vn = L({
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}, `${t}-${e.from}-${e.to}`))
|
|
1439
1439
|
});
|
|
1440
|
-
}, $ = de(), bn =
|
|
1440
|
+
}, $ = de(), bn = I({
|
|
1441
1441
|
div: {
|
|
1442
1442
|
alignItems: "flex-end",
|
|
1443
1443
|
display: "flex",
|
|
@@ -1450,11 +1450,11 @@ var _n = [1, 100], vn = L({
|
|
|
1450
1450
|
},
|
|
1451
1451
|
input: {
|
|
1452
1452
|
...V.normal13,
|
|
1453
|
-
fontFamily: `var(--font-family, Roboto, ${
|
|
1454
|
-
backgroundColor:
|
|
1455
|
-
border: `1px solid ${
|
|
1453
|
+
fontFamily: `var(--font-family, Roboto, ${C})`,
|
|
1454
|
+
backgroundColor: p.white,
|
|
1455
|
+
border: `1px solid ${p.grey3}`,
|
|
1456
1456
|
borderRadius: 4,
|
|
1457
|
-
color:
|
|
1457
|
+
color: p.mainDarkNavy,
|
|
1458
1458
|
height: 24,
|
|
1459
1459
|
padding: "2px 8px",
|
|
1460
1460
|
"&:disabled": { cursor: "not-allowed" },
|
|
@@ -1489,9 +1489,9 @@ var _n = [1, 100], vn = L({
|
|
|
1489
1489
|
currency: "",
|
|
1490
1490
|
currencyIsPrefix: !0,
|
|
1491
1491
|
formatString: "",
|
|
1492
|
-
formatType:
|
|
1492
|
+
formatType: i.None,
|
|
1493
1493
|
isDateTime: !1,
|
|
1494
|
-
negativeType:
|
|
1494
|
+
negativeType: h.Symbol
|
|
1495
1495
|
},
|
|
1496
1496
|
type: "excel-format"
|
|
1497
1497
|
}, Tn = [
|
|
@@ -1499,7 +1499,7 @@ var _n = [1, 100], vn = L({
|
|
|
1499
1499
|
D,
|
|
1500
1500
|
P,
|
|
1501
1501
|
K
|
|
1502
|
-
], En =
|
|
1502
|
+
], En = s("[Slider] evaluateNumericValue", "lightred"), Dn = (e, t = wn) => {
|
|
1503
1503
|
if (!e) return null;
|
|
1504
1504
|
let { value: n, error: r } = Tn.reduce(({ value: e, error: n }, r) => {
|
|
1505
1505
|
if (n || e === null) return {
|
|
@@ -1531,30 +1531,30 @@ function On(e, t, n) {
|
|
|
1531
1531
|
if (!e) return "";
|
|
1532
1532
|
if (!n) return e || "";
|
|
1533
1533
|
let r = { ...n };
|
|
1534
|
-
return
|
|
1534
|
+
return u(r.format.formatType) && (r = b(r)), t && g(r) ? ie({
|
|
1535
1535
|
...r,
|
|
1536
1536
|
format: {
|
|
1537
1537
|
...r.format,
|
|
1538
|
-
formatType:
|
|
1538
|
+
formatType: x(e, n)
|
|
1539
1539
|
}
|
|
1540
|
-
}, e) : t ?
|
|
1540
|
+
}, e) : t ? c(e, n) : ie(r, e);
|
|
1541
1541
|
}
|
|
1542
1542
|
function kn(e) {
|
|
1543
1543
|
return e?.applied?.operator === $.FilterOperator.NotBetween || e?.pending?.operator === $.FilterOperator.NotBetween;
|
|
1544
1544
|
}
|
|
1545
1545
|
function An(e, t, n) {
|
|
1546
1546
|
let r = null, i = n, a = new Date(Math.min(e, t)), o = new Date(Math.max(e, t)), s = new Date(Math.min(e, t)), c = new Date(Math.max(e, t)), l = /* @__PURE__ */ new Date(+a), u = null;
|
|
1547
|
-
if (n ===
|
|
1548
|
-
else if (n ===
|
|
1547
|
+
if (n === f.day) l.setUTCHours(0, 0, 0, 0), c.setUTCHours(23, 59, 59, 0), u = [/* @__PURE__ */ new Date(+l), /* @__PURE__ */ new Date(+c)];
|
|
1548
|
+
else if (n === f.week) {
|
|
1549
1549
|
l.setUTCHours(0, 0, 0, 0);
|
|
1550
1550
|
let e = l.getUTCDay(), t = e === 0 ? -6 : 1 - e;
|
|
1551
1551
|
l.setUTCDate(l.getUTCDate() + t), c.setUTCHours(23, 59, 59, 0);
|
|
1552
1552
|
let n = c.getUTCDay(), r = n === 0 ? 0 : 7 - n;
|
|
1553
1553
|
c.setUTCDate(c.getUTCDate() + r), u = [/* @__PURE__ */ new Date(+l), /* @__PURE__ */ new Date(+c)];
|
|
1554
|
-
} else if (n ===
|
|
1554
|
+
} else if (n === f.month) {
|
|
1555
1555
|
for (i = null, l.setUTCHours(0, 0, 0, 0), l.setUTCDate(1), u = []; +l <= +o;) u.push(/* @__PURE__ */ new Date(+l)), l.setUTCMonth(l.getUTCMonth() + 1);
|
|
1556
1556
|
c.setUTCHours(23, 59, 59, 0), c.setUTCDate(new Date(Date.UTC(c.getUTCFullYear(), c.getUTCMonth() + 1, 0, 23, 59, 59, 0)).getUTCDate()), u.push(/* @__PURE__ */ new Date(+c));
|
|
1557
|
-
} else if (n ===
|
|
1557
|
+
} else if (n === f.year) {
|
|
1558
1558
|
for (i = null, l.setUTCHours(0, 0, 0, 0), l.setUTCDate(1), l.setUTCMonth(0), u = []; +l <= +o;) u.push(/* @__PURE__ */ new Date(+l)), l.setUTCFullYear(l.getUTCFullYear() + 1);
|
|
1559
1559
|
c.setUTCHours(23, 59, 59, 0), c.setUTCMonth(11), c.setUTCDate(31), u.push(/* @__PURE__ */ new Date(+c));
|
|
1560
1560
|
}
|
|
@@ -1569,7 +1569,7 @@ function jn(e, t) {
|
|
|
1569
1569
|
let { step: n = 1, quickSelect: r = !1, manualMinMaxEnabled: i = !1 } = e?.sliderSettings ?? {}, a = e?.sliderSettings?.range ?? {
|
|
1570
1570
|
min: 1,
|
|
1571
1571
|
max: 100
|
|
1572
|
-
}, o = e?.sliderSettings?.selectedColor ??
|
|
1572
|
+
}, o = e?.sliderSettings?.selectedColor ?? p.grey3, s = e?.sliderSettings?.nonSelectedColor ?? p.grey4;
|
|
1573
1573
|
return {
|
|
1574
1574
|
step: n,
|
|
1575
1575
|
quickSelect: r,
|
|
@@ -1581,15 +1581,15 @@ function jn(e, t) {
|
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
1583
|
var Mn = (e, t, n) => {
|
|
1584
|
-
let r =
|
|
1584
|
+
let r = ae(), i = r.engine, [a, s] = (0, X.useState)({
|
|
1585
1585
|
min: null,
|
|
1586
1586
|
max: null,
|
|
1587
1587
|
barsValues: []
|
|
1588
1588
|
});
|
|
1589
1589
|
return (0, X.useEffect)(() => (e && (async () => {
|
|
1590
1590
|
if (!e || !i || !n) return;
|
|
1591
|
-
let { manualMinMaxEnabled: a = !1 } = t ?? {}, { min:
|
|
1592
|
-
if (n?.measures?.[0] &&
|
|
1591
|
+
let { manualMinMaxEnabled: a = !1 } = t ?? {}, { min: o, max: c } = a ? t?.range ?? {} : await Fn(i, e, n), l = [];
|
|
1592
|
+
if (n?.measures?.[0] && ne(n)) {
|
|
1593
1593
|
let e = n?.sliderSettings?.numberOfBars ?? 20, t = he(r, {
|
|
1594
1594
|
...T(n.type),
|
|
1595
1595
|
...n
|
|
@@ -1598,7 +1598,7 @@ var Mn = (e, t, n) => {
|
|
|
1598
1598
|
t.dimensions?.length && (t.dimensions[0].bucketing = {
|
|
1599
1599
|
buckets: e,
|
|
1600
1600
|
maxValue: Math.ceil(c),
|
|
1601
|
-
minValue: Math.floor(
|
|
1601
|
+
minValue: Math.floor(o)
|
|
1602
1602
|
});
|
|
1603
1603
|
let { data: n } = await i.getData(t);
|
|
1604
1604
|
Object.entries(n).forEach(([e, [t, r]]) => {
|
|
@@ -1613,13 +1613,13 @@ var Mn = (e, t, n) => {
|
|
|
1613
1613
|
});
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
|
-
|
|
1617
|
-
min:
|
|
1616
|
+
s({
|
|
1617
|
+
min: o,
|
|
1618
1618
|
max: c,
|
|
1619
1619
|
barsValues: l
|
|
1620
1620
|
});
|
|
1621
1621
|
})(), () => {
|
|
1622
|
-
|
|
1622
|
+
s({
|
|
1623
1623
|
min: 1,
|
|
1624
1624
|
max: 100,
|
|
1625
1625
|
barsValues: []
|
|
@@ -1628,7 +1628,7 @@ var Mn = (e, t, n) => {
|
|
|
1628
1628
|
i,
|
|
1629
1629
|
e,
|
|
1630
1630
|
n?.type,
|
|
1631
|
-
|
|
1631
|
+
o(n?.measures?.[0]?.dataItem),
|
|
1632
1632
|
JSON.stringify(t),
|
|
1633
1633
|
n?.sliderSettings?.numberOfBars ?? 20,
|
|
1634
1634
|
JSON.stringify(n?.staticFilters?.filters),
|
|
@@ -1650,10 +1650,10 @@ async function Pn(e, t) {
|
|
|
1650
1650
|
return { filters: pe(me(t.staticFilters.filters, r, t.referencedData), t, e) };
|
|
1651
1651
|
}
|
|
1652
1652
|
async function Fn(e, t, n) {
|
|
1653
|
-
let
|
|
1653
|
+
let i = {
|
|
1654
1654
|
dimensions: [],
|
|
1655
1655
|
...await Pn(e, n),
|
|
1656
|
-
limit:
|
|
1656
|
+
limit: r(n),
|
|
1657
1657
|
measures: [{
|
|
1658
1658
|
fieldKeys: [t],
|
|
1659
1659
|
aggregation: "MIN",
|
|
@@ -1663,7 +1663,7 @@ async function Fn(e, t, n) {
|
|
|
1663
1663
|
aggregation: "MAX",
|
|
1664
1664
|
filters: []
|
|
1665
1665
|
}]
|
|
1666
|
-
}, { data: a } = await e.getData(
|
|
1666
|
+
}, { data: a } = await e.getData(i);
|
|
1667
1667
|
return {
|
|
1668
1668
|
min: typeof a[0][0] == "number" ? a[0][0] : 1,
|
|
1669
1669
|
max: typeof a[0][1] == "number" ? a[0][1] : 100
|
|
@@ -1680,30 +1680,30 @@ var In = /* @__PURE__ */ n(((e, t) => {
|
|
|
1680
1680
|
return i === void 0 && (i = t, t = void 0), i !== void 0 && (i = r(i), i = i === i ? i : 0), t !== void 0 && (t = r(t), t = t === t ? t : 0), n(r(e), t, i);
|
|
1681
1681
|
}
|
|
1682
1682
|
t.exports = i;
|
|
1683
|
-
})))()), Rn = /* @__PURE__ */ e(
|
|
1683
|
+
})))()), Rn = /* @__PURE__ */ e(a());
|
|
1684
1684
|
function zn(e) {
|
|
1685
|
-
let { min: t, max: n, data: r, type: i, vSpec: a, field: o, quickSelect: s, step: c } = e, [
|
|
1685
|
+
let { min: t, max: n, data: r, type: i, vSpec: a, field: o, quickSelect: s, step: c } = e, [u, d] = (0, X.useState)(["1", "100"]), [f, p] = (0, X.useState)(1), [h, g] = (0, X.useState)(100), [ee, te] = (0, X.useState)({
|
|
1686
1686
|
step: c,
|
|
1687
1687
|
marks: null
|
|
1688
|
-
}), [{ onRange: _ }] =
|
|
1688
|
+
}), [{ onRange: _ }] = oe(Bn(r, i, o), {
|
|
1689
1689
|
disabled: !i,
|
|
1690
1690
|
ignore: !0,
|
|
1691
1691
|
state: s ? $.SelectionState.APPLIED : $.SelectionState.PENDING,
|
|
1692
1692
|
commitHistory: s
|
|
1693
|
-
}), v =
|
|
1693
|
+
}), v = l(i), y = m(a.sliderSettings.formatting) ? void 0 : a.sliderSettings.formatting ?? void 0, b = (0, X.useCallback)((e) => [(0, Ln.default)(Number(e[0]), Number(t), Number(n)), (0, Ln.default)(Number(e[1]), Number(t), Number(n))], [t, n]), ne = (0, X.useCallback)(([e, t]) => {
|
|
1694
1694
|
let n = Dn(e, y), r = Dn(t, y);
|
|
1695
|
-
(0, Rn.default)(n) && (n = e), (0, Rn.default)(r) && (r = t),
|
|
1696
|
-
}, [
|
|
1697
|
-
c !== 0 &&
|
|
1698
|
-
}, [
|
|
1695
|
+
(0, Rn.default)(n) && (n = e), (0, Rn.default)(r) && (r = t), d([`${n}`, `${r}`]);
|
|
1696
|
+
}, [d, y]), x = (0, X.useCallback)((e, t) => {
|
|
1697
|
+
c !== 0 && d([`${t[0]}`, `${t[1]}`]);
|
|
1698
|
+
}, [d, c]), S = (0, X.useCallback)((e) => {
|
|
1699
1699
|
let t = b(e);
|
|
1700
1700
|
_(t[0], t[1]);
|
|
1701
1701
|
}, [_, b]), C = (0, X.useCallback)((e) => {
|
|
1702
1702
|
let t = Dn(e[0], y), n = Dn(e[1], y), r = b([t, n]), i = [String(r[0]), String(r[1])];
|
|
1703
|
-
S(r),
|
|
1703
|
+
S(r), d(i);
|
|
1704
1704
|
}, [
|
|
1705
1705
|
S,
|
|
1706
|
-
|
|
1706
|
+
d,
|
|
1707
1707
|
b,
|
|
1708
1708
|
y
|
|
1709
1709
|
]);
|
|
@@ -1712,15 +1712,15 @@ function zn(e) {
|
|
|
1712
1712
|
let e = t, i = n;
|
|
1713
1713
|
if (v) {
|
|
1714
1714
|
let { startValue: r, endValue: a, sliderStep: o, sliderMarks: s } = An(t, n, c);
|
|
1715
|
-
e = r, i = a,
|
|
1715
|
+
e = r, i = a, te({
|
|
1716
1716
|
step: o,
|
|
1717
1717
|
marks: s
|
|
1718
1718
|
});
|
|
1719
|
-
} else
|
|
1719
|
+
} else te({
|
|
1720
1720
|
step: c,
|
|
1721
1721
|
marks: null
|
|
1722
1722
|
});
|
|
1723
|
-
|
|
1723
|
+
p(e), g(i), d(Sn(r, e, i));
|
|
1724
1724
|
}
|
|
1725
1725
|
}, [
|
|
1726
1726
|
t,
|
|
@@ -1729,14 +1729,14 @@ function zn(e) {
|
|
|
1729
1729
|
v
|
|
1730
1730
|
]), (0, X.useEffect)(() => {
|
|
1731
1731
|
if (r) {
|
|
1732
|
-
let e = r.pending.values?.[0] ??
|
|
1733
|
-
(e !== +
|
|
1732
|
+
let e = r.pending.values?.[0] ?? f, t = r.pending.values?.[1] ?? h;
|
|
1733
|
+
(e !== +u[0] || t !== +u[1]) && d(Sn(r, f, h));
|
|
1734
1734
|
}
|
|
1735
1735
|
}, [JSON.stringify(r?.pending)]), {
|
|
1736
|
-
values:
|
|
1737
|
-
minValue:
|
|
1738
|
-
maxValue:
|
|
1739
|
-
sliderProps:
|
|
1736
|
+
values: u,
|
|
1737
|
+
minValue: f,
|
|
1738
|
+
maxValue: h,
|
|
1739
|
+
sliderProps: ee,
|
|
1740
1740
|
onRange: _,
|
|
1741
1741
|
selectRange: S,
|
|
1742
1742
|
handleChangedValues: C,
|
|
@@ -1751,7 +1751,7 @@ function Bn(e, t, n) {
|
|
|
1751
1751
|
...n,
|
|
1752
1752
|
dataType: t ?? $.FieldType.STRING,
|
|
1753
1753
|
internalKey: "",
|
|
1754
|
-
type:
|
|
1754
|
+
type: y.Dimension,
|
|
1755
1755
|
uniqueSignature: ""
|
|
1756
1756
|
},
|
|
1757
1757
|
dateLevel: e?.applied.dateLevel,
|
|
@@ -1768,42 +1768,42 @@ var Vn = ({ data: e, options: { type: t, vSpec: n } }) => {
|
|
|
1768
1768
|
field: r,
|
|
1769
1769
|
fieldKey: i
|
|
1770
1770
|
});
|
|
1771
|
-
}, Hn = ({ data: e, type: t, vSpec: n, field: r, fieldKey:
|
|
1772
|
-
let o = bn(), { ref: s, isSmallView: c } = Wn(n?.sliderSettings?.layout), [
|
|
1771
|
+
}, Hn = ({ data: e, type: t, vSpec: n, field: r, fieldKey: a }) => {
|
|
1772
|
+
let o = bn(), { ref: s, isSmallView: c } = Wn(n?.sliderSettings?.layout), [u, d] = (0, X.useState)(!1), [f, p] = (0, X.useState)(!1), { step: m, quickSelect: h, manualMinMaxEnabled: g, range: ee, overrideStyles: te, selectedColor: _, nonSelectedColor: y } = jn(n, kn(e)), { min: b, max: ne, barsValues: x } = Mn(a, {
|
|
1773
1773
|
manualMinMaxEnabled: g,
|
|
1774
1774
|
range: ee
|
|
1775
|
-
}, n), { values:
|
|
1776
|
-
min:
|
|
1777
|
-
max:
|
|
1775
|
+
}, n), { values: S, minValue: C, maxValue: w, sliderProps: T, onValueChange: re, handleChangedValues: E, handleSliderChange: D, onRange: O, selectRange: k } = zn({
|
|
1776
|
+
min: b,
|
|
1777
|
+
max: ne,
|
|
1778
1778
|
data: e,
|
|
1779
1779
|
type: t,
|
|
1780
1780
|
vSpec: n,
|
|
1781
1781
|
quickSelect: h,
|
|
1782
1782
|
field: r,
|
|
1783
1783
|
step: m
|
|
1784
|
-
}), A =
|
|
1784
|
+
}), A = l(t), j = n.sliderSettings.formatting, M = (n.sliderSettings.formatting?.format?.formatType ?? i.None) === i.None, N = {
|
|
1785
1785
|
fontSize: "1em",
|
|
1786
|
-
width: `${n?.sliderSettings.inputWidth ?? (A ?
|
|
1787
|
-
}, { marks: P, step: F } =
|
|
1786
|
+
width: `${n?.sliderSettings.inputWidth ?? (A ? v.inputDateWidth : v.inputNumberWidth)}px`
|
|
1787
|
+
}, { marks: P, step: F } = T;
|
|
1788
1788
|
return /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
1789
1789
|
className: H({
|
|
1790
1790
|
[o.div]: !0,
|
|
1791
1791
|
[o.divBottom]: c
|
|
1792
1792
|
}),
|
|
1793
|
-
style: { fontSize: `${n?.sliderSettings.inputFontSize ??
|
|
1793
|
+
style: { fontSize: `${n?.sliderSettings.inputFontSize ?? v.inputFontSize}px` },
|
|
1794
1794
|
ref: s,
|
|
1795
1795
|
children: [
|
|
1796
|
-
A && (M ||
|
|
1796
|
+
A && (M || u) ? /* @__PURE__ */ (0, Q.jsx)(Mt, {
|
|
1797
1797
|
className: H({
|
|
1798
1798
|
[o.inputBottom]: c,
|
|
1799
1799
|
[o.inputLeft]: c
|
|
1800
1800
|
}),
|
|
1801
1801
|
style: N,
|
|
1802
1802
|
onBlur: (e) => {
|
|
1803
|
-
e !== +
|
|
1803
|
+
e !== +S[0] && k([e, +S[1]]), d(!1);
|
|
1804
1804
|
},
|
|
1805
|
-
onEnter: (e) => k([e, +
|
|
1806
|
-
value: +
|
|
1805
|
+
onEnter: (e) => k([e, +S[1]]),
|
|
1806
|
+
value: +S[0],
|
|
1807
1807
|
passOnBlur: !0,
|
|
1808
1808
|
autoFocus: !M
|
|
1809
1809
|
}) : /* @__PURE__ */ (0, Q.jsx)("input", {
|
|
@@ -1814,27 +1814,27 @@ var Vn = ({ data: e, options: { type: t, vSpec: n } }) => {
|
|
|
1814
1814
|
}),
|
|
1815
1815
|
style: N,
|
|
1816
1816
|
step: m,
|
|
1817
|
-
min:
|
|
1818
|
-
max:
|
|
1817
|
+
min: C,
|
|
1818
|
+
max: S[1],
|
|
1819
1819
|
type: "text",
|
|
1820
|
-
value: j ? On(
|
|
1820
|
+
value: j ? On(S[0], u, j) : S[0],
|
|
1821
1821
|
onBlur: (e) => {
|
|
1822
|
-
|
|
1822
|
+
d(!1), E([e.target.value, S[1]]);
|
|
1823
1823
|
},
|
|
1824
|
-
onChange: (e) =>
|
|
1824
|
+
onChange: (e) => re([e.target.value, S[1]]),
|
|
1825
1825
|
onKeyDown: (e) => {
|
|
1826
|
-
e.key === "Enter" && E([e.currentTarget.value,
|
|
1826
|
+
e.key === "Enter" && E([e.currentTarget.value, S[1]]);
|
|
1827
1827
|
},
|
|
1828
|
-
onFocus: () =>
|
|
1828
|
+
onFocus: () => d(!0),
|
|
1829
1829
|
disabled: !t
|
|
1830
1830
|
}),
|
|
1831
1831
|
/* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
1832
1832
|
style: { flexGrow: 1 },
|
|
1833
1833
|
children: [n?.measures?.[0] ? /* @__PURE__ */ (0, Q.jsx)(yn, {
|
|
1834
|
-
values:
|
|
1835
|
-
filteredValues: [+
|
|
1834
|
+
values: x,
|
|
1835
|
+
filteredValues: [+S[0], +S[1]],
|
|
1836
1836
|
selectedColor: _,
|
|
1837
|
-
nonSelectedColor:
|
|
1837
|
+
nonSelectedColor: y
|
|
1838
1838
|
}) : null, /* @__PURE__ */ (0, Q.jsx)("div", {
|
|
1839
1839
|
onMouseDown: (e) => e.stopPropagation(),
|
|
1840
1840
|
style: {
|
|
@@ -1843,15 +1843,15 @@ var Vn = ({ data: e, options: { type: t, vSpec: n } }) => {
|
|
|
1843
1843
|
},
|
|
1844
1844
|
children: /* @__PURE__ */ (0, Q.jsx)(At, {
|
|
1845
1845
|
className: o.slider,
|
|
1846
|
-
value: [+
|
|
1846
|
+
value: [+S[0], +S[1]],
|
|
1847
1847
|
onChange: (e, t) => {
|
|
1848
1848
|
Array.isArray(t) && t.length === 2 && D(e, [t[0], t[1]]);
|
|
1849
1849
|
},
|
|
1850
1850
|
onChangeCommitted: (e, t) => {
|
|
1851
1851
|
Array.isArray(t) && t.length === 2 && O(t[0], t[1]);
|
|
1852
1852
|
},
|
|
1853
|
-
min:
|
|
1854
|
-
max:
|
|
1853
|
+
min: C ?? +S[0],
|
|
1854
|
+
max: w ?? +S[1],
|
|
1855
1855
|
step: F === null ? null : Cn(F),
|
|
1856
1856
|
marks: P ?? !1,
|
|
1857
1857
|
orientation: "horizontal",
|
|
@@ -1860,17 +1860,17 @@ var Vn = ({ data: e, options: { type: t, vSpec: n } }) => {
|
|
|
1860
1860
|
})
|
|
1861
1861
|
})]
|
|
1862
1862
|
}),
|
|
1863
|
-
A && (M ||
|
|
1863
|
+
A && (M || f) ? /* @__PURE__ */ (0, Q.jsx)(Mt, {
|
|
1864
1864
|
className: H({
|
|
1865
1865
|
[o.inputBottom]: c,
|
|
1866
1866
|
[o.inputRight]: c
|
|
1867
1867
|
}),
|
|
1868
1868
|
style: N,
|
|
1869
1869
|
onBlur: (e) => {
|
|
1870
|
-
e !== +
|
|
1870
|
+
e !== +S[1] && k([+S[0], e]), p(!1);
|
|
1871
1871
|
},
|
|
1872
|
-
onEnter: (e) => k([+
|
|
1873
|
-
value: +
|
|
1872
|
+
onEnter: (e) => k([+S[0], e]),
|
|
1873
|
+
value: +S[1],
|
|
1874
1874
|
passOnBlur: !0,
|
|
1875
1875
|
autoFocus: !M
|
|
1876
1876
|
}) : /* @__PURE__ */ (0, Q.jsx)("input", {
|
|
@@ -1881,18 +1881,18 @@ var Vn = ({ data: e, options: { type: t, vSpec: n } }) => {
|
|
|
1881
1881
|
}),
|
|
1882
1882
|
style: N,
|
|
1883
1883
|
step: m,
|
|
1884
|
-
min:
|
|
1885
|
-
max:
|
|
1884
|
+
min: S[0],
|
|
1885
|
+
max: w,
|
|
1886
1886
|
type: "text",
|
|
1887
|
-
value: j ? On(
|
|
1887
|
+
value: j ? On(S[1], f, j) : S[1],
|
|
1888
1888
|
onBlur: (e) => {
|
|
1889
|
-
|
|
1889
|
+
p(!1), E([S[0], e.target.value]);
|
|
1890
1890
|
},
|
|
1891
|
-
onChange: (e) =>
|
|
1891
|
+
onChange: (e) => re([S[0], e.target.value]),
|
|
1892
1892
|
onKeyDown: (e) => {
|
|
1893
|
-
e.key === "Enter" && E([
|
|
1893
|
+
e.key === "Enter" && E([S[0], e.currentTarget.value]);
|
|
1894
1894
|
},
|
|
1895
|
-
onFocus: () =>
|
|
1895
|
+
onFocus: () => p(!0),
|
|
1896
1896
|
disabled: !t
|
|
1897
1897
|
})
|
|
1898
1898
|
]
|
|
@@ -1923,25 +1923,25 @@ var Gn = (e) => {
|
|
|
1923
1923
|
if (!r) return null;
|
|
1924
1924
|
let { dateLevel: i, datePart: a } = r, { fieldKey: o } = n(r.dataItem);
|
|
1925
1925
|
if (o === null) return null;
|
|
1926
|
-
let
|
|
1926
|
+
let s = (e) => e.dateLevel === i && e.datePart === a && "fieldKey" in e && e.fieldKey === o && (e.operator === $.FilterOperator.Between || e.operator === $.FilterOperator.NotBetween), c = re({
|
|
1927
1927
|
dateLevel: i ?? void 0,
|
|
1928
1928
|
datePart: a ?? void 0,
|
|
1929
1929
|
fieldKey: o,
|
|
1930
1930
|
operator: $.FilterOperator.Between,
|
|
1931
1931
|
values: []
|
|
1932
|
-
}),
|
|
1932
|
+
}), l = t.applied.find(s), u = t.pending.find(s);
|
|
1933
1933
|
return {
|
|
1934
1934
|
applied: {
|
|
1935
|
-
...
|
|
1936
|
-
...
|
|
1935
|
+
...c,
|
|
1936
|
+
...l
|
|
1937
1937
|
},
|
|
1938
1938
|
pending: {
|
|
1939
|
+
...c,
|
|
1939
1940
|
...l,
|
|
1940
|
-
...u
|
|
1941
|
-
...d
|
|
1941
|
+
...u
|
|
1942
1942
|
}
|
|
1943
1943
|
};
|
|
1944
|
-
}, Kn =
|
|
1944
|
+
}, Kn = I({
|
|
1945
1945
|
container: {
|
|
1946
1946
|
padding: 12,
|
|
1947
1947
|
width: "100%",
|
|
@@ -1957,49 +1957,49 @@ var Gn = (e) => {
|
|
|
1957
1957
|
marginLeft: 8
|
|
1958
1958
|
},
|
|
1959
1959
|
label: { ...V.overflowEllipsis }
|
|
1960
|
-
}), qn = (e) => e ===
|
|
1961
|
-
let { borderColor: n, borderEnabled: r, borderRadius: i, borderStyle:
|
|
1962
|
-
...
|
|
1960
|
+
}), qn = (e) => e === ee.Line ? "solid" : "dashed", Jn = (e = p.white, t) => {
|
|
1961
|
+
let { borderColor: n, borderEnabled: r, borderRadius: i, borderStyle: a, borderWidth: o } = {
|
|
1962
|
+
...v.border,
|
|
1963
1963
|
...t
|
|
1964
1964
|
};
|
|
1965
1965
|
return {
|
|
1966
1966
|
backgroundColor: e ?? "transparent",
|
|
1967
|
-
border: r ? `${
|
|
1967
|
+
border: r ? `${o}px ${qn(a)} ${n}` : "none",
|
|
1968
1968
|
borderRadius: r ? `${i}px` : 0
|
|
1969
1969
|
};
|
|
1970
1970
|
}, Yn = (e, t) => ({
|
|
1971
1971
|
fontSize: e?.fontSize || 13,
|
|
1972
|
-
fontFamily:
|
|
1972
|
+
fontFamily: _(t || e?.fontFamily || "Roboto"),
|
|
1973
1973
|
fontStyle: e?.italic ? "italic" : "normal",
|
|
1974
1974
|
fontWeight: e?.bold ? "bold" : "normal",
|
|
1975
1975
|
textDecoration: `${e?.underline ? "underline" : ""} ${e?.strikethrough ? "line-through" : ""}`,
|
|
1976
|
-
color: e?.fontColor ||
|
|
1977
|
-
}), Xn = (e, t) => e?.customLabel?.enabled && e?.customLabel?.value && !
|
|
1978
|
-
let t =
|
|
1976
|
+
color: e?.fontColor || p.grey1
|
|
1977
|
+
}), Xn = (e, t) => e?.customLabel?.enabled && e?.customLabel?.value && !te(e.customLabel.value) ? e.customLabel.value : e?.label ? e.label : t, Zn = ({ vSpec: e }) => {
|
|
1978
|
+
let t = R();
|
|
1979
1979
|
return (0, X.useEffect)(() => {
|
|
1980
|
-
e &&
|
|
1981
|
-
}, [e]), !e || !
|
|
1980
|
+
e && w(e) && t();
|
|
1981
|
+
}, [e]), !e || !w(e) ? null : /* @__PURE__ */ (0, Q.jsx)(Qn, { vSpec: e });
|
|
1982
1982
|
}, Qn = ({ vSpec: e }) => {
|
|
1983
|
-
let t = A()?.astrato ?? S, n = Kn(), { backgroundColor: r, border: i, fontStyle:
|
|
1983
|
+
let t = A()?.astrato ?? S, n = Kn(), { backgroundColor: r, border: i, fontStyle: a } = e.sliderSettings, o = a?.fontFamily || t?.fonts?.general?.fontFamily || "Roboto", s = e.dimensions[0], c = e.measures[0], l = Gn(e), u = {
|
|
1984
1984
|
vSpec: e,
|
|
1985
|
-
type:
|
|
1985
|
+
type: d(s?.dataItem) ?? void 0
|
|
1986
1986
|
};
|
|
1987
1987
|
return /* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
1988
1988
|
className: n.container,
|
|
1989
1989
|
style: {
|
|
1990
|
-
...Jn(r === null ? "transparent" : r, i ??
|
|
1991
|
-
"--font-family":
|
|
1990
|
+
...Jn(r === null ? "transparent" : r, i ?? v.border),
|
|
1991
|
+
"--font-family": _(o)
|
|
1992
1992
|
},
|
|
1993
1993
|
children: [/* @__PURE__ */ (0, Q.jsxs)("div", {
|
|
1994
1994
|
className: n.label,
|
|
1995
|
-
style: Yn(
|
|
1996
|
-
children: [/* @__PURE__ */ (0, Q.jsx)("span", { children: Xn(
|
|
1995
|
+
style: Yn(a ?? {}, o),
|
|
1996
|
+
children: [/* @__PURE__ */ (0, Q.jsx)("span", { children: Xn(s, "Dimension") }), e?.sliderSettings?.showMeasureLabel ? /* @__PURE__ */ (0, Q.jsx)("span", {
|
|
1997
1997
|
className: n.measureLabel,
|
|
1998
|
-
children: Xn(
|
|
1998
|
+
children: Xn(c, "Measure")
|
|
1999
1999
|
}) : null]
|
|
2000
|
-
}),
|
|
2001
|
-
data:
|
|
2002
|
-
options:
|
|
2000
|
+
}), l && /* @__PURE__ */ (0, Q.jsx)(Vn, {
|
|
2001
|
+
data: l,
|
|
2002
|
+
options: u
|
|
2003
2003
|
})]
|
|
2004
2004
|
});
|
|
2005
2005
|
}, $n = ce(Zn), er = /* @__PURE__ */ t({
|