vue-data-ui 3.22.13 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,52 +1,53 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, At as n, C as r, E as i, Gt as a, K as o, Lt as s, Nt as c, Ot as l, Pt as ee, Q as te, Y as u, bt as ne, d, et as re, f as ie, i as ae, n as oe, qt as se, st as ce, t as le, x as ue, y as de, zt as fe } from "./lib-CFm_J26b.js";
3
- import { t as pe } from "./useConfig-C0V0eG7L.js";
4
- import { t as me } from "./usePrinter-BH-xle1O.js";
5
- import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as _e } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as ve } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as be } from "./img-Bikk1dGb.js";
10
- import { n as xe } from "./Title-BuPs74IB.js";
11
- import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as Ce, t as we } from "./useResponsive-ZtArZtUf.js";
13
- import { t as Te } from "./DefGrad-DVBqDjhO.js";
14
- import { t as Ee } from "./BaseLegendToggle-DsWphmIb.js";
15
- import { t as De } from "./A11yDataTable-DdRsVULz.js";
16
- import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
17
- import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
18
- import { t as Ae } from "./labelUtils-BUhssos9.js";
19
- import { t as je } from "./Legend-C0xAnJdO.js";
20
- import { t as Me } from "./vue_ui_nested_donuts-B8csIoVO.js";
21
- import { Fragment as f, Teleport as Ne, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as Le, nextTick as Re, normalizeClass as b, normalizeProps as x, normalizeStyle as ze, onBeforeUnmount as Be, onMounted as Ve, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as E, toRefs as We, unref as D, vShow as Ge, watch as Ke, withCtx as O, withDirectives as qe } from "vue";
2
+ import { $ as t, Bt as n, D as r, Ft as i, Jt as a, Kt as o, Pt as s, Rt as c, S as l, X as u, b as ee, ct as te, et as ne, f as re, i as d, jt as ie, kt as ae, n as oe, p as se, q as ce, t as le, tt as f, w as ue, xt as de } from "./lib-BuMGJ_a0.js";
3
+ import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
4
+ import { t as me } from "./useConfig-BilxnBNr.js";
5
+ import { t as he } from "./usePrinter-BFvi4jVy.js";
6
+ import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as ve } from "./useSvgExport-Ba9qBr9M.js";
8
+ import { t as ye } from "./useNestedProp--NSEmhOH.js";
9
+ import { t as be } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as xe } from "./img-DIQG5q8T.js";
11
+ import { n as Se } from "./Title-BODtwViI.js";
12
+ import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as Ee } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as De } from "./BaseLegendToggle-CtAPwzr2.js";
16
+ import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as je } from "./labelUtils-C5lnc_xc.js";
20
+ import { t as Me } from "./Legend-CQTRlzK-.js";
21
+ import { t as Ne } from "./vue_ui_nested_donuts-B8csIoVO.js";
22
+ import { Fragment as p, Teleport as Pe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as y, guardReactiveProps as b, mergeProps as Re, nextTick as ze, normalizeClass as Be, normalizeProps as x, normalizeStyle as Ve, onBeforeUnmount as He, onMounted as Ue, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as We, shallowRef as Ge, toDisplayString as E, toRefs as Ke, unref as D, vShow as qe, watch as Je, withCtx as O, withDirectives as Ye } from "vue";
22
23
  //#region src/components/vue-ui-nested-donuts.vue
23
- var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze = ["id"], Qe = { style: { position: "relative" } }, $e = [
24
+ var Xe = /* @__PURE__ */ e({ default: () => Dt }), Ze = ["id"], Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
24
25
  "xmlns",
25
26
  "aria-describedby",
26
27
  "viewBox"
27
- ], et = ["width", "height"], tt = ["id"], nt = ["id"], rt = ["id"], it = ["flood-color"], at = ["id", "d"], ot = [
28
+ ], nt = ["width", "height"], rt = ["id"], it = ["id"], at = ["id"], ot = ["flood-color"], st = ["id", "d"], ct = [
28
29
  "d",
29
30
  "fill",
30
31
  "stroke",
31
32
  "stroke-width",
32
33
  "filter"
33
- ], st = [
34
+ ], lt = [
34
35
  "d",
35
36
  "fill",
36
37
  "stroke",
37
38
  "stroke-width"
38
- ], ct = { key: 1 }, lt = ["d", "fill"], ut = { key: 2 }, dt = [
39
+ ], ut = { key: 1 }, dt = ["d", "fill"], ft = { key: 2 }, pt = [
39
40
  "font-size",
40
41
  "font-weight",
41
42
  "fill",
42
43
  "dy"
43
- ], ft = ["href"], pt = [
44
+ ], mt = ["href"], ht = [
44
45
  "x",
45
46
  "y",
46
47
  "font-size",
47
48
  "font-weight",
48
49
  "fill"
49
- ], mt = { key: 3 }, ht = ["filter"], gt = [
50
+ ], gt = { key: 3 }, _t = ["filter"], vt = [
50
51
  "opacity",
51
52
  "text-anchor",
52
53
  "x",
@@ -54,7 +55,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
54
55
  "fill",
55
56
  "font-size",
56
57
  "font-weight"
57
- ], _t = [
58
+ ], yt = [
58
59
  "opacity",
59
60
  "text-anchor",
60
61
  "x",
@@ -62,13 +63,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
62
63
  "fill",
63
64
  "font-size",
64
65
  "font-weight"
65
- ], vt = [
66
+ ], bt = [
66
67
  "d",
67
68
  "fill",
68
69
  "onMouseenter",
69
70
  "onClick",
70
71
  "onMouseleave"
71
- ], yt = {
72
+ ], xt = {
72
73
  key: 0,
73
74
  style: {
74
75
  position: "absolute",
@@ -78,13 +79,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
78
79
  },
79
80
  "data-dom-to-png-ignore": "",
80
81
  "aria-hidden": "true"
81
- }, bt = {
82
+ }, St = {
82
83
  key: 5,
83
84
  class: "vue-data-ui-watermark"
84
- }, xt = ["id"], St = {
85
+ }, Ct = ["id"], wt = {
85
86
  key: 0,
86
87
  class: "vue-ui-nested-donuts-legend-title"
87
- }, Ct = ["onClick"], wt = ["innerHTML"], Tt = /*#__PURE__*/ Se({
88
+ }, Tt = ["onClick"], Et = ["innerHTML"], Dt = /*#__PURE__*/ Ce({
88
89
  __name: "vue-ui-nested-donuts",
89
90
  props: {
90
91
  config: {
@@ -105,22 +106,61 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
105
106
  "selectDatapoint",
106
107
  "copyAlt"
107
108
  ],
108
- setup(e, { expose: Se, emit: Je }) {
109
- let Tt = v(() => import("./Tooltip-CA1rtSyl.js")), Et = v(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Dt = v(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), Ot = v(() => import("./DataTable-DzPEVvSo.js")), kt = v(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), At = v(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), jt = v(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), Mt = v(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_nested_donuts: Nt } = pe(), { isThemeValid: Pt, warnInvalidTheme: Ft } = ye(), k = e, It = p({
109
+ setup(e, { expose: Ce, emit: Xe }) {
110
+ let Dt = y(() => import("./Tooltip-CMTGxeYO.js")), Ot = y(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), kt = y(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), At = y(() => import("./DataTable-D4tM9s5Y.js")), jt = y(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Mt = y(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Nt = y(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Pt = y(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_nested_donuts: Ft } = me(), { isThemeValid: It, warnInvalidTheme: Lt } = be(), k = e, Rt = m({
110
111
  get() {
111
112
  return !!k.dataset && k.dataset.length;
112
113
  },
113
114
  set(e) {
114
115
  return e;
115
116
  }
116
- }), A = C(o()), Lt = C(!1), Rt = C(""), zt = C(null), Bt = C(0), j = C(null), Vt = C(null), Ht = C(null), Ut = C(null), Wt = C(null), Gt = C(0), Kt = C(0), qt = C(0), M = C(!0), N = C([]), Jt = C([]), Yt = C(!1), Xt = C(null), Zt = C(null), Qt = C(!1), $t = C(!1), P = C(null), en = C({
117
+ }), A = C(ce()), zt = C(!1), Bt = C(""), Vt = C(null), Ht = C(0), j = C(null), Ut = C(null), Wt = C(null), Gt = C(null), Kt = C(null), qt = C(0), Jt = C(0), Yt = C(0), M = C(!0), N = C([]), Xt = C([]), Zt = C(!1), Qt = C(null), $t = C(null), en = C(!1), tn = C(!1), P = C(null), nn = C({
117
118
  x: 0,
118
119
  y: 0
119
- }), tn = C("pointer"), nn = C(!1), F = C(!1);
120
- function rn(e) {
121
- F.value = e, Bt.value += 1;
120
+ }), rn = C("pointer"), an = C(!1), F = C(!1);
121
+ function on(e) {
122
+ F.value = e, Ht.value += 1;
122
123
  }
123
- let I = C(fn()), L = p(() => I.value.userOptions.useCursorPointer), an = {
124
+ let I = C(mn());
125
+ fe({
126
+ config: () => I.value,
127
+ dataset: () => k.dataset,
128
+ component: "VueUiNestedDonuts",
129
+ rules: [
130
+ pe.emptyArray,
131
+ {
132
+ test: (e) => e.some((e) => e.series.length > 6),
133
+ message: [
134
+ "👀 Some series have > 6 data points. Consider:",
135
+ "",
136
+ "▶️ Grouping small values dynamically into a single \"Other\" data point.",
137
+ "",
138
+ "▶️ Using filters to let users choose a maximum number of data points to display.",
139
+ "",
140
+ "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
141
+ ]
142
+ },
143
+ {
144
+ test: (e) => e.length === 1,
145
+ message: [
146
+ "👀 There is only one series in your dataset. Consider:",
147
+ "",
148
+ "▶️ Using VueUiDonut instead."
149
+ ]
150
+ },
151
+ {
152
+ test: (e) => e.length > 6,
153
+ message: [
154
+ "👀 The number of series in your dataset > 6. Consider:",
155
+ "",
156
+ "▶️ Using filters to let users choose a maximum number of series to display",
157
+ "",
158
+ "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
159
+ ]
160
+ }
161
+ ]
162
+ });
163
+ let L = m(() => I.value.userOptions.useCursorPointer), sn = {
124
164
  name: "",
125
165
  series: [
126
166
  {
@@ -139,7 +179,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
139
179
  color: "#CACACA"
140
180
  }
141
181
  ]
142
- }, on = p(() => se({
182
+ }, cn = m(() => a({
143
183
  defaultConfig: {
144
184
  useCssAnimation: !1,
145
185
  table: { show: !1 },
@@ -160,47 +200,47 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
160
200
  } }
161
201
  },
162
202
  userConfig: I.value.skeletonConfig ?? {}
163
- })), { loading: sn, FINAL_DATASET: R, manualLoading: cn } = he({
164
- ...We(k),
203
+ })), { loading: ln, FINAL_DATASET: R, manualLoading: un } = ge({
204
+ ...Ke(k),
165
205
  FINAL_CONFIG: I,
166
- prepareConfig: fn,
206
+ prepareConfig: mn,
167
207
  callback: () => {
168
208
  Promise.resolve().then(async () => {
169
- await hn();
209
+ await _n();
170
210
  });
171
211
  },
172
- skeletonDataset: k.config?.skeletonDataset ?? [an, an],
173
- skeletonConfig: se({
212
+ skeletonDataset: k.config?.skeletonDataset ?? [sn, sn],
213
+ skeletonConfig: a({
174
214
  defaultConfig: I.value,
175
- userConfig: on.value
215
+ userConfig: cn.value
176
216
  })
177
- }), { userOptionsVisible: ln, setUserOptionsVisibility: un, keepUserOptionState: dn } = Oe({ config: I.value }), { svgRef: z } = ke({ config: I.value.style.chart.title });
178
- function fn() {
179
- let e = ve({
217
+ }), { userOptionsVisible: dn, setUserOptionsVisibility: fn, keepUserOptionState: pn } = ke({ config: I.value }), { svgRef: z } = Ae({ config: I.value.style.chart.title });
218
+ function mn() {
219
+ let e = ye({
180
220
  userConfig: k.config,
181
- defaultConfig: Nt
221
+ defaultConfig: Ft
182
222
  }), t = {}, n = e.theme;
183
- if (n) if (!Pt.value(e)) Ft(e), t = e;
223
+ if (n) if (!It.value(e)) Lt(e), t = e;
184
224
  else {
185
- let r = ve({
186
- userConfig: Me[n] || k.config,
225
+ let r = ye({
226
+ userConfig: Ne[n] || k.config,
187
227
  defaultConfig: e
188
228
  });
189
229
  t = {
190
- ...ve({
230
+ ...ye({
191
231
  userConfig: k.config,
192
232
  defaultConfig: r
193
233
  }),
194
- customPalette: e.customPalette.length ? e.customPalette : a[n] || c
234
+ customPalette: e.customPalette.length ? e.customPalette : o[n] || s
195
235
  };
196
236
  }
197
237
  else t = e;
198
238
  return t;
199
239
  }
200
- Ke(() => k.config, (e) => {
201
- sn.value || (I.value = fn()), ln.value = !I.value.userOptions.showOnChartHover, vn(), Gt.value += 1, Kt.value += 1, qt.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;
240
+ Je(() => k.config, (e) => {
241
+ 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
242
  }, { deep: !0 });
203
- let pn = p(() => {
243
+ let hn = m(() => {
204
244
  let { top: e, right: t, bottom: n, left: r } = I.value.style.chart.padding;
205
245
  return {
206
246
  css: `padding:${e}px ${t}px ${n}px ${r}px`,
@@ -210,21 +250,21 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
210
250
  left: r
211
251
  };
212
252
  });
213
- function mn(e, n = 1e3, r = 50) {
214
- return new Promise((i) => {
215
- let a = e.length;
216
- N.value = Array(a).fill(0), Jt.value = [];
217
- let o = 0;
218
- e.forEach((e, c) => {
253
+ function gn(e, t = 1e3, n = 50) {
254
+ return new Promise((r) => {
255
+ let i = e.length;
256
+ N.value = Array(i).fill(0), Xt.value = [];
257
+ let a = 0;
258
+ e.forEach((e, o) => {
219
259
  setTimeout(() => {
220
- let r = performance.now();
221
- function l(ee) {
222
- let te = Math.min((ee - r) / n, 1), u = e * t(te);
223
- N.value[c] = u, N.value = [...N.value];
224
- let ne = [], d = 0;
260
+ let n = performance.now();
261
+ function s(l) {
262
+ let u = Math.min((l - n) / t, 1), te = e * ne(u);
263
+ N.value[o] = te, N.value = [...N.value];
264
+ let re = [], d = 0;
225
265
  k.dataset.forEach((e, t) => {
226
- let n = de(e.series.reduce((e, t) => e + de(s(t.values).reduce((e, t) => e + t, 0)), 0)) - de(N.value.slice(d, d + e.series.length).reduce((e, t) => e + t, 0));
227
- n > Number.MIN_VALUE && ne.push({
266
+ let n = ee(e.series.reduce((e, t) => e + ee(c(t.values).reduce((e, t) => e + t, 0)), 0)) - ee(N.value.slice(d, d + e.series.length).reduce((e, t) => e + t, 0));
267
+ n > Number.MIN_VALUE && re.push({
228
268
  name: "__ghost__",
229
269
  arcOf: e.name,
230
270
  arcOfId: `${A.value}_${t}`,
@@ -237,18 +277,18 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
237
277
  absoluteValues: [],
238
278
  ghost: !0
239
279
  }), d += e.series.length;
240
- }), Jt.value = ne, te < 1 ? requestAnimationFrame(l) : (o += 1, o === a && i());
280
+ }), Xt.value = re, u < 1 ? requestAnimationFrame(s) : (a += 1, a === i && r());
241
281
  }
242
- requestAnimationFrame(l);
243
- }, c * r);
282
+ requestAnimationFrame(s);
283
+ }, o * n);
244
284
  });
245
285
  });
246
286
  }
247
- async function hn() {
287
+ async function _n() {
248
288
  if (I.value.startAnimation?.show) {
249
- let e = R.value.flatMap((e) => e.series).map((e) => s(e.values).reduce((e, t) => e + t, 0));
250
- N.value = e.map(() => 0), M.value = !0, Jt.value = R.value.map((e, t) => {
251
- let n = e.series.reduce((e, t) => e + s(t.values).reduce((e, t) => e + t, 0), 0);
289
+ let e = R.value.flatMap((e) => e.series).map((e) => c(e.values).reduce((e, t) => e + t, 0));
290
+ N.value = e.map(() => 0), M.value = !0, Xt.value = R.value.map((e, t) => {
291
+ let n = e.series.reduce((e, t) => e + c(t.values).reduce((e, t) => e + t, 0), 0);
252
292
  return {
253
293
  name: "__ghost__",
254
294
  arcOf: e.name,
@@ -262,50 +302,50 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
262
302
  absoluteValues: [],
263
303
  ghost: !0
264
304
  };
265
- }), await Re(), mn(e, I.value.startAnimation.durationMs, I.value.startAnimation.staggerMs).then(() => {
266
- M.value = !1, Jt.value = [];
305
+ }), await ze(), gn(e, I.value.startAnimation.durationMs, I.value.startAnimation.staggerMs).then(() => {
306
+ M.value = !1, Xt.value = [];
267
307
  });
268
308
  } else M.value = !1;
269
309
  }
270
- Ve(async () => {
271
- Yt.value = !0, vn(), await hn();
310
+ Ue(async () => {
311
+ Zt.value = !0, bn(), await _n();
272
312
  });
273
- let B = Ue(null), gn = Ue(null), _n = p(() => !!I.value.debug);
274
- function vn() {
275
- if (n(k.dataset) ? (re({
313
+ let B = Ge(null), vn = Ge(null), yn = m(() => !!I.value.debug);
314
+ function bn() {
315
+ if (ie(k.dataset) ? (f({
276
316
  componentName: "VueUiNestedDonuts",
277
317
  type: "dataset",
278
- debug: _n.value
279
- }), It.value = !1, cn.value = !0) : cn.value = I.value.loading, I.value.responsive) {
280
- let e = Ce(() => {
281
- let { width: e, height: t } = we({
318
+ debug: yn.value
319
+ }), Rt.value = !1, un.value = !0) : un.value = I.value.loading, I.value.responsive) {
320
+ let e = we(() => {
321
+ let { width: e, height: t } = Te({
282
322
  chart: j.value,
283
- title: I.value.style.chart.title.text ? Vt.value : null,
284
- legend: I.value.style.chart.legend.show ? Ht.value : null,
285
- source: Ut.value,
286
- noTitle: Wt.value,
287
- padding: pn.value
323
+ title: I.value.style.chart.title.text ? Ut.value : null,
324
+ legend: I.value.style.chart.legend.show ? Wt.value : null,
325
+ source: Gt.value,
326
+ noTitle: Kt.value,
327
+ padding: hn.value
288
328
  });
289
329
  requestAnimationFrame(() => {
290
330
  H.value.width = e, H.value.height = t;
291
331
  });
292
332
  });
293
- B.value && (gn.value && B.value.unobserve(gn.value), B.value.disconnect()), B.value = new ResizeObserver(e), gn.value = j.value.parentNode, B.value.observe(gn.value);
333
+ 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
334
  }
295
335
  }
296
- Be(() => {
297
- B.value && (gn.value && B.value.unobserve(gn.value), B.value.disconnect());
336
+ He(() => {
337
+ B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect());
298
338
  });
299
- let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = me({
339
+ let { isPrinting: xn, isImaging: Sn, generatePdf: Cn, generateImage: wn } = he({
300
340
  elementId: `nested_donuts_${A.value}`,
301
341
  fileName: I.value.style.chart.title.text || "vue-ui-nested-donuts",
302
342
  options: I.value.userOptions.print
303
- }), Cn = p(() => I.value.userOptions.show && !I.value.style.chart.title.text), wn = p(() => r(I.value.customPalette)), V = C({
343
+ }), Tn = m(() => I.value.userOptions.show && !I.value.style.chart.title.text), En = m(() => ue(I.value.customPalette)), V = C({
304
344
  dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
305
345
  showTable: I.value.table.show,
306
346
  showTooltip: I.value.style.chart.tooltip.show
307
347
  });
308
- Ke(I, () => {
348
+ Je(I, () => {
309
349
  V.value = {
310
350
  dataLabels: { show: I.value.style.chart.layout.labels.dataLabels.show },
311
351
  showTable: I.value.table.show,
@@ -315,8 +355,8 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
315
355
  let H = C({
316
356
  width: I.value.style.chart.width,
317
357
  height: I.value.style.chart.height
318
- }), U = Je;
319
- function Tn({ datapoint: e, index: t, seriesIndex: n }) {
358
+ }), U = Xe;
359
+ function Dn({ datapoint: e, index: t, seriesIndex: n }) {
320
360
  I.value.events.datapointClick && I.value.events.datapointClick({
321
361
  datapoint: e,
322
362
  seriesIndex: n
@@ -325,59 +365,59 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
325
365
  index: t
326
366
  });
327
367
  }
328
- function En({ from: e, to: n, duration: r, onUpdate: i, onDone: a, easing: o = t }) {
329
- let s = performance.now();
330
- function c(t) {
331
- let l = Math.min((t - s) / r, 1), ee = o(l);
332
- i(e + (n - e) * ee, l), l < 1 ? requestAnimationFrame(c) : (i(n, 1), a && a());
368
+ function On({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = ne }) {
369
+ let o = performance.now();
370
+ function s(c) {
371
+ let l = Math.min((c - o) / n, 1), u = a(l);
372
+ r(e + (t - e) * u, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
333
373
  }
334
- requestAnimationFrame(c);
374
+ requestAnimationFrame(s);
335
375
  }
336
- let W = C([]), G = p(() => {
337
- sn.value, R.value.forEach((e, t) => {
338
- [null, void 0].includes(e.name) && re({
376
+ let W = C([]), G = m(() => {
377
+ ln.value, R.value.forEach((e, t) => {
378
+ [null, void 0].includes(e.name) && f({
339
379
  componentName: "VueUiNestedDonuts",
340
380
  type: "datasetSerieAttribute",
341
381
  property: "name",
342
382
  index: t,
343
- debug: _n.value
344
- }), [null, void 0].includes(e.series) ? re({
383
+ debug: yn.value
384
+ }), [null, void 0].includes(e.series) ? f({
345
385
  componentName: "VueUiNestedDonuts",
346
386
  type: "datasetSerieAttribute",
347
387
  property: "series",
348
388
  index: t,
349
- debug: _n.value
350
- }) : e.series.length === 0 ? re({
389
+ debug: yn.value
390
+ }) : e.series.length === 0 ? f({
351
391
  componentName: "VueUiNestedDonuts",
352
392
  type: "datasetAttributeEmpty",
353
393
  property: `series at index ${t}`,
354
- debug: _n.value
394
+ debug: yn.value
355
395
  }) : e.series.forEach((e, t) => {
356
- [null, void 0].includes(e.name) && re({
396
+ [null, void 0].includes(e.name) && f({
357
397
  componentName: "VueUiNestedDonuts",
358
398
  type: "datasetSerieAttribute",
359
399
  property: "name",
360
400
  index: t,
361
401
  key: "serie",
362
- debug: _n.value
363
- }), [null, void 0].includes(e.values) && re({
402
+ debug: yn.value
403
+ }), [null, void 0].includes(e.values) && f({
364
404
  componentName: "VueUiNestedDonuts",
365
405
  type: "datasetSerieAttribute",
366
406
  property: "values",
367
407
  index: t,
368
408
  key: "serie",
369
- debug: _n.value
409
+ debug: yn.value
370
410
  });
371
411
  });
372
412
  });
373
413
  let e = 0;
374
414
  return R.value.map((t, n) => ({
375
415
  ...t,
376
- total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => s(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
416
+ total: t.series.filter((e) => !W.value.includes(e.id)).map((e) => c(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
377
417
  datasetIndex: n,
378
418
  id: `${A.value}_${n}`,
379
419
  series: t.series.map((r, i) => {
380
- let a = s(r.values).reduce((e, t) => e + t, 0);
420
+ let a = c(r.values).reduce((e, t) => e + t, 0);
381
421
  return {
382
422
  name: r.name,
383
423
  arcOf: t.name,
@@ -385,17 +425,17 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
385
425
  id: `${A.value}_${n}_${i}`,
386
426
  seriesIndex: i,
387
427
  datasetIndex: n,
388
- color: ue(r.color) || wn.value[i] || c[i % c.length],
428
+ color: l(r.color) || En.value[i] || s[i % s.length],
389
429
  value: M.value ? N.value[e++] ?? 0 : a,
390
430
  absoluteValues: r.values || []
391
431
  };
392
432
  })
393
433
  }));
394
434
  });
395
- Ke(() => k.dataset, (e) => {
396
- Array.isArray(e) && e.length > 0 && (cn.value = !1);
435
+ Je(() => k.dataset, (e) => {
436
+ Array.isArray(e) && e.length > 0 && (un.value = !1);
397
437
  }, { immediate: !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) => {
438
+ let K = m(() => Math.min(H.value.height, H.value.width) * (I.value.style.chart.layout.donut.strokeWidth / 512)), q = m(() => [...G.value].map((e, t) => {
399
439
  let n = e.series.filter((e) => !W.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
400
440
  return {
401
441
  ...e,
@@ -406,14 +446,14 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
406
446
  }))
407
447
  };
408
448
  }));
409
- function Dn(e, t, n) {
449
+ function kn(e, t, n) {
410
450
  let r = 0;
411
451
  for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
412
452
  return r < t;
413
453
  }
414
454
  let J = C(q.value);
415
- Ke(() => q.value, (e) => J.value = e);
416
- function On(e) {
455
+ Je(() => q.value, (e) => J.value = e);
456
+ function An(e) {
417
457
  let t = e.map((e) => e.id);
418
458
  if (e.some((e) => W.value.includes(e.id))) {
419
459
  let e = new Set(t);
@@ -423,15 +463,15 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
423
463
  }
424
464
  function Y(e) {
425
465
  let t = k.dataset.flatMap((e, t) => e.series.map((e, n) => ({
426
- value: s(e.values).reduce((e, t) => e + t, 0),
466
+ value: c(e.values).reduce((e, t) => e + t, 0),
427
467
  id: `${A.value}_${t}_${n}`,
428
468
  arcOfId: `${A.value}_${t}`
429
469
  }))).find((t) => t.id === e.id);
430
470
  if (!t) return;
431
471
  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
472
  if (!a) return;
433
- let o = a.series.map((e) => e.id), c = Dn(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 ? En({
473
+ let o = a.series.map((e) => e.id), s = kn(o, o.length - 1, W.value);
474
+ W.value.includes(e.id) ? (W.value = W.value.filter((t) => t !== e.id), I.value.serieToggleAnimation.show ? On({
435
475
  from: i,
436
476
  to: n,
437
477
  duration: I.value.serieToggleAnimation.durationMs,
@@ -453,7 +493,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
453
493
  ...t,
454
494
  value: n
455
495
  } : t)
456
- })), U("selectLegend", q.value))) : c && (I.value.serieToggleAnimation.show ? En({
496
+ })), U("selectLegend", q.value))) : s && (I.value.serieToggleAnimation.show ? On({
457
497
  from: i,
458
498
  to: 0,
459
499
  duration: I.value.serieToggleAnimation.durationMs,
@@ -477,30 +517,30 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
477
517
  } : t)
478
518
  })), W.value.push(e.id), U("selectLegend", q.value)));
479
519
  }
480
- function kn(e) {
520
+ function jn(e) {
481
521
  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);
482
522
  }
483
- function An(e) {
484
- let t = kn(e);
523
+ function Mn(e) {
524
+ let t = jn(e);
485
525
  t !== null && (Array.isArray(t) ? t.forEach((e) => {
486
526
  W.value.includes(e.id) && Y({ id: e.id });
487
527
  }) : W.value.includes(t.id) && Y({ id: t.id }));
488
528
  }
489
- function jn(e) {
490
- let t = kn(e);
529
+ function Nn(e) {
530
+ let t = jn(e);
491
531
  t !== null && (Array.isArray(t) ? t.forEach((e) => {
492
532
  W.value.includes(e.id) || Y({ id: e.id });
493
533
  }) : W.value.includes(t.id) || Y({ id: t.id }));
494
534
  }
495
- let Mn = p(() => K.value / G.value.length * I.value.style.chart.layout.donut.spacingRatio), Nn = 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 ? Jt.value.find((e) => e.datasetIndex === t) : null, a = [...e.series, ...i ? [i] : []].map((e) => ({
535
+ let Pn = m(() => K.value / G.value.length * I.value.style.chart.layout.donut.spacingRatio), Fn = m(() => J.value.map((e, t) => K.value - t * K.value / G.value.length)), X = m(() => J.value.map((e, t) => {
536
+ 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) => ({
497
537
  ...e,
498
538
  value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
499
- })), o = l({ series: [{
539
+ })), o = ae({ series: [{
500
540
  name: "_",
501
541
  color: I.value.style.chart.layout.donut.emptyFill,
502
542
  value: 1
503
- }] }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Mn.value), s = `M ${H.value.width / 2},${H.value.height / 2 + r}
543
+ }] }, 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}
504
544
  a ${r},${r} 0 1,1 0,${-2 * r}
505
545
  a ${r},${r} 0 1,1 0,${2 * r}`;
506
546
  return {
@@ -509,23 +549,23 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
509
549
  radius: r,
510
550
  skeleton: o,
511
551
  fullCirclePath: s,
512
- donut: l({ series: a }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Mn.value)
552
+ donut: ae({ series: a }, H.value.width / 2, H.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Pn.value)
513
553
  };
514
- })), Pn = p(() => [...G.value].map((e, t) => {
554
+ })), In = m(() => [...G.value].map((e, t) => {
515
555
  let n = t * K.value / G.value.length;
516
556
  return {
517
557
  sizeRatio: n,
518
- donut: l({ 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]
558
+ donut: ae({ 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]
519
559
  };
520
- })), Fn = C(null), In = C(null), Z = C(null), Ln = C(null);
521
- function Rn({ datapoint: e, seriesIndex: t }) {
560
+ })), Ln = C(null), Rn = C(null), Z = C(null), zn = C(null);
561
+ function Bn({ datapoint: e, seriesIndex: t }) {
522
562
  I.value.events.datapointLeave && I.value.events.datapointLeave({
523
563
  datapoint: e,
524
564
  seriesIndex: t
525
- }), Lt.value = !1, Fn.value = null, zt.value = null, In.value = null, Z.value = null, P.value = null, tn.value = "pointer";
565
+ }), zt.value = !1, Ln.value = null, Vt.value = null, Rn.value = null, Z.value = null, P.value = null, rn.value = "pointer";
526
566
  }
527
- function zn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
528
- return Ae({
567
+ function Vn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
568
+ return je({
529
569
  config: i,
530
570
  val: e,
531
571
  percentage: t,
@@ -533,23 +573,23 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
533
573
  showPercentage: r
534
574
  });
535
575
  }
536
- function Bn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
576
+ function Hn({ datapoint: e, _relativeIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
537
577
  I.value.events.datapointEnter && I.value.events.datapointEnter({
538
578
  datapoint: e,
539
579
  seriesIndex: n
540
- }), tn.value = r, P.value = n, Fn.value = e.arcOfId, In.value = e.id, Z.value = n, zt.value = e.id, Ln.value = {
580
+ }), rn.value = r, P.value = n, Ln.value = e.arcOfId, Rn.value = e.id, Z.value = n, Vt.value = e.id, zn.value = {
541
581
  datapoint: e,
542
582
  seriesIndex: n,
543
583
  series: J.value,
544
584
  config: I.value
545
585
  };
546
586
  let i = I.value.style.chart.tooltip.customFormat;
547
- if (ne(i) && ce(() => i({
587
+ if (de(i) && te(() => i({
548
588
  seriesIndex: n,
549
589
  datapoint: e,
550
590
  series: J.value,
551
591
  config: I.value
552
- }))) Rt.value = i({
592
+ }))) Bt.value = i({
553
593
  seriesIndex: n,
554
594
  datapoint: e,
555
595
  series: J.value,
@@ -573,11 +613,11 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
573
613
  </div>
574
614
  <span>
575
615
  <b>
576
- ${zn({
616
+ ${Vn({
577
617
  config: I.value.style.chart.tooltip,
578
618
  showVal: I.value.style.chart.tooltip.showValue,
579
619
  showPercentage: I.value.style.chart.tooltip.showPercentage,
580
- val: ae(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
620
+ val: d(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
581
621
  p: I.value.style.chart.layout.labels.dataLabels.prefix,
582
622
  v: e.value,
583
623
  s: I.value.style.chart.layout.labels.dataLabels.suffix,
@@ -597,7 +637,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
597
637
  </div>
598
638
  `;
599
639
  });
600
- } else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, I.value.style.chart.tooltip.showValue && (t += `<b>${ae(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
640
+ } else t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, I.value.style.chart.tooltip.showValue && (t += `<b>${d(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, u({
601
641
  p: I.value.style.chart.layout.labels.dataLabels.prefix,
602
642
  v: e.value,
603
643
  s: I.value.style.chart.layout.labels.dataLabels.suffix,
@@ -614,26 +654,26 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
614
654
  s: "%",
615
655
  r: I.value.style.chart.tooltip.roundingPercentage
616
656
  })}</b></div>`);
617
- Rt.value = `<div style="font-size:${I.value.style.chart.tooltip.fontSize}px">${t}</div>`;
657
+ Bt.value = `<div style="font-size:${I.value.style.chart.tooltip.fontSize}px">${t}</div>`;
618
658
  }
619
- Lt.value = !0;
659
+ zt.value = !0;
620
660
  }
621
- function Vn(e) {
661
+ function Un(e) {
622
662
  return e.proportion * 100 > I.value.style.chart.layout.labels.dataLabels.hideUnderValue;
623
663
  }
624
- function Hn(e, t) {
664
+ function Wn(e, t) {
625
665
  if (!I.value.useBlurOnHover) return "";
626
666
  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(In.value) || In.value === e.id ? "" : `url(#blur_${A.value})`;
667
+ 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})`;
628
668
  }
629
- let Un = p(() => G.value.map((e, t) => {
669
+ let Gn = m(() => G.value.map((e, t) => {
630
670
  let n = e.series.filter((e) => !W.value.includes(e.id)), r = M.value ? n.map((e) => {
631
671
  let n = R.value[t].series.findIndex((t) => t.name === e.name);
632
- return s(R.value[t].series[n].values).reduce((e, t) => e + t, 0);
672
+ return c(R.value[t].series[n].values).reduce((e, t) => e + t, 0);
633
673
  }).reduce((e, t) => e + t, 0) : n.map((e) => e.value).reduce((e, t) => e + t, 0);
634
674
  return e.series.map((e, n) => {
635
- let i = s(R.value[t].series[n].values).reduce((e, t) => e + t, 0), a = M.value ? i : e.value, o = zn({
636
- val: ae(I.value.style.chart.layout.labels.dataLabels.formatter, a, u({
675
+ let i = c(R.value[t].series[n].values).reduce((e, t) => e + t, 0), a = M.value ? i : e.value, o = Vn({
676
+ val: d(I.value.style.chart.layout.labels.dataLabels.formatter, a, u({
637
677
  p: I.value.style.chart.layout.labels.dataLabels.prefix,
638
678
  v: a,
639
679
  s: I.value.style.chart.layout.labels.dataLabels.suffix,
@@ -650,13 +690,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
650
690
  showVal: I.value.style.chart.legend.showValue,
651
691
  showPercentage: I.value.style.chart.legend.showPercentage,
652
692
  config: I.value.style.chart.legend
653
- }), c = `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${o}`;
693
+ }), s = `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${o}`;
654
694
  return {
655
695
  name: e.name,
656
696
  color: e.color,
657
697
  value: a,
658
- display: c,
659
- svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${c}`,
698
+ display: s,
699
+ svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${s}`,
660
700
  shape: "circle",
661
701
  arcOf: e.arcOf,
662
702
  id: e.id,
@@ -668,14 +708,14 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
668
708
  isSegregated: W.value.includes(e.id)
669
709
  };
670
710
  });
671
- })), Wn = p(() => ({
711
+ })), Kn = m(() => ({
672
712
  cy: "nested-donuts-legend",
673
713
  backgroundColor: I.value.style.chart.legend.backgroundColor,
674
714
  color: I.value.style.chart.legend.color,
675
715
  fontSize: I.value.style.chart.legend.fontSize,
676
716
  paddingBottom: 12,
677
717
  fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
678
- })), Q = p(() => ({
718
+ })), Q = m(() => ({
679
719
  head: J.value.flatMap((e) => e.series.map((t) => ({
680
720
  name: `${e.name} - ${t.name}`,
681
721
  color: t.color,
@@ -683,13 +723,13 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
683
723
  }))),
684
724
  body: J.value.flatMap((e) => e.series.map((e) => e.value))
685
725
  }));
686
- function Gn(e = null) {
687
- Re(() => {
688
- let t = Q.value.head.map((e, t) => [
726
+ function qn(e = null) {
727
+ ze(() => {
728
+ let n = Q.value.head.map((e, t) => [
689
729
  [e.name],
690
730
  [Q.value.body[t]],
691
731
  [isNaN(Q.value.body[t] / e.total) ? "-" : Q.value.body[t] / e.total * 100]
692
- ]), n = i([
732
+ ]), i = r([
693
733
  [I.value.style.chart.title.text],
694
734
  [I.value.style.chart.title.subtitle.text],
695
735
  [
@@ -697,14 +737,14 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
697
737
  ["val"],
698
738
  ["%"]
699
739
  ]
700
- ].concat(t));
701
- e ? e(n) : te({
702
- csvContent: n,
740
+ ].concat(n));
741
+ e ? e(i) : t({
742
+ csvContent: i,
703
743
  title: I.value.style.chart.title.text || "vue-ui-nested-donuts"
704
744
  });
705
745
  });
706
746
  }
707
- let Kn = p(() => {
747
+ let Jn = m(() => {
708
748
  let e = [
709
749
  I.value.table.columnNames.series,
710
750
  I.value.table.columnNames.value,
@@ -753,25 +793,25 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
753
793
  config: r
754
794
  };
755
795
  });
756
- function qn() {
796
+ function Yn() {
757
797
  return G.value;
758
798
  }
759
- function Jn() {
799
+ function Xn() {
760
800
  V.value.showTable = !V.value.showTable;
761
801
  }
762
- function Yn() {
802
+ function Zn() {
763
803
  V.value.dataLabels.show = !V.value.dataLabels.show;
764
804
  }
765
- function Xn() {
805
+ function Qn() {
766
806
  V.value.showTooltip = !V.value.showTooltip;
767
807
  }
768
- let Zn = C(!1);
769
- function Qn() {
770
- Zn.value = !Zn.value;
808
+ let $n = C(!1);
809
+ function er() {
810
+ $n.value = !$n.value;
771
811
  }
772
- async function $n({ scale: e = 2 } = {}) {
812
+ async function tr({ scale: e = 2 } = {}) {
773
813
  if (!j.value) return;
774
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
814
+ let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await xe({
775
815
  domElement: j.value,
776
816
  base64: !0,
777
817
  img: !0,
@@ -786,16 +826,16 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
786
826
  aspectRatio: r
787
827
  };
788
828
  }
789
- let er = C(null);
790
- function tr() {
791
- if (!er.value) return;
792
- let { x: e, y: t, width: n, height: r } = er.value.getBBox();
829
+ let nr = C(null);
830
+ function rr() {
831
+ if (!nr.value) return;
832
+ let { x: e, y: t, width: n, height: r } = nr.value.getBBox();
793
833
  z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
794
834
  }
795
- let nr = p(() => {
835
+ let ir = m(() => {
796
836
  let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
797
837
  return {
798
- component: e ? Mt : Dt,
838
+ component: e ? Pt : kt,
799
839
  title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
800
840
  props: e ? {
801
841
  backgroundColor: I.value.table.th.backgroundColor,
@@ -823,50 +863,50 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
823
863
  }
824
864
  };
825
865
  });
826
- Ke(() => V.value.showTable, (e) => {
827
- I.value.table.show || (e && I.value.table.useDialog && Xt.value ? Xt.value.open() : "close" in Xt.value && Xt.value.close());
866
+ Je(() => V.value.showTable, (e) => {
867
+ I.value.table.show || (e && I.value.table.useDialog && Qt.value ? Qt.value.open() : "close" in Qt.value && Qt.value.close());
828
868
  });
829
- function rr() {
830
- V.value.showTable = !1, Zt.value && Zt.value.setTableIconState(!1);
869
+ function ar() {
870
+ V.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
831
871
  }
832
- let ir = p(() => I.value.style.chart.backgroundColor), ar = p(() => I.value.style.chart.legend), { exportSvg: or, getSvg: sr } = _e({
872
+ let or = m(() => I.value.style.chart.backgroundColor), sr = m(() => I.value.style.chart.legend), { exportSvg: cr, getSvg: lr } = ve({
833
873
  svg: z,
834
- title: p(() => I.value.style.chart.title),
835
- legend: ar,
836
- legendItems: p(() => Un.value.flat().map((e) => ({
874
+ title: m(() => I.value.style.chart.title),
875
+ legend: sr,
876
+ legendItems: m(() => Gn.value.flat().map((e) => ({
837
877
  ...e,
838
878
  name: e.svgDisplay
839
879
  }))),
840
- backgroundColor: ir
880
+ backgroundColor: or
841
881
  });
842
- async function cr({ isCb: e }) {
843
- $t.value = !0, await Re();
882
+ async function ur({ isCb: e }) {
883
+ tn.value = !0, await ze();
844
884
  try {
845
885
  if (e) {
846
- let { blob: e, url: t, text: n, dataUrl: r } = await sr();
886
+ let { blob: e, url: t, text: n, dataUrl: r } = await lr();
847
887
  await Promise.resolve(I.value.userOptions.callbacks.svg({
848
888
  blob: e,
849
889
  url: t,
850
890
  text: n,
851
891
  dataUrl: r
852
892
  }));
853
- } else await Promise.resolve(or());
893
+ } else await Promise.resolve(cr());
854
894
  } finally {
855
- $t.value = !1;
895
+ tn.value = !1;
856
896
  }
857
897
  }
858
- function lr(e) {
898
+ function dr(e) {
859
899
  if (e?.stage === "start") {
860
- Qt.value = !0;
900
+ en.value = !0;
861
901
  return;
862
902
  }
863
903
  if (e?.stage === "end") {
864
- Qt.value = !1;
904
+ en.value = !1;
865
905
  return;
866
906
  }
867
- Sn();
907
+ wn();
868
908
  }
869
- async function ur() {
909
+ async function fr() {
870
910
  if (U("copyAlt", {
871
911
  config: I.value,
872
912
  dataset: J.value
@@ -879,26 +919,26 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
879
919
  dataset: J.value
880
920
  }));
881
921
  }
882
- let $ = p(() => X.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
883
- function dr() {
884
- P.value = null, nn.value = !0;
922
+ let $ = m(() => X.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
923
+ function pr() {
924
+ P.value = null, an.value = !0;
885
925
  }
886
- function fr() {
887
- P.value = null, tn.value = "pointer", Lt.value = !1, Fn.value = null, zt.value = null, In.value = null, Z.value = null, nn.value = !1;
926
+ function mr() {
927
+ P.value = null, rn.value = "pointer", zt.value = !1, Ln.value = null, Vt.value = null, Rn.value = null, Z.value = null, an.value = !1;
888
928
  }
889
- function pr(e) {
890
- if (!z.value || Zn.value || document.activeElement !== z.value || !$.value.length) return;
929
+ function hr(e) {
930
+ if (!z.value || $n.value || document.activeElement !== z.value || !$.value.length) return;
891
931
  let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
892
932
  if (!t && !n && !r && !i) return;
893
933
  if (e.preventDefault(), e.stopPropagation(), i) {
894
- P.value = null, tn.value = "pointer", Lt.value = !1, Fn.value = null, zt.value = null, In.value = null, Z.value = null;
934
+ P.value = null, rn.value = "pointer", zt.value = !1, Ln.value = null, Vt.value = null, Rn.value = null, Z.value = null;
895
935
  return;
896
936
  }
897
937
  if (r) {
898
938
  if (P.value === null) return;
899
939
  let e = $.value[P.value];
900
940
  if (!e) return;
901
- Tn({
941
+ Dn({
902
942
  datapoint: e,
903
943
  index: P.value,
904
944
  seriesIndex: e.seriesIndex
@@ -908,7 +948,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
908
948
  let a = P.value, o = Z.value, s = a !== null && a >= 0 && a < $.value.length, c = o !== null && o >= 0 && o < $.value.length;
909
949
  s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
910
950
  let l = $.value[a];
911
- l && (P.value = a, mr(), Bn({
951
+ l && (P.value = a, gr(), Hn({
912
952
  datapoint: l,
913
953
  relativeIndex: a,
914
954
  seriesIndex: l.seriesIndex,
@@ -916,52 +956,52 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
916
956
  triggerMode: "keyboard"
917
957
  }));
918
958
  }
919
- function mr() {
959
+ function gr() {
920
960
  if (!z.value) return;
921
961
  let e = z.value.getBoundingClientRect();
922
- en.value = {
962
+ nn.value = {
923
963
  x: e.left + e.width / 2,
924
964
  y: e.top + e.height / 2
925
965
  };
926
966
  }
927
- let hr = p(() => ({
928
- headers: Kn.value?.colNames ?? [],
929
- rows: Kn.value?.a11yBody ?? []
967
+ let _r = m(() => ({
968
+ headers: Jn.value?.colNames ?? [],
969
+ rows: Jn.value?.a11yBody ?? []
930
970
  }));
931
- return Se({
932
- autoSize: tr,
933
- getData: qn,
934
- getImage: $n,
935
- generatePdf: xn,
936
- generateCsv: Gn,
937
- generateImage: Sn,
938
- generateSvg: cr,
939
- hideSeries: jn,
940
- showSeries: An,
941
- toggleTable: Jn,
942
- toggleLabels: Yn,
943
- toggleTooltip: Xn,
944
- toggleAnnotator: Qn,
945
- toggleFullscreen: rn,
946
- copyAlt: ur
947
- }), (e, t) => (S(), g("div", {
971
+ return Ce({
972
+ autoSize: rr,
973
+ getData: Yn,
974
+ getImage: tr,
975
+ generatePdf: Cn,
976
+ generateCsv: qn,
977
+ generateImage: wn,
978
+ generateSvg: ur,
979
+ hideSeries: Nn,
980
+ showSeries: Mn,
981
+ toggleTable: Xn,
982
+ toggleLabels: Zn,
983
+ toggleTooltip: Qn,
984
+ toggleAnnotator: er,
985
+ toggleFullscreen: on,
986
+ copyAlt: fr
987
+ }), (e, t) => (S(), _("div", {
948
988
  ref_key: "nestedDonutsChart",
949
989
  ref: j,
950
- class: b(`vue-data-ui-component vue-ui-nested-donuts ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
951
- style: ze(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor}`),
990
+ class: Be(`vue-data-ui-component vue-ui-nested-donuts ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
991
+ style: Ve(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor}`),
952
992
  id: `nested_donuts_${A.value}`,
953
- onMouseenter: t[2] ||= () => D(un)(!0),
954
- onMouseleave: t[3] ||= () => D(un)(!1)
993
+ onMouseenter: t[2] ||= () => D(fn)(!0),
994
+ onMouseleave: t[3] ||= () => D(fn)(!1)
955
995
  }, [
956
- _("div", {
996
+ v("div", {
957
997
  id: `chart-instructions-${A.value}`,
958
998
  class: "sr-only"
959
- }, [_("p", null, E(I.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
960
- hr.value?.rows?.length ? (S(), m(De, {
999
+ }, [v("p", null, E(I.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1000
+ _r.value?.rows?.length ? (S(), h(Oe, {
961
1001
  key: 0,
962
1002
  uid: A.value,
963
- head: hr.value.headers,
964
- body: hr.value.rows,
1003
+ head: _r.value.headers,
1004
+ body: _r.value.rows,
965
1005
  notice: I.value.a11y.translations.tableAvailable,
966
1006
  caption: I.value.a11y.translations.tableCaption
967
1007
  }, null, 8, [
@@ -970,22 +1010,22 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
970
1010
  "body",
971
1011
  "notice",
972
1012
  "caption"
973
- ])) : h("", !0),
974
- I.value.userOptions.buttons.annotator ? (S(), m(D(At), {
1013
+ ])) : g("", !0),
1014
+ I.value.userOptions.buttons.annotator ? (S(), h(D(Mt), {
975
1015
  key: 1,
976
1016
  svgRef: D(z),
977
1017
  backgroundColor: I.value.style.chart.backgroundColor,
978
1018
  color: I.value.style.chart.color,
979
- active: Zn.value,
1019
+ active: $n.value,
980
1020
  isCursorPointer: L.value,
981
- onClose: Qn
1021
+ onClose: er
982
1022
  }, {
983
1023
  "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
984
- "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
985
- "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
986
- "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
987
- "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
988
- "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1024
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
1025
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(b({ mode: t })), void 0, !0)]),
1026
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(b({ disabled: t })), void 0, !0)]),
1027
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(b({ disabled: t })), void 0, !0)]),
1028
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(b({ disabled: t })), void 0, !0)]),
989
1029
  _: 3
990
1030
  }, 8, [
991
1031
  "svgRef",
@@ -993,20 +1033,20 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
993
1033
  "color",
994
1034
  "active",
995
1035
  "isCursorPointer"
996
- ])) : h("", !0),
997
- Cn.value ? (S(), g("div", {
1036
+ ])) : g("", !0),
1037
+ Tn.value ? (S(), _("div", {
998
1038
  key: 2,
999
1039
  ref_key: "noTitle",
1000
- ref: Wt,
1040
+ ref: Kt,
1001
1041
  class: "vue-data-ui-no-title-space",
1002
1042
  style: "height:36px; width: 100%;background:transparent"
1003
- }, null, 512)) : h("", !0),
1004
- I.value.style.chart.title.text ? (S(), g("div", {
1043
+ }, null, 512)) : g("", !0),
1044
+ I.value.style.chart.title.text ? (S(), _("div", {
1005
1045
  key: 3,
1006
1046
  ref_key: "chartTitle",
1007
- ref: Vt
1008
- }, [(S(), m(xe, {
1009
- key: `title_${Gt.value}`,
1047
+ ref: Ut
1048
+ }, [(S(), h(Se, {
1049
+ key: `title_${qt.value}`,
1010
1050
  config: {
1011
1051
  title: {
1012
1052
  cy: "donut-div-title",
@@ -1017,16 +1057,16 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1017
1057
  ...I.value.style.chart.title.subtitle
1018
1058
  }
1019
1059
  }
1020
- }, null, 8, ["config"]))], 512)) : h("", !0),
1021
- _("div", { id: `legend-top-${A.value}` }, null, 8, Ze),
1022
- I.value.userOptions.show && It.value && (D(dn) || D(ln)) ? (S(), m(D(kt), {
1060
+ }, null, 8, ["config"]))], 512)) : g("", !0),
1061
+ v("div", { id: `legend-top-${A.value}` }, null, 8, $e),
1062
+ I.value.userOptions.show && Rt.value && (D(pn) || D(dn)) ? (S(), h(D(jt), {
1023
1063
  ref_key: "userOptionsRef",
1024
- ref: Zt,
1025
- key: `user_option_${Bt.value}`,
1064
+ ref: $t,
1065
+ key: `user_option_${Ht.value}`,
1026
1066
  backgroundColor: I.value.style.chart.backgroundColor,
1027
1067
  color: I.value.style.chart.color,
1028
- isPrinting: D(yn),
1029
- isImaging: D(bn),
1068
+ isPrinting: D(xn),
1069
+ isImaging: D(Sn),
1030
1070
  uid: A.value,
1031
1071
  hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.chart.tooltip.show,
1032
1072
  hasPdf: I.value.userOptions.buttons.pdf,
@@ -1043,26 +1083,26 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1043
1083
  chartElement: j.value,
1044
1084
  position: I.value.userOptions.position,
1045
1085
  hasAnnotator: I.value.userOptions.buttons.annotator,
1046
- isAnnotation: Zn.value,
1086
+ isAnnotation: $n.value,
1047
1087
  callbacks: I.value.userOptions.callbacks,
1048
1088
  printScale: I.value.userOptions.print.scale,
1049
1089
  tableDialog: I.value.table.useDialog,
1050
1090
  isCursorPointer: L.value,
1051
- onToggleFullscreen: rn,
1052
- onGeneratePdf: D(xn),
1053
- onGenerateCsv: Gn,
1054
- onGenerateImage: lr,
1055
- onGenerateSvg: cr,
1056
- onToggleTable: Jn,
1057
- onToggleLabels: Yn,
1058
- onToggleTooltip: Xn,
1059
- onToggleAnnotator: Qn,
1060
- onCopyAlt: ur,
1061
- style: ze({ visibility: D(dn) ? D(ln) ? "visible" : "hidden" : "visible" })
1062
- }, Pe({ _: 2 }, [
1091
+ onToggleFullscreen: on,
1092
+ onGeneratePdf: D(Cn),
1093
+ onGenerateCsv: qn,
1094
+ onGenerateImage: dr,
1095
+ onGenerateSvg: ur,
1096
+ onToggleTable: Xn,
1097
+ onToggleLabels: Zn,
1098
+ onToggleTooltip: Qn,
1099
+ onToggleAnnotator: er,
1100
+ onCopyAlt: fr,
1101
+ style: Ve({ visibility: D(pn) ? D(dn) ? "visible" : "hidden" : "visible" })
1102
+ }, Fe({ _: 2 }, [
1063
1103
  e.$slots.menuIcon ? {
1064
1104
  name: "menuIcon",
1065
- fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
1105
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
1066
1106
  isOpen: t,
1067
1107
  color: n
1068
1108
  })), void 0, !0)]),
@@ -1105,7 +1145,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1105
1145
  } : void 0,
1106
1146
  e.$slots.optionFullscreen ? {
1107
1147
  name: "optionFullscreen",
1108
- fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
1148
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
1109
1149
  toggleFullscreen: t,
1110
1150
  isFullscreen: n
1111
1151
  })), void 0, !0)]),
@@ -1113,7 +1153,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1113
1153
  } : void 0,
1114
1154
  e.$slots.optionAnnotator ? {
1115
1155
  name: "optionAnnotator",
1116
- fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
1156
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
1117
1157
  toggleAnnotator: t,
1118
1158
  isAnnotator: n
1119
1159
  })), void 0, !0)]),
@@ -1121,7 +1161,7 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1121
1161
  } : void 0,
1122
1162
  e.$slots.optionAltCopy ? {
1123
1163
  name: "optionAltCopy",
1124
- fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1164
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
1125
1165
  key: "10"
1126
1166
  } : void 0,
1127
1167
  e.$slots["custom-menu-before"] ? {
@@ -1134,38 +1174,38 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1134
1174
  fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1135
1175
  key: "12"
1136
1176
  } : void 0
1137
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : h("", !0),
1138
- _("div", Qe, [(S(), g("svg", {
1177
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : g("", !0),
1178
+ v("div", et, [(S(), _("svg", {
1139
1179
  ref_key: "svgRef",
1140
1180
  ref: z,
1141
1181
  xmlns: D(le),
1142
1182
  "aria-describedby": `chart-instructions-${A.value}`,
1143
- class: b({
1183
+ class: Be({
1144
1184
  "vue-data-ui-fullscreen--on": F.value,
1145
1185
  "vue-data-ui-fulscreen--off": !F.value,
1146
1186
  "vue-data-ui-svg": !0
1147
1187
  }),
1148
1188
  viewBox: `0 0 ${H.value.width <= 0 ? .001 : H.value.width} ${H.value.height < 0 ? .001 : H.value.height}`,
1149
- style: ze(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};${pn.value.css}`),
1189
+ style: Ve(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};${hn.value.css}`),
1150
1190
  tabindex: "0",
1151
- onFocus: dr,
1152
- onBlur: fr,
1153
- onKeydown: pr
1154
- }, [_("g", {
1191
+ onFocus: pr,
1192
+ onBlur: mr,
1193
+ onKeydown: hr
1194
+ }, [v("g", {
1155
1195
  ref_key: "G",
1156
- ref: er,
1196
+ ref: nr,
1157
1197
  class: "vue-data-ui-g"
1158
1198
  }, [
1159
- Ie(D(jt)),
1160
- e.$slots["chart-background"] ? (S(), g("foreignObject", {
1199
+ Le(D(Nt)),
1200
+ e.$slots["chart-background"] ? (S(), _("foreignObject", {
1161
1201
  key: 0,
1162
1202
  x: 0,
1163
1203
  y: 0,
1164
1204
  width: H.value.width <= 0 ? .001 : H.value.width,
1165
1205
  height: H.value.height < 0 ? .001 : H.value.height,
1166
1206
  style: { pointerEvents: "none" }
1167
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, et)) : h("", !0),
1168
- _("defs", null, [(S(!0), g(f, null, w(Pn.value, (e, t) => (S(), m(Te, {
1207
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : g("", !0),
1208
+ v("defs", null, [(S(!0), _(p, null, w(In.value, (e, t) => (S(), h(Ee, {
1169
1209
  t: "radial",
1170
1210
  id: `radial_${A.value}_${t}`,
1171
1211
  key: `radial_${A.value}_${t}`,
@@ -1176,12 +1216,12 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1176
1216
  0
1177
1217
  ],
1178
1218
  [
1179
- `${(1 - Mn.value / Nn.value[t]) * 100}%`,
1180
- D(fe)("#FFFFFF", 0),
1219
+ `${(1 - Pn.value / Fn.value[t]) * 100}%`,
1220
+ D(n)("#FFFFFF", 0),
1181
1221
  0
1182
1222
  ],
1183
1223
  [
1184
- `${(1 - Mn.value / Nn.value[t] / 2) * 100}%`,
1224
+ `${(1 - Pn.value / Fn.value[t] / 2) * 100}%`,
1185
1225
  "#FFFFFF",
1186
1226
  I.value.style.chart.gradientIntensity / 100
1187
1227
  ],
@@ -1192,64 +1232,63 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1192
1232
  ]
1193
1233
  ]
1194
1234
  }, null, 8, ["id", "stops"]))), 128))]),
1195
- _("defs", null, [_("filter", {
1235
+ v("defs", null, [v("filter", {
1196
1236
  id: `blur_${A.value}`,
1197
1237
  x: "-50%",
1198
1238
  y: "-50%",
1199
1239
  width: "200%",
1200
1240
  height: "200%"
1201
- }, [_("feGaussianBlur", {
1241
+ }, [v("feGaussianBlur", {
1202
1242
  in: "SourceGraphic",
1203
1243
  stdDeviation: 2,
1204
1244
  id: `blur_std_${A.value}`
1205
- }, null, 8, nt), t[4] ||= _("feColorMatrix", {
1245
+ }, null, 8, it), t[4] ||= v("feColorMatrix", {
1206
1246
  type: "saturate",
1207
1247
  values: "0"
1208
- }, null, -1)], 8, tt), _("filter", {
1248
+ }, null, -1)], 8, rt), v("filter", {
1209
1249
  id: `shadow_${A.value}`,
1210
1250
  "color-interpolation-filters": "sRGB"
1211
- }, [_("feDropShadow", {
1251
+ }, [v("feDropShadow", {
1212
1252
  dx: "0",
1213
1253
  dy: "0",
1214
1254
  stdDeviation: "10",
1215
1255
  "flood-opacity": "0.5",
1216
1256
  "flood-color": I.value.style.chart.layout.donut.shadowColor
1217
- }, null, 8, it)], 8, rt)]),
1218
- _("defs", null, [(S(!0), g(f, null, w(X.value, (e, t) => (S(), g("path", {
1257
+ }, null, 8, ot)], 8, at)]),
1258
+ v("defs", null, [(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("path", {
1219
1259
  key: `path-full-${t}`,
1220
1260
  id: `path-full-${t}-${A.value}`,
1221
1261
  d: e.fullCirclePath,
1222
1262
  fill: "none"
1223
- }, null, 8, at))), 128))]),
1224
- (S(!0), g(f, null, w(X.value, (e, t) => (S(), g("g", null, [e.hasData ? (S(!0), g(f, { key: 0 }, w(e.donut.filter((e) => !e.ghost), (e, t) => (S(), g("g", null, [_("path", {
1263
+ }, null, 8, st))), 128))]),
1264
+ (S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [e.hasData ? (S(!0), _(p, { key: 0 }, w(e.donut.filter((e) => !e.ghost), (e, t) => (S(), _("g", null, [v("path", {
1225
1265
  class: "vue-ui-donut-arc-path",
1226
1266
  d: e.arcSlice,
1227
1267
  fill: e.color,
1228
1268
  stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1229
1269
  "stroke-width": I.value.style.chart.layout.donut.borderWidth,
1230
- filter: Hn(e, t)
1231
- }, null, 8, ot)]))), 256)) : (S(!0), g(f, { key: 1 }, w(e.skeleton, (e, t) => (S(), g("g", null, [_("path", {
1270
+ filter: Wn(e, t)
1271
+ }, null, 8, ct)]))), 256)) : (S(!0), _(p, { key: 1 }, w(e.skeleton, (e, t) => (S(), _("g", null, [v("path", {
1232
1272
  class: "vue-ui-donut-arc-path",
1233
1273
  d: e.arcSlice,
1234
1274
  fill: e.color,
1235
1275
  stroke: I.value.style.chart.layout.donut.borderColorAuto ? I.value.style.chart.backgroundColor : I.value.style.chart.layout.donut.borderColor,
1236
1276
  "stroke-width": I.value.style.chart.layout.donut.borderWidth
1237
- }, null, 8, st)]))), 256))]))), 256)),
1238
- I.value.style.chart.useGradient ? (S(), g("g", ct, [(S(!0), g(f, null, w(Pn.value, (e, t) => (S(), g("g", null, [_("path", {
1277
+ }, null, 8, lt)]))), 256))]))), 256)),
1278
+ I.value.style.chart.useGradient ? (S(), _("g", ut, [(S(!0), _(p, null, w(In.value, (e, t) => (S(), _("g", null, [v("path", {
1239
1279
  d: e.donut.arcSlice,
1240
1280
  fill: `url(#radial_${A.value}_${t})`,
1241
1281
  stroke: "transparent",
1242
1282
  "stroke-width": "0"
1243
- }, null, 8, lt)]))), 256))])) : h("", !0),
1244
- I.value.style.chart.layout.labels.dataLabels.showDonutName ? (S(), g("g", ut, [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", {
1283
+ }, null, 8, dt)]))), 256))])) : g("", !0),
1284
+ I.value.style.chart.layout.labels.dataLabels.showDonutName ? (S(), _("g", ft, [I.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (S(!0), _(p, { key: 0 }, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut, (n, r) => (S(), _("g", null, [r === 0 && H.value.width && H.value.height ? (S(), _("text", {
1245
1285
  key: 0,
1246
- class: b({ animated: I.value.useCssAnimation }),
1247
1286
  "text-anchor": "middle",
1248
1287
  "font-size": I.value.style.chart.layout.labels.dataLabels.fontSize,
1249
1288
  "font-weight": I.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1250
1289
  fill: I.value.style.chart.layout.labels.dataLabels.color,
1251
1290
  dy: I.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
1252
- }, [_("textPath", {
1291
+ }, [v("textPath", {
1253
1292
  href: `#path-full-${t}-${A.value}`,
1254
1293
  startOffset: "50%",
1255
1294
  "text-anchor": "middle",
@@ -1258,9 +1297,8 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1258
1297
  }, E(I.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? D(oe)({
1259
1298
  source: e.name,
1260
1299
  length: I.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1261
- }) : e.name), 9, ft)], 10, dt)) : 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", {
1300
+ }) : e.name), 9, mt)], 8, pt)) : g("", !0)]))), 256))]))), 256)) : (S(!0), _(p, { key: 1 }, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut, (t, n) => (S(), _("g", null, [n === 0 && H.value.width && H.value.height ? (S(), _("text", {
1262
1301
  key: 0,
1263
- class: b({ animated: I.value.useCssAnimation }),
1264
1302
  x: H.value.width / 2,
1265
1303
  y: t.startY - I.value.style.chart.layout.labels.dataLabels.fontSize + I.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1266
1304
  "text-anchor": "middle",
@@ -1270,30 +1308,28 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1270
1308
  }, E(I.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? D(oe)({
1271
1309
  source: e.name,
1272
1310
  length: I.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1273
- }) : e.name), 11, pt)) : h("", !0)]))), 256))]))), 256))])) : h("", !0),
1274
- I.value.style.chart.layout.labels.dataLabels.show ? (S(), g("g", mt, [(S(!0), g(f, null, w(X.value, (e, t) => (S(), g("g", null, [(S(!0), g(f, null, w(e.donut.filter((e) => !e.ghost), (e, n) => (S(), g("g", { filter: Hn(e, n) }, [qe(_("text", {
1275
- class: b({ animated: I.value.useCssAnimation }),
1276
- opacity: +!!Vn(e),
1277
- "text-anchor": D(d)(e, !0).anchor,
1278
- x: D(d)(e, !1, I.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
1279
- y: D(ie)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst && I.value.style.chart.layout.labels.dataLabels.showValue ? I.value.style.chart.layout.labels.dataLabels.fontSize : 0),
1311
+ }) : e.name), 9, ht)) : g("", !0)]))), 256))]))), 256))])) : g("", !0),
1312
+ I.value.style.chart.layout.labels.dataLabels.show ? (S(), _("g", gt, [(S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut.filter((e) => !e.ghost), (e, n) => (S(), _("g", { filter: Wn(e, n) }, [Ye(v("text", {
1313
+ opacity: +!!Un(e),
1314
+ "text-anchor": D(re)(e, !0).anchor,
1315
+ x: D(re)(e, !1, I.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
1316
+ y: D(se)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst && I.value.style.chart.layout.labels.dataLabels.showValue ? I.value.style.chart.layout.labels.dataLabels.fontSize : 0),
1280
1317
  fill: I.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : I.value.style.chart.layout.labels.dataLabels.color,
1281
1318
  "font-size": I.value.style.chart.layout.labels.dataLabels.fontSize,
1282
1319
  "font-weight": I.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1283
- }, E(D(ee)(D(u)({
1320
+ }, E(D(i)(D(u)({
1284
1321
  v: e.proportion * 100,
1285
1322
  s: "%",
1286
1323
  r: I.value.style.chart.layout.labels.dataLabels.roundingPercentage
1287
- }), I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 11, gt), [[Ge, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showPercentage]]), qe(_("text", {
1288
- class: b({ animated: I.value.useCssAnimation }),
1289
- opacity: +!!Vn(e),
1290
- "text-anchor": D(d)(e, !0).anchor,
1291
- x: D(d)(e, !1, I.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
1292
- y: D(ie)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst || !I.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : I.value.style.chart.layout.labels.dataLabels.fontSize),
1324
+ }), I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.usePercentageParens ? ")" : "")), 9, vt), [[qe, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showPercentage]]), Ye(v("text", {
1325
+ opacity: +!!Un(e),
1326
+ "text-anchor": D(re)(e, !0).anchor,
1327
+ x: D(re)(e, !1, I.value.style.chart.layout.labels.dataLabels.offsetX).x || 0,
1328
+ y: D(se)(e, I.value.style.chart.layout.labels.dataLabels.offsetY, I.value.style.chart.layout.labels.dataLabels.offsetY) + (I.value.style.chart.layout.labels.dataLabels.showValueFirst || !I.value.style.chart.layout.labels.dataLabels.showPercentage ? 0 : I.value.style.chart.layout.labels.dataLabels.fontSize),
1293
1329
  fill: I.value.style.chart.layout.labels.dataLabels.useSerieColor ? e.color : I.value.style.chart.layout.labels.dataLabels.color,
1294
1330
  "font-size": I.value.style.chart.layout.labels.dataLabels.fontSize,
1295
1331
  "font-weight": I.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1296
- }, E(D(ee)(D(ae)(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, D(u)({
1332
+ }, E(D(i)(D(d)(I.value.style.chart.layout.labels.dataLabels.formatter, e.value, D(u)({
1297
1333
  p: I.value.style.chart.layout.labels.dataLabels.prefix,
1298
1334
  v: e.value,
1299
1335
  s: I.value.style.chart.layout.labels.dataLabels.suffix,
@@ -1302,38 +1338,38 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1302
1338
  datapoint: e,
1303
1339
  seriesIndex: t,
1304
1340
  datapointIndex: n
1305
- }), I.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 11, _t), [[Ge, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showValue]])], 8, ht))), 256))]))), 256))])) : h("", !0),
1306
- (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", {
1341
+ }), I.value.style.chart.layout.labels.dataLabels.useValueParens ? "(" : "", I.value.style.chart.layout.labels.dataLabels.useValueParens ? ")" : "")), 9, yt), [[qe, V.value.dataLabels.show && I.value.style.chart.layout.labels.dataLabels.showValue]])], 8, _t))), 256))]))), 256))])) : g("", !0),
1342
+ (S(!0), _(p, null, w(X.value, (e, t) => (S(), _("g", null, [(S(!0), _(p, null, w(e.donut, (e, t) => (S(), _("g", null, [v("path", {
1307
1343
  d: e.arcSlice,
1308
- fill: zt.value === e.id ? I.value.style.chart.layout.donut.selectedColor : "transparent",
1309
- onMouseenter: (t) => Bn({
1344
+ fill: Vt.value === e.id ? I.value.style.chart.layout.donut.selectedColor : "transparent",
1345
+ onMouseenter: (t) => Hn({
1310
1346
  datapoint: e,
1311
1347
  relativeIndex: $.value.findIndex((t) => t.id === e.id),
1312
1348
  seriesIndex: e.seriesIndex
1313
1349
  }),
1314
- onClick: (n) => Tn({
1350
+ onClick: (n) => Dn({
1315
1351
  datapoint: e,
1316
1352
  index: t,
1317
1353
  seriesIndex: e.seriesIndex
1318
1354
  }),
1319
- onMouseleave: (t) => Rn({
1355
+ onMouseleave: (t) => Bn({
1320
1356
  datapoint: e,
1321
1357
  seriesIndex: e.seriesIndex
1322
1358
  })
1323
- }, null, 40, vt)]))), 256))]))), 256)),
1359
+ }, null, 40, bt)]))), 256))]))), 256)),
1324
1360
  T(e.$slots, "svg", { svg: {
1325
1361
  ...H.value,
1326
- isPrintingImg: D(yn) || D(bn) || Qt.value,
1327
- isPrintingSvg: $t.value
1362
+ isPrintingImg: D(xn) || D(Sn) || en.value,
1363
+ isPrintingSvg: tn.value
1328
1364
  } }, void 0, !0)
1329
- ], 512)], 46, $e)), e.$slots.hint ? (S(), g("div", yt, [T(e.$slots, "hint", x(y({
1365
+ ], 512)], 46, tt)), e.$slots.hint ? (S(), _("div", xt, [T(e.$slots, "hint", x(b({
1330
1366
  hint: I.value.a11y.translations.keyboardNavigation,
1331
- isVisible: nn.value
1332
- })), void 0, !0)])) : h("", !0)]),
1333
- e.$slots.watermark ? (S(), g("div", bt, [T(e.$slots, "watermark", x(y({ isPrinting: D(yn) || D(bn) || Qt.value || $t.value })), void 0, !0)])) : h("", !0),
1334
- Ie(D(Tt), {
1367
+ isVisible: an.value
1368
+ })), void 0, !0)])) : g("", !0)]),
1369
+ e.$slots.watermark ? (S(), _("div", St, [T(e.$slots, "watermark", x(b({ isPrinting: D(xn) || D(Sn) || en.value || tn.value })), void 0, !0)])) : g("", !0),
1370
+ Le(D(Dt), {
1335
1371
  teleportTo: I.value.style.chart.tooltip.teleportTo,
1336
- show: V.value.showTooltip && Lt.value,
1372
+ show: V.value.showTooltip && zt.value,
1337
1373
  backgroundColor: I.value.style.chart.tooltip.backgroundColor,
1338
1374
  color: I.value.style.chart.tooltip.color,
1339
1375
  borderRadius: I.value.style.chart.tooltip.borderRadius,
@@ -1345,19 +1381,19 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1345
1381
  offsetX: I.value.style.chart.tooltip.offsetX,
1346
1382
  offsetY: I.value.style.chart.tooltip.offsetY,
1347
1383
  parent: j.value,
1348
- content: Rt.value,
1384
+ content: Bt.value,
1349
1385
  isFullscreen: F.value,
1350
- isCustom: D(ne)(I.value.style.chart.tooltip.customFormat),
1386
+ isCustom: D(de)(I.value.style.chart.tooltip.customFormat),
1351
1387
  smooth: I.value.style.chart.tooltip.smooth,
1352
1388
  backdropFilter: I.value.style.chart.tooltip.backdropFilter,
1353
1389
  smoothForce: I.value.style.chart.tooltip.smoothForce,
1354
1390
  smoothSnapThreshold: I.value.style.chart.tooltip.smoothSnapThreshold,
1355
- isA11yMode: tn.value === "keyboard",
1356
- a11yPosition: en.value
1391
+ isA11yMode: rn.value === "keyboard",
1392
+ a11yPosition: nn.value
1357
1393
  }, {
1358
- "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...Ln.value })), void 0, !0)]),
1359
- tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...Ln.value })), void 0, !0)]),
1360
- "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...Ln.value })), void 0, !0)]),
1394
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(b({ ...zn.value })), void 0, !0)]),
1395
+ tooltip: O(() => [T(e.$slots, "tooltip", x(b({ ...zn.value })), void 0, !0)]),
1396
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(b({ ...zn.value })), void 0, !0)]),
1361
1397
  _: 3
1362
1398
  }, 8, [
1363
1399
  "teleportTo",
@@ -1383,35 +1419,35 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1383
1419
  "isA11yMode",
1384
1420
  "a11yPosition"
1385
1421
  ]),
1386
- _("div", { id: `legend-bottom-${A.value}` }, null, 8, xt),
1387
- Yt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), m(Ne, {
1422
+ v("div", { id: `legend-bottom-${A.value}` }, null, 8, Ct),
1423
+ Zt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (S(), h(Pe, {
1388
1424
  key: 6,
1389
1425
  to: I.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1390
- }, [I.value.style.chart.legend.show ? (S(), g("div", {
1426
+ }, [I.value.style.chart.legend.show ? (S(), _("div", {
1391
1427
  key: 0,
1392
1428
  ref_key: "chartLegend",
1393
- ref: Ht,
1394
- class: b({ "vue-ui-nested-donuts-legend": Un.value.length > 1 })
1395
- }, [T(e.$slots, "legend", { legend: Un.value }, () => [(S(!0), g(f, null, w(Un.value, (e, n) => (S(), m(je, {
1396
- key: `legend_${n}_${qt.value}`,
1429
+ ref: Wt,
1430
+ class: Be({ "vue-ui-nested-donuts-legend": Gn.value.length > 1 })
1431
+ }, [T(e.$slots, "legend", { legend: Gn.value }, () => [(S(!0), _(p, null, w(Gn.value, (e, n) => (S(), h(Me, {
1432
+ key: `legend_${n}_${Yt.value}`,
1397
1433
  legendSet: e,
1398
- config: Wn.value,
1434
+ config: Kn.value,
1399
1435
  isCursorPointer: L.value,
1400
1436
  onClickMarker: t[0] ||= ({ legend: e }) => Y(e)
1401
1437
  }, {
1402
- legendTitle: O(({ titleSet: e }) => [e[0] && e[0].arcOf ? (S(), g("div", St, E(e[0].arcOf), 1)) : h("", !0)]),
1403
- item: O(({ legend: e, index: t }) => [_("div", {
1438
+ legendTitle: O(({ titleSet: e }) => [e[0] && e[0].arcOf ? (S(), _("div", wt, E(e[0].arcOf), 1)) : g("", !0)]),
1439
+ item: O(({ legend: e, index: t }) => [v("div", {
1404
1440
  onClick: (t) => Y(e),
1405
- style: ze(`opacity:${W.value.includes(e.id) ? .5 : 1}`)
1406
- }, E(e.display), 13, Ct)]),
1407
- legendToggle: O(() => [e.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !D(sn) ? (S(), m(Ee, {
1441
+ style: Ve(`opacity:${W.value.includes(e.id) ? .5 : 1}`)
1442
+ }, E(e.display), 13, Tt)]),
1443
+ legendToggle: O(() => [e.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !D(ln) ? (S(), h(De, {
1408
1444
  key: `toggle-${n}`,
1409
1445
  backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
1410
1446
  color: I.value.style.chart.legend.selectAllToggle.color,
1411
1447
  fontSize: I.value.style.chart.legend.fontSize,
1412
1448
  checked: e.some((e) => W.value.includes(e.id)),
1413
1449
  isCursorPointer: L.value,
1414
- onToggle: (t) => On(e)
1450
+ onToggle: (t) => An(e)
1415
1451
  }, null, 8, [
1416
1452
  "backgroundColor",
1417
1453
  "color",
@@ -1419,43 +1455,43 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1419
1455
  "checked",
1420
1456
  "isCursorPointer",
1421
1457
  "onToggle"
1422
- ])) : h("", !0)]),
1458
+ ])) : g("", !0)]),
1423
1459
  _: 2
1424
1460
  }, 1032, [
1425
1461
  "legendSet",
1426
1462
  "config",
1427
1463
  "isCursorPointer"
1428
- ]))), 128))], !0)], 2)) : h("", !0)], 8, ["to"])) : h("", !0),
1429
- e.$slots.source ? (S(), g("div", {
1464
+ ]))), 128))], !0)], 2)) : g("", !0)], 8, ["to"])) : g("", !0),
1465
+ e.$slots.source ? (S(), _("div", {
1430
1466
  key: 7,
1431
1467
  ref_key: "source",
1432
- ref: Ut,
1468
+ ref: Gt,
1433
1469
  dir: "auto"
1434
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1435
- It.value && I.value.userOptions.buttons.table ? (S(), m(He(nr.value.component), Le({ key: 8 }, nr.value.props, {
1470
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : g("", !0),
1471
+ Rt.value && I.value.userOptions.buttons.table ? (S(), h(We(ir.value.component), Re({ key: 8 }, ir.value.props, {
1436
1472
  ref_key: "tableUnit",
1437
- ref: Xt,
1438
- onClose: rr
1439
- }), Pe({
1440
- content: O(() => [(S(), m(D(Ot), {
1441
- key: `table_${Kt.value}`,
1442
- colNames: Kn.value.colNames,
1443
- head: Kn.value.head,
1444
- body: Kn.value.body,
1445
- config: Kn.value.config,
1446
- title: I.value.table.useDialog ? "" : nr.value.title,
1473
+ ref: Qt,
1474
+ onClose: ar
1475
+ }), Fe({
1476
+ content: O(() => [(S(), h(D(At), {
1477
+ key: `table_${Jt.value}`,
1478
+ colNames: Jn.value.colNames,
1479
+ head: Jn.value.head,
1480
+ body: Jn.value.body,
1481
+ config: Jn.value.config,
1482
+ title: I.value.table.useDialog ? "" : ir.value.title,
1447
1483
  withCloseButton: !I.value.table.useDialog,
1448
1484
  isCursorPointer: L.value,
1449
- onClose: rr
1485
+ onClose: ar
1450
1486
  }, {
1451
- th: O(({ th: e }) => [_("div", {
1487
+ th: O(({ th: e }) => [v("div", {
1452
1488
  innerHTML: e,
1453
1489
  style: {
1454
1490
  display: "flex",
1455
1491
  "align-items": "center"
1456
1492
  }
1457
- }, null, 8, wt)]),
1458
- td: O(({ td: e }) => [Fe(E(e.name || e), 1)]),
1493
+ }, null, 8, Et)]),
1494
+ td: O(({ td: e }) => [Ie(E(e.name || e), 1)]),
1459
1495
  _: 1
1460
1496
  }, 8, [
1461
1497
  "colNames",
@@ -1469,24 +1505,24 @@ var Je = /* @__PURE__ */ e({ default: () => Tt }), Ye = ["id"], Xe = ["id"], Ze
1469
1505
  _: 2
1470
1506
  }, [I.value.table.useDialog ? {
1471
1507
  name: "title",
1472
- fn: O(() => [Fe(E(nr.value.title), 1)]),
1508
+ fn: O(() => [Ie(E(ir.value.title), 1)]),
1473
1509
  key: "0"
1474
1510
  } : void 0, I.value.table.useDialog ? {
1475
1511
  name: "actions",
1476
- fn: O(() => [_("button", {
1512
+ fn: O(() => [v("button", {
1477
1513
  tabindex: "0",
1478
1514
  class: "vue-ui-user-options-button",
1479
- onClick: t[1] ||= (e) => Gn(I.value.userOptions.callbacks.csv),
1480
- style: ze({ cursor: L.value ? "pointer" : "default" })
1481
- }, [Ie(D(Et), {
1515
+ onClick: t[1] ||= (e) => qn(I.value.userOptions.callbacks.csv),
1516
+ style: Ve({ cursor: L.value ? "pointer" : "default" })
1517
+ }, [Le(D(Ot), {
1482
1518
  name: "fileCsv",
1483
- stroke: nr.value.props.color
1519
+ stroke: ir.value.props.color
1484
1520
  }, null, 8, ["stroke"])], 4)]),
1485
1521
  key: "1"
1486
- } : void 0]), 1040)) : h("", !0),
1487
- T(e.$slots, "skeleton", {}, () => [D(sn) ? (S(), m(ge, { key: 0 })) : h("", !0)], !0)
1488
- ], 46, Ye));
1522
+ } : void 0]), 1040)) : g("", !0),
1523
+ T(e.$slots, "skeleton", {}, () => [D(ln) ? (S(), h(_e, { key: 0 })) : g("", !0)], !0)
1524
+ ], 46, Ze));
1489
1525
  }
1490
- }, [["__scopeId", "data-v-24615b3d"]]);
1526
+ }, [["__scopeId", "data-v-eed076c6"]]);
1491
1527
  //#endregion
1492
- export { Je as n, Tt as t };
1528
+ export { Xe as n, Dt as t };