@astrato-io/visualizations 0.6.4 → 0.6.5
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 +0 -0
- package/THIRD_PARTY_NOTICES.md +94 -4
- package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
- package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
- package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
- package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
- package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
- package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
- package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
- package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
- package/chunks/filter.compiler-DBsyRBJt.js +70 -0
- package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
- package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
- package/chunks/handlers-VTBfIZYZ.js +13072 -0
- package/chunks/isEqual-BDxAhUo8.js +7514 -0
- package/chunks/line.compiler-CzdM5Ld0.js +198 -0
- package/chunks/{metadata-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
- package/chunks/number.compiler-G-R7y16P.js +53 -0
- package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
- package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
- package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
- package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
- package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
- package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
- package/chunks/standalone-0ashe9w1.js +411 -0
- package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
- package/chunks/standalone-BK0VYU-l.js +463 -0
- package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
- package/chunks/standalone-BZV5vOwA.js +6 -0
- package/chunks/standalone-BhDrWj4p.js +1980 -0
- package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
- package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
- package/chunks/standalone-BwtM31-f.js +2 -0
- package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
- package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
- package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
- package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
- package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
- package/chunks/standalone-DCtRoTWg.js +675 -0
- package/chunks/standalone-DUDFTBqL.js +833 -0
- package/chunks/standalone-DhZkX9Td.js +2 -0
- package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
- package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
- package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
- package/chunks/standalone-_DeX21JJ.js +383 -0
- package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
- package/chunks/standalone-tDNy-SFH.js +281 -0
- package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
- package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
- package/chunks/table.compiler-tb914oj3.js +222 -0
- package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
- package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
- package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
- package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
- package/definitions.js +3 -3
- package/docs/operations/astrato-app-filter-bar.md +17 -17
- package/docs/operations/bar.md +989 -1071
- package/docs/operations/combo.md +717 -738
- package/docs/operations/date-picker.md +25 -25
- package/docs/operations/distribution-gauge.md +471 -607
- package/docs/operations/dot.md +787 -879
- package/docs/operations/filter.md +139 -163
- package/docs/operations/gauge.md +491 -627
- package/docs/operations/heatMap.md +834 -916
- package/docs/operations/histogram.md +166 -180
- package/docs/operations/iframe.md +5 -5
- package/docs/operations/image.md +16 -16
- package/docs/operations/index.md +12 -12
- package/docs/operations/line.md +811 -888
- package/docs/operations/number.md +470 -536
- package/docs/operations/pie.md +825 -958
- package/docs/operations/radar.md +599 -679
- package/docs/operations/sankey.md +462 -584
- package/docs/operations/scatter.md +823 -929
- package/docs/operations/shape.md +34 -34
- package/docs/operations/simpleTextObject.md +18 -25
- package/docs/operations/slider.md +33 -43
- package/docs/operations/table.md +1160 -1150
- package/docs/operations/tree.md +354 -361
- package/docs/operations/treemap.md +545 -637
- package/docs/operations/waterfall.md +369 -379
- package/docs/operations/word-cloud.md +512 -583
- package/getters.js +3 -3
- package/index.js +51 -51
- package/metadata.js +3 -3
- package/operations.js +7 -7
- package/package.json +80 -86
- package/src/definitions/index.d.ts +2 -2
- package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
- package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
- package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
- package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
- package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
- package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
- package/src/definitions/model/definitions/index.d.ts +23 -0
- package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
- package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
- package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
- package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
- package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
- package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
- package/src/definitions/model/definitions/types/index.d.ts +3 -0
- package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
- package/chunks/Radio-Ciu-F4CU.js +0 -957
- package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
- package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
- package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
- package/chunks/bar.compiler-oqaPzIut.js +0 -370
- package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
- package/chunks/event-bus-KiSiCJrC.js +0 -2683
- package/chunks/filter.compiler-CuLtc_02.js +0 -60
- package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
- package/chunks/interfaces-VUY4_yVO.js +0 -8742
- package/chunks/line-settings-DfYTUyPz.js +0 -4
- package/chunks/line.compiler-BpA_6Tc7.js +0 -188
- package/chunks/number.compiler-DbkWcG4S.js +0 -44
- package/chunks/pie-uv42Eqal.js +0 -10
- package/chunks/src-Dun_jXtz.js +0 -10295
- package/chunks/standalone-87YV_m9n.js +0 -687
- package/chunks/standalone-BLVAWLNJ.js +0 -385
- package/chunks/standalone-BPomtAVs.js +0 -2
- package/chunks/standalone-BXyBcUOQ.js +0 -2
- package/chunks/standalone-BllF4rDp.js +0 -383
- package/chunks/standalone-BqWyrnZI.js +0 -281
- package/chunks/standalone-DQxxNwF8.js +0 -675
- package/chunks/standalone-DS9T0FZ-.js +0 -830
- package/chunks/standalone-DzixzZAL.js +0 -411
- package/chunks/standalone-QJ1kKMnO.js +0 -6
- package/chunks/table.compiler-BrXkm4Fz.js +0 -213
- package/chunks/toInteger-DVZr-D1j.js +0 -11
- package/chunks/treemap-x_zmJoG7.js +0 -23
- package/chunks/types-dVVCsDWD.js +0 -4
- package/chunks/view-CLqWMV7Z.js +0 -156
- package/src/definitions/shared/index.d.ts +0 -5
- package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
- package/src/definitions/shared/lib/registry/index.d.ts +0 -3
- package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
- package/src/definitions/shared/lib/types/index.d.ts +0 -3
- package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
- package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
- /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
- /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
|
@@ -1,38 +1,52 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { G as h,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { Bn as t, Gn as n, Ko as r, Kr as i, Sa as a, Ta as o, _a as s, la as c, oi as l, qa as u, va as d, vr as f } from "./isEqual-BDxAhUo8.js";
|
|
3
|
+
import { Ei as p, Fn as m, G as h, J as g, K as _, Si as v, Yi as y, Zi as b, d as x, hi as S, hn as C, hr as w, pt as T, q as E, qi as D, st as O, vi as k, wr as A, xi as j } from "./utils-Bg7K-t6K.js";
|
|
4
|
+
import { Ft as M, It as N, M as P, N as ee, Nt as F, P as te, Pt as I, ft as L, j as ne, n as re, ut as ie, vt as R } from "./ui-DQWtv2iM.js";
|
|
5
|
+
import { t as ae } from "./LinearProgress-B1FeWaen.js";
|
|
6
|
+
var oe = (e, t, n) => Math.ceil(t) + Math.ceil(n) >= Math.floor(e) && n > 0;
|
|
7
|
+
function se(e) {
|
|
8
|
+
let { theme: t, name: n, props: r } = e;
|
|
9
|
+
return !t || !t.components || !t.components[n] || !t.components[n].defaultProps ? r : O(t.components[n].defaultProps, r);
|
|
10
|
+
}
|
|
11
|
+
function ce({ props: e, name: t, defaultTheme: n, themeId: r }) {
|
|
12
|
+
let i = T(n);
|
|
13
|
+
return r && (i = i[r] || i), se({
|
|
14
|
+
theme: i,
|
|
15
|
+
name: t,
|
|
16
|
+
props: e
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var z = (e, t) => t && !i(t) ? String(C(t, e)) : e === !0 ? "True" : e === !1 ? "False" : e === null ? "-" : String(e), le = /* @__PURE__ */ e(re()), B = (e, t) => {
|
|
20
|
+
let [n, r] = (0, le.default)(e, (e) => t.indexOf(e.dimension) !== -1);
|
|
10
21
|
return [n, r];
|
|
11
|
-
},
|
|
22
|
+
}, ue = (e) => {
|
|
23
|
+
let t = e?.dimensions.filter((e) => e.role === u.FILTER_DIMENSION);
|
|
24
|
+
return [(t?.length ? t : e?.dimensions.slice(0, 1) ?? []).map(V).join(" - ") || "Sample", e?.measures[0] && e?.filterSettings?.showMeasureLabel ? ` | ${V(e?.measures[0])}` : null];
|
|
25
|
+
};
|
|
26
|
+
function V(e) {
|
|
27
|
+
return n(e) || e.label || e.dataItem?.name || "";
|
|
28
|
+
}
|
|
29
|
+
var H = (e) => async (t) => {
|
|
12
30
|
t.preventDefault(), t.stopPropagation(), e((t.clipboardData.getData("Text") || await navigator.clipboard.readText()).replaceAll("\r\n", " ").replaceAll("\r", " ").replaceAll("\n", " "));
|
|
13
|
-
},
|
|
31
|
+
}, U = b(), de = (e) => {
|
|
14
32
|
if (!e.length) return [];
|
|
15
33
|
if (e.length === 1) return [e[0], e[0]];
|
|
16
34
|
let t = Infinity, n = -Infinity;
|
|
17
35
|
return e.forEach((e) => {
|
|
18
36
|
t > e && (t = e), n < e && (n = e);
|
|
19
37
|
}), [t, n];
|
|
20
|
-
},
|
|
21
|
-
let n = e.selection.getActiveSelection(
|
|
38
|
+
}, W = l("getToRangeSelectionHandler", "#cbacba"), fe = (e, t) => async () => {
|
|
39
|
+
let n = e.selection.getActiveSelection(U.FilterType.VALUE), r = structuredClone(n), i = r.applied.find((e) => e.field.name === t.name && e.field.view === t.view);
|
|
22
40
|
if (i ||= r.pending.find((e) => e.field.name === t.name && e.field.view === t.view), !i) {
|
|
23
|
-
let n =
|
|
41
|
+
let n = U.FilterOperator.Between;
|
|
24
42
|
r.pending.push({
|
|
25
43
|
operator: n,
|
|
26
|
-
field:
|
|
27
|
-
name: t.name,
|
|
28
|
-
view: t.view,
|
|
29
|
-
schema: t.schema
|
|
30
|
-
},
|
|
44
|
+
field: D(e.engine, t),
|
|
31
45
|
values: []
|
|
32
46
|
}), e.selection.setNewSelectionState(r);
|
|
33
47
|
return;
|
|
34
48
|
}
|
|
35
|
-
if (i.operator = i.operator ===
|
|
49
|
+
if (i.operator = i.operator === U.FilterOperator.InList ? U.FilterOperator.Between : U.FilterOperator.NotBetween, (i.values ?? []).length === 0) {
|
|
36
50
|
e.selection.declineSelection(i), e.selection.removeSelection(i);
|
|
37
51
|
let n = {
|
|
38
52
|
dimensions: [],
|
|
@@ -47,49 +61,49 @@ var P = (e, t, n) => Math.ceil(t) + Math.ceil(n) >= Math.floor(e) && n > 0, F =
|
|
|
47
61
|
}]
|
|
48
62
|
}, a = e.engine;
|
|
49
63
|
if (!a) {
|
|
50
|
-
|
|
64
|
+
W.error("There is no data engine available");
|
|
51
65
|
return;
|
|
52
66
|
}
|
|
53
67
|
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;
|
|
54
68
|
if (s === null || c === null) {
|
|
55
|
-
|
|
69
|
+
W.error("There is something wrong with the min/max data");
|
|
56
70
|
return;
|
|
57
71
|
}
|
|
58
|
-
return i.values = [s, c], e.selection.setNewSelectionState(r,
|
|
72
|
+
return i.values = [s, c], e.selection.setNewSelectionState(r, U.FilterType.VALUE), i.operator;
|
|
59
73
|
}
|
|
60
|
-
return i.values =
|
|
61
|
-
},
|
|
62
|
-
let a = n ??
|
|
74
|
+
return i.values = de(i.values), e.selection.setNewSelectionState(r, U.FilterType.VALUE), i.operator;
|
|
75
|
+
}, G = l("getToValueSelectionHandler", "#cbacba"), pe = t(f()), me = (e, t, n, r, i) => async () => {
|
|
76
|
+
let a = n ?? pe, o = e.selection.getActiveSelection(U.FilterType.VALUE), s = structuredClone(o), c = s.pending.find((e) => e.field.name === t.name && e.field.view === t.view);
|
|
63
77
|
if (c ||= s.applied.find((e) => e.field.name === t.name && e.field.view === t.view), !c) {
|
|
64
|
-
|
|
78
|
+
G.warn("There was no selection connected to clicked field!", JSON.stringify(t));
|
|
65
79
|
return;
|
|
66
80
|
}
|
|
67
|
-
if (r) return c.operator =
|
|
68
|
-
if ([
|
|
69
|
-
if ([
|
|
81
|
+
if (r) return c.operator = U.FilterOperator.InList, c.values = [], delete c.dynamicDateRange, delete c.dynamicDateCalcRange, e.selection.setNewSelectionState(s, U.FilterType.VALUE), c.operator;
|
|
82
|
+
if ([U.FilterOperator.InList, U.FilterOperator.NotInList].includes(c.operator)) return c.operator;
|
|
83
|
+
if ([U.FilterOperator.Like, U.FilterOperator.NotLike].includes(c.operator)) {
|
|
70
84
|
let n = c.values;
|
|
71
|
-
if (c.operator = c.operator ===
|
|
85
|
+
if (c.operator = c.operator === U.FilterOperator.Like ? U.FilterOperator.InList : U.FilterOperator.NotInList, n?.length) {
|
|
72
86
|
let r = {
|
|
73
87
|
dimensions: [{ fieldKey: t.key }],
|
|
74
88
|
limit: a + 1,
|
|
75
89
|
measures: [],
|
|
76
90
|
filters: [{
|
|
77
91
|
fieldKey: t.key,
|
|
78
|
-
operator:
|
|
92
|
+
operator: U.FilterOperator.Like,
|
|
79
93
|
values: n
|
|
80
94
|
}]
|
|
81
95
|
}, o = e.engine;
|
|
82
96
|
if (!o) {
|
|
83
|
-
|
|
97
|
+
G.error("There is no data engine available");
|
|
84
98
|
return;
|
|
85
99
|
}
|
|
86
100
|
let { data: l, meta: u } = await o.getData(r);
|
|
87
|
-
if (u.rows >= a + 1) return c.values = [], e.selection.setNewSelectionState(s,
|
|
101
|
+
if (u.rows >= a + 1) return c.values = [], e.selection.setNewSelectionState(s, U.FilterType.VALUE), i?.(c.operator, String(n[0] ?? "")), c.operator;
|
|
88
102
|
c.values = Object.values(l).flat();
|
|
89
103
|
}
|
|
90
|
-
return e.selection.setNewSelectionState(s,
|
|
104
|
+
return e.selection.setNewSelectionState(s, U.FilterType.VALUE), c.operator;
|
|
91
105
|
}
|
|
92
|
-
c.operator = c.operator ===
|
|
106
|
+
c.operator = c.operator === U.FilterOperator.Between ? U.FilterOperator.InList : U.FilterOperator.NotInList;
|
|
93
107
|
let l = {
|
|
94
108
|
dimensions: [{ fieldKey: t.key }],
|
|
95
109
|
limit: a,
|
|
@@ -98,80 +112,76 @@ var P = (e, t, n) => Math.ceil(t) + Math.ceil(n) >= Math.floor(e) && n > 0, F =
|
|
|
98
112
|
};
|
|
99
113
|
c.values && (l.filters?.push({
|
|
100
114
|
fieldKey: t.key,
|
|
101
|
-
operator:
|
|
115
|
+
operator: U.FilterOperator.Between,
|
|
102
116
|
values: c.values
|
|
103
117
|
}), l.limit = a + 1);
|
|
104
118
|
let u = e.engine;
|
|
105
119
|
if (!u) {
|
|
106
|
-
|
|
120
|
+
G.error("There is no data engine available");
|
|
107
121
|
return;
|
|
108
122
|
}
|
|
109
123
|
let { data: d, meta: f } = await u.getData(l);
|
|
110
|
-
return f.rows >= a + 1 ? (e.daedalus.emitEvent(
|
|
124
|
+
return f.rows >= a + 1 ? (e.daedalus.emitEvent(U.AstratoEvents.SHOW_GLOBAL_NOTIFICATION, {
|
|
111
125
|
type: "warn",
|
|
112
126
|
message: "Cannot change the selection type, because too many values would have to be selected!"
|
|
113
|
-
}), c.operator) : (c.values = Object.values(d).flat(), e.selection.setNewSelectionState(s,
|
|
114
|
-
},
|
|
115
|
-
let r = e.selection.getActiveSelection(
|
|
127
|
+
}), c.operator) : (c.values = Object.values(d).flat(), e.selection.setNewSelectionState(s, U.FilterType.VALUE), c.operator);
|
|
128
|
+
}, he = (e, t) => (n) => {
|
|
129
|
+
let r = e.selection.getActiveSelection(U.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);
|
|
116
130
|
if (o ||= i.pending.find((e) => e.field.name === t.name && e.field.view === t.view), !o) {
|
|
117
|
-
let n =
|
|
131
|
+
let n = U.FilterOperator.Like;
|
|
118
132
|
return i.pending.push({
|
|
119
133
|
operator: n,
|
|
120
|
-
field:
|
|
121
|
-
name: t.name,
|
|
122
|
-
view: t.view,
|
|
123
|
-
schema: t.schema
|
|
124
|
-
},
|
|
134
|
+
field: D(e.engine, t),
|
|
125
135
|
values: a
|
|
126
136
|
}), e.selection.setNewSelectionState(i), n;
|
|
127
137
|
}
|
|
128
|
-
return o.operator ===
|
|
129
|
-
},
|
|
130
|
-
fontFamily:
|
|
138
|
+
return o.operator === U.FilterOperator.InList ? (o.operator = U.FilterOperator.Like, o.values = a) : o.operator === U.FilterOperator.NotInList ? (o.operator = U.FilterOperator.NotLike, o.values = a) : (o.operator = o.operator === U.FilterOperator.NotLike ? U.FilterOperator.NotLike : U.FilterOperator.Like, o.values = a.length ? a : o.values), e.selection.setNewSelectionState(i, U.FilterType.VALUE), o.operator;
|
|
139
|
+
}, K = (e, t) => ({
|
|
140
|
+
fontFamily: d(t, e?.fontFamily) ?? void 0,
|
|
131
141
|
fontStyle: e?.italic ? "italic" : "normal",
|
|
132
142
|
fontWeight: e?.bold ? "bold" : "normal",
|
|
133
143
|
textDecoration: `${e?.underlined ? "underline" : ""} ${e?.strikethrough ? "line-through" : ""}`,
|
|
134
144
|
color: s(t, e?.fontColor)
|
|
135
|
-
}),
|
|
145
|
+
}), ge = (e) => e === r.Line ? "solid" : "dashed", q = (e, t) => {
|
|
136
146
|
let { backgroundColor: n, borderColor: r, borderEnabled: i, borderRadius: a, borderStyle: o, borderWidth: s } = {
|
|
137
|
-
...
|
|
147
|
+
...c,
|
|
138
148
|
...e
|
|
139
|
-
},
|
|
140
|
-
return i && (
|
|
149
|
+
}, l = "0px";
|
|
150
|
+
return i && (l = `${a}px`, t && (l = `${a}px ${a}px 0 0`)), {
|
|
141
151
|
backgroundColor: n,
|
|
142
|
-
border: i ? `${s}px ${
|
|
143
|
-
borderRadius:
|
|
152
|
+
border: i ? `${s}px ${ge(o)} ${r}` : "none",
|
|
153
|
+
borderRadius: l
|
|
144
154
|
};
|
|
145
155
|
};
|
|
146
|
-
function
|
|
156
|
+
function J(e) {
|
|
147
157
|
return {
|
|
148
158
|
boxSizing: "border-box",
|
|
149
159
|
alignItems: "center",
|
|
150
160
|
cursor: "pointer",
|
|
151
161
|
height: 24,
|
|
152
162
|
padding: "3px 6px",
|
|
153
|
-
border: `1px solid ${
|
|
163
|
+
border: `1px solid ${o.grey4}`,
|
|
154
164
|
borderRadius: 16,
|
|
155
165
|
display: "flex",
|
|
156
166
|
marginRight: 4,
|
|
157
167
|
flexShrink: 0,
|
|
158
|
-
backgroundColor:
|
|
159
|
-
color:
|
|
160
|
-
...
|
|
161
|
-
...
|
|
162
|
-
"&:hover": { borderColor:
|
|
168
|
+
backgroundColor: o.mainBrightPink,
|
|
169
|
+
color: o.white,
|
|
170
|
+
...E.bold11,
|
|
171
|
+
...E.overflowEllipsis,
|
|
172
|
+
"&:hover": { borderColor: o.grey2 },
|
|
163
173
|
...e && {
|
|
164
|
-
[
|
|
174
|
+
[N.md]: {
|
|
165
175
|
height: 20,
|
|
166
176
|
padding: "2px 6px",
|
|
167
|
-
...
|
|
177
|
+
...E.bold10
|
|
168
178
|
},
|
|
169
|
-
[
|
|
179
|
+
[N.sm]: {
|
|
170
180
|
height: 16,
|
|
171
181
|
padding: "1px 4px",
|
|
172
|
-
...
|
|
182
|
+
...E.normal10
|
|
173
183
|
},
|
|
174
|
-
[
|
|
184
|
+
[N.xs]: {
|
|
175
185
|
height: 12,
|
|
176
186
|
padding: "0px 4px",
|
|
177
187
|
fontSize: 8,
|
|
@@ -180,46 +190,46 @@ function K(e) {
|
|
|
180
190
|
}
|
|
181
191
|
};
|
|
182
192
|
}
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
return
|
|
193
|
+
var Y = /* @__PURE__ */ e(y()), X = (0, Y.createContext)({});
|
|
194
|
+
Y.forwardRef(function(e, t) {
|
|
195
|
+
return Y.createElement("img", {
|
|
186
196
|
...e,
|
|
187
197
|
ref: t,
|
|
188
198
|
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"
|
|
189
199
|
});
|
|
190
200
|
});
|
|
191
|
-
var
|
|
201
|
+
var _e = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, ve = (e, t, n, r, i, a) => {
|
|
192
202
|
let o = "";
|
|
193
203
|
if (e) {
|
|
194
204
|
t && (o += `${t}: `);
|
|
195
|
-
let r =
|
|
205
|
+
let r = z(e, n);
|
|
196
206
|
o += r;
|
|
197
207
|
}
|
|
198
208
|
if (r) {
|
|
199
209
|
e && (o += " | "), i && (o += `${i}: `);
|
|
200
|
-
let t =
|
|
210
|
+
let t = z(r, a);
|
|
201
211
|
o += t;
|
|
202
212
|
}
|
|
203
213
|
return o;
|
|
204
|
-
},
|
|
214
|
+
}, Z = p(), ye = h({ iconContainer: {
|
|
205
215
|
width: 16,
|
|
206
216
|
flexShrink: 0
|
|
207
|
-
} }),
|
|
208
|
-
let
|
|
209
|
-
return /* @__PURE__ */ (0,
|
|
210
|
-
className:
|
|
217
|
+
} }), be = ({ disabled: e, isApplied: t, isSelected: n, isNot: r, fontColor: i }) => {
|
|
218
|
+
let a = ye(), s = i ?? (t ? o.mainDarkNavy : void 0);
|
|
219
|
+
return /* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
220
|
+
className: a.iconContainer,
|
|
211
221
|
style: { opacity: e ? .25 : void 0 },
|
|
212
|
-
children: [
|
|
222
|
+
children: [n && r ? /* @__PURE__ */ (0, Z.jsx)(S, { fill: o.mainBrightPink }) : null, n && !r ? /* @__PURE__ */ (0, Z.jsx)(v, { fill: s }) : null]
|
|
213
223
|
});
|
|
214
|
-
},
|
|
215
|
-
let { r: t, g: n, b: r, a: i } =
|
|
216
|
-
return
|
|
224
|
+
}, xe = (e) => {
|
|
225
|
+
let { r: t, g: n, b: r, a: i } = P(e) ? ne(e) : te(e), a = (i ?? 1) * .6;
|
|
226
|
+
return ee({
|
|
217
227
|
r: t,
|
|
218
228
|
g: n,
|
|
219
229
|
b: r,
|
|
220
230
|
a: a < 0 ? 0 : a
|
|
221
231
|
});
|
|
222
|
-
},
|
|
232
|
+
}, Se = h({
|
|
223
233
|
progressBar: {
|
|
224
234
|
height: "100%",
|
|
225
235
|
borderRadius: "4px",
|
|
@@ -227,7 +237,7 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
227
237
|
bottom: 1,
|
|
228
238
|
top: 1
|
|
229
239
|
},
|
|
230
|
-
progressBarSelectedOrApplied: { color:
|
|
240
|
+
progressBarSelectedOrApplied: { color: o.mainDarkNavy },
|
|
231
241
|
labelsContainer: {
|
|
232
242
|
display: "flex",
|
|
233
243
|
flexDirection: "row",
|
|
@@ -238,20 +248,31 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
238
248
|
overflow: "hidden",
|
|
239
249
|
position: "relative",
|
|
240
250
|
"&:hover": {
|
|
241
|
-
color:
|
|
242
|
-
"& > div": { backgroundColor:
|
|
251
|
+
color: o.mainDarkNavy,
|
|
252
|
+
"& > div": { backgroundColor: o.grey5 }
|
|
243
253
|
}
|
|
244
254
|
},
|
|
245
|
-
label: (e) => ({
|
|
246
|
-
...
|
|
247
|
-
...
|
|
255
|
+
label: ({ responsive: e, fontSize: t }) => ({
|
|
256
|
+
...E.normal11,
|
|
257
|
+
...E.overflowEllipsis,
|
|
248
258
|
color: "inherit",
|
|
249
259
|
marginRight: "5px",
|
|
250
260
|
height: "100%",
|
|
251
261
|
zIndex: 1,
|
|
252
262
|
display: "inline-flex",
|
|
253
263
|
alignItems: "center",
|
|
254
|
-
...
|
|
264
|
+
...t ? {
|
|
265
|
+
fontSize: `${t}px`,
|
|
266
|
+
lineHeight: 1.2,
|
|
267
|
+
...e && {
|
|
268
|
+
[N.md]: { fontSize: `min(${t * F.md}px, 14px)` },
|
|
269
|
+
[N.sm]: { fontSize: `min(${t * F.sm}px, 12px)` },
|
|
270
|
+
[N.xs]: {
|
|
271
|
+
fontSize: `min(${t * F.xs}px, 10px)`,
|
|
272
|
+
fontWeight: "normal !important"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
} : I(e)
|
|
255
276
|
}),
|
|
256
277
|
dimensionLabel: {
|
|
257
278
|
paddingLeft: 4,
|
|
@@ -262,49 +283,55 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
262
283
|
flexGrow: 0,
|
|
263
284
|
flexShrink: 1
|
|
264
285
|
},
|
|
265
|
-
rowDisabled: { color:
|
|
266
|
-
}),
|
|
267
|
-
let
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
286
|
+
rowDisabled: { color: o.grey3 }
|
|
287
|
+
}), Ce = ({ dimensionDisplayValue: e, measuresLabel: t, showLabelProgress: n, isSelected: r, isApplied: i, strikethrough: s, disabled: c, searchTerm: l, barWidth: u, fontStyle: d, progressColor: f = o.lightBlue, textAlign: p, responsive: h, fontSize: _ }) => {
|
|
288
|
+
let v = Se({
|
|
289
|
+
responsive: h,
|
|
290
|
+
fontSize: _
|
|
291
|
+
}), y = g()?.astrato ?? a, b = {
|
|
292
|
+
...K({
|
|
293
|
+
...d,
|
|
294
|
+
strikethrough: d?.strikethrough || s
|
|
295
|
+
}, y),
|
|
296
|
+
...p ? {
|
|
297
|
+
textAlign: p,
|
|
298
|
+
justifyContent: p === "right" ? "flex-end" : p === "center" ? "center" : "flex-start"
|
|
272
299
|
} : {}
|
|
273
|
-
},
|
|
274
|
-
return /* @__PURE__ */ (0,
|
|
275
|
-
className:
|
|
276
|
-
[
|
|
277
|
-
[
|
|
300
|
+
}, x = r || i ? f : xe(f);
|
|
301
|
+
return /* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
302
|
+
className: m({
|
|
303
|
+
[v.labelsContainer]: !0,
|
|
304
|
+
[v.progressBarSelectedOrApplied]: r || i
|
|
278
305
|
}),
|
|
279
306
|
children: [
|
|
280
|
-
|
|
307
|
+
n && /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
281
308
|
style: {
|
|
282
|
-
width: `${
|
|
283
|
-
backgroundColor:
|
|
309
|
+
width: `${u * 100}%`,
|
|
310
|
+
backgroundColor: x
|
|
284
311
|
},
|
|
285
|
-
className:
|
|
286
|
-
[
|
|
287
|
-
[
|
|
312
|
+
className: m({
|
|
313
|
+
[v.progressBar]: !0,
|
|
314
|
+
[v.rowDisabled]: c
|
|
288
315
|
}),
|
|
289
316
|
"data-testid": "item-list-label-progress"
|
|
290
317
|
}),
|
|
291
|
-
/* @__PURE__ */ (0,
|
|
292
|
-
style:
|
|
293
|
-
className: v
|
|
318
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
319
|
+
style: b,
|
|
320
|
+
className: m(v.label, v.dimensionLabel),
|
|
294
321
|
title: e,
|
|
295
|
-
children: /* @__PURE__ */ (0,
|
|
296
|
-
phrase:
|
|
322
|
+
children: /* @__PURE__ */ (0, Z.jsx)(L, {
|
|
323
|
+
phrase: l ?? "",
|
|
297
324
|
children: e ?? ""
|
|
298
325
|
})
|
|
299
326
|
}),
|
|
300
|
-
/* @__PURE__ */ (0,
|
|
301
|
-
style:
|
|
302
|
-
className: v
|
|
303
|
-
children:
|
|
327
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
328
|
+
style: b,
|
|
329
|
+
className: m(v.label, v.measuresLabel),
|
|
330
|
+
children: t
|
|
304
331
|
})
|
|
305
332
|
]
|
|
306
333
|
});
|
|
307
|
-
},
|
|
334
|
+
}, we = h({
|
|
308
335
|
rowWrapper: (e) => ({
|
|
309
336
|
cursor: "pointer",
|
|
310
337
|
userSelect: "none",
|
|
@@ -316,98 +343,140 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
316
343
|
borderRadius: 6,
|
|
317
344
|
paddingRight: 8,
|
|
318
345
|
...e && {
|
|
319
|
-
[
|
|
346
|
+
[N.md]: {
|
|
320
347
|
height: "24px",
|
|
321
348
|
paddingRight: 6
|
|
322
349
|
},
|
|
323
|
-
[
|
|
324
|
-
height: "
|
|
350
|
+
[N.sm]: {
|
|
351
|
+
height: "16px",
|
|
325
352
|
paddingRight: 4
|
|
326
353
|
},
|
|
327
|
-
[
|
|
328
|
-
height: "
|
|
354
|
+
[N.xs]: {
|
|
355
|
+
height: "12px",
|
|
329
356
|
paddingRight: 2
|
|
330
357
|
}
|
|
331
358
|
}
|
|
332
359
|
}),
|
|
360
|
+
checkboxWrapper: (e) => ({
|
|
361
|
+
display: "flex",
|
|
362
|
+
alignItems: "center",
|
|
363
|
+
flexShrink: 0,
|
|
364
|
+
marginRight: 6,
|
|
365
|
+
...e && {
|
|
366
|
+
[N.md]: {
|
|
367
|
+
"& input[type=\"checkbox\"], & svg": {
|
|
368
|
+
width: "14px !important",
|
|
369
|
+
height: "14px !important"
|
|
370
|
+
},
|
|
371
|
+
"& > div, & > div > div": { height: "14px" }
|
|
372
|
+
},
|
|
373
|
+
[N.sm]: {
|
|
374
|
+
"& input[type=\"checkbox\"], & svg": {
|
|
375
|
+
width: "11px !important",
|
|
376
|
+
height: "11px !important"
|
|
377
|
+
},
|
|
378
|
+
"& > div, & > div > div": { height: "11px" }
|
|
379
|
+
},
|
|
380
|
+
[N.xs]: {
|
|
381
|
+
"& input[type=\"checkbox\"], & svg": {
|
|
382
|
+
width: "10px !important",
|
|
383
|
+
height: "10px !important"
|
|
384
|
+
},
|
|
385
|
+
"& > div, & > div > div": { height: "10px" }
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}),
|
|
333
389
|
rowSelected: { backgroundColor: "var(--filter-hover-color)" },
|
|
334
390
|
rowHover: { "&:hover": { backgroundColor: "var(--filter-hover-color)" } },
|
|
335
391
|
rowApplied: {
|
|
336
392
|
backgroundColor: "initial",
|
|
337
|
-
"& > div > span": { color: `${
|
|
393
|
+
"& > div > span": { color: `${o.mainDarkNavy} !important` }
|
|
338
394
|
},
|
|
339
|
-
rowDisabled: { "& span": { color: `${
|
|
340
|
-
}), Q = ({ selected: e, applied:
|
|
341
|
-
let
|
|
342
|
-
return (0,
|
|
343
|
-
|
|
344
|
-
}, []), /* @__PURE__ */ (0,
|
|
395
|
+
rowDisabled: { "& span": { color: `${o.grey3} !important` } }
|
|
396
|
+
}), Q = ({ selected: e, applied: t, disabled: n, hoverColor: r, onSelect: i, showProgressBar: a, showCheckbox: s, showSelectionIcon: c = !0, checkboxState: l = "none", fontSize: u, searchTerm: d, doneRenderingCallback: f, dimensionValue: p, dimensionFormatter: h, imageValue: g, measure1Value: _, measure1Label: v, measure1Formatter: y, measure2Value: b, measure2Label: x, measure2Formatter: S, maxValue: C, imageFit: w, fontStyle: T, progressBarColor: E, responsive: D }) => {
|
|
397
|
+
let O = we(D), k = (0, Y.useContext)(X), A = (k.pendingOperator ?? k.appliedOperator) === U.FilterOperator.NotInList, j = !!g, M = a && _ !== void 0 && !b, N = z(p, h), P = ve(_, v, y, b, x, S);
|
|
398
|
+
return (0, Y.useEffect)(() => {
|
|
399
|
+
j || f?.();
|
|
400
|
+
}, []), /* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
345
401
|
tabIndex: 0,
|
|
346
402
|
role: "button",
|
|
347
|
-
onClick:
|
|
348
|
-
"data-testid": `big-list-item-dimension-${
|
|
349
|
-
className:
|
|
350
|
-
[
|
|
351
|
-
[
|
|
352
|
-
[
|
|
353
|
-
[
|
|
354
|
-
[
|
|
403
|
+
onClick: i,
|
|
404
|
+
"data-testid": `big-list-item-dimension-${p}`,
|
|
405
|
+
className: m({
|
|
406
|
+
[O.rowWrapper]: !0,
|
|
407
|
+
[O.rowHover]: !M,
|
|
408
|
+
[O.rowSelected]: !M && e,
|
|
409
|
+
[O.rowApplied]: t && !n,
|
|
410
|
+
[O.rowDisabled]: n
|
|
355
411
|
}),
|
|
356
|
-
style: { "--filter-hover-color":
|
|
412
|
+
style: { "--filter-hover-color": r ?? o.grey5 },
|
|
357
413
|
children: [
|
|
358
|
-
|
|
414
|
+
s ? /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
415
|
+
"aria-hidden": !0,
|
|
416
|
+
style: { pointerEvents: "none" },
|
|
417
|
+
className: O.checkboxWrapper,
|
|
418
|
+
children: /* @__PURE__ */ (0, Z.jsx)(R, {
|
|
419
|
+
value: l,
|
|
420
|
+
onChange: () => void 0,
|
|
421
|
+
testId: `dimension-${p}-checkbox`
|
|
422
|
+
})
|
|
423
|
+
}) : null,
|
|
424
|
+
j && /* @__PURE__ */ (0, Z.jsx)("img", {
|
|
359
425
|
alt: "",
|
|
360
426
|
width: 32,
|
|
361
427
|
height: 32,
|
|
362
|
-
src:
|
|
428
|
+
src: g,
|
|
363
429
|
onError: (e) => {
|
|
364
|
-
e.currentTarget.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",
|
|
430
|
+
e.currentTarget.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", f?.();
|
|
365
431
|
},
|
|
366
432
|
style: {
|
|
367
433
|
borderRadius: 6,
|
|
368
434
|
marginRight: 8,
|
|
369
|
-
objectFit: `${
|
|
435
|
+
objectFit: `${w ?? "contain"}`
|
|
370
436
|
},
|
|
371
|
-
"data-testid": `big-list-item-dimension-${
|
|
372
|
-
onLoad:
|
|
437
|
+
"data-testid": `big-list-item-dimension-${p}-image`,
|
|
438
|
+
onLoad: f,
|
|
373
439
|
loading: "lazy"
|
|
374
440
|
}),
|
|
375
|
-
/* @__PURE__ */ (0,
|
|
376
|
-
dimensionDisplayValue:
|
|
377
|
-
measuresLabel:
|
|
378
|
-
showLabelProgress:
|
|
379
|
-
progressColor:
|
|
380
|
-
isApplied:
|
|
441
|
+
/* @__PURE__ */ (0, Z.jsx)(Ce, {
|
|
442
|
+
dimensionDisplayValue: N,
|
|
443
|
+
measuresLabel: P,
|
|
444
|
+
showLabelProgress: M,
|
|
445
|
+
progressColor: E,
|
|
446
|
+
isApplied: t,
|
|
381
447
|
isSelected: e,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
448
|
+
strikethrough: A && t && e,
|
|
449
|
+
disabled: n,
|
|
450
|
+
searchTerm: d,
|
|
451
|
+
barWidth: _e(_, C),
|
|
452
|
+
fontStyle: T,
|
|
453
|
+
responsive: D,
|
|
454
|
+
fontSize: u
|
|
387
455
|
}),
|
|
388
|
-
/* @__PURE__ */ (0,
|
|
389
|
-
disabled:
|
|
390
|
-
isApplied:
|
|
456
|
+
!s && c ? /* @__PURE__ */ (0, Z.jsx)(be, {
|
|
457
|
+
disabled: n,
|
|
458
|
+
isApplied: t,
|
|
391
459
|
isSelected: e,
|
|
392
|
-
|
|
393
|
-
|
|
460
|
+
isNot: A,
|
|
461
|
+
fontColor: T?.fontColor ?? void 0
|
|
462
|
+
}) : null
|
|
394
463
|
]
|
|
395
464
|
});
|
|
396
|
-
},
|
|
397
|
-
let t = [...e].sort((e, t) =>
|
|
465
|
+
}, Te = (e) => {
|
|
466
|
+
let t = [...e].sort((e, t) => Ee(e?.measure1 ?? void 0, t?.measure1 ?? void 0)), n = t.length > 0 ? t[0] : null;
|
|
398
467
|
return typeof n?.measure1 == "number" ? n : null;
|
|
399
|
-
},
|
|
468
|
+
}, Ee = (e, t) => {
|
|
400
469
|
if (e && t) {
|
|
401
470
|
if (e < t) return 1;
|
|
402
471
|
if (e > t) return -1;
|
|
403
472
|
} else if (e && !t) return -1;
|
|
404
473
|
return 0;
|
|
405
|
-
},
|
|
406
|
-
let s = (0,
|
|
474
|
+
}, De = ({ filterValues: e, onItemClick: t, selectedValues: n, appliedValues: r, searchTerm: i, vSpec: a, hoverColor: o }) => {
|
|
475
|
+
let s = (0, Y.useRef)(e.length), c = x(), l = () => {
|
|
407
476
|
--s.current, s.current === 0 && c();
|
|
408
477
|
};
|
|
409
478
|
if (!a?.dimensions[0]?.dataItem) return null;
|
|
410
|
-
let u = a.dimensions[0]?.formatter, d = a.dimensions[1]?.imageFit, f = a.measures[0]?.formatter, p = a.measures[1]?.formatter, [m, h] =
|
|
479
|
+
let u = a.dimensions[0]?.formatter, d = a.dimensions[1]?.imageFit, f = a.measures[0]?.formatter, p = a.measures[1]?.formatter, [m, h] = B(e, r), g = (e, r) => {
|
|
411
480
|
switch (!0) {
|
|
412
481
|
case n.includes(e.dimension):
|
|
413
482
|
t(e.dimension);
|
|
@@ -415,8 +484,8 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
415
484
|
case e.disabled: break;
|
|
416
485
|
default: t(e.dimension, { shift: r.shiftKey ? [...m, ...h].reduce((e, t) => (t.disabled || e.push(t.dimension), e), []) : null });
|
|
417
486
|
}
|
|
418
|
-
}, _ =
|
|
419
|
-
return /* @__PURE__ */ (0,
|
|
487
|
+
}, _ = Te(e), v = s.current > 0 ? l : void 0;
|
|
488
|
+
return /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [m.map((e) => /* @__PURE__ */ (0, Z.jsx)(Q, {
|
|
420
489
|
searchTerm: i,
|
|
421
490
|
disabled: !!e.disabled,
|
|
422
491
|
onSelect: (t) => g(e, t),
|
|
@@ -439,7 +508,7 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
439
508
|
fontStyle: a.filterSettings?.fontStyle,
|
|
440
509
|
progressBarColor: a.filterSettings?.filterStyle?.progressBarColor,
|
|
441
510
|
responsive: a.filterSettings?.responsive
|
|
442
|
-
}, String(e.dimension))), h.map((e) => /* @__PURE__ */ (0,
|
|
511
|
+
}, String(e.dimension))), h.map((e) => /* @__PURE__ */ (0, Z.jsx)(Q, {
|
|
443
512
|
searchTerm: i,
|
|
444
513
|
disabled: !!e.disabled,
|
|
445
514
|
onSelect: (t) => g(e, t),
|
|
@@ -463,7 +532,7 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
463
532
|
progressBarColor: a.filterSettings?.filterStyle?.progressBarColor,
|
|
464
533
|
responsive: a.filterSettings?.responsive
|
|
465
534
|
}, String(e.dimension)))] });
|
|
466
|
-
},
|
|
535
|
+
}, Oe = h({
|
|
467
536
|
rowWrapper: (e) => ({
|
|
468
537
|
userSelect: "none",
|
|
469
538
|
display: "flex",
|
|
@@ -475,12 +544,12 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
475
544
|
padding: 4,
|
|
476
545
|
borderRadius: 5,
|
|
477
546
|
...e && {
|
|
478
|
-
[
|
|
479
|
-
[
|
|
547
|
+
[N.md]: { height: 24 },
|
|
548
|
+
[N.sm]: {
|
|
480
549
|
height: 20,
|
|
481
550
|
padding: "2px 4px"
|
|
482
551
|
},
|
|
483
|
-
[
|
|
552
|
+
[N.xs]: {
|
|
484
553
|
height: 16,
|
|
485
554
|
padding: "1px 4px"
|
|
486
555
|
}
|
|
@@ -488,13 +557,14 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
488
557
|
"& > span": {
|
|
489
558
|
flexShrink: 0,
|
|
490
559
|
maxWidth: "100%",
|
|
491
|
-
...
|
|
560
|
+
...E.overflowEllipsis
|
|
492
561
|
}
|
|
493
562
|
}),
|
|
494
563
|
rowWrapperClickable: {
|
|
495
564
|
"&:hover": { backgroundColor: "var(--filter-hover-color)" },
|
|
496
565
|
cursor: "pointer"
|
|
497
566
|
},
|
|
567
|
+
rowWrapperStartAligned: { justifyContent: "flex-start" },
|
|
498
568
|
rowSelected: {
|
|
499
569
|
backgroundColor: "var(--filter-hover-color)",
|
|
500
570
|
"& > span": { maxWidth: "calc(100% - 20px)" }
|
|
@@ -502,49 +572,73 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
502
572
|
rowApplied: {
|
|
503
573
|
backgroundColor: "initial",
|
|
504
574
|
"& > span": {
|
|
505
|
-
color: `${
|
|
575
|
+
color: `${o.mainDarkNavy} !important`,
|
|
506
576
|
maxWidth: "calc(100% - 20px)"
|
|
507
577
|
}
|
|
508
578
|
},
|
|
509
|
-
rowDisabled: { "& span": { color: `${
|
|
510
|
-
label: (e) => ({ ...
|
|
511
|
-
}), $ = ({ selected: e, applied:
|
|
512
|
-
let
|
|
579
|
+
rowDisabled: { "& span": { color: `${o.grey3} !important` } },
|
|
580
|
+
label: (e) => ({ ...I(e) })
|
|
581
|
+
}), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue: i, dimensionFormatter: s, searchTerm: c, onSelect: l, fontStyle: u, responsive: d, showCheckbox: f, showSelectionIcon: p = !0, checkboxState: h = "none", alignContentStart: _, fontSize: v }) => {
|
|
582
|
+
let y = Oe(d), b = g()?.astrato ?? a, x = z(i, s), S = (0, Y.useContext)(X), C = (S.pendingOperator ?? S.appliedOperator) === U.FilterOperator.NotInList, w = C && t && e, T = K({
|
|
513
583
|
...u,
|
|
514
|
-
strikethrough:
|
|
515
|
-
},
|
|
516
|
-
return /* @__PURE__ */ (0,
|
|
584
|
+
strikethrough: w
|
|
585
|
+
}, b);
|
|
586
|
+
return /* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
517
587
|
tabIndex: 0,
|
|
518
588
|
role: "button",
|
|
519
589
|
onClick: l,
|
|
520
|
-
"data-testid": `small-list-item-dimension-${
|
|
521
|
-
className:
|
|
522
|
-
[
|
|
523
|
-
[
|
|
524
|
-
[
|
|
525
|
-
[
|
|
526
|
-
[
|
|
590
|
+
"data-testid": `small-list-item-dimension-${i}`,
|
|
591
|
+
className: m({
|
|
592
|
+
[y.rowWrapper]: !0,
|
|
593
|
+
[y.rowWrapperClickable]: !!l,
|
|
594
|
+
[y.rowWrapperStartAligned]: _,
|
|
595
|
+
[y.rowSelected]: e,
|
|
596
|
+
[y.rowApplied]: t && !e,
|
|
597
|
+
[y.rowDisabled]: n
|
|
527
598
|
}),
|
|
528
|
-
style: { "--filter-hover-color":
|
|
529
|
-
children: [
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
599
|
+
style: { "--filter-hover-color": r ?? o.grey5 },
|
|
600
|
+
children: [
|
|
601
|
+
f ? /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
602
|
+
"aria-hidden": !0,
|
|
603
|
+
style: {
|
|
604
|
+
display: "flex",
|
|
605
|
+
alignItems: "center",
|
|
606
|
+
flexShrink: 0,
|
|
607
|
+
marginRight: 6,
|
|
608
|
+
pointerEvents: "none"
|
|
609
|
+
},
|
|
610
|
+
children: /* @__PURE__ */ (0, Z.jsx)(R, {
|
|
611
|
+
value: h,
|
|
612
|
+
onChange: () => void 0
|
|
613
|
+
})
|
|
614
|
+
}) : null,
|
|
615
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
616
|
+
className: y.label,
|
|
617
|
+
style: {
|
|
618
|
+
...T,
|
|
619
|
+
...v ? {
|
|
620
|
+
fontSize: v,
|
|
621
|
+
lineHeight: "14px"
|
|
622
|
+
} : {}
|
|
623
|
+
},
|
|
624
|
+
children: /* @__PURE__ */ (0, Z.jsx)(L, {
|
|
625
|
+
phrase: c ?? "",
|
|
626
|
+
children: x ?? ""
|
|
627
|
+
})
|
|
628
|
+
}),
|
|
629
|
+
f ? null : /* @__PURE__ */ (0, Z.jsx)(be, {
|
|
630
|
+
disabled: n,
|
|
631
|
+
isApplied: t,
|
|
632
|
+
isSelected: p && e,
|
|
633
|
+
isNot: C,
|
|
634
|
+
fontColor: u?.fontColor ?? void 0
|
|
535
635
|
})
|
|
536
|
-
|
|
537
|
-
disabled: i,
|
|
538
|
-
isApplied: n,
|
|
539
|
-
isSelected: e,
|
|
540
|
-
isNot: _,
|
|
541
|
-
fontColor: u?.fontColor ?? void 0
|
|
542
|
-
})]
|
|
636
|
+
]
|
|
543
637
|
});
|
|
544
|
-
},
|
|
638
|
+
}, ke = ({ filterValues: e, onItemClick: t, selectedValues: n, appliedValues: r, searchTerm: i, vSpec: a, hoverColor: o }) => {
|
|
545
639
|
let s = a.dimensions[0]?.formatter;
|
|
546
640
|
if (!a?.dimensions[0]?.dataItem) return null;
|
|
547
|
-
let [c, l] =
|
|
641
|
+
let [c, l] = B(e, r), u = (e, r) => {
|
|
548
642
|
switch (!0) {
|
|
549
643
|
case n.includes(e.dimension):
|
|
550
644
|
t(e.dimension);
|
|
@@ -553,7 +647,7 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
553
647
|
default: t(e.dimension, { shift: r.shiftKey ? [...c, ...l].reduce((e, t) => (t.disabled || e.push(t.dimension), e), []) : null });
|
|
554
648
|
}
|
|
555
649
|
};
|
|
556
|
-
return /* @__PURE__ */ (0,
|
|
650
|
+
return /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [c.map((e) => /* @__PURE__ */ (0, Z.jsx)($, {
|
|
557
651
|
searchTerm: i,
|
|
558
652
|
disabled: !!e.disabled,
|
|
559
653
|
dimensionValue: e.dimension,
|
|
@@ -564,7 +658,7 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
564
658
|
hoverColor: o,
|
|
565
659
|
fontStyle: a.filterSettings?.fontStyle,
|
|
566
660
|
responsive: a.filterSettings?.responsive
|
|
567
|
-
}, `applied-${e.dimension}`)), l.map((e) => /* @__PURE__ */ (0,
|
|
661
|
+
}, `applied-${e.dimension}`)), l.map((e) => /* @__PURE__ */ (0, Z.jsx)($, {
|
|
568
662
|
searchTerm: i,
|
|
569
663
|
disabled: !!e.disabled,
|
|
570
664
|
dimensionValue: e.dimension,
|
|
@@ -576,28 +670,28 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
576
670
|
fontStyle: a.filterSettings?.fontStyle,
|
|
577
671
|
responsive: a.filterSettings?.responsive
|
|
578
672
|
}, `not-applied-${e.dimension}`))] });
|
|
579
|
-
},
|
|
673
|
+
}, Ae = h({ dropdownContainer: {
|
|
580
674
|
overflow: "hidden",
|
|
581
675
|
backdropFilter: "blur(1.25px)",
|
|
582
676
|
zIndex: 1500
|
|
583
|
-
} }),
|
|
584
|
-
let r =
|
|
585
|
-
return /* @__PURE__ */ (0,
|
|
677
|
+
} }), je = ({ children: e, filterStyle: t, isLocked: n }) => {
|
|
678
|
+
let r = Ae(), i = q(t, n);
|
|
679
|
+
return /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
586
680
|
className: r.dropdownContainer,
|
|
587
681
|
style: i,
|
|
588
682
|
children: e
|
|
589
683
|
});
|
|
590
|
-
},
|
|
591
|
-
background:
|
|
684
|
+
}, Me = h({ root: {
|
|
685
|
+
background: o.grey5,
|
|
592
686
|
height: 2,
|
|
593
|
-
"& .MuiLinearProgress-bar": { background:
|
|
594
|
-
} }),
|
|
595
|
-
let t =
|
|
596
|
-
return e ? /* @__PURE__ */ (0,
|
|
687
|
+
"& .MuiLinearProgress-bar": { background: o.mainDarkNavy }
|
|
688
|
+
} }), Ne = ({ loading: e }) => {
|
|
689
|
+
let t = Me();
|
|
690
|
+
return e ? /* @__PURE__ */ (0, Z.jsx)(ae, {
|
|
597
691
|
className: t.root,
|
|
598
692
|
"data-testid": "filter-search-progress"
|
|
599
693
|
}) : null;
|
|
600
|
-
},
|
|
694
|
+
}, Pe = h({
|
|
601
695
|
dropdownButton: (e) => ({
|
|
602
696
|
cursor: "pointer",
|
|
603
697
|
display: "flex",
|
|
@@ -612,23 +706,23 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
612
706
|
outline: "none"
|
|
613
707
|
},
|
|
614
708
|
...e && {
|
|
615
|
-
[
|
|
616
|
-
[
|
|
709
|
+
[N.lg]: { height: "min(28px, 100%)" },
|
|
710
|
+
[N.md]: {
|
|
617
711
|
padding: "0 4px",
|
|
618
712
|
height: "min(24px, 100%)"
|
|
619
713
|
},
|
|
620
|
-
[
|
|
714
|
+
[N.sm]: {
|
|
621
715
|
padding: "0 2px",
|
|
622
716
|
height: "min(20px, 100%)"
|
|
623
717
|
},
|
|
624
|
-
[
|
|
718
|
+
[N.xs]: {
|
|
625
719
|
padding: 0,
|
|
626
720
|
height: "min(16px, 100%)"
|
|
627
721
|
}
|
|
628
722
|
}
|
|
629
723
|
}),
|
|
630
724
|
headerTitlesContainer: {
|
|
631
|
-
color:
|
|
725
|
+
color: o.grey1,
|
|
632
726
|
display: "flex",
|
|
633
727
|
alignItems: "center",
|
|
634
728
|
width: "100%",
|
|
@@ -638,82 +732,92 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
638
732
|
fontWeight: "bold !important",
|
|
639
733
|
flexShrink: 1,
|
|
640
734
|
minWidth: 0,
|
|
641
|
-
...
|
|
642
|
-
...
|
|
735
|
+
...E.overflowEllipsis,
|
|
736
|
+
...I(e)
|
|
643
737
|
}),
|
|
738
|
+
measureTitle: {
|
|
739
|
+
...E.overflowEllipsis,
|
|
740
|
+
minWidth: 0,
|
|
741
|
+
flexShrink: 1,
|
|
742
|
+
whiteSpaceCollapse: "preserve"
|
|
743
|
+
},
|
|
644
744
|
valuesLabel: {
|
|
645
|
-
...
|
|
745
|
+
...E.overflowEllipsis,
|
|
646
746
|
paddingLeft: 4,
|
|
647
|
-
fontWeight: "bold !important"
|
|
747
|
+
fontWeight: "bold !important",
|
|
748
|
+
minWidth: 0,
|
|
749
|
+
flexShrink: 1
|
|
648
750
|
},
|
|
649
751
|
expandIcon: (e) => ({
|
|
650
752
|
display: "flex",
|
|
651
753
|
flexDirection: "row",
|
|
652
754
|
alignItems: "center",
|
|
653
755
|
boxSizing: "border-box",
|
|
654
|
-
...e &&
|
|
756
|
+
...e && M
|
|
655
757
|
}),
|
|
656
|
-
notPart: (e) => ({ ...
|
|
657
|
-
}),
|
|
658
|
-
let d = g()?.astrato ??
|
|
659
|
-
button:
|
|
660
|
-
label:
|
|
661
|
-
}, _ = h.label.color, v = (e) => String(typeof e == "boolean" ? e :
|
|
662
|
-
return /* @__PURE__ */ (0,
|
|
758
|
+
notPart: (e) => ({ ...J(e) })
|
|
759
|
+
}), Fe = ({ dimensionTitle: e, measureTitle: t, isOpen: n, onToggle: r, dimensionFormatter: i, selectedValues: o = [], fontStyle: s, filterStyle: c, responsive: l, isLocked: u }) => {
|
|
760
|
+
let d = g()?.astrato ?? a, f = Pe(l), p = (0, Y.useContext)(X), m = (p.pendingOperator ?? p.appliedOperator) === U.FilterOperator.NotInList, h = {
|
|
761
|
+
button: q(c),
|
|
762
|
+
label: K(s, d)
|
|
763
|
+
}, _ = h.label.color, v = (e) => String(typeof e == "boolean" ? e : i ? C(i, e) : e), y = [...o].sort().slice(0, 15).map(v).join(", "), b = o.length > 0;
|
|
764
|
+
return /* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
663
765
|
role: "button",
|
|
664
766
|
tabIndex: 0,
|
|
665
767
|
"data-testid": "filter-header-dropdown",
|
|
666
768
|
className: f.dropdownButton,
|
|
667
769
|
onClick: (e) => {
|
|
668
|
-
e.currentTarget.blur(),
|
|
770
|
+
e.currentTarget.blur(), r?.();
|
|
669
771
|
},
|
|
670
772
|
onKeyUp: (e) => {
|
|
671
|
-
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(),
|
|
773
|
+
(e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), r?.());
|
|
672
774
|
},
|
|
673
775
|
style: h.button,
|
|
674
|
-
children: [/* @__PURE__ */ (0,
|
|
776
|
+
children: [/* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
675
777
|
className: f.headerTitlesContainer,
|
|
676
778
|
style: { color: _ },
|
|
677
779
|
children: [
|
|
678
|
-
u && /* @__PURE__ */ (0,
|
|
780
|
+
u && /* @__PURE__ */ (0, Z.jsx)(A, {
|
|
679
781
|
fill: "currentColor",
|
|
680
782
|
style: { marginRight: 8 }
|
|
681
783
|
}),
|
|
682
|
-
m && /* @__PURE__ */ (0,
|
|
784
|
+
m && /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
683
785
|
className: f.notPart,
|
|
684
786
|
children: "NOT"
|
|
685
787
|
}),
|
|
686
|
-
/* @__PURE__ */ (0,
|
|
788
|
+
/* @__PURE__ */ (0, Z.jsx)("div", {
|
|
687
789
|
className: f.title,
|
|
688
790
|
style: h.label,
|
|
689
791
|
children: e
|
|
690
792
|
}),
|
|
691
|
-
/* @__PURE__ */ (0,
|
|
793
|
+
/* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
692
794
|
className: f.title,
|
|
693
795
|
style: {
|
|
694
796
|
...h.label,
|
|
695
|
-
display: "flex"
|
|
696
|
-
flexShrink: 99999
|
|
797
|
+
display: "flex"
|
|
697
798
|
},
|
|
698
|
-
children: [
|
|
799
|
+
children: [/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
800
|
+
className: f.measureTitle,
|
|
801
|
+
children: t
|
|
802
|
+
}), b && /* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
699
803
|
className: f.valuesLabel,
|
|
700
|
-
children: [" ",
|
|
804
|
+
children: [" ", y]
|
|
701
805
|
})]
|
|
702
806
|
})
|
|
703
807
|
]
|
|
704
|
-
}), /* @__PURE__ */ (0,
|
|
808
|
+
}), /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
705
809
|
className: f.expandIcon,
|
|
706
810
|
style: { color: _ },
|
|
707
|
-
children: n ? /* @__PURE__ */ (0,
|
|
811
|
+
children: n ? /* @__PURE__ */ (0, Z.jsx)(k, {
|
|
708
812
|
size: 24,
|
|
709
813
|
fill: "currentColor"
|
|
710
|
-
}) : /* @__PURE__ */ (0,
|
|
814
|
+
}) : /* @__PURE__ */ (0, Z.jsx)(j, {
|
|
711
815
|
size: 24,
|
|
712
816
|
fill: "currentColor"
|
|
713
817
|
})
|
|
714
818
|
})]
|
|
715
819
|
});
|
|
716
|
-
},
|
|
820
|
+
}, Ie = h({
|
|
717
821
|
headerListbox: (e) => ({
|
|
718
822
|
height: 36,
|
|
719
823
|
margin: "0 12px 8px",
|
|
@@ -721,15 +825,15 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
721
825
|
alignItems: "center",
|
|
722
826
|
boxSizing: "border-box",
|
|
723
827
|
...e && {
|
|
724
|
-
[
|
|
828
|
+
[N.md]: {
|
|
725
829
|
height: 32,
|
|
726
830
|
margin: "0 12px 6px"
|
|
727
831
|
},
|
|
728
|
-
[
|
|
832
|
+
[N.sm]: {
|
|
729
833
|
height: 28,
|
|
730
834
|
margin: "0 12px 4px"
|
|
731
835
|
},
|
|
732
|
-
[
|
|
836
|
+
[N.xs]: {
|
|
733
837
|
height: 24,
|
|
734
838
|
margin: "0 12px"
|
|
735
839
|
}
|
|
@@ -738,7 +842,7 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
738
842
|
headerListboxSearch: { flexGrow: 1 },
|
|
739
843
|
headerTitlesContainer: {
|
|
740
844
|
minWidth: 0,
|
|
741
|
-
color:
|
|
845
|
+
color: o.grey1,
|
|
742
846
|
cursor: "pointer",
|
|
743
847
|
flexGrow: 1,
|
|
744
848
|
flexShrink: 1,
|
|
@@ -746,12 +850,12 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
746
850
|
alignItems: "center"
|
|
747
851
|
},
|
|
748
852
|
title: (e) => ({
|
|
749
|
-
...
|
|
853
|
+
...E.overflowEllipsis,
|
|
750
854
|
fontWeight: "bold !important",
|
|
751
|
-
...
|
|
855
|
+
...I(e)
|
|
752
856
|
}),
|
|
753
857
|
iconButton: (e) => ({
|
|
754
|
-
...e &&
|
|
858
|
+
...e && M,
|
|
755
859
|
cursor: "pointer",
|
|
756
860
|
display: "inline-flex",
|
|
757
861
|
alignItems: "center",
|
|
@@ -768,19 +872,19 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
768
872
|
"&:hover": { boxShadow: "inset 0 0 0 1px currentColor" },
|
|
769
873
|
"&:focus": { outline: "none" },
|
|
770
874
|
...e && {
|
|
771
|
-
[
|
|
875
|
+
[N.md]: {
|
|
772
876
|
minWidth: 20,
|
|
773
877
|
width: 20,
|
|
774
878
|
height: 20,
|
|
775
879
|
borderRadius: 5
|
|
776
880
|
},
|
|
777
|
-
[
|
|
881
|
+
[N.sm]: {
|
|
778
882
|
minWidth: 16,
|
|
779
883
|
width: 16,
|
|
780
884
|
height: 16,
|
|
781
885
|
borderRadius: 4
|
|
782
886
|
},
|
|
783
|
-
[
|
|
887
|
+
[N.xs]: {
|
|
784
888
|
minWidth: 12,
|
|
785
889
|
width: 12,
|
|
786
890
|
height: 12,
|
|
@@ -788,24 +892,24 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
788
892
|
}
|
|
789
893
|
}
|
|
790
894
|
}),
|
|
791
|
-
notPart: (e) => ({ ...
|
|
792
|
-
}),
|
|
793
|
-
let p =
|
|
794
|
-
(0,
|
|
795
|
-
!
|
|
796
|
-
}, [
|
|
895
|
+
notPart: (e) => ({ ...J(e) })
|
|
896
|
+
}), Le = ({ children: e, dimensionTitle: t, measureTitle: n, searchEnabled: r, searchTerm: i, onSearchChange: o, onApplySearched: s, fontStyle: c, vTheme: l = a, isNotEnabled: u, responsive: d, isLocked: f }) => {
|
|
897
|
+
let p = Ie(d), m = K(c, l), h = m.color, [g, _] = (0, Y.useState)(!1);
|
|
898
|
+
(0, Y.useEffect)(() => {
|
|
899
|
+
!r && i && o("");
|
|
900
|
+
}, [r]);
|
|
797
901
|
let v = () => {
|
|
798
|
-
|
|
799
|
-
},
|
|
902
|
+
r && _(!0);
|
|
903
|
+
}, y = () => {
|
|
800
904
|
o(""), _(!1);
|
|
801
|
-
},
|
|
905
|
+
}, b = () => {
|
|
802
906
|
s();
|
|
803
907
|
};
|
|
804
|
-
return
|
|
908
|
+
return r ? /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
805
909
|
"data-testid": "filter-header-title",
|
|
806
910
|
className: p.headerListbox,
|
|
807
911
|
style: { color: h },
|
|
808
|
-
children: g ? /* @__PURE__ */ (0,
|
|
912
|
+
children: g ? /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [/* @__PURE__ */ (0, Z.jsx)(ie, {
|
|
809
913
|
responsive: d,
|
|
810
914
|
autoFocus: !0,
|
|
811
915
|
className: p.headerListboxSearch,
|
|
@@ -817,104 +921,119 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
817
921
|
color: h,
|
|
818
922
|
borderColor: h
|
|
819
923
|
},
|
|
820
|
-
onPaste:
|
|
924
|
+
onPaste: H(o),
|
|
821
925
|
onKeyDown: (e) => {
|
|
822
926
|
switch (e.key) {
|
|
823
927
|
case "Enter":
|
|
824
|
-
|
|
928
|
+
b();
|
|
825
929
|
break;
|
|
826
930
|
case "Escape":
|
|
827
|
-
|
|
931
|
+
y(), o("");
|
|
828
932
|
break;
|
|
829
933
|
}
|
|
830
934
|
},
|
|
831
|
-
value:
|
|
832
|
-
}), e] }) : /* @__PURE__ */ (0,
|
|
833
|
-
/* @__PURE__ */ (0,
|
|
935
|
+
value: i
|
|
936
|
+
}), e] }) : /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [
|
|
937
|
+
/* @__PURE__ */ (0, Z.jsx)("button", {
|
|
834
938
|
"data-testid": "filter-header-show-search-button",
|
|
835
939
|
onClick: v,
|
|
836
940
|
className: p.iconButton,
|
|
837
941
|
style: { marginRight: 8 },
|
|
838
|
-
children: /* @__PURE__ */ (0,
|
|
942
|
+
children: /* @__PURE__ */ (0, Z.jsx)(w, {
|
|
839
943
|
fill: "currentColor",
|
|
840
944
|
size: 20
|
|
841
945
|
})
|
|
842
946
|
}),
|
|
843
|
-
f && /* @__PURE__ */ (0,
|
|
947
|
+
f && /* @__PURE__ */ (0, Z.jsx)(A, {
|
|
844
948
|
fill: "currentColor",
|
|
845
949
|
style: { marginRight: 8 }
|
|
846
950
|
}),
|
|
847
|
-
/* @__PURE__ */ (0,
|
|
951
|
+
/* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
848
952
|
onClick: v,
|
|
849
953
|
className: p.headerTitlesContainer,
|
|
850
954
|
children: [
|
|
851
|
-
u && /* @__PURE__ */ (0,
|
|
955
|
+
u && /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
852
956
|
className: p.notPart,
|
|
853
957
|
children: "NOT"
|
|
854
958
|
}),
|
|
855
|
-
/* @__PURE__ */ (0,
|
|
959
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
856
960
|
className: p.title,
|
|
857
961
|
style: m,
|
|
858
962
|
children: t
|
|
859
963
|
}),
|
|
860
|
-
/* @__PURE__ */ (0,
|
|
964
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
861
965
|
className: p.title,
|
|
862
|
-
style:
|
|
966
|
+
style: {
|
|
967
|
+
...m,
|
|
968
|
+
whiteSpaceCollapse: "preserve"
|
|
969
|
+
},
|
|
863
970
|
children: n
|
|
864
971
|
})
|
|
865
972
|
]
|
|
866
973
|
}),
|
|
867
974
|
e
|
|
868
975
|
] })
|
|
869
|
-
}) : /* @__PURE__ */ (0,
|
|
976
|
+
}) : /* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
870
977
|
"data-testid": "filter-header-title",
|
|
871
978
|
className: p.headerListbox,
|
|
872
979
|
style: { color: h },
|
|
873
|
-
children: [/* @__PURE__ */ (0,
|
|
980
|
+
children: [/* @__PURE__ */ (0, Z.jsxs)("div", {
|
|
874
981
|
className: p.headerTitlesContainer,
|
|
875
982
|
children: [
|
|
876
|
-
u && /* @__PURE__ */ (0,
|
|
983
|
+
u && /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
877
984
|
className: p.notPart,
|
|
878
985
|
children: "NOT"
|
|
879
986
|
}),
|
|
880
|
-
/* @__PURE__ */ (0,
|
|
987
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
881
988
|
className: p.title,
|
|
882
989
|
style: m,
|
|
883
990
|
children: t
|
|
884
991
|
}),
|
|
885
|
-
/* @__PURE__ */ (0,
|
|
992
|
+
/* @__PURE__ */ (0, Z.jsx)("span", {
|
|
886
993
|
className: p.title,
|
|
887
|
-
style:
|
|
994
|
+
style: {
|
|
995
|
+
...m,
|
|
996
|
+
whiteSpaceCollapse: "preserve"
|
|
997
|
+
},
|
|
888
998
|
children: n
|
|
889
999
|
})
|
|
890
1000
|
]
|
|
891
1001
|
}), e]
|
|
892
1002
|
});
|
|
893
|
-
},
|
|
894
|
-
container: {
|
|
1003
|
+
}, Re = h({
|
|
1004
|
+
container: ({ responsive: e, isDropdown: t }) => ({
|
|
895
1005
|
margin: 0,
|
|
896
|
-
padding: 0
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
1006
|
+
padding: 0,
|
|
1007
|
+
...!t && {
|
|
1008
|
+
height: "calc(100% - 44px)",
|
|
1009
|
+
...e && {
|
|
1010
|
+
[N.sm]: { height: "calc(100% - 36px)" },
|
|
1011
|
+
[N.xs]: { height: "calc(100% - 32px)" }
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}),
|
|
1015
|
+
scrollContainer: ({ responsive: e }) => ({
|
|
1016
|
+
..._.propertiesPanel,
|
|
900
1017
|
padding: "0 12px",
|
|
901
1018
|
...e && {
|
|
902
|
-
[
|
|
903
|
-
[
|
|
904
|
-
[
|
|
1019
|
+
[N.md]: { padding: "0 8px" },
|
|
1020
|
+
[N.sm]: { padding: "0 6px" },
|
|
1021
|
+
[N.xs]: { padding: "0 4px" }
|
|
905
1022
|
}
|
|
906
1023
|
})
|
|
907
|
-
}),
|
|
908
|
-
let a =
|
|
909
|
-
|
|
1024
|
+
}), ze = ({ children: e, loadMoreData: t, isDropdown: n = !1, hasSearch: r = !1, responsive: i }) => {
|
|
1025
|
+
let a = Re({
|
|
1026
|
+
responsive: i,
|
|
1027
|
+
isDropdown: n
|
|
1028
|
+
});
|
|
1029
|
+
return /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
910
1030
|
className: a.container,
|
|
911
1031
|
"data-testid": "list-container",
|
|
912
1032
|
style: {
|
|
913
|
-
height: n ? void 0 : "calc(100% - 44px)",
|
|
914
1033
|
paddingTop: n && !r ? 8 : void 0,
|
|
915
1034
|
paddingBottom: n ? 8 : void 0
|
|
916
1035
|
},
|
|
917
|
-
children: /* @__PURE__ */ (0,
|
|
1036
|
+
children: /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
918
1037
|
className: a.scrollContainer,
|
|
919
1038
|
style: {
|
|
920
1039
|
height: n ? void 0 : "100%",
|
|
@@ -922,12 +1041,12 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
922
1041
|
},
|
|
923
1042
|
onScroll: (e) => {
|
|
924
1043
|
let { scrollHeight: n, clientHeight: r, scrollTop: i } = e.currentTarget;
|
|
925
|
-
|
|
1044
|
+
oe(n, r, i) && t();
|
|
926
1045
|
},
|
|
927
1046
|
children: e
|
|
928
1047
|
})
|
|
929
1048
|
});
|
|
930
|
-
},
|
|
1049
|
+
}, Be = h({
|
|
931
1050
|
mainFilterContainer: {
|
|
932
1051
|
width: "100%",
|
|
933
1052
|
height: "100%",
|
|
@@ -935,10 +1054,10 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
935
1054
|
},
|
|
936
1055
|
blurBackground: { backdropFilter: "blur(1.25px)" },
|
|
937
1056
|
noBorder: { border: "none !important" }
|
|
938
|
-
}),
|
|
939
|
-
let a =
|
|
940
|
-
return /* @__PURE__ */ (0,
|
|
941
|
-
className:
|
|
1057
|
+
}), Ve = ({ children: e, noBorder: t, blurBackground: n, filterStyle: r, fontSize: i }) => {
|
|
1058
|
+
let a = Be(), o = q(r);
|
|
1059
|
+
return /* @__PURE__ */ (0, Z.jsx)("div", {
|
|
1060
|
+
className: m({
|
|
942
1061
|
[a.mainFilterContainer]: !0,
|
|
943
1062
|
[a.noBorder]: t,
|
|
944
1063
|
[a.blurBackground]: n
|
|
@@ -950,4 +1069,4 @@ var ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de
|
|
|
950
1069
|
children: e
|
|
951
1070
|
});
|
|
952
1071
|
};
|
|
953
|
-
export {
|
|
1072
|
+
export { ce as _, Ne as a, $ as c, X as d, he as f, ue as g, H as h, Fe as i, De as l, fe as m, ze as n, je as o, me as p, Le as r, ke as s, Ve as t, Q as u, oe as v };
|