@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.
Files changed (149) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/THIRD_PARTY_NOTICES.md +94 -4
  3. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  4. package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
  5. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  6. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  7. package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
  8. package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
  9. package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
  10. package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
  11. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  12. package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
  13. package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
  14. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  15. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  16. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  17. package/chunks/{metadata-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
  18. package/chunks/number.compiler-G-R7y16P.js +53 -0
  19. package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
  20. package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
  21. package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
  22. package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
  23. package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
  24. package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
  25. package/chunks/standalone-0ashe9w1.js +411 -0
  26. package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
  27. package/chunks/standalone-BK0VYU-l.js +463 -0
  28. package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
  29. package/chunks/standalone-BZV5vOwA.js +6 -0
  30. package/chunks/standalone-BhDrWj4p.js +1980 -0
  31. package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
  32. package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
  33. package/chunks/standalone-BwtM31-f.js +2 -0
  34. package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
  35. package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
  36. package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
  37. package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
  38. package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
  39. package/chunks/standalone-DCtRoTWg.js +675 -0
  40. package/chunks/standalone-DUDFTBqL.js +833 -0
  41. package/chunks/standalone-DhZkX9Td.js +2 -0
  42. package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
  43. package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
  44. package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
  45. package/chunks/standalone-_DeX21JJ.js +383 -0
  46. package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
  47. package/chunks/standalone-tDNy-SFH.js +281 -0
  48. package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
  49. package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
  50. package/chunks/table.compiler-tb914oj3.js +222 -0
  51. package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
  52. package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
  53. package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
  54. package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
  55. package/definitions.js +3 -3
  56. package/docs/operations/astrato-app-filter-bar.md +17 -17
  57. package/docs/operations/bar.md +989 -1071
  58. package/docs/operations/combo.md +717 -738
  59. package/docs/operations/date-picker.md +25 -25
  60. package/docs/operations/distribution-gauge.md +471 -607
  61. package/docs/operations/dot.md +787 -879
  62. package/docs/operations/filter.md +139 -163
  63. package/docs/operations/gauge.md +491 -627
  64. package/docs/operations/heatMap.md +834 -916
  65. package/docs/operations/histogram.md +166 -180
  66. package/docs/operations/iframe.md +5 -5
  67. package/docs/operations/image.md +16 -16
  68. package/docs/operations/index.md +12 -12
  69. package/docs/operations/line.md +811 -888
  70. package/docs/operations/number.md +470 -536
  71. package/docs/operations/pie.md +825 -958
  72. package/docs/operations/radar.md +599 -679
  73. package/docs/operations/sankey.md +462 -584
  74. package/docs/operations/scatter.md +823 -929
  75. package/docs/operations/shape.md +34 -34
  76. package/docs/operations/simpleTextObject.md +18 -25
  77. package/docs/operations/slider.md +33 -43
  78. package/docs/operations/table.md +1160 -1150
  79. package/docs/operations/tree.md +354 -361
  80. package/docs/operations/treemap.md +545 -637
  81. package/docs/operations/waterfall.md +369 -379
  82. package/docs/operations/word-cloud.md +512 -583
  83. package/getters.js +3 -3
  84. package/index.js +51 -51
  85. package/metadata.js +3 -3
  86. package/operations.js +7 -7
  87. package/package.json +80 -86
  88. package/src/definitions/index.d.ts +2 -2
  89. package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
  90. package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
  91. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  92. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  93. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  94. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  95. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  96. package/src/definitions/model/definitions/index.d.ts +23 -0
  97. package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
  98. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  99. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  100. package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
  101. package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
  102. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  103. package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
  104. package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
  105. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  106. package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
  107. package/chunks/Radio-Ciu-F4CU.js +0 -957
  108. package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
  109. package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
  110. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
  111. package/chunks/bar.compiler-oqaPzIut.js +0 -370
  112. package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
  113. package/chunks/event-bus-KiSiCJrC.js +0 -2683
  114. package/chunks/filter.compiler-CuLtc_02.js +0 -60
  115. package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
  116. package/chunks/interfaces-VUY4_yVO.js +0 -8742
  117. package/chunks/line-settings-DfYTUyPz.js +0 -4
  118. package/chunks/line.compiler-BpA_6Tc7.js +0 -188
  119. package/chunks/number.compiler-DbkWcG4S.js +0 -44
  120. package/chunks/pie-uv42Eqal.js +0 -10
  121. package/chunks/src-Dun_jXtz.js +0 -10295
  122. package/chunks/standalone-87YV_m9n.js +0 -687
  123. package/chunks/standalone-BLVAWLNJ.js +0 -385
  124. package/chunks/standalone-BPomtAVs.js +0 -2
  125. package/chunks/standalone-BXyBcUOQ.js +0 -2
  126. package/chunks/standalone-BllF4rDp.js +0 -383
  127. package/chunks/standalone-BqWyrnZI.js +0 -281
  128. package/chunks/standalone-DQxxNwF8.js +0 -675
  129. package/chunks/standalone-DS9T0FZ-.js +0 -830
  130. package/chunks/standalone-DzixzZAL.js +0 -411
  131. package/chunks/standalone-QJ1kKMnO.js +0 -6
  132. package/chunks/table.compiler-BrXkm4Fz.js +0 -213
  133. package/chunks/toInteger-DVZr-D1j.js +0 -11
  134. package/chunks/treemap-x_zmJoG7.js +0 -23
  135. package/chunks/types-dVVCsDWD.js +0 -4
  136. package/chunks/view-CLqWMV7Z.js +0 -156
  137. package/src/definitions/shared/index.d.ts +0 -5
  138. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
  139. package/src/definitions/shared/lib/registry/index.d.ts +0 -3
  140. package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
  141. package/src/definitions/shared/lib/types/index.d.ts +0 -3
  142. package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
  143. package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
  144. package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
  145. package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
  146. package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
  147. package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
  148. /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
  149. /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 { Oa as t, Sr as n, Ta as r, Wn as i, Xr as a, Yn as o, ba as s, ds as c, fa as l, n as u, qo as d, t as f, ui as p, xa as m } from "./interfaces-VUY4_yVO.js";
3
- import { G as h, K as g, Ki as _, Nn as v, Sr as y, bi as b, d as x, gi as S, pi as C, pn as w, pr as T, wi as E, yi as D } from "./utils-Ba9T0TqC.js";
4
- import { _ as O, g as ee, h as te, n as ne, v as k } from "./ui-D1HQNIBy.js";
5
- import { C as A, S as j, w as M } from "./_baseFlatten-DPXPOrea.js";
6
- import { o as N, r as re } from "./Radio-Ciu-F4CU.js";
7
- import { t as ie } from "./LinearProgress-CUZ0D8_t.js";
8
- var P = (e, t, n) => Math.ceil(t) + Math.ceil(n) >= Math.floor(e) && n > 0, F = (e, t) => t && !a(t) ? String(w(t, e)) : e === !0 ? "True" : e === !1 ? "False" : e === null ? "-" : String(e), ae = /* @__PURE__ */ e(ne()), I = (e, t) => {
9
- let [n, r] = (0, ae.default)(e, (e) => t.indexOf(e.dimension) !== -1);
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
- }, oe = (e) => [o(e?.dimensions[0]) ?? (e?.dimensions[0]?.label || e?.dimensions[0]?.dataItem.name || "Sample"), e?.measures[0] && e?.filterSettings?.showMeasureLabel ? ` | ${o(e?.measures[0]) || e?.measures[0]?.label || e?.measures[0]?.dataItem.name}` : null], L = (e) => async (t) => {
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
- }, R = c(), se = (e) => {
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
- }, z = p("getToRangeSelectionHandler", "#cbacba"), ce = (e, t) => async () => {
21
- let n = e.selection.getActiveSelection(R.FilterType.VALUE), r = structuredClone(n), i = r.applied.find((e) => e.field.name === t.name && e.field.view === t.view);
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 = R.FilterOperator.Between;
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 === R.FilterOperator.InList ? R.FilterOperator.Between : R.FilterOperator.NotBetween, (i.values ?? []).length === 0) {
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
- z.error("There is no data engine available");
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
- z.error("There is something wrong with the min/max data");
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, R.FilterType.VALUE), i.operator;
72
+ return i.values = [s, c], e.selection.setNewSelectionState(r, U.FilterType.VALUE), i.operator;
59
73
  }
60
- return i.values = se(i.values), e.selection.setNewSelectionState(r, R.FilterType.VALUE), i.operator;
61
- }, B = p("getToValueSelectionHandler", "#cbacba"), le = i(n()), V = (e, t, n, r, i) => async () => {
62
- let a = n ?? le, o = e.selection.getActiveSelection(R.FilterType.VALUE), s = structuredClone(o), c = s.pending.find((e) => e.field.name === t.name && e.field.view === t.view);
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
- B.warn("There was no selection connected to clicked field!", JSON.stringify(t));
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 = R.FilterOperator.InList, c.values = [], delete c.dynamicDateRange, delete c.dynamicDateCalcRange, e.selection.setNewSelectionState(s, R.FilterType.VALUE), c.operator;
68
- if ([R.FilterOperator.InList, R.FilterOperator.NotInList].includes(c.operator)) return c.operator;
69
- if ([R.FilterOperator.Like, R.FilterOperator.NotLike].includes(c.operator)) {
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 === R.FilterOperator.Like ? R.FilterOperator.InList : R.FilterOperator.NotInList, n?.length) {
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: R.FilterOperator.Like,
92
+ operator: U.FilterOperator.Like,
79
93
  values: n
80
94
  }]
81
95
  }, o = e.engine;
82
96
  if (!o) {
83
- B.error("There is no data engine available");
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, R.FilterType.VALUE), i?.(c.operator, String(n[0] ?? "")), c.operator;
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, R.FilterType.VALUE), c.operator;
104
+ return e.selection.setNewSelectionState(s, U.FilterType.VALUE), c.operator;
91
105
  }
92
- c.operator = c.operator === R.FilterOperator.Between ? R.FilterOperator.InList : R.FilterOperator.NotInList;
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: R.FilterOperator.Between,
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
- B.error("There is no data engine available");
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(R.AstratoEvents.SHOW_GLOBAL_NOTIFICATION, {
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, R.FilterType.VALUE), c.operator);
114
- }, H = (e, t) => (n) => {
115
- let r = e.selection.getActiveSelection(R.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);
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 = R.FilterOperator.Like;
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 === R.FilterOperator.InList ? (o.operator = R.FilterOperator.Like, o.values = a) : o.operator === R.FilterOperator.NotInList ? (o.operator = R.FilterOperator.NotLike, o.values = a) : (o.operator = o.operator === R.FilterOperator.NotLike ? R.FilterOperator.NotLike : R.FilterOperator.Like, o.values = a.length ? a : o.values), e.selection.setNewSelectionState(i, R.FilterType.VALUE), o.operator;
129
- }, U = (e, t) => ({
130
- fontFamily: m(t, e?.fontFamily) ?? void 0,
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
- }), W = (e) => e === d.Line ? "solid" : "dashed", G = (e, t) => {
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
- ...l,
147
+ ...c,
138
148
  ...e
139
- }, c = "0px";
140
- return i && (c = `${a}px`, t && (c = `${a}px ${a}px 0 0`)), {
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 ${W(o)} ${r}` : "none",
143
- borderRadius: c
152
+ border: i ? `${s}px ${ge(o)} ${r}` : "none",
153
+ borderRadius: l
144
154
  };
145
155
  };
146
- function K(e) {
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 ${t.grey4}`,
163
+ border: `1px solid ${o.grey4}`,
154
164
  borderRadius: 16,
155
165
  display: "flex",
156
166
  marginRight: 4,
157
167
  flexShrink: 0,
158
- backgroundColor: t.mainBrightPink,
159
- color: t.white,
160
- ...u.bold11,
161
- ...u.overflowEllipsis,
162
- "&:hover": { borderColor: t.grey2 },
168
+ backgroundColor: o.mainBrightPink,
169
+ color: o.white,
170
+ ...E.bold11,
171
+ ...E.overflowEllipsis,
172
+ "&:hover": { borderColor: o.grey2 },
163
173
  ...e && {
164
- [M.md]: {
174
+ [N.md]: {
165
175
  height: 20,
166
176
  padding: "2px 6px",
167
- ...u.bold10
177
+ ...E.bold10
168
178
  },
169
- [M.sm]: {
179
+ [N.sm]: {
170
180
  height: 16,
171
181
  padding: "1px 4px",
172
- ...u.normal10
182
+ ...E.normal10
173
183
  },
174
- [M.xs]: {
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 q = /* @__PURE__ */ e(_()), J = (0, q.createContext)({});
184
- q.forwardRef(function(e, t) {
185
- return q.createElement("img", {
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 ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, de = (e, t, n, r, i, a) => {
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 = F(e, n);
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 = F(r, a);
210
+ let t = z(r, a);
201
211
  o += t;
202
212
  }
203
213
  return o;
204
- }, Y = E(), X = h({ iconContainer: {
214
+ }, Z = p(), ye = h({ iconContainer: {
205
215
  width: 16,
206
216
  flexShrink: 0
207
- } }), Z = ({ disabled: e, isApplied: n, isSelected: r, isNot: i, fontColor: a }) => {
208
- let o = X(), s = a ?? (n ? t.mainDarkNavy : void 0);
209
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
210
- className: o.iconContainer,
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: [r && i ? /* @__PURE__ */ (0, Y.jsx)(C, { fill: t.mainBrightPink }) : null, r && !i ? /* @__PURE__ */ (0, Y.jsx)(b, { fill: s }) : null]
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
- }, fe = (e) => {
215
- let { r: t, g: n, b: r, a: i } = ee(e) ? te(e) : k(e), a = (i ?? 1) * .6;
216
- return O({
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
- }, pe = h({
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: t.mainDarkNavy },
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: t.mainDarkNavy,
242
- "& > div": { backgroundColor: t.grey5 }
251
+ color: o.mainDarkNavy,
252
+ "& > div": { backgroundColor: o.grey5 }
243
253
  }
244
254
  },
245
- label: (e) => ({
246
- ...u.normal11,
247
- ...u.overflowEllipsis,
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
- ...j(e)
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: t.grey3 }
266
- }), me = ({ dimensionDisplayValue: e, measuresLabel: n, showLabelProgress: i, isSelected: a, isApplied: o, disabled: s, searchTerm: c, barWidth: l, fontStyle: u, progressColor: d = t.lightBlue, textAlign: f, responsive: p }) => {
267
- let m = pe(p), h = {
268
- ...U(u, g()?.astrato ?? r),
269
- ...f ? {
270
- textAlign: f,
271
- justifyContent: f === "right" ? "flex-end" : f === "center" ? "center" : "flex-start"
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
- }, _ = a || o ? d : fe(d);
274
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
275
- className: v({
276
- [m.labelsContainer]: !0,
277
- [m.progressBarSelectedOrApplied]: a || o
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
- i && /* @__PURE__ */ (0, Y.jsx)("div", {
307
+ n && /* @__PURE__ */ (0, Z.jsx)("div", {
281
308
  style: {
282
- width: `${l * 100}%`,
283
- backgroundColor: _
309
+ width: `${u * 100}%`,
310
+ backgroundColor: x
284
311
  },
285
- className: v({
286
- [m.progressBar]: !0,
287
- [m.rowDisabled]: s
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, Y.jsx)("span", {
292
- style: h,
293
- className: v(m.label, m.dimensionLabel),
318
+ /* @__PURE__ */ (0, Z.jsx)("span", {
319
+ style: b,
320
+ className: m(v.label, v.dimensionLabel),
294
321
  title: e,
295
- children: /* @__PURE__ */ (0, Y.jsx)(N, {
296
- phrase: c ?? "",
322
+ children: /* @__PURE__ */ (0, Z.jsx)(L, {
323
+ phrase: l ?? "",
297
324
  children: e ?? ""
298
325
  })
299
326
  }),
300
- /* @__PURE__ */ (0, Y.jsx)("span", {
301
- style: h,
302
- className: v(m.label, m.measuresLabel),
303
- children: n
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
- }, he = h({
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
- [M.md]: {
346
+ [N.md]: {
320
347
  height: "24px",
321
348
  paddingRight: 6
322
349
  },
323
- [M.sm]: {
324
- height: "20px",
350
+ [N.sm]: {
351
+ height: "16px",
325
352
  paddingRight: 4
326
353
  },
327
- [M.xs]: {
328
- height: "16px",
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: `${t.mainDarkNavy} !important` }
393
+ "& > div > span": { color: `${o.mainDarkNavy} !important` }
338
394
  },
339
- rowDisabled: { "& span": { color: `${t.grey3} !important` } }
340
- }), Q = ({ selected: e, applied: n, disabled: r, hoverColor: i, onSelect: a, showProgressBar: o, searchTerm: s, doneRenderingCallback: c, dimensionValue: l, dimensionFormatter: u, imageValue: d, measure1Value: f, measure1Label: p, measure1Formatter: m, measure2Value: h, measure2Label: g, measure2Formatter: _, maxValue: y, imageFit: b, fontStyle: x, progressBarColor: S, responsive: C }) => {
341
- let w = he(C), T = !!d, E = o && f !== void 0 && !h, D = F(l, u), O = de(f, p, m, h, g, _);
342
- return (0, q.useEffect)(() => {
343
- T || c?.();
344
- }, []), /* @__PURE__ */ (0, Y.jsxs)("div", {
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: a,
348
- "data-testid": `big-list-item-dimension-${l}`,
349
- className: v({
350
- [w.rowWrapper]: !0,
351
- [w.rowHover]: !E,
352
- [w.rowSelected]: !E && e,
353
- [w.rowApplied]: n && !r,
354
- [w.rowDisabled]: r
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": i ?? t.grey5 },
412
+ style: { "--filter-hover-color": r ?? o.grey5 },
357
413
  children: [
358
- T && /* @__PURE__ */ (0, Y.jsx)("img", {
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: d,
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", c?.();
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: `${b ?? "contain"}`
435
+ objectFit: `${w ?? "contain"}`
370
436
  },
371
- "data-testid": `big-list-item-dimension-${l}-image`,
372
- onLoad: c,
437
+ "data-testid": `big-list-item-dimension-${p}-image`,
438
+ onLoad: f,
373
439
  loading: "lazy"
374
440
  }),
375
- /* @__PURE__ */ (0, Y.jsx)(me, {
376
- dimensionDisplayValue: D,
377
- measuresLabel: O,
378
- showLabelProgress: E,
379
- progressColor: S,
380
- isApplied: n,
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
- disabled: r,
383
- searchTerm: s,
384
- barWidth: ue(f, y),
385
- fontStyle: x,
386
- responsive: C
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, Y.jsx)(Z, {
389
- disabled: r,
390
- isApplied: n,
456
+ !s && c ? /* @__PURE__ */ (0, Z.jsx)(be, {
457
+ disabled: n,
458
+ isApplied: t,
391
459
  isSelected: e,
392
- fontColor: x?.fontColor ?? void 0
393
- })
460
+ isNot: A,
461
+ fontColor: T?.fontColor ?? void 0
462
+ }) : null
394
463
  ]
395
464
  });
396
- }, ge = (e) => {
397
- let t = [...e].sort((e, t) => _e(e?.measure1 ?? void 0, t?.measure1 ?? void 0)), n = t.length > 0 ? t[0] : null;
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
- }, _e = (e, t) => {
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
- }, ve = ({ filterValues: e, onItemClick: t, selectedValues: n, appliedValues: r, searchTerm: i, vSpec: a, hoverColor: o }) => {
406
- let s = (0, q.useRef)(e.length), c = x(), l = () => {
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] = I(e, r), g = (e, r) => {
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
- }, _ = ge(e), v = s.current > 0 ? l : void 0;
419
- return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [m.map((e) => /* @__PURE__ */ (0, Y.jsx)(Q, {
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, Y.jsx)(Q, {
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
- }, ye = h({
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
- [M.md]: { height: 24 },
479
- [M.sm]: {
547
+ [N.md]: { height: 24 },
548
+ [N.sm]: {
480
549
  height: 20,
481
550
  padding: "2px 4px"
482
551
  },
483
- [M.xs]: {
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
- ...u.overflowEllipsis
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: `${t.mainDarkNavy} !important`,
575
+ color: `${o.mainDarkNavy} !important`,
506
576
  maxWidth: "calc(100% - 20px)"
507
577
  }
508
578
  },
509
- rowDisabled: { "& span": { color: `${t.grey3} !important` } },
510
- label: (e) => ({ ...j(e) })
511
- }), $ = ({ selected: e, applied: n, disabled: i, hoverColor: a, dimensionValue: o, dimensionFormatter: s, searchTerm: c, onSelect: l, fontStyle: u, responsive: d }) => {
512
- let f = ye(d), p = g()?.astrato ?? r, m = F(o, s), h = (0, q.useContext)(J), _ = (h.pendingOperator ?? h.appliedOperator) === R.FilterOperator.NotInList, y = _ && n && e, b = U({
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: y
515
- }, p);
516
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
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-${o}`,
521
- className: v({
522
- [f.rowWrapper]: !0,
523
- [f.rowWrapperClickable]: !!l,
524
- [f.rowSelected]: e,
525
- [f.rowApplied]: n && !e,
526
- [f.rowDisabled]: i
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": a ?? t.grey5 },
529
- children: [/* @__PURE__ */ (0, Y.jsx)("span", {
530
- className: f.label,
531
- style: b,
532
- children: /* @__PURE__ */ (0, Y.jsx)(N, {
533
- phrase: c ?? "",
534
- children: m ?? ""
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
- }), /* @__PURE__ */ (0, Y.jsx)(Z, {
537
- disabled: i,
538
- isApplied: n,
539
- isSelected: e,
540
- isNot: _,
541
- fontColor: u?.fontColor ?? void 0
542
- })]
636
+ ]
543
637
  });
544
- }, be = ({ filterValues: e, onItemClick: t, selectedValues: n, appliedValues: r, searchTerm: i, vSpec: a, hoverColor: o }) => {
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] = I(e, r), u = (e, r) => {
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, Y.jsxs)(Y.Fragment, { children: [c.map((e) => /* @__PURE__ */ (0, Y.jsx)($, {
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, Y.jsx)($, {
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
- }, xe = h({ dropdownContainer: {
673
+ }, Ae = h({ dropdownContainer: {
580
674
  overflow: "hidden",
581
675
  backdropFilter: "blur(1.25px)",
582
676
  zIndex: 1500
583
- } }), Se = ({ children: e, filterStyle: t, isLocked: n }) => {
584
- let r = xe(), i = G(t, n);
585
- return /* @__PURE__ */ (0, Y.jsx)("div", {
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
- }, Ce = h({ root: {
591
- background: t.grey5,
684
+ }, Me = h({ root: {
685
+ background: o.grey5,
592
686
  height: 2,
593
- "& .MuiLinearProgress-bar": { background: t.mainDarkNavy }
594
- } }), we = ({ loading: e }) => {
595
- let t = Ce();
596
- return e ? /* @__PURE__ */ (0, Y.jsx)(ie, {
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
- }, Te = h({
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
- [M.lg]: { height: "min(28px, 100%)" },
616
- [M.md]: {
709
+ [N.lg]: { height: "min(28px, 100%)" },
710
+ [N.md]: {
617
711
  padding: "0 4px",
618
712
  height: "min(24px, 100%)"
619
713
  },
620
- [M.sm]: {
714
+ [N.sm]: {
621
715
  padding: "0 2px",
622
716
  height: "min(20px, 100%)"
623
717
  },
624
- [M.xs]: {
718
+ [N.xs]: {
625
719
  padding: 0,
626
720
  height: "min(16px, 100%)"
627
721
  }
628
722
  }
629
723
  }),
630
724
  headerTitlesContainer: {
631
- color: t.grey1,
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
- ...u.overflowEllipsis,
642
- ...j(e)
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
- ...u.overflowEllipsis,
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 && A
756
+ ...e && M
655
757
  }),
656
- notPart: (e) => ({ ...K(e) })
657
- }), Ee = ({ dimensionTitle: e, measureTitle: t, isOpen: n, onToggle: i, dimensionFormatter: a, selectedValues: o = [], fontStyle: s, filterStyle: c, responsive: l, isLocked: u }) => {
658
- let d = g()?.astrato ?? r, f = Te(l), p = (0, q.useContext)(J), m = (p.pendingOperator ?? p.appliedOperator) === R.FilterOperator.NotInList, h = {
659
- button: G(c),
660
- label: U(s, d)
661
- }, _ = h.label.color, v = (e) => String(typeof e == "boolean" ? e : a ? w(a, e) : e), b = [...o].sort().slice(0, 15).map(v).join(", "), x = o.length > 0;
662
- return /* @__PURE__ */ (0, Y.jsxs)("div", {
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(), i?.();
770
+ e.currentTarget.blur(), r?.();
669
771
  },
670
772
  onKeyUp: (e) => {
671
- (e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), i?.());
773
+ (e.key === "Enter" || e.key === " ") && (e.stopPropagation(), e.preventDefault(), r?.());
672
774
  },
673
775
  style: h.button,
674
- children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
776
+ children: [/* @__PURE__ */ (0, Z.jsxs)("div", {
675
777
  className: f.headerTitlesContainer,
676
778
  style: { color: _ },
677
779
  children: [
678
- u && /* @__PURE__ */ (0, Y.jsx)(y, {
780
+ u && /* @__PURE__ */ (0, Z.jsx)(A, {
679
781
  fill: "currentColor",
680
782
  style: { marginRight: 8 }
681
783
  }),
682
- m && /* @__PURE__ */ (0, Y.jsx)("div", {
784
+ m && /* @__PURE__ */ (0, Z.jsx)("div", {
683
785
  className: f.notPart,
684
786
  children: "NOT"
685
787
  }),
686
- /* @__PURE__ */ (0, Y.jsx)("div", {
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, Y.jsxs)("div", {
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: [t, x && /* @__PURE__ */ (0, Y.jsxs)("div", {
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: [" ", b]
804
+ children: [" ", y]
701
805
  })]
702
806
  })
703
807
  ]
704
- }), /* @__PURE__ */ (0, Y.jsx)("div", {
808
+ }), /* @__PURE__ */ (0, Z.jsx)("div", {
705
809
  className: f.expandIcon,
706
810
  style: { color: _ },
707
- children: n ? /* @__PURE__ */ (0, Y.jsx)(S, {
811
+ children: n ? /* @__PURE__ */ (0, Z.jsx)(k, {
708
812
  size: 24,
709
813
  fill: "currentColor"
710
- }) : /* @__PURE__ */ (0, Y.jsx)(D, {
814
+ }) : /* @__PURE__ */ (0, Z.jsx)(j, {
711
815
  size: 24,
712
816
  fill: "currentColor"
713
817
  })
714
818
  })]
715
819
  });
716
- }, De = h({
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
- [M.md]: {
828
+ [N.md]: {
725
829
  height: 32,
726
830
  margin: "0 12px 6px"
727
831
  },
728
- [M.sm]: {
832
+ [N.sm]: {
729
833
  height: 28,
730
834
  margin: "0 12px 4px"
731
835
  },
732
- [M.xs]: {
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: t.grey1,
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
- ...u.overflowEllipsis,
853
+ ...E.overflowEllipsis,
750
854
  fontWeight: "bold !important",
751
- ...j(e)
855
+ ...I(e)
752
856
  }),
753
857
  iconButton: (e) => ({
754
- ...e && A,
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
- [M.md]: {
875
+ [N.md]: {
772
876
  minWidth: 20,
773
877
  width: 20,
774
878
  height: 20,
775
879
  borderRadius: 5
776
880
  },
777
- [M.sm]: {
881
+ [N.sm]: {
778
882
  minWidth: 16,
779
883
  width: 16,
780
884
  height: 16,
781
885
  borderRadius: 4
782
886
  },
783
- [M.xs]: {
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) => ({ ...K(e) })
792
- }), Oe = ({ children: e, dimensionTitle: t, measureTitle: n, searchEnabled: i, searchTerm: a, onSearchChange: o, onApplySearched: s, fontStyle: c, vTheme: l = r, isNotEnabled: u, responsive: d, isLocked: f }) => {
793
- let p = De(d), m = U(c, l), h = m.color, [g, _] = (0, q.useState)(!1);
794
- (0, q.useEffect)(() => {
795
- !i && a && o("");
796
- }, [i]);
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
- i && _(!0);
799
- }, b = () => {
902
+ r && _(!0);
903
+ }, y = () => {
800
904
  o(""), _(!1);
801
- }, x = () => {
905
+ }, b = () => {
802
906
  s();
803
907
  };
804
- return i ? /* @__PURE__ */ (0, Y.jsx)("div", {
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, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(re, {
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: L(o),
924
+ onPaste: H(o),
821
925
  onKeyDown: (e) => {
822
926
  switch (e.key) {
823
927
  case "Enter":
824
- x();
928
+ b();
825
929
  break;
826
930
  case "Escape":
827
- b(), o("");
931
+ y(), o("");
828
932
  break;
829
933
  }
830
934
  },
831
- value: a
832
- }), e] }) : /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
833
- /* @__PURE__ */ (0, Y.jsx)("button", {
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, Y.jsx)(T, {
942
+ children: /* @__PURE__ */ (0, Z.jsx)(w, {
839
943
  fill: "currentColor",
840
944
  size: 20
841
945
  })
842
946
  }),
843
- f && /* @__PURE__ */ (0, Y.jsx)(y, {
947
+ f && /* @__PURE__ */ (0, Z.jsx)(A, {
844
948
  fill: "currentColor",
845
949
  style: { marginRight: 8 }
846
950
  }),
847
- /* @__PURE__ */ (0, Y.jsxs)("div", {
951
+ /* @__PURE__ */ (0, Z.jsxs)("div", {
848
952
  onClick: v,
849
953
  className: p.headerTitlesContainer,
850
954
  children: [
851
- u && /* @__PURE__ */ (0, Y.jsx)("div", {
955
+ u && /* @__PURE__ */ (0, Z.jsx)("div", {
852
956
  className: p.notPart,
853
957
  children: "NOT"
854
958
  }),
855
- /* @__PURE__ */ (0, Y.jsx)("span", {
959
+ /* @__PURE__ */ (0, Z.jsx)("span", {
856
960
  className: p.title,
857
961
  style: m,
858
962
  children: t
859
963
  }),
860
- /* @__PURE__ */ (0, Y.jsx)("span", {
964
+ /* @__PURE__ */ (0, Z.jsx)("span", {
861
965
  className: p.title,
862
- style: m,
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, Y.jsxs)("div", {
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, Y.jsxs)("div", {
980
+ children: [/* @__PURE__ */ (0, Z.jsxs)("div", {
874
981
  className: p.headerTitlesContainer,
875
982
  children: [
876
- u && /* @__PURE__ */ (0, Y.jsx)("div", {
983
+ u && /* @__PURE__ */ (0, Z.jsx)("div", {
877
984
  className: p.notPart,
878
985
  children: "NOT"
879
986
  }),
880
- /* @__PURE__ */ (0, Y.jsx)("span", {
987
+ /* @__PURE__ */ (0, Z.jsx)("span", {
881
988
  className: p.title,
882
989
  style: m,
883
990
  children: t
884
991
  }),
885
- /* @__PURE__ */ (0, Y.jsx)("span", {
992
+ /* @__PURE__ */ (0, Z.jsx)("span", {
886
993
  className: p.title,
887
- style: m,
994
+ style: {
995
+ ...m,
996
+ whiteSpaceCollapse: "preserve"
997
+ },
888
998
  children: n
889
999
  })
890
1000
  ]
891
1001
  }), e]
892
1002
  });
893
- }, ke = h({
894
- container: {
1003
+ }, Re = h({
1004
+ container: ({ responsive: e, isDropdown: t }) => ({
895
1005
  margin: 0,
896
- padding: 0
897
- },
898
- scrollContainer: (e) => ({
899
- ...f.propertiesPanel,
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
- [M.md]: { padding: "0 8px" },
903
- [M.sm]: { padding: "0 6px" },
904
- [M.xs]: { padding: "0 4px" }
1019
+ [N.md]: { padding: "0 8px" },
1020
+ [N.sm]: { padding: "0 6px" },
1021
+ [N.xs]: { padding: "0 4px" }
905
1022
  }
906
1023
  })
907
- }), Ae = ({ children: e, loadMoreData: t, isDropdown: n = !1, hasSearch: r = !1, responsive: i }) => {
908
- let a = ke(i);
909
- return /* @__PURE__ */ (0, Y.jsx)("div", {
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, Y.jsx)("div", {
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
- P(n, r, i) && t();
1044
+ oe(n, r, i) && t();
926
1045
  },
927
1046
  children: e
928
1047
  })
929
1048
  });
930
- }, je = h({
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
- }), Me = ({ children: e, noBorder: t, blurBackground: n, filterStyle: r, fontSize: i }) => {
939
- let a = je(), o = G(r);
940
- return /* @__PURE__ */ (0, Y.jsx)("div", {
941
- className: v({
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 { we as a, $ as c, H as d, V as f, P as g, oe as h, Ee as i, ve as l, L as m, Ae as n, Se as o, ce as p, Oe as r, be as s, Me as t, J as u };
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 };