@astrato-io/visualizations 0.10.1 → 0.11.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/CHANGELOG.md +11 -1
- package/README.md +19 -1
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +6 -145
- package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
- package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
- package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
- package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
- package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
- package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
- package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
- package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
- package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
- package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
- package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
- package/chunks/category-axis-D1OVyMrr.js +20 -0
- package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
- package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
- package/chunks/defaults-B5_8S-J-.js +3 -0
- package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
- package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
- package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
- package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
- package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
- package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
- package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
- package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
- package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
- package/chunks/line.compiler-DCv3h42f.js +198 -0
- package/chunks/linear-Bq_r9l5S.js +264 -0
- package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
- package/chunks/measure-format-default-B6ghxih7.js +22 -0
- package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
- package/chunks/number.compiler-kV4lobCZ.js +57 -0
- package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
- package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
- package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
- package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
- package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
- package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
- package/chunks/standalone-06i1wmIX.js +6 -0
- package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
- package/chunks/standalone-B6zUvxNQ.js +357 -0
- package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
- package/chunks/standalone-Be5APcVv.js +762 -0
- package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
- package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
- package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
- package/chunks/standalone-BuXpKMnc.js +2 -0
- package/chunks/standalone-CIjNYyya.js +8378 -0
- package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
- package/chunks/standalone-CUGt2FUF.js +2 -0
- package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
- package/chunks/standalone-CnF2OYLQ.js +355 -0
- package/chunks/standalone-CznEEiq3.js +422 -0
- package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
- package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
- package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
- package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
- package/chunks/standalone-DcuE8KBa.js +287 -0
- package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
- package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
- package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
- package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
- package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
- package/chunks/standalone-qrZaimgC.js +689 -0
- package/chunks/standalone-yqDJ8h3K.js +1012 -0
- package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
- package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
- package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
- package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
- package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
- package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +30 -1
- package/docs/operations/combo.md +30 -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 +5 -4
- package/docs/operations/line.md +30 -1
- package/docs/operations/map.md +5274 -0
- 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 +3 -3
- package/index.js +524 -500
- package/metadata.js +2 -2
- package/operations.js +6 -6
- package/package.json +73 -68
- package/src/definitions/index.d.ts +1 -7
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
- package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
- package/chunks/defaults-Dtk7fg3C.js +0 -3
- package/chunks/line.compiler-DmHpmQCC.js +0 -198
- package/chunks/number.compiler-DQdg6zTy.js +0 -53
- package/chunks/standalone-4MsKiqs0.js +0 -355
- package/chunks/standalone-B794g9pE.js +0 -1012
- package/chunks/standalone-BA2YXyJS.js +0 -422
- package/chunks/standalone-BgumbdaJ2.js +0 -357
- package/chunks/standalone-Blh4qejk.js +0 -689
- package/chunks/standalone-DH0xTEes.js +0 -2
- package/chunks/standalone-DcnHjNnC.js +0 -2
- package/chunks/standalone-DrHdGkY7.js +0 -762
- package/chunks/standalone-c_rROMtx.js +0 -287
- package/chunks/standalone-drcFLeN6.js +0 -6
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import "./defaults-
|
|
5
|
-
import { s as
|
|
6
|
-
import { r as
|
|
7
|
-
import { d as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
var
|
|
11
|
-
function
|
|
2
|
+
import { $i as n, Ln as r, Na as i, Vr as a, ca as o, er as s, fa as c, in as l, ln as u, no as d, sa as f, ss as p } from "./visualization-filters-BwS0xUqs.js";
|
|
3
|
+
import { Ar as m, Br as h, Fr as g, G as _, Ir as v, K as y, Mr as b, Rn as x, Wt as S, ai as C, ci as w, cn as T, f as E, it as D, li as O, qn as k, si as A, st as j } from "./utils-BdJrEeIQ.js";
|
|
4
|
+
import "./defaults-B5_8S-J-.js";
|
|
5
|
+
import { s as M } from "./logger-Bc-DqDM_.js";
|
|
6
|
+
import { r as N, s as P, u as ee } from "./MenuOption-B-6K7kks.js";
|
|
7
|
+
import { d as te, f as F, l as I, u as L } from "./responsive.styles-FItb913l.js";
|
|
8
|
+
import { t as ne } from "./LinearProgress-KQ2EQlGL.js";
|
|
9
|
+
import { t as re } from "./_createAggregator-CFmH6gUN.js";
|
|
10
|
+
var ie = (e, t, n) => Math.ceil(t) + Math.ceil(n) >= Math.floor(e) && n > 0;
|
|
11
|
+
function ae(e) {
|
|
12
12
|
let { theme: t, name: n, props: r } = e;
|
|
13
13
|
return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? r : D(t.components[n].defaultProps, r);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
let { props: t, name: n, defaultTheme: r, themeId: i } = e, a =
|
|
17
|
-
return i && (a = a[i] || a),
|
|
15
|
+
function oe(e) {
|
|
16
|
+
let { props: t, name: n, defaultTheme: r, themeId: i } = e, a = j(r);
|
|
17
|
+
return i && (a = a[i] || a), ae({
|
|
18
18
|
theme: a,
|
|
19
19
|
name: n,
|
|
20
20
|
props: t
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
var
|
|
24
|
-
function
|
|
25
|
-
return
|
|
23
|
+
var R = /* @__PURE__ */ e(O(), 1), z = /*#__PURE__*/ R.createContext(void 0);
|
|
24
|
+
function se() {
|
|
25
|
+
return R.useContext(z);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
let n =
|
|
27
|
+
function ce({ props: e, states: t }) {
|
|
28
|
+
let n = R.useContext(z), r = {};
|
|
29
29
|
return t.forEach((t) => {
|
|
30
30
|
let i = e[t];
|
|
31
31
|
r[t] = i === void 0 && n ? n[t] : i;
|
|
32
32
|
}), [r, n];
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var B = M(), V = h(), le = ({ r: e, g: t, b: n, a: r }) => `rgba(${e},${t},${n},${r ?? 1})`, ue = (e) => {
|
|
35
35
|
let [t, n, r, i] = e.replace("rgba(", "").replace("rgb(", "").replace(")", "").replaceAll(" ", "").split(",").map((e) => +e);
|
|
36
36
|
return {
|
|
37
37
|
r: t,
|
|
@@ -39,39 +39,39 @@ var z = j(), B = A(), ue = ({ r: e, g: t, b: n, a: r }) => `rgba(${e},${t},${n},
|
|
|
39
39
|
b: r,
|
|
40
40
|
a: i ?? 1
|
|
41
41
|
};
|
|
42
|
-
},
|
|
43
|
-
let t =
|
|
42
|
+
}, H = (e, t = !0) => /^#([0-9a-f]{3}){1,2}$/i.test(String(e)) || t && /^#([0-9a-f]{4}){1,2}$/i.test(String(e)), U = (e = "") => e.length < 7 ? e.split("").map((e) => e === "#" ? e : e + e).join("") : e, de = (e) => {
|
|
43
|
+
let t = U(e);
|
|
44
44
|
return {
|
|
45
45
|
r: parseInt(t.slice(1, 3), 16),
|
|
46
46
|
g: parseInt(t.slice(3, 5), 16),
|
|
47
47
|
b: parseInt(t.slice(5, 7), 16),
|
|
48
|
-
a:
|
|
48
|
+
a: fe(t)
|
|
49
49
|
};
|
|
50
|
-
},
|
|
50
|
+
}, fe = (e) => {
|
|
51
51
|
if (!e) return 1;
|
|
52
52
|
if (typeof e == "string") {
|
|
53
|
-
if (
|
|
54
|
-
let t =
|
|
53
|
+
if (H(e)) {
|
|
54
|
+
let t = U(e);
|
|
55
55
|
return t.length === 7 ? 1 : Math.round(parseInt(t.slice(-2), 16) / 255 * 100) / 100;
|
|
56
56
|
}
|
|
57
57
|
let [, , , t] = e.substring(5, e.length - 1).replaceAll(" ", "").split(",");
|
|
58
58
|
return Number(t) || 1;
|
|
59
59
|
}
|
|
60
60
|
return e.a ?? 1;
|
|
61
|
-
},
|
|
62
|
-
t.exports =
|
|
61
|
+
}, pe = /* @__PURE__ */ t(((e, t) => {
|
|
62
|
+
t.exports = re()(function(e, t, n) {
|
|
63
63
|
e[+!n].push(t);
|
|
64
64
|
}, function() {
|
|
65
65
|
return [[], []];
|
|
66
66
|
});
|
|
67
|
-
})),
|
|
67
|
+
})), me = class {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
this.value = e;
|
|
70
70
|
}
|
|
71
71
|
deref() {
|
|
72
72
|
return this.value;
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, he = typeof WeakRef > "u" ? me : WeakRef, ge = 0, W = 1;
|
|
75
75
|
function G() {
|
|
76
76
|
return {
|
|
77
77
|
s: ge,
|
|
@@ -81,7 +81,7 @@ function G() {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
function _e(e) {
|
|
84
|
-
return e instanceof
|
|
84
|
+
return e instanceof he ? e.deref() : e;
|
|
85
85
|
}
|
|
86
86
|
function ve(e, t = {}) {
|
|
87
87
|
let n = G(), { resultEqualityCheck: r, maxSize: i } = t, a = i !== void 0;
|
|
@@ -132,7 +132,7 @@ function ve(e, t = {}) {
|
|
|
132
132
|
let d = t, f = e.apply(null, arguments);
|
|
133
133
|
if (l++, r) {
|
|
134
134
|
let e = _e(c);
|
|
135
|
-
e != null && r(e, f) && (f = e, l !== 0 && l--), c = typeof f == "object" && f || typeof f == "function" ? /* @__PURE__ */ new
|
|
135
|
+
e != null && r(e, f) && (f = e, l !== 0 && l--), c = typeof f == "object" && f || typeof f == "function" ? /* @__PURE__ */ new he(f) : f;
|
|
136
136
|
}
|
|
137
137
|
return d.s = W, d.v = f, a && u(), f;
|
|
138
138
|
}
|
|
@@ -277,11 +277,11 @@ function ke(e, t) {
|
|
|
277
277
|
o = 0;
|
|
278
278
|
}, c;
|
|
279
279
|
}
|
|
280
|
-
var q = (e, t) => t && !s(t) ? String(
|
|
280
|
+
var q = (e, t) => t && !s(t) ? String(S(t, e)) : e === !0 ? "True" : e === !1 ? "False" : e === null ? "-" : String(e), Ae = /* @__PURE__ */ e(pe()), je = (e, t) => {
|
|
281
281
|
let [n, r] = (0, Ae.default)(e, (e) => t.indexOf(e.dimension) !== -1);
|
|
282
282
|
return [n, r];
|
|
283
283
|
}, Me = (e) => {
|
|
284
|
-
let t = e?.dimensions.filter((e) => e.role ===
|
|
284
|
+
let t = e?.dimensions.filter((e) => e.role === d.FILTER_DIMENSION);
|
|
285
285
|
return [(t?.length ? t : e?.dimensions.slice(0, 1) ?? []).map(Ne).join(" - ") || "Sample", e?.measures[0] && e?.filterSettings?.showMeasureLabel ? ` | ${Ne(e?.measures[0])}` : null];
|
|
286
286
|
};
|
|
287
287
|
function Ne(e) {
|
|
@@ -296,10 +296,10 @@ var Pe = (e) => async (t) => {
|
|
|
296
296
|
return e.forEach((e) => {
|
|
297
297
|
t > e && (t = e), n < e && (n = e);
|
|
298
298
|
}), [t, n];
|
|
299
|
-
}, Ie =
|
|
300
|
-
let n = e.selection.getActiveSelection(
|
|
299
|
+
}, Ie = a("getToRangeSelectionHandler", "#cbacba"), Le = (e, t) => async () => {
|
|
300
|
+
let n = e.selection.getActiveSelection(B.FilterType.VALUE), r = structuredClone(n), i = r.applied.find((e) => e.field.name === t.name && e.field.view === t.view);
|
|
301
301
|
if (i ||= r.pending.find((e) => e.field.name === t.name && e.field.view === t.view), !i) {
|
|
302
|
-
let n =
|
|
302
|
+
let n = B.FilterOperator.Between;
|
|
303
303
|
r.pending.push({
|
|
304
304
|
operator: n,
|
|
305
305
|
field: C(e.engine, t),
|
|
@@ -307,7 +307,7 @@ var Pe = (e) => async (t) => {
|
|
|
307
307
|
}), e.selection.setNewSelectionState(r);
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
|
-
if (i.operator = i.operator ===
|
|
310
|
+
if (i.operator = i.operator === B.FilterOperator.InList ? B.FilterOperator.Between : B.FilterOperator.NotBetween, (i.values ?? []).length === 0) {
|
|
311
311
|
e.selection.declineSelection(i), e.selection.removeSelection(i);
|
|
312
312
|
let n = {
|
|
313
313
|
dimensions: [],
|
|
@@ -330,27 +330,27 @@ var Pe = (e) => async (t) => {
|
|
|
330
330
|
Ie.error("There is something wrong with the min/max data");
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
|
-
return i.values = [s, c], e.selection.setNewSelectionState(r,
|
|
333
|
+
return i.values = [s, c], e.selection.setNewSelectionState(r, B.FilterType.VALUE), i.operator;
|
|
334
334
|
}
|
|
335
|
-
return i.values = Fe(i.values), e.selection.setNewSelectionState(r,
|
|
336
|
-
}, J =
|
|
337
|
-
let a = n ?? Re, o = e.selection.getActiveSelection(
|
|
335
|
+
return i.values = Fe(i.values), e.selection.setNewSelectionState(r, B.FilterType.VALUE), i.operator;
|
|
336
|
+
}, J = a("getToValueSelectionHandler", "#cbacba"), Re = l(r()), ze = (e, t, n, r, i) => async () => {
|
|
337
|
+
let a = n ?? Re, o = e.selection.getActiveSelection(B.FilterType.VALUE), s = structuredClone(o), c = s.pending.find((e) => e.field.name === t.name && e.field.view === t.view);
|
|
338
338
|
if (c ||= s.applied.find((e) => e.field.name === t.name && e.field.view === t.view), !c) {
|
|
339
339
|
J.warn("There was no selection connected to clicked field!", JSON.stringify(t));
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
if (r) return c.operator =
|
|
343
|
-
if ([
|
|
344
|
-
if ([
|
|
342
|
+
if (r) return c.operator = B.FilterOperator.InList, c.values = [], delete c.dynamicDateRange, delete c.dynamicDateCalcRange, e.selection.setNewSelectionState(s, B.FilterType.VALUE), c.operator;
|
|
343
|
+
if ([B.FilterOperator.InList, B.FilterOperator.NotInList].includes(c.operator)) return c.operator;
|
|
344
|
+
if ([B.FilterOperator.Like, B.FilterOperator.NotLike].includes(c.operator)) {
|
|
345
345
|
let n = c.values;
|
|
346
|
-
if (c.operator = c.operator ===
|
|
346
|
+
if (c.operator = c.operator === B.FilterOperator.Like ? B.FilterOperator.InList : B.FilterOperator.NotInList, n?.length) {
|
|
347
347
|
let r = {
|
|
348
348
|
dimensions: [{ fieldKey: t.key }],
|
|
349
349
|
limit: a + 1,
|
|
350
350
|
measures: [],
|
|
351
351
|
filters: [{
|
|
352
352
|
fieldKey: t.key,
|
|
353
|
-
operator:
|
|
353
|
+
operator: B.FilterOperator.Like,
|
|
354
354
|
values: n
|
|
355
355
|
}]
|
|
356
356
|
}, o = e.engine;
|
|
@@ -359,12 +359,12 @@ var Pe = (e) => async (t) => {
|
|
|
359
359
|
return;
|
|
360
360
|
}
|
|
361
361
|
let { data: l, meta: u } = await o.getData(r);
|
|
362
|
-
if (u.rows >= a + 1) return c.values = [], e.selection.setNewSelectionState(s,
|
|
362
|
+
if (u.rows >= a + 1) return c.values = [], e.selection.setNewSelectionState(s, B.FilterType.VALUE), i?.(c.operator, String(n[0] ?? "")), c.operator;
|
|
363
363
|
c.values = Object.values(l).flat();
|
|
364
364
|
}
|
|
365
|
-
return e.selection.setNewSelectionState(s,
|
|
365
|
+
return e.selection.setNewSelectionState(s, B.FilterType.VALUE), c.operator;
|
|
366
366
|
}
|
|
367
|
-
c.operator = c.operator ===
|
|
367
|
+
c.operator = c.operator === B.FilterOperator.Between ? B.FilterOperator.InList : B.FilterOperator.NotInList;
|
|
368
368
|
let l = {
|
|
369
369
|
dimensions: [{ fieldKey: t.key }],
|
|
370
370
|
limit: a,
|
|
@@ -373,7 +373,7 @@ var Pe = (e) => async (t) => {
|
|
|
373
373
|
};
|
|
374
374
|
c.values && (l.filters?.push({
|
|
375
375
|
fieldKey: t.key,
|
|
376
|
-
operator:
|
|
376
|
+
operator: B.FilterOperator.Between,
|
|
377
377
|
values: c.values
|
|
378
378
|
}), l.limit = a + 1);
|
|
379
379
|
let u = e.engine;
|
|
@@ -382,35 +382,35 @@ var Pe = (e) => async (t) => {
|
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
384
|
let { data: d, meta: f } = await u.getData(l);
|
|
385
|
-
return f.rows >= a + 1 ? (e.daedalus.emitEvent(
|
|
385
|
+
return f.rows >= a + 1 ? (e.daedalus.emitEvent(B.AstratoEvents.SHOW_GLOBAL_NOTIFICATION, {
|
|
386
386
|
type: "warn",
|
|
387
387
|
message: "Cannot change the selection type, because too many values would have to be selected!"
|
|
388
|
-
}), c.operator) : (c.values = Object.values(d).flat(), e.selection.setNewSelectionState(s,
|
|
388
|
+
}), c.operator) : (c.values = Object.values(d).flat(), e.selection.setNewSelectionState(s, B.FilterType.VALUE), c.operator);
|
|
389
389
|
}, Be = (e, t) => (n) => {
|
|
390
|
-
let r = e.selection.getActiveSelection(
|
|
390
|
+
let r = e.selection.getActiveSelection(B.FilterType.VALUE), i = structuredClone(r), a = n?.trim() ? [n.trim()] : [""], o = i.applied.find((e) => e.field.name === t.name && e.field.view === t.view);
|
|
391
391
|
if (o ||= i.pending.find((e) => e.field.name === t.name && e.field.view === t.view), !o) {
|
|
392
|
-
let n =
|
|
392
|
+
let n = B.FilterOperator.Like;
|
|
393
393
|
return i.pending.push({
|
|
394
394
|
operator: n,
|
|
395
395
|
field: C(e.engine, t),
|
|
396
396
|
values: a
|
|
397
397
|
}), e.selection.setNewSelectionState(i), n;
|
|
398
398
|
}
|
|
399
|
-
return o.operator ===
|
|
399
|
+
return o.operator === B.FilterOperator.InList ? (o.operator = B.FilterOperator.Like, o.values = a) : o.operator === B.FilterOperator.NotInList ? (o.operator = B.FilterOperator.NotLike, o.values = a) : (o.operator = o.operator === B.FilterOperator.NotLike ? B.FilterOperator.NotLike : B.FilterOperator.Like, o.values = a.length ? a : o.values), e.selection.setNewSelectionState(i, B.FilterType.VALUE), o.operator;
|
|
400
400
|
}, Y = (e, t) => ({
|
|
401
|
-
fontFamily:
|
|
401
|
+
fontFamily: o(t, e?.fontFamily) ?? void 0,
|
|
402
402
|
fontStyle: e?.italic ? "italic" : "normal",
|
|
403
403
|
fontWeight: e?.bold ? "bold" : "normal",
|
|
404
404
|
textDecoration: `${e?.underlined ? "underline" : ""} ${e?.strikethrough ? "line-through" : ""}`,
|
|
405
|
-
color:
|
|
406
|
-
}), Ve = (e) => e ===
|
|
407
|
-
let { backgroundColor:
|
|
408
|
-
...
|
|
405
|
+
color: f(t, e?.fontColor)
|
|
406
|
+
}), Ve = (e) => e === p.Line ? "solid" : "dashed", X = (e, t) => {
|
|
407
|
+
let { backgroundColor: r, borderColor: i, borderEnabled: a, borderRadius: o, borderStyle: s, borderWidth: c } = {
|
|
408
|
+
...n,
|
|
409
409
|
...e
|
|
410
410
|
}, l = "0px";
|
|
411
411
|
return a && (l = `${o}px`, t && (l = `${o}px ${o}px 0 0`)), {
|
|
412
|
-
backgroundColor:
|
|
413
|
-
border: a ? `${c}px ${Ve(s)} ${
|
|
412
|
+
backgroundColor: r,
|
|
413
|
+
border: a ? `${c}px ${Ve(s)} ${i}` : "none",
|
|
414
414
|
borderRadius: l
|
|
415
415
|
};
|
|
416
416
|
};
|
|
@@ -421,28 +421,28 @@ function He(e) {
|
|
|
421
421
|
cursor: "pointer",
|
|
422
422
|
height: 24,
|
|
423
423
|
padding: "3px 6px",
|
|
424
|
-
border: `1px solid ${
|
|
424
|
+
border: `1px solid ${i.grey4}`,
|
|
425
425
|
borderRadius: 16,
|
|
426
426
|
display: "flex",
|
|
427
427
|
marginRight: 4,
|
|
428
428
|
flexShrink: 0,
|
|
429
|
-
backgroundColor:
|
|
430
|
-
color:
|
|
431
|
-
...
|
|
432
|
-
...
|
|
433
|
-
"&:hover": { borderColor:
|
|
429
|
+
backgroundColor: i.mainBrightPink,
|
|
430
|
+
color: i.white,
|
|
431
|
+
...w.bold11,
|
|
432
|
+
...w.overflowEllipsis,
|
|
433
|
+
"&:hover": { borderColor: i.grey2 },
|
|
434
434
|
...e && {
|
|
435
|
-
[
|
|
435
|
+
[F.md]: {
|
|
436
436
|
height: 20,
|
|
437
437
|
padding: "2px 6px",
|
|
438
|
-
...
|
|
438
|
+
...w.bold10
|
|
439
439
|
},
|
|
440
|
-
[
|
|
440
|
+
[F.sm]: {
|
|
441
441
|
height: 16,
|
|
442
442
|
padding: "1px 4px",
|
|
443
|
-
...
|
|
443
|
+
...w.normal10
|
|
444
444
|
},
|
|
445
|
-
[
|
|
445
|
+
[F.xs]: {
|
|
446
446
|
height: 12,
|
|
447
447
|
padding: "0px 4px",
|
|
448
448
|
fontSize: 8,
|
|
@@ -451,9 +451,9 @@ function He(e) {
|
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
var Z = (0,
|
|
455
|
-
|
|
456
|
-
return
|
|
454
|
+
var Z = (0, R.createContext)({});
|
|
455
|
+
R.forwardRef(function(e, t) {
|
|
456
|
+
return R.createElement("img", {
|
|
457
457
|
...e,
|
|
458
458
|
ref: t,
|
|
459
459
|
src: "data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M28.2534%2028.2533L27.2134%2027.2133L24.0001%2024L17.8801%2017.88L4.78677%204.78666L3.74677%203.74666C3.22677%203.22666%202.38677%203.22666%201.86677%203.74666C1.33344%204.26666%201.33344%205.10666%201.85344%205.62666L4.0001%207.77333V25.3333C4.0001%2026.8%205.2001%2028%206.66677%2028H24.2268L26.3734%2030.1467C26.8934%2030.6667%2027.7334%2030.6667%2028.2534%2030.1467C28.7734%2029.6267%2028.7734%2028.7733%2028.2534%2028.2533ZM8.02677%2024C7.46677%2024%207.1601%2023.36%207.50677%2022.92L10.8268%2018.6533C11.0934%2018.32%2011.6001%2018.3067%2011.8668%2018.64L14.6668%2022.0133L16.2268%2020L20.2268%2024H8.02677ZM28.0001%2024.2267L7.77344%203.99999H25.3334C26.8001%203.99999%2028.0001%205.19999%2028.0001%206.66666V24.2267Z%22%20fill%3D%22%23BDBDBD%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
@@ -472,25 +472,25 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
472
472
|
o += t;
|
|
473
473
|
}
|
|
474
474
|
return o;
|
|
475
|
-
}, Ge =
|
|
475
|
+
}, Ge = _({ iconContainer: {
|
|
476
476
|
width: 16,
|
|
477
477
|
flexShrink: 0
|
|
478
|
-
} }), Ke = ({ disabled: e, isApplied: t, isSelected: n, isNot: r, fontColor:
|
|
479
|
-
let
|
|
480
|
-
return /* @__PURE__ */ (0,
|
|
481
|
-
className:
|
|
478
|
+
} }), Ke = ({ disabled: e, isApplied: t, isSelected: n, isNot: r, fontColor: a }) => {
|
|
479
|
+
let o = Ge(), s = a ?? (t ? i.mainDarkNavy : void 0);
|
|
480
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
481
|
+
className: o.iconContainer,
|
|
482
482
|
style: { opacity: e ? .25 : void 0 },
|
|
483
|
-
children: [n && r ? /* @__PURE__ */ (0,
|
|
483
|
+
children: [n && r ? /* @__PURE__ */ (0, V.jsx)(m, { fill: i.mainBrightPink }) : null, n && !r ? /* @__PURE__ */ (0, V.jsx)(v, { fill: s }) : null]
|
|
484
484
|
});
|
|
485
485
|
}, qe = (e) => {
|
|
486
|
-
let { r: t, g: n, b: r, a: i } =
|
|
487
|
-
return
|
|
486
|
+
let { r: t, g: n, b: r, a: i } = H(e) ? de(e) : ue(e), a = (i ?? 1) * .6;
|
|
487
|
+
return le({
|
|
488
488
|
r: t,
|
|
489
489
|
g: n,
|
|
490
490
|
b: r,
|
|
491
491
|
a: a < 0 ? 0 : a
|
|
492
492
|
});
|
|
493
|
-
}, Je =
|
|
493
|
+
}, Je = _({
|
|
494
494
|
progressBar: {
|
|
495
495
|
height: "100%",
|
|
496
496
|
borderRadius: "4px",
|
|
@@ -498,7 +498,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
498
498
|
bottom: 1,
|
|
499
499
|
top: 1
|
|
500
500
|
},
|
|
501
|
-
progressBarSelectedOrApplied: { color:
|
|
501
|
+
progressBarSelectedOrApplied: { color: i.mainDarkNavy },
|
|
502
502
|
labelsContainer: {
|
|
503
503
|
display: "flex",
|
|
504
504
|
flexDirection: "row",
|
|
@@ -509,13 +509,13 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
509
509
|
overflow: "hidden",
|
|
510
510
|
position: "relative",
|
|
511
511
|
"&:hover": {
|
|
512
|
-
color:
|
|
513
|
-
"& > div": { backgroundColor:
|
|
512
|
+
color: i.mainDarkNavy,
|
|
513
|
+
"& > div": { backgroundColor: i.grey5 }
|
|
514
514
|
}
|
|
515
515
|
},
|
|
516
516
|
label: ({ responsive: e, fontSize: t }) => ({
|
|
517
|
-
...
|
|
518
|
-
...
|
|
517
|
+
...w.normal11,
|
|
518
|
+
...w.overflowEllipsis,
|
|
519
519
|
color: "inherit",
|
|
520
520
|
marginRight: "5px",
|
|
521
521
|
height: "100%",
|
|
@@ -526,14 +526,14 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
526
526
|
fontSize: `${t}px`,
|
|
527
527
|
lineHeight: 1.2,
|
|
528
528
|
...e && {
|
|
529
|
-
[
|
|
530
|
-
[
|
|
531
|
-
[
|
|
532
|
-
fontSize: `min(${t *
|
|
529
|
+
[F.md]: { fontSize: `min(${t * I.md}px, 14px)` },
|
|
530
|
+
[F.sm]: { fontSize: `min(${t * I.sm}px, 12px)` },
|
|
531
|
+
[F.xs]: {
|
|
532
|
+
fontSize: `min(${t * I.xs}px, 10px)`,
|
|
533
533
|
fontWeight: "normal !important"
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
} :
|
|
536
|
+
} : L(e)
|
|
537
537
|
}),
|
|
538
538
|
dimensionLabel: {
|
|
539
539
|
paddingLeft: 4,
|
|
@@ -544,55 +544,55 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
544
544
|
flexGrow: 0,
|
|
545
545
|
flexShrink: 1
|
|
546
546
|
},
|
|
547
|
-
rowDisabled: { color:
|
|
548
|
-
}), Ye = ({ dimensionDisplayValue: e, measuresLabel: t, showLabelProgress: n, isSelected: r, isApplied:
|
|
549
|
-
let
|
|
547
|
+
rowDisabled: { color: i.grey3 }
|
|
548
|
+
}), Ye = ({ dimensionDisplayValue: e, measuresLabel: t, showLabelProgress: n, isSelected: r, isApplied: a, strikethrough: o, disabled: s, searchTerm: l, barWidth: u, fontStyle: d, progressColor: f = i.lightBlue, textAlign: p, responsive: m, fontSize: h }) => {
|
|
549
|
+
let g = Je({
|
|
550
550
|
responsive: m,
|
|
551
|
-
fontSize:
|
|
552
|
-
}),
|
|
551
|
+
fontSize: h
|
|
552
|
+
}), _ = y()?.astrato ?? c, v = {
|
|
553
553
|
...Y({
|
|
554
|
-
...
|
|
555
|
-
strikethrough:
|
|
556
|
-
},
|
|
557
|
-
...
|
|
558
|
-
textAlign:
|
|
559
|
-
justifyContent:
|
|
554
|
+
...d,
|
|
555
|
+
strikethrough: d?.strikethrough || o
|
|
556
|
+
}, _),
|
|
557
|
+
...p ? {
|
|
558
|
+
textAlign: p,
|
|
559
|
+
justifyContent: p === "right" ? "flex-end" : p === "center" ? "center" : "flex-start"
|
|
560
560
|
} : {}
|
|
561
|
-
}, b = r ||
|
|
562
|
-
return /* @__PURE__ */ (0,
|
|
563
|
-
className:
|
|
564
|
-
[
|
|
565
|
-
[
|
|
561
|
+
}, b = r || a ? f : qe(f);
|
|
562
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
563
|
+
className: T({
|
|
564
|
+
[g.labelsContainer]: !0,
|
|
565
|
+
[g.progressBarSelectedOrApplied]: r || a
|
|
566
566
|
}),
|
|
567
567
|
children: [
|
|
568
|
-
n && /* @__PURE__ */ (0,
|
|
568
|
+
n && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
569
569
|
style: {
|
|
570
|
-
width: `${
|
|
570
|
+
width: `${u * 100}%`,
|
|
571
571
|
backgroundColor: b
|
|
572
572
|
},
|
|
573
|
-
className:
|
|
574
|
-
[
|
|
575
|
-
[
|
|
573
|
+
className: T({
|
|
574
|
+
[g.progressBar]: !0,
|
|
575
|
+
[g.rowDisabled]: s
|
|
576
576
|
}),
|
|
577
577
|
"data-testid": "item-list-label-progress"
|
|
578
578
|
}),
|
|
579
|
-
/* @__PURE__ */ (0,
|
|
580
|
-
style:
|
|
581
|
-
className:
|
|
579
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
580
|
+
style: v,
|
|
581
|
+
className: T(g.label, g.dimensionLabel),
|
|
582
582
|
title: e,
|
|
583
|
-
children: /* @__PURE__ */ (0,
|
|
584
|
-
phrase:
|
|
583
|
+
children: /* @__PURE__ */ (0, V.jsx)(N, {
|
|
584
|
+
phrase: l ?? "",
|
|
585
585
|
children: e ?? ""
|
|
586
586
|
})
|
|
587
587
|
}),
|
|
588
|
-
/* @__PURE__ */ (0,
|
|
589
|
-
style:
|
|
590
|
-
className:
|
|
588
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
589
|
+
style: v,
|
|
590
|
+
className: T(g.label, g.measuresLabel),
|
|
591
591
|
children: t
|
|
592
592
|
})
|
|
593
593
|
]
|
|
594
594
|
});
|
|
595
|
-
}, Xe =
|
|
595
|
+
}, Xe = _({
|
|
596
596
|
rowWrapper: (e) => ({
|
|
597
597
|
cursor: "pointer",
|
|
598
598
|
userSelect: "none",
|
|
@@ -604,15 +604,15 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
604
604
|
borderRadius: 6,
|
|
605
605
|
paddingRight: 8,
|
|
606
606
|
...e && {
|
|
607
|
-
[
|
|
607
|
+
[F.md]: {
|
|
608
608
|
height: "24px",
|
|
609
609
|
paddingRight: 6
|
|
610
610
|
},
|
|
611
|
-
[
|
|
611
|
+
[F.sm]: {
|
|
612
612
|
height: "16px",
|
|
613
613
|
paddingRight: 4
|
|
614
614
|
},
|
|
615
|
-
[
|
|
615
|
+
[F.xs]: {
|
|
616
616
|
height: "12px",
|
|
617
617
|
paddingRight: 2
|
|
618
618
|
}
|
|
@@ -624,21 +624,21 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
624
624
|
flexShrink: 0,
|
|
625
625
|
marginRight: 6,
|
|
626
626
|
...e && {
|
|
627
|
-
[
|
|
627
|
+
[F.md]: {
|
|
628
628
|
"& input[type=\"checkbox\"], & svg": {
|
|
629
629
|
width: "14px !important",
|
|
630
630
|
height: "14px !important"
|
|
631
631
|
},
|
|
632
632
|
"& > div, & > div > div": { height: "14px" }
|
|
633
633
|
},
|
|
634
|
-
[
|
|
634
|
+
[F.sm]: {
|
|
635
635
|
"& input[type=\"checkbox\"], & svg": {
|
|
636
636
|
width: "11px !important",
|
|
637
637
|
height: "11px !important"
|
|
638
638
|
},
|
|
639
639
|
"& > div, & > div > div": { height: "11px" }
|
|
640
640
|
},
|
|
641
|
-
[
|
|
641
|
+
[F.xs]: {
|
|
642
642
|
"& input[type=\"checkbox\"], & svg": {
|
|
643
643
|
width: "10px !important",
|
|
644
644
|
height: "10px !important"
|
|
@@ -651,38 +651,38 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
651
651
|
rowHover: { "&:hover": { backgroundColor: "var(--filter-hover-color)" } },
|
|
652
652
|
rowApplied: {
|
|
653
653
|
backgroundColor: "initial",
|
|
654
|
-
"& > div > span": { color: `${
|
|
654
|
+
"& > div > span": { color: `${i.mainDarkNavy} !important` }
|
|
655
655
|
},
|
|
656
|
-
rowDisabled: { "& span": { color: `${
|
|
657
|
-
}), Q = ({ selected: e, applied: t, disabled: n, hoverColor: r, onSelect:
|
|
658
|
-
let
|
|
659
|
-
return (0,
|
|
660
|
-
|
|
661
|
-
}, []), /* @__PURE__ */ (0,
|
|
656
|
+
rowDisabled: { "& span": { color: `${i.grey3} !important` } }
|
|
657
|
+
}), Q = ({ selected: e, applied: t, disabled: n, hoverColor: r, onSelect: a, showProgressBar: o, showCheckbox: s, showSelectionIcon: c = !0, checkboxState: l = "none", fontSize: u, searchTerm: d, doneRenderingCallback: f, dimensionValue: p, dimensionFormatter: m, imageValue: h, measure1Value: g, measure1Label: _, measure1Formatter: v, measure2Value: y, measure2Label: b, measure2Formatter: x, maxValue: S, imageFit: C, fontStyle: w, progressBarColor: E, responsive: D }) => {
|
|
658
|
+
let O = Xe(D), k = (0, R.useContext)(Z), A = (k.pendingOperator ?? k.appliedOperator) === B.FilterOperator.NotInList, j = !!h, M = o && g !== void 0 && !y, N = q(p, m), ee = We(g, _, v, y, b, x);
|
|
659
|
+
return (0, R.useEffect)(() => {
|
|
660
|
+
j || f?.();
|
|
661
|
+
}, []), /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
662
662
|
tabIndex: 0,
|
|
663
663
|
role: "button",
|
|
664
|
-
onClick:
|
|
664
|
+
onClick: a,
|
|
665
665
|
"data-testid": `big-list-item-dimension-${p}`,
|
|
666
|
-
className:
|
|
667
|
-
[
|
|
668
|
-
[
|
|
669
|
-
[
|
|
670
|
-
[
|
|
671
|
-
[
|
|
666
|
+
className: T({
|
|
667
|
+
[O.rowWrapper]: !0,
|
|
668
|
+
[O.rowHover]: !M,
|
|
669
|
+
[O.rowSelected]: !M && e,
|
|
670
|
+
[O.rowApplied]: t && !n,
|
|
671
|
+
[O.rowDisabled]: n
|
|
672
672
|
}),
|
|
673
|
-
style: { "--filter-hover-color": r ??
|
|
673
|
+
style: { "--filter-hover-color": r ?? i.grey5 },
|
|
674
674
|
children: [
|
|
675
|
-
s ? /* @__PURE__ */ (0,
|
|
675
|
+
s ? /* @__PURE__ */ (0, V.jsx)("div", {
|
|
676
676
|
"aria-hidden": !0,
|
|
677
677
|
style: { pointerEvents: "none" },
|
|
678
|
-
className:
|
|
679
|
-
children: /* @__PURE__ */ (0,
|
|
678
|
+
className: O.checkboxWrapper,
|
|
679
|
+
children: /* @__PURE__ */ (0, V.jsx)(P, {
|
|
680
680
|
value: l,
|
|
681
681
|
onChange: () => void 0,
|
|
682
682
|
testId: `dimension-${p}-checkbox`
|
|
683
683
|
})
|
|
684
684
|
}) : null,
|
|
685
|
-
|
|
685
|
+
j && /* @__PURE__ */ (0, V.jsx)("img", {
|
|
686
686
|
alt: "",
|
|
687
687
|
width: 32,
|
|
688
688
|
height: 32,
|
|
@@ -699,26 +699,26 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
699
699
|
onLoad: f,
|
|
700
700
|
loading: "lazy"
|
|
701
701
|
}),
|
|
702
|
-
/* @__PURE__ */ (0,
|
|
703
|
-
dimensionDisplayValue:
|
|
704
|
-
measuresLabel:
|
|
705
|
-
showLabelProgress:
|
|
706
|
-
progressColor:
|
|
702
|
+
/* @__PURE__ */ (0, V.jsx)(Ye, {
|
|
703
|
+
dimensionDisplayValue: N,
|
|
704
|
+
measuresLabel: ee,
|
|
705
|
+
showLabelProgress: M,
|
|
706
|
+
progressColor: E,
|
|
707
707
|
isApplied: t,
|
|
708
708
|
isSelected: e,
|
|
709
|
-
strikethrough:
|
|
709
|
+
strikethrough: A && t && e,
|
|
710
710
|
disabled: n,
|
|
711
711
|
searchTerm: d,
|
|
712
712
|
barWidth: Ue(g, S),
|
|
713
713
|
fontStyle: w,
|
|
714
|
-
responsive:
|
|
714
|
+
responsive: D,
|
|
715
715
|
fontSize: u
|
|
716
716
|
}),
|
|
717
|
-
!s && c ? /* @__PURE__ */ (0,
|
|
717
|
+
!s && c ? /* @__PURE__ */ (0, V.jsx)(Ke, {
|
|
718
718
|
disabled: n,
|
|
719
719
|
isApplied: t,
|
|
720
720
|
isSelected: e,
|
|
721
|
-
isNot:
|
|
721
|
+
isNot: A,
|
|
722
722
|
fontColor: w?.fontColor ?? void 0
|
|
723
723
|
}) : null
|
|
724
724
|
]
|
|
@@ -733,7 +733,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
733
733
|
} else if (e && !t) return -1;
|
|
734
734
|
return 0;
|
|
735
735
|
}, $e = ({ filterValues: e, onItemClick: t, selectedValues: n, appliedValues: r, searchTerm: i, vSpec: a, hoverColor: o }) => {
|
|
736
|
-
let s = (0,
|
|
736
|
+
let s = (0, R.useRef)(e.length), c = E(), l = () => {
|
|
737
737
|
--s.current, s.current === 0 && c();
|
|
738
738
|
};
|
|
739
739
|
if (!a?.dimensions[0]?.dataItem) return null;
|
|
@@ -746,7 +746,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
746
746
|
default: t(e.dimension, { shift: r.shiftKey ? [...m, ...h].reduce((e, t) => (t.disabled || e.push(t.dimension), e), []) : null });
|
|
747
747
|
}
|
|
748
748
|
}, _ = Ze(e), v = s.current > 0 ? l : void 0;
|
|
749
|
-
return /* @__PURE__ */ (0,
|
|
749
|
+
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [m.map((e) => /* @__PURE__ */ (0, V.jsx)(Q, {
|
|
750
750
|
searchTerm: i,
|
|
751
751
|
disabled: !!e.disabled,
|
|
752
752
|
onSelect: (t) => g(e, t),
|
|
@@ -769,7 +769,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
769
769
|
fontStyle: a.filterSettings?.fontStyle,
|
|
770
770
|
progressBarColor: a.filterSettings?.filterStyle?.progressBarColor,
|
|
771
771
|
responsive: a.filterSettings?.responsive
|
|
772
|
-
}, String(e.dimension))), h.map((e) => /* @__PURE__ */ (0,
|
|
772
|
+
}, String(e.dimension))), h.map((e) => /* @__PURE__ */ (0, V.jsx)(Q, {
|
|
773
773
|
searchTerm: i,
|
|
774
774
|
disabled: !!e.disabled,
|
|
775
775
|
onSelect: (t) => g(e, t),
|
|
@@ -793,7 +793,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
793
793
|
progressBarColor: a.filterSettings?.filterStyle?.progressBarColor,
|
|
794
794
|
responsive: a.filterSettings?.responsive
|
|
795
795
|
}, String(e.dimension)))] });
|
|
796
|
-
}, et =
|
|
796
|
+
}, et = _({
|
|
797
797
|
rowWrapper: (e) => ({
|
|
798
798
|
userSelect: "none",
|
|
799
799
|
display: "flex",
|
|
@@ -805,12 +805,12 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
805
805
|
padding: 4,
|
|
806
806
|
borderRadius: 5,
|
|
807
807
|
...e && {
|
|
808
|
-
[
|
|
809
|
-
[
|
|
808
|
+
[F.md]: { height: 24 },
|
|
809
|
+
[F.sm]: {
|
|
810
810
|
height: 20,
|
|
811
811
|
padding: "2px 4px"
|
|
812
812
|
},
|
|
813
|
-
[
|
|
813
|
+
[F.xs]: {
|
|
814
814
|
height: 16,
|
|
815
815
|
padding: "1px 4px"
|
|
816
816
|
}
|
|
@@ -818,7 +818,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
818
818
|
"& > span": {
|
|
819
819
|
flexShrink: 0,
|
|
820
820
|
maxWidth: "100%",
|
|
821
|
-
...
|
|
821
|
+
...w.overflowEllipsis
|
|
822
822
|
}
|
|
823
823
|
}),
|
|
824
824
|
rowWrapperClickable: {
|
|
@@ -833,33 +833,33 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
833
833
|
rowApplied: {
|
|
834
834
|
backgroundColor: "initial",
|
|
835
835
|
"& > span": {
|
|
836
|
-
color: `${
|
|
836
|
+
color: `${i.mainDarkNavy} !important`,
|
|
837
837
|
maxWidth: "calc(100% - 20px)"
|
|
838
838
|
}
|
|
839
839
|
},
|
|
840
|
-
rowDisabled: { "& span": { color: `${
|
|
841
|
-
label: (e) => ({ ...
|
|
842
|
-
}), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue:
|
|
843
|
-
let
|
|
844
|
-
...
|
|
840
|
+
rowDisabled: { "& span": { color: `${i.grey3} !important` } },
|
|
841
|
+
label: (e) => ({ ...L(e) })
|
|
842
|
+
}), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue: a, dimensionFormatter: o, searchTerm: s, onSelect: l, fontStyle: u, responsive: d, showCheckbox: f, showSelectionIcon: p = !0, checkboxState: m = "none", alignContentStart: h, fontSize: g }) => {
|
|
843
|
+
let _ = et(d), v = y()?.astrato ?? c, b = q(a, o), x = (0, R.useContext)(Z), S = (x.pendingOperator ?? x.appliedOperator) === B.FilterOperator.NotInList, C = S && t && e, w = Y({
|
|
844
|
+
...u,
|
|
845
845
|
strikethrough: C
|
|
846
|
-
},
|
|
847
|
-
return /* @__PURE__ */ (0,
|
|
846
|
+
}, v);
|
|
847
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
848
848
|
tabIndex: 0,
|
|
849
849
|
role: "button",
|
|
850
|
-
onClick:
|
|
851
|
-
"data-testid": `small-list-item-dimension-${
|
|
852
|
-
className:
|
|
853
|
-
[
|
|
854
|
-
[
|
|
855
|
-
[
|
|
856
|
-
[
|
|
857
|
-
[
|
|
858
|
-
[
|
|
850
|
+
onClick: l,
|
|
851
|
+
"data-testid": `small-list-item-dimension-${a}`,
|
|
852
|
+
className: T({
|
|
853
|
+
[_.rowWrapper]: !0,
|
|
854
|
+
[_.rowWrapperClickable]: !!l,
|
|
855
|
+
[_.rowWrapperStartAligned]: h,
|
|
856
|
+
[_.rowSelected]: e,
|
|
857
|
+
[_.rowApplied]: t && !e,
|
|
858
|
+
[_.rowDisabled]: n
|
|
859
859
|
}),
|
|
860
|
-
style: { "--filter-hover-color": r ??
|
|
860
|
+
style: { "--filter-hover-color": r ?? i.grey5 },
|
|
861
861
|
children: [
|
|
862
|
-
|
|
862
|
+
f ? /* @__PURE__ */ (0, V.jsx)("div", {
|
|
863
863
|
"aria-hidden": !0,
|
|
864
864
|
style: {
|
|
865
865
|
display: "flex",
|
|
@@ -868,31 +868,31 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
868
868
|
marginRight: 6,
|
|
869
869
|
pointerEvents: "none"
|
|
870
870
|
},
|
|
871
|
-
children: /* @__PURE__ */ (0,
|
|
871
|
+
children: /* @__PURE__ */ (0, V.jsx)(P, {
|
|
872
872
|
value: m,
|
|
873
873
|
onChange: () => void 0
|
|
874
874
|
})
|
|
875
875
|
}) : null,
|
|
876
|
-
/* @__PURE__ */ (0,
|
|
877
|
-
className:
|
|
876
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
877
|
+
className: _.label,
|
|
878
878
|
style: {
|
|
879
879
|
...w,
|
|
880
|
-
...
|
|
881
|
-
fontSize:
|
|
880
|
+
...g ? {
|
|
881
|
+
fontSize: g,
|
|
882
882
|
lineHeight: "14px"
|
|
883
883
|
} : {}
|
|
884
884
|
},
|
|
885
|
-
children: /* @__PURE__ */ (0,
|
|
885
|
+
children: /* @__PURE__ */ (0, V.jsx)(N, {
|
|
886
886
|
phrase: s ?? "",
|
|
887
887
|
children: b ?? ""
|
|
888
888
|
})
|
|
889
889
|
}),
|
|
890
|
-
|
|
890
|
+
f ? null : /* @__PURE__ */ (0, V.jsx)(Ke, {
|
|
891
891
|
disabled: n,
|
|
892
892
|
isApplied: t,
|
|
893
|
-
isSelected:
|
|
893
|
+
isSelected: p && e,
|
|
894
894
|
isNot: S,
|
|
895
|
-
fontColor:
|
|
895
|
+
fontColor: u?.fontColor ?? void 0
|
|
896
896
|
})
|
|
897
897
|
]
|
|
898
898
|
});
|
|
@@ -908,7 +908,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
908
908
|
default: t(e.dimension, { shift: r.shiftKey ? [...c, ...l].reduce((e, t) => (t.disabled || e.push(t.dimension), e), []) : null });
|
|
909
909
|
}
|
|
910
910
|
};
|
|
911
|
-
return /* @__PURE__ */ (0,
|
|
911
|
+
return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [c.map((e) => /* @__PURE__ */ (0, V.jsx)($, {
|
|
912
912
|
searchTerm: i,
|
|
913
913
|
disabled: !!e.disabled,
|
|
914
914
|
dimensionValue: e.dimension,
|
|
@@ -919,7 +919,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
919
919
|
hoverColor: o,
|
|
920
920
|
fontStyle: a.filterSettings?.fontStyle,
|
|
921
921
|
responsive: a.filterSettings?.responsive
|
|
922
|
-
}, `applied-${e.dimension}`)), l.map((e) => /* @__PURE__ */ (0,
|
|
922
|
+
}, `applied-${e.dimension}`)), l.map((e) => /* @__PURE__ */ (0, V.jsx)($, {
|
|
923
923
|
searchTerm: i,
|
|
924
924
|
disabled: !!e.disabled,
|
|
925
925
|
dimensionValue: e.dimension,
|
|
@@ -931,28 +931,28 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
931
931
|
fontStyle: a.filterSettings?.fontStyle,
|
|
932
932
|
responsive: a.filterSettings?.responsive
|
|
933
933
|
}, `not-applied-${e.dimension}`))] });
|
|
934
|
-
}, nt =
|
|
934
|
+
}, nt = _({ dropdownContainer: {
|
|
935
935
|
overflow: "hidden",
|
|
936
936
|
backdropFilter: "blur(1.25px)",
|
|
937
937
|
zIndex: 1500
|
|
938
938
|
} }), rt = ({ children: e, filterStyle: t, isLocked: n }) => {
|
|
939
939
|
let r = nt(), i = X(t, n);
|
|
940
|
-
return /* @__PURE__ */ (0,
|
|
940
|
+
return /* @__PURE__ */ (0, V.jsx)("div", {
|
|
941
941
|
className: r.dropdownContainer,
|
|
942
942
|
style: i,
|
|
943
943
|
children: e
|
|
944
944
|
});
|
|
945
|
-
}, it =
|
|
946
|
-
background:
|
|
945
|
+
}, it = _({ root: {
|
|
946
|
+
background: i.grey5,
|
|
947
947
|
height: 2,
|
|
948
|
-
"& .MuiLinearProgress-bar": { background:
|
|
948
|
+
"& .MuiLinearProgress-bar": { background: i.mainDarkNavy }
|
|
949
949
|
} }), at = ({ loading: e }) => {
|
|
950
950
|
let t = it();
|
|
951
|
-
return e ? /* @__PURE__ */ (0,
|
|
951
|
+
return e ? /* @__PURE__ */ (0, V.jsx)(ne, {
|
|
952
952
|
className: t.root,
|
|
953
953
|
"data-testid": "filter-search-progress"
|
|
954
954
|
}) : null;
|
|
955
|
-
}, ot =
|
|
955
|
+
}, ot = _({
|
|
956
956
|
dropdownButton: (e) => ({
|
|
957
957
|
cursor: "pointer",
|
|
958
958
|
display: "flex",
|
|
@@ -967,23 +967,23 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
967
967
|
outline: "none"
|
|
968
968
|
},
|
|
969
969
|
...e && {
|
|
970
|
-
[
|
|
971
|
-
[
|
|
970
|
+
[F.lg]: { height: "min(28px, 100%)" },
|
|
971
|
+
[F.md]: {
|
|
972
972
|
padding: "0 4px",
|
|
973
973
|
height: "min(24px, 100%)"
|
|
974
974
|
},
|
|
975
|
-
[
|
|
975
|
+
[F.sm]: {
|
|
976
976
|
padding: "0 2px",
|
|
977
977
|
height: "min(20px, 100%)"
|
|
978
978
|
},
|
|
979
|
-
[
|
|
979
|
+
[F.xs]: {
|
|
980
980
|
padding: 0,
|
|
981
981
|
height: "min(16px, 100%)"
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
984
|
}),
|
|
985
985
|
headerTitlesContainer: {
|
|
986
|
-
color:
|
|
986
|
+
color: i.grey1,
|
|
987
987
|
display: "flex",
|
|
988
988
|
alignItems: "center",
|
|
989
989
|
width: "100%",
|
|
@@ -993,17 +993,17 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
993
993
|
fontWeight: "bold !important",
|
|
994
994
|
flexShrink: 1,
|
|
995
995
|
minWidth: 0,
|
|
996
|
-
...
|
|
997
|
-
...
|
|
996
|
+
...w.overflowEllipsis,
|
|
997
|
+
...L(e)
|
|
998
998
|
}),
|
|
999
999
|
measureTitle: {
|
|
1000
|
-
...
|
|
1000
|
+
...w.overflowEllipsis,
|
|
1001
1001
|
minWidth: 0,
|
|
1002
1002
|
flexShrink: 1,
|
|
1003
1003
|
whiteSpaceCollapse: "preserve"
|
|
1004
1004
|
},
|
|
1005
1005
|
valuesLabel: {
|
|
1006
|
-
...
|
|
1006
|
+
...w.overflowEllipsis,
|
|
1007
1007
|
paddingLeft: 4,
|
|
1008
1008
|
fontWeight: "bold !important",
|
|
1009
1009
|
minWidth: 0,
|
|
@@ -1014,71 +1014,71 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1014
1014
|
flexDirection: "row",
|
|
1015
1015
|
alignItems: "center",
|
|
1016
1016
|
boxSizing: "border-box",
|
|
1017
|
-
...e &&
|
|
1017
|
+
...e && te
|
|
1018
1018
|
}),
|
|
1019
1019
|
notPart: (e) => ({ ...He(e) })
|
|
1020
|
-
}), st = ({ dimensionTitle: e, measureTitle: t, isOpen: n, onToggle: r, dimensionFormatter: i, selectedValues: a = [], fontStyle: o, filterStyle: s, responsive:
|
|
1021
|
-
let
|
|
1020
|
+
}), st = ({ dimensionTitle: e, measureTitle: t, isOpen: n, onToggle: r, dimensionFormatter: i, selectedValues: a = [], fontStyle: o, filterStyle: s, responsive: l, isLocked: u }) => {
|
|
1021
|
+
let d = y()?.astrato ?? c, f = ot(l), p = (0, R.useContext)(Z), m = (p.pendingOperator ?? p.appliedOperator) === B.FilterOperator.NotInList, h = {
|
|
1022
1022
|
button: X(s),
|
|
1023
|
-
label: Y(o,
|
|
1024
|
-
},
|
|
1025
|
-
return /* @__PURE__ */ (0,
|
|
1023
|
+
label: Y(o, d)
|
|
1024
|
+
}, _ = h.label.color, v = (e) => String(typeof e == "boolean" ? e : i ? S(i, e) : e), x = [...a].sort().slice(0, 15).map(v).join(", "), C = a.length > 0;
|
|
1025
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1026
1026
|
role: "button",
|
|
1027
1027
|
tabIndex: 0,
|
|
1028
1028
|
"data-testid": "filter-header-dropdown",
|
|
1029
|
-
className:
|
|
1029
|
+
className: f.dropdownButton,
|
|
1030
1030
|
onClick: (e) => {
|
|
1031
1031
|
e.currentTarget.blur(), r?.();
|
|
1032
1032
|
},
|
|
1033
1033
|
onKeyUp: (e) => {
|
|
1034
1034
|
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), r?.());
|
|
1035
1035
|
},
|
|
1036
|
-
style:
|
|
1037
|
-
children: [/* @__PURE__ */ (0,
|
|
1038
|
-
className:
|
|
1039
|
-
style: { color:
|
|
1036
|
+
style: h.button,
|
|
1037
|
+
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1038
|
+
className: f.headerTitlesContainer,
|
|
1039
|
+
style: { color: _ },
|
|
1040
1040
|
children: [
|
|
1041
|
-
|
|
1041
|
+
u && /* @__PURE__ */ (0, V.jsx)(k, {
|
|
1042
1042
|
fill: "currentColor",
|
|
1043
1043
|
style: { marginRight: 8 }
|
|
1044
1044
|
}),
|
|
1045
|
-
m && /* @__PURE__ */ (0,
|
|
1046
|
-
className:
|
|
1045
|
+
m && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1046
|
+
className: f.notPart,
|
|
1047
1047
|
children: "NOT"
|
|
1048
1048
|
}),
|
|
1049
|
-
/* @__PURE__ */ (0,
|
|
1050
|
-
className:
|
|
1051
|
-
style:
|
|
1049
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
1050
|
+
className: f.title,
|
|
1051
|
+
style: h.label,
|
|
1052
1052
|
children: e
|
|
1053
1053
|
}),
|
|
1054
|
-
/* @__PURE__ */ (0,
|
|
1055
|
-
className:
|
|
1054
|
+
/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1055
|
+
className: f.title,
|
|
1056
1056
|
style: {
|
|
1057
|
-
...
|
|
1057
|
+
...h.label,
|
|
1058
1058
|
display: "flex"
|
|
1059
1059
|
},
|
|
1060
|
-
children: [/* @__PURE__ */ (0,
|
|
1061
|
-
className:
|
|
1060
|
+
children: [/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1061
|
+
className: f.measureTitle,
|
|
1062
1062
|
children: t
|
|
1063
|
-
}), C && /* @__PURE__ */ (0,
|
|
1064
|
-
className:
|
|
1065
|
-
children: [" ",
|
|
1063
|
+
}), C && /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1064
|
+
className: f.valuesLabel,
|
|
1065
|
+
children: [" ", x]
|
|
1066
1066
|
})]
|
|
1067
1067
|
})
|
|
1068
1068
|
]
|
|
1069
|
-
}), /* @__PURE__ */ (0,
|
|
1070
|
-
className:
|
|
1071
|
-
style: { color:
|
|
1072
|
-
children: n ? /* @__PURE__ */ (0,
|
|
1069
|
+
}), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1070
|
+
className: f.expandIcon,
|
|
1071
|
+
style: { color: _ },
|
|
1072
|
+
children: n ? /* @__PURE__ */ (0, V.jsx)(b, {
|
|
1073
1073
|
size: 24,
|
|
1074
1074
|
fill: "currentColor"
|
|
1075
|
-
}) : /* @__PURE__ */ (0,
|
|
1075
|
+
}) : /* @__PURE__ */ (0, V.jsx)(g, {
|
|
1076
1076
|
size: 24,
|
|
1077
1077
|
fill: "currentColor"
|
|
1078
1078
|
})
|
|
1079
1079
|
})]
|
|
1080
1080
|
});
|
|
1081
|
-
}, ct =
|
|
1081
|
+
}, ct = _({
|
|
1082
1082
|
headerListbox: (e) => ({
|
|
1083
1083
|
height: 36,
|
|
1084
1084
|
margin: "0 12px 8px",
|
|
@@ -1086,15 +1086,15 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1086
1086
|
alignItems: "center",
|
|
1087
1087
|
boxSizing: "border-box",
|
|
1088
1088
|
...e && {
|
|
1089
|
-
[
|
|
1089
|
+
[F.md]: {
|
|
1090
1090
|
height: 32,
|
|
1091
1091
|
margin: "0 12px 6px"
|
|
1092
1092
|
},
|
|
1093
|
-
[
|
|
1093
|
+
[F.sm]: {
|
|
1094
1094
|
height: 28,
|
|
1095
1095
|
margin: "0 12px 4px"
|
|
1096
1096
|
},
|
|
1097
|
-
[
|
|
1097
|
+
[F.xs]: {
|
|
1098
1098
|
height: 24,
|
|
1099
1099
|
margin: "0 12px"
|
|
1100
1100
|
}
|
|
@@ -1103,7 +1103,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1103
1103
|
headerListboxSearch: { flexGrow: 1 },
|
|
1104
1104
|
headerTitlesContainer: {
|
|
1105
1105
|
minWidth: 0,
|
|
1106
|
-
color:
|
|
1106
|
+
color: i.grey1,
|
|
1107
1107
|
cursor: "pointer",
|
|
1108
1108
|
flexGrow: 1,
|
|
1109
1109
|
flexShrink: 1,
|
|
@@ -1111,12 +1111,12 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1111
1111
|
alignItems: "center"
|
|
1112
1112
|
},
|
|
1113
1113
|
title: (e) => ({
|
|
1114
|
-
...
|
|
1114
|
+
...w.overflowEllipsis,
|
|
1115
1115
|
fontWeight: "bold !important",
|
|
1116
|
-
...
|
|
1116
|
+
...L(e)
|
|
1117
1117
|
}),
|
|
1118
1118
|
iconButton: (e) => ({
|
|
1119
|
-
...e &&
|
|
1119
|
+
...e && te,
|
|
1120
1120
|
cursor: "pointer",
|
|
1121
1121
|
display: "inline-flex",
|
|
1122
1122
|
alignItems: "center",
|
|
@@ -1133,19 +1133,19 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1133
1133
|
"&:hover": { boxShadow: "inset 0 0 0 1px currentColor" },
|
|
1134
1134
|
"&:focus": { outline: "none" },
|
|
1135
1135
|
...e && {
|
|
1136
|
-
[
|
|
1136
|
+
[F.md]: {
|
|
1137
1137
|
minWidth: 20,
|
|
1138
1138
|
width: 20,
|
|
1139
1139
|
height: 20,
|
|
1140
1140
|
borderRadius: 5
|
|
1141
1141
|
},
|
|
1142
|
-
[
|
|
1142
|
+
[F.sm]: {
|
|
1143
1143
|
minWidth: 16,
|
|
1144
1144
|
width: 16,
|
|
1145
1145
|
height: 16,
|
|
1146
1146
|
borderRadius: 4
|
|
1147
1147
|
},
|
|
1148
|
-
[
|
|
1148
|
+
[F.xs]: {
|
|
1149
1149
|
minWidth: 12,
|
|
1150
1150
|
width: 12,
|
|
1151
1151
|
height: 12,
|
|
@@ -1154,26 +1154,26 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}),
|
|
1156
1156
|
notPart: (e) => ({ ...He(e) })
|
|
1157
|
-
}), lt = ({ children: e, dimensionTitle: t, measureTitle: n, searchEnabled: r, searchTerm: i, onSearchChange: a, onApplySearched: o, fontStyle: s, vTheme:
|
|
1158
|
-
let
|
|
1159
|
-
(0,
|
|
1157
|
+
}), lt = ({ children: e, dimensionTitle: t, measureTitle: n, searchEnabled: r, searchTerm: i, onSearchChange: a, onApplySearched: o, fontStyle: s, vTheme: l = c, isNotEnabled: u, responsive: d, isLocked: f }) => {
|
|
1158
|
+
let p = ct(d), m = Y(s, l), h = m.color, [g, _] = (0, R.useState)(!1);
|
|
1159
|
+
(0, R.useEffect)(() => {
|
|
1160
1160
|
!r && i && a("");
|
|
1161
1161
|
}, [r]);
|
|
1162
|
-
let
|
|
1163
|
-
r &&
|
|
1164
|
-
},
|
|
1165
|
-
a(""),
|
|
1166
|
-
},
|
|
1162
|
+
let v = () => {
|
|
1163
|
+
r && _(!0);
|
|
1164
|
+
}, y = () => {
|
|
1165
|
+
a(""), _(!1);
|
|
1166
|
+
}, b = () => {
|
|
1167
1167
|
o();
|
|
1168
1168
|
};
|
|
1169
|
-
return r ? /* @__PURE__ */ (0,
|
|
1169
|
+
return r ? /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1170
1170
|
"data-testid": "filter-header-title",
|
|
1171
|
-
className:
|
|
1171
|
+
className: p.headerListbox,
|
|
1172
1172
|
style: { color: h },
|
|
1173
|
-
children:
|
|
1174
|
-
responsive:
|
|
1173
|
+
children: g ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ee, {
|
|
1174
|
+
responsive: d,
|
|
1175
1175
|
autoFocus: !0,
|
|
1176
|
-
className:
|
|
1176
|
+
className: p.headerListboxSearch,
|
|
1177
1177
|
"data-testid": "filter-search-input",
|
|
1178
1178
|
onChange: (e) => {
|
|
1179
1179
|
a(e.target.value);
|
|
@@ -1186,44 +1186,44 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1186
1186
|
onKeyDown: (e) => {
|
|
1187
1187
|
switch (e.key) {
|
|
1188
1188
|
case "Enter":
|
|
1189
|
-
|
|
1189
|
+
b();
|
|
1190
1190
|
break;
|
|
1191
1191
|
case "Escape":
|
|
1192
|
-
|
|
1192
|
+
y(), a("");
|
|
1193
1193
|
break;
|
|
1194
1194
|
}
|
|
1195
1195
|
},
|
|
1196
1196
|
value: i
|
|
1197
|
-
}), e] }) : /* @__PURE__ */ (0,
|
|
1198
|
-
/* @__PURE__ */ (0,
|
|
1197
|
+
}), e] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [
|
|
1198
|
+
/* @__PURE__ */ (0, V.jsx)("button", {
|
|
1199
1199
|
"data-testid": "filter-header-show-search-button",
|
|
1200
|
-
onClick:
|
|
1201
|
-
className:
|
|
1200
|
+
onClick: v,
|
|
1201
|
+
className: p.iconButton,
|
|
1202
1202
|
style: { marginRight: 8 },
|
|
1203
|
-
children: /* @__PURE__ */ (0,
|
|
1203
|
+
children: /* @__PURE__ */ (0, V.jsx)(x, {
|
|
1204
1204
|
fill: "currentColor",
|
|
1205
1205
|
size: 20
|
|
1206
1206
|
})
|
|
1207
1207
|
}),
|
|
1208
|
-
|
|
1208
|
+
f && /* @__PURE__ */ (0, V.jsx)(k, {
|
|
1209
1209
|
fill: "currentColor",
|
|
1210
1210
|
style: { marginRight: 8 }
|
|
1211
1211
|
}),
|
|
1212
|
-
/* @__PURE__ */ (0,
|
|
1213
|
-
onClick:
|
|
1214
|
-
className:
|
|
1212
|
+
/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1213
|
+
onClick: v,
|
|
1214
|
+
className: p.headerTitlesContainer,
|
|
1215
1215
|
children: [
|
|
1216
|
-
|
|
1217
|
-
className:
|
|
1216
|
+
u && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1217
|
+
className: p.notPart,
|
|
1218
1218
|
children: "NOT"
|
|
1219
1219
|
}),
|
|
1220
|
-
/* @__PURE__ */ (0,
|
|
1221
|
-
className:
|
|
1220
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1221
|
+
className: p.title,
|
|
1222
1222
|
style: m,
|
|
1223
1223
|
children: t
|
|
1224
1224
|
}),
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1226
|
-
className:
|
|
1225
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1226
|
+
className: p.title,
|
|
1227
1227
|
style: {
|
|
1228
1228
|
...m,
|
|
1229
1229
|
whiteSpaceCollapse: "preserve"
|
|
@@ -1234,24 +1234,24 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1234
1234
|
}),
|
|
1235
1235
|
e
|
|
1236
1236
|
] })
|
|
1237
|
-
}) : /* @__PURE__ */ (0,
|
|
1237
|
+
}) : /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1238
1238
|
"data-testid": "filter-header-title",
|
|
1239
|
-
className:
|
|
1239
|
+
className: p.headerListbox,
|
|
1240
1240
|
style: { color: h },
|
|
1241
|
-
children: [/* @__PURE__ */ (0,
|
|
1242
|
-
className:
|
|
1241
|
+
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1242
|
+
className: p.headerTitlesContainer,
|
|
1243
1243
|
children: [
|
|
1244
|
-
|
|
1245
|
-
className:
|
|
1244
|
+
u && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1245
|
+
className: p.notPart,
|
|
1246
1246
|
children: "NOT"
|
|
1247
1247
|
}),
|
|
1248
|
-
/* @__PURE__ */ (0,
|
|
1249
|
-
className:
|
|
1248
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1249
|
+
className: p.title,
|
|
1250
1250
|
style: m,
|
|
1251
1251
|
children: t
|
|
1252
1252
|
}),
|
|
1253
|
-
/* @__PURE__ */ (0,
|
|
1254
|
-
className:
|
|
1253
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1254
|
+
className: p.title,
|
|
1255
1255
|
style: {
|
|
1256
1256
|
...m,
|
|
1257
1257
|
whiteSpaceCollapse: "preserve"
|
|
@@ -1261,25 +1261,25 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1261
1261
|
]
|
|
1262
1262
|
}), e]
|
|
1263
1263
|
});
|
|
1264
|
-
}, ut =
|
|
1264
|
+
}, ut = _({
|
|
1265
1265
|
container: ({ responsive: e, isDropdown: t }) => ({
|
|
1266
1266
|
margin: 0,
|
|
1267
1267
|
padding: 0,
|
|
1268
1268
|
...!t && {
|
|
1269
1269
|
height: "calc(100% - 44px)",
|
|
1270
1270
|
...e && {
|
|
1271
|
-
[
|
|
1272
|
-
[
|
|
1271
|
+
[F.sm]: { height: "calc(100% - 36px)" },
|
|
1272
|
+
[F.xs]: { height: "calc(100% - 32px)" }
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}),
|
|
1276
1276
|
scrollContainer: ({ responsive: e }) => ({
|
|
1277
|
-
...
|
|
1277
|
+
...A.propertiesPanel,
|
|
1278
1278
|
padding: "0 12px",
|
|
1279
1279
|
...e && {
|
|
1280
|
-
[
|
|
1281
|
-
[
|
|
1282
|
-
[
|
|
1280
|
+
[F.md]: { padding: "0 8px" },
|
|
1281
|
+
[F.sm]: { padding: "0 6px" },
|
|
1282
|
+
[F.xs]: { padding: "0 4px" }
|
|
1283
1283
|
}
|
|
1284
1284
|
})
|
|
1285
1285
|
}), dt = ({ children: e, loadMoreData: t, isDropdown: n = !1, hasSearch: r = !1, responsive: i }) => {
|
|
@@ -1287,14 +1287,14 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1287
1287
|
responsive: i,
|
|
1288
1288
|
isDropdown: n
|
|
1289
1289
|
});
|
|
1290
|
-
return /* @__PURE__ */ (0,
|
|
1290
|
+
return /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1291
1291
|
className: a.container,
|
|
1292
1292
|
"data-testid": "list-container",
|
|
1293
1293
|
style: {
|
|
1294
1294
|
paddingTop: n && !r ? 8 : void 0,
|
|
1295
1295
|
paddingBottom: n ? 8 : void 0
|
|
1296
1296
|
},
|
|
1297
|
-
children: /* @__PURE__ */ (0,
|
|
1297
|
+
children: /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1298
1298
|
className: a.scrollContainer,
|
|
1299
1299
|
style: {
|
|
1300
1300
|
height: n ? void 0 : "100%",
|
|
@@ -1302,12 +1302,12 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1302
1302
|
},
|
|
1303
1303
|
onScroll: (e) => {
|
|
1304
1304
|
let { scrollHeight: n, clientHeight: r, scrollTop: i } = e.currentTarget;
|
|
1305
|
-
|
|
1305
|
+
ie(n, r, i) && t();
|
|
1306
1306
|
},
|
|
1307
1307
|
children: e
|
|
1308
1308
|
})
|
|
1309
1309
|
});
|
|
1310
|
-
}, ft =
|
|
1310
|
+
}, ft = _({
|
|
1311
1311
|
mainFilterContainer: {
|
|
1312
1312
|
width: "100%",
|
|
1313
1313
|
height: "100%",
|
|
@@ -1317,8 +1317,8 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1317
1317
|
noBorder: { border: "none !important" }
|
|
1318
1318
|
}), pt = ({ children: e, noBorder: t, blurBackground: n, filterStyle: r, fontSize: i }) => {
|
|
1319
1319
|
let a = ft(), o = X(r);
|
|
1320
|
-
return /* @__PURE__ */ (0,
|
|
1321
|
-
className:
|
|
1320
|
+
return /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1321
|
+
className: T({
|
|
1322
1322
|
[a.mainFilterContainer]: !0,
|
|
1323
1323
|
[a.noBorder]: t,
|
|
1324
1324
|
[a.blurBackground]: n
|
|
@@ -1330,4 +1330,4 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1330
1330
|
children: e
|
|
1331
1331
|
});
|
|
1332
1332
|
};
|
|
1333
|
-
export {
|
|
1333
|
+
export { oe as C, z as S, we as _, at as a, se as b, $ as c, Z as d, Be as f, Me as g, Pe as h, st as i, $e as l, Le as m, dt as n, rt as o, ze as p, lt as r, tt as s, pt as t, Q as u, Ce as v, ie as w, ce as x, ke as y };
|