@astrato-io/visualizations 0.10.0 → 0.10.1

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 (114) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -3
  3. package/VISUALIZATION_DEFINITIONS.md +65 -12
  4. package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
  5. package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
  6. package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
  7. package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
  8. package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
  9. package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
  10. package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
  11. package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
  12. package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
  13. package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
  14. package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
  15. package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
  16. package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
  17. package/chunks/defaults-Dtk7fg3C.js +3 -0
  18. package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
  19. package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
  20. package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
  21. package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
  22. package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
  23. package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
  24. package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
  25. package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
  26. package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  27. package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
  28. package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
  29. package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
  30. package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
  31. package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
  32. package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
  33. package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
  34. package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
  35. package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
  36. package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
  37. package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
  38. package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
  39. package/chunks/standalone-B794g9pE.js +1012 -0
  40. package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
  41. package/chunks/standalone-BA2YXyJS.js +422 -0
  42. package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
  43. package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
  44. package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
  45. package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
  46. package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
  47. package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
  48. package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
  49. package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
  50. package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
  51. package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
  52. package/chunks/standalone-Cl0TSfqC.js +396 -0
  53. package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
  54. package/chunks/standalone-DH0xTEes.js +2 -0
  55. package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
  56. package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
  57. package/chunks/standalone-DcnHjNnC.js +2 -0
  58. package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
  59. package/chunks/standalone-DrHdGkY7.js +762 -0
  60. package/chunks/standalone-c_rROMtx.js +287 -0
  61. package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
  62. package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
  63. package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
  64. package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
  65. package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
  66. package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
  67. package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
  68. package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
  69. package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
  70. package/definitions.js +2 -2
  71. package/docs/operations/astrato-app-filter-bar.md +1 -1
  72. package/docs/operations/bar.md +1 -1
  73. package/docs/operations/combo.md +1 -1
  74. package/docs/operations/date-picker.md +1 -1
  75. package/docs/operations/distribution-gauge.md +1 -1
  76. package/docs/operations/dot.md +1 -1
  77. package/docs/operations/filter.md +1 -1
  78. package/docs/operations/gauge.md +1 -1
  79. package/docs/operations/heatMap.md +1 -1
  80. package/docs/operations/histogram.md +1 -1
  81. package/docs/operations/iframe.md +1 -1
  82. package/docs/operations/image.md +1 -1
  83. package/docs/operations/index.md +2 -2
  84. package/docs/operations/line.md +19 -1
  85. package/docs/operations/number.md +1 -1
  86. package/docs/operations/pie.md +1 -1
  87. package/docs/operations/radar.md +1 -1
  88. package/docs/operations/sankey.md +1 -1
  89. package/docs/operations/scatter.md +1 -1
  90. package/docs/operations/shape.md +1 -1
  91. package/docs/operations/simpleTextObject.md +1 -1
  92. package/docs/operations/slider.md +1 -1
  93. package/docs/operations/table.md +1 -1
  94. package/docs/operations/tree.md +1 -1
  95. package/docs/operations/treemap.md +1 -1
  96. package/docs/operations/waterfall.md +1 -1
  97. package/docs/operations/word-cloud.md +1 -1
  98. package/getters.js +2 -2
  99. package/index.js +54 -54
  100. package/metadata.js +2 -2
  101. package/operations.js +5 -5
  102. package/package.json +67 -67
  103. package/src/definitions/index.d.ts +7 -1
  104. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
  105. package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
  106. package/src/types.d.ts +28 -28
  107. package/chunks/defaults-cyNhn37t.js +0 -3
  108. package/chunks/standalone-BR2JuRIC.js +0 -422
  109. package/chunks/standalone-BwJqDj2Z.js +0 -396
  110. package/chunks/standalone-CRfDOO1x.js +0 -287
  111. package/chunks/standalone-DZDGX3aa.js +0 -518
  112. package/chunks/standalone-DhfgeJIk.js +0 -1012
  113. package/chunks/standalone-KMQPsNsq.js +0 -2
  114. package/chunks/standalone-MBLSvsrY.js +0 -2
@@ -1,10 +1,10 @@
1
- import { r as e } from "./visualization-filters-CzvFHE6M.js";
2
- import { G as t, O as n, T as r, d as i, g as a, h as o, t as s, u as c, v as l } from "./shared-UitWpq1J.js";
3
- import { Ap as u, km as d } from "./handlers-ZviIUC-j.js";
4
- import { l as f } from "./operations-DZoY50VX.js";
1
+ import { r as e } from "./visualization-filters-D7i6oh1Z.js";
2
+ import { G as t, O as n, T as r, d as i, g as a, h as o, t as s, u as c, v as l } from "./shared-C_2F90xq.js";
3
+ import { Am as u, jp as d } from "./handlers-C6CZ0XJA.js";
4
+ import { l as f } from "./operations-DKQWuLL7.js";
5
5
  e();
6
6
  var p = async (e) => {
7
- let p = u(e);
7
+ let p = d(e);
8
8
  if (p) return {
9
9
  issues: [{
10
10
  code: "invalid_structure",
@@ -18,7 +18,7 @@ var p = async (e) => {
18
18
  issues: r(m.error, e.definition),
19
19
  success: !1
20
20
  };
21
- let h = d.safeParse(e.baseVSpec);
21
+ let h = u.safeParse(e.baseVSpec);
22
22
  if (!h.success) return {
23
23
  issues: [i("invalid_structure", ["baseVSpec"], "Base filter vSpec is invalid.")],
24
24
  success: !1
@@ -65,6 +65,6 @@ var p = async (e) => {
65
65
  }), y = await o(y.state, b, ["presentation"]), "issue" in y ? {
66
66
  issues: [y.issue],
67
67
  success: !1
68
- } : a(y.state, d);
68
+ } : a(y.state, u);
69
69
  };
70
70
  export { p as compileFilterVisualizationDefinition };
@@ -1,12 +1,12 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { $o as n, $t as r, Da as i, Ir as a, Mn as o, Xa as s, Yn as c, in as l, na as u, oa as d, qi as f, ta as p } from "./visualization-filters-CzvFHE6M.js";
3
- import { Fr as m, G as h, Kn as g, Ln as _, Pr as v, Ut as y, W as b, ci as x, f as S, ii as C, jr as w, kr as ee, oi as T, ot as E, rt as D, si as O, sn as k, zr as A } from "./utils-3Igg6xmO.js";
4
- import "./defaults-cyNhn37t.js";
5
- import { s as j } from "./logger-CKRjhSHQ.js";
6
- import { r as M, s as N, u as te } from "./MenuOption-CQpT79AP.js";
2
+ import { $t as n, Ir as r, Ji as i, Mn as a, Oa as o, Yn as s, Za as c, es as l, in as u, na as d, ra as f, sa as p } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { Fr as m, G as h, Kn as g, Ln as _, Pr as v, Ut as y, W as b, ci as x, f as S, ii as C, jr as w, kr as ee, oi as T, ot as E, rt as D, si as O, sn as k, zr as A } from "./utils-DganVptf.js";
4
+ import "./defaults-Dtk7fg3C.js";
5
+ import { s as j } from "./logger-DdZpR7xZ.js";
6
+ import { r as M, s as N, u as te } from "./MenuOption-Czc34u4q.js";
7
7
  import { d as ne, f as P, l as F, u as I } from "./responsive.styles-FItb913l.js";
8
- import { t as re } from "./LinearProgress-CyFjN4px.js";
9
- import { t as ie } from "./_createAggregator-BF4qG9XK.js";
8
+ import { t as re } from "./LinearProgress-ClO6GUjN.js";
9
+ import { t as ie } from "./_createAggregator-BMu9uRax.js";
10
10
  var ae = (e, t, n) => Math.ceil(t) + Math.ceil(n) >= Math.floor(e) && n > 0;
11
11
  function oe(e) {
12
12
  let { theme: t, name: n, props: r } = e;
@@ -277,15 +277,15 @@ function ke(e, t) {
277
277
  o = 0;
278
278
  }, c;
279
279
  }
280
- var q = (e, t) => t && !c(t) ? String(y(t, e)) : e === !0 ? "True" : e === !1 ? "False" : e === null ? "-" : String(e), Ae = /* @__PURE__ */ e(me()), je = (e, t) => {
280
+ var q = (e, t) => t && !s(t) ? String(y(t, e)) : e === !0 ? "True" : e === !1 ? "False" : e === null ? "-" : String(e), Ae = /* @__PURE__ */ e(me()), je = (e, t) => {
281
281
  let [n, r] = (0, Ae.default)(e, (e) => t.indexOf(e.dimension) !== -1);
282
282
  return [n, r];
283
283
  }, Me = (e) => {
284
- let t = e?.dimensions.filter((e) => e.role === s.FILTER_DIMENSION);
284
+ let t = e?.dimensions.filter((e) => e.role === c.FILTER_DIMENSION);
285
285
  return [(t?.length ? t : e?.dimensions.slice(0, 1) ?? []).map(Ne).join(" - ") || "Sample", e?.measures[0] && e?.filterSettings?.showMeasureLabel ? ` | ${Ne(e?.measures[0])}` : null];
286
286
  };
287
287
  function Ne(e) {
288
- return l(e) || e.label || e.dataItem?.name || "";
288
+ return u(e) || e.label || e.dataItem?.name || "";
289
289
  }
290
290
  var Pe = (e) => async (t) => {
291
291
  t.preventDefault(), t.stopPropagation(), e((t.clipboardData.getData("Text") || await navigator.clipboard.readText()).replaceAll("\r\n", " ").replaceAll("\r", " ").replaceAll("\n", " "));
@@ -296,7 +296,7 @@ var Pe = (e) => async (t) => {
296
296
  return e.forEach((e) => {
297
297
  t > e && (t = e), n < e && (n = e);
298
298
  }), [t, n];
299
- }, Ie = a("getToRangeSelectionHandler", "#cbacba"), Le = (e, t) => async () => {
299
+ }, Ie = r("getToRangeSelectionHandler", "#cbacba"), Le = (e, t) => async () => {
300
300
  let n = e.selection.getActiveSelection(z.FilterType.VALUE), r = structuredClone(n), i = r.applied.find((e) => e.field.name === t.name && e.field.view === t.view);
301
301
  if (i ||= r.pending.find((e) => e.field.name === t.name && e.field.view === t.view), !i) {
302
302
  let n = z.FilterOperator.Between;
@@ -333,7 +333,7 @@ var Pe = (e) => async (t) => {
333
333
  return i.values = [s, c], e.selection.setNewSelectionState(r, z.FilterType.VALUE), i.operator;
334
334
  }
335
335
  return i.values = Fe(i.values), e.selection.setNewSelectionState(r, z.FilterType.VALUE), i.operator;
336
- }, J = a("getToValueSelectionHandler", "#cbacba"), Re = r(o()), ze = (e, t, n, r, i) => async () => {
336
+ }, J = r("getToValueSelectionHandler", "#cbacba"), Re = n(a()), ze = (e, t, n, r, i) => async () => {
337
337
  let a = n ?? Re, o = e.selection.getActiveSelection(z.FilterType.VALUE), s = structuredClone(o), c = s.pending.find((e) => e.field.name === t.name && e.field.view === t.view);
338
338
  if (c ||= s.applied.find((e) => e.field.name === t.name && e.field.view === t.view), !c) {
339
339
  J.warn("There was no selection connected to clicked field!", JSON.stringify(t));
@@ -398,20 +398,20 @@ var Pe = (e) => async (t) => {
398
398
  }
399
399
  return o.operator === z.FilterOperator.InList ? (o.operator = z.FilterOperator.Like, o.values = a) : o.operator === z.FilterOperator.NotInList ? (o.operator = z.FilterOperator.NotLike, o.values = a) : (o.operator = o.operator === z.FilterOperator.NotLike ? z.FilterOperator.NotLike : z.FilterOperator.Like, o.values = a.length ? a : o.values), e.selection.setNewSelectionState(i, z.FilterType.VALUE), o.operator;
400
400
  }, Y = (e, t) => ({
401
- fontFamily: u(t, e?.fontFamily) ?? void 0,
401
+ fontFamily: f(t, e?.fontFamily) ?? void 0,
402
402
  fontStyle: e?.italic ? "italic" : "normal",
403
403
  fontWeight: e?.bold ? "bold" : "normal",
404
404
  textDecoration: `${e?.underlined ? "underline" : ""} ${e?.strikethrough ? "line-through" : ""}`,
405
- color: p(t, e?.fontColor)
406
- }), Ve = (e) => e === n.Line ? "solid" : "dashed", X = (e, t) => {
407
- let { backgroundColor: n, borderColor: r, borderEnabled: i, borderRadius: a, borderStyle: o, borderWidth: s } = {
408
- ...f,
405
+ color: d(t, e?.fontColor)
406
+ }), Ve = (e) => e === l.Line ? "solid" : "dashed", X = (e, t) => {
407
+ let { backgroundColor: n, borderColor: r, borderEnabled: a, borderRadius: o, borderStyle: s, borderWidth: c } = {
408
+ ...i,
409
409
  ...e
410
- }, c = "0px";
411
- return i && (c = `${a}px`, t && (c = `${a}px ${a}px 0 0`)), {
410
+ }, l = "0px";
411
+ return a && (l = `${o}px`, t && (l = `${o}px ${o}px 0 0`)), {
412
412
  backgroundColor: n,
413
- border: i ? `${s}px ${Ve(o)} ${r}` : "none",
414
- borderRadius: c
413
+ border: a ? `${c}px ${Ve(s)} ${r}` : "none",
414
+ borderRadius: l
415
415
  };
416
416
  };
417
417
  function He(e) {
@@ -421,16 +421,16 @@ function He(e) {
421
421
  cursor: "pointer",
422
422
  height: 24,
423
423
  padding: "3px 6px",
424
- border: `1px solid ${i.grey4}`,
424
+ border: `1px solid ${o.grey4}`,
425
425
  borderRadius: 16,
426
426
  display: "flex",
427
427
  marginRight: 4,
428
428
  flexShrink: 0,
429
- backgroundColor: i.mainBrightPink,
430
- color: i.white,
429
+ backgroundColor: o.mainBrightPink,
430
+ color: o.white,
431
431
  ...O.bold11,
432
432
  ...O.overflowEllipsis,
433
- "&:hover": { borderColor: i.grey2 },
433
+ "&:hover": { borderColor: o.grey2 },
434
434
  ...e && {
435
435
  [P.md]: {
436
436
  height: 20,
@@ -475,12 +475,12 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
475
475
  }, Ge = b({ iconContainer: {
476
476
  width: 16,
477
477
  flexShrink: 0
478
- } }), Ke = ({ disabled: e, isApplied: t, isSelected: n, isNot: r, fontColor: a }) => {
479
- let o = Ge(), s = a ?? (t ? i.mainDarkNavy : void 0);
478
+ } }), Ke = ({ disabled: e, isApplied: t, isSelected: n, isNot: r, fontColor: i }) => {
479
+ let a = Ge(), s = i ?? (t ? o.mainDarkNavy : void 0);
480
480
  return /* @__PURE__ */ (0, B.jsxs)("div", {
481
- className: o.iconContainer,
481
+ className: a.iconContainer,
482
482
  style: { opacity: e ? .25 : void 0 },
483
- children: [n && r ? /* @__PURE__ */ (0, B.jsx)(ee, { fill: i.mainBrightPink }) : null, n && !r ? /* @__PURE__ */ (0, B.jsx)(m, { fill: s }) : null]
483
+ children: [n && r ? /* @__PURE__ */ (0, B.jsx)(ee, { fill: o.mainBrightPink }) : null, n && !r ? /* @__PURE__ */ (0, B.jsx)(m, { fill: s }) : null]
484
484
  });
485
485
  }, qe = (e) => {
486
486
  let { r: t, g: n, b: r, a: i } = V(e) ? fe(e) : de(e), a = (i ?? 1) * .6;
@@ -498,7 +498,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
498
498
  bottom: 1,
499
499
  top: 1
500
500
  },
501
- progressBarSelectedOrApplied: { color: i.mainDarkNavy },
501
+ progressBarSelectedOrApplied: { color: o.mainDarkNavy },
502
502
  labelsContainer: {
503
503
  display: "flex",
504
504
  flexDirection: "row",
@@ -509,8 +509,8 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
509
509
  overflow: "hidden",
510
510
  position: "relative",
511
511
  "&:hover": {
512
- color: i.mainDarkNavy,
513
- "& > div": { backgroundColor: i.grey5 }
512
+ color: o.mainDarkNavy,
513
+ "& > div": { backgroundColor: o.grey5 }
514
514
  }
515
515
  },
516
516
  label: ({ responsive: e, fontSize: t }) => ({
@@ -544,25 +544,25 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
544
544
  flexGrow: 0,
545
545
  flexShrink: 1
546
546
  },
547
- rowDisabled: { color: i.grey3 }
548
- }), Ye = ({ dimensionDisplayValue: e, measuresLabel: t, showLabelProgress: n, isSelected: r, isApplied: a, strikethrough: o, disabled: s, searchTerm: c, barWidth: l, fontStyle: u, progressColor: f = i.lightBlue, textAlign: p, responsive: m, fontSize: g }) => {
547
+ rowDisabled: { color: o.grey3 }
548
+ }), Ye = ({ dimensionDisplayValue: e, measuresLabel: t, showLabelProgress: n, isSelected: r, isApplied: i, strikethrough: a, disabled: s, searchTerm: c, barWidth: l, fontStyle: u, progressColor: d = o.lightBlue, textAlign: f, responsive: m, fontSize: g }) => {
549
549
  let _ = Je({
550
550
  responsive: m,
551
551
  fontSize: g
552
- }), v = h()?.astrato ?? d, y = {
552
+ }), v = h()?.astrato ?? p, y = {
553
553
  ...Y({
554
554
  ...u,
555
- strikethrough: u?.strikethrough || o
555
+ strikethrough: u?.strikethrough || a
556
556
  }, v),
557
- ...p ? {
558
- textAlign: p,
559
- justifyContent: p === "right" ? "flex-end" : p === "center" ? "center" : "flex-start"
557
+ ...f ? {
558
+ textAlign: f,
559
+ justifyContent: f === "right" ? "flex-end" : f === "center" ? "center" : "flex-start"
560
560
  } : {}
561
- }, b = r || a ? f : qe(f);
561
+ }, b = r || i ? d : qe(d);
562
562
  return /* @__PURE__ */ (0, B.jsxs)("div", {
563
563
  className: k({
564
564
  [_.labelsContainer]: !0,
565
- [_.progressBarSelectedOrApplied]: r || a
565
+ [_.progressBarSelectedOrApplied]: r || i
566
566
  }),
567
567
  children: [
568
568
  n && /* @__PURE__ */ (0, B.jsx)("div", {
@@ -651,17 +651,17 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
651
651
  rowHover: { "&:hover": { backgroundColor: "var(--filter-hover-color)" } },
652
652
  rowApplied: {
653
653
  backgroundColor: "initial",
654
- "& > div > span": { color: `${i.mainDarkNavy} !important` }
654
+ "& > div > span": { color: `${o.mainDarkNavy} !important` }
655
655
  },
656
- rowDisabled: { "& span": { color: `${i.grey3} !important` } }
657
- }), Q = ({ selected: e, applied: t, disabled: n, hoverColor: r, onSelect: a, showProgressBar: o, showCheckbox: s, showSelectionIcon: c = !0, checkboxState: l = "none", fontSize: u, searchTerm: d, doneRenderingCallback: f, dimensionValue: p, dimensionFormatter: m, imageValue: h, measure1Value: g, measure1Label: _, measure1Formatter: v, measure2Value: y, measure2Label: b, measure2Formatter: x, maxValue: S, imageFit: C, fontStyle: w, progressBarColor: ee, responsive: T }) => {
658
- let E = Xe(T), D = (0, L.useContext)(Z), O = (D.pendingOperator ?? D.appliedOperator) === z.FilterOperator.NotInList, A = !!h, j = o && g !== void 0 && !y, M = q(p, m), te = We(g, _, v, y, b, x);
656
+ rowDisabled: { "& span": { color: `${o.grey3} !important` } }
657
+ }), 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: m, imageValue: h, measure1Value: g, measure1Label: _, measure1Formatter: v, measure2Value: y, measure2Label: b, measure2Formatter: x, maxValue: S, imageFit: C, fontStyle: w, progressBarColor: ee, responsive: T }) => {
658
+ let E = Xe(T), D = (0, L.useContext)(Z), O = (D.pendingOperator ?? D.appliedOperator) === z.FilterOperator.NotInList, A = !!h, j = a && g !== void 0 && !y, M = q(p, m), te = We(g, _, v, y, b, x);
659
659
  return (0, L.useEffect)(() => {
660
660
  A || f?.();
661
661
  }, []), /* @__PURE__ */ (0, B.jsxs)("div", {
662
662
  tabIndex: 0,
663
663
  role: "button",
664
- onClick: a,
664
+ onClick: i,
665
665
  "data-testid": `big-list-item-dimension-${p}`,
666
666
  className: k({
667
667
  [E.rowWrapper]: !0,
@@ -670,7 +670,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
670
670
  [E.rowApplied]: t && !n,
671
671
  [E.rowDisabled]: n
672
672
  }),
673
- style: { "--filter-hover-color": r ?? i.grey5 },
673
+ style: { "--filter-hover-color": r ?? o.grey5 },
674
674
  children: [
675
675
  s ? /* @__PURE__ */ (0, B.jsx)("div", {
676
676
  "aria-hidden": !0,
@@ -833,14 +833,14 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
833
833
  rowApplied: {
834
834
  backgroundColor: "initial",
835
835
  "& > span": {
836
- color: `${i.mainDarkNavy} !important`,
836
+ color: `${o.mainDarkNavy} !important`,
837
837
  maxWidth: "calc(100% - 20px)"
838
838
  }
839
839
  },
840
- rowDisabled: { "& span": { color: `${i.grey3} !important` } },
840
+ rowDisabled: { "& span": { color: `${o.grey3} !important` } },
841
841
  label: (e) => ({ ...I(e) })
842
- }), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue: a, dimensionFormatter: o, searchTerm: s, onSelect: c, fontStyle: l, responsive: u, showCheckbox: f, showSelectionIcon: p = !0, checkboxState: m = "none", alignContentStart: g, fontSize: _ }) => {
843
- let v = et(u), y = h()?.astrato ?? d, b = q(a, o), x = (0, L.useContext)(Z), S = (x.pendingOperator ?? x.appliedOperator) === z.FilterOperator.NotInList, C = S && t && e, w = Y({
842
+ }), $ = ({ selected: e, applied: t, disabled: n, hoverColor: r, dimensionValue: i, dimensionFormatter: a, searchTerm: s, onSelect: c, fontStyle: l, responsive: u, showCheckbox: d, showSelectionIcon: f = !0, checkboxState: m = "none", alignContentStart: g, fontSize: _ }) => {
843
+ let v = et(u), y = h()?.astrato ?? p, b = q(i, a), x = (0, L.useContext)(Z), S = (x.pendingOperator ?? x.appliedOperator) === z.FilterOperator.NotInList, C = S && t && e, w = Y({
844
844
  ...l,
845
845
  strikethrough: C
846
846
  }, y);
@@ -848,7 +848,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
848
848
  tabIndex: 0,
849
849
  role: "button",
850
850
  onClick: c,
851
- "data-testid": `small-list-item-dimension-${a}`,
851
+ "data-testid": `small-list-item-dimension-${i}`,
852
852
  className: k({
853
853
  [v.rowWrapper]: !0,
854
854
  [v.rowWrapperClickable]: !!c,
@@ -857,9 +857,9 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
857
857
  [v.rowApplied]: t && !e,
858
858
  [v.rowDisabled]: n
859
859
  }),
860
- style: { "--filter-hover-color": r ?? i.grey5 },
860
+ style: { "--filter-hover-color": r ?? o.grey5 },
861
861
  children: [
862
- f ? /* @__PURE__ */ (0, B.jsx)("div", {
862
+ d ? /* @__PURE__ */ (0, B.jsx)("div", {
863
863
  "aria-hidden": !0,
864
864
  style: {
865
865
  display: "flex",
@@ -887,10 +887,10 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
887
887
  children: b ?? ""
888
888
  })
889
889
  }),
890
- f ? null : /* @__PURE__ */ (0, B.jsx)(Ke, {
890
+ d ? null : /* @__PURE__ */ (0, B.jsx)(Ke, {
891
891
  disabled: n,
892
892
  isApplied: t,
893
- isSelected: p && e,
893
+ isSelected: f && e,
894
894
  isNot: S,
895
895
  fontColor: l?.fontColor ?? void 0
896
896
  })
@@ -943,9 +943,9 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
943
943
  children: e
944
944
  });
945
945
  }, it = b({ root: {
946
- background: i.grey5,
946
+ background: o.grey5,
947
947
  height: 2,
948
- "& .MuiLinearProgress-bar": { background: i.mainDarkNavy }
948
+ "& .MuiLinearProgress-bar": { background: o.mainDarkNavy }
949
949
  } }), at = ({ loading: e }) => {
950
950
  let t = it();
951
951
  return e ? /* @__PURE__ */ (0, B.jsx)(re, {
@@ -983,7 +983,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
983
983
  }
984
984
  }),
985
985
  headerTitlesContainer: {
986
- color: i.grey1,
986
+ color: o.grey1,
987
987
  display: "flex",
988
988
  alignItems: "center",
989
989
  width: "100%",
@@ -1018,7 +1018,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1018
1018
  }),
1019
1019
  notPart: (e) => ({ ...He(e) })
1020
1020
  }), st = ({ dimensionTitle: e, measureTitle: t, isOpen: n, onToggle: r, dimensionFormatter: i, selectedValues: a = [], fontStyle: o, filterStyle: s, responsive: c, isLocked: l }) => {
1021
- let u = h()?.astrato ?? d, f = ot(c), p = (0, L.useContext)(Z), m = (p.pendingOperator ?? p.appliedOperator) === z.FilterOperator.NotInList, _ = {
1021
+ let u = h()?.astrato ?? p, d = ot(c), f = (0, L.useContext)(Z), m = (f.pendingOperator ?? f.appliedOperator) === z.FilterOperator.NotInList, _ = {
1022
1022
  button: X(s),
1023
1023
  label: Y(o, u)
1024
1024
  }, b = _.label.color, x = (e) => String(typeof e == "boolean" ? e : i ? y(i, e) : e), S = [...a].sort().slice(0, 15).map(x).join(", "), C = a.length > 0;
@@ -1026,7 +1026,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1026
1026
  role: "button",
1027
1027
  tabIndex: 0,
1028
1028
  "data-testid": "filter-header-dropdown",
1029
- className: f.dropdownButton,
1029
+ className: d.dropdownButton,
1030
1030
  onClick: (e) => {
1031
1031
  e.currentTarget.blur(), r?.();
1032
1032
  },
@@ -1035,7 +1035,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1035
1035
  },
1036
1036
  style: _.button,
1037
1037
  children: [/* @__PURE__ */ (0, B.jsxs)("div", {
1038
- className: f.headerTitlesContainer,
1038
+ className: d.headerTitlesContainer,
1039
1039
  style: { color: b },
1040
1040
  children: [
1041
1041
  l && /* @__PURE__ */ (0, B.jsx)(g, {
@@ -1043,31 +1043,31 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1043
1043
  style: { marginRight: 8 }
1044
1044
  }),
1045
1045
  m && /* @__PURE__ */ (0, B.jsx)("div", {
1046
- className: f.notPart,
1046
+ className: d.notPart,
1047
1047
  children: "NOT"
1048
1048
  }),
1049
1049
  /* @__PURE__ */ (0, B.jsx)("div", {
1050
- className: f.title,
1050
+ className: d.title,
1051
1051
  style: _.label,
1052
1052
  children: e
1053
1053
  }),
1054
1054
  /* @__PURE__ */ (0, B.jsxs)("div", {
1055
- className: f.title,
1055
+ className: d.title,
1056
1056
  style: {
1057
1057
  ..._.label,
1058
1058
  display: "flex"
1059
1059
  },
1060
1060
  children: [/* @__PURE__ */ (0, B.jsx)("span", {
1061
- className: f.measureTitle,
1061
+ className: d.measureTitle,
1062
1062
  children: t
1063
1063
  }), C && /* @__PURE__ */ (0, B.jsxs)("div", {
1064
- className: f.valuesLabel,
1064
+ className: d.valuesLabel,
1065
1065
  children: [" ", S]
1066
1066
  })]
1067
1067
  })
1068
1068
  ]
1069
1069
  }), /* @__PURE__ */ (0, B.jsx)("div", {
1070
- className: f.expandIcon,
1070
+ className: d.expandIcon,
1071
1071
  style: { color: b },
1072
1072
  children: n ? /* @__PURE__ */ (0, B.jsx)(w, {
1073
1073
  size: 24,
@@ -1103,7 +1103,7 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1103
1103
  headerListboxSearch: { flexGrow: 1 },
1104
1104
  headerTitlesContainer: {
1105
1105
  minWidth: 0,
1106
- color: i.grey1,
1106
+ color: o.grey1,
1107
1107
  cursor: "pointer",
1108
1108
  flexGrow: 1,
1109
1109
  flexShrink: 1,
@@ -1154,8 +1154,8 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1154
1154
  }
1155
1155
  }),
1156
1156
  notPart: (e) => ({ ...He(e) })
1157
- }), lt = ({ children: e, dimensionTitle: t, measureTitle: n, searchEnabled: r, searchTerm: i, onSearchChange: a, onApplySearched: o, fontStyle: s, vTheme: c = d, isNotEnabled: l, responsive: u, isLocked: f }) => {
1158
- let p = ct(u), m = Y(s, c), h = m.color, [v, y] = (0, L.useState)(!1);
1157
+ }), lt = ({ children: e, dimensionTitle: t, measureTitle: n, searchEnabled: r, searchTerm: i, onSearchChange: a, onApplySearched: o, fontStyle: s, vTheme: c = p, isNotEnabled: l, responsive: u, isLocked: d }) => {
1158
+ let f = ct(u), m = Y(s, c), h = m.color, [v, y] = (0, L.useState)(!1);
1159
1159
  (0, L.useEffect)(() => {
1160
1160
  !r && i && a("");
1161
1161
  }, [r]);
@@ -1168,12 +1168,12 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1168
1168
  };
1169
1169
  return r ? /* @__PURE__ */ (0, B.jsx)("div", {
1170
1170
  "data-testid": "filter-header-title",
1171
- className: p.headerListbox,
1171
+ className: f.headerListbox,
1172
1172
  style: { color: h },
1173
1173
  children: v ? /* @__PURE__ */ (0, B.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, B.jsx)(te, {
1174
1174
  responsive: u,
1175
1175
  autoFocus: !0,
1176
- className: p.headerListboxSearch,
1176
+ className: f.headerListboxSearch,
1177
1177
  "data-testid": "filter-search-input",
1178
1178
  onChange: (e) => {
1179
1179
  a(e.target.value);
@@ -1198,32 +1198,32 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1198
1198
  /* @__PURE__ */ (0, B.jsx)("button", {
1199
1199
  "data-testid": "filter-header-show-search-button",
1200
1200
  onClick: b,
1201
- className: p.iconButton,
1201
+ className: f.iconButton,
1202
1202
  style: { marginRight: 8 },
1203
1203
  children: /* @__PURE__ */ (0, B.jsx)(_, {
1204
1204
  fill: "currentColor",
1205
1205
  size: 20
1206
1206
  })
1207
1207
  }),
1208
- f && /* @__PURE__ */ (0, B.jsx)(g, {
1208
+ d && /* @__PURE__ */ (0, B.jsx)(g, {
1209
1209
  fill: "currentColor",
1210
1210
  style: { marginRight: 8 }
1211
1211
  }),
1212
1212
  /* @__PURE__ */ (0, B.jsxs)("div", {
1213
1213
  onClick: b,
1214
- className: p.headerTitlesContainer,
1214
+ className: f.headerTitlesContainer,
1215
1215
  children: [
1216
1216
  l && /* @__PURE__ */ (0, B.jsx)("div", {
1217
- className: p.notPart,
1217
+ className: f.notPart,
1218
1218
  children: "NOT"
1219
1219
  }),
1220
1220
  /* @__PURE__ */ (0, B.jsx)("span", {
1221
- className: p.title,
1221
+ className: f.title,
1222
1222
  style: m,
1223
1223
  children: t
1224
1224
  }),
1225
1225
  /* @__PURE__ */ (0, B.jsx)("span", {
1226
- className: p.title,
1226
+ className: f.title,
1227
1227
  style: {
1228
1228
  ...m,
1229
1229
  whiteSpaceCollapse: "preserve"
@@ -1236,22 +1236,22 @@ var Ue = (e, t) => typeof e == "number" && typeof t == "number" ? e / t : 0, We
1236
1236
  ] })
1237
1237
  }) : /* @__PURE__ */ (0, B.jsxs)("div", {
1238
1238
  "data-testid": "filter-header-title",
1239
- className: p.headerListbox,
1239
+ className: f.headerListbox,
1240
1240
  style: { color: h },
1241
1241
  children: [/* @__PURE__ */ (0, B.jsxs)("div", {
1242
- className: p.headerTitlesContainer,
1242
+ className: f.headerTitlesContainer,
1243
1243
  children: [
1244
1244
  l && /* @__PURE__ */ (0, B.jsx)("div", {
1245
- className: p.notPart,
1245
+ className: f.notPart,
1246
1246
  children: "NOT"
1247
1247
  }),
1248
1248
  /* @__PURE__ */ (0, B.jsx)("span", {
1249
- className: p.title,
1249
+ className: f.title,
1250
1250
  style: m,
1251
1251
  children: t
1252
1252
  }),
1253
1253
  /* @__PURE__ */ (0, B.jsx)("span", {
1254
- className: p.title,
1254
+ className: f.title,
1255
1255
  style: {
1256
1256
  ...m,
1257
1257
  whiteSpaceCollapse: "preserve"