vue-data-ui 3.0.2 → 3.0.4

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 (91) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
  41. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
  42. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
  88. package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
  89. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as M, computed as d, ref as r, toRefs as vt, watch as X, shallowRef as Re, onMounted as dt, onBeforeUnmount as ht, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as A, normalizeClass as G, createBlock as I, createCommentVNode as g, createElementVNode as L, createVNode as ze, createSlots as ft, withCtx as p, renderSlot as h, normalizeProps as R, guardReactiveProps as z, Fragment as B, renderList as V, toDisplayString as N, createTextVNode as pt, nextTick as Ne } from "vue";
2
- import { u as gt, c as mt, t as yt, a as bt, p as De, b as kt, d as wt, o as Le, f as ne, e as Ct, X as $t, i as Y, k as se, y as Be, v as xt, w as Tt, z as Ot } from "./index-B9Ct1B_p.js";
3
- import { t as _t, u as At } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ve } from "./useNestedProp-C0gKxLur.js";
5
- import { u as It } from "./usePrinter-DcZXg1hH.js";
6
- import { u as St } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ft from "./Title-CntvKJss.js";
9
- import Mt from "./Legend-CQsASoei.js";
10
- import Rt from "./img-Cv4nScI0.js";
11
- import { u as zt, B as Nt } from "./useLoading-D7YHNtLX.js";
12
- import { u as Dt } from "./useAutoSizeLabelsInsideViewbox-DvdDLkzw.js";
13
- import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ut = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Xt = ["id"], Gt = ["stdDeviation"], Ht = ["filter"], Wt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], jt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], qt = { key: 2 }, Jt = ["onMouseenter", "onMouseleave", "onClick"], Kt = ["x", "y", "font-size", "fill", "font-weight"], Qt = {
1
+ import { defineAsyncComponent as R, computed as d, ref as r, toRefs as dt, watch as X, shallowRef as ze, onMounted as ht, onBeforeUnmount as pt, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as S, normalizeClass as G, createBlock as A, createCommentVNode as f, createElementVNode as P, createVNode as Ne, createSlots as ft, withCtx as g, renderSlot as h, normalizeProps as z, guardReactiveProps as N, Fragment as B, renderList as V, toDisplayString as D, Teleport as gt, createTextVNode as mt, nextTick as De } from "vue";
2
+ import { u as yt, c as bt, t as kt, a as wt, p as Le, b as $t, d as Ct, o as Be, f as ne, e as xt, X as Tt, i as Y, k as se, y as Ve, v as Ot, w as _t, z as At } from "./index-q-LPw2IT.js";
3
+ import { t as It, u as St } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ye } from "./useNestedProp-04aFeUYu.js";
5
+ import { u as Pt } from "./usePrinter-DX7efa1s.js";
6
+ import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import Rt from "./Title-B55R8CAZ.js";
9
+ import zt from "./Legend-DcDSkq99.js";
10
+ import Nt from "./img-Ctts6JQb.js";
11
+ import { u as Dt, B as Lt } from "./useLoading-D7YHNtLX.js";
12
+ import { u as Bt } from "./useAutoSizeLabelsInsideViewbox-bEAG5sD1.js";
13
+ import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Yt = ["id"], Et = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Gt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ht = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Wt = ["id"], jt = ["stdDeviation"], qt = ["filter"], Jt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Kt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter", "onMouseleave", "onClick"], Qt = { key: 2 }, Zt = ["onMouseenter", "onMouseleave", "onClick"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Zt = ["onClick"], ea = ["innerHTML"], ta = {
17
+ }, aa = ["id"], la = ["onClick"], oa = ["innerHTML"], na = {
18
18
  __name: "vue-ui-onion",
19
19
  props: {
20
20
  config: {
@@ -31,14 +31,14 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Ye, { expose: Ee, emit: Ue }) {
35
- const Xe = M(() => import("./vue-ui-accordion-B31QK9Hj.js")), Ge = M(() => import("./DataTable-osx68WLA.js")), He = M(() => import("./PackageVersion-DZGrOKw5.js")), We = M(() => import("./PenAndPaper-CdXspg5R.js")), je = M(() => import("./Tooltip-DF8e4iB9.js")), qe = M(() => import("./UserOptions-DQyIO0ts.js")), { vue_ui_onion: Je } = gt(), w = Ye, ue = d(() => !!w.dataset && w.dataset.length), S = r(mt()), Ke = r(null), re = r(0), H = r(!1), W = r(""), y = r([]), x = r(null), ie = r(null), ce = r(null), ve = r(null), de = r(null), he = r(0), fe = r(0), pe = r(0), C = r(!1), e = r(K()), { loading: b, FINAL_DATASET: ge, manualLoading: j } = zt({
36
- ...vt(w),
34
+ setup(Ee, { expose: Ue, emit: Xe }) {
35
+ const Ge = R(() => import("./vue-ui-accordion-D46i_gkB.js")), He = R(() => import("./DataTable-rj9-mAwF.js")), We = R(() => import("./PackageVersion-5ZjKSIei.js")), je = R(() => import("./PenAndPaper-BJ0hcgsa.js")), qe = R(() => import("./Tooltip-BMOddG-M.js")), Je = R(() => import("./UserOptions-DVzyjG-W.js")), { vue_ui_onion: Ke } = yt(), $ = Ee, ue = d(() => !!$.dataset && $.dataset.length), y = r(bt()), Qe = r(null), re = r(0), H = r(!1), W = r(""), b = r([]), T = r(null), ie = r(null), ce = r(null), ve = r(null), de = r(null), he = r(0), pe = r(0), fe = r(0), C = r(!1), ge = r(!1), e = r(K()), { loading: k, FINAL_DATASET: me, manualLoading: j } = Dt({
36
+ ...dt($),
37
37
  FINAL_CONFIG: e,
38
38
  prepareConfig: K,
39
39
  callback: () => {
40
40
  Promise.resolve().then(async () => {
41
- await Ne(), Te();
41
+ await De(), Oe();
42
42
  });
43
43
  },
44
44
  skeletonDataset: [
@@ -47,7 +47,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
47
47
  { name: "_", percentage: 50, value: 1, color: "#ADADAD" },
48
48
  { name: "_", percentage: 50, value: 1, color: "#969696" }
49
49
  ],
50
- skeletonConfig: yt({
50
+ skeletonConfig: kt({
51
51
  defaultConfig: e.value,
52
52
  userConfig: {
53
53
  userOptions: { show: !1 },
@@ -68,28 +68,28 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
68
68
  }
69
69
  }
70
70
  })
71
- }), { userOptionsVisible: q, setUserOptionsVisibility: me, keepUserOptionState: ye } = St({ config: e.value }), { svgRef: J } = Pt({ config: e.value.style.chart.title });
71
+ }), { userOptionsVisible: q, setUserOptionsVisibility: ye, keepUserOptionState: be } = Ft({ config: e.value }), { svgRef: J } = Mt({ config: e.value.style.chart.title });
72
72
  function K() {
73
- const t = Ve({
74
- userConfig: w.config,
75
- defaultConfig: Je
73
+ const t = Ye({
74
+ userConfig: $.config,
75
+ defaultConfig: Ke
76
76
  });
77
77
  return t.theme ? {
78
- ...Ve({
79
- userConfig: kt.vue_ui_onion[t.theme] || w.config,
78
+ ...Ye({
79
+ userConfig: $t.vue_ui_onion[t.theme] || $.config,
80
80
  defaultConfig: t
81
81
  }),
82
- customPalette: bt[t.theme] || De
82
+ customPalette: wt[t.theme] || Le
83
83
  } : t;
84
84
  }
85
- X(() => w.config, (t) => {
86
- b.value || (e.value = K()), q.value = !e.value.userOptions.showOnChartHover, xe(), he.value += 1, fe.value += 1, pe.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
85
+ X(() => $.config, (t) => {
86
+ k.value || (e.value = K()), q.value = !e.value.userOptions.showOnChartHover, Te(), he.value += 1, pe.value += 1, fe.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
87
87
  }, { deep: !0 });
88
- const { isPrinting: be, isImaging: ke, generatePdf: we, generateImage: Ce } = It({
89
- elementId: `vue-ui-onion_${S.value}`,
88
+ const { isPrinting: ke, isImaging: we, generatePdf: $e, generateImage: Ce } = Pt({
89
+ elementId: `vue-ui-onion_${y.value}`,
90
90
  fileName: e.value.style.chart.title.text || "vue-ui-onion",
91
91
  options: e.value.userOptions.print
92
- }), Qe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ze = d(() => wt(e.value.customPalette)), m = r({
92
+ }), Ze = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = d(() => Ct(e.value.customPalette)), m = r({
93
93
  showTable: e.value.table.show,
94
94
  showTooltip: e.value.style.chart.tooltip.show
95
95
  });
@@ -109,31 +109,31 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
109
109
  bottom: 64
110
110
  },
111
111
  minRadius: 64
112
- }), T = Re(null), P = Re(null);
113
- dt(() => {
114
- xe();
112
+ }), O = ze(null), F = ze(null);
113
+ ht(() => {
114
+ ge.value = !0, Te();
115
115
  });
116
- const et = d({
116
+ const tt = d({
117
117
  get: () => e.value.style.chart.layout.labels.fontSize,
118
118
  set: (t) => t
119
- }), { autoSizeLabels: $e } = Dt({
119
+ }), { autoSizeLabels: xe } = Bt({
120
120
  svgRef: J,
121
121
  fontSize: e.value.style.chart.layout.labels.fontSize,
122
122
  minFontSize: e.value.style.chart.layout.labels.minFontSize,
123
- sizeRef: et,
123
+ sizeRef: tt,
124
124
  labelClass: ".vue-ui-onion-label"
125
- }), tt = d(() => e.value.debug);
125
+ }), at = d(() => e.value.debug);
126
126
  let Q = null;
127
- function xe() {
128
- if (Le(w.dataset) && (ne({
127
+ function Te() {
128
+ if (Be($.dataset) && (ne({
129
129
  componentName: "VueUiOnion",
130
130
  type: "dataset",
131
- debug: tt.value
132
- }), j.value = !0), Le(w.dataset) || (j.value = e.value.loading), e.value.responsive) {
133
- const o = _t(() => {
131
+ debug: at.value
132
+ }), j.value = !0), Be($.dataset) || (j.value = e.value.loading), e.value.responsive) {
133
+ const o = It(() => {
134
134
  Q && clearTimeout(Q), C.value = !0;
135
- let { width: a, height: l } = At({
136
- chart: x.value,
135
+ let { width: a, height: l } = St({
136
+ chart: T.value,
137
137
  title: e.value.style.chart.title.text ? ie.value : null,
138
138
  legend: e.value.style.chart.legend.show ? ce.value : null,
139
139
  source: ve.value,
@@ -141,16 +141,16 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
141
141
  });
142
142
  l -= 12, requestAnimationFrame(async () => {
143
143
  n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125, Q = setTimeout(() => {
144
- C.value = !1, $e();
144
+ C.value = !1, xe();
145
145
  }, 0);
146
146
  });
147
147
  });
148
- T.value && (P.value && T.value.unobserve(P.value), T.value.disconnect()), T.value = new ResizeObserver(o), P.value = x.value.parentNode, T.value.observe(P.value);
148
+ O.value && (F.value && O.value.unobserve(F.value), O.value.disconnect()), O.value = new ResizeObserver(o), F.value = T.value.parentNode, O.value.observe(F.value);
149
149
  }
150
- requestAnimationFrame($e);
150
+ requestAnimationFrame(xe);
151
151
  }
152
- ht(() => {
153
- T.value && (P.value && T.value.unobserve(P.value), T.value.disconnect());
152
+ pt(() => {
153
+ O.value && (F.value && O.value.unobserve(F.value), O.value.disconnect());
154
154
  });
155
155
  const c = d(() => ({
156
156
  top: n.value.padding.top,
@@ -163,7 +163,7 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
163
163
  height: n.value.height - n.value.padding.bottom - n.value.padding.top,
164
164
  minRadius: n.value.minRadius,
165
165
  maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
166
- })), f = d(() => (ge.value.forEach((t, o) => {
166
+ })), p = d(() => (me.value.forEach((t, o) => {
167
167
  [null, void 0].includes(t.name) && ne({
168
168
  componentName: "VueUiOnion",
169
169
  type: "datasetSerieAttribute",
@@ -175,71 +175,71 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
175
175
  property: "percentage",
176
176
  index: o
177
177
  });
178
- }), ge.value.map((t, o) => {
179
- const a = `onion_serie_${o}_${S.value}`;
178
+ }), me.value.map((t, o) => {
179
+ const a = `onion_serie_${o}_${y.value}`;
180
180
  return {
181
181
  ...t,
182
182
  percentage: t.percentage || 0,
183
183
  targetPercentage: t.percentage || 0,
184
- color: Ct(t.color) || Ze.value[o] || De[o],
184
+ color: xt(t.color) || et.value[o] || Le[o],
185
185
  id: a,
186
186
  shape: "circle",
187
- opacity: y.value.includes(a) ? 0.5 : 1,
187
+ opacity: b.value.includes(a) ? 0.5 : 1,
188
188
  absoluteIndex: o,
189
- segregate: () => Oe(a),
190
- isSegregated: y.value.includes(a)
189
+ segregate: () => _e(a),
190
+ isSegregated: b.value.includes(a)
191
191
  };
192
- }))), D = r(f.value), at = d(() => e.value.useStartAnimation), lt = r(null), ot = d(() => Math.max(...f.value.map((t) => t.percentage))), Z = r(!1);
193
- X(() => f.value, Te, { immediate: !0, deep: !0 }), X(() => w.dataset, (t) => {
192
+ }))), L = r(p.value), lt = d(() => e.value.useStartAnimation), ot = r(null), nt = d(() => Math.max(...p.value.map((t) => t.percentage))), Z = r(!1);
193
+ X(() => p.value, Oe, { immediate: !0, deep: !0 }), X(() => $.dataset, (t) => {
194
194
  Array.isArray(t) && t.length > 0 && (j.value = !1);
195
195
  }, { deep: !0 });
196
- function Te() {
197
- if (at.value && !Z.value && !b.value) {
196
+ function Oe() {
197
+ if (lt.value && !Z.value && !k.value) {
198
198
  let o = function() {
199
- t >= ot.value ? (cancelAnimationFrame(lt.value), D.value = f.value, Z.value = !0) : (D.value = f.value.map((a) => ({
199
+ t >= nt.value ? (cancelAnimationFrame(ot.value), L.value = p.value, Z.value = !0) : (L.value = p.value.map((a) => ({
200
200
  ...a,
201
201
  percentage: t < a.targetPercentage ? t : a.targetPercentage
202
202
  })), t += 1, requestAnimationFrame(o), Z.value = !0);
203
203
  };
204
- D.value = f.value.map((a) => ({
204
+ L.value = p.value.map((a) => ({
205
205
  ...a,
206
206
  percentage: 0
207
207
  }));
208
208
  let t = 0;
209
209
  o();
210
210
  } else
211
- D.value = f.value;
211
+ L.value = p.value;
212
212
  }
213
- const nt = d(() => ({
213
+ const st = d(() => ({
214
214
  cy: "onion-div-legend",
215
215
  backgroundColor: e.value.style.chart.legend.backgroundColor,
216
216
  color: e.value.style.chart.legend.color,
217
217
  fontSize: e.value.style.chart.legend.fontSize,
218
218
  paddingBottom: 12,
219
219
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
220
- })), st = d(() => f.value.filter((t) => !y.value.includes(t.id)).length), _ = d(() => {
221
- const t = Math.min(c.value.width, c.value.height) / 2 / f.value.length;
220
+ })), ut = d(() => p.value.filter((t) => !b.value.includes(t.id)).length), I = d(() => {
221
+ const t = Math.min(c.value.width, c.value.height) / 2 / p.value.length;
222
222
  return {
223
223
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
224
224
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
225
225
  };
226
- }), $ = d(() => D.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
227
- const a = (c.value.maxRadius - _.value.track) / st.value / 2 * (1 + o), l = c.value.centerY - a;
226
+ }), x = d(() => L.value.filter((t) => !b.value.includes(t.id)).map((t, o) => {
227
+ const a = (c.value.maxRadius - I.value.track) / ut.value / 2 * (1 + o), l = c.value.centerY - a;
228
228
  return {
229
229
  percentage: t.percentage || 0,
230
230
  ...t,
231
231
  labelY: l,
232
232
  radius: a,
233
- path: ut(a, t.percentage || 0)
233
+ path: rt(a, t.percentage || 0)
234
234
  };
235
235
  }));
236
- function ut(t, o) {
237
- const a = 2 * Math.PI * t, l = a * 0.75, v = `${l} ${a}`, k = l * (1 - o / 100);
236
+ function rt(t, o) {
237
+ const a = 2 * Math.PI * t, l = a * 0.75, v = `${l} ${a}`, w = l * (1 - o / 100);
238
238
  return {
239
239
  bgDashArray: `${l} ${a}`,
240
240
  bgDashOffset: 0,
241
241
  dashArray: v,
242
- dashOffset: k,
242
+ dashOffset: w,
243
243
  fullOffset: 0,
244
244
  active: `
245
245
  M ${c.value.centerX},${c.value.centerY - t}
@@ -248,22 +248,22 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
248
248
  `.trim()
249
249
  };
250
250
  }
251
- const rt = Ue;
252
- function Oe(t) {
253
- y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), rt("selectLegend", $.value);
251
+ const it = Xe;
252
+ function _e(t) {
253
+ b.value.includes(t) ? b.value = b.value.filter((o) => o !== t) : b.value.push(t), it("selectLegend", x.value);
254
254
  }
255
- function it() {
256
- return $.value;
255
+ function ct() {
256
+ return x.value;
257
257
  }
258
258
  const ee = d(() => {
259
- const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = $.value.map((a) => [
259
+ const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = x.value.map((a) => [
260
260
  a.name,
261
261
  a.percentage,
262
262
  a.value
263
263
  ]);
264
264
  return { head: t, body: o };
265
265
  }), E = d(() => {
266
- const t = ee.value.head, o = $.value.map((l) => [
266
+ const t = ee.value.head, o = x.value.map((l) => [
267
267
  `<span style="color:${l.color}">⬤</span> ${l.name}`,
268
268
  `${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
269
269
  `${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
@@ -282,44 +282,44 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
282
282
  };
283
283
  return { head: t, body: o, config: a, colNames: t };
284
284
  });
285
- function _e(t = null) {
286
- Ne(() => {
287
- const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ee.value.head, l = ee.value.body, v = o.concat([a]).concat(l), k = xt(v);
288
- t ? t(k) : Tt({ csvContent: k, title: e.value.style.chart.title.text || "vue-ui-onion" });
285
+ function Ae(t = null) {
286
+ De(() => {
287
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ee.value.head, l = ee.value.body, v = o.concat([a]).concat(l), w = Ot(v);
288
+ t ? t(w) : _t({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-onion" });
289
289
  });
290
290
  }
291
- const O = r(void 0), F = r(!1);
292
- function Ae(t) {
293
- F.value = t, re.value += 1;
291
+ const _ = r(void 0), M = r(!1);
292
+ function Ie(t) {
293
+ M.value = t, re.value += 1;
294
294
  }
295
- function Ie({ datapoint: t }) {
295
+ function Se({ datapoint: t }) {
296
296
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
297
297
  }
298
- function Se({ datapoint: t }) {
299
- O.value = void 0, H.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
298
+ function Pe({ datapoint: t }) {
299
+ _.value = void 0, H.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
300
300
  }
301
301
  const te = r(null);
302
- function Pe({ datapoint: t, seriesIndex: o, show: a = !0 }) {
302
+ function Fe({ datapoint: t, seriesIndex: o, show: a = !0 }) {
303
303
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex });
304
304
  const l = t.absoluteIndex;
305
- O.value = o, te.value = {
305
+ _.value = o, te.value = {
306
306
  datapoint: t,
307
307
  seriesIndex: l,
308
- series: f.value,
308
+ series: p.value,
309
309
  config: e.value
310
310
  }, H.value = a;
311
311
  let v = "";
312
- const k = e.value.style.chart.tooltip.customFormat;
313
- if (Be(k) && Ot(() => k({
312
+ const w = e.value.style.chart.tooltip.customFormat;
313
+ if (Ve(w) && At(() => w({
314
314
  seriesIndex: l,
315
315
  datapoint: t,
316
- series: f.value,
316
+ series: p.value,
317
317
  config: e.value
318
318
  })))
319
- W.value = k({
319
+ W.value = w({
320
320
  seriesIndex: l,
321
321
  datapoint: t,
322
- series: f.value,
322
+ series: p.value,
323
323
  config: e.value
324
324
  });
325
325
  else {
@@ -337,69 +337,69 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
337
337
  ) : ""}${le && oe ? ")" : ""}</div>`, W.value = `<div>${v}</div>`;
338
338
  }
339
339
  }
340
- function Fe() {
340
+ function Me() {
341
341
  m.value.showTable = !m.value.showTable;
342
342
  }
343
- function Me() {
343
+ function Re() {
344
344
  m.value.showTooltip = !m.value.showTooltip;
345
345
  }
346
346
  const U = r(!1);
347
347
  function ae() {
348
348
  U.value = !U.value;
349
349
  }
350
- async function ct({ scale: t = 2 } = {}) {
351
- if (!x.value) return;
352
- const { width: o, height: a } = x.value.getBoundingClientRect(), l = o / a, { imageUri: v, base64: k } = await Rt({ domElement: x.value, base64: !0, img: !0, scale: t });
350
+ async function vt({ scale: t = 2 } = {}) {
351
+ if (!T.value) return;
352
+ const { width: o, height: a } = T.value.getBoundingClientRect(), l = o / a, { imageUri: v, base64: w } = await Nt({ domElement: T.value, base64: !0, img: !0, scale: t });
353
353
  return {
354
354
  imageUri: v,
355
- base64: k,
355
+ base64: w,
356
356
  title: e.value.style.chart.title.text,
357
357
  width: o,
358
358
  height: a,
359
359
  aspectRatio: l
360
360
  };
361
361
  }
362
- return Ee({
363
- getData: it,
364
- getImage: ct,
365
- generatePdf: we,
366
- generateCsv: _e,
362
+ return Ue({
363
+ getData: ct,
364
+ getImage: vt,
365
+ generatePdf: $e,
366
+ generateCsv: Ae,
367
367
  generateImage: Ce,
368
- toggleTable: Fe,
369
- toggleTooltip: Me,
368
+ toggleTable: Me,
369
+ toggleTooltip: Re,
370
370
  toggleAnnotator: ae,
371
- toggleFullscreen: Ae
371
+ toggleFullscreen: Ie
372
372
  }), (t, o) => (u(), i("div", {
373
- class: G(`vue-ui-onion ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
373
+ class: G(`vue-ui-onion ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
374
374
  ref_key: "onionChart",
375
- ref: x,
376
- id: `vue-ui-onion_${S.value}`,
377
- style: A(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
378
- onMouseenter: o[2] || (o[2] = () => s(me)(!0)),
379
- onMouseleave: o[3] || (o[3] = () => s(me)(!1))
375
+ ref: T,
376
+ id: `vue-ui-onion_${y.value}`,
377
+ style: S(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
378
+ onMouseenter: o[2] || (o[2] = () => s(ye)(!0)),
379
+ onMouseleave: o[3] || (o[3] = () => s(ye)(!1))
380
380
  }, [
381
- e.value.userOptions.buttons.annotator ? (u(), I(s(We), {
381
+ e.value.userOptions.buttons.annotator ? (u(), A(s(je), {
382
382
  key: 0,
383
383
  svgRef: s(J),
384
384
  backgroundColor: e.value.style.chart.backgroundColor,
385
385
  color: e.value.style.chart.color,
386
386
  active: U.value,
387
387
  onClose: ae
388
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
389
- Qe.value ? (u(), i("div", {
388
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
389
+ Ze.value ? (u(), i("div", {
390
390
  key: 1,
391
391
  ref_key: "noTitle",
392
392
  ref: de,
393
393
  class: "vue-data-ui-no-title-space",
394
394
  style: "height:36px; width: 100%;background:transparent"
395
- }, null, 512)) : g("", !0),
395
+ }, null, 512)) : f("", !0),
396
396
  e.value.style.chart.title.text ? (u(), i("div", {
397
397
  key: 2,
398
398
  ref_key: "chartTitle",
399
399
  ref: ie,
400
400
  style: "width:100%;background:transparent"
401
401
  }, [
402
- (u(), I(Ft, {
402
+ (u(), A(Rt, {
403
403
  key: `title_${he.value}`,
404
404
  config: {
405
405
  title: {
@@ -412,108 +412,111 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
412
412
  }
413
413
  }
414
414
  }, null, 8, ["config"]))
415
- ], 512)) : g("", !0),
416
- e.value.userOptions.show && ue.value && (s(ye) || s(q)) ? (u(), I(s(qe), {
415
+ ], 512)) : f("", !0),
416
+ P("div", {
417
+ id: `legend-top-${y.value}`
418
+ }, null, 8, Et),
419
+ e.value.userOptions.show && ue.value && (s(be) || s(q)) ? (u(), A(s(Je), {
417
420
  ref_key: "details",
418
- ref: Ke,
421
+ ref: Qe,
419
422
  key: `user_options${re.value}`,
420
423
  backgroundColor: e.value.style.chart.backgroundColor,
421
424
  color: e.value.style.chart.color,
422
- isImaging: s(ke),
423
- isPrinting: s(be),
424
- uid: S.value,
425
+ isImaging: s(we),
426
+ isPrinting: s(ke),
427
+ uid: y.value,
425
428
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
426
429
  hasPdf: e.value.userOptions.buttons.pdf,
427
430
  hasImg: e.value.userOptions.buttons.img,
428
431
  hasXls: e.value.userOptions.buttons.csv,
429
432
  hasTable: e.value.userOptions.buttons.table,
430
433
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
431
- isFullscreen: F.value,
434
+ isFullscreen: M.value,
432
435
  isTooltip: m.value.showTooltip,
433
436
  titles: { ...e.value.userOptions.buttonTitles },
434
- chartElement: x.value,
437
+ chartElement: T.value,
435
438
  position: e.value.userOptions.position,
436
439
  hasAnnotator: e.value.userOptions.buttons.annotator,
437
440
  isAnnotation: U.value,
438
441
  callbacks: e.value.userOptions.callbacks,
439
442
  printScale: e.value.userOptions.print.scale,
440
- onToggleFullscreen: Ae,
441
- onGeneratePdf: s(we),
442
- onGenerateCsv: _e,
443
+ onToggleFullscreen: Ie,
444
+ onGeneratePdf: s($e),
445
+ onGenerateCsv: Ae,
443
446
  onGenerateImage: s(Ce),
444
- onToggleTable: Fe,
445
- onToggleTooltip: Me,
447
+ onToggleTable: Me,
448
+ onToggleTooltip: Re,
446
449
  onToggleAnnotator: ae,
447
- style: A({
448
- visibility: s(ye) ? s(q) ? "visible" : "hidden" : "visible"
450
+ style: S({
451
+ visibility: s(be) ? s(q) ? "visible" : "hidden" : "visible"
449
452
  })
450
453
  }, ft({ _: 2 }, [
451
454
  t.$slots.menuIcon ? {
452
455
  name: "menuIcon",
453
- fn: p(({ isOpen: a, color: l }) => [
454
- h(t.$slots, "menuIcon", R(z({ isOpen: a, color: l })), void 0, !0)
456
+ fn: g(({ isOpen: a, color: l }) => [
457
+ h(t.$slots, "menuIcon", z(N({ isOpen: a, color: l })), void 0, !0)
455
458
  ]),
456
459
  key: "0"
457
460
  } : void 0,
458
461
  t.$slots.optionTooltip ? {
459
462
  name: "optionTooltip",
460
- fn: p(() => [
463
+ fn: g(() => [
461
464
  h(t.$slots, "optionTooltip", {}, void 0, !0)
462
465
  ]),
463
466
  key: "1"
464
467
  } : void 0,
465
468
  t.$slots.optionPdf ? {
466
469
  name: "optionPdf",
467
- fn: p(() => [
470
+ fn: g(() => [
468
471
  h(t.$slots, "optionPdf", {}, void 0, !0)
469
472
  ]),
470
473
  key: "2"
471
474
  } : void 0,
472
475
  t.$slots.optionCsv ? {
473
476
  name: "optionCsv",
474
- fn: p(() => [
477
+ fn: g(() => [
475
478
  h(t.$slots, "optionCsv", {}, void 0, !0)
476
479
  ]),
477
480
  key: "3"
478
481
  } : void 0,
479
482
  t.$slots.optionImg ? {
480
483
  name: "optionImg",
481
- fn: p(() => [
484
+ fn: g(() => [
482
485
  h(t.$slots, "optionImg", {}, void 0, !0)
483
486
  ]),
484
487
  key: "4"
485
488
  } : void 0,
486
489
  t.$slots.optionTable ? {
487
490
  name: "optionTable",
488
- fn: p(() => [
491
+ fn: g(() => [
489
492
  h(t.$slots, "optionTable", {}, void 0, !0)
490
493
  ]),
491
494
  key: "5"
492
495
  } : void 0,
493
496
  t.$slots.optionFullscreen ? {
494
497
  name: "optionFullscreen",
495
- fn: p(({ toggleFullscreen: a, isFullscreen: l }) => [
496
- h(t.$slots, "optionFullscreen", R(z({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
498
+ fn: g(({ toggleFullscreen: a, isFullscreen: l }) => [
499
+ h(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
497
500
  ]),
498
501
  key: "6"
499
502
  } : void 0,
500
503
  t.$slots.optionAnnotator ? {
501
504
  name: "optionAnnotator",
502
- fn: p(({ toggleAnnotator: a, isAnnotator: l }) => [
503
- h(t.$slots, "optionAnnotator", R(z({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
505
+ fn: g(({ toggleAnnotator: a, isAnnotator: l }) => [
506
+ h(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
504
507
  ]),
505
508
  key: "7"
506
509
  } : void 0
507
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
510
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
508
511
  (u(), i("svg", {
509
512
  ref_key: "svgRef",
510
513
  ref: J,
511
- xmlns: s($t),
512
- class: G({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value, resizing: C.value }),
514
+ xmlns: s(Tt),
515
+ class: G({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value, resizing: C.value }),
513
516
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
514
- style: A(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
517
+ style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
515
518
  }, [
516
- ze(s(He)),
519
+ Ne(s(We)),
517
520
  t.$slots["chart-background"] ? (u(), i("foreignObject", {
518
521
  key: 0,
519
522
  x: 0,
@@ -525,85 +528,85 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
525
528
  }
526
529
  }, [
527
530
  h(t.$slots, "chart-background", {}, void 0, !0)
528
- ], 8, Yt)) : g("", !0),
529
- (u(!0), i(B, null, V($.value, (a, l) => (u(), i("circle", {
531
+ ], 8, Xt)) : f("", !0),
532
+ (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
530
533
  cx: c.value.centerX,
531
534
  cy: c.value.centerY,
532
535
  r: a.radius <= 0 ? 1e-4 : a.radius,
533
536
  stroke: e.value.style.chart.layout.gutter.color,
534
- "stroke-width": _.value.gutter,
537
+ "stroke-width": I.value.gutter,
535
538
  fill: "none",
536
539
  "stroke-dasharray": a.path.bgDashArray,
537
540
  "stroke-dashoffset": a.path.fullOffset,
538
541
  "stroke-linecap": "round",
539
- class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l }),
540
- style: A({
542
+ class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
543
+ style: S({
541
544
  transform: "rotate(-90deg)",
542
545
  transformOrigin: "50% 50%",
543
- transition: C.value || s(b) ? "none" : "all 0.3s ease-in-out !important",
544
- animation: C.value || s(b) ? "none" : "xyAnimation 0.5s ease-in"
546
+ transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
547
+ animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
545
548
  })
546
- }, null, 14, Et))), 256)),
547
- (u(!0), i(B, null, V($.value, (a, l) => (u(), i("circle", {
549
+ }, null, 14, Gt))), 256)),
550
+ (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
548
551
  cx: c.value.centerX,
549
552
  cy: c.value.centerY,
550
553
  r: a.radius < 0 ? 1e-4 : a.radius,
551
554
  stroke: `${a.color}`,
552
- "stroke-width": _.value.track,
555
+ "stroke-width": I.value.track,
553
556
  fill: "none",
554
557
  "stroke-dasharray": a.path.dashArray,
555
558
  "stroke-dashoffset": a.path.dashOffset,
556
- class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l }),
559
+ class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value !== l }),
557
560
  "stroke-linecap": "round",
558
- style: A({
561
+ style: S({
559
562
  transform: "rotate(-90deg)",
560
563
  transformOrigin: "50% 50%",
561
- transition: C.value || s(b) ? "none" : "all 0.3s ease-in-out !important",
562
- animation: C.value || s(b) ? "none" : "xyAnimation 0.5s ease-in"
564
+ transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
565
+ animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
563
566
  })
564
- }, null, 14, Ut))), 256)),
565
- L("defs", null, [
566
- L("filter", {
567
- id: `blur_${S.value}`,
567
+ }, null, 14, Ht))), 256)),
568
+ P("defs", null, [
569
+ P("filter", {
570
+ id: `blur_${y.value}`,
568
571
  x: "-50%",
569
572
  y: "-50%",
570
573
  width: "200%",
571
574
  height: "200%"
572
575
  }, [
573
- L("feGaussianBlur", {
576
+ P("feGaussianBlur", {
574
577
  in: "SourceGraphic",
575
578
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
576
- }, null, 8, Gt)
577
- ], 8, Xt)
579
+ }, null, 8, jt)
580
+ ], 8, Wt)
578
581
  ]),
579
582
  e.value.style.chart.useGradient ? (u(), i("g", {
580
583
  key: 1,
581
- filter: `url(#blur_${S.value})`
584
+ filter: `url(#blur_${y.value})`
582
585
  }, [
583
- (u(!0), i(B, null, V($.value, (a, l) => (u(), i("circle", {
586
+ (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
584
587
  cx: c.value.centerX,
585
588
  cy: c.value.centerY,
586
589
  r: a.radius <= 0 ? 1e-4 : a.radius,
587
590
  stroke: "white",
588
- "stroke-width": _.value.track / 3,
591
+ "stroke-width": I.value.track / 3,
589
592
  fill: "none",
590
593
  "stroke-linecap": "round",
591
594
  "stroke-dasharray": a.path.dashArray,
592
595
  "stroke-dashoffset": a.path.dashOffset,
593
- style: A({
596
+ style: S({
594
597
  transform: "rotate(-90deg)",
595
598
  transformOrigin: "50% 50%",
596
- transition: C.value || s(b) ? "none" : "all 0.3s ease-in-out !important",
597
- animation: C.value || s(b) ? "none" : "xyAnimation 0.5s ease-in"
599
+ transition: C.value || s(k) ? "none" : "all 0.3s ease-in-out !important",
600
+ animation: C.value || s(k) ? "none" : "xyAnimation 0.5s ease-in"
598
601
  })
599
- }, null, 12, Wt))), 256))
600
- ], 8, Ht)) : g("", !0),
601
- (u(!0), i(B, null, V($.value, (a, l) => (u(), i("circle", {
602
+ }, null, 12, Jt))), 256))
603
+ ], 8, qt)) : f("", !0),
604
+ (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("circle", {
602
605
  cx: c.value.centerX,
603
606
  cy: c.value.centerY,
604
607
  r: a.radius <= 0 ? 1e-4 : a.radius,
605
608
  stroke: "transparent",
606
- "stroke-width": Math.max(_.value.track, _.value.gutter),
609
+ "stroke-width": Math.max(I.value.track, I.value.gutter),
607
610
  fill: "none",
608
611
  "stroke-dasharray": a.path.bgDashArray,
609
612
  "stroke-dashoffset": a.path.fullOffset,
@@ -613,38 +616,38 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
613
616
  transform: "rotate(-90deg)",
614
617
  transformOrigin: "50% 50%"
615
618
  },
616
- onMouseenter: (v) => Pe({
619
+ onMouseenter: (v) => Fe({
617
620
  datapoint: a,
618
621
  show: !0,
619
622
  seriesIndex: l
620
623
  }),
621
- onMouseleave: (v) => Se({ datapoint: a }),
622
- onClick: (v) => Ie({ datapoint: a })
623
- }, null, 40, jt))), 256)),
624
- e.value.style.chart.layout.labels.show ? (u(), i("g", qt, [
625
- (u(!0), i(B, null, V($.value, (a, l) => (u(), i("g", {
626
- onMouseenter: (v) => Pe({
624
+ onMouseleave: (v) => Pe({ datapoint: a }),
625
+ onClick: (v) => Se({ datapoint: a })
626
+ }, null, 40, Kt))), 256)),
627
+ e.value.style.chart.layout.labels.show ? (u(), i("g", Qt, [
628
+ (u(!0), i(B, null, V(x.value, (a, l) => (u(), i("g", {
629
+ onMouseenter: (v) => Fe({
627
630
  datapoint: a,
628
631
  show: !0,
629
632
  seriesIndex: l
630
633
  }),
631
- onMouseleave: (v) => Se({ datapoint: a }),
632
- onClick: (v) => Ie({ datapoint: a })
634
+ onMouseleave: (v) => Pe({ datapoint: a }),
635
+ onClick: (v) => Se({ datapoint: a })
633
636
  }, [
634
- y.value.includes(a.id) ? g("", !0) : (u(), i("text", {
637
+ b.value.includes(a.id) ? f("", !0) : (u(), i("text", {
635
638
  key: 0,
636
639
  class: "vue-ui-onion-label",
637
- x: n.value.width / 2 - _.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
640
+ x: n.value.width / 2 - I.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
638
641
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
639
642
  "text-anchor": "end",
640
643
  "font-size": e.value.style.chart.layout.labels.fontSize,
641
- fill: e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value === l ? a.color : e.value.style.chart.layout.labels.color,
644
+ fill: e.value.useBlurOnHover && ![null, void 0].includes(_.value) && _.value === l ? a.color : e.value.style.chart.layout.labels.color,
642
645
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
643
- }, N(a.name ? a.name + ": " : "") + " " + N(e.value.style.chart.layout.labels.percentage.show ? s(Y)({
646
+ }, D(a.name ? a.name + ": " : "") + " " + D(e.value.style.chart.layout.labels.percentage.show ? s(Y)({
644
647
  v: a.percentage,
645
648
  s: "%",
646
649
  r: e.value.style.chart.layout.labels.roundingPercentage
647
- }) : "") + " " + N(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(se)(
650
+ }) : "") + " " + D(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${s(se)(
648
651
  e.value.style.chart.layout.labels.value.formatter,
649
652
  a.value,
650
653
  s(Y)({
@@ -664,47 +667,55 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
664
667
  r: e.value.style.chart.layout.labels.roundingValue
665
668
  }),
666
669
  { datapoint: a, seriesIndex: l }
667
- )})` : ""}`), 9, Kt))
668
- ], 40, Jt))), 256))
669
- ])) : g("", !0),
670
+ )})` : ""}`), 9, ea))
671
+ ], 40, Zt))), 256))
672
+ ])) : f("", !0),
670
673
  h(t.$slots, "svg", { svg: n.value }, void 0, !0)
671
- ], 14, Vt)),
672
- t.$slots.watermark ? (u(), i("div", Qt, [
673
- h(t.$slots, "watermark", R(z({ isPrinting: s(be) || s(ke) })), void 0, !0)
674
- ])) : g("", !0),
675
- L("div", {
676
- ref_key: "chartLegend",
677
- ref: ce
674
+ ], 14, Ut)),
675
+ t.$slots.watermark ? (u(), i("div", ta, [
676
+ h(t.$slots, "watermark", z(N({ isPrinting: s(ke) || s(we) })), void 0, !0)
677
+ ])) : f("", !0),
678
+ P("div", {
679
+ id: `legend-bottom-${y.value}`
680
+ }, null, 8, aa),
681
+ ge.value ? (u(), A(gt, {
682
+ key: 5,
683
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
678
684
  }, [
679
- e.value.style.chart.legend.show ? (u(), I(Mt, {
680
- key: `legend_${pe.value}`,
681
- legendSet: f.value,
682
- config: nt.value,
683
- onClickMarker: o[0] || (o[0] = ({ legend: a }) => Oe(a.id))
684
- }, {
685
- item: p(({ legend: a }) => [
686
- s(b) ? g("", !0) : (u(), i("div", {
687
- key: 0,
688
- "data-cy-legend-item": "",
689
- onClick: (l) => a.segregate(),
690
- style: A(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
691
- }, N(a.name ? a.name + ": " : "") + " " + N((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Zt))
692
- ]),
693
- _: 1
694
- }, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
695
- key: 1,
696
- legend: f.value
697
- }, void 0, !0)
698
- ], 512),
685
+ P("div", {
686
+ ref_key: "chartLegend",
687
+ ref: ce
688
+ }, [
689
+ e.value.style.chart.legend.show ? (u(), A(zt, {
690
+ key: `legend_${fe.value}`,
691
+ legendSet: p.value,
692
+ config: st.value,
693
+ onClickMarker: o[0] || (o[0] = ({ legend: a }) => _e(a.id))
694
+ }, {
695
+ item: g(({ legend: a }) => [
696
+ s(k) ? f("", !0) : (u(), i("div", {
697
+ key: 0,
698
+ "data-cy-legend-item": "",
699
+ onClick: (l) => a.segregate(),
700
+ style: S(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
701
+ }, D(a.name ? a.name + ": " : "") + " " + D((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, la))
702
+ ]),
703
+ _: 1
704
+ }, 8, ["legendSet", "config"])) : h(t.$slots, "legend", {
705
+ key: 1,
706
+ legend: p.value
707
+ }, void 0, !0)
708
+ ], 512)
709
+ ], 8, ["to"])) : f("", !0),
699
710
  t.$slots.source ? (u(), i("div", {
700
- key: 5,
711
+ key: 6,
701
712
  ref_key: "source",
702
713
  ref: ve,
703
714
  dir: "auto"
704
715
  }, [
705
716
  h(t.$slots, "source", {}, void 0, !0)
706
- ], 512)) : g("", !0),
707
- ze(s(je), {
717
+ ], 512)) : f("", !0),
718
+ Ne(s(qe), {
708
719
  show: m.value.showTooltip && H.value,
709
720
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
710
721
  color: e.value.style.chart.tooltip.color,
@@ -715,23 +726,23 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
715
726
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
716
727
  position: e.value.style.chart.tooltip.position,
717
728
  offsetY: e.value.style.chart.tooltip.offsetY,
718
- parent: x.value,
729
+ parent: T.value,
719
730
  content: W.value,
720
- isFullscreen: F.value,
721
- isCustom: s(Be)(e.value.style.chart.tooltip.customFormat),
731
+ isFullscreen: M.value,
732
+ isCustom: s(Ve)(e.value.style.chart.tooltip.customFormat),
722
733
  smooth: e.value.style.chart.tooltip.smooth,
723
734
  backdropFilter: e.value.style.chart.tooltip.backdropFilter
724
735
  }, {
725
- "tooltip-before": p(() => [
726
- h(t.$slots, "tooltip-before", R(z({ ...te.value })), void 0, !0)
736
+ "tooltip-before": g(() => [
737
+ h(t.$slots, "tooltip-before", z(N({ ...te.value })), void 0, !0)
727
738
  ]),
728
- "tooltip-after": p(() => [
729
- h(t.$slots, "tooltip-after", R(z({ ...te.value })), void 0, !0)
739
+ "tooltip-after": g(() => [
740
+ h(t.$slots, "tooltip-after", z(N({ ...te.value })), void 0, !0)
730
741
  ]),
731
742
  _: 3
732
743
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
733
- ue.value ? (u(), I(s(Xe), {
734
- key: 6,
744
+ ue.value ? (u(), A(s(Ge), {
745
+ key: 7,
735
746
  hideDetails: "",
736
747
  config: {
737
748
  open: m.value.showTable,
@@ -746,9 +757,9 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
746
757
  }
747
758
  }
748
759
  }, {
749
- content: p(() => [
750
- (u(), I(s(Ge), {
751
- key: `table_${fe.value}`,
760
+ content: g(() => [
761
+ (u(), A(s(He), {
762
+ key: `table_${pe.value}`,
752
763
  colNames: E.value.colNames,
753
764
  head: E.value.head,
754
765
  body: E.value.body,
@@ -756,21 +767,21 @@ const Bt = ["id"], Vt = ["xmlns", "viewBox"], Yt = ["width", "height"], Et = ["c
756
767
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
757
768
  onClose: o[1] || (o[1] = (a) => m.value.showTable = !1)
758
769
  }, {
759
- th: p(({ th: a }) => [
760
- pt(N(a), 1)
770
+ th: g(({ th: a }) => [
771
+ mt(D(a), 1)
761
772
  ]),
762
- td: p(({ td: a }) => [
763
- L("div", { innerHTML: a }, null, 8, ea)
773
+ td: g(({ td: a }) => [
774
+ P("div", { innerHTML: a }, null, 8, oa)
764
775
  ]),
765
776
  _: 1
766
777
  }, 8, ["colNames", "head", "body", "config", "title"]))
767
778
  ]),
768
779
  _: 1
769
- }, 8, ["config"])) : g("", !0),
770
- s(b) ? (u(), I(Nt, { key: 7 })) : g("", !0)
771
- ], 46, Bt));
780
+ }, 8, ["config"])) : f("", !0),
781
+ s(k) ? (u(), A(Lt, { key: 8 })) : f("", !0)
782
+ ], 46, Yt));
772
783
  }
773
- }, pa = /* @__PURE__ */ Lt(ta, [["__scopeId", "data-v-4cb88669"]]);
784
+ }, ba = /* @__PURE__ */ Vt(na, [["__scopeId", "data-v-bd7e4981"]]);
774
785
  export {
775
- pa as default
786
+ ba as default
776
787
  };