vue-data-ui 3.19.7 → 3.19.9

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 (131) hide show
  1. package/README.md +1 -1
  2. package/dist/{PackageVersion-DUU5Aku2.js → PackageVersion-Dl9W5zJD.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-bump.js +1 -1
  7. package/dist/components/vue-ui-candlestick.js +1 -1
  8. package/dist/components/vue-ui-carousel-table.js +1 -1
  9. package/dist/components/vue-ui-chestnut.js +1 -1
  10. package/dist/components/vue-ui-chord.js +1 -1
  11. package/dist/components/vue-ui-circle-pack.js +1 -1
  12. package/dist/components/vue-ui-cursor.js +1 -1
  13. package/dist/components/vue-ui-dag.js +1 -1
  14. package/dist/components/vue-ui-dashboard.js +1 -1
  15. package/dist/components/vue-ui-digits.js +1 -1
  16. package/dist/components/vue-ui-donut-evolution.js +1 -1
  17. package/dist/components/vue-ui-donut.js +1 -1
  18. package/dist/components/vue-ui-dumbbell.js +1 -1
  19. package/dist/components/vue-ui-flow.js +1 -1
  20. package/dist/components/vue-ui-funnel.js +1 -1
  21. package/dist/components/vue-ui-galaxy.js +1 -1
  22. package/dist/components/vue-ui-gauge.js +1 -1
  23. package/dist/components/vue-ui-geo.js +1 -1
  24. package/dist/components/vue-ui-gizmo.js +1 -1
  25. package/dist/components/vue-ui-heatmap.js +1 -1
  26. package/dist/components/vue-ui-history-plot.js +1 -1
  27. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  28. package/dist/components/vue-ui-kpi.js +1 -1
  29. package/dist/components/vue-ui-molecule.js +1 -1
  30. package/dist/components/vue-ui-mood-radar.js +1 -1
  31. package/dist/components/vue-ui-nested-donuts.js +1 -1
  32. package/dist/components/vue-ui-onion.js +1 -1
  33. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  34. package/dist/components/vue-ui-quadrant.js +1 -1
  35. package/dist/components/vue-ui-quick-chart.js +1 -1
  36. package/dist/components/vue-ui-radar.js +1 -1
  37. package/dist/components/vue-ui-relation-circle.js +1 -1
  38. package/dist/components/vue-ui-ridgeline.js +1 -1
  39. package/dist/components/vue-ui-rings.js +1 -1
  40. package/dist/components/vue-ui-scatter.js +1 -1
  41. package/dist/components/vue-ui-skeleton.js +1 -1
  42. package/dist/components/vue-ui-spark-trend.js +1 -1
  43. package/dist/components/vue-ui-sparkbar.js +1 -1
  44. package/dist/components/vue-ui-sparkgauge.js +1 -1
  45. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  46. package/dist/components/vue-ui-sparkline.js +1 -1
  47. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  48. package/dist/components/vue-ui-stackbar.js +1 -1
  49. package/dist/components/vue-ui-stackline.js +1 -1
  50. package/dist/components/vue-ui-strip-plot.js +1 -1
  51. package/dist/components/vue-ui-table-sparkline.js +1 -1
  52. package/dist/components/vue-ui-table.js +1 -1
  53. package/dist/components/vue-ui-thermometer.js +1 -1
  54. package/dist/components/vue-ui-timer.js +1 -1
  55. package/dist/components/vue-ui-tiremarks.js +1 -1
  56. package/dist/components/vue-ui-treemap.js +1 -1
  57. package/dist/components/vue-ui-vertical-bar.js +1 -1
  58. package/dist/components/vue-ui-waffle.js +1 -1
  59. package/dist/components/vue-ui-wheel.js +1 -1
  60. package/dist/components/vue-ui-word-cloud.js +1 -1
  61. package/dist/components/vue-ui-world.js +1 -1
  62. package/dist/components/vue-ui-xy-canvas.js +1 -1
  63. package/dist/components/vue-ui-xy.js +1 -1
  64. package/dist/style.css +1 -1
  65. package/dist/types/vue-ui-dag.d.ts +2 -0
  66. package/dist/{vue-data-ui-DBjj6t8B.js → vue-data-ui-nsosW-n5.js} +61 -61
  67. package/dist/vue-data-ui.js +61 -61
  68. package/dist/{vue-ui-3d-bar-CmAc1xBL.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
  69. package/dist/{vue-ui-age-pyramid-CFvux3-S.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
  70. package/dist/{vue-ui-bullet-C4xEb3fq.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
  71. package/dist/{vue-ui-bump-BW76g7ep.js → vue-ui-bump-LQuPTOlm.js} +1 -1
  72. package/dist/{vue-ui-candlestick-ShTn9uzH.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
  73. package/dist/{vue-ui-carousel-table-DMan_IZb.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
  74. package/dist/{vue-ui-chestnut-BIfaNOqy.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
  75. package/dist/{vue-ui-chord-GDJiAjfD.js → vue-ui-chord-YflKRyWK.js} +1 -1
  76. package/dist/{vue-ui-circle-pack-Bo4ljiP_.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
  77. package/dist/{vue-ui-cursor-BuLoDOFw.js → vue-ui-cursor-C5_wkWul.js} +1 -1
  78. package/dist/{vue-ui-dag-BmbwijZi.js → vue-ui-dag-mH0baWM3.js} +1 -1
  79. package/dist/{vue-ui-dashboard-CyzIaw6M.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
  80. package/dist/{vue-ui-digits-B33dTRHj.js → vue-ui-digits-BYBtwXy_.js} +1 -1
  81. package/dist/{vue-ui-donut-BIgvjStd.js → vue-ui-donut-B3L7jeHL.js} +434 -432
  82. package/dist/{vue-ui-donut-evolution-DT5F88LK.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
  83. package/dist/{vue-ui-dumbbell-SwLKpHuh.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
  84. package/dist/{vue-ui-flow-BqTUyRBS.js → vue-ui-flow-BYYyk5KL.js} +1 -1
  85. package/dist/{vue-ui-funnel-GOx4FfhB.js → vue-ui-funnel-BfY509t-.js} +1 -1
  86. package/dist/{vue-ui-galaxy-CTMyOfp7.js → vue-ui-galaxy-D061gTYS.js} +260 -257
  87. package/dist/{vue-ui-gauge-Clz_TmiX.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
  88. package/dist/{vue-ui-geo-2kZK_UVF.js → vue-ui-geo-BwOMFUVr.js} +1 -1
  89. package/dist/{vue-ui-gizmo-BpNEwLo7.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
  90. package/dist/{vue-ui-heatmap-B6FLZij5.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
  91. package/dist/{vue-ui-history-plot-DpGwqYyg.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
  92. package/dist/{vue-ui-horizontal-bar-BHFd966c.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
  93. package/dist/{vue-ui-kpi-DyIqCISK.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
  94. package/dist/{vue-ui-molecule-BtQOQ32e.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
  95. package/dist/{vue-ui-mood-radar-CZSLnIMi.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
  96. package/dist/{vue-ui-nested-donuts-Lhteboo1.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
  97. package/dist/{vue-ui-onion-uCUgmyF1.js → vue-ui-onion-MN-PjNJq.js} +3 -3
  98. package/dist/{vue-ui-parallel-coordinate-plot-_u_VTAjF.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
  99. package/dist/{vue-ui-quadrant-CgalDMyS.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
  100. package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
  101. package/dist/{vue-ui-radar-64HPFASp.js → vue-ui-radar-D2pVd53z.js} +115 -112
  102. package/dist/{vue-ui-relation-circle-DT4So4-6.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
  103. package/dist/{vue-ui-ridgeline-5fZANTS9.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
  104. package/dist/{vue-ui-rings-QFY794j3.js → vue-ui-rings-DkHS5dwd.js} +105 -102
  105. package/dist/{vue-ui-scatter-BPCY-u36.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
  106. package/dist/{vue-ui-skeleton-Dj_ZVfSX.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
  107. package/dist/{vue-ui-spark-trend-DB0VHzm0.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
  108. package/dist/{vue-ui-sparkbar-DVGRTFO5.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
  109. package/dist/{vue-ui-sparkgauge-3UFZaDF9.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
  110. package/dist/{vue-ui-sparkhistogram-DRmBVef7.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
  111. package/dist/{vue-ui-sparkline-vsqKnakQ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
  112. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
  113. package/dist/{vue-ui-stackbar-9jP1s0MN.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
  114. package/dist/{vue-ui-stackline-D1o_afno.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
  115. package/dist/{vue-ui-strip-plot-CogQ8VSl.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
  116. package/dist/{vue-ui-table-Bub1v0eM.js → vue-ui-table-DuA_CfGn.js} +2 -2
  117. package/dist/{vue-ui-table-sparkline-BPts9wTR.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
  118. package/dist/{vue-ui-thermometer-CJJ4cVt0.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
  119. package/dist/{vue-ui-timer-BEPXWd20.js → vue-ui-timer-9LNNDl4q.js} +1 -1
  120. package/dist/{vue-ui-tiremarks-BC7bLLQD.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
  121. package/dist/{vue-ui-treemap-Cja-vZoa.js → vue-ui-treemap-BexKMBhz.js} +373 -373
  122. package/dist/{vue-ui-waffle-BRj-YBlz.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
  123. package/dist/{vue-ui-wheel-AOTFpTWN.js → vue-ui-wheel-BETHlWsO.js} +1 -1
  124. package/dist/{vue-ui-word-cloud-dqfAdhW-.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
  125. package/dist/{vue-ui-world-DqwsIYze.js → vue-ui-world-CcgbuSp_.js} +1 -1
  126. package/dist/vue-ui-xy-BQ1YONCq.js +4219 -0
  127. package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
  128. package/package.json +1 -1
  129. package/dist/vue-ui-quick-chart-BAWcSaDB.js +0 -2471
  130. package/dist/vue-ui-sparkstackbar-BNUhunuQ.js +0 -662
  131. package/dist/vue-ui-xy-Dhult6gR.js +0 -4181
@@ -106,7 +106,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
106
106
  "copyAlt"
107
107
  ],
108
108
  setup(e, { expose: Se, emit: qe }) {
109
- let Dt = v(() => import("./Tooltip-CuWEYGr3.js")), Ot = v(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), kt = v(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), At = v(() => import("./DataTable-DmE8Oo4i.js")), jt = v(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Mt = v(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Nt = v(() => import("./PackageVersion-DUU5Aku2.js").then((e) => e.t)), Pt = v(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_nested_donuts: Ft } = pe(), { isThemeValid: It, warnInvalidTheme: Lt } = ye(), k = e, Rt = p({
109
+ let Dt = v(() => import("./Tooltip-CuWEYGr3.js")), Ot = v(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), kt = v(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), At = v(() => import("./DataTable-DmE8Oo4i.js")), jt = v(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Mt = v(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Nt = v(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Pt = v(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_nested_donuts: Ft } = pe(), { isThemeValid: It, warnInvalidTheme: Lt } = ye(), k = e, Rt = p({
110
110
  get() {
111
111
  return !!k.dataset && k.dataset.length;
112
112
  },
@@ -198,7 +198,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
198
198
  return t;
199
199
  }
200
200
  Ge(() => k.config, (e) => {
201
- ln.value || (I.value = mn()), dn.value = !I.value.userOptions.showOnChartHover, vn(), qt.value += 1, Jt.value += 1, Yt.value += 1, U.value.dataLabels.show = I.value.style.chart.layout.labels.dataLabels.show, U.value.showTable = I.value.table.show, U.value.showTooltip = I.value.style.chart.tooltip.show, W.value.width = I.value.style.chart.width, W.value.height = I.value.style.chart.height;
201
+ ln.value || (I.value = mn()), dn.value = !I.value.userOptions.showOnChartHover, bn(), qt.value += 1, Jt.value += 1, Yt.value += 1, V.value.dataLabels.show = I.value.style.chart.layout.labels.dataLabels.show, V.value.showTable = I.value.table.show, V.value.showTooltip = I.value.style.chart.tooltip.show, H.value.width = I.value.style.chart.width, H.value.height = I.value.style.chart.height;
202
202
  }, { deep: !0 });
203
203
  let hn = p(() => {
204
204
  let { top: e, right: t, bottom: n, left: r } = I.value.style.chart.padding;
@@ -268,14 +268,14 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
268
268
  } else M.value = !1;
269
269
  }
270
270
  Be(async () => {
271
- Zt.value = !0, vn(), await _n();
271
+ Zt.value = !0, bn(), await _n();
272
272
  });
273
- let B = He(null), V = He(null), H = p(() => !!I.value.debug);
274
- function vn() {
273
+ let B = He(null), vn = He(null), yn = p(() => !!I.value.debug);
274
+ function bn() {
275
275
  if (s(k.dataset) ? (l({
276
276
  componentName: "VueUiNestedDonuts",
277
277
  type: "dataset",
278
- debug: H.value
278
+ debug: yn.value
279
279
  }), Rt.value = !1, un.value = !0) : un.value = I.value.loading, I.value.responsive) {
280
280
  let e = Ce(() => {
281
281
  let { width: e, height: t } = we({
@@ -287,45 +287,45 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
287
287
  padding: hn.value
288
288
  });
289
289
  requestAnimationFrame(() => {
290
- W.value.width = e, W.value.height = t;
290
+ H.value.width = e, H.value.height = t;
291
291
  });
292
292
  });
293
- B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = j.value.parentNode, B.value.observe(V.value);
293
+ B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect()), B.value = new ResizeObserver(e), vn.value = j.value.parentNode, B.value.observe(vn.value);
294
294
  }
295
295
  }
296
296
  ze(() => {
297
- B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
297
+ B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect());
298
298
  });
299
- let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = me({
299
+ let { isPrinting: xn, isImaging: Sn, generatePdf: Cn, generateImage: wn } = me({
300
300
  elementId: `nested_donuts_${A.value}`,
301
301
  fileName: I.value.style.chart.title.text || "vue-ui-nested-donuts",
302
302
  options: I.value.userOptions.print
303
- }), Cn = p(() => I.value.userOptions.show && !I.value.style.chart.title.text), wn = p(() => ue(I.value.customPalette)), U = C({
303
+ }), Tn = p(() => I.value.userOptions.show && !I.value.style.chart.title.text), En = p(() => ue(I.value.customPalette)), V = C({
304
304
  dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
305
305
  showTable: I.value.table.show,
306
306
  showTooltip: I.value.style.chart.tooltip.show
307
307
  });
308
308
  Ge(I, () => {
309
- U.value = {
309
+ V.value = {
310
310
  dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
311
311
  showTable: I.value.table.show,
312
312
  showTooltip: I.value.style.chart.tooltip.show
313
313
  };
314
314
  }, { immediate: !0 });
315
- let W = C({
315
+ let H = C({
316
316
  width: I.value.style.chart.width,
317
317
  height: I.value.style.chart.height
318
- }), Tn = qe;
319
- function En({ datapoint: e, index: t, seriesIndex: n }) {
318
+ }), U = qe;
319
+ function Dn({ datapoint: e, index: t, seriesIndex: n }) {
320
320
  I.value.events.datapointClick && I.value.events.datapointClick({
321
321
  datapoint: e,
322
322
  seriesIndex: n
323
- }), Tn("selectDatapoint", {
323
+ }), U("selectDatapoint", {
324
324
  datapoint: e,
325
325
  index: t
326
326
  });
327
327
  }
328
- function Dn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = ee }) {
328
+ function On({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = ee }) {
329
329
  let o = performance.now();
330
330
  function s(c) {
331
331
  let l = Math.min((c - o) / n, 1), ee = a(l);
@@ -333,25 +333,25 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
333
333
  }
334
334
  requestAnimationFrame(s);
335
335
  }
336
- let G = C([]), K = p(() => {
336
+ let W = C([]), G = p(() => {
337
337
  ln.value, R.value.forEach((e, t) => {
338
338
  [null, void 0].includes(e.name) && l({
339
339
  componentName: "VueUiNestedDonuts",
340
340
  type: "datasetSerieAttribute",
341
341
  property: "name",
342
342
  index: t,
343
- debug: H.value
343
+ debug: yn.value
344
344
  }), [null, void 0].includes(e.series) ? l({
345
345
  componentName: "VueUiNestedDonuts",
346
346
  type: "datasetSerieAttribute",
347
347
  property: "series",
348
348
  index: t,
349
- debug: H.value
349
+ debug: yn.value
350
350
  }) : e.series.length === 0 ? l({
351
351
  componentName: "VueUiNestedDonuts",
352
352
  type: "datasetAttributeEmpty",
353
353
  property: `series at index ${t}`,
354
- debug: H.value
354
+ debug: yn.value
355
355
  }) : e.series.forEach((e, t) => {
356
356
  [null, void 0].includes(e.name) && l({
357
357
  componentName: "VueUiNestedDonuts",
@@ -359,21 +359,21 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
359
359
  property: "name",
360
360
  index: t,
361
361
  key: "serie",
362
- debug: H.value
362
+ debug: yn.value
363
363
  }), [null, void 0].includes(e.values) && l({
364
364
  componentName: "VueUiNestedDonuts",
365
365
  type: "datasetSerieAttribute",
366
366
  property: "values",
367
367
  index: t,
368
368
  key: "serie",
369
- debug: H.value
369
+ debug: yn.value
370
370
  });
371
371
  });
372
372
  });
373
373
  let e = 0;
374
374
  return R.value.map((t, n) => ({
375
375
  ...t,
376
- total: t.series.filter((e) => !G.value.includes(e.id)).map((e) => d(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
376
+ total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => d(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
377
377
  datasetIndex: n,
378
378
  id: `${A.value}_${n}`,
379
379
  series: t.series.map((r, i) => {
@@ -385,7 +385,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
385
385
  id: `${A.value}_${n}_${i}`,
386
386
  seriesIndex: i,
387
387
  datasetIndex: n,
388
- color: de(r.color) || wn.value[i] || c[i % c.length],
388
+ color: de(r.color) || En.value[i] || c[i % c.length],
389
389
  value: M.value ? N.value[e++] ?? 0 : a,
390
390
  absoluteValues: r.values || []
391
391
  };
@@ -395,12 +395,12 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
395
395
  Ge(() => k.dataset, (e) => {
396
396
  Array.isArray(e) && e.length > 0 && (un.value = !1);
397
397
  }, { immediate: !0 });
398
- let q = p(() => Math.min(W.value.height, W.value.width) * (I.value.style.chart.layout.donut.strokeWidth / 512)), On = p(() => [...K.value].map((e, t) => {
399
- let n = e.series.filter((e) => !G.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
398
+ let K = p(() => Math.min(H.value.height, H.value.width) * (I.value.style.chart.layout.donut.strokeWidth / 512)), q = p(() => [...G.value].map((e, t) => {
399
+ let n = e.series.filter((e) => !W.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
400
400
  return {
401
401
  ...e,
402
402
  total: n,
403
- series: e.series.filter((e) => !G.value.includes(e.id)).map((e) => ({
403
+ series: e.series.filter((e) => !W.value.includes(e.id)).map((e) => ({
404
404
  ...e,
405
405
  proportion: e.value / n
406
406
  }))
@@ -411,27 +411,27 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
411
411
  for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
412
412
  return r < t;
413
413
  }
414
- let J = C(On.value);
415
- Ge(() => On.value, (e) => J.value = e);
414
+ let J = C(q.value);
415
+ Ge(() => q.value, (e) => J.value = e);
416
416
  function An(e) {
417
417
  let t = e.map((e) => e.id);
418
- if (e.some((e) => G.value.includes(e.id))) {
418
+ if (e.some((e) => W.value.includes(e.id))) {
419
419
  let e = new Set(t);
420
- G.value = G.value.filter((t) => !e.has(t));
421
- } else G.value.push(...t);
420
+ W.value = W.value.filter((t) => !e.has(t));
421
+ } else W.value.push(...t);
422
+ U("selectLegend", q.value);
422
423
  }
423
424
  function Y(e) {
424
- Tn("selectLegend", e);
425
425
  let t = k.dataset.flatMap((e, t) => e.series.map((e, n) => ({
426
426
  value: d(e.values).reduce((e, t) => e + t, 0),
427
427
  id: `${A.value}_${t}_${n}`,
428
428
  arcOfId: `${A.value}_${t}`
429
429
  }))).find((t) => t.id === e.id);
430
430
  if (!t) return;
431
- let n = K.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = K.value.find((e) => e.id === t.arcOfId);
431
+ let n = G.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = J.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = G.value.find((e) => e.id === t.arcOfId);
432
432
  if (!a) return;
433
- let o = a.series.map((e) => e.id), s = kn(o, o.length - 1, G.value);
434
- G.value.includes(e.id) ? (G.value = G.value.filter((t) => t !== e.id), I.value.serieToggleAnimation.show ? Dn({
433
+ let o = a.series.map((e) => e.id), s = kn(o, o.length - 1, W.value);
434
+ W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), I.value.serieToggleAnimation.show ? On({
435
435
  from: i,
436
436
  to: n,
437
437
  duration: I.value.serieToggleAnimation.durationMs,
@@ -443,14 +443,17 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
443
443
  value: t
444
444
  } : n)
445
445
  }));
446
+ },
447
+ onDone: () => {
448
+ U("selectLegend", q.value);
446
449
  }
447
- }) : J.value = J.value.map((t) => ({
450
+ }) : (J.value = J.value.map((t) => ({
448
451
  ...t,
449
452
  series: t.series.map((t) => t.id === e.id ? {
450
453
  ...t,
451
454
  value: n
452
455
  } : t)
453
- }))) : s && (I.value.serieToggleAnimation.show ? Dn({
456
+ })), U("selectLegend", q.value))) : s && (I.value.serieToggleAnimation.show ? On({
454
457
  from: i,
455
458
  to: 0,
456
459
  duration: I.value.serieToggleAnimation.durationMs,
@@ -464,7 +467,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
464
467
  }));
465
468
  },
466
469
  onDone: () => {
467
- G.value.push(e.id);
470
+ W.value.push(e.id), U("selectLegend", q.value);
468
471
  }
469
472
  }) : (J.value = J.value.map((t) => ({
470
473
  ...t,
@@ -472,32 +475,32 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
472
475
  ...t,
473
476
  value: 0
474
477
  } : t)
475
- })), G.value.push(e.id)));
478
+ })), W.value.push(e.id), U("selectLegend", q.value)));
476
479
  }
477
480
  function jn(e) {
478
- return K.value.length ? K.value.flatMap((e) => e.series).filter((t) => t.name === e) || (I.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null);
481
+ return G.value.length ? G.value.flatMap((e) => e.series).filter((t) => t.name === e) || (I.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null);
479
482
  }
480
483
  function Mn(e) {
481
484
  let t = jn(e);
482
485
  t !== null && (Array.isArray(t) ? t.forEach((e) => {
483
- G.value.includes(e.id) && Y({ id: e.id });
484
- }) : G.value.includes(t.id) && Y({ id: t.id }));
486
+ W.value.includes(e.id) && Y({ id: e.id });
487
+ }) : W.value.includes(t.id) && Y({ id: t.id }));
485
488
  }
486
489
  function Nn(e) {
487
490
  let t = jn(e);
488
491
  t !== null && (Array.isArray(t) ? t.forEach((e) => {
489
- G.value.includes(e.id) || Y({ id: e.id });
490
- }) : G.value.includes(t.id) || Y({ id: t.id }));
492
+ W.value.includes(e.id) || Y({ id: e.id });
493
+ }) : W.value.includes(t.id) || Y({ id: t.id }));
491
494
  }
492
- let Pn = p(() => q.value / K.value.length * I.value.style.chart.layout.donut.spacingRatio), Fn = p(() => J.value.map((e, t) => q.value - t * q.value / K.value.length)), X = p(() => J.value.map((e, t) => {
493
- let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = q.value - t * q.value / J.value.length, i = M.value ? Xt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
495
+ let Pn = p(() => K.value / G.value.length * I.value.style.chart.layout.donut.spacingRatio), Fn = p(() => J.value.map((e, t) => K.value - t * K.value / G.value.length)), X = p(() => J.value.map((e, t) => {
496
+ let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = K.value - t * K.value / J.value.length, i = M.value ? Xt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
494
497
  ...e,
495
498
  value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
496
499
  })), o = te({ series: [{
497
500
  name: "_",
498
501
  color: I.value.style.chart.layout.donut.emptyFill,
499
502
  value: 1
500
- }] }, W.value.width / 2, W.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Pn.value), s = `M ${W.value.width / 2},${W.value.height / 2 + r}
503
+ }] }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Pn.value), s = `M ${H.value.width / 2},${H.value.height / 2 + r}
501
504
  a ${r},${r} 0 1,1 0,${-2 * r}
502
505
  a ${r},${r} 0 1,1 0,${2 * r}`;
503
506
  return {
@@ -506,13 +509,13 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
506
509
  radius: r,
507
510
  skeleton: o,
508
511
  fullCirclePath: s,
509
- donut: te({ series: a }, W.value.width / 2, W.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Pn.value)
512
+ donut: te({ series: a }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Pn.value)
510
513
  };
511
- })), In = p(() => [...K.value].map((e, t) => {
512
- let n = t * q.value / K.value.length;
514
+ })), In = p(() => [...G.value].map((e, t) => {
515
+ let n = t * K.value / G.value.length;
513
516
  return {
514
517
  sizeRatio: n,
515
- donut: te({ series: [{ value: 1 }] }, W.value.width / 2, W.value.height / 2, q.value - n, q.value - n, 1.99999, 2, 1, 360, 105.25, q.value / K.value.length * I.value.style.chart.layout.donut.spacingRatio)[0]
518
+ donut: te({ series: [{ value: 1 }] }, H.value.width / 2, H.value.height / 2, K.value - n, K.value - n, 1.99999, 2, 1, 360, 105.25, K.value / G.value.length * I.value.style.chart.layout.donut.spacingRatio)[0]
516
519
  };
517
520
  })), Ln = C(null), Rn = C(null), Z = C(null), zn = C(null);
518
521
  function Bn({ datapoint: e, seriesIndex: t }) {
@@ -554,7 +557,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
554
557
  });
555
558
  else {
556
559
  let t = "";
557
- if (I.value.style.chart.tooltip.showAllItemsAtIndex && G.value.length === 0) {
560
+ if (I.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) {
558
561
  let i = J.value.map((e) => e.series.find((e) => e.seriesIndex === r));
559
562
  i.forEach((a, o) => {
560
563
  if (!a) return "";
@@ -620,11 +623,11 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
620
623
  }
621
624
  function Wn(e, t) {
622
625
  if (!I.value.useBlurOnHover) return "";
623
- if (I.value.style.chart.tooltip.showAllItemsAtIndex && G.value.length === 0) return [null, void 0].includes(Z.value) || Z.value === t ? "" : `url(#blur_${A.value})`;
624
- if (!I.value.style.chart.tooltip.showAllItemsAtIndex || G.value.length) return [null, void 0].includes(Rn.value) || Rn.value === e.id ? "" : `url(#blur_${A.value})`;
626
+ if (I.value.style.chart.tooltip.showAllItemsAtIndex && W.value.length === 0) return [null, void 0].includes(Z.value) || Z.value === t ? "" : `url(#blur_${A.value})`;
627
+ if (!I.value.style.chart.tooltip.showAllItemsAtIndex || W.value.length) return [null, void 0].includes(Rn.value) || Rn.value === e.id ? "" : `url(#blur_${A.value})`;
625
628
  }
626
- let Gn = p(() => K.value.map((e, t) => {
627
- let r = e.series.filter((e) => !G.value.includes(e.id)), i = M.value ? r.map((e) => {
629
+ let Gn = p(() => G.value.map((e, t) => {
630
+ let r = e.series.filter((e) => !W.value.includes(e.id)), i = M.value ? r.map((e) => {
628
631
  let n = R.value[t].series.findIndex((t) => t.name === e.name);
629
632
  return d(R.value[t].series[n].values).reduce((e, t) => e + t, 0);
630
633
  }).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
@@ -639,7 +642,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
639
642
  datapoint: e,
640
643
  seriesIndex: r
641
644
  }),
642
- percentage: isNaN(o / i) || G.value.includes(e.id) ? "-" : n({
645
+ percentage: isNaN(o / i) || W.value.includes(e.id) ? "-" : n({
643
646
  v: o / i * 100,
644
647
  s: "%",
645
648
  r: I.value.style.chart.legend.roundingPercentage
@@ -660,9 +663,9 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
660
663
  seriesIndex: r,
661
664
  datasetIndex: t,
662
665
  total: i,
663
- opacity: G.value.includes(e.id) ? .5 : 1,
666
+ opacity: W.value.includes(e.id) ? .5 : 1,
664
667
  segregate: () => Y(e),
665
- isSegregated: G.value.includes(e.id)
668
+ isSegregated: W.value.includes(e.id)
666
669
  };
667
670
  });
668
671
  })), Kn = p(() => ({
@@ -751,16 +754,16 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
751
754
  };
752
755
  });
753
756
  function Yn() {
754
- return K.value;
757
+ return G.value;
755
758
  }
756
759
  function Xn() {
757
- U.value.showTable = !U.value.showTable;
760
+ V.value.showTable = !V.value.showTable;
758
761
  }
759
762
  function Zn() {
760
- U.value.dataLabels.show = !U.value.dataLabels.show;
763
+ V.value.dataLabels.show = !V.value.dataLabels.show;
761
764
  }
762
765
  function Qn() {
763
- U.value.showTooltip = !U.value.showTooltip;
766
+ V.value.showTooltip = !V.value.showTooltip;
764
767
  }
765
768
  let $n = C(!1);
766
769
  function er() {
@@ -790,7 +793,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
790
793
  z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
791
794
  }
792
795
  let ir = p(() => {
793
- let e = I.value.table.useDialog && !I.value.table.show, t = U.value.showTable;
796
+ let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
794
797
  return {
795
798
  component: e ? Pt : kt,
796
799
  title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
@@ -820,11 +823,11 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
820
823
  }
821
824
  };
822
825
  });
823
- Ge(() => U.value.showTable, (e) => {
826
+ Ge(() => V.value.showTable, (e) => {
824
827
  I.value.table.show || (e && I.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
825
828
  });
826
829
  function ar() {
827
- U.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
830
+ V.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
828
831
  }
829
832
  let or = p(() => I.value.style.chart.backgroundColor), sr = p(() => I.value.style.chart.legend), { exportSvg: cr, getSvg: lr } = _e({
830
833
  svg: z,
@@ -861,10 +864,10 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
861
864
  en.value = !1;
862
865
  return;
863
866
  }
864
- Sn();
867
+ wn();
865
868
  }
866
869
  async function fr() {
867
- if (Tn("copyAlt", {
870
+ if (U("copyAlt", {
868
871
  config: I.value,
869
872
  dataset: J.value
870
873
  }), !I.value.userOptions.callbacks.altCopy) {
@@ -895,7 +898,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
895
898
  if (P.value === null) return;
896
899
  let e = $.value[P.value];
897
900
  if (!e) return;
898
- En({
901
+ Dn({
899
902
  datapoint: e,
900
903
  index: P.value,
901
904
  seriesIndex: e.seriesIndex
@@ -929,9 +932,9 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
929
932
  autoSize: rr,
930
933
  getData: Yn,
931
934
  getImage: tr,
932
- generatePdf: xn,
935
+ generatePdf: Cn,
933
936
  generateCsv: qn,
934
- generateImage: Sn,
937
+ generateImage: wn,
935
938
  generateSvg: ur,
936
939
  hideSeries: Nn,
937
940
  showSeries: Mn,
@@ -991,7 +994,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
991
994
  "active",
992
995
  "isCursorPointer"
993
996
  ])) : h("", !0),
994
- Cn.value ? (S(), g("div", {
997
+ Tn.value ? (S(), g("div", {
995
998
  key: 2,
996
999
  ref_key: "noTitle",
997
1000
  ref: Kt,
@@ -1022,8 +1025,8 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1022
1025
  key: `user_option_${Ht.value}`,
1023
1026
  backgroundColor: I.value.style.chart.backgroundColor,
1024
1027
  color: I.value.style.chart.color,
1025
- isPrinting: D(yn),
1026
- isImaging: D(bn),
1028
+ isPrinting: D(xn),
1029
+ isImaging: D(Sn),
1027
1030
  uid: A.value,
1028
1031
  hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.chart.tooltip.show,
1029
1032
  hasPdf: I.value.userOptions.buttons.pdf,
@@ -1035,7 +1038,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1035
1038
  hasFullscreen: I.value.userOptions.buttons.fullscreen,
1036
1039
  hasAltCopy: I.value.userOptions.buttons.altCopy,
1037
1040
  isFullscreen: F.value,
1038
- isTooltip: U.value.showTooltip,
1041
+ isTooltip: V.value.showTooltip,
1039
1042
  titles: { ...I.value.userOptions.buttonTitles },
1040
1043
  chartElement: j.value,
1041
1044
  position: I.value.userOptions.position,
@@ -1046,7 +1049,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1046
1049
  tableDialog: I.value.table.useDialog,
1047
1050
  isCursorPointer: L.value,
1048
1051
  onToggleFullscreen: on,
1049
- onGeneratePdf: D(xn),
1052
+ onGeneratePdf: D(Cn),
1050
1053
  onGenerateCsv: qn,
1051
1054
  onGenerateImage: dr,
1052
1055
  onGenerateSvg: ur,
@@ -1142,7 +1145,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1142
1145
  "vue-data-ui-fulscreen--off": !F.value,
1143
1146
  "vue-data-ui-svg": !0
1144
1147
  }),
1145
- viewBox: `0 0 ${W.value.width <= 0 ? .001 : W.value.width} ${W.value.height < 0 ? .001 : W.value.height}`,
1148
+ viewBox: `0 0 ${H.value.width <= 0 ? .001 : H.value.width} ${H.value.height < 0 ? .001 : H.value.height}`,
1146
1149
  style: Re(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};${hn.value.css}`),
1147
1150
  tabindex: "0",
1148
1151
  onFocus: pr,
@@ -1158,8 +1161,8 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1158
1161
  key: 0,
1159
1162
  x: 0,
1160
1163
  y: 0,
1161
- width: W.value.width <= 0 ? .001 : W.value.width,
1162
- height: W.value.height < 0 ? .001 : W.value.height,
1164
+ width: H.value.width <= 0 ? .001 : H.value.width,
1165
+ height: H.value.height < 0 ? .001 : H.value.height,
1163
1166
  style: { pointerEvents: "none" }
1164
1167
  }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, $e)) : h("", !0),
1165
1168
  _("defs", null, [(S(!0), g(f, null, w(In.value, (e, t) => (S(), g("radialGradient", { id: `radial_${A.value}_${t}` }, [
@@ -1233,7 +1236,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1233
1236
  stroke: "transparent",
1234
1237
  "stroke-width": "0"
1235
1238
  }, null, 8, dt)]))), 256))])) : h("", !0),
1236
- I.value.style.chart.layout.labels.dataLabels.showDonutName ? (S(), g("g", ft, [I.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (S(!0), g(f, { key: 0 }, w(X.value, (e, t) => (S(), g("g", null, [(S(!0), g(f, null, w(e.donut, (n, r) => (S(), g("g", null, [r === 0 && W.value.width && W.value.height ? (S(), g("text", {
1239
+ I.value.style.chart.layout.labels.dataLabels.showDonutName ? (S(), g("g", ft, [I.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (S(!0), g(f, { key: 0 }, w(X.value, (e, t) => (S(), g("g", null, [(S(!0), g(f, null, w(e.donut, (n, r) => (S(), g("g", null, [r === 0 && H.value.width && H.value.height ? (S(), g("text", {
1237
1240
  key: 0,
1238
1241
  class: b({ animated: I.value.useCssAnimation }),
1239
1242
  "text-anchor": "middle",
@@ -1250,10 +1253,10 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1250
1253
  }, E(I.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? D(ie)({
1251
1254
  source: e.name,
1252
1255
  length: I.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1253
- }) : e.name), 9, mt)], 10, pt)) : h("", !0)]))), 256))]))), 256)) : (S(!0), g(f, { key: 1 }, w(X.value, (e, t) => (S(), g("g", null, [(S(!0), g(f, null, w(e.donut, (t, n) => (S(), g("g", null, [n === 0 && W.value.width && W.value.height ? (S(), g("text", {
1256
+ }) : e.name), 9, mt)], 10, pt)) : h("", !0)]))), 256))]))), 256)) : (S(!0), g(f, { key: 1 }, w(X.value, (e, t) => (S(), g("g", null, [(S(!0), g(f, null, w(e.donut, (t, n) => (S(), g("g", null, [n === 0 && H.value.width && H.value.height ? (S(), g("text", {
1254
1257
  key: 0,
1255
1258
  class: b({ animated: I.value.useCssAnimation }),
1256
- x: W.value.width / 2,
1259
+ x: H.value.width / 2,
1257
1260
  y: t.startY - I.value.style.chart.layout.labels.dataLabels.fontSize + I.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1258
1261
  "text-anchor": "middle",
1259
1262
  "font-size": I.value.style.chart.layout.labels.dataLabels.fontSize,
@@ -1276,7 +1279,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1276
1279
  v: e.proportion * 100,
1277
1280
  s: "%",
1278
1281
  r: I.value.style.chart.layout.labels.dataLabels.roundingPercentage
1279
- }), I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, vt), [[We, U.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showPercentage]]), Ke(_("text", {
1282
+ }), I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, vt), [[We, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showPercentage]]), Ke(_("text", {
1280
1283
  class: b({ animated: I.value.useCssAnimation }),
1281
1284
  opacity: +!!Un(e),
1282
1285
  "text-anchor": D(ce)(e, !0).anchor,
@@ -1294,7 +1297,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1294
1297
  datapoint: e,
1295
1298
  seriesIndex: r,
1296
1299
  datapointIndex: i
1297
- }), I.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, yt), [[We, U.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showValue]])], 8, _t))), 256))]))), 256))])) : h("", !0),
1300
+ }), I.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, yt), [[We, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showValue]])], 8, _t))), 256))]))), 256))])) : h("", !0),
1298
1301
  (S(!0), g(f, null, w(X.value, (e, t) => (S(), g("g", null, [(S(!0), g(f, null, w(e.donut, (e, t) => (S(), g("g", null, [_("path", {
1299
1302
  d: e.arcSlice,
1300
1303
  fill: Vt.value === e.id ? I.value.style.chart.layout.donut.selectedColor : "transparent",
@@ -1303,7 +1306,7 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1303
1306
  relativeIndex: $.value.findIndex((t) => t.id === e.id),
1304
1307
  seriesIndex: e.seriesIndex
1305
1308
  }),
1306
- onClick: (n) => En({
1309
+ onClick: (n) => Dn({
1307
1310
  datapoint: e,
1308
1311
  index: t,
1309
1312
  seriesIndex: e.seriesIndex
@@ -1314,18 +1317,18 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1314
1317
  })
1315
1318
  }, null, 40, bt)]))), 256))]))), 256)),
1316
1319
  T(e.$slots, "svg", { svg: {
1317
- ...W.value,
1318
- isPrintingImg: D(yn) || D(bn) || en.value,
1320
+ ...H.value,
1321
+ isPrintingImg: D(xn) || D(Sn) || en.value,
1319
1322
  isPrintingSvg: tn.value
1320
1323
  } }, void 0, !0)
1321
1324
  ], 512)], 46, Qe)), e.$slots.hint ? (S(), g("div", xt, [T(e.$slots, "hint", x(y({
1322
1325
  hint: I.value.a11y.translations.keyboardNavigation,
1323
1326
  isVisible: an.value
1324
1327
  })), void 0, !0)])) : h("", !0)]),
1325
- e.$slots.watermark ? (S(), g("div", St, [T(e.$slots, "watermark", x(y({ isPrinting: D(yn) || D(bn) || en.value || tn.value })), void 0, !0)])) : h("", !0),
1328
+ e.$slots.watermark ? (S(), g("div", St, [T(e.$slots, "watermark", x(y({ isPrinting: D(xn) || D(Sn) || en.value || tn.value })), void 0, !0)])) : h("", !0),
1326
1329
  Fe(D(Dt), {
1327
1330
  teleportTo: I.value.style.chart.tooltip.teleportTo,
1328
- show: U.value.showTooltip && zt.value,
1331
+ show: V.value.showTooltip && zt.value,
1329
1332
  backgroundColor: I.value.style.chart.tooltip.backgroundColor,
1330
1333
  color: I.value.style.chart.tooltip.color,
1331
1334
  borderRadius: I.value.style.chart.tooltip.borderRadius,
@@ -1394,14 +1397,14 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1394
1397
  legendTitle: O(({ titleSet: e }) => [e[0] && e[0].arcOf ? (S(), g("div", wt, E(e[0].arcOf), 1)) : h("", !0)]),
1395
1398
  item: O(({ legend: e, index: t }) => [_("div", {
1396
1399
  onClick: (t) => Y(e),
1397
- style: Re(`opacity:${G.value.includes(e.id) ? .5 : 1}`)
1400
+ style: Re(`opacity:${W.value.includes(e.id) ? .5 : 1}`)
1398
1401
  }, E(e.display), 13, Tt)]),
1399
1402
  legendToggle: O(() => [e.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !D(ln) ? (S(), m(Te, {
1400
1403
  key: `toggle-${t}`,
1401
1404
  backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
1402
1405
  color: I.value.style.chart.legend.selectAllToggle.color,
1403
1406
  fontSize: I.value.style.chart.legend.fontSize,
1404
- checked: e.some((e) => G.value.includes(e.id)),
1407
+ checked: e.some((e) => W.value.includes(e.id)),
1405
1408
  isCursorPointer: L.value,
1406
1409
  onToggle: (t) => An(e)
1407
1410
  }, null, 8, [
@@ -1479,6 +1482,6 @@ var qe = /* @__PURE__ */ e({ default: () => Dt }), Je = ["id"], Ye = ["id"], Xe
1479
1482
  T(e.$slots, "skeleton", {}, () => [D(ln) ? (S(), m(ge, { key: 0 })) : h("", !0)], !0)
1480
1483
  ], 46, Je));
1481
1484
  }
1482
- }, [["__scopeId", "data-v-10aa2115"]]);
1485
+ }, [["__scopeId", "data-v-42769637"]]);
1483
1486
  //#endregion
1484
1487
  export { qe as n, Dt as t };
@@ -99,7 +99,7 @@ var Be = /* @__PURE__ */ e({ default: () => ct }), Ve = ["id"], He = ["id"], Ue
99
99
  },
100
100
  emits: ["selectLegend", "copyAlt"],
101
101
  setup(e, { expose: _e, emit: Be }) {
102
- let ct = m(() => import("./Tooltip-CuWEYGr3.js")), lt = m(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), ut = m(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), dt = m(() => import("./DataTable-DmE8Oo4i.js")), ft = m(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), pt = m(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), mt = m(() => import("./PackageVersion-DUU5Aku2.js").then((e) => e.t)), ht = m(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_onion: gt } = ce(), { isThemeValid: _t, warnInvalidTheme: vt } = me(), E = e, yt = l(() => !!E.dataset && E.dataset.length), D = y(n()), bt = y(null), xt = y(0), O = y(!1), St = y(""), k = y([]), A = y(null), Ct = y(null), wt = y(null), Tt = y(null), Et = y(null), Dt = y(0), Ot = y(0), kt = y(0), j = y(!1), At = y(!1), M = y(null), jt = y(!1), Mt = y(!1), N = y(null), Nt = y({
102
+ let ct = m(() => import("./Tooltip-CuWEYGr3.js")), lt = m(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), ut = m(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), dt = m(() => import("./DataTable-DmE8Oo4i.js")), ft = m(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), pt = m(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), mt = m(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), ht = m(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_onion: gt } = ce(), { isThemeValid: _t, warnInvalidTheme: vt } = me(), E = e, yt = l(() => !!E.dataset && E.dataset.length), D = y(n()), bt = y(null), xt = y(0), O = y(!1), St = y(""), k = y([]), A = y(null), Ct = y(null), wt = y(null), Tt = y(null), Et = y(null), Dt = y(0), Ot = y(0), kt = y(0), j = y(!1), At = y(!1), M = y(null), jt = y(!1), Mt = y(!1), N = y(null), Nt = y({
103
103
  x: 0,
104
104
  y: 0
105
105
  }), P = y("pointer"), Pt = y(!1), F = y(Vt()), I = l(() => F.value.userOptions.useCursorPointer), Ft = l(() => se({
@@ -367,7 +367,7 @@ var Be = /* @__PURE__ */ e({ default: () => ct }), Ve = ["id"], He = ["id"], Ue
367
367
  function ln() {
368
368
  k.value.length ? k.value = [] : G.value.forEach((e) => {
369
369
  k.value.push(e.id);
370
- });
370
+ }), cn("selectLegend", J.value);
371
371
  }
372
372
  function un(e) {
373
373
  if (k.value.includes(e)) k.value = k.value.filter((t) => t !== e);
@@ -1195,6 +1195,6 @@ var Be = /* @__PURE__ */ e({ default: () => ct }), Ve = ["id"], He = ["id"], Ue
1195
1195
  x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(de, { key: 0 })) : d("", !0)], !0)
1196
1196
  ], 46, Ve));
1197
1197
  }
1198
- }, [["__scopeId", "data-v-d873a89b"]]);
1198
+ }, [["__scopeId", "data-v-2e5c3df8"]]);
1199
1199
  //#endregion
1200
1200
  export { Be as n, ct as t };