@astrato-io/visualizations 0.10.0 → 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 +21 -1
- package/README.md +22 -4
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +59 -145
- package/chunks/{Button-CCF851ea.js → Button-CPG4WX8X.js} +3 -3
- package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-PSLW8HmD.js} +12 -12
- package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
- package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-KQ2EQlGL.js} +16 -16
- package/chunks/{MenuOption-CQpT79AP.js → MenuOption-B-6K7kks.js} +151 -151
- package/chunks/{Title-C-p4ZarD.js → Title-BmvwZYkh.js} +32 -32
- package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-CFmH6gUN.js} +11 -11
- package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
- package/chunks/{bar-layout-DStC-GNV.js → bar-layout-BNou0dZF.js} +2 -2
- package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-BkhO7sDd.js} +55 -53
- package/chunks/{builder-CScg1TOS.js → builder-CNjuqD2z.js} +107 -56
- package/chunks/category-axis-D1OVyMrr.js +20 -0
- package/chunks/{coloring-9jU3s_-p.js → coloring-BOiP0rmn.js} +54 -54
- package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
- package/chunks/defaults-B5_8S-J-.js +3 -0
- package/chunks/{definitions-C4grxhye.js → definitions-AS9GcavE.js} +263 -242
- package/chunks/{escobar-CjirINHP.js → escobar-cQ1eQ64G.js} +8528 -8461
- package/chunks/{extend-preset-D-l9u_we.js → extend-preset-BlCbcXKR.js} +421 -421
- package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CI7dDNM1.js} +12 -12
- package/chunks/{filtering-C1zakrrX.js → filtering-Dwi7hDPZ.js} +263 -263
- package/chunks/handlers-C63NVo7i.js +15433 -0
- package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-CBlxEu3s.js} +8 -8
- package/chunks/{isEqual-Ch9OEye3.js → isEqual-BdHo6wqq.js} +1 -1
- package/chunks/{isFocusVisible-CgMP0qkR.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-CKRjhSHQ.js → logger-Bc-DqDM_.js} +72 -72
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-CKzorLgK.js → map.compiler-CRO6XpdI.js} +43 -45
- package/chunks/measure-format-default-B6ghxih7.js +22 -0
- package/chunks/{metadata-Bb9pTXrq.js → metadata-CtkvZEhS.js} +1 -1
- package/chunks/number.compiler-kV4lobCZ.js +57 -0
- package/chunks/{operations-DZoY50VX.js → operations-COl9wgqi.js} +9893 -9831
- package/chunks/{range-D1BTmFMp.js → range-CMJ5yc5Z.js} +2 -2
- package/chunks/{react-dom-Dgv2azN2.js → react-dom-BjsCbYHq.js} +76 -76
- package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-DFHi3Wkr.js} +1 -1
- package/chunks/{requirements-NHNrR8Ie.js → requirements-C5YLmHKe.js} +251 -227
- package/chunks/{shared-UitWpq1J.js → shared-DyqxOie0.js} +290 -278
- package/chunks/standalone-06i1wmIX.js +6 -0
- package/chunks/{standalone-DtBk_iUz.js → standalone-9jrQ3zJT.js} +10 -10
- package/chunks/standalone-B6zUvxNQ.js +357 -0
- package/chunks/{standalone-Bnnr87pc.js → standalone-BYK2U0Vd.js} +418 -679
- package/chunks/standalone-Be5APcVv.js +762 -0
- package/chunks/standalone-Bp4G3MDx.js +396 -0
- package/chunks/{standalone-CbPk8bKn.js → standalone-BrjtMIdd.js} +132 -132
- package/chunks/{standalone-BOzHA_d4.js → standalone-Bsfz5vnJ.js} +57 -57
- package/chunks/standalone-BuXpKMnc.js +2 -0
- package/chunks/standalone-CIjNYyya.js +8378 -0
- package/chunks/{standalone-B0U6c3su.js → standalone-CS5VGoja.js} +358 -358
- package/chunks/standalone-CUGt2FUF.js +2 -0
- package/chunks/{standalone-BapqaniK.js → standalone-ChfEHb28.js} +2299 -1072
- package/chunks/standalone-CnF2OYLQ.js +355 -0
- package/chunks/standalone-CznEEiq3.js +422 -0
- package/chunks/{standalone-Ck63MZzj.js → standalone-D9k5SCd8.js} +165 -165
- package/chunks/{standalone-CRdDZYeM.js → standalone-DYVYccmY.js} +855 -855
- package/chunks/{standalone-CVknVdUC.js → standalone-DaNxWIKn.js} +27 -27
- package/chunks/{standalone-swGs70tD.js → standalone-Db_HNuWx.js} +50 -50
- package/chunks/standalone-DcuE8KBa.js +287 -0
- package/chunks/{standalone-U0WJwFlG.js → standalone-I5kRIsp8.js} +97 -97
- package/chunks/{standalone-BBu90BhK.js → standalone-K2OvRAQM.js} +125 -125
- package/chunks/{standalone-DCFY1MAV.js → standalone-c4CPN6ug.js} +4634 -4633
- package/chunks/{standalone-ByKKqT5L.js → standalone-iOnJhCvA.js} +302 -302
- package/chunks/standalone-pCrzBiTy.js +773 -0
- package/chunks/standalone-qrZaimgC.js +689 -0
- package/chunks/standalone-yqDJ8h3K.js +1012 -0
- package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-CMH_dtYs.js} +29 -29
- package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-BfxBzhhH.js} +1 -1
- package/chunks/{utils-3Igg6xmO.js → utils-BdJrEeIQ.js} +4037 -4015
- package/chunks/{view-DdMLZySj.js → view-Q-_XIrWE.js} +1615 -1615
- package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-BwS0xUqs.js} +1723 -1693
- package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-D_ooGNWI.js} +4006 -3994
- 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 +48 -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 +528 -504
- package/metadata.js +2 -2
- package/operations.js +6 -6
- package/package.json +73 -68
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +34 -53
- 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/definitions/model/definitions/types/compilation.types.d.ts +4 -1
- package/src/types.d.ts +28 -28
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-D_MzsdfY.js +0 -22
- package/chunks/defaults-cyNhn37t.js +0 -3
- package/chunks/handlers-ZviIUC-j.js +0 -15387
- package/chunks/line.compiler-De5fiKuR.js +0 -198
- package/chunks/number.compiler-CaTmJkmi.js +0 -53
- package/chunks/standalone-BEekPuA12.js +0 -357
- 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-DibjA73M.js +0 -6
- package/chunks/standalone-DxBAyqAu.js +0 -772
- package/chunks/standalone-KMQPsNsq.js +0 -2
- package/chunks/standalone-MBLSvsrY.js +0 -2
- package/chunks/standalone-wgFAVnnm.js +0 -355
- package/chunks/standalone-xGV0dqPV.js +0 -689
|
@@ -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,15 +277,15 @@ function ke(e, t) {
|
|
|
277
277
|
o = 0;
|
|
278
278
|
}, c;
|
|
279
279
|
}
|
|
280
|
-
var q = (e, t) => t && !
|
|
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) {
|
|
288
|
-
return
|
|
288
|
+
return u(e) || e.label || e.dataItem?.name || "";
|
|
289
289
|
}
|
|
290
290
|
var Pe = (e) => async (t) => {
|
|
291
291
|
t.preventDefault(), t.stopPropagation(), e((t.clipboardData.getData("Text") || await navigator.clipboard.readText()).replaceAll("\r\n", " ").replaceAll("\r", " ").replaceAll("\n", " "));
|
|
@@ -297,9 +297,9 @@ var Pe = (e) => async (t) => {
|
|
|
297
297
|
t > e && (t = e), n < e && (n = e);
|
|
298
298
|
}), [t, n];
|
|
299
299
|
}, Ie = a("getToRangeSelectionHandler", "#cbacba"), Le = (e, t) => async () => {
|
|
300
|
-
let n = e.selection.getActiveSelection(
|
|
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 = a("getToValueSelectionHandler", "#cbacba"), Re = r(
|
|
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,36 +382,36 @@ 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
|
-
},
|
|
411
|
-
return
|
|
412
|
-
backgroundColor:
|
|
413
|
-
border:
|
|
414
|
-
borderRadius:
|
|
410
|
+
}, l = "0px";
|
|
411
|
+
return a && (l = `${o}px`, t && (l = `${o}px ${o}px 0 0`)), {
|
|
412
|
+
backgroundColor: r,
|
|
413
|
+
border: a ? `${c}px ${Ve(s)} ${i}` : "none",
|
|
414
|
+
borderRadius: l
|
|
415
415
|
};
|
|
416
416
|
};
|
|
417
417
|
function He(e) {
|
|
@@ -428,21 +428,21 @@ function He(e) {
|
|
|
428
428
|
flexShrink: 0,
|
|
429
429
|
backgroundColor: i.mainBrightPink,
|
|
430
430
|
color: i.white,
|
|
431
|
-
...
|
|
432
|
-
...
|
|
431
|
+
...w.bold11,
|
|
432
|
+
...w.overflowEllipsis,
|
|
433
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
478
|
} }), Ke = ({ disabled: e, isApplied: t, isSelected: n, isNot: r, fontColor: a }) => {
|
|
479
479
|
let o = Ge(), s = a ?? (t ? i.mainDarkNavy : void 0);
|
|
480
|
-
return /* @__PURE__ */ (0,
|
|
480
|
+
return /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
481
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",
|
|
@@ -514,8 +514,8 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
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,
|
|
@@ -545,54 +545,54 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
545
545
|
flexShrink: 1
|
|
546
546
|
},
|
|
547
547
|
rowDisabled: { color: i.grey3 }
|
|
548
|
-
}), Ye = ({ dimensionDisplayValue: e, measuresLabel: t, showLabelProgress: n, isSelected: r, isApplied: a, strikethrough: o, disabled: s, searchTerm:
|
|
549
|
-
let
|
|
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
|
-
},
|
|
554
|
+
...d,
|
|
555
|
+
strikethrough: d?.strikethrough || o
|
|
556
|
+
}, _),
|
|
557
557
|
...p ? {
|
|
558
558
|
textAlign: p,
|
|
559
559
|
justifyContent: p === "right" ? "flex-end" : p === "center" ? "center" : "flex-start"
|
|
560
560
|
} : {}
|
|
561
561
|
}, b = r || a ? f : qe(f);
|
|
562
|
-
return /* @__PURE__ */ (0,
|
|
563
|
-
className:
|
|
564
|
-
[
|
|
565
|
-
[
|
|
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"
|
|
@@ -654,35 +654,35 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
654
654
|
"& > div > span": { color: `${i.mainDarkNavy} !important` }
|
|
655
655
|
},
|
|
656
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:
|
|
658
|
-
let
|
|
659
|
-
return (0,
|
|
660
|
-
|
|
661
|
-
}, []), /* @__PURE__ */ (0,
|
|
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
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
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: {
|
|
@@ -838,28 +838,28 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
838
838
|
}
|
|
839
839
|
},
|
|
840
840
|
rowDisabled: { "& span": { color: `${i.grey3} !important` } },
|
|
841
|
-
label: (e) => ({ ...
|
|
842
|
-
}), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue: a, dimensionFormatter: o, searchTerm: s, onSelect:
|
|
843
|
-
let
|
|
844
|
-
...
|
|
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:
|
|
850
|
+
onClick: l,
|
|
851
851
|
"data-testid": `small-list-item-dimension-${a}`,
|
|
852
|
-
className:
|
|
853
|
-
[
|
|
854
|
-
[
|
|
855
|
-
[
|
|
856
|
-
[
|
|
857
|
-
[
|
|
858
|
-
[
|
|
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
860
|
style: { "--filter-hover-color": r ?? i.grey5 },
|
|
861
861
|
children: [
|
|
862
|
-
f ? /* @__PURE__ */ (0,
|
|
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
|
-
f ? null : /* @__PURE__ */ (0,
|
|
890
|
+
f ? null : /* @__PURE__ */ (0, V.jsx)(Ke, {
|
|
891
891
|
disabled: n,
|
|
892
892
|
isApplied: t,
|
|
893
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 =
|
|
945
|
+
}, it = _({ root: {
|
|
946
946
|
background: i.grey5,
|
|
947
947
|
height: 2,
|
|
948
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,16 +967,16 @@ 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
|
}
|
|
@@ -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,15 +1014,15 @@ 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",
|
|
@@ -1033,52 +1033,52 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
|
|
|
1033
1033
|
onKeyUp: (e) => {
|
|
1034
1034
|
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), r?.());
|
|
1035
1035
|
},
|
|
1036
|
-
style:
|
|
1037
|
-
children: [/* @__PURE__ */ (0,
|
|
1036
|
+
style: h.button,
|
|
1037
|
+
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1038
1038
|
className: f.headerTitlesContainer,
|
|
1039
|
-
style: { color:
|
|
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,
|
|
1045
|
+
m && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1046
1046
|
className: f.notPart,
|
|
1047
1047
|
children: "NOT"
|
|
1048
1048
|
}),
|
|
1049
|
-
/* @__PURE__ */ (0,
|
|
1049
|
+
/* @__PURE__ */ (0, V.jsx)("div", {
|
|
1050
1050
|
className: f.title,
|
|
1051
|
-
style:
|
|
1051
|
+
style: h.label,
|
|
1052
1052
|
children: e
|
|
1053
1053
|
}),
|
|
1054
|
-
/* @__PURE__ */ (0,
|
|
1054
|
+
/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1055
1055
|
className: f.title,
|
|
1056
1056
|
style: {
|
|
1057
|
-
...
|
|
1057
|
+
...h.label,
|
|
1058
1058
|
display: "flex"
|
|
1059
1059
|
},
|
|
1060
|
-
children: [/* @__PURE__ */ (0,
|
|
1060
|
+
children: [/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1061
1061
|
className: f.measureTitle,
|
|
1062
1062
|
children: t
|
|
1063
|
-
}), C && /* @__PURE__ */ (0,
|
|
1063
|
+
}), C && /* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1064
1064
|
className: f.valuesLabel,
|
|
1065
|
-
children: [" ",
|
|
1065
|
+
children: [" ", x]
|
|
1066
1066
|
})]
|
|
1067
1067
|
})
|
|
1068
1068
|
]
|
|
1069
|
-
}), /* @__PURE__ */ (0,
|
|
1069
|
+
}), /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1070
1070
|
className: f.expandIcon,
|
|
1071
|
-
style: { color:
|
|
1072
|
-
children: n ? /* @__PURE__ */ (0,
|
|
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
|
}
|
|
@@ -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,24 +1154,24 @@ 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 p = ct(
|
|
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
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
1176
|
className: p.headerListboxSearch,
|
|
1177
1177
|
"data-testid": "filter-search-input",
|
|
@@ -1186,43 +1186,43 @@ 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:
|
|
1200
|
+
onClick: v,
|
|
1201
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
|
-
f && /* @__PURE__ */ (0,
|
|
1208
|
+
f && /* @__PURE__ */ (0, V.jsx)(k, {
|
|
1209
1209
|
fill: "currentColor",
|
|
1210
1210
|
style: { marginRight: 8 }
|
|
1211
1211
|
}),
|
|
1212
|
-
/* @__PURE__ */ (0,
|
|
1213
|
-
onClick:
|
|
1212
|
+
/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1213
|
+
onClick: v,
|
|
1214
1214
|
className: p.headerTitlesContainer,
|
|
1215
1215
|
children: [
|
|
1216
|
-
|
|
1216
|
+
u && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1217
1217
|
className: p.notPart,
|
|
1218
1218
|
children: "NOT"
|
|
1219
1219
|
}),
|
|
1220
|
-
/* @__PURE__ */ (0,
|
|
1220
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1221
1221
|
className: p.title,
|
|
1222
1222
|
style: m,
|
|
1223
1223
|
children: t
|
|
1224
1224
|
}),
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1225
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1226
1226
|
className: p.title,
|
|
1227
1227
|
style: {
|
|
1228
1228
|
...m,
|
|
@@ -1234,23 +1234,23 @@ 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
1239
|
className: p.headerListbox,
|
|
1240
1240
|
style: { color: h },
|
|
1241
|
-
children: [/* @__PURE__ */ (0,
|
|
1241
|
+
children: [/* @__PURE__ */ (0, V.jsxs)("div", {
|
|
1242
1242
|
className: p.headerTitlesContainer,
|
|
1243
1243
|
children: [
|
|
1244
|
-
|
|
1244
|
+
u && /* @__PURE__ */ (0, V.jsx)("div", {
|
|
1245
1245
|
className: p.notPart,
|
|
1246
1246
|
children: "NOT"
|
|
1247
1247
|
}),
|
|
1248
|
-
/* @__PURE__ */ (0,
|
|
1248
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1249
1249
|
className: p.title,
|
|
1250
1250
|
style: m,
|
|
1251
1251
|
children: t
|
|
1252
1252
|
}),
|
|
1253
|
-
/* @__PURE__ */ (0,
|
|
1253
|
+
/* @__PURE__ */ (0, V.jsx)("span", {
|
|
1254
1254
|
className: p.title,
|
|
1255
1255
|
style: {
|
|
1256
1256
|
...m,
|
|
@@ -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 };
|