vue-data-ui 3.17.9 → 3.17.11

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 (126) hide show
  1. package/dist/{PackageVersion-Ov37I8ii.js → PackageVersion-CHNfLQ9Q.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-age-pyramid.js +1 -1
  4. package/dist/components/vue-ui-bullet.js +1 -1
  5. package/dist/components/vue-ui-bump.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-cursor.js +1 -1
  12. package/dist/components/vue-ui-dag.js +1 -1
  13. package/dist/components/vue-ui-dashboard.js +1 -1
  14. package/dist/components/vue-ui-digits.js +1 -1
  15. package/dist/components/vue-ui-donut-evolution.js +1 -1
  16. package/dist/components/vue-ui-donut.js +1 -1
  17. package/dist/components/vue-ui-dumbbell.js +1 -1
  18. package/dist/components/vue-ui-flow.js +1 -1
  19. package/dist/components/vue-ui-funnel.js +1 -1
  20. package/dist/components/vue-ui-galaxy.js +1 -1
  21. package/dist/components/vue-ui-gauge.js +1 -1
  22. package/dist/components/vue-ui-geo.js +1 -1
  23. package/dist/components/vue-ui-gizmo.js +1 -1
  24. package/dist/components/vue-ui-heatmap.js +1 -1
  25. package/dist/components/vue-ui-history-plot.js +1 -1
  26. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  27. package/dist/components/vue-ui-kpi.js +1 -1
  28. package/dist/components/vue-ui-molecule.js +1 -1
  29. package/dist/components/vue-ui-mood-radar.js +1 -1
  30. package/dist/components/vue-ui-nested-donuts.js +1 -1
  31. package/dist/components/vue-ui-onion.js +1 -1
  32. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  33. package/dist/components/vue-ui-quadrant.js +1 -1
  34. package/dist/components/vue-ui-quick-chart.js +1 -1
  35. package/dist/components/vue-ui-radar.js +1 -1
  36. package/dist/components/vue-ui-relation-circle.js +1 -1
  37. package/dist/components/vue-ui-ridgeline.js +1 -1
  38. package/dist/components/vue-ui-rings.js +1 -1
  39. package/dist/components/vue-ui-scatter.js +1 -1
  40. package/dist/components/vue-ui-skeleton.js +1 -1
  41. package/dist/components/vue-ui-spark-trend.js +1 -1
  42. package/dist/components/vue-ui-sparkbar.js +1 -1
  43. package/dist/components/vue-ui-sparkgauge.js +1 -1
  44. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  45. package/dist/components/vue-ui-sparkline.js +1 -1
  46. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  47. package/dist/components/vue-ui-stackbar.js +1 -1
  48. package/dist/components/vue-ui-stackline.js +1 -1
  49. package/dist/components/vue-ui-strip-plot.js +1 -1
  50. package/dist/components/vue-ui-table-sparkline.js +1 -1
  51. package/dist/components/vue-ui-table.js +1 -1
  52. package/dist/components/vue-ui-thermometer.js +1 -1
  53. package/dist/components/vue-ui-timer.js +1 -1
  54. package/dist/components/vue-ui-tiremarks.js +1 -1
  55. package/dist/components/vue-ui-treemap.js +1 -1
  56. package/dist/components/vue-ui-vertical-bar.js +1 -1
  57. package/dist/components/vue-ui-waffle.js +1 -1
  58. package/dist/components/vue-ui-wheel.js +1 -1
  59. package/dist/components/vue-ui-word-cloud.js +1 -1
  60. package/dist/components/vue-ui-world.js +1 -1
  61. package/dist/components/vue-ui-xy-canvas.js +1 -1
  62. package/dist/components/vue-ui-xy.js +1 -1
  63. package/dist/style.css +1 -1
  64. package/dist/{vue-data-ui-C1Z1RCcf.js → vue-data-ui-BhpgB8UJ.js} +61 -61
  65. package/dist/vue-data-ui.js +61 -61
  66. package/dist/{vue-ui-3d-bar-BqqCv_L2.js → vue-ui-3d-bar-DlLiXS6Z.js} +1 -1
  67. package/dist/{vue-ui-age-pyramid-C-2sRuVe.js → vue-ui-age-pyramid-DraVdYRy.js} +1 -1
  68. package/dist/{vue-ui-bullet-CkBMlG46.js → vue-ui-bullet-WnD9rJbc.js} +19 -18
  69. package/dist/{vue-ui-bump-DxBzf8_x.js → vue-ui-bump-DwgahfiC.js} +1 -1
  70. package/dist/{vue-ui-candlestick-CQw6E5XK.js → vue-ui-candlestick-BleQTpuq.js} +1 -1
  71. package/dist/{vue-ui-carousel-table-ehHnnwYQ.js → vue-ui-carousel-table-BjXxtjCZ.js} +1 -1
  72. package/dist/{vue-ui-chestnut-CEG1n9Bg.js → vue-ui-chestnut-xBDbJ9su.js} +1 -1
  73. package/dist/{vue-ui-chord-Bm8sj1jg.js → vue-ui-chord-D_pGtRHt.js} +36 -35
  74. package/dist/{vue-ui-circle-pack-BhtBzyoU.js → vue-ui-circle-pack-C7-wxx3Y.js} +1 -1
  75. package/dist/{vue-ui-cursor-KjOp9R9e.js → vue-ui-cursor-DBvL5KTg.js} +1 -1
  76. package/dist/{vue-ui-dag-DsBuepaA.js → vue-ui-dag-BKGTFMQK.js} +1 -1
  77. package/dist/{vue-ui-dashboard-ClvBMAzA.js → vue-ui-dashboard-CEtNOoBY.js} +58 -58
  78. package/dist/{vue-ui-digits-CUN5zijI.js → vue-ui-digits-BeIq6BVd.js} +1 -1
  79. package/dist/{vue-ui-donut-B1EgAu-L.js → vue-ui-donut-BjV5_nf1.js} +44 -43
  80. package/dist/{vue-ui-donut-evolution-5PjaWTvx.js → vue-ui-donut-evolution-B7hCGAIO.js} +30 -29
  81. package/dist/{vue-ui-dumbbell-D8hAgMko.js → vue-ui-dumbbell-ZMLefa9v.js} +85 -86
  82. package/dist/{vue-ui-flow-jJLellQk.js → vue-ui-flow-BYjkId4Z.js} +63 -62
  83. package/dist/{vue-ui-funnel-C4JIWkGm.js → vue-ui-funnel-BZtpP-Of.js} +2 -2
  84. package/dist/{vue-ui-galaxy-CuqTB4XR.js → vue-ui-galaxy-bdIj6ERd.js} +56 -55
  85. package/dist/{vue-ui-gauge-B5bJUzMr.js → vue-ui-gauge-DT5-qFXl.js} +1 -1
  86. package/dist/{vue-ui-geo-BJiW5vL1.js → vue-ui-geo-nXp15sZ5.js} +1 -1
  87. package/dist/{vue-ui-gizmo-D5e5T4fu.js → vue-ui-gizmo-J5MTo522.js} +1 -1
  88. package/dist/{vue-ui-heatmap-Bsr9R8ek.js → vue-ui-heatmap-G7DzkGq2.js} +1 -1
  89. package/dist/{vue-ui-history-plot-pXrD1Fm7.js → vue-ui-history-plot-BLoxv5uS.js} +35 -36
  90. package/dist/{vue-ui-horizontal-bar-7HugQ0dT.js → vue-ui-horizontal-bar-B8wbIiWo.js} +1 -1
  91. package/dist/{vue-ui-kpi-BLVCrWfG.js → vue-ui-kpi-AT8jIXnu.js} +1 -1
  92. package/dist/{vue-ui-molecule-DhIWpt07.js → vue-ui-molecule-j5opFMNQ.js} +1 -1
  93. package/dist/{vue-ui-mood-radar-BUpDYe22.js → vue-ui-mood-radar-Opwn9CwC.js} +84 -83
  94. package/dist/{vue-ui-nested-donuts-JhqmPAhH.js → vue-ui-nested-donuts-Cc_5aNFc.js} +117 -120
  95. package/dist/{vue-ui-onion-DUSgz_9-.js → vue-ui-onion-CjDIGb68.js} +62 -63
  96. package/dist/{vue-ui-parallel-coordinate-plot-Cbn9N0y0.js → vue-ui-parallel-coordinate-plot-CcQZTqNS.js} +35 -36
  97. package/dist/{vue-ui-quadrant-Foz7WuoD.js → vue-ui-quadrant-FoV76r7G.js} +32 -33
  98. package/dist/{vue-ui-quick-chart-DVH6A-Nr.js → vue-ui-quick-chart-BPu7QR35.js} +3 -3
  99. package/dist/{vue-ui-radar-CDpMulQa.js → vue-ui-radar-C60tBqYo.js} +72 -73
  100. package/dist/{vue-ui-relation-circle-ChtfTtXY.js → vue-ui-relation-circle-CaeT1NKV.js} +1 -1
  101. package/dist/{vue-ui-ridgeline-DXs-IeYj.js → vue-ui-ridgeline-DpLnKVx2.js} +2 -2
  102. package/dist/{vue-ui-rings-BfhsTTW_.js → vue-ui-rings-Bp1MqbOV.js} +171 -172
  103. package/dist/{vue-ui-scatter-CYWGf_oA.js → vue-ui-scatter-C73P-oBq.js} +100 -101
  104. package/dist/{vue-ui-skeleton-BPUPkwbA.js → vue-ui-skeleton-BSR3VLyw.js} +1 -1
  105. package/dist/{vue-ui-spark-trend-Cz7B6dw6.js → vue-ui-spark-trend-BqlM3vP7.js} +1 -1
  106. package/dist/{vue-ui-sparkbar-Dv89_7Pf.js → vue-ui-sparkbar-DqtEGBj9.js} +1 -1
  107. package/dist/{vue-ui-sparkgauge-BOPXQq5e.js → vue-ui-sparkgauge-DWOru6YE.js} +1 -1
  108. package/dist/{vue-ui-sparkhistogram-BXYBq4wu.js → vue-ui-sparkhistogram-DfYv2pHk.js} +1 -1
  109. package/dist/{vue-ui-sparkline-B-CVRLdL.js → vue-ui-sparkline-Bu5xssk9.js} +1 -1
  110. package/dist/{vue-ui-sparkstackbar-Dg3wvlR7.js → vue-ui-sparkstackbar-D-a14Bay.js} +1 -1
  111. package/dist/{vue-ui-stackbar-Dojc9vet.js → vue-ui-stackbar-BB-KLlR-.js} +45 -46
  112. package/dist/{vue-ui-stackline-BrZw5IXj.js → vue-ui-stackline-fWtYk_Aa.js} +119 -120
  113. package/dist/{vue-ui-strip-plot-Jqkr7XWO.js → vue-ui-strip-plot-D0QC2wVw.js} +1 -1
  114. package/dist/{vue-ui-table-B_TE9dWt.js → vue-ui-table-Rk5HCqBr.js} +2 -2
  115. package/dist/{vue-ui-table-sparkline-DtryAFeu.js → vue-ui-table-sparkline-Cb6fl-Ux.js} +1 -1
  116. package/dist/{vue-ui-thermometer-Cf2u4_lH.js → vue-ui-thermometer-ConedyG6.js} +1 -1
  117. package/dist/{vue-ui-timer-BCw6IHHQ.js → vue-ui-timer-B-GcfZX7.js} +1 -1
  118. package/dist/{vue-ui-tiremarks-AOLQC2Pm.js → vue-ui-tiremarks-BGyILItf.js} +1 -1
  119. package/dist/{vue-ui-treemap-C8MtnLLV.js → vue-ui-treemap-C4PiafoY.js} +33 -34
  120. package/dist/{vue-ui-waffle-DvQ-_joz.js → vue-ui-waffle-DvHrxSIL.js} +44 -45
  121. package/dist/{vue-ui-wheel-BzBzZw1d.js → vue-ui-wheel-DeKJJliu.js} +1 -1
  122. package/dist/{vue-ui-word-cloud-LrVTAPzW.js → vue-ui-word-cloud-IAom94Mg.js} +1 -1
  123. package/dist/{vue-ui-world-7DPU6qqx.js → vue-ui-world-CH9uc5uY.js} +78 -77
  124. package/dist/{vue-ui-xy-XsqGdS48.js → vue-ui-xy-C11EO1Ja.js} +187 -188
  125. package/dist/{vue-ui-xy-canvas--zevqB3i.js → vue-ui-xy-canvas-DLvVyHZO.js} +103 -104
  126. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as G, computed as $, ref as h, toRefs as Ol, watch as fe, onMounted as Fl, shallowRef as Ft, onBeforeUnmount as Dl, openBlock as u, createElementBlock as r, unref as v, normalizeStyle as pe, normalizeClass as Z, createElementVNode as g, toDisplayString as E, createBlock as V, createCommentVNode as A, withCtx as y, renderSlot as b, normalizeProps as P, guardReactiveProps as S, createSlots as Dt, createVNode as Xe, Fragment as T, renderList as _, withDirectives as Nt, vShow as Vt, Teleport as Nl, resolveDynamicComponent as Vl, mergeProps as Ml, createTextVNode as Mt, nextTick as He } from "vue";
2
- import { j as zl, t as zt, m as Bl, p as qe, o as El, q as oe, n as Ul, a8 as Y, s as Rl, a4 as je, k as Le, l as D, X as Gl, u as Yl, a as Bt, a6 as Et, a7 as xe, B as Ut, T as Rt, a0 as Wl, a1 as Kl, U as Xl, ai as Gt, K as Je } from "./lib-DMzrGQHK.js";
1
+ import { defineAsyncComponent as G, computed as $, ref as h, toRefs as Ol, watch as fe, onMounted as Fl, shallowRef as Ft, onBeforeUnmount as Dl, openBlock as u, createElementBlock as r, unref as v, normalizeStyle as pe, normalizeClass as Z, createElementVNode as g, toDisplayString as E, createBlock as V, createCommentVNode as A, withCtx as y, renderSlot as b, normalizeProps as P, guardReactiveProps as S, createSlots as Dt, createVNode as Ke, Fragment as T, renderList as _, withDirectives as Nt, vShow as Vt, Teleport as Nl, resolveDynamicComponent as Vl, mergeProps as Ml, createTextVNode as Mt, nextTick as Xe } from "vue";
2
+ import { j as zl, t as zt, m as Bl, p as He, o as El, q as oe, n as Ul, a8 as Y, s as Rl, a4 as qe, k as Le, l as D, X as Gl, u as Yl, a as Bt, a6 as Et, a7 as xe, B as Ut, T as Rt, a0 as Wl, a1 as Kl, U as Xl, ai as Gt, K as je } from "./lib-DMzrGQHK.js";
3
3
  import { b as Hl } from "./labelUtils-DX9oyq3C.js";
4
4
  import { t as ql, u as jl } from "./useResponsive-DfdjqQps.js";
5
5
  import { u as Jl } from "./useConfig-B70q17MC.js";
6
6
  import { u as Ql, B as Zl } from "./BaseScanner-C2j3TsSY.js";
7
7
  import { u as ea } from "./usePrinter-C4t8DdQ-.js";
8
8
  import { u as ta } from "./useSvgExport-BTG4hVPO.js";
9
- import { u as Qe } from "./useNestedProp-DH0BEVVS.js";
9
+ import { u as Je } from "./useNestedProp-DH0BEVVS.js";
10
10
  import { u as la } from "./useThemeCheck-C9Ccl7U9.js";
11
11
  import { u as aa } from "./useUserOptionState-B7Ej974k.js";
12
12
  import { u as oa } from "./useChartAccessibility-cp6XQtqi.js";
@@ -51,7 +51,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
51
51
  ), Qt = G(
52
52
  () => import("./PenAndPaper-CJDoB5H9.js")
53
53
  ), Zt = G(
54
- () => import("./PackageVersion-Ov37I8ii.js")
54
+ () => import("./PackageVersion-CHNfLQ9Q.js")
55
55
  ), el = G(
56
56
  () => import("./BaseDraggableDialog-Di8Hlru3.js")
57
57
  ), { vue_ui_nested_donuts: tl } = Jl(), { isThemeValid: ll, warnInvalidTheme: al } = la(), I = Yt, Te = $({
@@ -61,11 +61,11 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
61
61
  set(t) {
62
62
  return t;
63
63
  }
64
- }), f = h(zl()), se = h(!1), _e = h(""), ne = h(null), Ze = h(0), M = h(null), et = h(null), Pe = h(null), tt = h(null), lt = h(null), at = h(0), ot = h(0), st = h(0), W = h(!0), K = h([]), ue = h([]), nt = h(!1), re = h(null), Se = h(null), ge = h(!1), ye = h(!1), N = h(null), ut = h({ x: 0, y: 0 }), ie = h("pointer"), Ie = h(!1), X = h(!1);
64
+ }), f = h(zl()), se = h(!1), _e = h(""), ne = h(null), Qe = h(0), M = h(null), Ze = h(null), et = h(null), tt = h(null), lt = h(null), at = h(0), ot = h(0), st = h(0), W = h(!0), K = h([]), ue = h([]), nt = h(!1), re = h(null), Pe = h(null), ge = h(!1), ye = h(!1), N = h(null), ut = h({ x: 0, y: 0 }), ie = h("pointer"), Se = h(!1), X = h(!1);
65
65
  function rt(t) {
66
- X.value = t, Ze.value += 1;
66
+ X.value = t, Qe.value += 1;
67
67
  }
68
- const e = h(De()), H = $(
68
+ const e = h(Fe()), H = $(
69
69
  () => e.value.userOptions.useCursorPointer
70
70
  ), it = {
71
71
  name: "",
@@ -115,10 +115,10 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
115
115
  }
116
116
  },
117
117
  userConfig: e.value.skeletonConfig ?? {}
118
- })), { loading: be, FINAL_DATASET: q, manualLoading: Oe } = Ql({
118
+ })), { loading: be, FINAL_DATASET: q, manualLoading: Ie } = Ql({
119
119
  ...Ol(I),
120
120
  FINAL_CONFIG: e,
121
- prepareConfig: De,
121
+ prepareConfig: Fe,
122
122
  callback: () => {
123
123
  Promise.resolve().then(async () => {
124
124
  await ht();
@@ -129,11 +129,11 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
129
129
  defaultConfig: e.value,
130
130
  userConfig: ol.value
131
131
  })
132
- }), { userOptionsVisible: Fe, setUserOptionsVisibility: dt, keepUserOptionState: ct } = aa({ config: e.value }), { svgRef: z } = oa({
132
+ }), { userOptionsVisible: Oe, setUserOptionsVisibility: dt, keepUserOptionState: ct } = aa({ config: e.value }), { svgRef: z } = oa({
133
133
  config: e.value.style.chart.title
134
134
  });
135
- function De() {
136
- const t = Qe({
135
+ function Fe() {
136
+ const t = Je({
137
137
  userConfig: I.config,
138
138
  defaultConfig: tl
139
139
  });
@@ -143,16 +143,16 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
143
143
  if (!ll.value(t))
144
144
  al(t), s = t;
145
145
  else {
146
- const o = Qe({
146
+ const o = Je({
147
147
  userConfig: ua[l] || I.config,
148
148
  defaultConfig: t
149
149
  });
150
150
  s = {
151
- ...Qe({
151
+ ...Je({
152
152
  userConfig: I.config,
153
153
  defaultConfig: o
154
154
  }),
155
- customPalette: t.customPalette.length ? t.customPalette : Bl[l] || qe
155
+ customPalette: t.customPalette.length ? t.customPalette : Bl[l] || He
156
156
  };
157
157
  }
158
158
  else
@@ -162,7 +162,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
162
162
  fe(
163
163
  () => I.config,
164
164
  (t) => {
165
- be.value || (e.value = De()), Fe.value = !e.value.userOptions.showOnChartHover, ft(), at.value += 1, ot.value += 1, st.value += 1, L.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show, p.value.width = e.value.style.chart.width, p.value.height = e.value.style.chart.height;
165
+ be.value || (e.value = Fe()), Oe.value = !e.value.userOptions.showOnChartHover, ft(), at.value += 1, ot.value += 1, st.value += 1, L.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show, p.value.width = e.value.style.chart.width, p.value.height = e.value.style.chart.height;
166
166
  },
167
167
  { deep: !0 }
168
168
  );
@@ -188,34 +188,34 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
188
188
  const x = Math.min((w - k) / s, 1), ve = Gt(x), he = d * ve;
189
189
  K.value[c] = he, K.value = [...K.value];
190
190
  const Ce = [];
191
- let Re = 0;
192
- I.dataset.forEach((Ae, Ge) => {
193
- const _l = Je(
191
+ let Ue = 0;
192
+ I.dataset.forEach((Ae, Re) => {
193
+ const _l = je(
194
194
  Ae.series.reduce(
195
- (We, Ke) => We + Je(
196
- Y(Ke.values).reduce(
195
+ (Ye, We) => Ye + je(
196
+ Y(We.values).reduce(
197
197
  (Sl, Il) => Sl + Il,
198
198
  0
199
199
  )
200
200
  ),
201
201
  0
202
202
  )
203
- ), Pl = Je(
204
- K.value.slice(Re, Re + Ae.series.length).reduce((We, Ke) => We + Ke, 0)
205
- ), Ye = _l - Pl;
206
- Ye > Number.MIN_VALUE && Ce.push({
203
+ ), Pl = je(
204
+ K.value.slice(Ue, Ue + Ae.series.length).reduce((Ye, We) => Ye + We, 0)
205
+ ), Ge = _l - Pl;
206
+ Ge > Number.MIN_VALUE && Ce.push({
207
207
  name: "__ghost__",
208
208
  arcOf: Ae.name,
209
- arcOfId: `${f.value}_${Ge}`,
210
- id: `ghost_${f.value}_${Ge}`,
209
+ arcOfId: `${f.value}_${Re}`,
210
+ id: `ghost_${f.value}_${Re}`,
211
211
  seriesIndex: -1,
212
- datasetIndex: Ge,
212
+ datasetIndex: Re,
213
213
  color: "transparent",
214
- value: Ye,
215
- fullValue: Ye,
214
+ value: Ge,
215
+ fullValue: Ge,
216
216
  absoluteValues: [],
217
217
  ghost: !0
218
- }), Re += Ae.series.length;
218
+ }), Ue += Ae.series.length;
219
219
  }), ue.value = Ce, x < 1 ? requestAnimationFrame(i) : (n += 1, n === a && o());
220
220
  }
221
221
  requestAnimationFrame(i);
@@ -246,7 +246,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
246
246
  absoluteValues: [],
247
247
  ghost: !0
248
248
  };
249
- }), await He(), sl(
249
+ }), await Xe(), sl(
250
250
  s,
251
251
  e.value.startAnimation.durationMs,
252
252
  e.value.startAnimation.staggerMs
@@ -265,12 +265,12 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
265
265
  componentName: "VueUiNestedDonuts",
266
266
  type: "dataset",
267
267
  debug: te.value
268
- }), Te.value = !1, Oe.value = !0) : Oe.value = e.value.loading, e.value.responsive) {
268
+ }), Te.value = !1, Ie.value = !0) : Ie.value = e.value.loading, e.value.responsive) {
269
269
  const t = ql(() => {
270
270
  const { width: s, height: l } = jl({
271
271
  chart: M.value,
272
- title: e.value.style.chart.title.text ? et.value : null,
273
- legend: e.value.style.chart.legend.show ? Pe.value : null,
272
+ title: e.value.style.chart.title.text ? Ze.value : null,
273
+ legend: e.value.style.chart.legend.show ? et.value : null,
274
274
  source: tt.value,
275
275
  noTitle: lt.value,
276
276
  padding: vt.value
@@ -285,7 +285,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
285
285
  Dl(() => {
286
286
  U.value && (ee.value && U.value.unobserve(ee.value), U.value.disconnect());
287
287
  });
288
- const { isPrinting: Ne, isImaging: Ve, generatePdf: pt, generateImage: gt } = ea({
288
+ const { isPrinting: De, isImaging: Ne, generatePdf: pt, generateImage: gt } = ea({
289
289
  elementId: `nested_donuts_${f.value}`,
290
290
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
291
291
  options: e.value.userOptions.print
@@ -312,9 +312,9 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
312
312
  const p = h({
313
313
  width: e.value.style.chart.width,
314
314
  height: e.value.style.chart.height
315
- }), Me = Kt;
315
+ }), Ve = Kt;
316
316
  function yt({ datapoint: t, index: s, seriesIndex: l }) {
317
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), Me("selectDatapoint", { datapoint: t, index: s });
317
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), Ve("selectDatapoint", { datapoint: t, index: s });
318
318
  }
319
319
  function bt({
320
320
  from: t,
@@ -386,7 +386,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
386
386
  id: `${f.value}_${l}_${a}`,
387
387
  seriesIndex: a,
388
388
  datasetIndex: l,
389
- color: Rl(o.color) || ul.value[a] || qe[a % qe.length],
389
+ color: Rl(o.color) || ul.value[a] || He[a % He.length],
390
390
  value: W.value ? K.value[t++] ?? 0 : n,
391
391
  absoluteValues: o.values || []
392
392
  };
@@ -396,7 +396,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
396
396
  fe(
397
397
  () => I.dataset,
398
398
  (t) => {
399
- Array.isArray(t) && t.length > 0 && (Oe.value = !1);
399
+ Array.isArray(t) && t.length > 0 && (Ie.value = !1);
400
400
  },
401
401
  { immediate: !0 }
402
402
  );
@@ -431,7 +431,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
431
431
  m.value.push(...s);
432
432
  }
433
433
  function j(t) {
434
- Me("selectLegend", t);
434
+ Ve("selectLegend", t);
435
435
  const s = I.dataset.flatMap(
436
436
  (i, w) => i.series.map((x, ve) => ({
437
437
  value: Y(x.values).reduce((he, Ce) => he + Ce, 0),
@@ -512,7 +512,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
512
512
  const l = Math.abs(t.series.map((k) => k.value).reduce((k, i) => k + i, 0)) > 0, o = B.value - s * B.value / C.value.length, a = W.value ? ue.value.find((k) => k.datasetIndex === s) : null, n = [...t.series, ...a ? [a] : []].map((k) => ({
513
513
  ...k,
514
514
  value: k.value < 1e-11 ? Number.MIN_VALUE : k.value
515
- })), d = je(
515
+ })), d = qe(
516
516
  {
517
517
  series: [
518
518
  {
@@ -541,7 +541,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
541
541
  radius: o,
542
542
  skeleton: d,
543
543
  fullCirclePath: c,
544
- donut: je(
544
+ donut: qe(
545
545
  { series: n },
546
546
  p.value.width / 2,
547
547
  p.value.height / 2,
@@ -559,7 +559,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
559
559
  const l = s * B.value / O.value.length;
560
560
  return {
561
561
  sizeRatio: l,
562
- donut: je(
562
+ donut: qe(
563
563
  { series: [{ value: 1 }] },
564
564
  p.value.width / 2,
565
565
  p.value.height / 2,
@@ -757,8 +757,8 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
757
757
  }))), s = C.value.flatMap((l) => l.series.map((o) => o.value));
758
758
  return { head: t, body: s };
759
759
  });
760
- function ze(t = null) {
761
- He(() => {
760
+ function Me(t = null) {
761
+ Xe(() => {
762
762
  const s = R.value.head.map((a, n) => [
763
763
  [a.name],
764
764
  [R.value.body[n]],
@@ -838,7 +838,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
838
838
  L.value.showTooltip = !L.value.showTooltip;
839
839
  }
840
840
  const de = h(!1);
841
- function Be() {
841
+ function ze() {
842
842
  de.value = !de.value;
843
843
  }
844
844
  async function pl({ scale: t = 2 } = {}) {
@@ -858,10 +858,10 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
858
858
  aspectRatio: o
859
859
  };
860
860
  }
861
- const Ee = h(null);
861
+ const Be = h(null);
862
862
  function gl() {
863
- if (!Ee.value) return;
864
- const { x: t, y: s, width: l, height: o } = Ee.value.getBBox();
863
+ if (!Be.value) return;
864
+ const { x: t, y: s, width: l, height: o } = Be.value.getBBox();
865
865
  z.value && z.value.setAttribute(
866
866
  "viewBox",
867
867
  `${t} ${s} ${l + Math.min(0, t)} ${o + Math.min(0, s)}`
@@ -905,7 +905,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
905
905
  }
906
906
  );
907
907
  function St() {
908
- L.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
908
+ L.value.showTable = !1, Pe.value && Pe.value.setTableIconState(!1);
909
909
  }
910
910
  const yl = $(() => e.value.style.chart.backgroundColor), bl = $(() => e.value.style.chart.legend), ml = $(() => e.value.style.chart.title), wl = $(
911
911
  () => $e.value.flat().map((t) => ({
@@ -920,7 +920,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
920
920
  backgroundColor: yl
921
921
  });
922
922
  async function It({ isCb: t }) {
923
- ye.value = !0, await He();
923
+ ye.value = !0, await Xe();
924
924
  try {
925
925
  if (t) {
926
926
  const { blob: s, url: l, text: o, dataUrl: a } = await $l();
@@ -950,7 +950,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
950
950
  gt();
951
951
  }
952
952
  async function Ot() {
953
- if (Me("copyAlt", {
953
+ if (Ve("copyAlt", {
954
954
  config: e.value,
955
955
  dataset: C.value
956
956
  }), !e.value.userOptions.callbacks.altCopy) {
@@ -968,10 +968,10 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
968
968
  }
969
969
  const F = $(() => J.value.flatMap((t) => t.donut.filter((s) => !s.ghost)));
970
970
  function Al() {
971
- N.value = null, Ie.value = !0;
971
+ N.value = null, Se.value = !0;
972
972
  }
973
973
  function Ll() {
974
- N.value = null, ie.value = "pointer", se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null, Ie.value = !1;
974
+ N.value = null, ie.value = "pointer", se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null, Se.value = !1;
975
975
  }
976
976
  function xl(t) {
977
977
  if (!z.value || de.value || document.activeElement !== z.value || !F.value.length) return;
@@ -1011,7 +1011,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1011
1011
  y: t.top + t.height / 2
1012
1012
  };
1013
1013
  }
1014
- const Ue = $(() => {
1014
+ const Ee = $(() => {
1015
1015
  const t = ae.value?.colNames ?? [], s = ae.value?.a11yBody ?? [];
1016
1016
  return { headers: t, rows: s };
1017
1017
  });
@@ -1020,7 +1020,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1020
1020
  getData: fl,
1021
1021
  getImage: pl,
1022
1022
  generatePdf: pt,
1023
- generateCsv: ze,
1023
+ generateCsv: Me,
1024
1024
  generateImage: gt,
1025
1025
  generateSvg: It,
1026
1026
  hideSeries: cl,
@@ -1028,7 +1028,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1028
1028
  toggleTable: Tt,
1029
1029
  toggleLabels: _t,
1030
1030
  toggleTooltip: Pt,
1031
- toggleAnnotator: Be,
1031
+ toggleAnnotator: ze,
1032
1032
  toggleFullscreen: rt,
1033
1033
  copyAlt: Ot
1034
1034
  }), (t, s) => (u(), r("div", {
@@ -1046,11 +1046,11 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1046
1046
  }, [
1047
1047
  g("p", null, E(e.value.a11y.translations.keyboardNavigation), 1)
1048
1048
  ], 8, ha),
1049
- Ue.value?.rows?.length ? (u(), V(ia, {
1049
+ Ee.value?.rows?.length ? (u(), V(ia, {
1050
1050
  key: 0,
1051
1051
  uid: f.value,
1052
- head: Ue.value.headers,
1053
- body: Ue.value.rows,
1052
+ head: Ee.value.headers,
1053
+ body: Ee.value.rows,
1054
1054
  notice: e.value.a11y.translations.tableAvailable,
1055
1055
  caption: e.value.a11y.translations.tableCaption
1056
1056
  }, null, 8, ["uid", "head", "body", "notice", "caption"])) : A("", !0),
@@ -1061,7 +1061,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1061
1061
  color: e.value.style.chart.color,
1062
1062
  active: de.value,
1063
1063
  isCursorPointer: H.value,
1064
- onClose: Be
1064
+ onClose: ze
1065
1065
  }, {
1066
1066
  "annotator-action-close": y(() => [
1067
1067
  b(t.$slots, "annotator-action-close", {}, void 0, !0)
@@ -1093,7 +1093,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1093
1093
  e.value.style.chart.title.text ? (u(), r("div", {
1094
1094
  key: 3,
1095
1095
  ref_key: "chartTitle",
1096
- ref: et
1096
+ ref: Ze
1097
1097
  }, [
1098
1098
  (u(), V(na, {
1099
1099
  key: `title_${at.value}`,
@@ -1112,14 +1112,14 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1112
1112
  g("div", {
1113
1113
  id: `legend-top-${f.value}`
1114
1114
  }, null, 8, fa),
1115
- e.value.userOptions.show && Te.value && (v(ct) || v(Fe)) ? (u(), V(v(Jt), {
1115
+ e.value.userOptions.show && Te.value && (v(ct) || v(Oe)) ? (u(), V(v(Jt), {
1116
1116
  ref_key: "userOptionsRef",
1117
- ref: Se,
1118
- key: `user_option_${Ze.value}`,
1117
+ ref: Pe,
1118
+ key: `user_option_${Qe.value}`,
1119
1119
  backgroundColor: e.value.style.chart.backgroundColor,
1120
1120
  color: e.value.style.chart.color,
1121
- isPrinting: v(Ne),
1122
- isImaging: v(Ve),
1121
+ isPrinting: v(De),
1122
+ isImaging: v(Ne),
1123
1123
  uid: f.value,
1124
1124
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
1125
1125
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -1143,16 +1143,16 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1143
1143
  isCursorPointer: H.value,
1144
1144
  onToggleFullscreen: rt,
1145
1145
  onGeneratePdf: v(pt),
1146
- onGenerateCsv: ze,
1146
+ onGenerateCsv: Me,
1147
1147
  onGenerateImage: Cl,
1148
1148
  onGenerateSvg: It,
1149
1149
  onToggleTable: Tt,
1150
1150
  onToggleLabels: _t,
1151
1151
  onToggleTooltip: Pt,
1152
- onToggleAnnotator: Be,
1152
+ onToggleAnnotator: ze,
1153
1153
  onCopyAlt: Ot,
1154
1154
  style: pe({
1155
- visibility: v(ct) ? v(Fe) ? "visible" : "hidden" : "visible"
1155
+ visibility: v(ct) ? v(Oe) ? "visible" : "hidden" : "visible"
1156
1156
  })
1157
1157
  }, Dt({ _: 2 }, [
1158
1158
  t.$slots.menuIcon ? {
@@ -1253,10 +1253,10 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1253
1253
  }, [
1254
1254
  g("g", {
1255
1255
  ref_key: "G",
1256
- ref: Ee,
1256
+ ref: Be,
1257
1257
  class: "vue-data-ui-g"
1258
1258
  }, [
1259
- Xe(v(Zt)),
1259
+ Ke(v(Zt)),
1260
1260
  t.$slots["chart-background"] ? (u(), r("foreignObject", {
1261
1261
  key: 0,
1262
1262
  x: 0,
@@ -1525,7 +1525,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1525
1525
  b(t.$slots, "svg", {
1526
1526
  svg: {
1527
1527
  ...p.value,
1528
- isPrintingImg: v(Ne) | v(Ve) | ge.value,
1528
+ isPrintingImg: v(De) | v(Ne) | ge.value,
1529
1529
  isPrintingSvg: ye.value
1530
1530
  }
1531
1531
  }, void 0, !0)
@@ -1534,16 +1534,16 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1534
1534
  t.$slots.hint ? (u(), r("div", Ba, [
1535
1535
  b(t.$slots, "hint", P(S({
1536
1536
  hint: e.value.a11y.translations.keyboardNavigation,
1537
- isVisible: Ie.value
1537
+ isVisible: Se.value
1538
1538
  })), void 0, !0)
1539
1539
  ])) : A("", !0)
1540
1540
  ]),
1541
1541
  t.$slots.watermark ? (u(), r("div", Ea, [
1542
1542
  b(t.$slots, "watermark", P(S({
1543
- isPrinting: v(Ne) || v(Ve) || ge.value || ye.value
1543
+ isPrinting: v(De) || v(Ne) || ge.value || ye.value
1544
1544
  })), void 0, !0)
1545
1545
  ])) : A("", !0),
1546
- Xe(v(Xt), {
1546
+ Ke(v(Xt), {
1547
1547
  teleportTo: e.value.style.chart.tooltip.teleportTo,
1548
1548
  show: L.value.showTooltip && se.value,
1549
1549
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
@@ -1580,65 +1580,62 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1580
1580
  g("div", {
1581
1581
  id: `legend-bottom-${f.value}`
1582
1582
  }, null, 8, Ua),
1583
- nt.value ? (u(), V(Nl, {
1583
+ nt.value && (e.value.style.chart.legend.show || t.$slots.legend) ? (u(), V(Nl, {
1584
1584
  key: 6,
1585
1585
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
1586
1586
  }, [
1587
1587
  e.value.style.chart.legend.show ? (u(), r("div", {
1588
1588
  key: 0,
1589
1589
  ref_key: "chartLegend",
1590
- ref: Pe,
1590
+ ref: et,
1591
1591
  class: Z({
1592
1592
  "vue-ui-nested-donuts-legend": $e.value.length > 1
1593
1593
  })
1594
1594
  }, [
1595
- (u(!0), r(T, null, _($e.value, (l, o) => (u(), V(ra, {
1596
- key: `legend_${o}_${st.value}`,
1597
- legendSet: l,
1598
- config: hl.value,
1599
- isCursorPointer: H.value,
1600
- onClickMarker: s[0] || (s[0] = ({ legend: a }) => j(a))
1601
- }, {
1602
- legendTitle: y(({ titleSet: a }) => [
1603
- a[0] && a[0].arcOf ? (u(), r("div", Ra, E(a[0].arcOf), 1)) : A("", !0)
1604
- ]),
1605
- item: y(({ legend: a, index: n }) => [
1606
- g("div", {
1607
- onClick: (d) => j(a),
1608
- style: pe(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
1609
- }, E(a.display), 13, Ga)
1610
- ]),
1611
- legendToggle: y(() => [
1612
- l.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !v(be) ? (u(), V(da, {
1613
- key: `toggle-${o}`,
1614
- backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1615
- color: e.value.style.chart.legend.selectAllToggle.color,
1616
- fontSize: e.value.style.chart.legend.fontSize,
1617
- checked: l.some((a) => m.value.includes(a.id)),
1618
- isCursorPointer: H.value,
1619
- onToggle: (a) => il(l)
1620
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer", "onToggle"])) : A("", !0)
1621
- ]),
1622
- _: 2
1623
- }, 1032, ["legendSet", "config", "isCursorPointer"]))), 128))
1595
+ b(t.$slots, "legend", { legend: $e.value }, () => [
1596
+ (u(!0), r(T, null, _($e.value, (l, o) => (u(), V(ra, {
1597
+ key: `legend_${o}_${st.value}`,
1598
+ legendSet: l,
1599
+ config: hl.value,
1600
+ isCursorPointer: H.value,
1601
+ onClickMarker: s[0] || (s[0] = ({ legend: a }) => j(a))
1602
+ }, {
1603
+ legendTitle: y(({ titleSet: a }) => [
1604
+ a[0] && a[0].arcOf ? (u(), r("div", Ra, E(a[0].arcOf), 1)) : A("", !0)
1605
+ ]),
1606
+ item: y(({ legend: a, index: n }) => [
1607
+ g("div", {
1608
+ onClick: (d) => j(a),
1609
+ style: pe(`opacity:${m.value.includes(a.id) ? 0.5 : 1}`)
1610
+ }, E(a.display), 13, Ga)
1611
+ ]),
1612
+ legendToggle: y(() => [
1613
+ l.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !v(be) ? (u(), V(da, {
1614
+ key: `toggle-${o}`,
1615
+ backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1616
+ color: e.value.style.chart.legend.selectAllToggle.color,
1617
+ fontSize: e.value.style.chart.legend.fontSize,
1618
+ checked: l.some(
1619
+ (a) => m.value.includes(a.id)
1620
+ ),
1621
+ isCursorPointer: H.value,
1622
+ onToggle: (a) => il(l)
1623
+ }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer", "onToggle"])) : A("", !0)
1624
+ ]),
1625
+ _: 2
1626
+ }, 1032, ["legendSet", "config", "isCursorPointer"]))), 128))
1627
+ ], !0)
1624
1628
  ], 2)) : A("", !0)
1625
1629
  ], 8, ["to"])) : A("", !0),
1626
- e.value.style.chart.legend.show ? A("", !0) : (u(), r("div", {
1627
- key: 7,
1628
- ref_key: "chartLegend",
1629
- ref: Pe
1630
- }, [
1631
- b(t.$slots, "legend", { legend: $e.value }, void 0, !0)
1632
- ], 512)),
1633
1630
  t.$slots.source ? (u(), r("div", {
1634
- key: 8,
1631
+ key: 7,
1635
1632
  ref_key: "source",
1636
1633
  ref: tt,
1637
1634
  dir: "auto"
1638
1635
  }, [
1639
1636
  b(t.$slots, "source", {}, void 0, !0)
1640
1637
  ], 512)) : A("", !0),
1641
- Te.value && e.value.userOptions.buttons.table ? (u(), V(Vl(ce.value.component), Ml({ key: 9 }, ce.value.props, {
1638
+ Te.value && e.value.userOptions.buttons.table ? (u(), V(Vl(ce.value.component), Ml({ key: 8 }, ce.value.props, {
1642
1639
  ref_key: "tableUnit",
1643
1640
  ref: re,
1644
1641
  onClose: St
@@ -1682,10 +1679,10 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1682
1679
  g("button", {
1683
1680
  tabindex: "0",
1684
1681
  class: "vue-ui-user-options-button",
1685
- onClick: s[1] || (s[1] = (l) => ze(e.value.userOptions.callbacks.csv)),
1682
+ onClick: s[1] || (s[1] = (l) => Me(e.value.userOptions.callbacks.csv)),
1686
1683
  style: pe({ cursor: H.value ? "pointer" : "default" })
1687
1684
  }, [
1688
- Xe(v(Ht), {
1685
+ Ke(v(Ht), {
1689
1686
  name: "fileCsv",
1690
1687
  stroke: ce.value.props.color
1691
1688
  }, null, 8, ["stroke"])
@@ -1699,7 +1696,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
1699
1696
  ], !0)
1700
1697
  ], 46, va));
1701
1698
  }
1702
- }, vo = /* @__PURE__ */ ca(Wa, [["__scopeId", "data-v-5d2304e8"]]);
1699
+ }, vo = /* @__PURE__ */ ca(Wa, [["__scopeId", "data-v-7f94932f"]]);
1703
1700
  export {
1704
1701
  vo as default
1705
1702
  };