@astrato-io/visualizations 0.10.1 → 0.12.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 (143) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +148 -5
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +9 -146
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
  7. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
  10. package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
  15. package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
  16. package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
  17. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
  18. package/chunks/defaults-CMFqXvaJ.js +3 -0
  19. package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
  20. package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
  21. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
  22. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
  23. package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
  24. package/chunks/handlers-CyYFSfhM.js +15393 -0
  25. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
  26. package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
  27. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
  28. package/chunks/line.compiler-B-4H55_T.js +203 -0
  29. package/chunks/linear-Bq_r9l5S.js +264 -0
  30. package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
  31. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  32. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
  33. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  34. package/chunks/measure-format-default-B_kuGSzi.js +26 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
  36. package/chunks/number.compiler-D7nMcEMv.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
  38. package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
  42. package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
  43. package/chunks/standalone-B3hRGgYi.js +773 -0
  44. package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
  45. package/chunks/standalone-BPTT8XEu.js +424 -0
  46. package/chunks/standalone-BgAeHROc.js +2 -0
  47. package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
  48. package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
  49. package/chunks/standalone-C0If-V6O.js +773 -0
  50. package/chunks/standalone-C1TOyflX.js +287 -0
  51. package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
  52. package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
  53. package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
  54. package/chunks/standalone-CNf-oA2U.js +355 -0
  55. package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
  56. package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
  57. package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
  58. package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
  59. package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
  60. package/chunks/standalone-Dbn3jSH6.js +690 -0
  61. package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
  62. package/chunks/standalone-DwCIA0UG.js +1057 -0
  63. package/chunks/standalone-Dz13tl3P.js +357 -0
  64. package/chunks/standalone-H9GFzFk_.js +8377 -0
  65. package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
  66. package/chunks/standalone-ejTz66P3.js +2 -0
  67. package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
  68. package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
  69. package/chunks/standalone-vGGR6Vcn.js +6 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
  71. package/chunks/theme-MYp6Rj1J.js +232 -0
  72. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
  73. package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
  74. package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
  75. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
  76. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
  77. package/definitions.js +2 -2
  78. package/docs/operations/astrato-app-filter-bar.md +1 -1
  79. package/docs/operations/bar.md +144 -32
  80. package/docs/operations/combo.md +79 -17
  81. package/docs/operations/date-picker.md +4 -4
  82. package/docs/operations/distribution-gauge.md +18 -16
  83. package/docs/operations/dot.md +107 -24
  84. package/docs/operations/filter.md +10 -8
  85. package/docs/operations/gauge.md +20 -18
  86. package/docs/operations/heatMap.md +73 -21
  87. package/docs/operations/histogram.md +45 -12
  88. package/docs/operations/iframe.md +1 -1
  89. package/docs/operations/image.md +1 -1
  90. package/docs/operations/index.md +12 -11
  91. package/docs/operations/line.md +86 -24
  92. package/docs/operations/map.md +5274 -0
  93. package/docs/operations/number.md +10 -9
  94. package/docs/operations/pie.md +23 -21
  95. package/docs/operations/radar.md +13 -11
  96. package/docs/operations/sankey.md +19 -17
  97. package/docs/operations/scatter.md +111 -28
  98. package/docs/operations/shape.md +5 -5
  99. package/docs/operations/simpleTextObject.md +4 -4
  100. package/docs/operations/slider.md +1 -1
  101. package/docs/operations/table.md +27 -25
  102. package/docs/operations/tree.md +5 -3
  103. package/docs/operations/treemap.md +70 -18
  104. package/docs/operations/waterfall.md +40 -7
  105. package/docs/operations/word-cloud.md +69 -17
  106. package/getters.js +3 -3
  107. package/index.js +585 -612
  108. package/metadata.js +2 -2
  109. package/operations.js +25 -18
  110. package/package.json +74 -70
  111. package/src/definitions/index.d.ts +1 -7
  112. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  113. package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
  115. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  116. package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
  117. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  118. package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
  119. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  120. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +11 -1
  123. package/src/types.d.ts +166 -1
  124. package/src/visualization-catalog.d.ts +3 -0
  125. package/styles.css +1 -1
  126. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  127. package/chunks/color-rules-DYJL4fIW.js +0 -15
  128. package/chunks/color-settings-DJFoFTip.js +0 -5
  129. package/chunks/defaults-Dtk7fg3C.js +0 -3
  130. package/chunks/handlers-C6CZ0XJA.js +0 -15399
  131. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  132. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  133. package/chunks/standalone-4MsKiqs0.js +0 -355
  134. package/chunks/standalone-B794g9pE.js +0 -1012
  135. package/chunks/standalone-BA2YXyJS.js +0 -422
  136. package/chunks/standalone-BgumbdaJ2.js +0 -357
  137. package/chunks/standalone-Blh4qejk.js +0 -689
  138. package/chunks/standalone-CXY4FpF7.js +0 -773
  139. package/chunks/standalone-DH0xTEes.js +0 -2
  140. package/chunks/standalone-DcnHjNnC.js +0 -2
  141. package/chunks/standalone-DrHdGkY7.js +0 -762
  142. package/chunks/standalone-c_rROMtx.js +0 -287
  143. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,32 +1,32 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Ea as n, Fc as r, Io as i, Oa as a, Qr as o, gc as s, in as c, ll as l, mc as u, no as d, rr as f, sa as p, ws as m, x as h, xa as g, y as _, ya as v, yc as y } from "./visualization-filters-D7i6oh1Z.js";
3
- import { F as b, N as x, ci as S, jt as C, s as w, zr as T } from "./utils-DganVptf.js";
4
- import { e_ as E, t_ as D } from "./handlers-C6CZ0XJA.js";
5
- import "./logger-DdZpR7xZ.js";
6
- import { L as ee, R as te, V as ne, Yt as re, _ as ie, _n as ae, bn as O, dn as k, fn as A, i as oe, in as se, jt as ce, kt as le, n as ue, on as j, pn as M, rn as de, ut as fe, v as pe, vn as N, wt as me, yn as P } from "./escobar-CvEV2ES1.js";
7
- import { _ as F } from "./MenuOption-Czc34u4q.js";
8
- import { t as he } from "./coloring-BtnPiQ_o.js";
9
- import { t as ge } from "./set-coloring-datafield-B3uIS1Pe.js";
10
- import { a as _e, n as ve } from "./accessors-DemrDevR.js";
11
- function I() {
2
+ import { $c as n, D as r, Ia as i, Jc as a, Mo as o, Pa as s, Sa as c, Ua as l, Va as u, Xc as d, _n as f, di as p, gr as m, hl as h, ic as g, k as _, ms as v, ql as y } from "./visualization-filters-B9qik5_K.js";
3
+ import { I as b, Mt as x, P as S, Ur as C, fi as ee, s as w } from "./utils-CUKgR7it.js";
4
+ import { c_ as T, s_ as E } from "./handlers-CyYFSfhM.js";
5
+ import "./logger-Cioob-QV.js";
6
+ import { An as D, Cn as O, F as te, It as ne, Mn as k, P as re, R as ie, Rt as ae, Sn as oe, Tn as A, _ as se, _t as ce, i as le, jn as j, jt as ue, kn as M, mn as N, n as de, sn as P, v as fe, wn as F, xn as pe } from "./escobar-CMvphKSK.js";
7
+ import { _ as I } from "./MenuOption-DpKFJxmo.js";
8
+ import { t as me } from "./coloring-Cd6p0GQJ.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 L() {
12
12
  return 0;
13
13
  }
14
- function L(e) {
14
+ function R(e) {
15
15
  return function() {
16
16
  return e;
17
17
  };
18
18
  }
19
- function ye(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 be(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 xe(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 Se = (1 + Math.sqrt(5)) / 2;
29
- function Ce(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 Ce(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 ? be(c, n, r, i, h ? r += m * g / h : a) : xe(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 we = (function e(t) {
50
+ var Ce = (function e(t) {
51
51
  function n(e, n, r, i, a) {
52
- Ce(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
- })(Se);
58
- function Te() {
59
- var e = we, t = !1, n = 1, r = 1, i = [0], a = I, o = I, s = I, c = I, l = I;
57
+ })(xe);
58
+ function we() {
59
+ var e = Ce, t = !1, n = 1, r = 1, i = [0], a = L, o = L, s = L, c = L, l = L;
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(ye), 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,50 +69,50 @@ function Te() {
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 = ve(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 : L(+e), u) : a;
76
+ return arguments.length ? (a = typeof e == "function" ? e : R(+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 : L(+e), u) : o;
80
+ return arguments.length ? (o = typeof e == "function" ? e : R(+e), u) : o;
81
81
  }, u.paddingRight = function(e) {
82
- return arguments.length ? (s = typeof e == "function" ? e : L(+e), u) : s;
82
+ return arguments.length ? (s = typeof e == "function" ? e : R(+e), u) : s;
83
83
  }, u.paddingBottom = function(e) {
84
- return arguments.length ? (c = typeof e == "function" ? e : L(+e), u) : c;
84
+ return arguments.length ? (c = typeof e == "function" ? e : R(+e), u) : c;
85
85
  }, u.paddingLeft = function(e) {
86
- return arguments.length ? (l = typeof e == "function" ? e : L(+e), u) : l;
86
+ return arguments.length ? (l = typeof e == "function" ? e : R(+e), u) : l;
87
87
  }, u;
88
88
  }
89
- var Ee = /* @__PURE__ */ e(S()), R = {
89
+ var Te = /* @__PURE__ */ e(ee()), z = {
90
90
  cells: "key-cells",
91
91
  labels: "key-labels",
92
92
  selection: "key-selection"
93
- }, z = {
93
+ }, B = {
94
94
  CellValue: "cellValue",
95
95
  Color: "color"
96
- }, B = { MeasureFormatter: "total" }, V = {
96
+ }, V = { MeasureFormatter: "total" }, H = {
97
97
  Leaf: "leaf",
98
98
  Header: "header"
99
- }, De = (e, t, n, i, a, s, c) => {
100
- let l = e.measures.filter(o), u = (e.supportingMeasures ?? []).filter((e) => o(e)), d = r(l[0].dataItem), f = pe(u), p = e.dimensions.filter(o).map((e) => r(e.dataItem)), m = p[p.length - 1], h = p.slice(0, p.length - 1), g = {};
101
- h.forEach((e, t) => {
99
+ }, Ee = (e, t, n, r, i, a, o) => {
100
+ let s = e.measures.filter(p), c = (e.supportingMeasures ?? []).filter((e) => p(e)), l = h(s[0].dataItem), u = fe(c), d = e.dimensions.filter(p).map((e) => h(e.dataItem)), f = d[d.length - 1], m = d.slice(0, d.length - 1), g = {};
101
+ m.forEach((e, t) => {
102
102
  g[`dim${t}`] = { field: e };
103
103
  });
104
104
  let _ = [{
105
- field: m,
105
+ field: f,
106
106
  props: {
107
- [z.CellValue]: { field: d },
107
+ [B.CellValue]: { field: l },
108
108
  ...g,
109
- [d]: { field: d },
110
- ...f
109
+ [l]: { field: l },
110
+ ...u
111
111
  }
112
- }], v = e.coloring ? ce(e, c) : null;
112
+ }], v = e.coloring ? ae(e, o) : null;
113
113
  v && (_[0].props = {
114
114
  ..._[0].props,
115
- [z.Color]: { field: v }
115
+ [B.Color]: { field: v }
116
116
  });
117
117
  let y = [{
118
118
  key: "coll",
@@ -121,155 +121,155 @@ var Ee = /* @__PURE__ */ e(S()), R = {
121
121
  return {
122
122
  ...n,
123
123
  collections: y,
124
- formatters: { [B.MeasureFormatter]: e.measures[0].formatter ?? {
124
+ formatters: { [V.MeasureFormatter]: e.measures[0].formatter ?? {
125
125
  type: "excel-format",
126
126
  format: ""
127
127
  } }
128
128
  };
129
- }, H = "treemap-alternates-switcher", U = "treemap-alternates-switcher", Oe = new F(k.fontLight), ke = new F(k.fontDark), Ae = (e) => c(e) || e.label || e.dataItem?.name || "Field", je = (e, t, n, i) => {
130
- let a = n ? r(n.dataItem) : void 0;
129
+ }, U = "treemap-alternates-switcher", W = "treemap-alternates-switcher", De = new I(O.fontLight), Oe = new I(O.fontDark), G = (e) => f(e) || e.label || e.dataItem?.name || "Field", ke = (e, t, n, r) => {
130
+ let i = n ? h(n.dataItem) : void 0;
131
131
  return {
132
132
  type: "native",
133
- key: `${U}-interaction`,
134
- events: { click(r) {
133
+ key: `${W}-interaction`,
134
+ events: { click(a) {
135
135
  let o = this.element.getBoundingClientRect(), s = {
136
- x: r.clientX - o.left,
137
- y: r.clientY - o.top
136
+ x: a.clientX - o.left,
137
+ y: a.clientY - o.top
138
138
  }, c = this.chart.shapesAt(s, {
139
139
  components: [{
140
- key: U,
140
+ key: W,
141
141
  propagation: "stop"
142
142
  }],
143
143
  propagation: "stop"
144
144
  }).find((e) => e.data?.target === "measure" || e.data?.target === "dimension");
145
- if (c?.data?.target === "measure" && n && a) {
146
- i(O.Text, "click", `text-${a}`, r, c, {
147
- dataItemType: l.Measure,
145
+ if (c?.data?.target === "measure" && n && i) {
146
+ r(k.Text, "click", `text-${i}`, a, c, {
147
+ dataItemType: y.Measure,
148
148
  dataItemRole: n.role
149
149
  });
150
150
  return;
151
151
  }
152
- c?.data?.target === "dimension" && e && i(O.Text, "click", `text-${e}`, r, c, {
153
- dataItemType: l.Dimension,
152
+ c?.data?.target === "dimension" && e && r(k.Text, "click", `text-${e}`, a, c, {
153
+ dataItemType: y.Dimension,
154
154
  dataItemRole: t
155
155
  });
156
156
  } }
157
157
  };
158
- }, Me = (e, t, n, a, s, c = {}, u, d) => {
159
- let p = e.dimensions.filter(o), m = e.measures.filter(o), h = p[0], g = m[0], _ = h ? r(h.dataItem) : void 0;
160
- if (!h && !g) return n;
161
- let v = f(e.dimensions, e.enableAlternate, c.isPrintMode), y = f(e.measures, e.enableAlternate, c.isPrintMode);
162
- if (!v && !y) return n;
163
- let b = c?.isPrintMode ?? !1, x = v ? p.map((e) => Ae(e)).join(", ") : void 0, S = y && g ? Ae(g) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", w = new F(C).betterContrast(new F(t.fonts.general.color), Oe, ke).rgb(), T = {
164
- type: H,
165
- key: U,
166
- dimensionDataItemType: _ ? l.Dimension : void 0,
167
- dimensionDataItemRole: h?.role,
168
- measureDataItemType: g ? l.Measure : void 0,
169
- measureDataItemRole: g?.role,
158
+ }, Ae = (e, t, n, r, i, a = {}, o, s) => {
159
+ let c = e.dimensions.filter(p), l = e.measures.filter(p), u = c[0], d = l[0], f = u ? h(u.dataItem) : void 0;
160
+ if (!u && !d) return n;
161
+ let g = m(e.dimensions, e.enableAlternate, a.isPrintMode), _ = m(e.measures, e.enableAlternate, a.isPrintMode);
162
+ if (!g && !_) return n;
163
+ let b = a?.isPrintMode ?? !1, x = g ? c.map((e) => G(e)).join(", ") : void 0, S = _ && d ? G(d) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", ee = new I(C).betterContrast(new I(t.fonts.general.color), De, Oe).rgb(), w = {
164
+ type: U,
165
+ key: W,
166
+ dimensionDataItemType: f ? y.Dimension : void 0,
167
+ dimensionDataItemRole: u?.role,
168
+ measureDataItemType: d ? y.Measure : void 0,
169
+ measureDataItemRole: d?.role,
170
170
  layout: {
171
- dock: i.Bottom,
171
+ dock: v.Bottom,
172
172
  displayOrder: 0
173
173
  },
174
174
  settings: {
175
- dimensionLabel: x ? re(x) : void 0,
176
- measureLabel: S ? re(S) : void 0,
175
+ dimensionLabel: x ? P(x) : void 0,
176
+ measureLabel: S ? P(S) : void 0,
177
177
  backgroundColor: C,
178
178
  fontFamily: t.fonts.general.fontFamily ?? void 0,
179
- fontSize: `${k.fieldTitle.fontSize}px`,
180
- color: w,
179
+ fontSize: `${O.fieldTitle.fontSize}px`,
180
+ color: ee,
181
181
  paddingLeft: 5,
182
182
  paddingRight: 5,
183
183
  paddingVertical: 5,
184
184
  labelGap: 12
185
185
  }
186
- }, E = d && !b ? [je(_, h?.role, g, d)] : [];
186
+ }, T = s && !b ? [ke(f, u?.role, d, s)] : [];
187
187
  return {
188
188
  ...n,
189
- components: [...n.components, T],
190
- interactions: n.interactions ? [...n.interactions, ...E] : [...E]
189
+ components: [...n.components, w],
190
+ interactions: n.interactions ? [...n.interactions, ...T] : [...T]
191
191
  };
192
- }, Ne = /* @__PURE__ */ t(((e, t) => {
193
- var n = h(), r = g();
194
- function i(e, t, a, o, s, c) {
195
- return r(e) && r(t) && (c.set(t, e), n(e, t, void 0, i, c), c.delete(t)), e;
192
+ }, je = /* @__PURE__ */ t(((e, t) => {
193
+ var n = _(), r = i();
194
+ function a(e, t, i, o, s, c) {
195
+ return r(e) && r(t) && (c.set(t, e), n(e, t, void 0, a, c), c.delete(t)), e;
196
196
  }
197
- t.exports = i;
198
- })), W = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
199
- var r = n(), i = v(), a = Ne(), o = _();
197
+ t.exports = a;
198
+ })), K = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
199
+ var n = u(), i = s(), a = je(), o = r();
200
200
  t.exports = i(function(e) {
201
- return e.push(void 0, a), r(o, void 0, e);
201
+ return e.push(void 0, a), n(o, void 0, e);
202
202
  });
203
- })))()), Pe = () => ({
203
+ })))()), Me = () => ({
204
204
  trigger: [{
205
- on: N.Tap,
206
- action: ae.Toggle,
205
+ on: D.Tap,
206
+ action: M.Toggle,
207
207
  globalPropagation: "stop",
208
208
  propagation: "stop",
209
- contexts: [M.Selection]
209
+ contexts: [A.Selection]
210
210
  }, {
211
- on: N.Over,
212
- action: ae.Set,
211
+ on: D.Over,
212
+ action: M.Set,
213
213
  globalPropagation: "stop",
214
214
  propagation: "stop",
215
- contexts: [M.Highlight]
215
+ contexts: [A.Highlight]
216
216
  }],
217
217
  consume: [{
218
- context: M.Selection,
218
+ context: A.Selection,
219
219
  data: [""],
220
- mode: P.Or,
220
+ mode: j.Or,
221
221
  style: { inactive: { fill: (e) => {
222
222
  let { fill: t } = e;
223
- return !t || t === "none" || t === "transparent" ? t ?? "none" : de(se(t), .25);
223
+ return !t || t === "none" || t === "transparent" ? t ?? "none" : pe(oe(t), .25);
224
224
  } } }
225
225
  }]
226
- }), Fe = (e, t, n, i, a, s = {}) => {
227
- let c = e.dimensions.filter(o), l = e.measures.filter(o).map((e) => r(e.dataItem)), u = new he(e, t, a?.[0]?.itemsNotAffectedByFiltering), d = [u.MAIN_FIELD];
228
- c.slice(0, c.length - 1).forEach((e, t) => {
229
- d.push(`dim${t}`);
226
+ }), Ne = (e, t, r, i, a, o = {}) => {
227
+ let s = e.dimensions.filter(p), c = e.measures.filter(p).map((e) => h(e.dataItem)), l = new me(e, t, a?.[0]?.itemsNotAffectedByFiltering), u = [l.MAIN_FIELD];
228
+ s.slice(0, s.length - 1).forEach((e, t) => {
229
+ u.push(`dim${t}`);
230
230
  });
231
- let { labeling: f } = e.treemapSettings, p = (0, W.default)({}, f?.header, D.labeling.header), h = (0, W.default)({}, f?.leaf, D.labeling.leaf), g = {
232
- key: R.cells,
233
- type: O.Treemap,
231
+ let { labeling: d } = e.treemapSettings, f = (0, K.default)({}, d?.header, T.labeling.header), m = (0, K.default)({}, d?.leaf, T.labeling.leaf), _ = {
232
+ key: z.cells,
233
+ type: k.Treemap,
234
234
  data: { collection: "coll" },
235
235
  settings: {
236
- numDimensions: c.length || 0,
236
+ numDimensions: s.length || 0,
237
237
  cellPadding: e.treemapSettings.cellPadding,
238
- ...m({ cellRadius: e.treemapSettings.cellRadius }),
239
- ...m({ cellOrder: e.treemapSettings.cellOrder }),
240
- ...m({ branchColor: e.treemapSettings.branchColor ?? void 0 }),
238
+ ...g({ cellRadius: e.treemapSettings.cellRadius }),
239
+ ...g({ cellOrder: e.treemapSettings.cellOrder }),
240
+ ...g({ branchColor: e.treemapSettings.branchColor ?? void 0 }),
241
241
  headerLabels: {
242
- show: p.show,
243
- numLevels: p.numLevels,
244
- fontSize: j(p.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax)
242
+ show: f.show,
243
+ numLevels: f.numLevels,
244
+ fontSize: N(f.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax)
245
245
  },
246
246
  leafLabels: {
247
- show: h.show,
248
- fontSize: j(h.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax),
249
- showDimension: h.showDimensionValue,
250
- showMeasure: h.showMeasureValue,
251
- dynamicFontSizeEnabled: h.dynamicFontSizeEnabled
247
+ show: m.show,
248
+ fontSize: N(m.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax),
249
+ showDimension: m.showDimensionValue,
250
+ showMeasure: m.showMeasureValue,
251
+ dynamicFontSizeEnabled: m.dynamicFontSizeEnabled
252
252
  },
253
- leaf: { fill: u.getColorDefinition({
254
- ref: z.Color,
255
- dataItemId: e.coloring?.type === y.Single ? l[0] : void 0,
256
- overwriteSources: d
253
+ leaf: { fill: l.getColorDefinition({
254
+ ref: B.Color,
255
+ dataItemId: e.coloring?.type === n.Single ? c[0] : void 0,
256
+ overwriteSources: u
257
257
  }) }
258
258
  },
259
- brush: s.disable?.brushing === !0 ? void 0 : Pe(),
259
+ brush: o.disable?.brushing === !0 ? void 0 : Me(),
260
260
  animations: {
261
261
  presetId: "simple-opacity",
262
262
  enabled: !0
263
263
  }
264
264
  };
265
265
  return {
266
- ...n,
267
- components: [...n.components, g]
266
+ ...r,
267
+ components: [...r.components, _]
268
268
  };
269
- }, G = new F(k.fontLight), K = new F(k.fontDark), q = (e) => e.desc, Ie = (e, t, n) => {
270
- let r = new F(n.fonts.general.color), { showDimensionValue: i, showMeasureValue: a, fontSize: o, dynamicFontSizeEnabled: s, show: c } = t.leaf, l = s ? ({ node: e }) => q(e).dynamicFontSize ?? void 0 : j(o, void 0, E.labelFontSizeMin, E.labelFontSizeMax);
269
+ }, q = new I(O.fontLight), J = new I(O.fontDark), Y = (e) => e.desc, Pe = (e, t, n) => {
270
+ 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 : N(o, void 0, E.labelFontSizeMin, E.labelFontSizeMax);
271
271
  return {
272
- component: R.cells,
272
+ component: z.cells,
273
273
  selector: e,
274
274
  strategy: {
275
275
  type: "rows",
@@ -283,35 +283,35 @@ var Ee = /* @__PURE__ */ e(S()), R = {
283
283
  return e.attrs?.id;
284
284
  },
285
285
  fill({ node: e }) {
286
- return new F(q(e).background).betterContrast(r, G, K).rgb();
286
+ return new I(Y(e).background).betterContrast(r, q, J).rgb();
287
287
  },
288
288
  linkData({ node: e }) {
289
289
  return e.data;
290
290
  },
291
291
  label({ node: e }) {
292
- return q(e)?.label;
292
+ return Y(e)?.label;
293
293
  }
294
294
  } : null, a && c !== !1 ? {
295
295
  id({ node: e }) {
296
296
  return `${e.attrs?.id}::value`;
297
297
  },
298
298
  fill({ node: e }) {
299
- return new F(q(e).background).betterContrast(r, G, K).rgb();
299
+ return new I(Y(e).background).betterContrast(r, q, J).rgb();
300
300
  },
301
301
  linkData({ node: e }) {
302
302
  return e.data;
303
303
  },
304
304
  label({ node: e, formatter: t }) {
305
- return t(B.MeasureFormatter)(q(e)?.total, void 0, e.data);
305
+ return t(V.MeasureFormatter)(Y(e)?.total, void 0, e.data);
306
306
  }
307
307
  } : null].filter((e) => e !== null)
308
308
  }
309
309
  }
310
310
  };
311
- }, J = 128, Le = (e, t, n) => {
312
- let r = new F(n.fonts.general.color), i = j(t.header.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
311
+ }, X = 128, Fe = (e, t, n) => {
312
+ let r = new I(n.fonts.general.color), i = N(t.header.fontSize, void 0, E.labelFontSizeMin, E.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
313
313
  return {
314
- component: R.cells,
314
+ component: z.cells,
315
315
  selector: e,
316
316
  strategy: {
317
317
  type: "rows",
@@ -325,28 +325,28 @@ var Ee = /* @__PURE__ */ e(S()), R = {
325
325
  return e.attrs?.id;
326
326
  },
327
327
  fill({ node: e }) {
328
- return new F(q(e).background).betterContrast(r, G, K).rgb();
328
+ return new I(Y(e).background).betterContrast(r, q, J).rgb();
329
329
  },
330
330
  linkData({ node: e }) {
331
331
  return e.data;
332
332
  },
333
333
  label({ node: e, formatter: t }) {
334
- let n = q(e), r = o ? t(B.MeasureFormatter)(n?.total) : void 0;
335
- return [a ? n?.label?.length > J - 1 ? `${n?.label?.substring(0, J - 1).replace(/\s+$/, "")}…` : n?.label : void 0, r].filter(Boolean).join(": ");
334
+ let n = Y(e), r = o ? t(V.MeasureFormatter)(n?.total) : void 0;
335
+ return [a ? n?.label?.length > X - 1 ? `${n?.label?.substring(0, X - 1).replace(/\s+$/, "")}…` : n?.label : void 0, r].filter(Boolean).join(": ");
336
336
  }
337
337
  }]
338
338
  }
339
339
  }
340
340
  };
341
- }, Re = (e, t, n, r, i, a = {}) => {
342
- let o = (0, W.default)({}, e.treemapSettings?.labeling, D.labeling), s = {
343
- type: O.Labels,
344
- key: R.labels,
341
+ }, Ie = (e, t, n, r, i, a = {}) => {
342
+ let o = (0, K.default)({}, e.treemapSettings?.labeling, T.labeling), s = {
343
+ type: k.Labels,
344
+ key: z.labels,
345
345
  layout: { displayOrder: 2 },
346
- settings: { sources: [Ie(`.${V.Leaf}`, o, t), Le(`.${V.Header}`, o, t)] },
346
+ settings: { sources: [Pe(`.${H.Leaf}`, o, t), Fe(`.${H.Header}`, o, t)] },
347
347
  style: { label: "$label" },
348
348
  brush: a.disable?.brushing === !0 ? void 0 : { consume: [{
349
- context: M.Selection,
349
+ context: A.Selection,
350
350
  data: [""],
351
351
  style: { inactive: { opacity: .3 } }
352
352
  }] },
@@ -359,27 +359,27 @@ var Ee = /* @__PURE__ */ e(S()), R = {
359
359
  ...n,
360
360
  components: [...n.components, s]
361
361
  };
362
- }, ze = () => ({ consume: [{
363
- context: M.Selection,
362
+ }, Le = () => ({ consume: [{
363
+ context: A.Selection,
364
364
  data: [""],
365
- mode: P.Or,
365
+ mode: j.Or,
366
366
  style: {
367
367
  active: {
368
368
  strokeWidth: 2,
369
- stroke: a.mainDarkNavy
369
+ stroke: l.mainDarkNavy
370
370
  },
371
371
  inactive: { strokeWidth: 0 }
372
372
  }
373
- }] }), Be = (e, t, n, r, i, a = {}) => {
373
+ }] }), Re = (e, t, n, r, i, a = {}) => {
374
374
  let o = {
375
- key: R.selection,
376
- type: O.Deferred,
375
+ key: z.selection,
376
+ type: k.Deferred,
377
377
  layout: { displayOrder: 10 },
378
378
  settings: { sources: [{
379
- component: R.cells,
380
- selector: A.Rect
379
+ component: z.cells,
380
+ selector: F.Rect
381
381
  }] },
382
- brush: a.disable?.brushing === !0 ? void 0 : ze(),
382
+ brush: a.disable?.brushing === !0 ? void 0 : Le(),
383
383
  animations: {
384
384
  presetId: "simple-opacity",
385
385
  enabled: !0
@@ -389,17 +389,17 @@ var Ee = /* @__PURE__ */ e(S()), R = {
389
389
  ...n,
390
390
  components: [...n.components, o]
391
391
  };
392
- }, Ve = (e, t, n, r, i, a, s) => {
393
- if (!e.dimensions.filter(o)[0]) return n;
394
- let c = n.collections?.[0]?.data.extract[0]?.props?.[z.Color], l;
395
- c?.field && (l = c?.field);
396
- let u = {};
397
- return u = le(ge(e, l ?? null), t, u, n.collections, s), {
392
+ }, ze = (e, t, n, r, i, a, o) => {
393
+ if (!e.dimensions.filter(p)[0]) return n;
394
+ let s = n.collections?.[0]?.data.extract[0]?.props?.[B.Color], c;
395
+ s?.field && (c = s?.field);
396
+ let l = {};
397
+ return l = ne(he(e, c ?? null), t, l, n.collections, o), {
398
398
  ...n,
399
- scales: u
399
+ scales: l
400
400
  };
401
- }, He = (e, t, n) => {
402
- let r = e.dimensions.filter(o), i = e.measures.filter(o);
401
+ }, Be = (e, t, n) => {
402
+ let r = e.dimensions.filter(p), i = e.measures.filter(p);
403
403
  if (!r[0] || !i[0]) return n;
404
404
  let a = {
405
405
  "$font-family": t.fonts.general.fontFamily,
@@ -413,7 +413,7 @@ var Ee = /* @__PURE__ */ e(S()), R = {
413
413
  },
414
414
  $title: {
415
415
  "@extend": "$label",
416
- fontSize: `${k.fieldTitle.fontSize}px`,
416
+ fontSize: `${O.fieldTitle.fontSize}px`,
417
417
  padding: 4
418
418
  }
419
419
  };
@@ -421,57 +421,57 @@ var Ee = /* @__PURE__ */ e(S()), R = {
421
421
  ...n,
422
422
  style: a
423
423
  };
424
- }, Ue = (e, t) => t.data.label, Y = (e, t, n, r, i, a) => {
424
+ }, Ve = (e, t) => t.data.label, He = (e, t, n, r, i, a) => {
425
425
  let o = t;
426
426
  if (!r && i) o = n.formatter(i)(t, void 0, a);
427
427
  else if (r) {
428
- let e = typeof i == "string" ? i : fe(i);
428
+ let e = typeof i == "string" ? i : ce(i);
429
429
  o = n.formatter(e)(t, void 0, a);
430
430
  }
431
431
  return {
432
432
  label: e,
433
433
  value: o
434
434
  };
435
- }, We = (e, t, n, i, a, s, l, u) => {
436
- let d = [], f = e.filter(o), p = ne(n), m = f.filter((e) => !p.has(r(e.dataItem)))[0] ?? f[0], h = (m ? c(m) : "") || m?.label || m?.dataItem.name || "", g = m ? h : "Count", _ = Number(t.desc?.total), v = t.data[z.CellValue]?.source ? t.data : void 0;
437
- return d.push(Y(g, _, n, u, B.MeasureFormatter, v)), f.filter((e) => p.has(r(e.dataItem))).forEach((e) => {
438
- let i = r(e.dataItem), a = Object.keys(t.data).find((e) => t.data[e]?.source?.field === i);
439
- if (!a) return;
440
- let o = c(e) || e.label || e.dataItem.name || "", s = Number(t.data[a]?.value);
441
- d.push(Y(o, s, n, u, e.formatter, t.data));
442
- }), d;
443
- }, Ge = (e, t, n, r, i) => {
435
+ }, Ue = (e, t, n, r, i, a, o, s) => {
436
+ let c = [], l = e.filter(p), u = ie(n), d = l.filter((e) => !u.has(h(e.dataItem)))[0] ?? l[0], m = (d ? f(d) : "") || d?.label || d?.dataItem.name || "", g = d ? m : "Count", _ = Number(t.desc?.total), v = t.data[B.CellValue]?.source ? t.data : void 0;
437
+ return c.push(He(g, _, n, s, V.MeasureFormatter, v)), l.filter((e) => u.has(h(e.dataItem))).forEach((e) => {
438
+ let r = h(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r);
439
+ if (!i) return;
440
+ let a = f(e) || e.label || e.dataItem.name || "", o = Number(t.data[i]?.value);
441
+ c.push(He(a, o, n, s, e.formatter, t.data));
442
+ }), c;
443
+ }, We = (e, t, n, r, i) => {
444
444
  let a = {
445
445
  placement: () => ({
446
446
  area: "target",
447
447
  type: "pointer"
448
448
  }),
449
- filter: (e) => e.filter((e) => e.type !== A.Text && e.key === R.cells)
449
+ filter: (e) => e.filter((e) => e.type !== F.Text && e.key === z.cells)
450
450
  };
451
- return a.extract = te(e, t, We, Ue), ee(e, t, n, a, "tooltip", i);
452
- }, Ke = class extends ie {
451
+ return a.extract = te(e, t, Ue, Ve), re(e, t, n, a, "tooltip", i);
452
+ }, Ge = class extends se {
453
453
  constructor() {
454
454
  super([
455
- De,
456
- Ve,
457
- Fe,
458
- Be,
459
- me,
460
- Me,
455
+ Ee,
456
+ ze,
457
+ Ne,
461
458
  Re,
462
- He,
463
- Ge
459
+ ue,
460
+ Ae,
461
+ Ie,
462
+ Be,
463
+ We
464
464
  ]);
465
465
  }
466
466
  preCompile(e, t) {
467
- let n = e.measures.filter(o)[0];
467
+ let n = e.measures.filter(p)[0];
468
468
  if (!n) return;
469
- let i = r(n.dataItem);
469
+ let r = h(n.dataItem);
470
470
  t.forEach((e) => {
471
- if (e.items?.length && (e.items = e.items.filter((e) => e[i] > 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.");
471
+ 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.");
472
472
  });
473
473
  }
474
- }, X = {
474
+ }, Z = {
475
475
  numDimensions: 0,
476
476
  cellPadding: 2,
477
477
  cellRadius: 0,
@@ -485,9 +485,9 @@ var Ee = /* @__PURE__ */ e(S()), R = {
485
485
  fontSize: 11,
486
486
  numLevels: 1
487
487
  },
488
- leaf: { fill: a.mainDarkNavy }
489
- }, Z = (e = 0) => Array(Math.max(0, e - 1)).fill(0).map((e, t) => `dim${t}`), qe = "__virtual__::__root__", Je = (e, t) => {
490
- let n = Z(e.numDimensions), r = {
488
+ leaf: { fill: l.mainDarkNavy }
489
+ }, Ke = (e = 0) => Array(Math.max(0, e - 1)).fill(0).map((e, t) => `dim${t}`), qe = "__virtual__::__root__", Je = (e, t) => {
490
+ let n = Ke(e.numDimensions), r = {
491
491
  data: {
492
492
  label: "__root__",
493
493
  value: null
@@ -511,27 +511,27 @@ var Ee = /* @__PURE__ */ e(S()), R = {
511
511
  fill: e.branchColor ?? "rgba(150, 150, 150, 0.3)"
512
512
  })), t]);
513
513
  });
514
- let o = _e(r);
514
+ let o = ge(r);
515
515
  return o.each((e) => delete e.data.children), o;
516
516
  }, Ye = (e) => e + Math.max(12, e * .5), Xe = (e, t, n) => e.y1 - e.y0 >= t + 12 && e.x1 - e.x0 >= n * 2;
517
517
  function Ze(e) {
518
518
  let { cellPadding: t, headerLabels: n } = e, { fontSize: r } = n, i = Ye(r);
519
- Te().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 && Xe(n, i, r) ? t + i : n.depth ? t : 0)(e.root);
519
+ 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 && Xe(n, i, r) ? t + i : n.depth ? t : 0)(e.root);
520
520
  }
521
521
  var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt = .12, nt = 24, rt = (e, t) => {
522
522
  let n = null, r = null;
523
- return !e.height && t.leafLabels?.show ? (r = tt * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels?.dynamicFontSizeEnabled && r < Qe ? null : V.Leaf) : e.height && t.headerLabels?.show && t.headerLabels.numLevels >= e.depth && (n = V.Header), {
523
+ return !e.height && t.leafLabels?.show ? (r = tt * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels?.dynamicFontSizeEnabled && r < Qe ? null : H.Leaf) : e.height && t.headerLabels?.show && t.headerLabels.numLevels >= e.depth && (n = H.Header), {
524
524
  labelTarget: n,
525
525
  leafDynamicFontSize: r
526
526
  };
527
527
  }, it = (e, t) => {
528
- let n = [...Z(e.numDimensions), "cell"].map((t, n) => Math.max(0, (e.cellRadius ?? X.cellRadius) - (e.cellPadding ?? X.cellPadding) * n * .25)), r = new F(e.branchColor ?? "rgba(150, 150, 150, 0.3)").isDark() ? et : $e, i = e.headerLabels?.fontSize ?? X.headerLabels.fontSize, o = Ye(i);
528
+ let n = [...Ke(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() ? et : $e, i = e.headerLabels?.fontSize ?? Z.headerLabels.fontSize, a = Ye(i);
529
529
  return t.descendants().slice(1).filter((e) => (e.x1 - e.x0) * (e.y1 - e.y0) >= 1).map((t) => {
530
- let s = (t.children?.length ?? 0) > 0, c = t.y1 - t.y0, { labelTarget: l, leafDynamicFontSize: u } = rt(t, e), d = t.data.fill || a.black, f = n[t.depth - 1];
530
+ let o = (t.children?.length ?? 0) > 0, s = t.y1 - t.y0, { labelTarget: c, leafDynamicFontSize: u } = rt(t, e), d = t.data.fill || l.black, f = n[t.depth - 1];
531
531
  return {
532
532
  id: t.data.id,
533
- type: A.Rect,
534
- tag: l === V.Header ? Xe(t, o, i) ? l : void 0 : l && c >= nt ? l : void 0,
533
+ type: F.Rect,
534
+ tag: c === H.Header ? Xe(t, a, i) ? c : void 0 : c && s >= nt ? c : void 0,
535
535
  x: t.x0,
536
536
  y: t.y0,
537
537
  rx: f,
@@ -540,7 +540,7 @@ var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt =
540
540
  height: t.y1 - t.y0,
541
541
  fill: d,
542
542
  stroke: r,
543
- strokeWidth: +!s,
543
+ strokeWidth: +!o,
544
544
  opacity: t.data.opacity ?? 1,
545
545
  desc: {
546
546
  background: d,
@@ -552,8 +552,8 @@ var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt =
552
552
  };
553
553
  });
554
554
  }, at = {
555
- [d.DESC]: (e, t) => t.height - e.height || (t.value ?? 0) - (e.value ?? 0),
556
- [d.ASC]: (e, t) => t.height - e.height || (e.value ?? 0) - (t.value ?? 0)
555
+ [o.DESC]: (e, t) => t.height - e.height || (t.value ?? 0) - (e.value ?? 0),
556
+ [o.ASC]: (e, t) => t.height - e.height || (e.value ?? 0) - (t.value ?? 0)
557
557
  }, ot = {
558
558
  require: [
559
559
  "resolver",
@@ -561,7 +561,7 @@ var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt =
561
561
  "renderer"
562
562
  ],
563
563
  defaultSettings: {
564
- settings: X,
564
+ settings: Z,
565
565
  style: {
566
566
  title: "$title",
567
567
  label: "$label"
@@ -572,7 +572,7 @@ var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt =
572
572
  if (!n) return [];
573
573
  let { items: r } = n.resolve({
574
574
  data: { items: e.items },
575
- defaults: { ...X.leaf },
575
+ defaults: { ...Z.leaf },
576
576
  settings: { ...t.leaf }
577
577
  }), i = Je(t, r);
578
578
  i.sum((e) => e.children?.length ? 0 : e.data.cellValue?.value || 0);
@@ -606,7 +606,7 @@ var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt =
606
606
  defaultSettings: { settings: {
607
607
  dimensionLabel: "",
608
608
  measureLabel: "",
609
- backgroundColor: X.branchColor ?? "rgba(150, 150, 150, 0.3)",
609
+ backgroundColor: Z.branchColor ?? "rgba(150, 150, 150, 0.3)",
610
610
  fontSize: "12px",
611
611
  color: "#000",
612
612
  paddingLeft: 5,
@@ -679,7 +679,7 @@ var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt =
679
679
  }
680
680
  };
681
681
  function ut(e) {
682
- e.component(O.Treemap, ot), e.component(H, lt);
682
+ e.component(k.Treemap, ot), e.component(U, lt);
683
683
  }
684
684
  var dt = {
685
685
  require: [
@@ -695,7 +695,7 @@ var dt = {
695
695
  return e.sources.forEach((e) => {
696
696
  t.component(e.component) && t.findShapes(e.selector ?? "").filter((t) => t.key === e.component).forEach((e) => {
697
697
  e.attrs && n.push({
698
- type: A.Rect,
698
+ type: F.Rect,
699
699
  height: e.attrs.height,
700
700
  width: e.attrs.width,
701
701
  x: e.attrs.x,
@@ -703,7 +703,7 @@ var dt = {
703
703
  rx: e.attrs.rx,
704
704
  ry: e.attrs.ry,
705
705
  fill: "transparent",
706
- stroke: a.mainDarkNavy,
706
+ stroke: l.mainDarkNavy,
707
707
  strokeWidth: 0,
708
708
  data: e.data,
709
709
  collider: { type: null }
@@ -713,31 +713,31 @@ var dt = {
713
713
  }
714
714
  };
715
715
  function ft(e) {
716
- e.component(O.Deferred, dt);
716
+ e.component(k.Deferred, dt);
717
717
  }
718
- var pt = T(), mt = C(({ vSpec: e, vTheme: t, data: n, elementSize: i, vizProperties: a }) => {
719
- let o = x(), [c] = (0, Ee.useState)(() => new Ke()), l = b(), d = t || p, f = w(), m = ue();
720
- if (!e || !u(e) || !i) return null;
721
- let h = f.targetDataItemId;
722
- if (!h && f.targetInternalKey) {
718
+ var pt = C(), mt = x(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
719
+ let o = S(), [s] = (0, Te.useState)(() => new Ge()), l = b(), u = t || c, f = w(), p = de();
720
+ if (!e || !a(e) || !r) return null;
721
+ let m = f.targetDataItemId;
722
+ if (!m && f.targetInternalKey) {
723
723
  let t = e.dimensions.find((e) => e.dataItem.internalKey === f.targetInternalKey);
724
- t && (h = r(t.dataItem));
724
+ t && (m = h(t.dataItem));
725
725
  }
726
726
  let g = {
727
- ...a,
727
+ ...i,
728
728
  valuePickerMode: !!f.activeKey,
729
- valuePickerTargetDataItemId: h ?? void 0
729
+ valuePickerTargetDataItemId: m ?? void 0
730
730
  }, _ = {
731
- ...a,
731
+ ...i,
732
732
  disable: {
733
- ...a.disable,
733
+ ...i.disable,
734
734
  multiDimSelection: !0
735
735
  }
736
- }, v = c.compile(e, d, n, i, g, s.Treemap, o, l, m);
737
- return v ? /* @__PURE__ */ (0, pt.jsx)(oe, {
736
+ }, v = s.compile(e, u, n, r, g, d.Treemap, o, l, p);
737
+ return v ? /* @__PURE__ */ (0, pt.jsx)(le, {
738
738
  config: _,
739
739
  definition: v,
740
- size: i,
740
+ size: r,
741
741
  vSpec: e,
742
742
  escobarPlugins: [ut, ft]
743
743
  }) : null;