vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.3

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 (90) hide show
  1. package/README.md +15 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-kQyQXUUg.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-DaR0sIWZ.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-Bj3sq9o7.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-BBqbcutV.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-DRqzYrP9.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-ClpqQxYT.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-B-T7XvxF.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-DEWxbZ-l.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-o6jJH5bw.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-LPnbBoFu.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-apr_T9tg.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-BuHsMAfp.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-OVNxxnq5.js} +144 -133
  17. package/dist/{dom-to-png-BjSUS-jY.js → dom-to-png-C0Ct8ClX.js} +1 -1
  18. package/dist/{img-DWfzRJdv.js → img-P0SFFw37.js} +1 -1
  19. package/dist/{index-CbcpITE_.js → index-CH_mJIWj.js} +185 -127
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Jun3ogRn.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +42 -0
  23. package/dist/types/vue-data-ui.d.ts +42 -0
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-rMR-JeOJ.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-DJ7WfWUs.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-D7AaTKU6.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-CYWiZjrP.js} +9 -8
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BJgJgef_.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-DBclpybR.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-UzMmwtvF.js} +9 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DMfv2hSb.js} +6 -6
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CFYHJrxj.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-CyX30Ccv.js} +23 -22
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BEDnWByj.js} +10 -9
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-79itAe84.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-DFTE1OH5.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-B0CPNusH.js} +229 -228
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-BhUsfhY5.js} +8 -7
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-CEFkua9H.js} +918 -811
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
  90. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import { defineAsyncComponent as K, useSlots as Tt, onMounted as nt, computed as b, ref as $, shallowRef as V, watch as Ot, onBeforeUnmount as _t, createElementBlock as y, openBlock as v, unref as d, normalizeStyle as L, normalizeClass as xe, createBlock as Z, createCommentVNode as O, createElementVNode as _, createVNode as Te, createSlots as St, withCtx as T, renderSlot as k, normalizeProps as J, guardReactiveProps as Q, Fragment as ge, renderList as Oe, withKeys as st, withModifiers as _e, mergeProps as ut, createTextVNode as ye, toDisplayString as ee, nextTick as It } from "vue";
2
- import { u as Nt, c as Se, t as zt, p as S, a as At, b as Ft, o as Pt, e as Rt, d as me, i as be, f as ie, X as Lt, l as rt, G as it, x as ct, q as Mt, r as Dt, y as Vt } from "./index-CbcpITE_.js";
2
+ import { u as Nt, c as Se, t as zt, p as S, a as At, b as Ft, o as Pt, e as Rt, d as me, i as be, f as ie, X as Lt, l as rt, G as it, x as ct, q as Mt, r as Dt, y as Vt } from "./index-CH_mJIWj.js";
3
3
  import { t as Bt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
4
- import { u as dt } from "./useNestedProp-y56W8I7J.js";
5
- import { u as Ut } from "./usePrinter-u-gQiRNz.js";
4
+ import { u as dt } from "./useNestedProp-rMR-JeOJ.js";
5
+ import { u as Ut } from "./usePrinter-DJ7WfWUs.js";
6
6
  import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Et } from "./useChartAccessibility-9icAAmYg.js";
8
- import Gt from "./BaseIcon-j0c6lJUs.js";
9
- import qt from "./Title-Dx8ctnVy.js";
10
- import Xt from "./Legend-ZW-PFcHg.js";
8
+ import Gt from "./BaseIcon-DaR0sIWZ.js";
9
+ import qt from "./Title-apr_T9tg.js";
10
+ import Xt from "./Legend-DRqzYrP9.js";
11
11
  import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  function vt(n, r) {
13
13
  const s = n.length;
@@ -203,52 +203,52 @@ const lo = ["id"], ao = {
203
203
  },
204
204
  emits: ["selectLegend", "selectDatapoint"],
205
205
  setup(n, { expose: r, emit: s }) {
206
- const i = K(() => import("./DataTable-CsoAI95B.js")), u = K(() => import("./PenAndPaper-B9RP4oFj.js")), h = K(() => import("./vue-ui-accordion-BkA7rtwr.js")), c = K(() => import("./vue-ui-skeleton-miKWlCAi.js")), g = K(() => import("./Tooltip-COHlzpZI.js")), p = K(() => import("./UserOptions-CGn3YdRV.js")), B = K(() => import("./PackageVersion-DCAZ9Z7V.js")), { vue_ui_treemap: z } = Nt(), w = n, C = s, m = Tt();
206
+ const i = K(() => import("./DataTable-BBqbcutV.js")), u = K(() => import("./PenAndPaper-B-T7XvxF.js")), h = K(() => import("./vue-ui-accordion-Ds4zkPIx.js")), c = K(() => import("./vue-ui-skeleton-C6PWt_m5.js")), g = K(() => import("./Tooltip-BuHsMAfp.js")), p = K(() => import("./UserOptions-OVNxxnq5.js")), B = K(() => import("./PackageVersion-ClpqQxYT.js")), { vue_ui_treemap: z } = Nt(), w = n, C = s, m = Tt();
207
207
  nt(() => {
208
208
  m["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
209
209
  });
210
- const x = b(() => !!w.dataset && w.dataset.length), M = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = $(Se()), N = $(!1), ke = $(""), te = $(!1), Ne = $(0), F = $([]), se = V(null), ze = V(null), Ae = V(null), Fe = V(null), Pe = V(null), Re = $(0), Le = $(0), Me = $(0), t = b({
210
+ const x = b(() => !!w.dataset && w.dataset.length), M = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = $(Se()), N = $(!1), ke = $(""), te = $(!1), Ne = $(0), F = $([]), se = V(null), ze = V(null), Ae = V(null), Fe = V(null), Pe = V(null), Re = $(0), Le = $(0), Me = $(0), e = b({
211
211
  get: () => He(),
212
- set: (e) => e
213
- }), { userOptionsVisible: we, setUserOptionsVisibility: De, keepUserOptionState: Ve } = Wt({ config: t.value }), { svgRef: Be } = Et({ config: t.value.style.chart.title });
212
+ set: (t) => t
213
+ }), { userOptionsVisible: we, setUserOptionsVisibility: De, keepUserOptionState: Ve } = Wt({ config: e.value }), { svgRef: Be } = Et({ config: e.value.style.chart.title });
214
214
  function He() {
215
- const e = dt({
215
+ const t = dt({
216
216
  userConfig: w.config,
217
217
  defaultConfig: z
218
218
  });
219
- return e.theme ? {
219
+ return t.theme ? {
220
220
  ...dt({
221
- userConfig: At.vue_ui_treemap[e.theme] || w.config,
222
- defaultConfig: e
221
+ userConfig: At.vue_ui_treemap[t.theme] || w.config,
222
+ defaultConfig: t
223
223
  }),
224
- customPalette: zt[e.theme] || S
225
- } : e;
224
+ customPalette: zt[t.theme] || S
225
+ } : t;
226
226
  }
227
- Ot(() => w.config, (e) => {
228
- t.value = He(), we.value = !t.value.userOptions.showOnChartHover, Re.value += 1, Le.value += 1, Me.value += 1, P.value.showTable = t.value.table.show, P.value.showTooltip = t.value.style.chart.tooltip.show;
227
+ Ot(() => w.config, (t) => {
228
+ e.value = He(), we.value = !e.value.userOptions.showOnChartHover, Re.value += 1, Le.value += 1, Me.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
229
229
  }, { deep: !0 });
230
230
  const { isPrinting: Ue, isImaging: We, generatePdf: Ee, generateImage: Ge } = Ut({
231
231
  elementId: `treemap_${A.value}`,
232
- fileName: t.value.style.chart.title.text || "vue-ui-treemap",
233
- options: t.value.userOptions.print
234
- }), gt = b(() => t.value.userOptions.show && !t.value.style.chart.title.text), ce = b(() => Ft(t.value.customPalette)), P = $({
235
- showTable: t.value.table.show,
236
- showTooltip: t.value.style.chart.tooltip.show
232
+ fileName: e.value.style.chart.title.text || "vue-ui-treemap",
233
+ options: e.value.userOptions.print
234
+ }), gt = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), ce = b(() => Ft(e.value.customPalette)), P = $({
235
+ showTable: e.value.table.show,
236
+ showTooltip: e.value.style.chart.tooltip.show
237
237
  }), H = $({
238
- height: t.value.style.chart.height,
239
- width: t.value.style.chart.width
238
+ height: e.value.style.chart.height,
239
+ width: e.value.style.chart.width
240
240
  }), q = b(() => ({
241
- bottom: H.value.height - t.value.style.chart.padding.bottom,
242
- height: H.value.height - t.value.style.chart.padding.top - t.value.style.chart.padding.bottom,
243
- left: t.value.style.chart.padding.left,
244
- right: H.value.width - t.value.style.chart.padding.right,
245
- top: t.value.style.chart.padding.top,
241
+ bottom: H.value.height - e.value.style.chart.padding.bottom,
242
+ height: H.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
243
+ left: e.value.style.chart.padding.left,
244
+ right: H.value.width - e.value.style.chart.padding.right,
245
+ top: e.value.style.chart.padding.top,
246
246
  vbHeight: H.value.height,
247
247
  vbWidth: H.value.width,
248
- width: H.value.width - t.value.style.chart.padding.left - t.value.style.chart.padding.right
248
+ width: H.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
249
249
  }));
250
- function qe(e) {
251
- e.forEach((l, o) => {
250
+ function qe(t) {
251
+ t.forEach((l, o) => {
252
252
  l.id = Se(), l.color = me(l.color) || ce.value[o] || S[o] || S[o % S.length], l.children && (l.children.forEach((a) => {
253
253
  a.parentId = l.id, a.color = l.color;
254
254
  }), qe(l.children));
@@ -262,12 +262,12 @@ const lo = ["id"], ao = {
262
262
  if (Pt(w.dataset) && Rt({
263
263
  componentName: "VueUiTreemap",
264
264
  type: "dataset"
265
- }), qe(U.value), t.value.responsive) {
266
- const e = Bt(() => {
265
+ }), qe(U.value), e.value.responsive) {
266
+ const t = Bt(() => {
267
267
  const { width: l, height: o } = Ht({
268
268
  chart: se.value,
269
- title: t.value.style.chart.title.text ? ze.value : null,
270
- legend: t.value.style.chart.legend.show ? Ae.value : null,
269
+ title: e.value.style.chart.title.text ? ze.value : null,
270
+ legend: e.value.style.chart.legend.show ? Ae.value : null,
271
271
  source: Fe.value,
272
272
  noTitle: Pe.value
273
273
  });
@@ -275,35 +275,35 @@ const lo = ["id"], ao = {
275
275
  H.value.width = l, H.value.height = o;
276
276
  });
277
277
  });
278
- W.value && (oe.value && W.value.unobserve(oe.value), W.value.disconnect()), W.value = new ResizeObserver(e), oe.value = se.value.parentNode, W.value.observe(oe.value);
278
+ W.value && (oe.value && W.value.unobserve(oe.value), W.value.disconnect()), W.value = new ResizeObserver(t), oe.value = se.value.parentNode, W.value.observe(oe.value);
279
279
  }
280
280
  }
281
281
  _t(() => {
282
282
  W.value && (oe.value && W.value.unobserve(oe.value), W.value.disconnect());
283
283
  });
284
- const le = $(U.value), ue = b(() => le.value.map((e, l) => ({
285
- ...e,
286
- color: me(e.color) || ce.value[l] || S[l] || S[l % S.length]
287
- })).filter((e) => !F.value.includes(e.id))), ae = b(() => U.value.filter((e) => !F.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), Xe = b({
284
+ const le = $(U.value), ue = b(() => le.value.map((t, l) => ({
285
+ ...t,
286
+ color: me(t.color) || ce.value[l] || S[l] || S[l % S.length]
287
+ })).filter((t) => !F.value.includes(t.id))), ae = b(() => U.value.filter((t) => !F.value.includes(t.id)).map((t) => t.value || 0).reduce((t, l) => t + l, 0)), Xe = b({
288
288
  get() {
289
- let e = [...ue.value];
290
- return t.value.style.chart.layout.sorted && (e = [...ue.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
289
+ let t = [...ue.value];
290
+ return e.value.style.chart.layout.sorted && (t = [...ue.value].sort((l, o) => o.value - l.value)), t.map((l) => ({
291
291
  ...l
292
292
  }));
293
293
  },
294
- set(e) {
295
- return e;
294
+ set(t) {
295
+ return t;
296
296
  }
297
297
  });
298
- function je(e, l) {
299
- return e.value / l;
298
+ function je(t, l) {
299
+ return t.value / l;
300
300
  }
301
- function mt(e, l, o) {
302
- const a = t.value.style.chart.layout.rects.colorRatio - je(l, o);
303
- return rt(e, a < 0 ? 0 : a);
301
+ function mt(t, l, o) {
302
+ const a = e.value.style.chart.layout.rects.colorRatio - je(l, o);
303
+ return rt(t, a < 0 ? 0 : a);
304
304
  }
305
- function Ye(e, l, o, a) {
306
- return e.map((f, G) => {
305
+ function Ye(t, l, o, a) {
306
+ return t.map((f, G) => {
307
307
  const fe = mt(me(l) || ce.value[G] || S[G] || S[G % S.length], f, a), xt = je(f, a);
308
308
  return {
309
309
  ...f,
@@ -315,30 +315,30 @@ const lo = ["id"], ao = {
315
315
  });
316
316
  }
317
317
  const re = b(() => Zt(
318
- Xe.value.map((e, l) => {
319
- const o = e.children ? e.children.reduce((a, f) => a + f.value, 0) : e.value;
318
+ Xe.value.map((t, l) => {
319
+ const o = t.children ? t.children.reduce((a, f) => a + f.value, 0) : t.value;
320
320
  return {
321
- value: e.value,
322
- id: e.id || Se(),
323
- children: e.children ? Ye(e.children.sort((a, f) => f.value - a.value), e.color, e.name, o) : void 0,
324
- color: e.color,
325
- name: e.name
321
+ value: t.value,
322
+ id: t.id || Se(),
323
+ children: t.children ? Ye(t.children.sort((a, f) => f.value - a.value), t.color, t.name, o) : void 0,
324
+ color: t.color,
325
+ name: t.name
326
326
  };
327
327
  }),
328
328
  { x0: q.value.left * 2, y0: q.value.top, x1: q.value.width, y1: q.value.height }
329
329
  ));
330
- function Ke({ y0: e, y1: l }) {
331
- return l - e <= 0 ? 1e-4 : l - e;
330
+ function Ke({ y0: t, y1: l }) {
331
+ return l - t <= 0 ? 1e-4 : l - t;
332
332
  }
333
- function Ze({ x0: e, x1: l }) {
334
- return l - e <= 0 ? 1e-4 : l - e;
333
+ function Ze({ x0: t, x1: l }) {
334
+ return l - t <= 0 ? 1e-4 : l - t;
335
335
  }
336
- function X(e) {
337
- const l = t.value.style.chart.layout.labels.fontSize * (e.proportion * 2 > 1 ? 1 : e.proportion * 2);
338
- return l < t.value.style.chart.layout.labels.minFontSize ? t.value.style.chart.layout.labels.minFontSize : l;
336
+ function X(t) {
337
+ const l = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
338
+ return l < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : l;
339
339
  }
340
- function bt(e) {
341
- te.value = e, Ne.value += 1;
340
+ function bt(t) {
341
+ te.value = t, Ne.value += 1;
342
342
  }
343
343
  const ne = b(() => ({
344
344
  startX: 0,
@@ -346,12 +346,12 @@ const lo = ["id"], ao = {
346
346
  width: q.value.vbWidth,
347
347
  height: q.value.vbHeight
348
348
  }));
349
- function j(e, l = U.value) {
349
+ function j(t, l = U.value) {
350
350
  for (const o of l) {
351
- if (o.id === e)
351
+ if (o.id === t)
352
352
  return o;
353
353
  if (o.children) {
354
- const a = j(e, o.children);
354
+ const a = j(t, o.children);
355
355
  if (a)
356
356
  return a;
357
357
  }
@@ -359,18 +359,18 @@ const lo = ["id"], ao = {
359
359
  return null;
360
360
  }
361
361
  const I = $([]), Y = b(() => I.value.length > 0);
362
- function de(e) {
363
- if (!e) {
362
+ function de(t) {
363
+ if (!t) {
364
364
  le.value = U.value.slice(), C("selectDatapoint", void 0), I.value = [];
365
365
  return;
366
366
  }
367
- const l = j(e.id);
367
+ const l = j(t.id);
368
368
  if (l && l.children?.length)
369
- I.value.push(l.id), le.value = l.children.slice(), C("selectDatapoint", e);
370
- else if (e.parentId) {
371
- I.value.push(e.parentId);
372
- const o = j(e.parentId);
373
- le.value = o.children.slice(), C("selectDatapoint", e);
369
+ I.value.push(l.id), le.value = l.children.slice(), C("selectDatapoint", t);
370
+ else if (t.parentId) {
371
+ I.value.push(t.parentId);
372
+ const o = j(t.parentId);
373
+ le.value = o.children.slice(), C("selectDatapoint", t);
374
374
  } else if (I.value.length > 0) {
375
375
  I.value.pop();
376
376
  const o = I.value[I.value.length - 1];
@@ -381,11 +381,11 @@ const lo = ["id"], ao = {
381
381
  le.value = U.value.slice(), I.value = [], C("selectDatapoint", void 0);
382
382
  }
383
383
  }
384
- function kt(e) {
385
- return !!(j(e.id)?.children?.length || e.parentId);
384
+ function kt(t) {
385
+ return !!(j(t.id)?.children?.length || t.parentId);
386
386
  }
387
387
  const E = b(() => {
388
- const e = [
388
+ const t = [
389
389
  { id: null, label: "All" }
390
390
  ];
391
391
  if (I.value.length > 0) {
@@ -394,93 +394,93 @@ const lo = ["id"], ao = {
394
394
  for (; l; )
395
395
  o.unshift(l), l = l.parentId ? j(l.parentId) : null;
396
396
  for (const a of o)
397
- e.push({
397
+ t.push({
398
398
  id: a.id,
399
399
  label: a.name,
400
400
  node: a
401
401
  });
402
402
  }
403
- return e;
404
- }), R = V(null), Je = b(() => U.value.map((e, l) => ({
405
- ...e,
406
- color: me(e.color) || ce.value[l] || S[l] || S[l % S.length],
403
+ return t;
404
+ }), R = V(null), Je = b(() => U.value.map((t, l) => ({
405
+ ...t,
406
+ color: me(t.color) || ce.value[l] || S[l] || S[l % S.length],
407
407
  shape: "square"
408
- })).sort((e, l) => l.value - e.value).map((e, l) => ({
409
- ...e,
410
- proportion: e.value / U.value.map((o) => o.value).reduce((o, a) => o + a, 0),
411
- opacity: F.value.includes(e.id) ? 0.5 : 1
408
+ })).sort((t, l) => l.value - t.value).map((t, l) => ({
409
+ ...t,
410
+ proportion: t.value / U.value.map((o) => o.value).reduce((o, a) => o + a, 0),
411
+ opacity: F.value.includes(t.id) ? 0.5 : 1
412
412
  }))), wt = b(() => ({
413
413
  cy: "treemap-div-legend",
414
- backgroundColor: t.value.style.chart.legend.backgroundColor,
415
- color: t.value.style.chart.legend.color,
416
- fontSize: t.value.style.chart.legend.fontSize,
414
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
415
+ color: e.value.style.chart.legend.color,
416
+ fontSize: e.value.style.chart.legend.fontSize,
417
417
  paddingBottom: 12,
418
- fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
418
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
419
419
  }));
420
- function Qe(e) {
421
- R.value = null, F.value.includes(e.id) ? F.value = F.value.filter((l) => l !== e.id) : F.value.length < w.dataset.length - 1 && F.value.push(e.id), C("selectLegend", Xe.value);
420
+ function Qe(t) {
421
+ R.value = null, F.value.includes(t.id) ? F.value = F.value.filter((l) => l !== t.id) : F.value.length < w.dataset.length - 1 && F.value.push(t.id), C("selectLegend", Xe.value);
422
422
  }
423
423
  const Ce = $(null);
424
- function Ct({ datapoint: e, seriesIndex: l }) {
425
- R.value = e, Ce.value = { datapoint: e, seriesIndex: l, config: t.value, series: ue.value };
426
- const o = t.value.style.chart.tooltip.customFormat;
424
+ function Ct({ datapoint: t, seriesIndex: l }) {
425
+ R.value = t, Ce.value = { datapoint: t, seriesIndex: l, config: e.value, series: ue.value };
426
+ const o = e.value.style.chart.tooltip.customFormat;
427
427
  if (ct(o) && Vt(() => o({
428
428
  seriesIndex: l,
429
- datapoint: e,
429
+ datapoint: t,
430
430
  series: ue.value,
431
- config: t.value
431
+ config: e.value
432
432
  })))
433
433
  ke.value = o({
434
434
  seriesIndex: l,
435
- datapoint: e,
435
+ datapoint: t,
436
436
  series: ue.value,
437
- config: t.value
437
+ config: e.value
438
438
  });
439
439
  else {
440
440
  let a = "";
441
- a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, a += `<b>${be(
442
- t.value.style.chart.layout.labels.formatter,
443
- e.value,
441
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${be(
442
+ e.value.style.chart.layout.labels.formatter,
443
+ t.value,
444
444
  ie({
445
- p: t.value.style.chart.layout.labels.prefix,
446
- v: e.value,
447
- s: t.value.style.chart.layout.labels.suffix,
448
- r: t.value.style.chart.tooltip.roundingValue
445
+ p: e.value.style.chart.layout.labels.prefix,
446
+ v: t.value,
447
+ s: e.value.style.chart.layout.labels.suffix,
448
+ r: e.value.style.chart.tooltip.roundingValue
449
449
  }),
450
- { datapoint: e, seriesIndex: l }
450
+ { datapoint: t, seriesIndex: l }
451
451
  )}</b>`, ke.value = `<div>${a}</div>`;
452
452
  }
453
453
  N.value = !0;
454
454
  }
455
455
  const D = b(() => {
456
- const e = re.value.map((o) => ({
456
+ const t = re.value.map((o) => ({
457
457
  name: o.name,
458
458
  color: o.color
459
459
  })), l = re.value.map((o) => o.value);
460
- return { head: e, body: l };
460
+ return { head: t, body: l };
461
461
  });
462
462
  function et() {
463
463
  It(() => {
464
- const e = D.value.head.map((a, f) => [[
464
+ const t = D.value.head.map((a, f) => [[
465
465
  a.name
466
- ], [D.value.body[f]], [isNaN(D.value.body[f] / ae.value) ? "-" : D.value.body[f] / ae.value * 100]]), l = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), o = Mt(l);
467
- Dt({ csvContent: o, title: t.value.style.chart.title.text || "vue-ui-treemap" });
466
+ ], [D.value.body[f]], [isNaN(D.value.body[f] / ae.value) ? "-" : D.value.body[f] / ae.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = Mt(l);
467
+ Dt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-treemap" });
468
468
  });
469
469
  }
470
470
  const ve = b(() => {
471
- const e = [
472
- t.value.table.columnNames.series,
473
- t.value.table.columnNames.value,
474
- t.value.table.columnNames.percentage
471
+ const t = [
472
+ e.value.table.columnNames.series,
473
+ e.value.table.columnNames.value,
474
+ e.value.table.columnNames.percentage
475
475
  ], l = D.value.head.map((f, G) => {
476
476
  const fe = be(
477
- t.value.style.chart.layout.labels.formatter,
477
+ e.value.style.chart.layout.labels.formatter,
478
478
  D.value.body[G],
479
479
  ie({
480
- p: t.value.style.chart.layout.labels.prefix,
480
+ p: e.value.style.chart.layout.labels.prefix,
481
481
  v: D.value.body[G],
482
- s: t.value.style.chart.layout.labels.suffix,
483
- r: t.value.table.td.roundingValue
482
+ s: e.value.style.chart.layout.labels.suffix,
483
+ r: e.value.table.td.roundingValue
484
484
  })
485
485
  );
486
486
  return [
@@ -493,28 +493,28 @@ const lo = ["id"], ao = {
493
493
  isNaN(D.value.body[G] / ae.value) ? "-" : ie({
494
494
  v: D.value.body[G] / ae.value * 100,
495
495
  s: "%",
496
- r: t.value.table.td.roundingPercentage
496
+ r: e.value.table.td.roundingPercentage
497
497
  })
498
498
  ];
499
499
  }), o = {
500
500
  th: {
501
- backgroundColor: t.value.table.th.backgroundColor,
502
- color: t.value.table.th.color,
503
- outline: t.value.table.th.outline
501
+ backgroundColor: e.value.table.th.backgroundColor,
502
+ color: e.value.table.th.color,
503
+ outline: e.value.table.th.outline
504
504
  },
505
505
  td: {
506
- backgroundColor: t.value.table.td.backgroundColor,
507
- color: t.value.table.td.color,
508
- outline: t.value.table.td.outline
506
+ backgroundColor: e.value.table.td.backgroundColor,
507
+ color: e.value.table.td.color,
508
+ outline: e.value.table.td.outline
509
509
  },
510
- breakpoint: t.value.table.responsiveBreakpoint
510
+ breakpoint: e.value.table.responsiveBreakpoint
511
511
  };
512
512
  return {
513
513
  colNames: [
514
- t.value.table.columnNames.series,
515
- t.value.table.columnNames.value
514
+ e.value.table.columnNames.series,
515
+ e.value.table.columnNames.value
516
516
  ],
517
- head: e,
517
+ head: t,
518
518
  body: l,
519
519
  config: o
520
520
  };
@@ -533,8 +533,8 @@ const lo = ["id"], ao = {
533
533
  he.value = !he.value;
534
534
  }
535
535
  const pe = $(null);
536
- function lt(e) {
537
- pe.value = e;
536
+ function lt(t) {
537
+ pe.value = t;
538
538
  }
539
539
  function at() {
540
540
  pe.value = null;
@@ -547,20 +547,20 @@ const lo = ["id"], ao = {
547
547
  toggleTable: tt,
548
548
  toggleTooltip: ot,
549
549
  toggleAnnotator: $e
550
- }), (e, l) => (v(), y("div", {
550
+ }), (t, l) => (v(), y("div", {
551
551
  ref_key: "treemapChart",
552
552
  ref: se,
553
- class: xe(`vue-ui-treemap ${te.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
554
- style: L(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
553
+ class: xe(`vue-ui-treemap ${te.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
554
+ style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
555
555
  id: `treemap_${A.value}`,
556
556
  onMouseenter: l[3] || (l[3] = () => d(De)(!0)),
557
557
  onMouseleave: l[4] || (l[4] = () => d(De)(!1))
558
558
  }, [
559
- t.value.userOptions.buttons.annotator ? (v(), Z(d(u), {
559
+ e.value.userOptions.buttons.annotator ? (v(), Z(d(u), {
560
560
  key: 0,
561
561
  svgRef: d(Be),
562
- backgroundColor: t.value.style.chart.backgroundColor,
563
- color: t.value.style.chart.color,
562
+ backgroundColor: e.value.style.chart.backgroundColor,
563
+ color: e.value.style.chart.color,
564
564
  active: he.value,
565
565
  onClose: $e
566
566
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : O("", !0),
@@ -571,47 +571,48 @@ const lo = ["id"], ao = {
571
571
  class: "vue-data-ui-no-title-space",
572
572
  style: "height:36px; width: 100%;background:transparent"
573
573
  }, null, 512)) : O("", !0),
574
- t.value.style.chart.title.text ? (v(), y("div", {
574
+ e.value.style.chart.title.text ? (v(), y("div", {
575
575
  key: 2,
576
576
  ref_key: "chartTitle",
577
577
  ref: ze,
578
- style: L(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
578
+ style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
579
579
  }, [
580
580
  (v(), Z(qt, {
581
581
  key: `title_${Re.value}`,
582
582
  config: {
583
583
  title: {
584
584
  cy: "treemap-div-title",
585
- ...t.value.style.chart.title
585
+ ...e.value.style.chart.title
586
586
  },
587
587
  subtitle: {
588
588
  cy: "treemap-div-subtitle",
589
- ...t.value.style.chart.title.subtitle
589
+ ...e.value.style.chart.title.subtitle
590
590
  }
591
591
  }
592
592
  }, null, 8, ["config"]))
593
593
  ], 4)) : O("", !0),
594
- t.value.userOptions.show && x.value && (d(Ve) || d(we)) ? (v(), Z(d(p), {
594
+ e.value.userOptions.show && x.value && (d(Ve) || d(we)) ? (v(), Z(d(p), {
595
595
  ref: "details",
596
596
  key: `user_option_${Ne.value}`,
597
- backgroundColor: t.value.style.chart.backgroundColor,
598
- color: t.value.style.chart.color,
597
+ backgroundColor: e.value.style.chart.backgroundColor,
598
+ color: e.value.style.chart.color,
599
599
  isPrinting: d(Ue),
600
600
  isImaging: d(We),
601
601
  uid: A.value,
602
- hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
603
- hasPdf: t.value.userOptions.buttons.pdf,
604
- hasXls: t.value.userOptions.buttons.csv,
605
- hasImg: t.value.userOptions.buttons.img,
606
- hasTable: t.value.userOptions.buttons.table,
607
- hasFullscreen: t.value.userOptions.buttons.fullscreen,
602
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
603
+ hasPdf: e.value.userOptions.buttons.pdf,
604
+ hasXls: e.value.userOptions.buttons.csv,
605
+ hasImg: e.value.userOptions.buttons.img,
606
+ hasTable: e.value.userOptions.buttons.table,
607
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
608
608
  isFullscreen: te.value,
609
609
  isTooltip: P.value.showTooltip,
610
- titles: { ...t.value.userOptions.buttonTitles },
610
+ titles: { ...e.value.userOptions.buttonTitles },
611
611
  chartElement: se.value,
612
- position: t.value.userOptions.position,
613
- hasAnnotator: t.value.userOptions.buttons.annotator,
612
+ position: e.value.userOptions.position,
613
+ hasAnnotator: e.value.userOptions.buttons.annotator,
614
614
  isAnnotation: he.value,
615
+ callbacks: e.value.userOptions.callbacks,
615
616
  onToggleFullscreen: bt,
616
617
  onGeneratePdf: d(Ee),
617
618
  onGenerateCsv: et,
@@ -623,63 +624,63 @@ const lo = ["id"], ao = {
623
624
  visibility: d(Ve) ? d(we) ? "visible" : "hidden" : "visible"
624
625
  })
625
626
  }, St({ _: 2 }, [
626
- e.$slots.menuIcon ? {
627
+ t.$slots.menuIcon ? {
627
628
  name: "menuIcon",
628
629
  fn: T(({ isOpen: o, color: a }) => [
629
- k(e.$slots, "menuIcon", J(Q({ isOpen: o, color: a })), void 0, !0)
630
+ k(t.$slots, "menuIcon", J(Q({ isOpen: o, color: a })), void 0, !0)
630
631
  ]),
631
632
  key: "0"
632
633
  } : void 0,
633
- e.$slots.optionTooltip ? {
634
+ t.$slots.optionTooltip ? {
634
635
  name: "optionTooltip",
635
636
  fn: T(() => [
636
- k(e.$slots, "optionTooltip", {}, void 0, !0)
637
+ k(t.$slots, "optionTooltip", {}, void 0, !0)
637
638
  ]),
638
639
  key: "1"
639
640
  } : void 0,
640
- e.$slots.optionPdf ? {
641
+ t.$slots.optionPdf ? {
641
642
  name: "optionPdf",
642
643
  fn: T(() => [
643
- k(e.$slots, "optionPdf", {}, void 0, !0)
644
+ k(t.$slots, "optionPdf", {}, void 0, !0)
644
645
  ]),
645
646
  key: "2"
646
647
  } : void 0,
647
- e.$slots.optionCsv ? {
648
+ t.$slots.optionCsv ? {
648
649
  name: "optionCsv",
649
650
  fn: T(() => [
650
- k(e.$slots, "optionCsv", {}, void 0, !0)
651
+ k(t.$slots, "optionCsv", {}, void 0, !0)
651
652
  ]),
652
653
  key: "3"
653
654
  } : void 0,
654
- e.$slots.optionImg ? {
655
+ t.$slots.optionImg ? {
655
656
  name: "optionImg",
656
657
  fn: T(() => [
657
- k(e.$slots, "optionImg", {}, void 0, !0)
658
+ k(t.$slots, "optionImg", {}, void 0, !0)
658
659
  ]),
659
660
  key: "4"
660
661
  } : void 0,
661
- e.$slots.optionTable ? {
662
+ t.$slots.optionTable ? {
662
663
  name: "optionTable",
663
664
  fn: T(() => [
664
- k(e.$slots, "optionTable", {}, void 0, !0)
665
+ k(t.$slots, "optionTable", {}, void 0, !0)
665
666
  ]),
666
667
  key: "5"
667
668
  } : void 0,
668
- e.$slots.optionFullscreen ? {
669
+ t.$slots.optionFullscreen ? {
669
670
  name: "optionFullscreen",
670
671
  fn: T(({ toggleFullscreen: o, isFullscreen: a }) => [
671
- k(e.$slots, "optionFullscreen", J(Q({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
672
+ k(t.$slots, "optionFullscreen", J(Q({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
672
673
  ]),
673
674
  key: "6"
674
675
  } : void 0,
675
- e.$slots.optionAnnotator ? {
676
+ t.$slots.optionAnnotator ? {
676
677
  name: "optionAnnotator",
677
678
  fn: T(({ toggleAnnotator: o, isAnnotator: a }) => [
678
- k(e.$slots, "optionAnnotator", J(Q({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
679
+ k(t.$slots, "optionAnnotator", J(Q({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
679
680
  ]),
680
681
  key: "7"
681
682
  } : void 0
682
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : O("", !0),
683
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : O("", !0),
683
684
  E.value.length > 1 ? (v(), y("nav", ao, [
684
685
  (v(!0), y(ge, null, Oe(E.value, (o, a) => (v(), y("span", {
685
686
  role: "button",
@@ -694,7 +695,7 @@ const lo = ["id"], ao = {
694
695
  class: "vue-ui-treemap-crumb",
695
696
  "data-last-crumb": a === E.value.length - 1,
696
697
  style: L({
697
- color: t.value.style.chart.color
698
+ color: e.value.style.chart.color
698
699
  }),
699
700
  onMouseenter: (f) => lt(a),
700
701
  onMouseleave: at,
@@ -703,11 +704,11 @@ const lo = ["id"], ao = {
703
704
  }, [
704
705
  _("span", so, [
705
706
  _("span", uo, [
706
- k(e.$slots, "breadcrumb-label", ut({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: pe.value === a }), () => [
707
+ k(t.$slots, "breadcrumb-label", ut({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: pe.value === a }), () => [
707
708
  a === 0 ? (v(), y("div", ro, [
708
709
  Te(Gt, {
709
710
  name: pe.value === 0 ? "homeFilled" : "home",
710
- stroke: t.value.style.chart.color
711
+ stroke: e.value.style.chart.color
711
712
  }, null, 8, ["name", "stroke"])
712
713
  ])) : (v(), y(ge, { key: 1 }, [
713
714
  ye(ee(o.label), 1)
@@ -715,7 +716,7 @@ const lo = ["id"], ao = {
715
716
  ], !0)
716
717
  ]),
717
718
  a < E.value.length - 1 ? (v(), y("span", io, [
718
- k(e.$slots, "breadcrumb-arrow", {}, () => [
719
+ k(t.$slots, "breadcrumb-arrow", {}, () => [
719
720
  l[5] || (l[5] = ye(" › "))
720
721
  ], !0)
721
722
  ])) : O("", !0)
@@ -729,13 +730,13 @@ const lo = ["id"], ao = {
729
730
  xmlns: d(Lt),
730
731
  class: xe({ "vue-data-ui-fullscreen--on": te.value, "vue-data-ui-fulscreen--off": !te.value, "vue-data-ui-zoom-plus": !Y.value, "vue-data-ui-zoom-minus": Y.value }),
731
732
  viewBox: `${ne.value.startX} ${ne.value.startY} ${ne.value.width <= 0 ? 10 : ne.value.width} ${ne.value.height <= 0 ? 10 : ne.value.height}`,
732
- style: L(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)
733
+ style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
733
734
  }, [
734
735
  Te(d(B)),
735
736
  (v(!0), y(ge, null, Oe(re.value, (o, a) => (v(), y("g", {
736
737
  key: `tgrad_${o.id}`
737
738
  }, [
738
- t.value.style.chart.layout.rects.gradient.show ? (v(), y("defs", vo, [
739
+ e.value.style.chart.layout.rects.gradient.show ? (v(), y("defs", vo, [
739
740
  _("radialGradient", {
740
741
  id: `tgrad_${o.id}`,
741
742
  gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
@@ -746,7 +747,7 @@ const lo = ["id"], ao = {
746
747
  }, null, 8, po),
747
748
  _("stop", {
748
749
  offset: "100%",
749
- "stop-color": d(rt)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
750
+ "stop-color": d(rt)(o.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
750
751
  }, null, 8, fo)
751
752
  ], 8, ho)
752
753
  ])) : O("", !0)
@@ -759,10 +760,10 @@ const lo = ["id"], ao = {
759
760
  y: o.y0,
760
761
  height: Ke(o),
761
762
  width: Ze(o),
762
- fill: M.value ? o.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
763
- rx: t.value.style.chart.layout.rects.borderRadius,
764
- stroke: R.value && R.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
765
- "stroke-width": R.value && R.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
763
+ fill: M.value ? o.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
764
+ rx: e.value.style.chart.layout.rects.borderRadius,
765
+ stroke: R.value && R.value.id === o.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
766
+ "stroke-width": R.value && R.value.id === o.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
766
767
  onClick: _e((f) => de(o), ["stop"]),
767
768
  onMouseenter: () => Ct({
768
769
  datapoint: o,
@@ -771,7 +772,7 @@ const lo = ["id"], ao = {
771
772
  onMouseleave: l[0] || (l[0] = (f) => {
772
773
  R.value = null, N.value = !1;
773
774
  }),
774
- style: L(`opacity:${R.value ? R.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
775
+ style: L(`opacity:${R.value ? R.value.id === o.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
775
776
  class: xe([
776
777
  "vue-ui-treemap-rect",
777
778
  kt(o) ? "vue-data-ui-zoom-plus" : Y.value ? "vue-data-ui-zoom-minus" : ""
@@ -785,7 +786,7 @@ const lo = ["id"], ao = {
785
786
  class: "vue-ui-treemap-cell-foreignObject"
786
787
  }, [
787
788
  _("div", mo, [
788
- t.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Y.value) ? (v(), y("div", {
789
+ e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Y.value) ? (v(), y("div", {
789
790
  key: 0,
790
791
  class: "vue-ui-treemap-cell-default",
791
792
  style: L(`width:calc(100% - ${X(o) / 1.5}px);text-align:left;line-height:${X(o) < 14 ? 14 : X(o)}px;padding:${X(o) / 3}px; color:${d(it)(o.color)}`)
@@ -797,20 +798,20 @@ const lo = ["id"], ao = {
797
798
  _("span", {
798
799
  style: L(`width:100%;font-size:${X(o)}px;`)
799
800
  }, ee(d(be)(
800
- t.value.style.chart.layout.labels.formatter,
801
+ e.value.style.chart.layout.labels.formatter,
801
802
  o.value,
802
803
  d(ie)({
803
- p: t.value.style.chart.layout.labels.prefix,
804
+ p: e.value.style.chart.layout.labels.prefix,
804
805
  v: o.value,
805
- s: t.value.style.chart.layout.labels.suffix,
806
- r: t.value.style.chart.layout.labels.rounding
806
+ s: e.value.style.chart.layout.labels.suffix,
807
+ r: e.value.style.chart.layout.labels.rounding
807
808
  }),
808
809
  { datapoint: o }
809
810
  )), 5)
810
811
  ], 4)) : O("", !0),
811
- k(e.$slots, "rect", ut({ ref_for: !0 }, {
812
+ k(t.$slots, "rect", ut({ ref_for: !0 }, {
812
813
  rect: o,
813
- shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Y.value,
814
+ shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Y.value,
814
815
  fontSize: X(o),
815
816
  isZoom: Y.value,
816
817
  textColor: d(it)(o.color)
@@ -818,17 +819,17 @@ const lo = ["id"], ao = {
818
819
  ])
819
820
  ], 8, yo))
820
821
  ]))), 128)),
821
- k(e.$slots, "svg", J(Q({ svg: q.value, isZoom: Y.value, rect: R.value, config: t.value })), void 0, !0)
822
+ k(t.$slots, "svg", J(Q({ svg: q.value, isZoom: Y.value, rect: R.value, config: e.value })), void 0, !0)
822
823
  ], 14, co)) : O("", !0),
823
- e.$slots.watermark ? (v(), y("div", bo, [
824
- k(e.$slots, "watermark", J(Q({ isPrinting: d(Ue) || d(We) })), void 0, !0)
824
+ t.$slots.watermark ? (v(), y("div", bo, [
825
+ k(t.$slots, "watermark", J(Q({ isPrinting: d(Ue) || d(We) })), void 0, !0)
825
826
  ])) : O("", !0),
826
827
  x.value ? O("", !0) : (v(), Z(d(c), {
827
828
  key: 7,
828
829
  config: {
829
830
  type: "treemap",
830
831
  style: {
831
- backgroundColor: t.value.style.chart.backgroundColor,
832
+ backgroundColor: e.value.style.chart.backgroundColor,
832
833
  treemap: {
833
834
  color: "#CCCCCC"
834
835
  }
@@ -839,7 +840,7 @@ const lo = ["id"], ao = {
839
840
  ref_key: "chartLegend",
840
841
  ref: Ae
841
842
  }, [
842
- t.value.style.chart.legend.show ? (v(), Z(Xt, {
843
+ e.value.style.chart.legend.show ? (v(), Z(Xt, {
843
844
  key: `legend_${Me.value}`,
844
845
  legendSet: Je.value,
845
846
  config: wt.value,
@@ -852,54 +853,54 @@ const lo = ["id"], ao = {
852
853
  style: L(`opacity:${F.value.includes(o.id) ? 0.5 : 1}`)
853
854
  }, [
854
855
  ye(ee(o.name) + ": " + ee(d(be)(
855
- t.value.style.chart.layout.labels.formatter,
856
+ e.value.style.chart.layout.labels.formatter,
856
857
  o.value,
857
858
  d(ie)({
858
- p: t.value.style.chart.layout.labels.prefix,
859
+ p: e.value.style.chart.layout.labels.prefix,
859
860
  v: o.value,
860
- s: t.value.style.chart.layout.labels.suffix,
861
- r: t.value.style.chart.legend.roundingValue
861
+ s: e.value.style.chart.layout.labels.suffix,
862
+ r: e.value.style.chart.legend.roundingValue
862
863
  }),
863
864
  { datapoint: o }
864
865
  )) + " ", 1),
865
- F.value.includes(o.id) ? (v(), y("span", Co, " ( - % ) ")) : (v(), y("span", wo, " (" + ee(isNaN(o.value / ae.value) ? "-" : (o.value / ae.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
866
+ F.value.includes(o.id) ? (v(), y("span", Co, " ( - % ) ")) : (v(), y("span", wo, " (" + ee(isNaN(o.value / ae.value) ? "-" : (o.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
866
867
  ], 12, ko)
867
868
  ]),
868
869
  _: 1
869
- }, 8, ["legendSet", "config", "id"])) : k(e.$slots, "legend", {
870
+ }, 8, ["legendSet", "config", "id"])) : k(t.$slots, "legend", {
870
871
  key: 1,
871
872
  legend: Je.value
872
873
  }, void 0, !0)
873
874
  ], 512),
874
- e.$slots.source ? (v(), y("div", {
875
+ t.$slots.source ? (v(), y("div", {
875
876
  key: 8,
876
877
  ref_key: "source",
877
878
  ref: Fe,
878
879
  dir: "auto"
879
880
  }, [
880
- k(e.$slots, "source", {}, void 0, !0)
881
+ k(t.$slots, "source", {}, void 0, !0)
881
882
  ], 512)) : O("", !0),
882
883
  Te(d(g), {
883
884
  show: P.value.showTooltip && N.value,
884
- backgroundColor: t.value.style.chart.tooltip.backgroundColor,
885
- color: t.value.style.chart.tooltip.color,
886
- fontSize: t.value.style.chart.tooltip.fontSize,
887
- borderRadius: t.value.style.chart.tooltip.borderRadius,
888
- borderColor: t.value.style.chart.tooltip.borderColor,
889
- borderWidth: t.value.style.chart.tooltip.borderWidth,
890
- backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
891
- position: t.value.style.chart.tooltip.position,
892
- offsetY: t.value.style.chart.tooltip.offsetY,
885
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
886
+ color: e.value.style.chart.tooltip.color,
887
+ fontSize: e.value.style.chart.tooltip.fontSize,
888
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
889
+ borderColor: e.value.style.chart.tooltip.borderColor,
890
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
891
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
892
+ position: e.value.style.chart.tooltip.position,
893
+ offsetY: e.value.style.chart.tooltip.offsetY,
893
894
  parent: se.value,
894
895
  content: ke.value,
895
896
  isFullscreen: te.value,
896
- isCustom: d(ct)(t.value.style.chart.tooltip.customFormat)
897
+ isCustom: d(ct)(e.value.style.chart.tooltip.customFormat)
897
898
  }, {
898
899
  "tooltip-before": T(() => [
899
- k(e.$slots, "tooltip-before", J(Q({ ...Ce.value })), void 0, !0)
900
+ k(t.$slots, "tooltip-before", J(Q({ ...Ce.value })), void 0, !0)
900
901
  ]),
901
902
  "tooltip-after": T(() => [
902
- k(e.$slots, "tooltip-after", J(Q({ ...Ce.value })), void 0, !0)
903
+ k(t.$slots, "tooltip-after", J(Q({ ...Ce.value })), void 0, !0)
903
904
  ]),
904
905
  _: 3
905
906
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -910,12 +911,12 @@ const lo = ["id"], ao = {
910
911
  open: P.value.showTable,
911
912
  maxHeight: 1e4,
912
913
  body: {
913
- backgroundColor: t.value.style.chart.backgroundColor,
914
- color: t.value.style.chart.color
914
+ backgroundColor: e.value.style.chart.backgroundColor,
915
+ color: e.value.style.chart.color
915
916
  },
916
917
  head: {
917
- backgroundColor: t.value.style.chart.backgroundColor,
918
- color: t.value.style.chart.color
918
+ backgroundColor: e.value.style.chart.backgroundColor,
919
+ color: e.value.style.chart.color
919
920
  }
920
921
  }
921
922
  }, {
@@ -926,7 +927,7 @@ const lo = ["id"], ao = {
926
927
  head: ve.value.head,
927
928
  body: ve.value.body,
928
929
  config: ve.value.config,
929
- title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
930
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
930
931
  onClose: l[2] || (l[2] = (o) => P.value.showTable = !1)
931
932
  }, {
932
933
  th: T(({ th: o }) => [
@@ -945,7 +946,7 @@ const lo = ["id"], ao = {
945
946
  }, 8, ["config"])) : O("", !0)
946
947
  ], 46, lo));
947
948
  }
948
- }, Lo = /* @__PURE__ */ jt(xo, [["__scopeId", "data-v-f1f88c1e"]]);
949
+ }, Lo = /* @__PURE__ */ jt(xo, [["__scopeId", "data-v-845d5032"]]);
949
950
  export {
950
951
  Lo as default
951
952
  };