@astrato-io/visualizations 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +307 -378
  3. package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
  4. package/chunks/CircularProgress-DFS-LQb7.js +765 -0
  5. package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
  6. package/chunks/LinearProgress-CjIQfkNA.js +327 -0
  7. package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
  8. package/chunks/Title-CtFw1bVg.js +1804 -0
  9. package/chunks/ToggleButton-Br9HCPCv.js +150 -0
  10. package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
  11. package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
  12. package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
  13. package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
  14. package/chunks/contains-BK-sRXcB.js +21 -0
  15. package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
  16. package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
  17. package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
  18. package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
  19. package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
  20. package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
  21. package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
  22. package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
  23. package/chunks/isFocusVisible-B1_z03UT.js +144 -0
  24. package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
  25. package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
  26. package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
  27. package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
  28. package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
  29. package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
  30. package/chunks/react-dom-BwZT0N3F.js +368 -0
  31. package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
  32. package/chunks/{requirements-Dvd8jqYF.js → requirements-CYpVh65U.js} +52 -52
  33. package/chunks/responsive.styles-FItb913l.js +93 -0
  34. package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
  35. package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
  36. package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
  37. package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
  38. package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
  39. package/chunks/{standalone-vBnBS2YC.js → standalone-BDrQMxLi.js} +98 -98
  40. package/chunks/standalone-BMoJXGYe.js +2 -0
  41. package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
  42. package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
  43. package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
  44. package/chunks/standalone-CMJJIi9v.js +2 -0
  45. package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
  46. package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
  47. package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
  48. package/chunks/standalone-C_Jd4gkj.js +6 -0
  49. package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
  50. package/chunks/standalone-CoQxJ6ov.js +3638 -0
  51. package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
  52. package/chunks/standalone-DBeXQrwH.js +468 -0
  53. package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
  54. package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
  55. package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
  56. package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
  57. package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
  58. package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
  59. package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
  60. package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
  61. package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
  62. package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
  63. package/chunks/useFieldName-mWrD_uk_.js +7 -0
  64. package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
  65. package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
  66. package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
  67. package/chunks/with-html-element-B0Clt4jY.js +15901 -0
  68. package/definitions.js +2 -2
  69. package/docs/operations/astrato-app-filter-bar.md +1 -1
  70. package/docs/operations/bar.md +1 -1
  71. package/docs/operations/combo.md +1 -1
  72. package/docs/operations/date-picker.md +1 -1
  73. package/docs/operations/distribution-gauge.md +1 -1
  74. package/docs/operations/dot.md +1 -1
  75. package/docs/operations/filter.md +1 -1
  76. package/docs/operations/gauge.md +1 -1
  77. package/docs/operations/heatMap.md +1 -1
  78. package/docs/operations/histogram.md +1 -1
  79. package/docs/operations/iframe.md +1 -1
  80. package/docs/operations/image.md +1 -1
  81. package/docs/operations/index.md +2 -2
  82. package/docs/operations/line.md +1 -1
  83. package/docs/operations/number.md +1 -1
  84. package/docs/operations/pie.md +1 -1
  85. package/docs/operations/radar.md +1 -1
  86. package/docs/operations/sankey.md +1 -1
  87. package/docs/operations/scatter.md +1 -1
  88. package/docs/operations/shape.md +1 -1
  89. package/docs/operations/simpleTextObject.md +1 -1
  90. package/docs/operations/slider.md +1 -1
  91. package/docs/operations/table.md +66 -1
  92. package/docs/operations/tree.md +1 -1
  93. package/docs/operations/treemap.md +1 -1
  94. package/docs/operations/waterfall.md +1 -1
  95. package/docs/operations/word-cloud.md +1 -1
  96. package/getters.js +2 -2
  97. package/index.js +74 -68
  98. package/metadata.js +2 -2
  99. package/operations.js +5 -5
  100. package/package.json +67 -66
  101. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
  102. package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
  103. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
  104. package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
  105. package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
  106. package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
  107. package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
  108. package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
  109. package/src/visualization-catalog.d.ts +26 -26
  110. package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
  111. package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
  112. package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
  113. package/chunks/Title-CO5dP1ma.js +0 -1691
  114. package/chunks/ToggleButton-KOBAimC1.js +0 -112
  115. package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
  116. package/chunks/responsive.styles-DSiOGD7u.js +0 -82
  117. package/chunks/standalone-BXKRE_Se.js +0 -468
  118. package/chunks/standalone-BjZp0QMe.js +0 -2
  119. package/chunks/standalone-C8qAelL4.js +0 -2
  120. package/chunks/standalone-DT0wKji7.js +0 -6
  121. package/chunks/standalone-DYQIQH4c.js +0 -2095
  122. package/chunks/useFieldName-Cjn9KCVp.js +0 -7
  123. package/chunks/useSlotProps-DLbQp4lc.js +0 -166
  124. package/chunks/with-html-element-D0uY2zjI.js +0 -7328
  125. /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
@@ -1,32 +1,32 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { C as n, Ds as r, Et as i, Hi as a, S as o, Ss as s, Us as c, Xa as l, _c as u, ga as d, hn as f, mr as p, w as m, ws as h, y as g, zi as _, zr as v } from "./visualization-filters-Cc4KU-l-.js";
3
- import { Ei as y, F as b, N as x, Xt as S, o as C, ri as w } from "./utils-vdmi_2PK.js";
4
- import { mm as T, pm as E } from "./handlers-TOT-7INo.js";
5
- import "./logger-DpQtYQnX.js";
6
- import { Et as ee, F as te, I as ne, Kt as D, Ot as re, _n as O, dn as k, et as ie, gn as A, hn as j, i as ae, in as M, it as oe, ln as N, n as se, nn as ce, st as le, tn as ue, tt as de, un as P, vn as F, xt as fe } from "./escobar-DRhRMYRE.js";
7
- import { _ as I } from "./MenuOption-ByRqhRdX.js";
8
- import { t as pe } from "./coloring-CncX_JRX.js";
9
- import { t as me } from "./set-coloring-datafield-B3uIS1Pe.js";
10
- import { a as he, n as ge } from "./accessors-DemrDevR.js";
11
- function L() {
2
+ import { C as n, Ds as r, Gn as i, Hi as a, Kt as o, S as s, Ss as c, Us as l, Xa as u, _c as d, ga as f, gr as p, w as m, ws as h, y as g, zi as _, zr as v } from "./visualization-filters-mVnsnvLP.js";
3
+ import { F as y, N as b, Ot as x, ei as S, jr as C, s as w } from "./utils-DYYD4Zzf.js";
4
+ import { gm as T, hm as E } from "./handlers-CMbyj5y1.js";
5
+ import "./logger-3lng-wOw.js";
6
+ import { Et as ee, F as te, I as ne, Kt as re, Ot as ie, _n as D, cn as O, en as ae, et as oe, gn as k, hn as A, i as se, it as ce, ln as j, mn as M, n as le, rn as N, st as ue, tn as de, tt as fe, un as P, xt as pe } from "./escobar-C4Nm3eJ7.js";
7
+ import { _ as F } from "./MenuOption-Cb7B7x6z.js";
8
+ import { t as me } from "./coloring-B-Wa8D5P.js";
9
+ import { t as he } from "./set-coloring-datafield-B3uIS1Pe.js";
10
+ import { a as ge, n as _e } from "./accessors-DemrDevR.js";
11
+ function I() {
12
12
  return 0;
13
13
  }
14
- function R(e) {
14
+ function L(e) {
15
15
  return function() {
16
16
  return e;
17
17
  };
18
18
  }
19
- function _e(e) {
19
+ function ve(e) {
20
20
  e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
21
21
  }
22
- function ve(e, t, n, r, i) {
22
+ function ye(e, t, n, r, i) {
23
23
  for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
24
24
  }
25
- function ye(e, t, n, r, i) {
25
+ function be(e, t, n, r, i) {
26
26
  for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
27
27
  }
28
- var be = (1 + Math.sqrt(5)) / 2;
29
- function xe(e, t, n, r, i, a) {
28
+ var xe = (1 + Math.sqrt(5)) / 2;
29
+ function Se(e, t, n, r, i, a) {
30
30
  for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
31
31
  p = i - n, m = a - r;
32
32
  do
@@ -43,22 +43,22 @@ function xe(e, t, n, r, i, a) {
43
43
  value: g,
44
44
  dice: p < m,
45
45
  children: s.slice(u, d)
46
- }), c.dice ? ve(c, n, r, i, h ? r += m * g / h : a) : ye(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
46
+ }), c.dice ? ye(c, n, r, i, h ? r += m * g / h : a) : be(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
47
47
  }
48
48
  return o;
49
49
  }
50
- var Se = (function e(t) {
50
+ var Ce = (function e(t) {
51
51
  function n(e, n, r, i, a) {
52
- xe(t, e, n, r, i, a);
52
+ Se(t, e, n, r, i, a);
53
53
  }
54
54
  return n.ratio = function(t) {
55
55
  return e((t = +t) > 1 ? t : 1);
56
56
  }, n;
57
- })(be);
58
- function Ce() {
59
- var e = Se, t = !1, n = 1, r = 1, i = [0], a = L, o = L, s = L, c = L, l = L;
57
+ })(xe);
58
+ function we() {
59
+ var e = Ce, t = !1, n = 1, r = 1, i = [0], a = I, o = I, s = I, c = I, l = I;
60
60
  function u(e) {
61
- return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(_e), e;
61
+ return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(ve), e;
62
62
  }
63
63
  function d(t) {
64
64
  var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
@@ -69,48 +69,48 @@ function Ce() {
69
69
  }, u.size = function(e) {
70
70
  return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
71
71
  }, u.tile = function(t) {
72
- return arguments.length ? (e = ge(t), u) : e;
72
+ return arguments.length ? (e = _e(t), u) : e;
73
73
  }, u.padding = function(e) {
74
74
  return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
75
75
  }, u.paddingInner = function(e) {
76
- return arguments.length ? (a = typeof e == "function" ? e : R(+e), u) : a;
76
+ return arguments.length ? (a = typeof e == "function" ? e : L(+e), u) : a;
77
77
  }, u.paddingOuter = function(e) {
78
78
  return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
79
79
  }, u.paddingTop = function(e) {
80
- return arguments.length ? (o = typeof e == "function" ? e : R(+e), u) : o;
80
+ return arguments.length ? (o = typeof e == "function" ? e : L(+e), u) : o;
81
81
  }, u.paddingRight = function(e) {
82
- return arguments.length ? (s = typeof e == "function" ? e : R(+e), u) : s;
82
+ return arguments.length ? (s = typeof e == "function" ? e : L(+e), u) : s;
83
83
  }, u.paddingBottom = function(e) {
84
- return arguments.length ? (c = typeof e == "function" ? e : R(+e), u) : c;
84
+ return arguments.length ? (c = typeof e == "function" ? e : L(+e), u) : c;
85
85
  }, u.paddingLeft = function(e) {
86
- return arguments.length ? (l = typeof e == "function" ? e : R(+e), u) : l;
86
+ return arguments.length ? (l = typeof e == "function" ? e : L(+e), u) : l;
87
87
  }, u;
88
88
  }
89
- var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
89
+ var Te = /* @__PURE__ */ e(S()), R = /* @__PURE__ */ function(e) {
90
90
  return e.cells = "key-cells", e.labels = "key-labels", e.selection = "key-selection", e;
91
- }({}), B = /* @__PURE__ */ function(e) {
91
+ }({}), z = /* @__PURE__ */ function(e) {
92
92
  return e.CellValue = "cellValue", e.Color = "color", e;
93
- }({}), V = /* @__PURE__ */ function(e) {
93
+ }({}), B = /* @__PURE__ */ function(e) {
94
94
  return e.MeasureFormatter = "total", e;
95
- }({}), H = /* @__PURE__ */ function(e) {
95
+ }({}), V = /* @__PURE__ */ function(e) {
96
96
  return e.Leaf = "leaf", e.Header = "header", e;
97
- }({}), Te = (e, t, n, r, i, a, o) => {
98
- let s = e.measures.filter(v), l = (e.supportingMeasures ?? []).filter((e) => v(e)), u = c(s[0].dataItem), d = ne(l), f = e.dimensions.filter(v).map((e) => c(e.dataItem)), p = f[f.length - 1], m = f.slice(0, f.length - 1), h = {};
97
+ }({}), Ee = (e, t, n, r, i, a, o) => {
98
+ let s = e.measures.filter(v), c = (e.supportingMeasures ?? []).filter((e) => v(e)), u = l(s[0].dataItem), d = ne(c), f = e.dimensions.filter(v).map((e) => l(e.dataItem)), p = f[f.length - 1], m = f.slice(0, f.length - 1), h = {};
99
99
  m.forEach((e, t) => {
100
100
  h[`dim${t}`] = { field: e };
101
101
  });
102
102
  let g = [{
103
103
  field: p,
104
104
  props: {
105
- [B.CellValue]: { field: u },
105
+ [z.CellValue]: { field: u },
106
106
  ...h,
107
107
  [u]: { field: u },
108
108
  ...d
109
109
  }
110
- }], _ = e.coloring ? re(e, o) : null;
110
+ }], _ = e.coloring ? ie(e, o) : null;
111
111
  _ && (g[0].props = {
112
112
  ...g[0].props,
113
- [B.Color]: { field: _ }
113
+ [z.Color]: { field: _ }
114
114
  });
115
115
  let y = [{
116
116
  key: "coll",
@@ -119,116 +119,116 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
119
119
  return {
120
120
  ...n,
121
121
  collections: y,
122
- formatters: { [V.MeasureFormatter]: e.measures[0].formatter ?? {
122
+ formatters: { [B.MeasureFormatter]: e.measures[0].formatter ?? {
123
123
  type: "excel-format",
124
124
  format: ""
125
125
  } }
126
126
  };
127
- }, U = "treemap-alternates-switcher", W = "treemap-alternates-switcher", Ee = new I(N.fontLight), De = new I(N.fontDark), G = (e) => f(e) || e.label || e.dataItem?.name || "Field", Oe = (e, t, n, r) => {
128
- let i = n ? c(n.dataItem) : void 0;
127
+ }, H = "treemap-alternates-switcher", U = "treemap-alternates-switcher", De = new F(O.fontLight), Oe = new F(O.fontDark), W = (e) => o(e) || e.label || e.dataItem?.name || "Field", ke = (e, t, n, r) => {
128
+ let i = n ? l(n.dataItem) : void 0;
129
129
  return {
130
130
  type: "native",
131
- key: `${W}-interaction`,
131
+ key: `${U}-interaction`,
132
132
  events: { click(a) {
133
133
  let o = this.element.getBoundingClientRect(), s = {
134
134
  x: a.clientX - o.left,
135
135
  y: a.clientY - o.top
136
136
  }, c = this.chart.shapesAt(s, {
137
137
  components: [{
138
- key: W,
138
+ key: U,
139
139
  propagation: "stop"
140
140
  }],
141
141
  propagation: "stop"
142
142
  }).find((e) => e.data?.target === "measure" || e.data?.target === "dimension");
143
143
  if (c?.data?.target === "measure" && n && i) {
144
- r(F.Text, "click", `text-${i}`, a, c, {
145
- dataItemType: u.Measure,
144
+ r(D.Text, "click", `text-${i}`, a, c, {
145
+ dataItemType: d.Measure,
146
146
  dataItemRole: n.role
147
147
  });
148
148
  return;
149
149
  }
150
- c?.data?.target === "dimension" && e && r(F.Text, "click", `text-${e}`, a, c, {
151
- dataItemType: u.Dimension,
150
+ c?.data?.target === "dimension" && e && r(D.Text, "click", `text-${e}`, a, c, {
151
+ dataItemType: d.Dimension,
152
152
  dataItemRole: t
153
153
  });
154
154
  } }
155
155
  };
156
- }, ke = (e, t, n, r, i, a = {}, o, s) => {
157
- let d = e.dimensions.filter(v), f = e.measures.filter(v), m = d[0], h = f[0], g = m ? c(m.dataItem) : void 0;
156
+ }, Ae = (e, t, n, r, a, o = {}, s, c) => {
157
+ let f = e.dimensions.filter(v), p = e.measures.filter(v), m = f[0], h = p[0], g = m ? l(m.dataItem) : void 0;
158
158
  if (!m && !h) return n;
159
- let _ = p(e.dimensions, e.enableAlternate, a.isPrintMode), y = p(e.measures, e.enableAlternate, a.isPrintMode);
159
+ let _ = i(e.dimensions, e.enableAlternate, o.isPrintMode), y = i(e.measures, e.enableAlternate, o.isPrintMode);
160
160
  if (!_ && !y) return n;
161
- let b = a?.isPrintMode ?? !1, x = _ ? d.map((e) => G(e)).join(", ") : void 0, S = y && h ? G(h) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", w = new I(C).betterContrast(new I(t.fonts.general.color), Ee, De).rgb(), T = {
162
- type: U,
163
- key: W,
164
- dimensionDataItemType: g ? u.Dimension : void 0,
161
+ let b = o?.isPrintMode ?? !1, x = _ ? f.map((e) => W(e)).join(", ") : void 0, S = y && h ? W(h) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", w = new F(C).betterContrast(new F(t.fonts.general.color), De, Oe).rgb(), T = {
162
+ type: H,
163
+ key: U,
164
+ dimensionDataItemType: g ? d.Dimension : void 0,
165
165
  dimensionDataItemRole: m?.role,
166
- measureDataItemType: h ? u.Measure : void 0,
166
+ measureDataItemType: h ? d.Measure : void 0,
167
167
  measureDataItemRole: h?.role,
168
168
  layout: {
169
- dock: l.Bottom,
169
+ dock: u.Bottom,
170
170
  displayOrder: 0
171
171
  },
172
172
  settings: {
173
- dimensionLabel: x ? D(x) : void 0,
174
- measureLabel: S ? D(S) : void 0,
173
+ dimensionLabel: x ? re(x) : void 0,
174
+ measureLabel: S ? re(S) : void 0,
175
175
  backgroundColor: C,
176
176
  fontFamily: t.fonts.general.fontFamily ?? void 0,
177
- fontSize: `${N.fieldTitle.fontSize}px`,
177
+ fontSize: `${O.fieldTitle.fontSize}px`,
178
178
  color: w,
179
179
  paddingLeft: 5,
180
180
  paddingRight: 5,
181
181
  paddingVertical: 5,
182
182
  labelGap: 12
183
183
  }
184
- }, E = s && !b ? [Oe(g, m?.role, h, s)] : [];
184
+ }, E = c && !b ? [ke(g, m?.role, h, c)] : [];
185
185
  return {
186
186
  ...n,
187
187
  components: [...n.components, T],
188
188
  interactions: n.interactions ? [...n.interactions, ...E] : [...E]
189
189
  };
190
- }, Ae = /* @__PURE__ */ t(((e, t) => {
191
- var n = m(), r = i();
192
- function a(e, t, i, o, s, c) {
193
- return r(e) && r(t) && (c.set(t, e), n(e, t, void 0, a, c), c.delete(t)), e;
190
+ }, je = /* @__PURE__ */ t(((e, t) => {
191
+ var n = m(), r = p();
192
+ function i(e, t, a, o, s, c) {
193
+ return r(e) && r(t) && (c.set(t, e), n(e, t, void 0, i, c), c.delete(t)), e;
194
194
  }
195
- t.exports = a;
196
- })), K = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
197
- var r = n(), i = o(), a = Ae(), s = g();
195
+ t.exports = i;
196
+ })), G = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
197
+ var r = n(), i = s(), a = je(), o = g();
198
198
  t.exports = i(function(e) {
199
- return e.push(void 0, a), r(s, void 0, e);
199
+ return e.push(void 0, a), r(o, void 0, e);
200
200
  });
201
- })))()), je = () => ({
201
+ })))()), Me = () => ({
202
202
  trigger: [{
203
203
  on: A.Tap,
204
- action: j.Toggle,
204
+ action: M.Toggle,
205
205
  globalPropagation: "stop",
206
206
  propagation: "stop",
207
- contexts: [k.Selection]
207
+ contexts: [P.Selection]
208
208
  }, {
209
209
  on: A.Over,
210
- action: j.Set,
210
+ action: M.Set,
211
211
  globalPropagation: "stop",
212
212
  propagation: "stop",
213
- contexts: [k.Highlight]
213
+ contexts: [P.Highlight]
214
214
  }],
215
215
  consume: [{
216
- context: k.Selection,
216
+ context: P.Selection,
217
217
  data: [""],
218
- mode: O.Or,
218
+ mode: k.Or,
219
219
  style: { inactive: { fill: (e) => {
220
220
  let { fill: t } = e;
221
- return !t || t === "none" || t === "transparent" ? t ?? "none" : ue(ce(t), .25);
221
+ return !t || t === "none" || t === "transparent" ? t ?? "none" : ae(de(t), .25);
222
222
  } } }
223
223
  }]
224
- }), Me = (e, t, n, i, a, o = {}) => {
225
- let s = e.dimensions.filter(v), l = e.measures.filter(v).map((e) => c(e.dataItem)), u = new pe(e, t, a?.[0]?.itemsNotAffectedByFiltering), d = [u.MAIN_FIELD];
224
+ }), Ne = (e, t, n, i, a, o = {}) => {
225
+ let s = e.dimensions.filter(v), c = e.measures.filter(v).map((e) => l(e.dataItem)), u = new me(e, t, a?.[0]?.itemsNotAffectedByFiltering), d = [u.MAIN_FIELD];
226
226
  s.slice(0, s.length - 1).forEach((e, t) => {
227
227
  d.push(`dim${t}`);
228
228
  });
229
- let { labeling: f } = e.treemapSettings, p = (0, K.default)({}, f?.header, T.labeling.header), m = (0, K.default)({}, f?.leaf, T.labeling.leaf), h = {
230
- key: z.cells,
231
- type: F.Treemap,
229
+ let { labeling: f } = e.treemapSettings, p = (0, G.default)({}, f?.header, T.labeling.header), m = (0, G.default)({}, f?.leaf, T.labeling.leaf), h = {
230
+ key: R.cells,
231
+ type: D.Treemap,
232
232
  data: { collection: "coll" },
233
233
  settings: {
234
234
  numDimensions: s.length || 0,
@@ -239,22 +239,22 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
239
239
  headerLabels: {
240
240
  show: p.show,
241
241
  numLevels: p.numLevels,
242
- fontSize: M(p.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax)
242
+ fontSize: N(p.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax)
243
243
  },
244
244
  leafLabels: {
245
245
  show: m.show,
246
- fontSize: M(m.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax),
246
+ fontSize: N(m.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax),
247
247
  showDimension: m.showDimensionValue,
248
248
  showMeasure: m.showMeasureValue,
249
249
  dynamicFontSizeEnabled: m.dynamicFontSizeEnabled
250
250
  },
251
251
  leaf: { fill: u.getColorDefinition({
252
- ref: B.Color,
253
- dataItemId: e.coloring?.type === r.Single ? l[0] : void 0,
252
+ ref: z.Color,
253
+ dataItemId: e.coloring?.type === r.Single ? c[0] : void 0,
254
254
  overwriteSources: d
255
255
  }) }
256
256
  },
257
- brush: o.disable?.brushing === !0 ? void 0 : je(),
257
+ brush: o.disable?.brushing === !0 ? void 0 : Me(),
258
258
  animations: {
259
259
  presetId: "simple-opacity",
260
260
  enabled: !0
@@ -264,10 +264,10 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
264
264
  ...n,
265
265
  components: [...n.components, h]
266
266
  };
267
- }, q = new I(N.fontLight), J = new I(N.fontDark), Y = (e) => e.desc, Ne = (e, t, n) => {
268
- let r = new I(n.fonts.general.color), { showDimensionValue: i, showMeasureValue: a, fontSize: o, dynamicFontSizeEnabled: s, show: c } = t.leaf, l = s ? ({ node: e }) => Y(e).dynamicFontSize ?? void 0 : M(o, void 0, E.labelFontSizeMin, E.labelFontSizeMax);
267
+ }, K = new F(O.fontLight), q = new F(O.fontDark), J = (e) => e.desc, Pe = (e, t, n) => {
268
+ let r = new F(n.fonts.general.color), { showDimensionValue: i, showMeasureValue: a, fontSize: o, dynamicFontSizeEnabled: s, show: c } = t.leaf, l = s ? ({ node: e }) => J(e).dynamicFontSize ?? void 0 : N(o, void 0, E.labelFontSizeMin, E.labelFontSizeMax);
269
269
  return {
270
- component: z.cells,
270
+ component: R.cells,
271
271
  selector: e,
272
272
  strategy: {
273
273
  type: "rows",
@@ -281,35 +281,35 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
281
281
  return e.attrs?.id;
282
282
  },
283
283
  fill({ node: e }) {
284
- return new I(Y(e).background).betterContrast(r, q, J).rgb();
284
+ return new F(J(e).background).betterContrast(r, K, q).rgb();
285
285
  },
286
286
  linkData({ node: e }) {
287
287
  return e.data;
288
288
  },
289
289
  label({ node: e }) {
290
- return Y(e)?.label;
290
+ return J(e)?.label;
291
291
  }
292
292
  } : null, a && c !== !1 ? {
293
293
  id({ node: e }) {
294
294
  return `${e.attrs?.id}::value`;
295
295
  },
296
296
  fill({ node: e }) {
297
- return new I(Y(e).background).betterContrast(r, q, J).rgb();
297
+ return new F(J(e).background).betterContrast(r, K, q).rgb();
298
298
  },
299
299
  linkData({ node: e }) {
300
300
  return e.data;
301
301
  },
302
302
  label({ node: e, formatter: t }) {
303
- return t(V.MeasureFormatter)(Y(e)?.total, void 0, e.data);
303
+ return t(B.MeasureFormatter)(J(e)?.total, void 0, e.data);
304
304
  }
305
305
  } : null].filter((e) => e !== null)
306
306
  }
307
307
  }
308
308
  };
309
- }, X = 128, Pe = (e, t, n) => {
310
- let r = new I(n.fonts.general.color), i = M(t.header.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
309
+ }, Y = 128, Fe = (e, t, n) => {
310
+ let r = new F(n.fonts.general.color), i = N(t.header.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
311
311
  return {
312
- component: z.cells,
312
+ component: R.cells,
313
313
  selector: e,
314
314
  strategy: {
315
315
  type: "rows",
@@ -323,28 +323,28 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
323
323
  return e.attrs?.id;
324
324
  },
325
325
  fill({ node: e }) {
326
- return new I(Y(e).background).betterContrast(r, q, J).rgb();
326
+ return new F(J(e).background).betterContrast(r, K, q).rgb();
327
327
  },
328
328
  linkData({ node: e }) {
329
329
  return e.data;
330
330
  },
331
331
  label({ node: e, formatter: t }) {
332
- let n = Y(e), r = o ? t(V.MeasureFormatter)(n?.total) : void 0;
333
- return [a ? n?.label?.length > X - 1 ? `${n?.label?.substring(0, X - 1).replace(/\s+$/, "")}…` : n?.label : void 0, r].filter(Boolean).join(": ");
332
+ let n = J(e), r = o ? t(B.MeasureFormatter)(n?.total) : void 0;
333
+ return [a ? n?.label?.length > Y - 1 ? `${n?.label?.substring(0, Y - 1).replace(/\s+$/, "")}…` : n?.label : void 0, r].filter(Boolean).join(": ");
334
334
  }
335
335
  }]
336
336
  }
337
337
  }
338
338
  };
339
- }, Fe = (e, t, n, r, i, a = {}) => {
340
- let o = (0, K.default)({}, e.treemapSettings?.labeling, T.labeling), s = {
341
- type: F.Labels,
342
- key: z.labels,
339
+ }, Ie = (e, t, n, r, i, a = {}) => {
340
+ let o = (0, G.default)({}, e.treemapSettings?.labeling, T.labeling), s = {
341
+ type: D.Labels,
342
+ key: R.labels,
343
343
  layout: { displayOrder: 2 },
344
- settings: { sources: [Ne(`.${H.Leaf}`, o, t), Pe(`.${H.Header}`, o, t)] },
344
+ settings: { sources: [Pe(`.${V.Leaf}`, o, t), Fe(`.${V.Header}`, o, t)] },
345
345
  style: { label: "$label" },
346
346
  brush: a.disable?.brushing === !0 ? void 0 : { consume: [{
347
- context: k.Selection,
347
+ context: P.Selection,
348
348
  data: [""],
349
349
  style: { inactive: { opacity: .3 } }
350
350
  }] },
@@ -357,10 +357,10 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
357
357
  ...n,
358
358
  components: [...n.components, s]
359
359
  };
360
- }, Ie = () => ({ consume: [{
361
- context: k.Selection,
360
+ }, Le = () => ({ consume: [{
361
+ context: P.Selection,
362
362
  data: [""],
363
- mode: O.Or,
363
+ mode: k.Or,
364
364
  style: {
365
365
  active: {
366
366
  strokeWidth: 2,
@@ -368,16 +368,16 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
368
368
  },
369
369
  inactive: { strokeWidth: 0 }
370
370
  }
371
- }] }), Le = (e, t, n, r, i, a = {}) => {
371
+ }] }), Re = (e, t, n, r, i, a = {}) => {
372
372
  let o = {
373
- key: z.selection,
374
- type: F.Deferred,
373
+ key: R.selection,
374
+ type: D.Deferred,
375
375
  layout: { displayOrder: 10 },
376
376
  settings: { sources: [{
377
- component: z.cells,
378
- selector: P.Rect
377
+ component: R.cells,
378
+ selector: j.Rect
379
379
  }] },
380
- brush: a.disable?.brushing === !0 ? void 0 : Ie(),
380
+ brush: a.disable?.brushing === !0 ? void 0 : Le(),
381
381
  animations: {
382
382
  presetId: "simple-opacity",
383
383
  enabled: !0
@@ -387,16 +387,16 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
387
387
  ...n,
388
388
  components: [...n.components, o]
389
389
  };
390
- }, Re = (e, t, n, r, i, a, o) => {
390
+ }, ze = (e, t, n, r, i, a, o) => {
391
391
  if (!e.dimensions.filter(v)[0]) return n;
392
- let s = n.collections?.[0]?.data.extract[0]?.props?.[B.Color], c;
392
+ let s = n.collections?.[0]?.data.extract[0]?.props?.[z.Color], c;
393
393
  s?.field && (c = s?.field);
394
394
  let l = {};
395
- return l = ee(me(e, c ?? null), t, l, n.collections, o), {
395
+ return l = ee(he(e, c ?? null), t, l, n.collections, o), {
396
396
  ...n,
397
397
  scales: l
398
398
  };
399
- }, ze = (e, t, n) => {
399
+ }, Be = (e, t, n) => {
400
400
  let r = e.dimensions.filter(v), i = e.measures.filter(v);
401
401
  if (!r[0] || !i[0]) return n;
402
402
  let a = {
@@ -411,7 +411,7 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
411
411
  },
412
412
  $title: {
413
413
  "@extend": "$label",
414
- fontSize: `${N.fieldTitle.fontSize}px`,
414
+ fontSize: `${O.fieldTitle.fontSize}px`,
415
415
  padding: 4
416
416
  }
417
417
  };
@@ -419,52 +419,52 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
419
419
  ...n,
420
420
  style: a
421
421
  };
422
- }, Be = (e, t) => t.data.label, Ve = (e, t, n, r, i, a) => {
422
+ }, Ve = (e, t) => t.data.label, X = (e, t, n, r, i, a) => {
423
423
  let o = t;
424
424
  if (!r && i) o = n.formatter(i)(t, void 0, a);
425
425
  else if (r) {
426
- let e = typeof i == "string" ? i : le(i);
426
+ let e = typeof i == "string" ? i : ue(i);
427
427
  o = n.formatter(e)(t, void 0, a);
428
428
  }
429
429
  return {
430
430
  label: e,
431
431
  value: o
432
432
  };
433
- }, He = (e, t, n, r, i, a, o, s) => {
434
- let l = [], u = e.filter(v), d = oe(n), p = u.filter((e) => !d.has(c(e.dataItem)))[0] ?? u[0], m = (p ? f(p) : "") || p?.label || p?.dataItem.name || "", h = p ? m : "Count", g = Number(t.desc?.total), _ = t.data[B.CellValue]?.source ? t.data : void 0;
435
- return l.push(Ve(h, g, n, s, V.MeasureFormatter, _)), u.filter((e) => d.has(c(e.dataItem))).forEach((e) => {
436
- let r = c(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r);
433
+ }, He = (e, t, n, r, i, a, s, c) => {
434
+ let u = [], d = e.filter(v), f = ce(n), p = d.filter((e) => !f.has(l(e.dataItem)))[0] ?? d[0], m = (p ? o(p) : "") || p?.label || p?.dataItem.name || "", h = p ? m : "Count", g = Number(t.desc?.total), _ = t.data[z.CellValue]?.source ? t.data : void 0;
435
+ return u.push(X(h, g, n, c, B.MeasureFormatter, _)), d.filter((e) => f.has(l(e.dataItem))).forEach((e) => {
436
+ let r = l(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r);
437
437
  if (!i) return;
438
- let a = f(e) || e.label || e.dataItem.name || "", o = Number(t.data[i]?.value);
439
- l.push(Ve(a, o, n, s, e.formatter, t.data));
440
- }), l;
438
+ let a = o(e) || e.label || e.dataItem.name || "", s = Number(t.data[i]?.value);
439
+ u.push(X(a, s, n, c, e.formatter, t.data));
440
+ }), u;
441
441
  }, Ue = (e, t, n, r, i) => {
442
442
  let a = {
443
443
  placement: () => ({
444
444
  area: "target",
445
445
  type: "pointer"
446
446
  }),
447
- filter: (e) => e.filter((e) => e.type !== P.Text && e.key === z.cells)
447
+ filter: (e) => e.filter((e) => e.type !== j.Text && e.key === R.cells)
448
448
  };
449
- return a.extract = de(e, t, He, Be), ie(e, t, n, a, "tooltip", i);
449
+ return a.extract = fe(e, t, He, Ve), oe(e, t, n, a, "tooltip", i);
450
450
  }, We = class extends te {
451
451
  constructor() {
452
452
  super([
453
- Te,
454
- Re,
455
- Me,
456
- Le,
457
- fe,
458
- ke,
459
- Fe,
453
+ Ee,
460
454
  ze,
455
+ Ne,
456
+ Re,
457
+ pe,
458
+ Ae,
459
+ Ie,
460
+ Be,
461
461
  Ue
462
462
  ]);
463
463
  }
464
464
  preCompile(e, t) {
465
465
  let n = e.measures.filter(v)[0];
466
466
  if (!n) return;
467
- let r = c(n.dataItem);
467
+ let r = l(n.dataItem);
468
468
  t.forEach((e) => {
469
469
  if (e.items?.length && (e.items = e.items.filter((e) => e[r] > 0), !e.items.length)) throw Error("Current data query resulted in only negative and/or null values which can not be displayed in this chart.");
470
470
  });
@@ -509,27 +509,27 @@ var we = /* @__PURE__ */ e(y()), z = /* @__PURE__ */ function(e) {
509
509
  fill: e.branchColor ?? "rgba(150, 150, 150, 0.3)"
510
510
  })), t]);
511
511
  });
512
- let o = he(r);
512
+ let o = ge(r);
513
513
  return o.each((e) => delete e.data.children), o;
514
514
  }, Je = (e) => e + Math.max(12, e * .5), Ye = (e, t, n) => e.y1 - e.y0 >= t + 12 && e.x1 - e.x0 >= n * 2;
515
515
  function Xe(e) {
516
516
  let { cellPadding: t, headerLabels: n } = e, { fontSize: r } = n, i = Je(r);
517
- Ce().size([e.rect.width, e.rect.height]).paddingInner((e) => e.height > 1 ? t : 0).paddingOuter((e) => e.depth ? t : 0).paddingTop((n) => n.height && n.depth && e.headerLabels.show && e.headerLabels.numLevels >= n.depth && Ye(n, i, r) ? t + i : n.depth ? t : 0)(e.root);
517
+ we().size([e.rect.width, e.rect.height]).paddingInner((e) => e.height > 1 ? t : 0).paddingOuter((e) => e.depth ? t : 0).paddingTop((n) => n.height && n.depth && e.headerLabels.show && e.headerLabels.numLevels >= n.depth && Ye(n, i, r) ? t + i : n.depth ? t : 0)(e.root);
518
518
  }
519
519
  var Ze = 8, Qe = "rgba(250, 250, 250, 0.8)", $e = "rgba(60, 60, 60, 0.8)", et = .12, tt = 24, nt = (e, t) => {
520
520
  let n = null, r = null;
521
- return !e.height && t.leafLabels?.show ? (r = et * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels?.dynamicFontSizeEnabled && r < Ze ? null : H.Leaf) : e.height && t.headerLabels?.show && t.headerLabels.numLevels >= e.depth && (n = H.Header), {
521
+ return !e.height && t.leafLabels?.show ? (r = et * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels?.dynamicFontSizeEnabled && r < Ze ? null : V.Leaf) : e.height && t.headerLabels?.show && t.headerLabels.numLevels >= e.depth && (n = V.Header), {
522
522
  labelTarget: n,
523
523
  leafDynamicFontSize: r
524
524
  };
525
525
  }, rt = (e, t) => {
526
- let n = [...Ge(e.numDimensions), "cell"].map((t, n) => Math.max(0, (e.cellRadius ?? Z.cellRadius) - (e.cellPadding ?? Z.cellPadding) * n * .25)), r = new I(e.branchColor ?? "rgba(150, 150, 150, 0.3)").isDark() ? $e : Qe, i = e.headerLabels?.fontSize ?? Z.headerLabels.fontSize, o = Je(i);
526
+ let n = [...Ge(e.numDimensions), "cell"].map((t, n) => Math.max(0, (e.cellRadius ?? Z.cellRadius) - (e.cellPadding ?? Z.cellPadding) * n * .25)), r = new F(e.branchColor ?? "rgba(150, 150, 150, 0.3)").isDark() ? $e : Qe, i = e.headerLabels?.fontSize ?? Z.headerLabels.fontSize, o = Je(i);
527
527
  return t.descendants().slice(1).filter((e) => (e.x1 - e.x0) * (e.y1 - e.y0) >= 1).map((t) => {
528
528
  let s = (t.children?.length ?? 0) > 0, c = t.y1 - t.y0, { labelTarget: l, leafDynamicFontSize: u } = nt(t, e), d = t.data.fill || a.black, f = n[t.depth - 1];
529
529
  return {
530
530
  id: t.data.id,
531
- type: P.Rect,
532
- tag: l === H.Header ? Ye(t, o, i) ? l : void 0 : l && c >= tt ? l : void 0,
531
+ type: j.Rect,
532
+ tag: l === V.Header ? Ye(t, o, i) ? l : void 0 : l && c >= tt ? l : void 0,
533
533
  x: t.x0,
534
534
  y: t.y0,
535
535
  rx: f,
@@ -550,8 +550,8 @@ var Ze = 8, Qe = "rgba(250, 250, 250, 0.8)", $e = "rgba(60, 60, 60, 0.8)", et =
550
550
  };
551
551
  });
552
552
  }, it = {
553
- [d.DESC]: (e, t) => t.height - e.height || (t.value ?? 0) - (e.value ?? 0),
554
- [d.ASC]: (e, t) => t.height - e.height || (e.value ?? 0) - (t.value ?? 0)
553
+ [f.DESC]: (e, t) => t.height - e.height || (t.value ?? 0) - (e.value ?? 0),
554
+ [f.ASC]: (e, t) => t.height - e.height || (e.value ?? 0) - (t.value ?? 0)
555
555
  }, at = {
556
556
  require: [
557
557
  "resolver",
@@ -677,7 +677,7 @@ var Ze = 8, Qe = "rgba(250, 250, 250, 0.8)", $e = "rgba(60, 60, 60, 0.8)", et =
677
677
  }
678
678
  };
679
679
  function lt(e) {
680
- e.component(F.Treemap, at), e.component(U, ct);
680
+ e.component(D.Treemap, at), e.component(H, ct);
681
681
  }
682
682
  var ut = {
683
683
  require: [
@@ -693,7 +693,7 @@ var ut = {
693
693
  return e.sources.forEach((e) => {
694
694
  t.component(e.component) && t.findShapes(e.selector ?? "").filter((t) => t.key === e.component).forEach((e) => {
695
695
  e.attrs && n.push({
696
- type: P.Rect,
696
+ type: j.Rect,
697
697
  height: e.attrs.height,
698
698
  width: e.attrs.width,
699
699
  x: e.attrs.x,
@@ -711,15 +711,15 @@ var ut = {
711
711
  }
712
712
  };
713
713
  function dt(e) {
714
- e.component(F.Deferred, ut);
714
+ e.component(D.Deferred, ut);
715
715
  }
716
- var ft = w(), pt = S(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
717
- let a = x(), [o] = (0, we.useState)(() => new We()), l = b(), u = t || _, d = C(), f = se();
718
- if (!e || !s(e) || !r) return null;
716
+ var ft = C(), pt = x(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
717
+ let a = b(), [o] = (0, Te.useState)(() => new We()), s = y(), u = t || _, d = w(), f = le();
718
+ if (!e || !c(e) || !r) return null;
719
719
  let p = d.targetDataItemId;
720
720
  if (!p && d.targetInternalKey) {
721
721
  let t = e.dimensions.find((e) => e.dataItem.internalKey === d.targetInternalKey);
722
- t && (p = c(t.dataItem));
722
+ t && (p = l(t.dataItem));
723
723
  }
724
724
  let m = {
725
725
  ...i,
@@ -731,8 +731,8 @@ var ft = w(), pt = S(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizPropert
731
731
  ...i.disable,
732
732
  multiDimSelection: !0
733
733
  }
734
- }, v = o.compile(e, u, n, r, m, h.Treemap, a, l, f);
735
- return v ? /* @__PURE__ */ (0, ft.jsx)(ae, {
734
+ }, v = o.compile(e, u, n, r, m, h.Treemap, a, s, f);
735
+ return v ? /* @__PURE__ */ (0, ft.jsx)(se, {
736
736
  config: g,
737
737
  definition: v,
738
738
  size: r,