@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,15 +1,15 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Cs as t, Da as n, Gi as r, Ms as i, Xa as a, cl as o, fo as s, mo as c, oa as l, po as u, qi as d, ta as f } from "./visualization-filters-CzvFHE6M.js";
3
- import { $ as p, A as m, An as h, Er as g, G as _, K as v, Kn as y, Mr as b, Pr as x, Sn as S, W as C, X as w, Y as T, Z as E, Zt as D, c as O, ci as k, f as A, h as j, it as M, jt as N, k as P, l as F, m as I, n as L, wt as R, zr as ee } from "./utils-3Igg6xmO.js";
4
- import { s as te } from "./logger-CKRjhSHQ.js";
5
- import { A as z, I as ne, P as re, a as ie, d as B, h as ae, m as oe, u as se } from "./MenuOption-CQpT79AP.js";
6
- import { C as ce, a as le, b as ue, c as de, d as fe, g as pe, h as me, i as he, l as ge, n as _e, o as ve, r as ye, s as be, t as xe, u as Se, v as Ce, y as we } from "./filtering-C1zakrrX.js";
7
- import { _ as Te, a as Ee, c as De, d as V, f as H, g as Oe, i as ke, l as Ae, m as je, o as Me, u as Ne, v as Pe } from "./react-dom-Dgv2azN2.js";
8
- import { a as Fe, i as U, n as Ie } from "./isFocusVisible-CgMP0qkR.js";
9
- import { f as Le, g as Re, l as W, n as ze, p as Be, y as Ve } from "./Title-C-p4ZarD.js";
10
- import { n as He, r as Ue, t as We } from "./CircularProgress-yupH6YWs.js";
2
+ import { Ji as t, Ki as n, Ns as r, Oa as i, Za as a, ho as o, ll as s, mo as c, na as l, po as u, sa as d, ws as f } from "./visualization-filters-D7i6oh1Z.js";
3
+ import { $ as p, A as m, An as h, Er as g, G as _, K as v, Kn as y, Mr as b, Pr as x, Sn as S, W as C, X as w, Y as T, Z as E, Zt as D, c as O, ci as k, f as A, h as j, it as M, jt as N, k as P, l as F, m as I, n as L, wt as R, zr as ee } from "./utils-DganVptf.js";
4
+ import { s as te } from "./logger-DdZpR7xZ.js";
5
+ import { A as z, I as ne, P as re, a as ie, d as B, h as ae, m as oe, u as se } from "./MenuOption-Czc34u4q.js";
6
+ import { C as ce, a as le, b as ue, c as de, d as fe, g as pe, h as me, i as he, l as ge, n as _e, o as ve, r as ye, s as be, t as xe, u as Se, v as Ce, y as we } from "./filtering-8_bFv-jb.js";
7
+ import { _ as Te, a as Ee, c as De, d as V, f as H, g as Oe, i as ke, l as Ae, m as je, o as Me, u as Ne, v as Pe } from "./react-dom-BGP4tbXV.js";
8
+ import { a as Fe, i as U, n as Ie } from "./isFocusVisible-Bu8gGZu5.js";
9
+ import { f as Le, g as Re, l as W, n as ze, p as Be, y as Ve } from "./Title-BgYnaVTR.js";
10
+ import { n as He, r as Ue, t as We } from "./CircularProgress-BFeu06Yb.js";
11
11
  import { d as Ge, f as G, p as Ke } from "./responsive.styles-FItb913l.js";
12
- import { t as qe } from "./Button-CCF851ea.js";
12
+ import { t as qe } from "./Button-Dn3rJrYf.js";
13
13
  function Je(e) {
14
14
  return Pe("MuiCheckbox", e);
15
15
  }
@@ -2857,7 +2857,7 @@ var Zr = V("input", {
2857
2857
  let n = Number(r.includes(t.value)) - Number(r.includes(e.value)), i = Number(e.disabled) - Number(t.disabled);
2858
2858
  return n || i;
2859
2859
  });
2860
- }, hi = ({ filterValues: e, filterDimensionsCount: t, searchTerm: n, isLoading: r = !1, isPreview: i, isFieldLocked: o, hoverColor: s, filterFontSize: c, filterFontColor: l, vSpec: d, dimensionSelectionMethods: f, selectionMode: p }) => {
2860
+ }, hi = ({ filterValues: e, filterDimensionsCount: t, searchTerm: n, isLoading: r = !1, isPreview: i, isFieldLocked: o, hoverColor: s, filterFontSize: l, filterFontColor: u, vSpec: d, dimensionSelectionMethods: f, selectionMode: p }) => {
2861
2861
  let [m, h] = (0, K.useState)([]), g = j(f.map(({ field: e, fieldKey: t }) => e ?? { fieldKey: t })), _ = d.dimensions.filter((e) => e.role === a.FILTER_DIMENSION), v = d.dimensions.find((e) => e.role === a.FILTER_IMAGE) ?? (d.dimensions.every((e) => !e.role) ? d.dimensions[1] : void 0), y = e.reduce((e, t) => typeof t.measure1 == "number" ? e === null ? t.measure1 : Math.max(e, t.measure1) : e, null), S = (0, K.useMemo)(() => {
2862
2862
  let t = /* @__PURE__ */ new Map();
2863
2863
  return e.forEach(({ dimension: e, childDimension: n, dimensionValues: r, disabled: i, image: a, measure1: o, measure2: s }) => {
@@ -2896,7 +2896,7 @@ var Zr = V("input", {
2896
2896
  let w = (e, t) => {
2897
2897
  h(t);
2898
2898
  }, T = f.map((e) => e?.state.pending ?? e?.state.applied ?? []), E = f.map((e) => e?.state.applied ?? []), D = (e, n, r, i = T) => {
2899
- if (p === u.AllLevels && r.some((e, t) => {
2899
+ if (p === c.AllLevels && r.some((e, t) => {
2900
2900
  let n = i[t] ?? [];
2901
2901
  return (f[t]?.operators.pending ?? f[t]?.operators.applied) !== J.FilterOperator.NotInList && n.length > 0 && !n.includes(e.value);
2902
2902
  })) return "none";
@@ -2906,12 +2906,12 @@ var Zr = V("input", {
2906
2906
  }, O = (e) => e.some((e, t) => {
2907
2907
  let n = E[t] ?? [];
2908
2908
  return f[t]?.operators.applied !== J.FilterOperator.NotInList && n.length > 0 && !n.includes(e.value);
2909
- }), k = (e, r, a, l) => {
2910
- let m = `tree-${encodeURIComponent(JSON.stringify(a))}`, h = r < t - 1 && !!_[r]?.expandOnly, b = mi(Array.from(e.children.entries()), r + 1, E), x = b.length > 0, C = O(l), w = D(e, r, l), A = w !== "full", j = p === u.AllLevels, M = /* @__PURE__ */ new Map(), N = (e, t) => {
2909
+ }), k = (e, r, a, u) => {
2910
+ let m = `tree-${encodeURIComponent(JSON.stringify(a))}`, h = r < t - 1 && !!_[r]?.expandOnly, b = mi(Array.from(e.children.entries()), r + 1, E), x = b.length > 0, C = O(u), w = D(e, r, u), A = w !== "full", j = p === c.AllLevels, M = /* @__PURE__ */ new Map(), N = (e, t) => {
2911
2911
  let n = M.get(t) ?? /* @__PURE__ */ new Set();
2912
2912
  n.add(e), M.set(t, n);
2913
2913
  };
2914
- j && A && l.forEach((e, t) => {
2914
+ j && A && u.forEach((e, t) => {
2915
2915
  _[t]?.expandOnly || N(e.value, t);
2916
2916
  });
2917
2917
  let P = (e, n) => {
@@ -2942,7 +2942,7 @@ var Zr = V("input", {
2942
2942
  }
2943
2943
  i.children.forEach((e) => r(e, a + 1, [...o, i]));
2944
2944
  };
2945
- S.forEach(([, e]) => r(e, 0, [])), l.forEach((e, t) => {
2945
+ S.forEach(([, e]) => r(e, 0, [])), u.forEach((e, t) => {
2946
2946
  !_[t]?.expandOnly && !n.get(t)?.has(e.value) && N(e.value, t);
2947
2947
  });
2948
2948
  }
@@ -2973,11 +2973,11 @@ var Zr = V("input", {
2973
2973
  imageFit: v?.imageFit,
2974
2974
  searchTerm: n,
2975
2975
  fontStyle: d.filterSettings?.fontStyle,
2976
- fontSize: c,
2976
+ fontSize: l,
2977
2977
  progressBarColor: d.filterSettings?.filterStyle?.progressBarColor,
2978
2978
  responsive: d?.filterSettings?.responsive
2979
2979
  }),
2980
- children: b.map(([t, n]) => k(n, r + 1, [...a, t], [...l, e]))
2980
+ children: b.map(([t, n]) => k(n, r + 1, [...a, t], [...u, e]))
2981
2981
  }, m);
2982
2982
  };
2983
2983
  return /* @__PURE__ */ (0, q.jsx)(zr, {
@@ -2985,13 +2985,13 @@ var Zr = V("input", {
2985
2985
  itemChildrenIndentation: 0,
2986
2986
  slots: {
2987
2987
  collapseIcon: () => /* @__PURE__ */ (0, q.jsx)(x, {
2988
- size: c,
2989
- fill: l,
2988
+ size: l,
2989
+ fill: u,
2990
2990
  "data-testid": "collapse-icon"
2991
2991
  }),
2992
2992
  expandIcon: () => /* @__PURE__ */ (0, q.jsx)(b, {
2993
- size: c,
2994
- fill: l,
2993
+ size: l,
2994
+ fill: u,
2995
2995
  "data-testid": "expand-icon"
2996
2996
  })
2997
2997
  },
@@ -3002,7 +3002,7 @@ var Zr = V("input", {
3002
3002
  children: mi(S, 0, E).map(([e, t]) => k(t, 0, [e], []))
3003
3003
  });
3004
3004
  }, gi = {
3005
- borderBottom: `1px solid ${n.grey5}`,
3005
+ borderBottom: `1px solid ${i.grey5}`,
3006
3006
  margin: "0 12px",
3007
3007
  width: "calc(100% - 24px)"
3008
3008
  }, _i = {
@@ -3020,8 +3020,8 @@ var Zr = V("input", {
3020
3020
  alignItems: "flex-end",
3021
3021
  pointerEvents: "auto",
3022
3022
  zIndex: 2
3023
- }, yi = ({ vSpec: e, vTheme: i, filterValues: o, isPreview: s = !1, loadMoreData: c, searchTerm: u, setSearchTerm: p, allValuesLoaded: m, isSearching: g = !1, isApplyingFilters: _ = !1 }) => {
3024
- let v = i ?? l, y = D(), [b, x] = (0, K.useState)(u), S = !!e.filterSettings?.defaultNotState, C = e.filterSettings?.selectionMode ?? r.selectionMode, [w, T] = (0, K.useState)(S), [E, k] = pe(e), A = (0, K.useMemo)(() => (0, wt.default)((e) => p(e), 300), [p]), j = o.reduce((e, t) => (t.disabled || e.push(t.dimension), e), []), M = e.dimensions.filter((e) => e.role === a.FILTER_DIMENSION), N = M[0] ?? e.dimensions[0], P = M.length > 1, R = s ? [] : M.length > 0 ? M.map((e, t) => ({
3023
+ }, yi = ({ vSpec: e, vTheme: r, filterValues: o, isPreview: s = !1, loadMoreData: c, searchTerm: u, setSearchTerm: p, allValuesLoaded: m, isSearching: g = !1, isApplyingFilters: _ = !1 }) => {
3024
+ let v = r ?? d, y = D(), [b, x] = (0, K.useState)(u), S = !!e.filterSettings?.defaultNotState, C = e.filterSettings?.selectionMode ?? n.selectionMode, [w, T] = (0, K.useState)(S), [E, k] = pe(e), A = (0, K.useMemo)(() => (0, wt.default)((e) => p(e), 300), [p]), j = o.reduce((e, t) => (t.disabled || e.push(t.dimension), e), []), M = e.dimensions.filter((e) => e.role === a.FILTER_DIMENSION), N = M[0] ?? e.dimensions[0], P = M.length > 1, R = s ? [] : M.length > 0 ? M.map((e, t) => ({
3025
3025
  dataItem: e.dataItem,
3026
3026
  dateLevel: e.dateLevel ?? void 0,
3027
3027
  datePart: e.datePart ?? void 0,
@@ -3034,10 +3034,10 @@ var Zr = V("input", {
3034
3034
  }], { hasImage: ee, hasMeasure: te, searchEnabled: z, quickSelection: ne } = Ct(e), re = e.filterSettings?.filterStyle, { backgroundColor: ie, ...B } = re ?? {}, se = re && {
3035
3035
  ...B,
3036
3036
  ..."backgroundColor" in re ? { backgroundColor: ie ?? void 0 } : {}
3037
- }, ce = e.filterSettings?.filterStyle?.backgroundColor ?? d.backgroundColor, ue = e.filterSettings?.fontStyle?.fontSize ?? d.fontSize, me = f(v, e.filterSettings?.fontStyle?.fontColor), he = oe({
3037
+ }, ce = e.filterSettings?.filterStyle?.backgroundColor ?? t.backgroundColor, ue = e.filterSettings?.fontStyle?.fontSize ?? t.fontSize, me = l(v, e.filterSettings?.fontStyle?.fontColor), he = oe({
3038
3038
  ...ae,
3039
3039
  "--background-color": ce
3040
- })["--background-color-hover"] ?? n.grey3, ve = O(R, {
3040
+ })["--background-color-hover"] ?? i.grey3, ve = O(R, {
3041
3041
  disabled: s,
3042
3042
  state: ne ? J.SelectionState.APPLIED : void 0,
3043
3043
  defaultOperator: w ? J.FilterOperator.NotInList : J.FilterOperator.InList,
@@ -3078,9 +3078,9 @@ var Zr = V("input", {
3078
3078
  children: /* @__PURE__ */ (0, q.jsx)(xe, {
3079
3079
  blurBackground: !0,
3080
3080
  filterStyle: se,
3081
- fontSize: e.filterSettings?.fontStyle?.fontSize ?? d.fontSize,
3081
+ fontSize: e.filterSettings?.fontStyle?.fontSize ?? t.fontSize,
3082
3082
  children: /* @__PURE__ */ (0, q.jsxs)(fe.Provider, {
3083
- value: t({
3083
+ value: f({
3084
3084
  appliedOperator: Oe.applied,
3085
3085
  pendingOperator: Oe.pending
3086
3086
  }),
@@ -3284,11 +3284,11 @@ var xi = C({
3284
3284
  }
3285
3285
  });
3286
3286
  function Si(e) {
3287
- let { children: t, isOpen: r, setIsOpen: i, isPreview: a, vSpec: o, vTheme: s, onSearchChange: c, setLocalSearch: l, allValuesLoaded: u, onSelectAll: f, localSearch: p, searchTerm: m, loadMoreData: g, headerElement: _, filterValues: v, hierarchicalMode: y, filterDimensionsCount: b, dimensionSelectionMethods: x, selectionMode: S, onNotOperatorChange: C, onClick: w, onDeselectAll: T, onClear: E, onSelectExcluded: O, state: k, onLockClick: A, isLocked: j, isSingleSelectField: M = !1, isSearching: N = !1, isApplyingFilters: P = !1 } = e, F = D(), I = xi(o?.filterSettings?.responsive), L = P || N, R = (0, K.useRef)(null);
3287
+ let { children: n, isOpen: r, setIsOpen: a, isPreview: o, vSpec: s, vTheme: c, onSearchChange: l, setLocalSearch: u, allValuesLoaded: d, onSelectAll: f, localSearch: p, searchTerm: m, loadMoreData: g, headerElement: _, filterValues: v, hierarchicalMode: y, filterDimensionsCount: b, dimensionSelectionMethods: x, selectionMode: S, onNotOperatorChange: C, onClick: w, onDeselectAll: T, onClear: E, onSelectExcluded: O, state: k, onLockClick: A, isLocked: j, isSingleSelectField: M = !1, isSearching: N = !1, isApplyingFilters: P = !1 } = e, F = D(), I = xi(s?.filterSettings?.responsive), L = P || N, R = (0, K.useRef)(null);
3288
3288
  (0, K.useEffect)(() => {
3289
3289
  R.current?.toggleAttribute("inert", L);
3290
3290
  }, [L]);
3291
- let { quickSelection: ee, hasMeasure: te, hasImage: ne, searchEnabled: re } = Ct(o), ie = k.pending ?? k.applied ?? [], B = o.filterSettings?.filterStyle, ce;
3291
+ let { quickSelection: ee, hasMeasure: te, hasImage: ne, searchEnabled: re } = Ct(s), ie = k.pending ?? k.applied ?? [], B = s.filterSettings?.filterStyle, ce;
3292
3292
  if (B) {
3293
3293
  let { backgroundColor: e, ...t } = B;
3294
3294
  ce = {
@@ -3296,20 +3296,20 @@ function Si(e) {
3296
3296
  ..."backgroundColor" in B ? { backgroundColor: e ?? void 0 } : {}
3297
3297
  };
3298
3298
  }
3299
- let ue = o.filterSettings?.filterStyle?.borderRadius ?? d.borderRadius, fe = o.filterSettings?.fontStyle?.fontColor ?? s?.fonts?.general?.color ?? n.mainDarkNavy, pe = o.filterSettings?.filterStyle?.backgroundColor ?? d.backgroundColor, he = oe({
3299
+ let ue = s.filterSettings?.filterStyle?.borderRadius ?? t.borderRadius, fe = s.filterSettings?.fontStyle?.fontColor ?? c?.fonts?.general?.color ?? i.mainDarkNavy, pe = s.filterSettings?.filterStyle?.backgroundColor ?? t.backgroundColor, he = oe({
3300
3300
  ...ae,
3301
3301
  "--background-color": pe
3302
- })["--background-color-hover"] ?? n.grey3;
3302
+ })["--background-color-hover"] ?? i.grey3;
3303
3303
  function ye(e) {
3304
3304
  switch (e.key) {
3305
3305
  case "Enter":
3306
- u ? f() : F.daedalus.emitEvent(J.AstratoEvents.SHOW_GLOBAL_NOTIFICATION, {
3306
+ d ? f() : F.daedalus.emitEvent(J.AstratoEvents.SHOW_GLOBAL_NOTIFICATION, {
3307
3307
  type: "warn",
3308
3308
  message: "Cannot select values, because not all of them are loaded!"
3309
3309
  });
3310
3310
  break;
3311
3311
  case "Escape":
3312
- y ? c("") : l("");
3312
+ y ? l("") : u("");
3313
3313
  break;
3314
3314
  }
3315
3315
  }
@@ -3320,12 +3320,12 @@ function Si(e) {
3320
3320
  classes: { popper: I.tooltip },
3321
3321
  slotProps: { popper: { anchorEl: _?.current?.firstElementChild } },
3322
3322
  title: /* @__PURE__ */ (0, q.jsx)(z, {
3323
- onClickAway: () => i(!1),
3323
+ onClickAway: () => a(!1),
3324
3324
  children: /* @__PURE__ */ (0, q.jsx)("div", {
3325
3325
  style: {
3326
3326
  minWidth: _.current?.clientWidth,
3327
3327
  maxWidth: "80vw",
3328
- fontSize: o.filterSettings?.fontStyle?.fontSize ?? d.fontSize
3328
+ fontSize: s.filterSettings?.fontStyle?.fontSize ?? t.fontSize
3329
3329
  },
3330
3330
  children: r && /* @__PURE__ */ (0, q.jsxs)("div", {
3331
3331
  style: { position: "relative" },
@@ -3338,27 +3338,27 @@ function Si(e) {
3338
3338
  filterStyle: ce,
3339
3339
  isLocked: j,
3340
3340
  children: [
3341
- re && !a && /* @__PURE__ */ (0, q.jsxs)("div", {
3341
+ re && !o && /* @__PURE__ */ (0, q.jsxs)("div", {
3342
3342
  className: I.searchWrapper,
3343
3343
  style: { color: fe },
3344
3344
  children: [/* @__PURE__ */ (0, q.jsx)(se, {
3345
3345
  className: I.searchWrapperSearch,
3346
3346
  "data-testid": "filter-search-input",
3347
3347
  onChange: (e) => {
3348
- c(e.target.value);
3348
+ l(e.target.value);
3349
3349
  },
3350
3350
  autoFocus: !j,
3351
- onPaste: me(c),
3351
+ onPaste: me(l),
3352
3352
  onKeyDown: ye,
3353
3353
  style: {
3354
3354
  color: fe,
3355
3355
  borderColor: fe
3356
3356
  },
3357
3357
  value: p,
3358
- responsive: o?.filterSettings?.responsive
3358
+ responsive: s?.filterSettings?.responsive
3359
3359
  }), /* @__PURE__ */ (0, q.jsx)(bi, {
3360
- responsive: o?.filterSettings?.responsive,
3361
- isPreview: a,
3360
+ responsive: s?.filterSettings?.responsive,
3361
+ isPreview: o,
3362
3362
  quickSelection: ee,
3363
3363
  areSelectedValues: !!ie.length,
3364
3364
  state: k,
@@ -3383,30 +3383,30 @@ function Si(e) {
3383
3383
  loadMoreData: g,
3384
3384
  isDropdown: !0,
3385
3385
  hasSearch: re,
3386
- responsive: o?.filterSettings?.responsive,
3387
- children: [u && v.length === 0 && !N && !P ? /* @__PURE__ */ (0, q.jsx)(de, {
3386
+ responsive: s?.filterSettings?.responsive,
3387
+ children: [d && v.length === 0 && !N && !P ? /* @__PURE__ */ (0, q.jsx)(de, {
3388
3388
  applied: !1,
3389
3389
  disabled: !1,
3390
3390
  selected: !1,
3391
3391
  hoverColor: he,
3392
- fontStyle: o.filterSettings?.fontStyle,
3392
+ fontStyle: s.filterSettings?.fontStyle,
3393
3393
  dimensionValue: "No results to display.",
3394
- responsive: o?.filterSettings?.responsive
3394
+ responsive: s?.filterSettings?.responsive
3395
3395
  }) : null, y ? /* @__PURE__ */ (0, q.jsx)(hi, {
3396
3396
  filterValues: v,
3397
3397
  filterDimensionsCount: b,
3398
3398
  searchTerm: m,
3399
3399
  isLoading: N || P,
3400
- isPreview: a,
3400
+ isPreview: o,
3401
3401
  isFieldLocked: j,
3402
3402
  hoverColor: he,
3403
- filterFontSize: o.filterSettings?.fontStyle?.fontSize ?? d.fontSize,
3403
+ filterFontSize: s.filterSettings?.fontStyle?.fontSize ?? t.fontSize,
3404
3404
  filterFontColor: fe,
3405
- vSpec: o,
3405
+ vSpec: s,
3406
3406
  dimensionSelectionMethods: x,
3407
3407
  selectionMode: S
3408
3408
  }) : ne || te ? /* @__PURE__ */ (0, q.jsx)(ge, {
3409
- vSpec: o,
3409
+ vSpec: s,
3410
3410
  filterValues: v,
3411
3411
  hoverColor: he,
3412
3412
  onItemClick: w,
@@ -3414,7 +3414,7 @@ function Si(e) {
3414
3414
  appliedValues: k.applied ?? [],
3415
3415
  searchTerm: m
3416
3416
  }) : /* @__PURE__ */ (0, q.jsx)(be, {
3417
- vSpec: o,
3417
+ vSpec: s,
3418
3418
  filterValues: v,
3419
3419
  hoverColor: he,
3420
3420
  onItemClick: w,
@@ -3436,7 +3436,7 @@ function Si(e) {
3436
3436
  })
3437
3437
  })
3438
3438
  }),
3439
- children: t
3439
+ children: n
3440
3440
  });
3441
3441
  }
3442
3442
  function Ci(e, t) {
@@ -3453,8 +3453,8 @@ function Ci(e, t) {
3453
3453
  var wi = {
3454
3454
  backgroundColor: "transparent",
3455
3455
  borderEnabled: !1
3456
- }, Ti = ({ vSpec: e, filterValues: n, isPreview: i = !1, vTheme: o, loadMoreData: s, searchTerm: c, setSearchTerm: l, allValuesLoaded: u, isSearching: f = !1, isApplyingFilters: p = !1 }) => {
3457
- let m = (0, K.useRef)(null), [h, g] = (0, K.useState)(!1), [_, v] = (0, K.useState)(c), y = e.dimensions[0]?.formatter, b = e.dimensions.filter((e) => e.role === a.FILTER_DIMENSION), x = b.length > 1, S = n.map((e) => e.dimension), [C, w] = pe(e), { quickSelection: T } = Ct(e), E = e.filterSettings?.filterStyle, D;
3456
+ }, Ti = ({ vSpec: e, filterValues: r, isPreview: i = !1, vTheme: o, loadMoreData: s, searchTerm: c, setSearchTerm: l, allValuesLoaded: u, isSearching: d = !1, isApplyingFilters: p = !1 }) => {
3457
+ let m = (0, K.useRef)(null), [h, g] = (0, K.useState)(!1), [_, v] = (0, K.useState)(c), y = e.dimensions[0]?.formatter, b = e.dimensions.filter((e) => e.role === a.FILTER_DIMENSION), x = b.length > 1, S = r.map((e) => e.dimension), [C, w] = pe(e), { quickSelection: T } = Ct(e), E = e.filterSettings?.filterStyle, D;
3458
3458
  if (E) {
3459
3459
  let { backgroundColor: e, ...t } = E;
3460
3460
  D = {
@@ -3466,7 +3466,7 @@ var wi = {
3466
3466
  dataItem: e.dataItem,
3467
3467
  dateLevel: e.dateLevel ?? void 0,
3468
3468
  datePart: e.datePart ?? void 0,
3469
- values: n.map((e) => e.dimensionValues ? e.dimensionValues[t] : [e.dimension, e.childDimension][t]).filter((e) => e !== void 0)
3469
+ values: r.map((e) => e.dimensionValues ? e.dimensionValues[t] : [e.dimension, e.childDimension][t]).filter((e) => e !== void 0)
3470
3470
  })) : [{
3471
3471
  dataItem: e.dimensions[0]?.dataItem,
3472
3472
  dateLevel: e.dimensions[0]?.dateLevel ?? void 0,
@@ -3479,8 +3479,8 @@ var wi = {
3479
3479
  commitHistory: T
3480
3480
  }), j = (0, K.useMemo)(() => (0, wt.default)((e) => l(e), 300), [l]), { onClear: M, onClick: N, onDeselectAll: P, onSelectExcluded: R, onSelectAll: ee, onNotOperatorChange: te, state: z, operators: ne, field: re } = A[0] ?? F, ie = z.pending ?? z.applied ?? [], { isFieldLocked: B = !1, toggleFieldLock: ae } = L(re ?? void 0), oe = I(re ? [re] : []), se = (e) => {
3481
3481
  v(e), j(e);
3482
- }, ce = (0, K.useMemo)(() => B ? n.filter((e) => (z.pending ?? z.applied ?? []).includes(e.dimension)) : n, [
3483
- n,
3482
+ }, ce = (0, K.useMemo)(() => B ? r.filter((e) => (z.pending ?? z.applied ?? []).includes(e.dimension)) : r, [
3483
+ r,
3484
3484
  B,
3485
3485
  z.pending,
3486
3486
  z.applied
@@ -3488,9 +3488,9 @@ var wi = {
3488
3488
  return /* @__PURE__ */ (0, q.jsx)(xe, {
3489
3489
  noBorder: !0,
3490
3490
  filterStyle: wi,
3491
- fontSize: e.filterSettings?.fontStyle?.fontSize ?? d.fontSize,
3491
+ fontSize: e.filterSettings?.fontStyle?.fontSize ?? t.fontSize,
3492
3492
  children: /* @__PURE__ */ (0, q.jsx)(fe.Provider, {
3493
- value: t({
3493
+ value: f({
3494
3494
  appliedOperator: ne.applied,
3495
3495
  pendingOperator: ne.pending
3496
3496
  }),
@@ -3511,7 +3511,7 @@ var wi = {
3511
3511
  hierarchicalMode: x,
3512
3512
  filterDimensionsCount: b.length,
3513
3513
  dimensionSelectionMethods: A,
3514
- selectionMode: e.filterSettings?.selectionMode ?? r.selectionMode,
3514
+ selectionMode: e.filterSettings?.selectionMode ?? n.selectionMode,
3515
3515
  onNotOperatorChange: te,
3516
3516
  onClick: N,
3517
3517
  onDeselectAll: P,
@@ -3522,7 +3522,7 @@ var wi = {
3522
3522
  onLockClick: ae,
3523
3523
  isLocked: B,
3524
3524
  isSingleSelectField: oe,
3525
- isSearching: f,
3525
+ isSearching: d,
3526
3526
  isApplyingFilters: p,
3527
3527
  children: /* @__PURE__ */ (0, q.jsx)("div", {
3528
3528
  ref: m,
@@ -3556,25 +3556,25 @@ var wi = {
3556
3556
  { value: "Value 10" },
3557
3557
  { value: "Value 11" }
3558
3558
  ], Di = ({ vSpec: e, vTheme: t }) => {
3559
- let n = Ei.map((e) => ({ dimension: e.value })), r = {
3559
+ let n = Ei.map((e) => ({ dimension: e.value })), i = {
3560
3560
  ...e,
3561
3561
  dimensions: [{
3562
3562
  dataItem: {
3563
3563
  internalKey: "filter-preview",
3564
- uniqueSignature: i(),
3564
+ uniqueSignature: r(),
3565
3565
  schema: "excel",
3566
3566
  view: "pokemon",
3567
3567
  name: "city",
3568
3568
  dataType: J.FieldType.STRING,
3569
- type: o.Dimension
3569
+ type: s.Dimension
3570
3570
  },
3571
3571
  label: "Dimension"
3572
3572
  }],
3573
3573
  measures: []
3574
3574
  };
3575
- return e.filterSettings?.mode === s.Dropdown ? /* @__PURE__ */ (0, q.jsx)(Ti, {
3575
+ return e.filterSettings?.mode === u.Dropdown ? /* @__PURE__ */ (0, q.jsx)(Ti, {
3576
3576
  allValuesLoaded: !0,
3577
- vSpec: r,
3577
+ vSpec: i,
3578
3578
  vTheme: t,
3579
3579
  filterValues: n,
3580
3580
  isPreview: !0,
@@ -3583,7 +3583,7 @@ var wi = {
3583
3583
  loadMoreData: () => void 0
3584
3584
  }) : /* @__PURE__ */ (0, q.jsx)(yi, {
3585
3585
  allValuesLoaded: !0,
3586
- vSpec: r,
3586
+ vSpec: i,
3587
3587
  vTheme: t,
3588
3588
  filterValues: n,
3589
3589
  isPreview: !0,
@@ -3591,7 +3591,7 @@ var wi = {
3591
3591
  setSearchTerm: () => null,
3592
3592
  loadMoreData: () => void 0
3593
3593
  });
3594
- }, Oi = N(({ vSpec: e, filterValues: t = [], vTheme: n, loadMoreData: r, searchTerm: i, setSearchTerm: a, allValuesLoaded: o, isSearching: l = !1, isApplyingFilters: u = !1 }) => {
3594
+ }, Oi = N(({ vSpec: e, filterValues: t = [], vTheme: n, loadMoreData: r, searchTerm: i, setSearchTerm: a, allValuesLoaded: s, isSearching: c = !1, isApplyingFilters: l = !1 }) => {
3595
3595
  let d = A();
3596
3596
  if ((0, K.useEffect)(() => {
3597
3597
  e?.dimensions?.length < 2 && d();
@@ -3600,8 +3600,8 @@ var wi = {
3600
3600
  ...e,
3601
3601
  filterSettings: {
3602
3602
  ...e.filterSettings,
3603
- mode: e.filterSettings?.mode ?? s.Listbox,
3604
- source: e.filterSettings?.source ?? c.Engine,
3603
+ mode: e.filterSettings?.mode ?? u.Listbox,
3604
+ source: e.filterSettings?.source ?? o.Engine,
3605
3605
  fontStyle: e.filterSettings?.fontStyle ?? {}
3606
3606
  }
3607
3607
  },
@@ -3609,29 +3609,29 @@ var wi = {
3609
3609
  });
3610
3610
  if (e?.dimensions === void 0 || !e?.filterSettings?.mode || !e?.filterSettings?.source) return null;
3611
3611
  switch (e.filterSettings.mode) {
3612
- case s.Image: return null;
3613
- case s.Dropdown: return /* @__PURE__ */ (0, q.jsx)(Ti, {
3614
- allValuesLoaded: o,
3612
+ case u.Image: return null;
3613
+ case u.Dropdown: return /* @__PURE__ */ (0, q.jsx)(Ti, {
3614
+ allValuesLoaded: s,
3615
3615
  vSpec: e,
3616
3616
  vTheme: n,
3617
3617
  filterValues: t,
3618
3618
  loadMoreData: r,
3619
3619
  searchTerm: i,
3620
3620
  setSearchTerm: a,
3621
- isSearching: l,
3622
- isApplyingFilters: u
3621
+ isSearching: c,
3622
+ isApplyingFilters: l
3623
3623
  });
3624
- case s.Listbox:
3624
+ case u.Listbox:
3625
3625
  default: return /* @__PURE__ */ (0, q.jsx)(yi, {
3626
- allValuesLoaded: o,
3626
+ allValuesLoaded: s,
3627
3627
  vSpec: e,
3628
3628
  vTheme: n,
3629
3629
  filterValues: t,
3630
3630
  loadMoreData: r,
3631
3631
  searchTerm: i,
3632
3632
  setSearchTerm: a,
3633
- isSearching: l,
3634
- isApplyingFilters: u
3633
+ isSearching: c,
3634
+ isApplyingFilters: l
3635
3635
  });
3636
3636
  }
3637
3637
  });
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./view-Bzlros43.js";
2
+ export { e as DatePicker };