@astrato-io/visualizations 0.8.0 → 0.10.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/README.md +9 -5
- package/THIRD_PARTY_NOTICES.md +403 -325
- package/VISUALIZATION_DEFINITIONS.md +319 -32
- package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
- package/chunks/CircularProgress-yupH6YWs.js +765 -0
- package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
- package/chunks/LinearProgress-CyFjN4px.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
- package/chunks/Title-C-p4ZarD.js +1804 -0
- package/chunks/_createAggregator-BF4qG9XK.js +50 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
- package/chunks/bar-layout-DStC-GNV.js +9 -0
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
- package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
- package/chunks/defaults-cyNhn37t.js +3 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
- package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
- package/chunks/handlers-ZviIUC-j.js +15387 -0
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
- package/chunks/isEqual-Ch9OEye3.js +16 -0
- package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
- package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
- package/chunks/map.compiler-CKzorLgK.js +345 -0
- package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
- package/chunks/operations-DZoY50VX.js +31297 -0
- package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
- package/chunks/react-dom-Dgv2azN2.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/shared-UitWpq1J.js +1331 -0
- package/chunks/standalone-B0U6c3su.js +3638 -0
- package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
- package/chunks/standalone-BEekPuA12.js +357 -0
- package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
- package/chunks/standalone-BR2JuRIC.js +422 -0
- package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
- package/chunks/standalone-Bnnr87pc.js +2009 -0
- package/chunks/standalone-BwJqDj2Z.js +396 -0
- package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
- package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
- package/chunks/standalone-CRfDOO1x.js +287 -0
- package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
- package/chunks/standalone-CbPk8bKn.js +580 -0
- package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
- package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
- package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
- package/chunks/standalone-DhfgeJIk.js +1012 -0
- package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
- package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
- package/chunks/standalone-DxBAyqAu.js +772 -0
- package/chunks/standalone-KMQPsNsq.js +2 -0
- package/chunks/standalone-MBLSvsrY.js +2 -0
- package/chunks/standalone-U0WJwFlG.js +354 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
- package/chunks/standalone-wgFAVnnm.js +355 -0
- package/chunks/standalone-xGV0dqPV.js +689 -0
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-B8iCYyw1.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
- package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
- package/chunks/with-html-element-DOfkR3C1.js +16094 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +303 -2
- package/docs/operations/combo.md +262 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +148 -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 +262 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +8 -8
- package/docs/operations/line.md +262 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +148 -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 +439 -157
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +523 -469
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +74 -68
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/available-fields.d.ts +2 -2
- package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +535 -349
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +45 -41
- package/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/handlers-TOT-7INo.js +0 -12871
- package/chunks/isEqual-B8loyPsC.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-Dh4v1Ovt.js +0 -26280
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/shared-Bn4N5QcZ.js +0 -1218
- package/chunks/standalone-B55oyW6c.js +0 -689
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-Bes8srx1.js +0 -354
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-BlMIwpEe.js +0 -1877
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-CLmGb7nn2.js +0 -355
- package/chunks/standalone-CXNP6-xD.js +0 -420
- package/chunks/standalone-DLlyRIE6.js +0 -287
- package/chunks/standalone-DMcI1afI.js +0 -396
- package/chunks/standalone-DN4S1MjT.js +0 -3874
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/standalone-D__XCp-h.js +0 -1003
- package/chunks/standalone-XTgSsTAa.js +0 -354
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
|
@@ -1,44 +1,37 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { d as
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { $o as n, $t as r, Da as i, Ir as a, Mn as o, Xa as s, Yn as c, in as l, na as u, oa as d, qi as f, ta as p } from "./visualization-filters-CzvFHE6M.js";
|
|
3
|
+
import { Fr as m, G as h, Kn as g, Ln as _, Pr as v, Ut as y, W as b, ci as x, f as S, ii as C, jr as w, kr as ee, oi as T, ot as E, rt as D, si as O, sn as k, zr as A } from "./utils-3Igg6xmO.js";
|
|
4
|
+
import "./defaults-cyNhn37t.js";
|
|
5
|
+
import { s as j } from "./logger-CKRjhSHQ.js";
|
|
6
|
+
import { r as M, s as N, u as te } from "./MenuOption-CQpT79AP.js";
|
|
7
|
+
import { d as ne, f as P, l as F, u as I } from "./responsive.styles-FItb913l.js";
|
|
8
|
+
import { t as re } from "./LinearProgress-CyFjN4px.js";
|
|
9
|
+
import { t as ie } from "./_createAggregator-BF4qG9XK.js";
|
|
10
|
+
var ae = (e, t, n) => Math.ceil(t) + Math.ceil(n) >= Math.floor(e) && n > 0;
|
|
11
|
+
function oe(e) {
|
|
10
12
|
let { theme: t, name: n, props: r } = e;
|
|
11
|
-
return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? r :
|
|
13
|
+
return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? r : D(t.components[n].defaultProps, r);
|
|
12
14
|
}
|
|
13
|
-
function
|
|
14
|
-
let i =
|
|
15
|
-
return
|
|
16
|
-
theme:
|
|
17
|
-
name:
|
|
18
|
-
props:
|
|
15
|
+
function se(e) {
|
|
16
|
+
let { props: t, name: n, defaultTheme: r, themeId: i } = e, a = E(r);
|
|
17
|
+
return i && (a = a[i] || a), oe({
|
|
18
|
+
theme: a,
|
|
19
|
+
name: n,
|
|
20
|
+
props: t
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
for (var a = r.length, o = t ? a : -1, s = Object(r); (t ? o-- : ++o < a) && i(s[o], o, s) !== !1;);
|
|
34
|
-
return r;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
t.exports = r;
|
|
38
|
-
})), le = /* @__PURE__ */ t(((e, t) => {
|
|
39
|
-
var n = se();
|
|
40
|
-
t.exports = ce()(n);
|
|
41
|
-
})), H = ne(), U = /* @__PURE__ */ e(x()), W = M(), ue = ({ r: e, g: t, b: n, a: r }) => `rgba(${e},${t},${n},${r ?? 1})`, de = (e) => {
|
|
23
|
+
var L = /* @__PURE__ */ e(x(), 1), R = /*#__PURE__*/ L.createContext(void 0);
|
|
24
|
+
function ce() {
|
|
25
|
+
return L.useContext(R);
|
|
26
|
+
}
|
|
27
|
+
function le({ props: e, states: t }) {
|
|
28
|
+
let n = L.useContext(R), r = {};
|
|
29
|
+
return t.forEach((t) => {
|
|
30
|
+
let i = e[t];
|
|
31
|
+
r[t] = i === void 0 && n ? n[t] : i;
|
|
32
|
+
}), [r, n];
|
|
33
|
+
}
|
|
34
|
+
var z = j(), B = A(), ue = ({ r: e, g: t, b: n, a: r }) => `rgba(${e},${t},${n},${r ?? 1})`, de = (e) => {
|
|
42
35
|
let [t, n, r, i] = e.replace("rgba(", "").replace("rgb(", "").replace(")", "").replaceAll(" ", "").split(",").map((e) => +e);
|
|
43
36
|
return {
|
|
44
37
|
r: t,
|
|
@@ -46,8 +39,8 @@ var se = /* @__PURE__ */ t(((e, t) => {
|
|
|
46
39
|
b: r,
|
|
47
40
|
a: i ?? 1
|
|
48
41
|
};
|
|
49
|
-
},
|
|
50
|
-
let t =
|
|
42
|
+
}, V = (e, t = !0) => /^#([0-9a-f]{3}){1,2}$/i.test(String(e)) || t && /^#([0-9a-f]{4}){1,2}$/i.test(String(e)), H = (e = "") => e.length < 7 ? e.split("").map((e) => e === "#" ? e : e + e).join("") : e, fe = (e) => {
|
|
43
|
+
let t = H(e);
|
|
51
44
|
return {
|
|
52
45
|
r: parseInt(t.slice(1, 3), 16),
|
|
53
46
|
g: parseInt(t.slice(3, 5), 16),
|
|
@@ -57,8 +50,8 @@ var se = /* @__PURE__ */ t(((e, t) => {
|
|
|
57
50
|
}, pe = (e) => {
|
|
58
51
|
if (!e) return 1;
|
|
59
52
|
if (typeof e == "string") {
|
|
60
|
-
if (
|
|
61
|
-
let t =
|
|
53
|
+
if (V(e)) {
|
|
54
|
+
let t = H(e);
|
|
62
55
|
return t.length === 7 ? 1 : Math.round(parseInt(t.slice(-2), 16) / 255 * 100) / 100;
|
|
63
56
|
}
|
|
64
57
|
let [, , , t] = e.substring(5, e.length - 1).replaceAll(" ", "").split(",");
|
|
@@ -66,68 +59,255 @@ var se = /* @__PURE__ */ t(((e, t) => {
|
|
|
66
59
|
}
|
|
67
60
|
return e.a ?? 1;
|
|
68
61
|
}, me = /* @__PURE__ */ t(((e, t) => {
|
|
69
|
-
|
|
70
|
-
for (var i = -1, a = e == null ? 0 : e.length; ++i < a;) {
|
|
71
|
-
var o = e[i];
|
|
72
|
-
t(r, o, n(o), e);
|
|
73
|
-
}
|
|
74
|
-
return r;
|
|
75
|
-
}
|
|
76
|
-
t.exports = n;
|
|
77
|
-
})), he = /* @__PURE__ */ t(((e, t) => {
|
|
78
|
-
var n = le();
|
|
79
|
-
function r(e, t, r, i) {
|
|
80
|
-
return n(e, function(e, n, a) {
|
|
81
|
-
t(i, e, r(e), a);
|
|
82
|
-
}), i;
|
|
83
|
-
}
|
|
84
|
-
t.exports = r;
|
|
85
|
-
})), ge = /* @__PURE__ */ t(((e, t) => {
|
|
86
|
-
var n = me(), r = he(), i = g(), a = l();
|
|
87
|
-
function o(e, t) {
|
|
88
|
-
return function(o, s) {
|
|
89
|
-
var c = a(o) ? n : r, l = t ? t() : {};
|
|
90
|
-
return c(o, e, i(s, 2), l);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
t.exports = o;
|
|
94
|
-
})), _e = /* @__PURE__ */ t(((e, t) => {
|
|
95
|
-
t.exports = ge()(function(e, t, n) {
|
|
62
|
+
t.exports = ie()(function(e, t, n) {
|
|
96
63
|
e[+!n].push(t);
|
|
97
64
|
}, function() {
|
|
98
65
|
return [[], []];
|
|
99
66
|
});
|
|
100
|
-
})),
|
|
101
|
-
|
|
67
|
+
})), he = class {
|
|
68
|
+
constructor(e) {
|
|
69
|
+
this.value = e;
|
|
70
|
+
}
|
|
71
|
+
deref() {
|
|
72
|
+
return this.value;
|
|
73
|
+
}
|
|
74
|
+
}, U = typeof WeakRef > "u" ? he : WeakRef, ge = 0, W = 1;
|
|
75
|
+
function G() {
|
|
76
|
+
return {
|
|
77
|
+
s: ge,
|
|
78
|
+
v: void 0,
|
|
79
|
+
o: null,
|
|
80
|
+
p: null
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function _e(e) {
|
|
84
|
+
return e instanceof U ? e.deref() : e;
|
|
85
|
+
}
|
|
86
|
+
function ve(e, t = {}) {
|
|
87
|
+
let n = G(), { resultEqualityCheck: r, maxSize: i } = t, a = i !== void 0;
|
|
88
|
+
if (a && (!Number.isInteger(i) || i < 1)) throw TypeError(`maxSize must be a positive integer, received: ${i}`);
|
|
89
|
+
let o = null, s = 0, c, l = 0;
|
|
90
|
+
function u() {
|
|
91
|
+
s >= i && (o = n, n = G(), s = 0);
|
|
92
|
+
}
|
|
93
|
+
function d() {
|
|
94
|
+
let t = n, { length: i } = arguments;
|
|
95
|
+
for (let e = 0, n = i; e < n; e++) {
|
|
96
|
+
let n = arguments[e];
|
|
97
|
+
if (typeof n == "function" || typeof n == "object" && n) {
|
|
98
|
+
let e = t.o;
|
|
99
|
+
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
|
|
100
|
+
let r = e.get(n);
|
|
101
|
+
r === void 0 ? (t = G(), e.set(n, t)) : t = r;
|
|
102
|
+
} else {
|
|
103
|
+
let e = t.p;
|
|
104
|
+
e === null && (t.p = e = /* @__PURE__ */ new Map());
|
|
105
|
+
let r = e.get(n);
|
|
106
|
+
r === void 0 ? (t = G(), e.set(n, t), s++) : t = r;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (t.s === W) return t.v;
|
|
110
|
+
if (o !== null) {
|
|
111
|
+
let e = o;
|
|
112
|
+
for (let t = 0, n = i; t < n; t++) {
|
|
113
|
+
let n = arguments[t], r;
|
|
114
|
+
if (typeof n == "function" || typeof n == "object" && n) {
|
|
115
|
+
let t = e.o;
|
|
116
|
+
r = t === null ? void 0 : t.get(n);
|
|
117
|
+
} else {
|
|
118
|
+
let t = e.p;
|
|
119
|
+
r = t === null ? void 0 : t.get(n);
|
|
120
|
+
}
|
|
121
|
+
if (r === void 0) {
|
|
122
|
+
e = null;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
e = r;
|
|
126
|
+
}
|
|
127
|
+
if (e !== null && e.s === W) {
|
|
128
|
+
let n = t;
|
|
129
|
+
return n.s = W, n.v = e.v, u(), e.v;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
let d = t, f = e.apply(null, arguments);
|
|
133
|
+
if (l++, r) {
|
|
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 U(f) : f;
|
|
136
|
+
}
|
|
137
|
+
return d.s = W, d.v = f, a && u(), f;
|
|
138
|
+
}
|
|
139
|
+
return d.clearCache = () => {
|
|
140
|
+
n = G(), o = null, s = 0, d.resetResultsCount();
|
|
141
|
+
}, d.resultsCount = () => l, d.resetResultsCount = () => {
|
|
142
|
+
l = 0;
|
|
143
|
+
}, d;
|
|
144
|
+
}
|
|
145
|
+
var K = /* @__PURE__ */ Symbol("NOT_FOUND");
|
|
146
|
+
function ye(e, t = `expected a function, instead received ${typeof e}`) {
|
|
147
|
+
if (typeof e != "function") throw TypeError(t);
|
|
148
|
+
}
|
|
149
|
+
function be(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
150
|
+
if (!e.every((e) => typeof e == "function")) {
|
|
151
|
+
let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");
|
|
152
|
+
throw TypeError(`${t}[${n}]`);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
var xe = (e) => Array.isArray(e) ? e : [e];
|
|
156
|
+
function Se(e) {
|
|
157
|
+
let t = Array.isArray(e[0]) ? e[0] : e;
|
|
158
|
+
return be(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
|
|
159
|
+
}
|
|
160
|
+
function Ce(e, ...t) {
|
|
161
|
+
let n = typeof e == "function" ? {
|
|
162
|
+
memoize: e,
|
|
163
|
+
memoizeOptions: t
|
|
164
|
+
} : e, r = (...e) => {
|
|
165
|
+
let t = 0, r = 0, i, a = {}, o = e.pop();
|
|
166
|
+
typeof o == "object" && (a = o, o = e.pop()), ye(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);
|
|
167
|
+
let { memoize: s, memoizeOptions: c = [], argsMemoize: l = ve, argsMemoizeOptions: u = [] } = {
|
|
168
|
+
...n,
|
|
169
|
+
...a
|
|
170
|
+
}, d = xe(c), f = xe(u), p = Se(e), m = s(function() {
|
|
171
|
+
return t++, o.apply(null, arguments);
|
|
172
|
+
}, ...d), h = l(function() {
|
|
173
|
+
r++;
|
|
174
|
+
let { length: e } = p, t = Array(e);
|
|
175
|
+
for (let n = 0; n < e; n++) t[n] = p[n].apply(null, arguments);
|
|
176
|
+
return i = m.apply(null, t), i;
|
|
177
|
+
}, ...f);
|
|
178
|
+
return Object.assign(h, {
|
|
179
|
+
resultFunc: o,
|
|
180
|
+
memoizedResultFunc: m,
|
|
181
|
+
dependencies: p,
|
|
182
|
+
dependencyRecomputations: () => r,
|
|
183
|
+
resetDependencyRecomputations: () => {
|
|
184
|
+
r = 0;
|
|
185
|
+
},
|
|
186
|
+
lastResult: () => i,
|
|
187
|
+
recomputations: () => t,
|
|
188
|
+
resetRecomputations: () => {
|
|
189
|
+
t = 0;
|
|
190
|
+
},
|
|
191
|
+
memoize: s,
|
|
192
|
+
argsMemoize: l
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
return Object.assign(r, { withTypes: () => r }), r;
|
|
196
|
+
}
|
|
197
|
+
var we = /* @__PURE__ */ Ce(ve);
|
|
198
|
+
function Te(e) {
|
|
199
|
+
let t;
|
|
200
|
+
return {
|
|
201
|
+
get(n) {
|
|
202
|
+
return t && e(t.key, n) ? t.value : K;
|
|
203
|
+
},
|
|
204
|
+
put(e, n) {
|
|
205
|
+
t = {
|
|
206
|
+
key: e,
|
|
207
|
+
value: n
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
findMatchingEntry(e, n) {
|
|
211
|
+
let r = t;
|
|
212
|
+
return r !== void 0 && n(r.value, e) ? r : void 0;
|
|
213
|
+
},
|
|
214
|
+
clear() {
|
|
215
|
+
t = void 0;
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
function Ee(e, t) {
|
|
220
|
+
let n = [];
|
|
221
|
+
function r(e) {
|
|
222
|
+
let r = n.findIndex((n) => t(n.key, e));
|
|
223
|
+
if (r > -1) {
|
|
224
|
+
let e = n[r];
|
|
225
|
+
return r > 0 && (n.splice(r, 1), n.unshift(e)), e.value;
|
|
226
|
+
}
|
|
227
|
+
return K;
|
|
228
|
+
}
|
|
229
|
+
function i(t, r) {
|
|
230
|
+
n.unshift({
|
|
231
|
+
key: t,
|
|
232
|
+
value: r
|
|
233
|
+
}), n.length > e && n.pop();
|
|
234
|
+
}
|
|
235
|
+
function a(e, t) {
|
|
236
|
+
let r = n, { length: i } = r;
|
|
237
|
+
for (let n = 0; n < i; n++) {
|
|
238
|
+
let i = r[n];
|
|
239
|
+
if (t(i.value, e)) return i;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
function o() {
|
|
243
|
+
n = [];
|
|
244
|
+
}
|
|
245
|
+
return {
|
|
246
|
+
get: r,
|
|
247
|
+
put: i,
|
|
248
|
+
findMatchingEntry: a,
|
|
249
|
+
clear: o
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
var De = (e, t) => e === t;
|
|
253
|
+
function Oe(e) {
|
|
254
|
+
return function(t, n) {
|
|
255
|
+
if (t === null || n === null || t.length !== n.length) return !1;
|
|
256
|
+
let { length: r } = t;
|
|
257
|
+
for (let i = 0; i < r; i++) if (!e(t[i], n[i])) return !1;
|
|
258
|
+
return !0;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
function ke(e, t) {
|
|
262
|
+
let { equalityCheck: n = De, maxSize: r = 1, resultEqualityCheck: i } = typeof t == "object" ? t : { equalityCheck: t }, a = Oe(n), o = 0, s = r <= 1 ? Te(a) : Ee(r, a);
|
|
263
|
+
function c() {
|
|
264
|
+
let t = s.get(arguments);
|
|
265
|
+
if (t === K) {
|
|
266
|
+
if (t = e.apply(null, arguments), o++, i) {
|
|
267
|
+
let e = s.findMatchingEntry(t, i);
|
|
268
|
+
e && (t = e.value, o !== 0 && o--);
|
|
269
|
+
}
|
|
270
|
+
s.put(arguments, t);
|
|
271
|
+
}
|
|
272
|
+
return t;
|
|
273
|
+
}
|
|
274
|
+
return c.clearCache = () => {
|
|
275
|
+
s.clear(), c.resetResultsCount();
|
|
276
|
+
}, c.resultsCount = () => o, c.resetResultsCount = () => {
|
|
277
|
+
o = 0;
|
|
278
|
+
}, c;
|
|
279
|
+
}
|
|
280
|
+
var q = (e, t) => t && !c(t) ? String(y(t, e)) : e === !0 ? "True" : e === !1 ? "False" : e === null ? "-" : String(e), Ae = /* @__PURE__ */ e(me()), je = (e, t) => {
|
|
281
|
+
let [n, r] = (0, Ae.default)(e, (e) => t.indexOf(e.dimension) !== -1);
|
|
102
282
|
return [n, r];
|
|
103
|
-
},
|
|
104
|
-
let t = e?.dimensions.filter((e) => e.role ===
|
|
105
|
-
return [(t?.length ? t : e?.dimensions.slice(0, 1) ?? []).map(
|
|
283
|
+
}, Me = (e) => {
|
|
284
|
+
let t = e?.dimensions.filter((e) => e.role === s.FILTER_DIMENSION);
|
|
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];
|
|
106
286
|
};
|
|
107
|
-
function
|
|
108
|
-
return
|
|
287
|
+
function Ne(e) {
|
|
288
|
+
return l(e) || e.label || e.dataItem?.name || "";
|
|
109
289
|
}
|
|
110
|
-
var
|
|
290
|
+
var Pe = (e) => async (t) => {
|
|
111
291
|
t.preventDefault(), t.stopPropagation(), e((t.clipboardData.getData("Text") || await navigator.clipboard.readText()).replaceAll("\r\n", " ").replaceAll("\r", " ").replaceAll("\n", " "));
|
|
112
|
-
},
|
|
292
|
+
}, Fe = (e) => {
|
|
113
293
|
if (!e.length) return [];
|
|
114
294
|
if (e.length === 1) return [e[0], e[0]];
|
|
115
295
|
let t = Infinity, n = -Infinity;
|
|
116
296
|
return e.forEach((e) => {
|
|
117
297
|
t > e && (t = e), n < e && (n = e);
|
|
118
298
|
}), [t, n];
|
|
119
|
-
},
|
|
120
|
-
let n = e.selection.getActiveSelection(
|
|
299
|
+
}, Ie = a("getToRangeSelectionHandler", "#cbacba"), Le = (e, t) => async () => {
|
|
300
|
+
let n = e.selection.getActiveSelection(z.FilterType.VALUE), r = structuredClone(n), i = r.applied.find((e) => e.field.name === t.name && e.field.view === t.view);
|
|
121
301
|
if (i ||= r.pending.find((e) => e.field.name === t.name && e.field.view === t.view), !i) {
|
|
122
|
-
let n =
|
|
302
|
+
let n = z.FilterOperator.Between;
|
|
123
303
|
r.pending.push({
|
|
124
304
|
operator: n,
|
|
125
|
-
field:
|
|
305
|
+
field: C(e.engine, t),
|
|
126
306
|
values: []
|
|
127
307
|
}), e.selection.setNewSelectionState(r);
|
|
128
308
|
return;
|
|
129
309
|
}
|
|
130
|
-
if (i.operator = i.operator ===
|
|
310
|
+
if (i.operator = i.operator === z.FilterOperator.InList ? z.FilterOperator.Between : z.FilterOperator.NotBetween, (i.values ?? []).length === 0) {
|
|
131
311
|
e.selection.declineSelection(i), e.selection.removeSelection(i);
|
|
132
312
|
let n = {
|
|
133
313
|
dimensions: [],
|
|
@@ -142,35 +322,35 @@ var Se = (e) => async (t) => {
|
|
|
142
322
|
}]
|
|
143
323
|
}, a = e.engine;
|
|
144
324
|
if (!a) {
|
|
145
|
-
|
|
325
|
+
Ie.error("There is no data engine available");
|
|
146
326
|
return;
|
|
147
327
|
}
|
|
148
328
|
let { data: o } = await a.getData(n), s = typeof o[0][0] == "number" ? o[0][0] : null, c = typeof o[0][1] == "number" ? o[0][1] : null;
|
|
149
329
|
if (s === null || c === null) {
|
|
150
|
-
|
|
330
|
+
Ie.error("There is something wrong with the min/max data");
|
|
151
331
|
return;
|
|
152
332
|
}
|
|
153
|
-
return i.values = [s, c], e.selection.setNewSelectionState(r,
|
|
333
|
+
return i.values = [s, c], e.selection.setNewSelectionState(r, z.FilterType.VALUE), i.operator;
|
|
154
334
|
}
|
|
155
|
-
return i.values =
|
|
156
|
-
}, J =
|
|
157
|
-
let a = n ??
|
|
335
|
+
return i.values = Fe(i.values), e.selection.setNewSelectionState(r, z.FilterType.VALUE), i.operator;
|
|
336
|
+
}, J = a("getToValueSelectionHandler", "#cbacba"), Re = r(o()), ze = (e, t, n, r, i) => async () => {
|
|
337
|
+
let a = n ?? Re, o = e.selection.getActiveSelection(z.FilterType.VALUE), s = structuredClone(o), c = s.pending.find((e) => e.field.name === t.name && e.field.view === t.view);
|
|
158
338
|
if (c ||= s.applied.find((e) => e.field.name === t.name && e.field.view === t.view), !c) {
|
|
159
339
|
J.warn("There was no selection connected to clicked field!", JSON.stringify(t));
|
|
160
340
|
return;
|
|
161
341
|
}
|
|
162
|
-
if (r) return c.operator =
|
|
163
|
-
if ([
|
|
164
|
-
if ([
|
|
342
|
+
if (r) return c.operator = z.FilterOperator.InList, c.values = [], delete c.dynamicDateRange, delete c.dynamicDateCalcRange, e.selection.setNewSelectionState(s, z.FilterType.VALUE), c.operator;
|
|
343
|
+
if ([z.FilterOperator.InList, z.FilterOperator.NotInList].includes(c.operator)) return c.operator;
|
|
344
|
+
if ([z.FilterOperator.Like, z.FilterOperator.NotLike].includes(c.operator)) {
|
|
165
345
|
let n = c.values;
|
|
166
|
-
if (c.operator = c.operator ===
|
|
346
|
+
if (c.operator = c.operator === z.FilterOperator.Like ? z.FilterOperator.InList : z.FilterOperator.NotInList, n?.length) {
|
|
167
347
|
let r = {
|
|
168
348
|
dimensions: [{ fieldKey: t.key }],
|
|
169
349
|
limit: a + 1,
|
|
170
350
|
measures: [],
|
|
171
351
|
filters: [{
|
|
172
352
|
fieldKey: t.key,
|
|
173
|
-
operator:
|
|
353
|
+
operator: z.FilterOperator.Like,
|
|
174
354
|
values: n
|
|
175
355
|
}]
|
|
176
356
|
}, o = e.engine;
|
|
@@ -179,12 +359,12 @@ var Se = (e) => async (t) => {
|
|
|
179
359
|
return;
|
|
180
360
|
}
|
|
181
361
|
let { data: l, meta: u } = await o.getData(r);
|
|
182
|
-
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, z.FilterType.VALUE), i?.(c.operator, String(n[0] ?? "")), c.operator;
|
|
183
363
|
c.values = Object.values(l).flat();
|
|
184
364
|
}
|
|
185
|
-
return e.selection.setNewSelectionState(s,
|
|
365
|
+
return e.selection.setNewSelectionState(s, z.FilterType.VALUE), c.operator;
|
|
186
366
|
}
|
|
187
|
-
c.operator = c.operator ===
|
|
367
|
+
c.operator = c.operator === z.FilterOperator.Between ? z.FilterOperator.InList : z.FilterOperator.NotInList;
|
|
188
368
|
let l = {
|
|
189
369
|
dimensions: [{ fieldKey: t.key }],
|
|
190
370
|
limit: a,
|
|
@@ -193,7 +373,7 @@ var Se = (e) => async (t) => {
|
|
|
193
373
|
};
|
|
194
374
|
c.values && (l.filters?.push({
|
|
195
375
|
fieldKey: t.key,
|
|
196
|
-
operator:
|
|
376
|
+
operator: z.FilterOperator.Between,
|
|
197
377
|
values: c.values
|
|
198
378
|
}), l.limit = a + 1);
|
|
199
379
|
let u = e.engine;
|
|
@@ -202,67 +382,67 @@ var Se = (e) => async (t) => {
|
|
|
202
382
|
return;
|
|
203
383
|
}
|
|
204
384
|
let { data: d, meta: f } = await u.getData(l);
|
|
205
|
-
return f.rows >= a + 1 ? (e.daedalus.emitEvent(
|
|
385
|
+
return f.rows >= a + 1 ? (e.daedalus.emitEvent(z.AstratoEvents.SHOW_GLOBAL_NOTIFICATION, {
|
|
206
386
|
type: "warn",
|
|
207
387
|
message: "Cannot change the selection type, because too many values would have to be selected!"
|
|
208
|
-
}), c.operator) : (c.values = Object.values(d).flat(), e.selection.setNewSelectionState(s,
|
|
209
|
-
},
|
|
210
|
-
let r = e.selection.getActiveSelection(
|
|
388
|
+
}), c.operator) : (c.values = Object.values(d).flat(), e.selection.setNewSelectionState(s, z.FilterType.VALUE), c.operator);
|
|
389
|
+
}, Be = (e, t) => (n) => {
|
|
390
|
+
let r = e.selection.getActiveSelection(z.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);
|
|
211
391
|
if (o ||= i.pending.find((e) => e.field.name === t.name && e.field.view === t.view), !o) {
|
|
212
|
-
let n =
|
|
392
|
+
let n = z.FilterOperator.Like;
|
|
213
393
|
return i.pending.push({
|
|
214
394
|
operator: n,
|
|
215
|
-
field:
|
|
395
|
+
field: C(e.engine, t),
|
|
216
396
|
values: a
|
|
217
397
|
}), e.selection.setNewSelectionState(i), n;
|
|
218
398
|
}
|
|
219
|
-
return o.operator ===
|
|
399
|
+
return o.operator === z.FilterOperator.InList ? (o.operator = z.FilterOperator.Like, o.values = a) : o.operator === z.FilterOperator.NotInList ? (o.operator = z.FilterOperator.NotLike, o.values = a) : (o.operator = o.operator === z.FilterOperator.NotLike ? z.FilterOperator.NotLike : z.FilterOperator.Like, o.values = a.length ? a : o.values), e.selection.setNewSelectionState(i, z.FilterType.VALUE), o.operator;
|
|
220
400
|
}, Y = (e, t) => ({
|
|
221
|
-
fontFamily:
|
|
401
|
+
fontFamily: u(t, e?.fontFamily) ?? void 0,
|
|
222
402
|
fontStyle: e?.italic ? "italic" : "normal",
|
|
223
403
|
fontWeight: e?.bold ? "bold" : "normal",
|
|
224
404
|
textDecoration: `${e?.underlined ? "underline" : ""} ${e?.strikethrough ? "line-through" : ""}`,
|
|
225
|
-
color:
|
|
226
|
-
}),
|
|
227
|
-
let { backgroundColor: n, borderColor: r, borderEnabled:
|
|
228
|
-
...
|
|
405
|
+
color: p(t, e?.fontColor)
|
|
406
|
+
}), Ve = (e) => e === n.Line ? "solid" : "dashed", X = (e, t) => {
|
|
407
|
+
let { backgroundColor: n, borderColor: r, borderEnabled: i, borderRadius: a, borderStyle: o, borderWidth: s } = {
|
|
408
|
+
...f,
|
|
229
409
|
...e
|
|
230
|
-
},
|
|
231
|
-
return
|
|
410
|
+
}, c = "0px";
|
|
411
|
+
return i && (c = `${a}px`, t && (c = `${a}px ${a}px 0 0`)), {
|
|
232
412
|
backgroundColor: n,
|
|
233
|
-
border:
|
|
234
|
-
borderRadius:
|
|
413
|
+
border: i ? `${s}px ${Ve(o)} ${r}` : "none",
|
|
414
|
+
borderRadius: c
|
|
235
415
|
};
|
|
236
416
|
};
|
|
237
|
-
function
|
|
417
|
+
function He(e) {
|
|
238
418
|
return {
|
|
239
419
|
boxSizing: "border-box",
|
|
240
420
|
alignItems: "center",
|
|
241
421
|
cursor: "pointer",
|
|
242
422
|
height: 24,
|
|
243
423
|
padding: "3px 6px",
|
|
244
|
-
border: `1px solid ${
|
|
424
|
+
border: `1px solid ${i.grey4}`,
|
|
245
425
|
borderRadius: 16,
|
|
246
426
|
display: "flex",
|
|
247
427
|
marginRight: 4,
|
|
248
428
|
flexShrink: 0,
|
|
249
|
-
backgroundColor:
|
|
250
|
-
color:
|
|
251
|
-
...
|
|
252
|
-
...
|
|
253
|
-
"&:hover": { borderColor:
|
|
429
|
+
backgroundColor: i.mainBrightPink,
|
|
430
|
+
color: i.white,
|
|
431
|
+
...O.bold11,
|
|
432
|
+
...O.overflowEllipsis,
|
|
433
|
+
"&:hover": { borderColor: i.grey2 },
|
|
254
434
|
...e && {
|
|
255
|
-
[
|
|
435
|
+
[P.md]: {
|
|
256
436
|
height: 20,
|
|
257
437
|
padding: "2px 6px",
|
|
258
|
-
...
|
|
438
|
+
...O.bold10
|
|
259
439
|
},
|
|
260
|
-
[
|
|
440
|
+
[P.sm]: {
|
|
261
441
|
height: 16,
|
|
262
442
|
padding: "1px 4px",
|
|
263
|
-
...
|
|
443
|
+
...O.normal10
|
|
264
444
|
},
|
|
265
|
-
[
|
|
445
|
+
[P.xs]: {
|
|
266
446
|
height: 12,
|
|
267
447
|
padding: "0px 4px",
|
|
268
448
|
fontSize: 8,
|
|
@@ -271,15 +451,15 @@ function Ae(e) {
|
|
|
271
451
|
}
|
|
272
452
|
};
|
|
273
453
|
}
|
|
274
|
-
var Z = (0,
|
|
275
|
-
|
|
276
|
-
return
|
|
454
|
+
var Z = (0, L.createContext)({});
|
|
455
|
+
L.forwardRef(function(e, t) {
|
|
456
|
+
return L.createElement("img", {
|
|
277
457
|
...e,
|
|
278
458
|
ref: t,
|
|
279
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"
|
|
280
460
|
});
|
|
281
461
|
});
|
|
282
|
-
var
|
|
462
|
+
var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We = (e, t, n, r, i, a) => {
|
|
283
463
|
let o = "";
|
|
284
464
|
if (e) {
|
|
285
465
|
t && (o += `${t}: `);
|
|
@@ -292,25 +472,25 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
292
472
|
o += t;
|
|
293
473
|
}
|
|
294
474
|
return o;
|
|
295
|
-
},
|
|
475
|
+
}, Ge = b({ iconContainer: {
|
|
296
476
|
width: 16,
|
|
297
477
|
flexShrink: 0
|
|
298
|
-
} }),
|
|
299
|
-
let
|
|
300
|
-
return /* @__PURE__ */ (0,
|
|
301
|
-
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, B.jsxs)("div", {
|
|
481
|
+
className: o.iconContainer,
|
|
302
482
|
style: { opacity: e ? .25 : void 0 },
|
|
303
|
-
children: [n && r ? /* @__PURE__ */ (0,
|
|
483
|
+
children: [n && r ? /* @__PURE__ */ (0, B.jsx)(ee, { fill: i.mainBrightPink }) : null, n && !r ? /* @__PURE__ */ (0, B.jsx)(m, { fill: s }) : null]
|
|
304
484
|
});
|
|
305
|
-
},
|
|
306
|
-
let { r: t, g: n, b: r, a: i } =
|
|
485
|
+
}, qe = (e) => {
|
|
486
|
+
let { r: t, g: n, b: r, a: i } = V(e) ? fe(e) : de(e), a = (i ?? 1) * .6;
|
|
307
487
|
return ue({
|
|
308
488
|
r: t,
|
|
309
489
|
g: n,
|
|
310
490
|
b: r,
|
|
311
491
|
a: a < 0 ? 0 : a
|
|
312
492
|
});
|
|
313
|
-
},
|
|
493
|
+
}, Je = b({
|
|
314
494
|
progressBar: {
|
|
315
495
|
height: "100%",
|
|
316
496
|
borderRadius: "4px",
|
|
@@ -318,7 +498,7 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
318
498
|
bottom: 1,
|
|
319
499
|
top: 1
|
|
320
500
|
},
|
|
321
|
-
progressBarSelectedOrApplied: { color:
|
|
501
|
+
progressBarSelectedOrApplied: { color: i.mainDarkNavy },
|
|
322
502
|
labelsContainer: {
|
|
323
503
|
display: "flex",
|
|
324
504
|
flexDirection: "row",
|
|
@@ -329,13 +509,13 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
329
509
|
overflow: "hidden",
|
|
330
510
|
position: "relative",
|
|
331
511
|
"&:hover": {
|
|
332
|
-
color:
|
|
333
|
-
"& > div": { backgroundColor:
|
|
512
|
+
color: i.mainDarkNavy,
|
|
513
|
+
"& > div": { backgroundColor: i.grey5 }
|
|
334
514
|
}
|
|
335
515
|
},
|
|
336
516
|
label: ({ responsive: e, fontSize: t }) => ({
|
|
337
|
-
...
|
|
338
|
-
...
|
|
517
|
+
...O.normal11,
|
|
518
|
+
...O.overflowEllipsis,
|
|
339
519
|
color: "inherit",
|
|
340
520
|
marginRight: "5px",
|
|
341
521
|
height: "100%",
|
|
@@ -346,14 +526,14 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
346
526
|
fontSize: `${t}px`,
|
|
347
527
|
lineHeight: 1.2,
|
|
348
528
|
...e && {
|
|
349
|
-
[
|
|
350
|
-
[
|
|
351
|
-
[
|
|
352
|
-
fontSize: `min(${t *
|
|
529
|
+
[P.md]: { fontSize: `min(${t * F.md}px, 14px)` },
|
|
530
|
+
[P.sm]: { fontSize: `min(${t * F.sm}px, 12px)` },
|
|
531
|
+
[P.xs]: {
|
|
532
|
+
fontSize: `min(${t * F.xs}px, 10px)`,
|
|
353
533
|
fontWeight: "normal !important"
|
|
354
534
|
}
|
|
355
535
|
}
|
|
356
|
-
} :
|
|
536
|
+
} : I(e)
|
|
357
537
|
}),
|
|
358
538
|
dimensionLabel: {
|
|
359
539
|
paddingLeft: 4,
|
|
@@ -364,55 +544,55 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
364
544
|
flexGrow: 0,
|
|
365
545
|
flexShrink: 1
|
|
366
546
|
},
|
|
367
|
-
rowDisabled: { color:
|
|
368
|
-
}),
|
|
369
|
-
let
|
|
370
|
-
responsive:
|
|
371
|
-
fontSize:
|
|
372
|
-
}),
|
|
547
|
+
rowDisabled: { color: i.grey3 }
|
|
548
|
+
}), Ye = ({ dimensionDisplayValue: e, measuresLabel: t, showLabelProgress: n, isSelected: r, isApplied: a, strikethrough: o, disabled: s, searchTerm: c, barWidth: l, fontStyle: u, progressColor: f = i.lightBlue, textAlign: p, responsive: m, fontSize: g }) => {
|
|
549
|
+
let _ = Je({
|
|
550
|
+
responsive: m,
|
|
551
|
+
fontSize: g
|
|
552
|
+
}), v = h()?.astrato ?? d, y = {
|
|
373
553
|
...Y({
|
|
374
554
|
...u,
|
|
375
|
-
strikethrough: u?.strikethrough ||
|
|
376
|
-
},
|
|
377
|
-
...
|
|
378
|
-
textAlign:
|
|
379
|
-
justifyContent:
|
|
555
|
+
strikethrough: u?.strikethrough || o
|
|
556
|
+
}, v),
|
|
557
|
+
...p ? {
|
|
558
|
+
textAlign: p,
|
|
559
|
+
justifyContent: p === "right" ? "flex-end" : p === "center" ? "center" : "flex-start"
|
|
380
560
|
} : {}
|
|
381
|
-
},
|
|
382
|
-
return /* @__PURE__ */ (0,
|
|
383
|
-
className:
|
|
384
|
-
[
|
|
385
|
-
[
|
|
561
|
+
}, b = r || a ? f : qe(f);
|
|
562
|
+
return /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
563
|
+
className: k({
|
|
564
|
+
[_.labelsContainer]: !0,
|
|
565
|
+
[_.progressBarSelectedOrApplied]: r || a
|
|
386
566
|
}),
|
|
387
567
|
children: [
|
|
388
|
-
n && /* @__PURE__ */ (0,
|
|
568
|
+
n && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
389
569
|
style: {
|
|
390
570
|
width: `${l * 100}%`,
|
|
391
|
-
backgroundColor:
|
|
571
|
+
backgroundColor: b
|
|
392
572
|
},
|
|
393
|
-
className:
|
|
394
|
-
[
|
|
395
|
-
[
|
|
573
|
+
className: k({
|
|
574
|
+
[_.progressBar]: !0,
|
|
575
|
+
[_.rowDisabled]: s
|
|
396
576
|
}),
|
|
397
577
|
"data-testid": "item-list-label-progress"
|
|
398
578
|
}),
|
|
399
|
-
/* @__PURE__ */ (0,
|
|
400
|
-
style:
|
|
401
|
-
className:
|
|
579
|
+
/* @__PURE__ */ (0, B.jsx)("span", {
|
|
580
|
+
style: y,
|
|
581
|
+
className: k(_.label, _.dimensionLabel),
|
|
402
582
|
title: e,
|
|
403
|
-
children: /* @__PURE__ */ (0,
|
|
583
|
+
children: /* @__PURE__ */ (0, B.jsx)(M, {
|
|
404
584
|
phrase: c ?? "",
|
|
405
585
|
children: e ?? ""
|
|
406
586
|
})
|
|
407
587
|
}),
|
|
408
|
-
/* @__PURE__ */ (0,
|
|
409
|
-
style:
|
|
410
|
-
className:
|
|
588
|
+
/* @__PURE__ */ (0, B.jsx)("span", {
|
|
589
|
+
style: y,
|
|
590
|
+
className: k(_.label, _.measuresLabel),
|
|
411
591
|
children: t
|
|
412
592
|
})
|
|
413
593
|
]
|
|
414
594
|
});
|
|
415
|
-
},
|
|
595
|
+
}, Xe = b({
|
|
416
596
|
rowWrapper: (e) => ({
|
|
417
597
|
cursor: "pointer",
|
|
418
598
|
userSelect: "none",
|
|
@@ -424,15 +604,15 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
424
604
|
borderRadius: 6,
|
|
425
605
|
paddingRight: 8,
|
|
426
606
|
...e && {
|
|
427
|
-
[
|
|
607
|
+
[P.md]: {
|
|
428
608
|
height: "24px",
|
|
429
609
|
paddingRight: 6
|
|
430
610
|
},
|
|
431
|
-
[
|
|
611
|
+
[P.sm]: {
|
|
432
612
|
height: "16px",
|
|
433
613
|
paddingRight: 4
|
|
434
614
|
},
|
|
435
|
-
[
|
|
615
|
+
[P.xs]: {
|
|
436
616
|
height: "12px",
|
|
437
617
|
paddingRight: 2
|
|
438
618
|
}
|
|
@@ -444,21 +624,21 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
444
624
|
flexShrink: 0,
|
|
445
625
|
marginRight: 6,
|
|
446
626
|
...e && {
|
|
447
|
-
[
|
|
627
|
+
[P.md]: {
|
|
448
628
|
"& input[type=\"checkbox\"], & svg": {
|
|
449
629
|
width: "14px !important",
|
|
450
630
|
height: "14px !important"
|
|
451
631
|
},
|
|
452
632
|
"& > div, & > div > div": { height: "14px" }
|
|
453
633
|
},
|
|
454
|
-
[
|
|
634
|
+
[P.sm]: {
|
|
455
635
|
"& input[type=\"checkbox\"], & svg": {
|
|
456
636
|
width: "11px !important",
|
|
457
637
|
height: "11px !important"
|
|
458
638
|
},
|
|
459
639
|
"& > div, & > div > div": { height: "11px" }
|
|
460
640
|
},
|
|
461
|
-
[
|
|
641
|
+
[P.xs]: {
|
|
462
642
|
"& input[type=\"checkbox\"], & svg": {
|
|
463
643
|
width: "10px !important",
|
|
464
644
|
height: "10px !important"
|
|
@@ -471,38 +651,38 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
471
651
|
rowHover: { "&:hover": { backgroundColor: "var(--filter-hover-color)" } },
|
|
472
652
|
rowApplied: {
|
|
473
653
|
backgroundColor: "initial",
|
|
474
|
-
"& > div > span": { color: `${
|
|
654
|
+
"& > div > span": { color: `${i.mainDarkNavy} !important` }
|
|
475
655
|
},
|
|
476
|
-
rowDisabled: { "& span": { color: `${
|
|
477
|
-
}), Q = ({ selected: e, applied: t, disabled: n, hoverColor: r, onSelect:
|
|
478
|
-
let
|
|
479
|
-
return (0,
|
|
480
|
-
|
|
481
|
-
}, []), /* @__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: ee, responsive: T }) => {
|
|
658
|
+
let E = Xe(T), D = (0, L.useContext)(Z), O = (D.pendingOperator ?? D.appliedOperator) === z.FilterOperator.NotInList, A = !!h, j = o && g !== void 0 && !y, M = q(p, m), te = We(g, _, v, y, b, x);
|
|
659
|
+
return (0, L.useEffect)(() => {
|
|
660
|
+
A || f?.();
|
|
661
|
+
}, []), /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
482
662
|
tabIndex: 0,
|
|
483
663
|
role: "button",
|
|
484
|
-
onClick:
|
|
664
|
+
onClick: a,
|
|
485
665
|
"data-testid": `big-list-item-dimension-${p}`,
|
|
486
|
-
className:
|
|
487
|
-
[
|
|
488
|
-
[
|
|
489
|
-
[
|
|
490
|
-
[
|
|
491
|
-
[
|
|
666
|
+
className: k({
|
|
667
|
+
[E.rowWrapper]: !0,
|
|
668
|
+
[E.rowHover]: !j,
|
|
669
|
+
[E.rowSelected]: !j && e,
|
|
670
|
+
[E.rowApplied]: t && !n,
|
|
671
|
+
[E.rowDisabled]: n
|
|
492
672
|
}),
|
|
493
|
-
style: { "--filter-hover-color": r ??
|
|
673
|
+
style: { "--filter-hover-color": r ?? i.grey5 },
|
|
494
674
|
children: [
|
|
495
|
-
s ? /* @__PURE__ */ (0,
|
|
675
|
+
s ? /* @__PURE__ */ (0, B.jsx)("div", {
|
|
496
676
|
"aria-hidden": !0,
|
|
497
677
|
style: { pointerEvents: "none" },
|
|
498
|
-
className:
|
|
499
|
-
children: /* @__PURE__ */ (0,
|
|
678
|
+
className: E.checkboxWrapper,
|
|
679
|
+
children: /* @__PURE__ */ (0, B.jsx)(N, {
|
|
500
680
|
value: l,
|
|
501
681
|
onChange: () => void 0,
|
|
502
682
|
testId: `dimension-${p}-checkbox`
|
|
503
683
|
})
|
|
504
684
|
}) : null,
|
|
505
|
-
|
|
685
|
+
A && /* @__PURE__ */ (0, B.jsx)("img", {
|
|
506
686
|
alt: "",
|
|
507
687
|
width: 32,
|
|
508
688
|
height: 32,
|
|
@@ -513,51 +693,51 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
513
693
|
style: {
|
|
514
694
|
borderRadius: 6,
|
|
515
695
|
marginRight: 8,
|
|
516
|
-
objectFit: `${
|
|
696
|
+
objectFit: `${C ?? "contain"}`
|
|
517
697
|
},
|
|
518
698
|
"data-testid": `big-list-item-dimension-${p}-image`,
|
|
519
699
|
onLoad: f,
|
|
520
700
|
loading: "lazy"
|
|
521
701
|
}),
|
|
522
|
-
/* @__PURE__ */ (0,
|
|
523
|
-
dimensionDisplayValue:
|
|
524
|
-
measuresLabel:
|
|
525
|
-
showLabelProgress:
|
|
526
|
-
progressColor:
|
|
702
|
+
/* @__PURE__ */ (0, B.jsx)(Ye, {
|
|
703
|
+
dimensionDisplayValue: M,
|
|
704
|
+
measuresLabel: te,
|
|
705
|
+
showLabelProgress: j,
|
|
706
|
+
progressColor: ee,
|
|
527
707
|
isApplied: t,
|
|
528
708
|
isSelected: e,
|
|
529
|
-
strikethrough:
|
|
709
|
+
strikethrough: O && t && e,
|
|
530
710
|
disabled: n,
|
|
531
711
|
searchTerm: d,
|
|
532
|
-
barWidth:
|
|
533
|
-
fontStyle:
|
|
534
|
-
responsive:
|
|
712
|
+
barWidth: Ue(g, S),
|
|
713
|
+
fontStyle: w,
|
|
714
|
+
responsive: T,
|
|
535
715
|
fontSize: u
|
|
536
716
|
}),
|
|
537
|
-
!s && c ? /* @__PURE__ */ (0,
|
|
717
|
+
!s && c ? /* @__PURE__ */ (0, B.jsx)(Ke, {
|
|
538
718
|
disabled: n,
|
|
539
719
|
isApplied: t,
|
|
540
720
|
isSelected: e,
|
|
541
|
-
isNot:
|
|
542
|
-
fontColor:
|
|
721
|
+
isNot: O,
|
|
722
|
+
fontColor: w?.fontColor ?? void 0
|
|
543
723
|
}) : null
|
|
544
724
|
]
|
|
545
725
|
});
|
|
546
|
-
},
|
|
547
|
-
let t = [...e].sort((e, t) =>
|
|
726
|
+
}, Ze = (e) => {
|
|
727
|
+
let t = [...e].sort((e, t) => Qe(e?.measure1 ?? void 0, t?.measure1 ?? void 0)), n = t.length > 0 ? t[0] : null;
|
|
548
728
|
return typeof n?.measure1 == "number" ? n : null;
|
|
549
|
-
},
|
|
729
|
+
}, Qe = (e, t) => {
|
|
550
730
|
if (e && t) {
|
|
551
731
|
if (e < t) return 1;
|
|
552
732
|
if (e > t) return -1;
|
|
553
733
|
} else if (e && !t) return -1;
|
|
554
734
|
return 0;
|
|
555
|
-
},
|
|
556
|
-
let s = (0,
|
|
735
|
+
}, $e = ({ filterValues: e, onItemClick: t, selectedValues: n, appliedValues: r, searchTerm: i, vSpec: a, hoverColor: o }) => {
|
|
736
|
+
let s = (0, L.useRef)(e.length), c = S(), l = () => {
|
|
557
737
|
--s.current, s.current === 0 && c();
|
|
558
738
|
};
|
|
559
739
|
if (!a?.dimensions[0]?.dataItem) return null;
|
|
560
|
-
let u = a.dimensions[0]?.formatter, d = a.dimensions[1]?.imageFit, f = a.measures[0]?.formatter, p = a.measures[1]?.formatter, [m, h] =
|
|
740
|
+
let u = a.dimensions[0]?.formatter, d = a.dimensions[1]?.imageFit, f = a.measures[0]?.formatter, p = a.measures[1]?.formatter, [m, h] = je(e, r), g = (e, r) => {
|
|
561
741
|
switch (!0) {
|
|
562
742
|
case n.includes(e.dimension):
|
|
563
743
|
t(e.dimension);
|
|
@@ -565,8 +745,8 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
565
745
|
case e.disabled: break;
|
|
566
746
|
default: t(e.dimension, { shift: r.shiftKey ? [...m, ...h].reduce((e, t) => (t.disabled || e.push(t.dimension), e), []) : null });
|
|
567
747
|
}
|
|
568
|
-
}, _ =
|
|
569
|
-
return /* @__PURE__ */ (0,
|
|
748
|
+
}, _ = Ze(e), v = s.current > 0 ? l : void 0;
|
|
749
|
+
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [m.map((e) => /* @__PURE__ */ (0, B.jsx)(Q, {
|
|
570
750
|
searchTerm: i,
|
|
571
751
|
disabled: !!e.disabled,
|
|
572
752
|
onSelect: (t) => g(e, t),
|
|
@@ -589,7 +769,7 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
589
769
|
fontStyle: a.filterSettings?.fontStyle,
|
|
590
770
|
progressBarColor: a.filterSettings?.filterStyle?.progressBarColor,
|
|
591
771
|
responsive: a.filterSettings?.responsive
|
|
592
|
-
}, String(e.dimension))), h.map((e) => /* @__PURE__ */ (0,
|
|
772
|
+
}, String(e.dimension))), h.map((e) => /* @__PURE__ */ (0, B.jsx)(Q, {
|
|
593
773
|
searchTerm: i,
|
|
594
774
|
disabled: !!e.disabled,
|
|
595
775
|
onSelect: (t) => g(e, t),
|
|
@@ -613,7 +793,7 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
613
793
|
progressBarColor: a.filterSettings?.filterStyle?.progressBarColor,
|
|
614
794
|
responsive: a.filterSettings?.responsive
|
|
615
795
|
}, String(e.dimension)))] });
|
|
616
|
-
},
|
|
796
|
+
}, et = b({
|
|
617
797
|
rowWrapper: (e) => ({
|
|
618
798
|
userSelect: "none",
|
|
619
799
|
display: "flex",
|
|
@@ -625,12 +805,12 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
625
805
|
padding: 4,
|
|
626
806
|
borderRadius: 5,
|
|
627
807
|
...e && {
|
|
628
|
-
[
|
|
629
|
-
[
|
|
808
|
+
[P.md]: { height: 24 },
|
|
809
|
+
[P.sm]: {
|
|
630
810
|
height: 20,
|
|
631
811
|
padding: "2px 4px"
|
|
632
812
|
},
|
|
633
|
-
[
|
|
813
|
+
[P.xs]: {
|
|
634
814
|
height: 16,
|
|
635
815
|
padding: "1px 4px"
|
|
636
816
|
}
|
|
@@ -638,7 +818,7 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
638
818
|
"& > span": {
|
|
639
819
|
flexShrink: 0,
|
|
640
820
|
maxWidth: "100%",
|
|
641
|
-
...
|
|
821
|
+
...O.overflowEllipsis
|
|
642
822
|
}
|
|
643
823
|
}),
|
|
644
824
|
rowWrapperClickable: {
|
|
@@ -653,33 +833,33 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
653
833
|
rowApplied: {
|
|
654
834
|
backgroundColor: "initial",
|
|
655
835
|
"& > span": {
|
|
656
|
-
color: `${
|
|
836
|
+
color: `${i.mainDarkNavy} !important`,
|
|
657
837
|
maxWidth: "calc(100% - 20px)"
|
|
658
838
|
}
|
|
659
839
|
},
|
|
660
|
-
rowDisabled: { "& span": { color: `${
|
|
661
|
-
label: (e) => ({ ...
|
|
662
|
-
}), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue:
|
|
663
|
-
let
|
|
840
|
+
rowDisabled: { "& span": { color: `${i.grey3} !important` } },
|
|
841
|
+
label: (e) => ({ ...I(e) })
|
|
842
|
+
}), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue: a, dimensionFormatter: o, searchTerm: s, onSelect: c, fontStyle: l, responsive: u, showCheckbox: f, showSelectionIcon: p = !0, checkboxState: m = "none", alignContentStart: g, fontSize: _ }) => {
|
|
843
|
+
let v = et(u), y = h()?.astrato ?? d, b = q(a, o), x = (0, L.useContext)(Z), S = (x.pendingOperator ?? x.appliedOperator) === z.FilterOperator.NotInList, C = S && t && e, w = Y({
|
|
664
844
|
...l,
|
|
665
|
-
strikethrough:
|
|
666
|
-
},
|
|
667
|
-
return /* @__PURE__ */ (0,
|
|
845
|
+
strikethrough: C
|
|
846
|
+
}, y);
|
|
847
|
+
return /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
668
848
|
tabIndex: 0,
|
|
669
849
|
role: "button",
|
|
670
850
|
onClick: c,
|
|
671
|
-
"data-testid": `small-list-item-dimension-${
|
|
672
|
-
className:
|
|
673
|
-
[
|
|
674
|
-
[
|
|
675
|
-
[
|
|
676
|
-
[
|
|
677
|
-
[
|
|
678
|
-
[
|
|
851
|
+
"data-testid": `small-list-item-dimension-${a}`,
|
|
852
|
+
className: k({
|
|
853
|
+
[v.rowWrapper]: !0,
|
|
854
|
+
[v.rowWrapperClickable]: !!c,
|
|
855
|
+
[v.rowWrapperStartAligned]: g,
|
|
856
|
+
[v.rowSelected]: e,
|
|
857
|
+
[v.rowApplied]: t && !e,
|
|
858
|
+
[v.rowDisabled]: n
|
|
679
859
|
}),
|
|
680
|
-
style: { "--filter-hover-color": r ??
|
|
860
|
+
style: { "--filter-hover-color": r ?? i.grey5 },
|
|
681
861
|
children: [
|
|
682
|
-
|
|
862
|
+
f ? /* @__PURE__ */ (0, B.jsx)("div", {
|
|
683
863
|
"aria-hidden": !0,
|
|
684
864
|
style: {
|
|
685
865
|
display: "flex",
|
|
@@ -688,38 +868,38 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
688
868
|
marginRight: 6,
|
|
689
869
|
pointerEvents: "none"
|
|
690
870
|
},
|
|
691
|
-
children: /* @__PURE__ */ (0,
|
|
692
|
-
value:
|
|
871
|
+
children: /* @__PURE__ */ (0, B.jsx)(N, {
|
|
872
|
+
value: m,
|
|
693
873
|
onChange: () => void 0
|
|
694
874
|
})
|
|
695
875
|
}) : null,
|
|
696
|
-
/* @__PURE__ */ (0,
|
|
697
|
-
className:
|
|
876
|
+
/* @__PURE__ */ (0, B.jsx)("span", {
|
|
877
|
+
className: v.label,
|
|
698
878
|
style: {
|
|
699
|
-
...
|
|
700
|
-
...
|
|
701
|
-
fontSize:
|
|
879
|
+
...w,
|
|
880
|
+
..._ ? {
|
|
881
|
+
fontSize: _,
|
|
702
882
|
lineHeight: "14px"
|
|
703
883
|
} : {}
|
|
704
884
|
},
|
|
705
|
-
children: /* @__PURE__ */ (0,
|
|
885
|
+
children: /* @__PURE__ */ (0, B.jsx)(M, {
|
|
706
886
|
phrase: s ?? "",
|
|
707
|
-
children:
|
|
887
|
+
children: b ?? ""
|
|
708
888
|
})
|
|
709
889
|
}),
|
|
710
|
-
|
|
890
|
+
f ? null : /* @__PURE__ */ (0, B.jsx)(Ke, {
|
|
711
891
|
disabled: n,
|
|
712
892
|
isApplied: t,
|
|
713
|
-
isSelected:
|
|
714
|
-
isNot:
|
|
893
|
+
isSelected: p && e,
|
|
894
|
+
isNot: S,
|
|
715
895
|
fontColor: l?.fontColor ?? void 0
|
|
716
896
|
})
|
|
717
897
|
]
|
|
718
898
|
});
|
|
719
|
-
},
|
|
899
|
+
}, tt = ({ filterValues: e, onItemClick: t, selectedValues: n, appliedValues: r, searchTerm: i, vSpec: a, hoverColor: o }) => {
|
|
720
900
|
let s = a.dimensions[0]?.formatter;
|
|
721
901
|
if (!a?.dimensions[0]?.dataItem) return null;
|
|
722
|
-
let [c, l] =
|
|
902
|
+
let [c, l] = je(e, r), u = (e, r) => {
|
|
723
903
|
switch (!0) {
|
|
724
904
|
case n.includes(e.dimension):
|
|
725
905
|
t(e.dimension);
|
|
@@ -728,7 +908,7 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
728
908
|
default: t(e.dimension, { shift: r.shiftKey ? [...c, ...l].reduce((e, t) => (t.disabled || e.push(t.dimension), e), []) : null });
|
|
729
909
|
}
|
|
730
910
|
};
|
|
731
|
-
return /* @__PURE__ */ (0,
|
|
911
|
+
return /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [c.map((e) => /* @__PURE__ */ (0, B.jsx)($, {
|
|
732
912
|
searchTerm: i,
|
|
733
913
|
disabled: !!e.disabled,
|
|
734
914
|
dimensionValue: e.dimension,
|
|
@@ -739,7 +919,7 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
739
919
|
hoverColor: o,
|
|
740
920
|
fontStyle: a.filterSettings?.fontStyle,
|
|
741
921
|
responsive: a.filterSettings?.responsive
|
|
742
|
-
}, `applied-${e.dimension}`)), l.map((e) => /* @__PURE__ */ (0,
|
|
922
|
+
}, `applied-${e.dimension}`)), l.map((e) => /* @__PURE__ */ (0, B.jsx)($, {
|
|
743
923
|
searchTerm: i,
|
|
744
924
|
disabled: !!e.disabled,
|
|
745
925
|
dimensionValue: e.dimension,
|
|
@@ -751,28 +931,28 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
751
931
|
fontStyle: a.filterSettings?.fontStyle,
|
|
752
932
|
responsive: a.filterSettings?.responsive
|
|
753
933
|
}, `not-applied-${e.dimension}`))] });
|
|
754
|
-
},
|
|
934
|
+
}, nt = b({ dropdownContainer: {
|
|
755
935
|
overflow: "hidden",
|
|
756
936
|
backdropFilter: "blur(1.25px)",
|
|
757
937
|
zIndex: 1500
|
|
758
|
-
} }),
|
|
759
|
-
let r =
|
|
760
|
-
return /* @__PURE__ */ (0,
|
|
938
|
+
} }), rt = ({ children: e, filterStyle: t, isLocked: n }) => {
|
|
939
|
+
let r = nt(), i = X(t, n);
|
|
940
|
+
return /* @__PURE__ */ (0, B.jsx)("div", {
|
|
761
941
|
className: r.dropdownContainer,
|
|
762
942
|
style: i,
|
|
763
943
|
children: e
|
|
764
944
|
});
|
|
765
|
-
},
|
|
766
|
-
background:
|
|
945
|
+
}, it = b({ root: {
|
|
946
|
+
background: i.grey5,
|
|
767
947
|
height: 2,
|
|
768
|
-
"& .MuiLinearProgress-bar": { background:
|
|
769
|
-
} }),
|
|
770
|
-
let t =
|
|
771
|
-
return e ? /* @__PURE__ */ (0,
|
|
948
|
+
"& .MuiLinearProgress-bar": { background: i.mainDarkNavy }
|
|
949
|
+
} }), at = ({ loading: e }) => {
|
|
950
|
+
let t = it();
|
|
951
|
+
return e ? /* @__PURE__ */ (0, B.jsx)(re, {
|
|
772
952
|
className: t.root,
|
|
773
953
|
"data-testid": "filter-search-progress"
|
|
774
954
|
}) : null;
|
|
775
|
-
},
|
|
955
|
+
}, ot = b({
|
|
776
956
|
dropdownButton: (e) => ({
|
|
777
957
|
cursor: "pointer",
|
|
778
958
|
display: "flex",
|
|
@@ -787,23 +967,23 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
787
967
|
outline: "none"
|
|
788
968
|
},
|
|
789
969
|
...e && {
|
|
790
|
-
[
|
|
791
|
-
[
|
|
970
|
+
[P.lg]: { height: "min(28px, 100%)" },
|
|
971
|
+
[P.md]: {
|
|
792
972
|
padding: "0 4px",
|
|
793
973
|
height: "min(24px, 100%)"
|
|
794
974
|
},
|
|
795
|
-
[
|
|
975
|
+
[P.sm]: {
|
|
796
976
|
padding: "0 2px",
|
|
797
977
|
height: "min(20px, 100%)"
|
|
798
978
|
},
|
|
799
|
-
[
|
|
979
|
+
[P.xs]: {
|
|
800
980
|
padding: 0,
|
|
801
981
|
height: "min(16px, 100%)"
|
|
802
982
|
}
|
|
803
983
|
}
|
|
804
984
|
}),
|
|
805
985
|
headerTitlesContainer: {
|
|
806
|
-
color:
|
|
986
|
+
color: i.grey1,
|
|
807
987
|
display: "flex",
|
|
808
988
|
alignItems: "center",
|
|
809
989
|
width: "100%",
|
|
@@ -813,17 +993,17 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
813
993
|
fontWeight: "bold !important",
|
|
814
994
|
flexShrink: 1,
|
|
815
995
|
minWidth: 0,
|
|
816
|
-
...
|
|
817
|
-
...
|
|
996
|
+
...O.overflowEllipsis,
|
|
997
|
+
...I(e)
|
|
818
998
|
}),
|
|
819
999
|
measureTitle: {
|
|
820
|
-
...
|
|
1000
|
+
...O.overflowEllipsis,
|
|
821
1001
|
minWidth: 0,
|
|
822
1002
|
flexShrink: 1,
|
|
823
1003
|
whiteSpaceCollapse: "preserve"
|
|
824
1004
|
},
|
|
825
1005
|
valuesLabel: {
|
|
826
|
-
...
|
|
1006
|
+
...O.overflowEllipsis,
|
|
827
1007
|
paddingLeft: 4,
|
|
828
1008
|
fontWeight: "bold !important",
|
|
829
1009
|
minWidth: 0,
|
|
@@ -834,71 +1014,71 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
834
1014
|
flexDirection: "row",
|
|
835
1015
|
alignItems: "center",
|
|
836
1016
|
boxSizing: "border-box",
|
|
837
|
-
...e &&
|
|
1017
|
+
...e && ne
|
|
838
1018
|
}),
|
|
839
|
-
notPart: (e) => ({ ...
|
|
840
|
-
}),
|
|
841
|
-
let u =
|
|
1019
|
+
notPart: (e) => ({ ...He(e) })
|
|
1020
|
+
}), st = ({ dimensionTitle: e, measureTitle: t, isOpen: n, onToggle: r, dimensionFormatter: i, selectedValues: a = [], fontStyle: o, filterStyle: s, responsive: c, isLocked: l }) => {
|
|
1021
|
+
let u = h()?.astrato ?? d, f = ot(c), p = (0, L.useContext)(Z), m = (p.pendingOperator ?? p.appliedOperator) === z.FilterOperator.NotInList, _ = {
|
|
842
1022
|
button: X(s),
|
|
843
1023
|
label: Y(o, u)
|
|
844
|
-
},
|
|
845
|
-
return /* @__PURE__ */ (0,
|
|
1024
|
+
}, b = _.label.color, x = (e) => String(typeof e == "boolean" ? e : i ? y(i, e) : e), S = [...a].sort().slice(0, 15).map(x).join(", "), C = a.length > 0;
|
|
1025
|
+
return /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
846
1026
|
role: "button",
|
|
847
1027
|
tabIndex: 0,
|
|
848
1028
|
"data-testid": "filter-header-dropdown",
|
|
849
|
-
className:
|
|
1029
|
+
className: f.dropdownButton,
|
|
850
1030
|
onClick: (e) => {
|
|
851
1031
|
e.currentTarget.blur(), r?.();
|
|
852
1032
|
},
|
|
853
1033
|
onKeyUp: (e) => {
|
|
854
1034
|
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), r?.());
|
|
855
1035
|
},
|
|
856
|
-
style:
|
|
857
|
-
children: [/* @__PURE__ */ (0,
|
|
858
|
-
className:
|
|
859
|
-
style: { color:
|
|
1036
|
+
style: _.button,
|
|
1037
|
+
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
|
|
1038
|
+
className: f.headerTitlesContainer,
|
|
1039
|
+
style: { color: b },
|
|
860
1040
|
children: [
|
|
861
|
-
l && /* @__PURE__ */ (0,
|
|
1041
|
+
l && /* @__PURE__ */ (0, B.jsx)(g, {
|
|
862
1042
|
fill: "currentColor",
|
|
863
1043
|
style: { marginRight: 8 }
|
|
864
1044
|
}),
|
|
865
|
-
|
|
866
|
-
className:
|
|
1045
|
+
m && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
1046
|
+
className: f.notPart,
|
|
867
1047
|
children: "NOT"
|
|
868
1048
|
}),
|
|
869
|
-
/* @__PURE__ */ (0,
|
|
870
|
-
className:
|
|
871
|
-
style:
|
|
1049
|
+
/* @__PURE__ */ (0, B.jsx)("div", {
|
|
1050
|
+
className: f.title,
|
|
1051
|
+
style: _.label,
|
|
872
1052
|
children: e
|
|
873
1053
|
}),
|
|
874
|
-
/* @__PURE__ */ (0,
|
|
875
|
-
className:
|
|
1054
|
+
/* @__PURE__ */ (0, B.jsxs)("div", {
|
|
1055
|
+
className: f.title,
|
|
876
1056
|
style: {
|
|
877
|
-
...
|
|
1057
|
+
..._.label,
|
|
878
1058
|
display: "flex"
|
|
879
1059
|
},
|
|
880
|
-
children: [/* @__PURE__ */ (0,
|
|
881
|
-
className:
|
|
1060
|
+
children: [/* @__PURE__ */ (0, B.jsx)("span", {
|
|
1061
|
+
className: f.measureTitle,
|
|
882
1062
|
children: t
|
|
883
|
-
}),
|
|
884
|
-
className:
|
|
885
|
-
children: [" ",
|
|
1063
|
+
}), C && /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
1064
|
+
className: f.valuesLabel,
|
|
1065
|
+
children: [" ", S]
|
|
886
1066
|
})]
|
|
887
1067
|
})
|
|
888
1068
|
]
|
|
889
|
-
}), /* @__PURE__ */ (0,
|
|
890
|
-
className:
|
|
891
|
-
style: { color:
|
|
892
|
-
children: n ? /* @__PURE__ */ (0,
|
|
1069
|
+
}), /* @__PURE__ */ (0, B.jsx)("div", {
|
|
1070
|
+
className: f.expandIcon,
|
|
1071
|
+
style: { color: b },
|
|
1072
|
+
children: n ? /* @__PURE__ */ (0, B.jsx)(w, {
|
|
893
1073
|
size: 24,
|
|
894
1074
|
fill: "currentColor"
|
|
895
|
-
}) : /* @__PURE__ */ (0,
|
|
1075
|
+
}) : /* @__PURE__ */ (0, B.jsx)(v, {
|
|
896
1076
|
size: 24,
|
|
897
1077
|
fill: "currentColor"
|
|
898
1078
|
})
|
|
899
1079
|
})]
|
|
900
1080
|
});
|
|
901
|
-
},
|
|
1081
|
+
}, ct = b({
|
|
902
1082
|
headerListbox: (e) => ({
|
|
903
1083
|
height: 36,
|
|
904
1084
|
margin: "0 12px 8px",
|
|
@@ -906,15 +1086,15 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
906
1086
|
alignItems: "center",
|
|
907
1087
|
boxSizing: "border-box",
|
|
908
1088
|
...e && {
|
|
909
|
-
[
|
|
1089
|
+
[P.md]: {
|
|
910
1090
|
height: 32,
|
|
911
1091
|
margin: "0 12px 6px"
|
|
912
1092
|
},
|
|
913
|
-
[
|
|
1093
|
+
[P.sm]: {
|
|
914
1094
|
height: 28,
|
|
915
1095
|
margin: "0 12px 4px"
|
|
916
1096
|
},
|
|
917
|
-
[
|
|
1097
|
+
[P.xs]: {
|
|
918
1098
|
height: 24,
|
|
919
1099
|
margin: "0 12px"
|
|
920
1100
|
}
|
|
@@ -923,7 +1103,7 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
923
1103
|
headerListboxSearch: { flexGrow: 1 },
|
|
924
1104
|
headerTitlesContainer: {
|
|
925
1105
|
minWidth: 0,
|
|
926
|
-
color:
|
|
1106
|
+
color: i.grey1,
|
|
927
1107
|
cursor: "pointer",
|
|
928
1108
|
flexGrow: 1,
|
|
929
1109
|
flexShrink: 1,
|
|
@@ -931,12 +1111,12 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
931
1111
|
alignItems: "center"
|
|
932
1112
|
},
|
|
933
1113
|
title: (e) => ({
|
|
934
|
-
...
|
|
1114
|
+
...O.overflowEllipsis,
|
|
935
1115
|
fontWeight: "bold !important",
|
|
936
|
-
...
|
|
1116
|
+
...I(e)
|
|
937
1117
|
}),
|
|
938
1118
|
iconButton: (e) => ({
|
|
939
|
-
...e &&
|
|
1119
|
+
...e && ne,
|
|
940
1120
|
cursor: "pointer",
|
|
941
1121
|
display: "inline-flex",
|
|
942
1122
|
alignItems: "center",
|
|
@@ -953,19 +1133,19 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
953
1133
|
"&:hover": { boxShadow: "inset 0 0 0 1px currentColor" },
|
|
954
1134
|
"&:focus": { outline: "none" },
|
|
955
1135
|
...e && {
|
|
956
|
-
[
|
|
1136
|
+
[P.md]: {
|
|
957
1137
|
minWidth: 20,
|
|
958
1138
|
width: 20,
|
|
959
1139
|
height: 20,
|
|
960
1140
|
borderRadius: 5
|
|
961
1141
|
},
|
|
962
|
-
[
|
|
1142
|
+
[P.sm]: {
|
|
963
1143
|
minWidth: 16,
|
|
964
1144
|
width: 16,
|
|
965
1145
|
height: 16,
|
|
966
1146
|
borderRadius: 4
|
|
967
1147
|
},
|
|
968
|
-
[
|
|
1148
|
+
[P.xs]: {
|
|
969
1149
|
minWidth: 12,
|
|
970
1150
|
width: 12,
|
|
971
1151
|
height: 12,
|
|
@@ -973,79 +1153,79 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
973
1153
|
}
|
|
974
1154
|
}
|
|
975
1155
|
}),
|
|
976
|
-
notPart: (e) => ({ ...
|
|
977
|
-
}),
|
|
978
|
-
let
|
|
979
|
-
(0,
|
|
1156
|
+
notPart: (e) => ({ ...He(e) })
|
|
1157
|
+
}), lt = ({ children: e, dimensionTitle: t, measureTitle: n, searchEnabled: r, searchTerm: i, onSearchChange: a, onApplySearched: o, fontStyle: s, vTheme: c = d, isNotEnabled: l, responsive: u, isLocked: f }) => {
|
|
1158
|
+
let p = ct(u), m = Y(s, c), h = m.color, [v, y] = (0, L.useState)(!1);
|
|
1159
|
+
(0, L.useEffect)(() => {
|
|
980
1160
|
!r && i && a("");
|
|
981
1161
|
}, [r]);
|
|
982
|
-
let
|
|
983
|
-
r &&
|
|
984
|
-
},
|
|
985
|
-
a(""),
|
|
986
|
-
},
|
|
1162
|
+
let b = () => {
|
|
1163
|
+
r && y(!0);
|
|
1164
|
+
}, x = () => {
|
|
1165
|
+
a(""), y(!1);
|
|
1166
|
+
}, S = () => {
|
|
987
1167
|
o();
|
|
988
1168
|
};
|
|
989
|
-
return r ? /* @__PURE__ */ (0,
|
|
1169
|
+
return r ? /* @__PURE__ */ (0, B.jsx)("div", {
|
|
990
1170
|
"data-testid": "filter-header-title",
|
|
991
|
-
className:
|
|
992
|
-
style: { color:
|
|
993
|
-
children:
|
|
1171
|
+
className: p.headerListbox,
|
|
1172
|
+
style: { color: h },
|
|
1173
|
+
children: v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(te, {
|
|
994
1174
|
responsive: u,
|
|
995
1175
|
autoFocus: !0,
|
|
996
|
-
className:
|
|
1176
|
+
className: p.headerListboxSearch,
|
|
997
1177
|
"data-testid": "filter-search-input",
|
|
998
1178
|
onChange: (e) => {
|
|
999
1179
|
a(e.target.value);
|
|
1000
1180
|
},
|
|
1001
1181
|
style: {
|
|
1002
|
-
color:
|
|
1003
|
-
borderColor:
|
|
1182
|
+
color: h,
|
|
1183
|
+
borderColor: h
|
|
1004
1184
|
},
|
|
1005
|
-
onPaste:
|
|
1185
|
+
onPaste: Pe(a),
|
|
1006
1186
|
onKeyDown: (e) => {
|
|
1007
1187
|
switch (e.key) {
|
|
1008
1188
|
case "Enter":
|
|
1009
|
-
|
|
1189
|
+
S();
|
|
1010
1190
|
break;
|
|
1011
1191
|
case "Escape":
|
|
1012
|
-
|
|
1192
|
+
x(), a("");
|
|
1013
1193
|
break;
|
|
1014
1194
|
}
|
|
1015
1195
|
},
|
|
1016
1196
|
value: i
|
|
1017
|
-
}), e] }) : /* @__PURE__ */ (0,
|
|
1018
|
-
/* @__PURE__ */ (0,
|
|
1197
|
+
}), e] }) : /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [
|
|
1198
|
+
/* @__PURE__ */ (0, B.jsx)("button", {
|
|
1019
1199
|
"data-testid": "filter-header-show-search-button",
|
|
1020
|
-
onClick:
|
|
1021
|
-
className:
|
|
1200
|
+
onClick: b,
|
|
1201
|
+
className: p.iconButton,
|
|
1022
1202
|
style: { marginRight: 8 },
|
|
1023
|
-
children: /* @__PURE__ */ (0,
|
|
1203
|
+
children: /* @__PURE__ */ (0, B.jsx)(_, {
|
|
1024
1204
|
fill: "currentColor",
|
|
1025
1205
|
size: 20
|
|
1026
1206
|
})
|
|
1027
1207
|
}),
|
|
1028
|
-
|
|
1208
|
+
f && /* @__PURE__ */ (0, B.jsx)(g, {
|
|
1029
1209
|
fill: "currentColor",
|
|
1030
1210
|
style: { marginRight: 8 }
|
|
1031
1211
|
}),
|
|
1032
|
-
/* @__PURE__ */ (0,
|
|
1033
|
-
onClick:
|
|
1034
|
-
className:
|
|
1212
|
+
/* @__PURE__ */ (0, B.jsxs)("div", {
|
|
1213
|
+
onClick: b,
|
|
1214
|
+
className: p.headerTitlesContainer,
|
|
1035
1215
|
children: [
|
|
1036
|
-
l && /* @__PURE__ */ (0,
|
|
1037
|
-
className:
|
|
1216
|
+
l && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
1217
|
+
className: p.notPart,
|
|
1038
1218
|
children: "NOT"
|
|
1039
1219
|
}),
|
|
1040
|
-
/* @__PURE__ */ (0,
|
|
1041
|
-
className:
|
|
1042
|
-
style:
|
|
1220
|
+
/* @__PURE__ */ (0, B.jsx)("span", {
|
|
1221
|
+
className: p.title,
|
|
1222
|
+
style: m,
|
|
1043
1223
|
children: t
|
|
1044
1224
|
}),
|
|
1045
|
-
/* @__PURE__ */ (0,
|
|
1046
|
-
className:
|
|
1225
|
+
/* @__PURE__ */ (0, B.jsx)("span", {
|
|
1226
|
+
className: p.title,
|
|
1047
1227
|
style: {
|
|
1048
|
-
...
|
|
1228
|
+
...m,
|
|
1049
1229
|
whiteSpaceCollapse: "preserve"
|
|
1050
1230
|
},
|
|
1051
1231
|
children: n
|
|
@@ -1054,26 +1234,26 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
1054
1234
|
}),
|
|
1055
1235
|
e
|
|
1056
1236
|
] })
|
|
1057
|
-
}) : /* @__PURE__ */ (0,
|
|
1237
|
+
}) : /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
1058
1238
|
"data-testid": "filter-header-title",
|
|
1059
|
-
className:
|
|
1060
|
-
style: { color:
|
|
1061
|
-
children: [/* @__PURE__ */ (0,
|
|
1062
|
-
className:
|
|
1239
|
+
className: p.headerListbox,
|
|
1240
|
+
style: { color: h },
|
|
1241
|
+
children: [/* @__PURE__ */ (0, B.jsxs)("div", {
|
|
1242
|
+
className: p.headerTitlesContainer,
|
|
1063
1243
|
children: [
|
|
1064
|
-
l && /* @__PURE__ */ (0,
|
|
1065
|
-
className:
|
|
1244
|
+
l && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
1245
|
+
className: p.notPart,
|
|
1066
1246
|
children: "NOT"
|
|
1067
1247
|
}),
|
|
1068
|
-
/* @__PURE__ */ (0,
|
|
1069
|
-
className:
|
|
1070
|
-
style:
|
|
1248
|
+
/* @__PURE__ */ (0, B.jsx)("span", {
|
|
1249
|
+
className: p.title,
|
|
1250
|
+
style: m,
|
|
1071
1251
|
children: t
|
|
1072
1252
|
}),
|
|
1073
|
-
/* @__PURE__ */ (0,
|
|
1074
|
-
className:
|
|
1253
|
+
/* @__PURE__ */ (0, B.jsx)("span", {
|
|
1254
|
+
className: p.title,
|
|
1075
1255
|
style: {
|
|
1076
|
-
...
|
|
1256
|
+
...m,
|
|
1077
1257
|
whiteSpaceCollapse: "preserve"
|
|
1078
1258
|
},
|
|
1079
1259
|
children: n
|
|
@@ -1081,40 +1261,40 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
1081
1261
|
]
|
|
1082
1262
|
}), e]
|
|
1083
1263
|
});
|
|
1084
|
-
},
|
|
1264
|
+
}, ut = b({
|
|
1085
1265
|
container: ({ responsive: e, isDropdown: t }) => ({
|
|
1086
1266
|
margin: 0,
|
|
1087
1267
|
padding: 0,
|
|
1088
1268
|
...!t && {
|
|
1089
1269
|
height: "calc(100% - 44px)",
|
|
1090
1270
|
...e && {
|
|
1091
|
-
[
|
|
1092
|
-
[
|
|
1271
|
+
[P.sm]: { height: "calc(100% - 36px)" },
|
|
1272
|
+
[P.xs]: { height: "calc(100% - 32px)" }
|
|
1093
1273
|
}
|
|
1094
1274
|
}
|
|
1095
1275
|
}),
|
|
1096
1276
|
scrollContainer: ({ responsive: e }) => ({
|
|
1097
|
-
...
|
|
1277
|
+
...T.propertiesPanel,
|
|
1098
1278
|
padding: "0 12px",
|
|
1099
1279
|
...e && {
|
|
1100
|
-
[
|
|
1101
|
-
[
|
|
1102
|
-
[
|
|
1280
|
+
[P.md]: { padding: "0 8px" },
|
|
1281
|
+
[P.sm]: { padding: "0 6px" },
|
|
1282
|
+
[P.xs]: { padding: "0 4px" }
|
|
1103
1283
|
}
|
|
1104
1284
|
})
|
|
1105
|
-
}),
|
|
1106
|
-
let a =
|
|
1285
|
+
}), dt = ({ children: e, loadMoreData: t, isDropdown: n = !1, hasSearch: r = !1, responsive: i }) => {
|
|
1286
|
+
let a = ut({
|
|
1107
1287
|
responsive: i,
|
|
1108
1288
|
isDropdown: n
|
|
1109
1289
|
});
|
|
1110
|
-
return /* @__PURE__ */ (0,
|
|
1290
|
+
return /* @__PURE__ */ (0, B.jsx)("div", {
|
|
1111
1291
|
className: a.container,
|
|
1112
1292
|
"data-testid": "list-container",
|
|
1113
1293
|
style: {
|
|
1114
1294
|
paddingTop: n && !r ? 8 : void 0,
|
|
1115
1295
|
paddingBottom: n ? 8 : void 0
|
|
1116
1296
|
},
|
|
1117
|
-
children: /* @__PURE__ */ (0,
|
|
1297
|
+
children: /* @__PURE__ */ (0, B.jsx)("div", {
|
|
1118
1298
|
className: a.scrollContainer,
|
|
1119
1299
|
style: {
|
|
1120
1300
|
height: n ? void 0 : "100%",
|
|
@@ -1122,12 +1302,12 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
1122
1302
|
},
|
|
1123
1303
|
onScroll: (e) => {
|
|
1124
1304
|
let { scrollHeight: n, clientHeight: r, scrollTop: i } = e.currentTarget;
|
|
1125
|
-
|
|
1305
|
+
ae(n, r, i) && t();
|
|
1126
1306
|
},
|
|
1127
1307
|
children: e
|
|
1128
1308
|
})
|
|
1129
1309
|
});
|
|
1130
|
-
},
|
|
1310
|
+
}, ft = b({
|
|
1131
1311
|
mainFilterContainer: {
|
|
1132
1312
|
width: "100%",
|
|
1133
1313
|
height: "100%",
|
|
@@ -1135,10 +1315,10 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
1135
1315
|
},
|
|
1136
1316
|
blurBackground: { backdropFilter: "blur(1.25px)" },
|
|
1137
1317
|
noBorder: { border: "none !important" }
|
|
1138
|
-
}),
|
|
1139
|
-
let a =
|
|
1140
|
-
return /* @__PURE__ */ (0,
|
|
1141
|
-
className:
|
|
1318
|
+
}), pt = ({ children: e, noBorder: t, blurBackground: n, filterStyle: r, fontSize: i }) => {
|
|
1319
|
+
let a = ft(), o = X(r);
|
|
1320
|
+
return /* @__PURE__ */ (0, B.jsx)("div", {
|
|
1321
|
+
className: k({
|
|
1142
1322
|
[a.mainFilterContainer]: !0,
|
|
1143
1323
|
[a.noBorder]: t,
|
|
1144
1324
|
[a.blurBackground]: n
|
|
@@ -1150,4 +1330,4 @@ var je = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, Me
|
|
|
1150
1330
|
children: e
|
|
1151
1331
|
});
|
|
1152
1332
|
};
|
|
1153
|
-
export {
|
|
1333
|
+
export { se as C, R as S, we as _, at as a, ce 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, ae as w, le as x, ke as y };
|