@astrato-io/visualizations 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/THIRD_PARTY_NOTICES.md +94 -4
  3. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  4. package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
  5. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  6. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  7. package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
  8. package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
  9. package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
  10. package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
  11. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  12. package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
  13. package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
  14. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  15. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  16. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  17. package/chunks/{metadata-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
  18. package/chunks/number.compiler-G-R7y16P.js +53 -0
  19. package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
  20. package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
  21. package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
  22. package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
  23. package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
  24. package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
  25. package/chunks/standalone-0ashe9w1.js +411 -0
  26. package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
  27. package/chunks/standalone-BK0VYU-l.js +463 -0
  28. package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
  29. package/chunks/standalone-BZV5vOwA.js +6 -0
  30. package/chunks/standalone-BhDrWj4p.js +1980 -0
  31. package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
  32. package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
  33. package/chunks/standalone-BwtM31-f.js +2 -0
  34. package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
  35. package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
  36. package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
  37. package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
  38. package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
  39. package/chunks/standalone-DCtRoTWg.js +675 -0
  40. package/chunks/standalone-DUDFTBqL.js +833 -0
  41. package/chunks/standalone-DhZkX9Td.js +2 -0
  42. package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
  43. package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
  44. package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
  45. package/chunks/standalone-_DeX21JJ.js +383 -0
  46. package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
  47. package/chunks/standalone-tDNy-SFH.js +281 -0
  48. package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
  49. package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
  50. package/chunks/table.compiler-tb914oj3.js +222 -0
  51. package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
  52. package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
  53. package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
  54. package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
  55. package/definitions.js +3 -3
  56. package/docs/operations/astrato-app-filter-bar.md +17 -17
  57. package/docs/operations/bar.md +989 -1071
  58. package/docs/operations/combo.md +717 -738
  59. package/docs/operations/date-picker.md +25 -25
  60. package/docs/operations/distribution-gauge.md +471 -607
  61. package/docs/operations/dot.md +787 -879
  62. package/docs/operations/filter.md +139 -163
  63. package/docs/operations/gauge.md +491 -627
  64. package/docs/operations/heatMap.md +834 -916
  65. package/docs/operations/histogram.md +166 -180
  66. package/docs/operations/iframe.md +5 -5
  67. package/docs/operations/image.md +16 -16
  68. package/docs/operations/index.md +12 -12
  69. package/docs/operations/line.md +811 -888
  70. package/docs/operations/number.md +470 -536
  71. package/docs/operations/pie.md +825 -958
  72. package/docs/operations/radar.md +599 -679
  73. package/docs/operations/sankey.md +462 -584
  74. package/docs/operations/scatter.md +823 -929
  75. package/docs/operations/shape.md +34 -34
  76. package/docs/operations/simpleTextObject.md +18 -25
  77. package/docs/operations/slider.md +33 -43
  78. package/docs/operations/table.md +1160 -1150
  79. package/docs/operations/tree.md +354 -361
  80. package/docs/operations/treemap.md +545 -637
  81. package/docs/operations/waterfall.md +369 -379
  82. package/docs/operations/word-cloud.md +512 -583
  83. package/getters.js +3 -3
  84. package/index.js +51 -51
  85. package/metadata.js +3 -3
  86. package/operations.js +7 -7
  87. package/package.json +80 -86
  88. package/src/definitions/index.d.ts +2 -2
  89. package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
  90. package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
  91. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  92. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  93. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  94. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  95. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  96. package/src/definitions/model/definitions/index.d.ts +23 -0
  97. package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
  98. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  99. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  100. package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
  101. package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
  102. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  103. package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
  104. package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
  105. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  106. package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
  107. package/chunks/Radio-Ciu-F4CU.js +0 -957
  108. package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
  109. package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
  110. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
  111. package/chunks/bar.compiler-oqaPzIut.js +0 -370
  112. package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
  113. package/chunks/event-bus-KiSiCJrC.js +0 -2683
  114. package/chunks/filter.compiler-CuLtc_02.js +0 -60
  115. package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
  116. package/chunks/interfaces-VUY4_yVO.js +0 -8742
  117. package/chunks/line-settings-DfYTUyPz.js +0 -4
  118. package/chunks/line.compiler-BpA_6Tc7.js +0 -188
  119. package/chunks/number.compiler-DbkWcG4S.js +0 -44
  120. package/chunks/pie-uv42Eqal.js +0 -10
  121. package/chunks/src-Dun_jXtz.js +0 -10295
  122. package/chunks/standalone-87YV_m9n.js +0 -687
  123. package/chunks/standalone-BLVAWLNJ.js +0 -385
  124. package/chunks/standalone-BPomtAVs.js +0 -2
  125. package/chunks/standalone-BXyBcUOQ.js +0 -2
  126. package/chunks/standalone-BllF4rDp.js +0 -383
  127. package/chunks/standalone-BqWyrnZI.js +0 -281
  128. package/chunks/standalone-DQxxNwF8.js +0 -675
  129. package/chunks/standalone-DS9T0FZ-.js +0 -830
  130. package/chunks/standalone-DzixzZAL.js +0 -411
  131. package/chunks/standalone-QJ1kKMnO.js +0 -6
  132. package/chunks/table.compiler-BrXkm4Fz.js +0 -213
  133. package/chunks/toInteger-DVZr-D1j.js +0 -11
  134. package/chunks/treemap-x_zmJoG7.js +0 -23
  135. package/chunks/types-dVVCsDWD.js +0 -4
  136. package/chunks/view-CLqWMV7Z.js +0 -156
  137. package/src/definitions/shared/index.d.ts +0 -5
  138. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
  139. package/src/definitions/shared/lib/registry/index.d.ts +0 -3
  140. package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
  141. package/src/definitions/shared/lib/types/index.d.ts +0 -3
  142. package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
  143. package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
  144. package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
  145. package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
  146. package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
  147. package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
  148. /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
  149. /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
@@ -1,31 +1,31 @@
1
1
  import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
2
- import { A as n, D as r, N as i, No as a, Oa as o, P as s, Ta as c, Ti as l, Wc as u, Xs as d, Yn as f, eo as p, on as m, pc as h, qs as g, ti as _ } from "./interfaces-VUY4_yVO.js";
3
- import { I as v, Ki as y, P as b, Zt as x, o as S, wi as C } from "./utils-Ba9T0TqC.js";
4
- import { n as w, r as T } from "./treemap-x_zmJoG7.js";
5
- import { Jt as E, M as ee, St as te, Vt as D, X as ne, Z as re, _t as ie, cn as ae, en as oe, et as se, i as ce, j as le, ln as ue, n as de, nn as O, rn as k, rt as fe, sn as A, tn as pe, un as j, wt as me } from "./escobar-BGqT1EsE.js";
6
- import { l as M, vt as N } from "./_baseFlatten-DPXPOrea.js";
7
- import { t as he } from "./coloring-C16AUZEi.js";
8
- import { t as ge } from "./set-coloring-datafield-B3uIS1Pe.js";
9
- import { a as _e, n as ve } from "./accessors-DemrDevR.js";
10
- function P() {
2
+ import { Gn as n, Ks as r, Mo as i, O as a, Qa as o, S as s, Sa as c, Si as l, T as u, Ta as d, Uc as f, Ys as p, Zr as m, fc as h, k as g, tn as _ } from "./isEqual-BDxAhUo8.js";
3
+ import { $t as v, Ei as y, I as b, P as x, Yi as S, o as C } from "./utils-Bg7K-t6K.js";
4
+ import { vm as w, ym as T } from "./handlers-VTBfIZYZ.js";
5
+ import { Vt as E, mt as D } from "./ui-DQWtv2iM.js";
6
+ import { Jt as O, M as ee, St as te, Vt as k, X as ne, Z as re, _t as ie, cn as ae, dn as A, et as oe, i as se, in as j, j as ce, ln as le, n as ue, nn as de, rn as M, rt as fe, tn as pe, un as me, wt as he } from "./escobar-eDjtGpkC.js";
7
+ import { t as ge } from "./coloring-B1XAfg6b.js";
8
+ import { t as _e } from "./set-coloring-datafield-B3uIS1Pe.js";
9
+ import { a as ve, n as ye } from "./accessors-DemrDevR.js";
10
+ function N() {
11
11
  return 0;
12
12
  }
13
- function F(e) {
13
+ function P(e) {
14
14
  return function() {
15
15
  return e;
16
16
  };
17
17
  }
18
- function ye(e) {
18
+ function be(e) {
19
19
  e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
20
20
  }
21
- function be(e, t, n, r, i) {
21
+ function xe(e, t, n, r, i) {
22
22
  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;
23
23
  }
24
- function xe(e, t, n, r, i) {
24
+ function Se(e, t, n, r, i) {
25
25
  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;
26
26
  }
27
- var Se = (1 + Math.sqrt(5)) / 2;
28
- function Ce(e, t, n, r, i, a) {
27
+ var Ce = (1 + Math.sqrt(5)) / 2;
28
+ function we(e, t, n, r, i, a) {
29
29
  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;) {
30
30
  p = i - n, m = a - r;
31
31
  do
@@ -42,22 +42,22 @@ function Ce(e, t, n, r, i, a) {
42
42
  value: g,
43
43
  dice: p < m,
44
44
  children: s.slice(u, d)
45
- }), 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;
45
+ }), c.dice ? xe(c, n, r, i, h ? r += m * g / h : a) : Se(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
46
46
  }
47
47
  return o;
48
48
  }
49
- var we = (function e(t) {
49
+ var Te = (function e(t) {
50
50
  function n(e, n, r, i, a) {
51
- Ce(t, e, n, r, i, a);
51
+ we(t, e, n, r, i, a);
52
52
  }
53
53
  return n.ratio = function(t) {
54
54
  return e((t = +t) > 1 ? t : 1);
55
55
  }, n;
56
- })(Se);
57
- function Te() {
58
- var e = we, t = !1, n = 1, r = 1, i = [0], a = P, o = P, s = P, c = P, l = P;
56
+ })(Ce);
57
+ function Ee() {
58
+ var e = Te, t = !1, n = 1, r = 1, i = [0], a = N, o = N, s = N, c = N, l = N;
59
59
  function u(e) {
60
- return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(ye), e;
60
+ return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(be), e;
61
61
  }
62
62
  function d(t) {
63
63
  var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
@@ -68,32 +68,32 @@ function Te() {
68
68
  }, u.size = function(e) {
69
69
  return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
70
70
  }, u.tile = function(t) {
71
- return arguments.length ? (e = ve(t), u) : e;
71
+ return arguments.length ? (e = ye(t), u) : e;
72
72
  }, u.padding = function(e) {
73
73
  return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
74
74
  }, u.paddingInner = function(e) {
75
- return arguments.length ? (a = typeof e == "function" ? e : F(+e), u) : a;
75
+ return arguments.length ? (a = typeof e == "function" ? e : P(+e), u) : a;
76
76
  }, u.paddingOuter = function(e) {
77
77
  return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
78
78
  }, u.paddingTop = function(e) {
79
- return arguments.length ? (o = typeof e == "function" ? e : F(+e), u) : o;
79
+ return arguments.length ? (o = typeof e == "function" ? e : P(+e), u) : o;
80
80
  }, u.paddingRight = function(e) {
81
- return arguments.length ? (s = typeof e == "function" ? e : F(+e), u) : s;
81
+ return arguments.length ? (s = typeof e == "function" ? e : P(+e), u) : s;
82
82
  }, u.paddingBottom = function(e) {
83
- return arguments.length ? (c = typeof e == "function" ? e : F(+e), u) : c;
83
+ return arguments.length ? (c = typeof e == "function" ? e : P(+e), u) : c;
84
84
  }, u.paddingLeft = function(e) {
85
- return arguments.length ? (l = typeof e == "function" ? e : F(+e), u) : l;
85
+ return arguments.length ? (l = typeof e == "function" ? e : P(+e), u) : l;
86
86
  }, u;
87
87
  }
88
- var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
88
+ var De = /* @__PURE__ */ e(S()), F = /* @__PURE__ */ function(e) {
89
89
  return e.cells = "key-cells", e.labels = "key-labels", e.selection = "key-selection", e;
90
- }({}), L = /* @__PURE__ */ function(e) {
90
+ }({}), I = /* @__PURE__ */ function(e) {
91
91
  return e.CellValue = "cellValue", e.Color = "color", e;
92
- }({}), R = /* @__PURE__ */ function(e) {
92
+ }({}), L = /* @__PURE__ */ function(e) {
93
93
  return e.MeasureFormatter = "total", e;
94
- }({}), z = /* @__PURE__ */ function(e) {
94
+ }({}), R = /* @__PURE__ */ function(e) {
95
95
  return e.Leaf = "leaf", e.Header = "header", e;
96
- }({}), De = (e, t, n, r, i, a, o) => {
96
+ }({}), Oe = (e, t, n, r, i, a, o) => {
97
97
  let s = e.measures.filter(l), c = (e.supportingMeasures ?? []).filter((e) => l(e)), u = h(s[0].dataItem), d = ee(c), f = e.dimensions.filter(l).map((e) => h(e.dataItem)), p = f[f.length - 1], m = f.slice(0, f.length - 1), g = {};
98
98
  m.forEach((e, t) => {
99
99
  g[`dim${t}`] = { field: e };
@@ -101,13 +101,13 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
101
101
  let _ = [{
102
102
  field: p,
103
103
  props: {
104
- [L.CellValue]: { field: u },
104
+ [I.CellValue]: { field: u },
105
105
  ...g,
106
106
  [u]: { field: u },
107
107
  ...d
108
108
  }
109
- }], v = e.coloring ? me(e, o) : null;
110
- v && (_[0].props[L.Color] = { field: v });
109
+ }], v = e.coloring ? he(e, o) : null;
110
+ v && (_[0].props[I.Color] = { field: v });
111
111
  let y = [{
112
112
  key: "coll",
113
113
  data: { extract: [..._] }
@@ -115,119 +115,119 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
115
115
  return {
116
116
  ...n,
117
117
  collections: y,
118
- formatters: { [R.MeasureFormatter]: e.measures[0].formatter ?? {
118
+ formatters: { [L.MeasureFormatter]: e.measures[0].formatter ?? {
119
119
  type: "excel-format",
120
120
  format: void 0
121
121
  } }
122
122
  };
123
- }, B = "treemap-alternates-switcher", V = "treemap-alternates-switcher", Oe = new M(N.fontLight), ke = new M(N.fontDark), H = (e) => f(e) || e.label || e.dataItem?.name || "Field", Ae = (e, t, n, r) => {
123
+ }, z = "treemap-alternates-switcher", B = "treemap-alternates-switcher", ke = new D(E.fontLight), Ae = new D(E.fontDark), V = (e) => n(e) || e.label || e.dataItem?.name || "Field", je = (e, t, n, r) => {
124
124
  let i = n ? h(n.dataItem) : void 0;
125
125
  return {
126
126
  type: "native",
127
- key: `${V}-interaction`,
127
+ key: `${B}-interaction`,
128
128
  events: { click(a) {
129
129
  let o = this.element.getBoundingClientRect(), s = {
130
130
  x: a.clientX - o.left,
131
131
  y: a.clientY - o.top
132
132
  }, c = this.chart.shapesAt(s, {
133
133
  components: [{
134
- key: V,
134
+ key: B,
135
135
  propagation: "stop"
136
136
  }],
137
137
  propagation: "stop"
138
138
  }).find((e) => e.data?.target === "measure" || e.data?.target === "dimension");
139
139
  if (c?.data?.target === "measure" && n && i) {
140
- r(j.Text, "click", `text-${i}`, a, c, {
141
- dataItemType: u.Measure,
140
+ r(A.Text, "click", `text-${i}`, a, c, {
141
+ dataItemType: f.Measure,
142
142
  dataItemRole: n.role
143
143
  });
144
144
  return;
145
145
  }
146
- c?.data?.target === "dimension" && e && r(j.Text, "click", `text-${e}`, a, c, {
147
- dataItemType: u.Dimension,
146
+ c?.data?.target === "dimension" && e && r(A.Text, "click", `text-${e}`, a, c, {
147
+ dataItemType: f.Dimension,
148
148
  dataItemRole: t
149
149
  });
150
150
  } }
151
151
  };
152
- }, je = (e, t, n, r, i, o, s, c) => {
153
- let d = e.dimensions.filter(l), f = e.measures.filter(l), p = d[0], m = f[0], g = p ? h(p.dataItem) : void 0;
154
- if (!p && !m) return n;
155
- let v = _(e.dimensions, e.enableAlternate, o.isPrintMode), y = _(e.measures, e.enableAlternate, o.isPrintMode);
152
+ }, Me = (e, t, n, r, a, o, s, c) => {
153
+ let u = e.dimensions.filter(l), d = e.measures.filter(l), p = u[0], g = d[0], _ = p ? h(p.dataItem) : void 0;
154
+ if (!p && !g) return n;
155
+ let v = m(e.dimensions, e.enableAlternate, o.isPrintMode), y = m(e.measures, e.enableAlternate, o.isPrintMode);
156
156
  if (!v && !y) return n;
157
- let b = o?.isPrintMode ?? !1, x = v ? d.map((e) => H(e)).join(", ") : void 0, S = y && m ? H(m) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", w = new M(C).betterContrast(new M(t.fonts.general.color), Oe, ke).rgb(), T = {
158
- type: B,
159
- key: V,
160
- dimensionDataItemType: g ? u.Dimension : void 0,
157
+ let b = o?.isPrintMode ?? !1, x = v ? u.map((e) => V(e)).join(", ") : void 0, S = y && g ? V(g) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", w = new D(C).betterContrast(new D(t.fonts.general.color), ke, Ae).rgb(), T = {
158
+ type: z,
159
+ key: B,
160
+ dimensionDataItemType: _ ? f.Dimension : void 0,
161
161
  dimensionDataItemRole: p?.role,
162
- measureDataItemType: m ? u.Measure : void 0,
163
- measureDataItemRole: m?.role,
162
+ measureDataItemType: g ? f.Measure : void 0,
163
+ measureDataItemRole: g?.role,
164
164
  layout: {
165
- dock: a.Bottom,
165
+ dock: i.Bottom,
166
166
  displayOrder: 0
167
167
  },
168
168
  settings: {
169
- dimensionLabel: x ? D(x) : void 0,
170
- measureLabel: S ? D(S) : void 0,
169
+ dimensionLabel: x ? k(x) : void 0,
170
+ measureLabel: S ? k(S) : void 0,
171
171
  backgroundColor: C,
172
172
  fontFamily: t.fonts.general.fontFamily,
173
- fontSize: `${N.fieldTitle.fontSize}px`,
173
+ fontSize: `${E.fieldTitle.fontSize}px`,
174
174
  color: w,
175
175
  paddingLeft: 5,
176
176
  paddingRight: 5,
177
177
  paddingVertical: 5,
178
178
  labelGap: 12
179
179
  }
180
- }, E = c && !b ? [Ae(g, p?.role, m, c)] : [];
180
+ }, O = c && !b ? [je(_, p?.role, g, c)] : [];
181
181
  return {
182
182
  ...n,
183
183
  components: [...n.components, T],
184
- interactions: n.interactions ? [...n.interactions, ...E] : [...E]
184
+ interactions: n.interactions ? [...n.interactions, ...O] : [...O]
185
185
  };
186
- }, Me = /* @__PURE__ */ t(((e, t) => {
187
- var n = s(), r = m();
186
+ }, Ne = /* @__PURE__ */ t(((e, t) => {
187
+ var n = g(), r = _();
188
188
  function i(e, t, a, o, s, c) {
189
189
  return r(e) && r(t) && (c.set(t, e), n(e, t, void 0, i, c), c.delete(t)), e;
190
190
  }
191
191
  t.exports = i;
192
- })), U = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
193
- var a = i(), o = n(), s = Me(), c = r();
194
- t.exports = o(function(e) {
195
- return e.push(void 0, s), a(c, void 0, e);
192
+ })), H = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
193
+ var n = a(), r = u(), i = Ne(), o = s();
194
+ t.exports = r(function(e) {
195
+ return e.push(void 0, i), n(o, void 0, e);
196
196
  });
197
- })))()), Ne = () => ({
197
+ })))()), Pe = () => ({
198
198
  trigger: [{
199
- on: ae.Tap,
200
- action: A.Toggle,
199
+ on: le.Tap,
200
+ action: ae.Toggle,
201
201
  globalPropagation: "stop",
202
202
  propagation: "stop",
203
- contexts: [k.Selection]
203
+ contexts: [j.Selection]
204
204
  }, {
205
- on: ae.Over,
206
- action: A.Set,
205
+ on: le.Over,
206
+ action: ae.Set,
207
207
  globalPropagation: "stop",
208
208
  propagation: "stop",
209
- contexts: [k.Highlight]
209
+ contexts: [j.Highlight]
210
210
  }],
211
211
  consume: [{
212
- context: k.Selection,
212
+ context: j.Selection,
213
213
  data: [""],
214
- mode: ue.Or,
214
+ mode: me.Or,
215
215
  style: { inactive: { fill: (e) => {
216
216
  let t = !e.fill || e.fill === "none" || e.fill === "transparent";
217
217
  switch (!0) {
218
218
  case t: return e.fill;
219
- default: return oe(pe(e.fill), .25);
219
+ default: return pe(de(e.fill), .25);
220
220
  }
221
221
  } } }
222
222
  }]
223
- }), Pe = (e, t, n, r, i, a) => {
224
- let o = e.dimensions.filter(l), s = e.measures.filter(l).map((e) => h(e.dataItem)), c = new he(e, t, i?.[0]?.itemsNotAffectedByFiltering), u = [c.MAIN_FIELD];
223
+ }), Fe = (e, t, n, r, i, a) => {
224
+ let o = e.dimensions.filter(l), s = e.measures.filter(l).map((e) => h(e.dataItem)), c = new ge(e, t, i?.[0]?.itemsNotAffectedByFiltering), u = [c.MAIN_FIELD];
225
225
  o.slice(0, o.length - 1).forEach((e, t) => {
226
226
  u.push(`dim${t}`);
227
227
  });
228
- let { labeling: f } = e.treemapSettings, p = (0, U.default)({}, f?.header, T.labeling.header), m = (0, U.default)({}, f?.leaf, T.labeling.leaf), g = {
229
- key: I.cells,
230
- type: j.Treemap,
228
+ let { labeling: d } = e.treemapSettings, f = (0, H.default)({}, d?.header, T.labeling.header), m = (0, H.default)({}, d?.leaf, T.labeling.leaf), g = {
229
+ key: F.cells,
230
+ type: A.Treemap,
231
231
  data: { collection: "coll" },
232
232
  settings: {
233
233
  numDimensions: o.length || 0,
@@ -236,24 +236,24 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
236
236
  cellOrder: e.treemapSettings.cellOrder,
237
237
  branchColor: e.treemapSettings.branchColor,
238
238
  headerLabels: {
239
- show: p.show,
240
- numLevels: p.numLevels,
241
- fontSize: E(p.fontSize, void 0, w.labelFontSizeMin, w.labelFontSizeMax)
239
+ show: f.show,
240
+ numLevels: f.numLevels,
241
+ fontSize: O(f.fontSize, void 0, w.labelFontSizeMin, w.labelFontSizeMax)
242
242
  },
243
243
  leafLabels: {
244
244
  show: m.show,
245
- fontSize: E(m.fontSize, void 0, w.labelFontSizeMin, w.labelFontSizeMax),
245
+ fontSize: O(m.fontSize, void 0, w.labelFontSizeMin, w.labelFontSizeMax),
246
246
  showDimension: m.showDimensionValue,
247
247
  showMeasure: m.showMeasureValue,
248
248
  dynamicFontSizeEnabled: m.dynamicFontSizeEnabled
249
249
  },
250
250
  leaf: { fill: c.getColorDefinition({
251
- ref: L.Color,
252
- dataItemId: e.coloring.type === d.Single ? s[0] : void 0,
251
+ ref: I.Color,
252
+ dataItemId: e.coloring.type === p.Single ? s[0] : void 0,
253
253
  overwriteSources: u
254
254
  }) }
255
255
  },
256
- brush: a.disable?.brushing === !0 ? void 0 : Ne(),
256
+ brush: a.disable?.brushing === !0 ? void 0 : Pe(),
257
257
  animations: {
258
258
  presetId: "simple-opacity",
259
259
  enabled: !0
@@ -263,10 +263,10 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
263
263
  ...n,
264
264
  components: [...n.components, g]
265
265
  };
266
- }, W = new M(N.fontLight), G = new M(N.fontDark), Fe = (e, t, n) => {
267
- let r = new M(n.fonts.general.color), { showDimensionValue: i, showMeasureValue: a, fontSize: o, dynamicFontSizeEnabled: s, show: c } = t.leaf, l = s ? ({ node: e }) => e.desc.dynamicFontSize : E(o, void 0, w.labelFontSizeMin, w.labelFontSizeMax);
266
+ }, U = new D(E.fontLight), W = new D(E.fontDark), Ie = (e, t, n) => {
267
+ let r = new D(n.fonts.general.color), { showDimensionValue: i, showMeasureValue: a, fontSize: o, dynamicFontSizeEnabled: s, show: c } = t.leaf, l = s ? ({ node: e }) => e.desc.dynamicFontSize : O(o, void 0, w.labelFontSizeMin, w.labelFontSizeMax);
268
268
  return {
269
- component: I.cells,
269
+ component: F.cells,
270
270
  selector: e,
271
271
  strategy: {
272
272
  type: "rows",
@@ -280,7 +280,7 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
280
280
  return e.attrs?.id;
281
281
  },
282
282
  fill({ node: e }) {
283
- return new M(e.desc.background).betterContrast(r, W, G).rgb();
283
+ return new D(e.desc.background).betterContrast(r, U, W).rgb();
284
284
  },
285
285
  linkData({ node: e }) {
286
286
  return e.data;
@@ -293,22 +293,22 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
293
293
  return `${e.attrs?.id}::value`;
294
294
  },
295
295
  fill({ node: e }) {
296
- return new M(e.desc.background).betterContrast(r, W, G).rgb();
296
+ return new D(e.desc.background).betterContrast(r, U, W).rgb();
297
297
  },
298
298
  linkData({ node: e }) {
299
299
  return e.data;
300
300
  },
301
301
  label({ node: e, formatter: t }) {
302
- return t(R.MeasureFormatter)(e.desc?.total, void 0, e.data);
302
+ return t(L.MeasureFormatter)(e.desc?.total, void 0, e.data);
303
303
  }
304
304
  } : null].filter(Boolean)
305
305
  }
306
306
  }
307
307
  };
308
- }, K = 128, Ie = (e, t, n) => {
309
- let r = new M(n.fonts.general.color), i = E(t.header.fontSize, void 0, w.labelFontSizeMin, w.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
308
+ }, G = 128, Le = (e, t, n) => {
309
+ let r = new D(n.fonts.general.color), i = O(t.header.fontSize, void 0, w.labelFontSizeMin, w.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
310
310
  return {
311
- component: I.cells,
311
+ component: F.cells,
312
312
  selector: e,
313
313
  strategy: {
314
314
  type: "rows",
@@ -322,28 +322,28 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
322
322
  return e.attrs?.id;
323
323
  },
324
324
  fill({ node: e }) {
325
- return new M(e.desc.background).betterContrast(r, W, G).rgb();
325
+ return new D(e.desc.background).betterContrast(r, U, W).rgb();
326
326
  },
327
327
  linkData({ node: e }) {
328
328
  return e.data;
329
329
  },
330
330
  label({ node: e, formatter: t }) {
331
- let n = o ? t(R.MeasureFormatter)(e.desc?.total) : void 0;
332
- return [a ? e.desc?.label?.length > K - 1 ? `${e.desc?.label?.substring(0, K - 1).replace(/\s+$/, "")}…` : e.desc?.label : void 0, n].filter(Boolean).join(": ");
331
+ let n = o ? t(L.MeasureFormatter)(e.desc?.total) : void 0;
332
+ return [a ? e.desc?.label?.length > G - 1 ? `${e.desc?.label?.substring(0, G - 1).replace(/\s+$/, "")}…` : e.desc?.label : void 0, n].filter(Boolean).join(": ");
333
333
  }
334
334
  }]
335
335
  }
336
336
  }
337
337
  };
338
- }, Le = (e, t, n, r, i, a) => {
339
- let o = (0, U.default)({}, e.treemapSettings?.labeling, T.labeling), s = {
340
- type: j.Labels,
341
- key: I.labels,
338
+ }, Re = (e, t, n, r, i, a) => {
339
+ let o = (0, H.default)({}, e.treemapSettings?.labeling, T.labeling), s = {
340
+ type: A.Labels,
341
+ key: F.labels,
342
342
  layout: { displayOrder: 2 },
343
- settings: { sources: [Fe(`.${z.Leaf}`, o, t), Ie(`.${z.Header}`, o, t)] },
343
+ settings: { sources: [Ie(`.${R.Leaf}`, o, t), Le(`.${R.Header}`, o, t)] },
344
344
  style: { label: "$label" },
345
345
  brush: a.disable?.brushing === !0 ? void 0 : { consume: [{
346
- context: k.Selection,
346
+ context: j.Selection,
347
347
  data: [""],
348
348
  style: { inactive: { opacity: .3 } }
349
349
  }] },
@@ -356,27 +356,27 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
356
356
  ...n,
357
357
  components: [...n.components, s]
358
358
  };
359
- }, Re = () => ({ consume: [{
360
- context: k.Selection,
359
+ }, ze = () => ({ consume: [{
360
+ context: j.Selection,
361
361
  data: [""],
362
- mode: ue.Or,
362
+ mode: me.Or,
363
363
  style: {
364
364
  active: {
365
365
  strokeWidth: 2,
366
- stroke: o.mainDarkNavy
366
+ stroke: d.mainDarkNavy
367
367
  },
368
368
  inactive: { strokeWidth: 0 }
369
369
  }
370
- }] }), ze = (e, t, n, r, i, a) => {
370
+ }] }), Be = (e, t, n, r, i, a) => {
371
371
  let o = {
372
- key: I.selection,
373
- type: j.Deferred,
372
+ key: F.selection,
373
+ type: A.Deferred,
374
374
  layout: { displayOrder: 10 },
375
375
  settings: { sources: [{
376
- component: I.cells,
377
- selector: O.Rect
376
+ component: F.cells,
377
+ selector: M.Rect
378
378
  }] },
379
- brush: a.disable?.brushing === !0 ? void 0 : Re(),
379
+ brush: a.disable?.brushing === !0 ? void 0 : ze(),
380
380
  animations: {
381
381
  presetId: "simple-opacity",
382
382
  enabled: !0
@@ -386,16 +386,16 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
386
386
  ...n,
387
387
  components: [...n.components, o]
388
388
  };
389
- }, Be = (e, t, n, r, i, a, o) => {
389
+ }, Ve = (e, t, n, r, i, a, o) => {
390
390
  if (!e.dimensions.filter(l)[0]) return n;
391
- let s = n.collections[0]?.data.extract[0]?.props[L.Color], c;
391
+ let s = n.collections[0]?.data.extract[0]?.props[I.Color], c;
392
392
  s?.field && (c = s?.field);
393
393
  let u = {};
394
- return u = te(ge(e, c), t, u, n.collections, o), {
394
+ return u = te(_e(e, c), t, u, n.collections, o), {
395
395
  ...n,
396
396
  scales: u
397
397
  };
398
- }, Ve = (e, t, n) => {
398
+ }, He = (e, t, n) => {
399
399
  let r = e.dimensions.filter(l), i = e.measures.filter(l);
400
400
  if (!r[0] || !i[0]) return n;
401
401
  let a = {
@@ -410,7 +410,7 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
410
410
  },
411
411
  $title: {
412
412
  "@extend": "$label",
413
- fontSize: `${N.fieldTitle.fontSize}px`,
413
+ fontSize: `${E.fieldTitle.fontSize}px`,
414
414
  padding: 4
415
415
  }
416
416
  };
@@ -418,41 +418,41 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
418
418
  ...n,
419
419
  style: a
420
420
  };
421
- }, He = (e, t) => t.data.label, q = (e, t, n, r, i, a) => {
421
+ }, Ue = (e, t) => t.data.label, K = (e, t, n, r, i, a) => {
422
422
  let o = t;
423
423
  return !r && i ? o = n.formatter(i)(t, void 0, a) : r && (o = n.formatter(fe(i))(t, void 0, a)), {
424
424
  label: e,
425
425
  value: o
426
426
  };
427
- }, Ue = (e, t, n, r, i, a, o, s) => {
428
- let c = [], u = e.filter(l), d = se(n), p = u.filter((e) => !d.has(h(e.dataItem)))[0] ?? u[0], m = (p ? f(p) : "") || p?.label || p?.dataItem.name || "", g = p ? m : "Count", _ = Number(t.desc?.total), v = t.data[L.CellValue]?.source ? t.data : void 0;
429
- return c.push(q(g, _, n, s, R.MeasureFormatter, v)), u.filter((e) => d.has(h(e.dataItem))).forEach((e) => {
430
- let r = h(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r);
431
- if (!i) return;
432
- let a = f(e) || e.label || e.dataItem.name || "", o = Number(t.data[i]?.value);
433
- c.push(q(a, o, n, s, e.formatter, t.data));
434
- }), c;
435
- }, We = (e, t, n, r, i) => {
427
+ }, We = (e, t, r, i, a, o, s, c) => {
428
+ let u = [], d = e.filter(l), f = oe(r), p = d.filter((e) => !f.has(h(e.dataItem)))[0] ?? d[0], m = (p ? n(p) : "") || p?.label || p?.dataItem.name || "", g = p ? m : "Count", _ = Number(t.desc?.total), v = t.data[I.CellValue]?.source ? t.data : void 0;
429
+ return u.push(K(g, _, r, c, L.MeasureFormatter, v)), d.filter((e) => f.has(h(e.dataItem))).forEach((e) => {
430
+ let i = h(e.dataItem), a = Object.keys(t.data).find((e) => t.data[e]?.source?.field === i);
431
+ if (!a) return;
432
+ let o = n(e) || e.label || e.dataItem.name || "", s = Number(t.data[a]?.value);
433
+ u.push(K(o, s, r, c, e.formatter, t.data));
434
+ }), u;
435
+ }, Ge = (e, t, n, r, i) => {
436
436
  let a = {
437
437
  placement: () => ({
438
438
  area: "target",
439
439
  type: "pointer"
440
440
  }),
441
- filter: (e) => e.filter((e) => e.type !== O.Text && e.key === I.cells)
441
+ filter: (e) => e.filter((e) => e.type !== M.Text && e.key === F.cells)
442
442
  };
443
- return a.extract = re(e, t, Ue, He), ne(e, t, n, a, "tooltip", i);
444
- }, Ge = class extends le {
443
+ return a.extract = re(e, t, We, Ue), ne(e, t, n, a, "tooltip", i);
444
+ }, Ke = class extends ce {
445
445
  constructor() {
446
446
  super([
447
- De,
447
+ Oe,
448
+ Ve,
449
+ Fe,
448
450
  Be,
449
- Pe,
450
- ze,
451
451
  ie,
452
- je,
453
- Le,
454
- Ve,
455
- We
452
+ Me,
453
+ Re,
454
+ He,
455
+ Ge
456
456
  ]);
457
457
  }
458
458
  preCompile(e, t) {
@@ -463,7 +463,7 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
463
463
  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.");
464
464
  });
465
465
  }
466
- }, J = {
466
+ }, q = {
467
467
  numDimensions: 0,
468
468
  cellPadding: 2,
469
469
  cellRadius: 0,
@@ -477,14 +477,14 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
477
477
  fontSize: 11,
478
478
  numLevels: 1
479
479
  },
480
- leaf: { fill: o.mainDarkNavy }
481
- }, Y = (e) => Array(Math.max(0, e - 1)).fill(0).map((e, t) => `dim${t}`), Ke = "__virtual__::__root__", qe = (e, t) => {
482
- let n = Y(e.numDimensions), r = {
480
+ leaf: { fill: d.mainDarkNavy }
481
+ }, J = (e) => Array(Math.max(0, e - 1)).fill(0).map((e, t) => `dim${t}`), qe = "__virtual__::__root__", Je = (e, t) => {
482
+ let n = J(e.numDimensions), r = {
483
483
  data: {
484
484
  label: "__root__",
485
485
  value: null
486
486
  },
487
- id: Ke,
487
+ id: qe,
488
488
  children: [],
489
489
  fill: "",
490
490
  opacity: 0
@@ -503,49 +503,49 @@ var Ee = /* @__PURE__ */ e(y()), I = /* @__PURE__ */ function(e) {
503
503
  fill: e.branchColor ?? "rgba(150, 150, 150, 0.3)"
504
504
  })), t]);
505
505
  });
506
- let o = _e(r);
506
+ let o = ve(r);
507
507
  return o.each((e) => delete e.data.children), o;
508
- }, X = (e) => e + Math.max(12, e * .5), Z = (e, t, n) => e.y1 - e.y0 >= t + 12 && e.x1 - e.x0 >= n * 2;
509
- function Je(e) {
510
- let { cellPadding: t, headerLabels: n } = e, { fontSize: r } = n, i = X(r);
511
- 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 && Z(n, i, r) ? t + i : n.depth ? t : 0)(e.root);
508
+ }, Y = (e) => e + Math.max(12, e * .5), X = (e, t, n) => e.y1 - e.y0 >= t + 12 && e.x1 - e.x0 >= n * 2;
509
+ function Ye(e) {
510
+ let { cellPadding: t, headerLabels: n } = e, { fontSize: r } = n, i = Y(r);
511
+ Ee().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 && X(n, i, r) ? t + i : n.depth ? t : 0)(e.root);
512
512
  }
513
- var Ye = 8, Xe = "rgba(250, 250, 250, 0.8)", Ze = "rgba(60, 60, 60, 0.8)", Qe = .12, $e = 24, et = (e, t) => {
513
+ var Xe = 8, Ze = "rgba(250, 250, 250, 0.8)", Qe = "rgba(60, 60, 60, 0.8)", $e = .12, et = 24, tt = (e, t) => {
514
514
  let n = null, r = null;
515
- return !e.height && t.leafLabels.show ? (r = Qe * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels.dynamicFontSizeEnabled && r < Ye ? null : z.Leaf) : e.height && t.headerLabels.show && t.headerLabels.numLevels >= e.depth && (n = z.Header), {
515
+ return !e.height && t.leafLabels.show ? (r = $e * Math.sqrt((e.y1 - e.y0) * (e.x1 - e.x0)), n = t.leafLabels.dynamicFontSizeEnabled && r < Xe ? null : R.Leaf) : e.height && t.headerLabels.show && t.headerLabels.numLevels >= e.depth && (n = R.Header), {
516
516
  labelTarget: n,
517
517
  leafDynamicFontSize: r
518
518
  };
519
- }, tt = (e, t) => {
520
- let n = [...Y(e.numDimensions), "cell"].map((t, n) => Math.max(0, e.cellRadius - e.cellPadding * n * .25)), r = new M(e.branchColor ?? "rgba(150, 150, 150, 0.3)").isDark() ? Ze : Xe, i = X(e.headerLabels.fontSize);
519
+ }, nt = (e, t) => {
520
+ let n = [...J(e.numDimensions), "cell"].map((t, n) => Math.max(0, e.cellRadius - e.cellPadding * n * .25)), r = new D(e.branchColor ?? "rgba(150, 150, 150, 0.3)").isDark() ? Qe : Ze, i = Y(e.headerLabels.fontSize);
521
521
  return t.descendants().slice(1).filter((e) => (e.x1 - e.x0) * (e.y1 - e.y0) >= 1).map((t) => {
522
- let a = t.children?.length > 0, s = t.y1 - t.y0, { labelTarget: c, leafDynamicFontSize: l } = et(t, e), u = t.data.fill || o.black, d = n[t.depth - 1];
522
+ let a = t.children?.length > 0, o = t.y1 - t.y0, { labelTarget: s, leafDynamicFontSize: c } = tt(t, e), l = t.data.fill || d.black, u = n[t.depth - 1];
523
523
  return {
524
524
  id: t.data.id,
525
- type: O.Rect,
526
- tag: c === z.Header ? Z(t, i, e.headerLabels.fontSize) ? c : void 0 : c && s >= $e ? c : void 0,
525
+ type: M.Rect,
526
+ tag: s === R.Header ? X(t, i, e.headerLabels.fontSize) ? s : void 0 : s && o >= et ? s : void 0,
527
527
  x: t.x0,
528
528
  y: t.y0,
529
- rx: d,
530
- ry: d,
529
+ rx: u,
530
+ ry: u,
531
531
  width: t.x1 - t.x0,
532
532
  height: t.y1 - t.y0,
533
- fill: u,
533
+ fill: l,
534
534
  stroke: r,
535
535
  strokeWidth: +!a,
536
536
  opacity: t.data.opacity ?? 1,
537
537
  desc: {
538
- background: u,
538
+ background: l,
539
539
  label: t.data.data.label,
540
540
  total: t.value,
541
- dynamicFontSize: l
541
+ dynamicFontSize: c
542
542
  },
543
543
  data: t.data.data
544
544
  };
545
545
  });
546
- }, nt = {
547
- [p.DESC]: (e, t) => t.height - e.height || t.value - e.value,
548
- [p.ASC]: (e, t) => t.height - e.height || e.value - t.value
546
+ }, Z = {
547
+ [o.DESC]: (e, t) => t.height - e.height || t.value - e.value,
548
+ [o.ASC]: (e, t) => t.height - e.height || e.value - t.value
549
549
  }, rt = {
550
550
  require: [
551
551
  "resolver",
@@ -553,7 +553,7 @@ var Ye = 8, Xe = "rgba(250, 250, 250, 0.8)", Ze = "rgba(60, 60, 60, 0.8)", Qe =
553
553
  "renderer"
554
554
  ],
555
555
  defaultSettings: {
556
- settings: J,
556
+ settings: q,
557
557
  style: {
558
558
  title: "$title",
559
559
  label: "$label"
@@ -562,15 +562,15 @@ var Ye = 8, Xe = "rgba(250, 250, 250, 0.8)", Ze = "rgba(60, 60, 60, 0.8)", Qe =
562
562
  render({ data: e }) {
563
563
  let { settings: t } = this.settings, { items: n } = this.resolver.resolve({
564
564
  data: { items: e.items },
565
- defaults: { ...J.leaf },
565
+ defaults: { ...q.leaf },
566
566
  settings: { ...t.leaf }
567
- }), r = qe(t, n);
568
- return r.sum((e) => e.children?.length ? 0 : e.data.cellValue?.value || 0), t.cellOrder && nt[t.cellOrder] && r.sort(nt[t.cellOrder]), Je({
567
+ }), r = Je(t, n);
568
+ return r.sum((e) => e.children?.length ? 0 : e.data.cellValue?.value || 0), t.cellOrder && Z[t.cellOrder] && r.sort(Z[t.cellOrder]), Ye({
569
569
  cellPadding: t.cellPadding,
570
570
  rect: this.rect,
571
571
  root: r,
572
572
  headerLabels: t.headerLabels
573
- }), tt(t, r);
573
+ }), nt(t, r);
574
574
  }
575
575
  }, it = " ▼", Q = "...", $ = (e, t, n, r) => {
576
576
  let i = {
@@ -594,7 +594,7 @@ var Ye = 8, Xe = "rgba(250, 250, 250, 0.8)", Ze = "rgba(60, 60, 60, 0.8)", Qe =
594
594
  defaultSettings: { settings: {
595
595
  dimensionLabel: "",
596
596
  measureLabel: "",
597
- backgroundColor: J.branchColor,
597
+ backgroundColor: q.branchColor,
598
598
  fontSize: "12px",
599
599
  color: "#000",
600
600
  paddingLeft: 5,
@@ -664,7 +664,7 @@ var Ye = 8, Xe = "rgba(250, 250, 250, 0.8)", Ze = "rgba(60, 60, 60, 0.8)", Qe =
664
664
  }
665
665
  };
666
666
  function st(e) {
667
- e.component(j.Treemap, rt), e.component(B, ot);
667
+ e.component(A.Treemap, rt), e.component(z, ot);
668
668
  }
669
669
  var ct = {
670
670
  require: [
@@ -678,7 +678,7 @@ var ct = {
678
678
  return e.sources.forEach((e) => {
679
679
  this.chart.component(e.component) && this.chart.findShapes(e.selector).filter((t) => t.key === e.component).forEach((e) => {
680
680
  t.push({
681
- type: O.Rect,
681
+ type: M.Rect,
682
682
  height: e.attrs.height,
683
683
  width: e.attrs.width,
684
684
  x: e.attrs.x,
@@ -686,7 +686,7 @@ var ct = {
686
686
  rx: e.attrs.rx,
687
687
  ry: e.attrs.ry,
688
688
  fill: "transparent",
689
- stroke: o.mainDarkNavy,
689
+ stroke: d.mainDarkNavy,
690
690
  strokeWidth: 0,
691
691
  data: e.data,
692
692
  collider: { type: null }
@@ -696,29 +696,29 @@ var ct = {
696
696
  }
697
697
  };
698
698
  function lt(e) {
699
- e.component(j.Deferred, ct);
699
+ e.component(A.Deferred, ct);
700
700
  }
701
- var ut = C(), dt = x(({ vSpec: e, vTheme: t, data: n, elementSize: r, vizProperties: i }) => {
702
- let a = b(), [o] = (0, Ee.useState)(() => new Ge()), s = v(), l = t || c, u = S(), d = de(), f = u.targetDataItemId;
703
- if (!f && u.targetInternalKey) {
704
- let t = e.dimensions.find((e) => e.dataItem.internalKey === u.targetInternalKey);
705
- t && (f = h(t.dataItem));
701
+ var ut = y(), dt = v(({ vSpec: e, vTheme: t, data: n, elementSize: i, vizProperties: a }) => {
702
+ let o = x(), [s] = (0, De.useState)(() => new Ke()), l = b(), u = t || c, d = C(), f = ue(), p = d.targetDataItemId;
703
+ if (!p && d.targetInternalKey) {
704
+ let t = e.dimensions.find((e) => e.dataItem.internalKey === d.targetInternalKey);
705
+ t && (p = h(t.dataItem));
706
706
  }
707
- let p = {
708
- ...i,
709
- valuePickerMode: !!u.activeKey,
710
- valuePickerTargetDataItemId: f
711
- }, m = {
712
- ...i,
707
+ let m = {
708
+ ...a,
709
+ valuePickerMode: !!d.activeKey,
710
+ valuePickerTargetDataItemId: p
711
+ }, g = {
712
+ ...a,
713
713
  disable: {
714
- ...i.disable,
714
+ ...a.disable,
715
715
  multiDimSelection: !0
716
716
  }
717
- }, _ = o.compile(e, l, n, r, p, g.Treemap, a, s, d);
718
- return _ ? /* @__PURE__ */ (0, ut.jsx)(ce, {
719
- config: m,
717
+ }, _ = s.compile(e, u, n, i, m, r.Treemap, o, l, f);
718
+ return _ ? /* @__PURE__ */ (0, ut.jsx)(se, {
719
+ config: g,
720
720
  definition: _,
721
- size: r,
721
+ size: i,
722
722
  vSpec: e,
723
723
  escobarPlugins: [st, lt]
724
724
  }) : null;