@astrato-io/visualizations 0.10.1 → 0.11.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 (133) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +19 -1
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +6 -145
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
  15. package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
  18. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
  21. package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
  22. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
  23. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
  24. package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
  25. package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
  26. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
  29. package/chunks/line.compiler-DCv3h42f.js +198 -0
  30. package/chunks/linear-Bq_r9l5S.js +264 -0
  31. package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
  38. package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
  42. package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
  49. package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
  50. package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
  59. package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
  60. package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
  61. package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
  64. package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
  65. package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
  66. package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
  67. package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
  71. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
  73. package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
  74. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
  75. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +30 -1
  79. package/docs/operations/combo.md +30 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +1 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +1 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +5 -4
  90. package/docs/operations/line.md +30 -1
  91. package/docs/operations/map.md +5274 -0
  92. package/docs/operations/number.md +1 -1
  93. package/docs/operations/pie.md +1 -1
  94. package/docs/operations/radar.md +1 -1
  95. package/docs/operations/sankey.md +1 -1
  96. package/docs/operations/scatter.md +1 -1
  97. package/docs/operations/shape.md +1 -1
  98. package/docs/operations/simpleTextObject.md +1 -1
  99. package/docs/operations/slider.md +1 -1
  100. package/docs/operations/table.md +1 -1
  101. package/docs/operations/tree.md +1 -1
  102. package/docs/operations/treemap.md +1 -1
  103. package/docs/operations/waterfall.md +1 -1
  104. package/docs/operations/word-cloud.md +1 -1
  105. package/getters.js +3 -3
  106. package/index.js +524 -500
  107. package/metadata.js +2 -2
  108. package/operations.js +6 -6
  109. package/package.json +73 -68
  110. package/src/definitions/index.d.ts +1 -7
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  112. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  117. package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
  118. package/src/visualization-catalog.d.ts +3 -0
  119. package/styles.css +1 -1
  120. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  121. package/chunks/defaults-Dtk7fg3C.js +0 -3
  122. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  123. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  124. package/chunks/standalone-4MsKiqs0.js +0 -355
  125. package/chunks/standalone-B794g9pE.js +0 -1012
  126. package/chunks/standalone-BA2YXyJS.js +0 -422
  127. package/chunks/standalone-BgumbdaJ2.js +0 -357
  128. package/chunks/standalone-Blh4qejk.js +0 -689
  129. package/chunks/standalone-DH0xTEes.js +0 -2
  130. package/chunks/standalone-DcnHjNnC.js +0 -2
  131. package/chunks/standalone-DrHdGkY7.js +0 -762
  132. package/chunks/standalone-c_rROMtx.js +0 -287
  133. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,11 +1,11 @@
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";
2
+ import { Cc as n, Ea as r, Ec as i, Hc as a, Na as o, Uo as s, cr as c, fa as l, ja as u, js as d, ln as f, ri as p, so as m, wa as h, x as g, xc as _, y as v, yl as y } from "./visualization-filters-BwS0xUqs.js";
3
+ import { Br as b, I as x, Mt as S, P as C, li as ee, s as w } from "./utils-BdJrEeIQ.js";
4
+ import { n_ as T, r_ as E } from "./handlers-C63NVo7i.js";
5
+ import "./logger-Bc-DqDM_.js";
6
+ import { An as D, Cn as O, L as te, On as ne, Pt as re, R as ie, Sn as k, V as ae, Vt as oe, _ as se, _n as A, bt as ce, hn as le, i as ue, jn as j, kn as M, mn as de, n as fe, on as N, v as pe, wn as P, zt as me } from "./escobar-cQ1eQ64G.js";
7
+ import { _ as F } from "./MenuOption-B-6K7kks.js";
8
+ import { t as he } from "./coloring-BOiP0rmn.js";
9
9
  import { t as ge } from "./set-coloring-datafield-B3uIS1Pe.js";
10
10
  import { a as _e, n as ve } from "./accessors-DemrDevR.js";
11
11
  function I() {
@@ -86,7 +86,7 @@ function Te() {
86
86
  return arguments.length ? (l = typeof e == "function" ? e : L(+e), u) : l;
87
87
  }, u;
88
88
  }
89
- var Ee = /* @__PURE__ */ e(S()), R = {
89
+ var Ee = /* @__PURE__ */ e(ee()), R = {
90
90
  cells: "key-cells",
91
91
  labels: "key-labels",
92
92
  selection: "key-selection"
@@ -96,20 +96,20 @@ var Ee = /* @__PURE__ */ e(S()), R = {
96
96
  }, B = { MeasureFormatter: "total" }, V = {
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 = {};
99
+ }, De = (e, t, n, r, i, o, s) => {
100
+ let c = e.measures.filter(p), l = (e.supportingMeasures ?? []).filter((e) => p(e)), u = a(c[0].dataItem), d = pe(l), f = e.dimensions.filter(p).map((e) => a(e.dataItem)), m = f[f.length - 1], h = f.slice(0, f.length - 1), g = {};
101
101
  h.forEach((e, t) => {
102
102
  g[`dim${t}`] = { field: e };
103
103
  });
104
104
  let _ = [{
105
105
  field: m,
106
106
  props: {
107
- [z.CellValue]: { field: d },
107
+ [z.CellValue]: { field: u },
108
108
  ...g,
109
- [d]: { field: d },
110
- ...f
109
+ [u]: { field: u },
110
+ ...d
111
111
  }
112
- }], v = e.coloring ? ce(e, c) : null;
112
+ }], v = e.coloring ? oe(e, s) : null;
113
113
  v && (_[0].props = {
114
114
  ..._[0].props,
115
115
  [z.Color]: { field: v }
@@ -126,15 +126,15 @@ var Ee = /* @__PURE__ */ e(S()), R = {
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
+ }, H = "treemap-alternates-switcher", U = "treemap-alternates-switcher", Oe = new F(k.fontLight), ke = new F(k.fontDark), W = (e) => f(e) || e.label || e.dataItem?.name || "Field", Ae = (e, t, n, r) => {
130
+ let i = n ? a(n.dataItem) : void 0;
131
131
  return {
132
132
  type: "native",
133
133
  key: `${U}-interaction`,
134
- events: { click(r) {
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
140
  key: U,
@@ -142,121 +142,121 @@ var Ee = /* @__PURE__ */ e(S()), R = {
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(j.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(j.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 = {
158
+ }, je = (e, t, n, r, i, o = {}, l, u) => {
159
+ let d = e.dimensions.filter(p), f = e.measures.filter(p), m = d[0], h = f[0], g = m ? a(m.dataItem) : void 0;
160
+ if (!m && !h) return n;
161
+ let _ = c(e.dimensions, e.enableAlternate, o.isPrintMode), v = c(e.measures, e.enableAlternate, o.isPrintMode);
162
+ if (!_ && !v) return n;
163
+ let b = o?.isPrintMode ?? !1, x = _ ? d.map((e) => W(e)).join(", ") : void 0, S = v && h ? W(h) : void 0, C = e.treemapSettings.branchColor ?? "rgba(150, 150, 150, 0.3)", ee = new F(C).betterContrast(new F(t.fonts.general.color), Oe, ke).rgb(), w = {
164
164
  type: H,
165
165
  key: U,
166
- dimensionDataItemType: _ ? l.Dimension : void 0,
167
- dimensionDataItemRole: h?.role,
168
- measureDataItemType: g ? l.Measure : void 0,
169
- measureDataItemRole: g?.role,
166
+ dimensionDataItemType: g ? y.Dimension : void 0,
167
+ dimensionDataItemRole: m?.role,
168
+ measureDataItemType: h ? y.Measure : void 0,
169
+ measureDataItemRole: h?.role,
170
170
  layout: {
171
- dock: i.Bottom,
171
+ dock: s.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 ? N(x) : void 0,
176
+ measureLabel: S ? N(S) : void 0,
177
177
  backgroundColor: C,
178
178
  fontFamily: t.fonts.general.fontFamily ?? void 0,
179
179
  fontSize: `${k.fieldTitle.fontSize}px`,
180
- color: w,
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 = u && !b ? [Ae(g, m?.role, h, u)] : [];
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
+ }, Me = /* @__PURE__ */ t(((e, t) => {
193
+ var n = g(), i = r();
194
+ function a(e, t, r, o, s, c) {
195
+ return i(e) && i(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 = _();
200
- t.exports = i(function(e) {
201
- return e.push(void 0, a), r(o, void 0, e);
197
+ t.exports = a;
198
+ })), G = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
199
+ var n = u(), r = h(), i = Me(), a = v();
200
+ t.exports = r(function(e) {
201
+ return e.push(void 0, i), n(a, void 0, e);
202
202
  });
203
- })))()), Pe = () => ({
203
+ })))()), Ne = () => ({
204
204
  trigger: [{
205
- on: N.Tap,
206
- action: ae.Toggle,
205
+ on: M.Tap,
206
+ action: ne.Toggle,
207
207
  globalPropagation: "stop",
208
208
  propagation: "stop",
209
- contexts: [M.Selection]
209
+ contexts: [P.Selection]
210
210
  }, {
211
- on: N.Over,
212
- action: ae.Set,
211
+ on: M.Over,
212
+ action: ne.Set,
213
213
  globalPropagation: "stop",
214
214
  propagation: "stop",
215
- contexts: [M.Highlight]
215
+ contexts: [P.Highlight]
216
216
  }],
217
217
  consume: [{
218
- context: M.Selection,
218
+ context: P.Selection,
219
219
  data: [""],
220
- mode: P.Or,
220
+ mode: D.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" : de(le(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];
226
+ }), Pe = (e, t, n, r, o, s = {}) => {
227
+ let c = e.dimensions.filter(p), l = e.measures.filter(p).map((e) => a(e.dataItem)), u = new he(e, t, o?.[0]?.itemsNotAffectedByFiltering), f = [u.MAIN_FIELD];
228
228
  c.slice(0, c.length - 1).forEach((e, t) => {
229
- d.push(`dim${t}`);
229
+ f.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 = {
231
+ let { labeling: m } = e.treemapSettings, h = (0, G.default)({}, m?.header, E.labeling.header), g = (0, G.default)({}, m?.leaf, E.labeling.leaf), _ = {
232
232
  key: R.cells,
233
- type: O.Treemap,
233
+ type: j.Treemap,
234
234
  data: { collection: "coll" },
235
235
  settings: {
236
236
  numDimensions: c.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
+ ...d({ cellRadius: e.treemapSettings.cellRadius }),
239
+ ...d({ cellOrder: e.treemapSettings.cellOrder }),
240
+ ...d({ 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: h.show,
243
+ numLevels: h.numLevels,
244
+ fontSize: A(h.fontSize, void 0, T.labelFontSizeMin, T.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: g.show,
248
+ fontSize: A(g.fontSize, void 0, T.labelFontSizeMin, T.labelFontSizeMax),
249
+ showDimension: g.showDimensionValue,
250
+ showMeasure: g.showMeasureValue,
251
+ dynamicFontSizeEnabled: g.dynamicFontSizeEnabled
252
252
  },
253
253
  leaf: { fill: u.getColorDefinition({
254
254
  ref: z.Color,
255
- dataItemId: e.coloring?.type === y.Single ? l[0] : void 0,
256
- overwriteSources: d
255
+ dataItemId: e.coloring?.type === i.Single ? l[0] : void 0,
256
+ overwriteSources: f
257
257
  }) }
258
258
  },
259
- brush: s.disable?.brushing === !0 ? void 0 : Pe(),
259
+ brush: s.disable?.brushing === !0 ? void 0 : Ne(),
260
260
  animations: {
261
261
  presetId: "simple-opacity",
262
262
  enabled: !0
@@ -264,10 +264,10 @@ var Ee = /* @__PURE__ */ e(S()), R = {
264
264
  };
265
265
  return {
266
266
  ...n,
267
- components: [...n.components, g]
267
+ components: [...n.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
+ }, K = new F(k.fontLight), q = new F(k.fontDark), J = (e) => e.desc, Fe = (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 }) => J(e).dynamicFontSize ?? void 0 : A(o, void 0, T.labelFontSizeMin, T.labelFontSizeMax);
271
271
  return {
272
272
  component: R.cells,
273
273
  selector: e,
@@ -283,33 +283,33 @@ 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 F(J(e).background).betterContrast(r, K, q).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 J(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 F(J(e).background).betterContrast(r, K, q).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(B.MeasureFormatter)(J(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
+ }, Y = 128, Ie = (e, t, n) => {
312
+ let r = new F(n.fonts.general.color), i = A(t.header.fontSize, void 0, T.labelFontSizeMin, T.labelFontSizeMax), { showDimensionValue: a, showMeasureValue: o } = t.header;
313
313
  return {
314
314
  component: R.cells,
315
315
  selector: e,
@@ -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 F(J(e).background).betterContrast(r, K, q).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 = J(e), r = o ? t(B.MeasureFormatter)(n?.total) : void 0;
335
+ return [a ? n?.label?.length > Y - 1 ? `${n?.label?.substring(0, Y - 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,
341
+ }, Le = (e, t, n, r, i, a = {}) => {
342
+ let o = (0, G.default)({}, e.treemapSettings?.labeling, E.labeling), s = {
343
+ type: j.Labels,
344
344
  key: R.labels,
345
345
  layout: { displayOrder: 2 },
346
- settings: { sources: [Ie(`.${V.Leaf}`, o, t), Le(`.${V.Header}`, o, t)] },
346
+ settings: { sources: [Fe(`.${V.Leaf}`, o, t), Ie(`.${V.Header}`, o, t)] },
347
347
  style: { label: "$label" },
348
348
  brush: a.disable?.brushing === !0 ? void 0 : { consume: [{
349
- context: M.Selection,
349
+ context: P.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
+ }, Re = () => ({ consume: [{
363
+ context: P.Selection,
364
364
  data: [""],
365
- mode: P.Or,
365
+ mode: D.Or,
366
366
  style: {
367
367
  active: {
368
368
  strokeWidth: 2,
369
- stroke: a.mainDarkNavy
369
+ stroke: o.mainDarkNavy
370
370
  },
371
371
  inactive: { strokeWidth: 0 }
372
372
  }
373
- }] }), Be = (e, t, n, r, i, a = {}) => {
373
+ }] }), ze = (e, t, n, r, i, a = {}) => {
374
374
  let o = {
375
375
  key: R.selection,
376
- type: O.Deferred,
376
+ type: j.Deferred,
377
377
  layout: { displayOrder: 10 },
378
378
  settings: { sources: [{
379
379
  component: R.cells,
380
- selector: A.Rect
380
+ selector: O.Rect
381
381
  }] },
382
- brush: a.disable?.brushing === !0 ? void 0 : ze(),
382
+ brush: a.disable?.brushing === !0 ? void 0 : Re(),
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
+ }, Be = (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?.[z.Color], c;
395
+ s?.field && (c = s?.field);
396
+ let l = {};
397
+ return l = me(ge(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
+ }, Ve = (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,
@@ -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
+ }, He = (e, t) => t.data.label, X = (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, o, s, c) => {
436
+ let l = [], u = e.filter(p), d = ae(n), m = u.filter((e) => !d.has(a(e.dataItem)))[0] ?? u[0], h = (m ? f(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 l.push(X(g, _, n, c, B.MeasureFormatter, v)), u.filter((e) => d.has(a(e.dataItem))).forEach((e) => {
438
+ let r = a(e.dataItem), i = Object.keys(t.data).find((e) => t.data[e]?.source?.field === r);
439
+ if (!i) return;
440
+ let o = f(e) || e.label || e.dataItem.name || "", s = Number(t.data[i]?.value);
441
+ l.push(X(o, s, n, c, e.formatter, t.data));
442
+ }), l;
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 !== O.Text && e.key === R.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 = ie(e, t, Ue, He), te(e, t, n, a, "tooltip", i);
452
+ }, Ge = class extends se {
453
453
  constructor() {
454
454
  super([
455
455
  De,
456
- Ve,
457
- Fe,
458
456
  Be,
459
- me,
460
- Me,
461
- Re,
462
- He,
463
- Ge
457
+ Pe,
458
+ ze,
459
+ re,
460
+ je,
461
+ Le,
462
+ Ve,
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 = a(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: o.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
@@ -525,13 +525,13 @@ var Qe = 8, $e = "rgba(250, 250, 250, 0.8)", et = "rgba(60, 60, 60, 0.8)", tt =
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 F(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 s = (t.children?.length ?? 0) > 0, c = t.y1 - t.y0, { labelTarget: l, leafDynamicFontSize: u } = rt(t, e), d = t.data.fill || o.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: O.Rect,
534
+ tag: l === V.Header ? Xe(t, a, i) ? l : void 0 : l && c >= nt ? l : void 0,
535
535
  x: t.x0,
536
536
  y: t.y0,
537
537
  rx: f,
@@ -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
+ [m.DESC]: (e, t) => t.height - e.height || (t.value ?? 0) - (e.value ?? 0),
556
+ [m.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(j.Treemap, ot), e.component(H, 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: O.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: o.mainDarkNavy,
707
707
  strokeWidth: 0,
708
708
  data: e.data,
709
709
  collider: { type: null }
@@ -713,29 +713,29 @@ var dt = {
713
713
  }
714
714
  };
715
715
  function ft(e) {
716
- e.component(O.Deferred, dt);
716
+ e.component(j.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 = b(), mt = S(({ vSpec: e, vTheme: t, data: r, elementSize: i, vizProperties: o }) => {
719
+ let s = C(), [c] = (0, Ee.useState)(() => new Ge()), u = x(), d = t || l, f = w(), p = fe();
720
+ if (!e || !_(e) || !i) 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 = a(t.dataItem));
725
725
  }
726
- let g = {
727
- ...a,
726
+ let h = {
727
+ ...o,
728
728
  valuePickerMode: !!f.activeKey,
729
- valuePickerTargetDataItemId: h ?? void 0
730
- }, _ = {
731
- ...a,
729
+ valuePickerTargetDataItemId: m ?? void 0
730
+ }, g = {
731
+ ...o,
732
732
  disable: {
733
- ...a.disable,
733
+ ...o.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, {
738
- config: _,
736
+ }, v = c.compile(e, d, r, i, h, n.Treemap, s, u, p);
737
+ return v ? /* @__PURE__ */ (0, pt.jsx)(ue, {
738
+ config: g,
739
739
  definition: v,
740
740
  size: i,
741
741
  vSpec: e,