vue-data-ui 3.2.7 → 3.3.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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
  95. package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
  97. package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
  99. package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
  100. package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
  101. package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
  102. package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
  105. package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
  106. package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
  108. package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
  111. package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
  114. package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
  115. package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
  116. package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
  117. package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
  118. package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
  121. package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
  123. package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
  124. package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
  125. package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
  127. package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
  128. package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
  132. package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
  133. package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
  134. package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
  135. package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
  136. package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
  137. package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
  138. package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
  139. package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
  140. package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
  142. package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
  143. package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
  144. package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
  151. package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
  152. package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
  154. package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-DH8opsJv.js +0 -325
  157. package/dist/vue-ui-flow-B72CBzC3.js +0 -909
  158. package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
  159. package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
@@ -1,23 +1,24 @@
1
- import { defineAsyncComponent as z, computed as _, ref as c, toRefs as tl, watch as te, onMounted as ll, shallowRef as gt, onBeforeUnmount as al, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ve, normalizeClass as M, createBlock as B, createCommentVNode as k, createElementVNode as p, createVNode as Ve, createSlots as mt, withCtx as C, renderSlot as x, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as F, withDirectives as wt, vShow as kt, Teleport as ol, resolveDynamicComponent as sl, mergeProps as ul, createTextVNode as $t, nextTick as Ct } from "vue";
2
- import { c as nl, t as rl, b as il, p as ze, B as Me, o as dl, f as K, e as vl, J as E, h as cl, n as Be, d as S, X as hl, s as fl, O as Lt, v as Ee, w as Q, a as le, z as _t, x as pl, y as yl, A as bl, I as xt, q as Re } from "./lib-BEpWEyMm.js";
3
- import { t as gl, u as ml } from "./useResponsive-DfdjqQps.js";
4
- import { u as wl, a as At } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as kl, B as $l } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Cl } from "./usePrinter-w23K-ezx.js";
7
- import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as _l } from "./useChartAccessibility-9icAAmYg.js";
9
- import xl from "./img-DjWwQXVS.js";
10
- import Al from "./Title-DG2nloSB.js";
11
- import { t as Tl } from "./themes-Dw-dDudK.js";
12
- import Ol from "./Legend-BpoFJ8fc.js";
13
- import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "height"], Pl = ["id"], Vl = ["offset", "stop-color"], zl = ["offset", "stop-opacity"], Ml = ["id"], Bl = ["id"], El = ["id"], Rl = ["flood-color"], Ul = ["id", "d"], Gl = ["d", "fill", "stroke", "stroke-width", "filter"], Yl = ["d", "fill", "stroke", "stroke-width"], Wl = { key: 1 }, Xl = ["d", "fill"], ql = { key: 2 }, Hl = ["font-size", "font-weight", "fill", "dy"], Jl = ["href"], Kl = ["x", "y", "font-size", "font-weight", "fill"], Ql = { key: 3 }, Zl = ["filter"], jl = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ea = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ta = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], la = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], aa = {
1
+ import { defineAsyncComponent as z, computed as b, ref as c, toRefs as rl, watch as le, onMounted as il, shallowRef as mt, onBeforeUnmount as dl, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as ce, normalizeClass as M, createBlock as B, createCommentVNode as $, createElementVNode as y, createVNode as Ve, createSlots as wt, withCtx as L, renderSlot as _, normalizeProps as H, guardReactiveProps as J, Fragment as A, renderList as T, toDisplayString as D, withDirectives as kt, vShow as $t, Teleport as vl, resolveDynamicComponent as cl, mergeProps as hl, createTextVNode as Ct, nextTick as Lt } from "vue";
2
+ import { c as fl, t as pl, b as yl, p as ze, B as Me, o as gl, f as K, e as bl, J as E, h as ml, n as Be, a as ae, d as O, X as wl, s as kl, O as xt, v as Ee, w as Q, z as _t, x as $l, y as Cl, A as Ll, I as At, q as Re } from "./lib-GIYcnm0E.js";
3
+ import { t as xl, u as _l } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Al, a as Tt } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as Tl, B as Sl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Ol } from "./usePrinter-DYRFiw7X.js";
7
+ import { u as Fl } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as Il } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Nl } from "./useChartAccessibility-9icAAmYg.js";
10
+ import Dl from "./img-6wPuVVtk.js";
11
+ import Pl from "./Title-D17CJXko.js";
12
+ import { t as Vl } from "./themes-Dw-dDudK.js";
13
+ import zl from "./Legend-DsogCeTb.js";
14
+ import { _ as Ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ const Bl = ["id"], El = ["id"], Rl = ["xmlns", "viewBox"], Ul = ["width", "height"], Gl = ["id"], Yl = ["offset", "stop-color"], Wl = ["offset", "stop-opacity"], Xl = ["id"], ql = ["id"], Hl = ["id"], Jl = ["flood-color"], Kl = ["id", "d"], Ql = ["d", "fill", "stroke", "stroke-width", "filter"], Zl = ["d", "fill", "stroke", "stroke-width"], jl = { key: 1 }, ea = ["d", "fill"], ta = { key: 2 }, la = ["font-size", "font-weight", "fill", "dy"], aa = ["href"], oa = ["x", "y", "font-size", "font-weight", "fill"], sa = { key: 3 }, ua = ["filter"], na = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ra = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], ia = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], da = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], va = {
15
16
  key: 4,
16
17
  class: "vue-data-ui-watermark"
17
- }, oa = ["id"], sa = {
18
+ }, ca = ["id"], ha = {
18
19
  key: 0,
19
20
  class: "vue-ui-nested-donuts-legend-title"
20
- }, ua = ["onClick"], na = ["innerHTML"], ra = {
21
+ }, fa = ["onClick"], pa = ["innerHTML"], ya = {
21
22
  __name: "vue-ui-nested-donuts",
22
23
  props: {
23
24
  config: {
@@ -34,19 +35,19 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
34
35
  }
35
36
  },
36
37
  emits: ["selectLegend", "selectDatapoint"],
37
- setup(Tt, { expose: Ot, emit: Ft }) {
38
- const St = z(() => import("./Tooltip-BOXz8skU.js")), Nt = z(() => import("./BaseIcon-Bz-1GQhu.js")), It = z(() => import("./vue-ui-accordion-CeMTgpl0.js")), Dt = z(() => import("./DataTable-BvjacRbw.js")), Pt = z(() => import("./UserOptions-DsTgvAok.js")), Vt = z(() => import("./PenAndPaper-CR8q353D.js")), zt = z(() => import("./PackageVersion-Cwrh45ON.js")), Mt = z(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_nested_donuts: Bt } = wl(), g = Tt, ce = _({
38
+ setup(St, { expose: Ot, emit: Ft }) {
39
+ const It = z(() => import("./Tooltip-CtVdvbZi.js")), Nt = z(() => import("./BaseIcon-CtqN7W_g.js")), Dt = z(() => import("./vue-ui-accordion-Dch9YrCi.js")), Pt = z(() => import("./DataTable-BeI6gYJX.js")), Vt = z(() => import("./UserOptions-B3vCIe-u.js")), zt = z(() => import("./PenAndPaper-BxbYiPy4.js")), Mt = z(() => import("./PackageVersion-C9oklnuy.js")), Bt = z(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_nested_donuts: Et } = Al(), w = St, he = b({
39
40
  get() {
40
- return !!g.dataset && g.dataset.length;
41
+ return !!w.dataset && w.dataset.length;
41
42
  },
42
- set(l) {
43
- return l;
43
+ set(t) {
44
+ return t;
44
45
  }
45
- }), f = c(nl()), he = c(!1), fe = c(""), pe = c(null), Ue = c(0), I = c(null), Ge = c(null), ye = c(null), Ye = c(null), We = c(null), Xe = c(0), qe = c(0), He = c(0), R = c(!0), U = c([]), Z = c([]), Je = c(!1), j = c(null), be = c(null), G = c(!1);
46
- function Ke(l) {
47
- G.value = l, Ue.value += 1;
46
+ }), p = c(fl()), fe = c(!1), pe = c(""), ye = c(null), Ue = c(0), I = c(null), Ge = c(null), ge = c(null), Ye = c(null), We = c(null), Xe = c(0), qe = c(0), He = c(0), R = c(!0), U = c([]), Z = c([]), Je = c(!1), j = c(null), be = c(null), G = c(!1);
47
+ function Ke(t) {
48
+ G.value = t, Ue.value += 1;
48
49
  }
49
- const e = c(ke()), Qe = {
50
+ const e = c($e()), Qe = {
50
51
  name: "",
51
52
  series: [
52
53
  {
@@ -65,17 +66,17 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
65
66
  color: "#CACACA"
66
67
  }
67
68
  ]
68
- }, { loading: ge, FINAL_DATASET: Y, manualLoading: me } = kl({
69
- ...tl(g),
69
+ }, { loading: me, FINAL_DATASET: Y, manualLoading: we } = Tl({
70
+ ...rl(w),
70
71
  FINAL_CONFIG: e,
71
- prepareConfig: ke,
72
+ prepareConfig: $e,
72
73
  callback: () => {
73
74
  Promise.resolve().then(async () => {
74
75
  await tt();
75
76
  });
76
77
  },
77
78
  skeletonDataset: [Qe, Qe],
78
- skeletonConfig: rl({
79
+ skeletonConfig: pl({
79
80
  defaultConfig: e.value,
80
81
  userConfig: {
81
82
  useCssAnimation: !1,
@@ -101,102 +102,102 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
101
102
  }
102
103
  }
103
104
  })
104
- }), { userOptionsVisible: we, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Ll({ config: e.value }), { svgRef: ae } = _l({
105
+ }), { userOptionsVisible: ke, setUserOptionsVisibility: Ze, keepUserOptionState: je } = Il({ config: e.value }), { svgRef: ee } = Nl({
105
106
  config: e.value.style.chart.title
106
107
  });
107
- function ke() {
108
- const l = At({
109
- userConfig: g.config,
110
- defaultConfig: Bt
108
+ function $e() {
109
+ const t = Tt({
110
+ userConfig: w.config,
111
+ defaultConfig: Et
111
112
  });
112
113
  let s = {};
113
- return l.theme ? s = {
114
- ...At({
115
- userConfig: Tl.vue_ui_nested_donuts[l.theme] || g.config,
116
- defaultConfig: l
114
+ return t.theme ? s = {
115
+ ...Tt({
116
+ userConfig: Vl.vue_ui_nested_donuts[t.theme] || w.config,
117
+ defaultConfig: t
117
118
  }),
118
- customPalette: il[l.theme] || ze
119
- } : s = l, g.config && Me(g.config, "events.datapointEnter") ? s.events.datapointEnter = g.config.events.datapointEnter : s.events.datapointEnter = null, g.config && Me(g.config, "events.datapointLeave") ? s.events.datapointLeave = g.config.events.datapointLeave : s.events.datapointLeave = null, g.config && Me(g.config, "events.datapointClick") ? s.events.datapointClick = g.config.events.datapointClick : s.events.datapointClick = null, s;
119
+ customPalette: yl[t.theme] || ze
120
+ } : s = t, w.config && Me(w.config, "events.datapointEnter") ? s.events.datapointEnter = w.config.events.datapointEnter : s.events.datapointEnter = null, w.config && Me(w.config, "events.datapointLeave") ? s.events.datapointLeave = w.config.events.datapointLeave : s.events.datapointLeave = null, w.config && Me(w.config, "events.datapointClick") ? s.events.datapointClick = w.config.events.datapointClick : s.events.datapointClick = null, s;
120
121
  }
121
- te(
122
- () => g.config,
123
- (l) => {
124
- ge.value || (e.value = ke()), we.value = !e.value.userOptions.showOnChartHover, lt(), Xe.value += 1, qe.value += 1, He.value += 1, $.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
122
+ le(
123
+ () => w.config,
124
+ (t) => {
125
+ me.value || (e.value = $e()), ke.value = !e.value.userOptions.showOnChartHover, lt(), Xe.value += 1, qe.value += 1, He.value += 1, C.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show, h.value.width = e.value.style.chart.width, h.value.height = e.value.style.chart.height;
125
126
  },
126
127
  { deep: !0 }
127
128
  );
128
- const et = _(() => {
129
- const { top: l, right: s, bottom: a, left: o } = e.value.style.chart.padding;
129
+ const et = b(() => {
130
+ const { top: t, right: s, bottom: a, left: o } = e.value.style.chart.padding;
130
131
  return {
131
- css: `padding:${l}px ${s}px ${a}px ${o}px`,
132
- top: l,
132
+ css: `padding:${t}px ${s}px ${a}px ${o}px`,
133
+ top: t,
133
134
  right: s,
134
135
  bottom: a,
135
136
  left: o
136
137
  };
137
138
  });
138
- function Et(l, s = 1e3, a = 50) {
139
+ function Rt(t, s = 1e3, a = 50) {
139
140
  return new Promise((o) => {
140
- const t = l.length;
141
- U.value = Array(t).fill(0), Z.value = [];
141
+ const l = t.length;
142
+ U.value = Array(l).fill(0), Z.value = [];
142
143
  let n = 0;
143
- l.forEach((v, y) => {
144
+ t.forEach((v, f) => {
144
145
  setTimeout(() => {
145
- const w = performance.now();
146
- function d(b) {
147
- const O = Math.min((b - w) / s, 1), Oe = xt(O), Fe = v * Oe;
148
- U.value[y] = Fe, U.value = [...U.value];
149
- const ie = [];
150
- let Se = 0;
151
- g.dataset.forEach((de, Ne) => {
152
- const Qt = Re(de.series.reduce(
153
- (De, Pe) => De + Re(E(Pe.values).reduce((jt, el) => jt + el, 0)),
146
+ const m = performance.now();
147
+ function d(g) {
148
+ const S = Math.min((g - m) / s, 1), Se = At(S), Oe = v * Se;
149
+ U.value[f] = Oe, U.value = [...U.value];
150
+ const de = [];
151
+ let Fe = 0;
152
+ w.dataset.forEach((ve, Ie) => {
153
+ const ol = Re(ve.series.reduce(
154
+ (De, Pe) => De + Re(E(Pe.values).reduce((ul, nl) => ul + nl, 0)),
154
155
  0
155
- )), Zt = Re(U.value.slice(Se, Se + de.series.length).reduce((De, Pe) => De + Pe, 0)), Ie = Qt - Zt;
156
- Ie > Number.MIN_VALUE && ie.push({
156
+ )), sl = Re(U.value.slice(Fe, Fe + ve.series.length).reduce((De, Pe) => De + Pe, 0)), Ne = ol - sl;
157
+ Ne > Number.MIN_VALUE && de.push({
157
158
  name: "__ghost__",
158
- arcOf: de.name,
159
- arcOfId: `${f.value}_${Ne}`,
160
- id: `ghost_${f.value}_${Ne}`,
159
+ arcOf: ve.name,
160
+ arcOfId: `${p.value}_${Ie}`,
161
+ id: `ghost_${p.value}_${Ie}`,
161
162
  seriesIndex: -1,
162
- datasetIndex: Ne,
163
+ datasetIndex: Ie,
163
164
  color: "transparent",
164
- value: Ie,
165
- fullValue: Ie,
165
+ value: Ne,
166
+ fullValue: Ne,
166
167
  absoluteValues: [],
167
168
  ghost: !0
168
- }), Se += de.series.length;
169
- }), Z.value = ie, O < 1 ? requestAnimationFrame(d) : (n += 1, n === t && o());
169
+ }), Fe += ve.series.length;
170
+ }), Z.value = de, S < 1 ? requestAnimationFrame(d) : (n += 1, n === l && o());
170
171
  }
171
172
  requestAnimationFrame(d);
172
- }, y * a);
173
+ }, f * a);
173
174
  });
174
175
  });
175
176
  }
176
177
  async function tt() {
177
178
  if (e.value.startAnimation?.show) {
178
179
  const s = Y.value.flatMap((a) => a.series).map(
179
- (a) => E(a.values).reduce((o, t) => o + t, 0)
180
+ (a) => E(a.values).reduce((o, l) => o + l, 0)
180
181
  );
181
182
  U.value = s.map(() => 0), R.value = !0, Z.value = Y.value.map((a, o) => {
182
- const t = a.series.reduce(
183
- (n, v) => n + E(v.values).reduce((y, w) => y + w, 0),
183
+ const l = a.series.reduce(
184
+ (n, v) => n + E(v.values).reduce((f, m) => f + m, 0),
184
185
  0
185
186
  );
186
187
  return {
187
188
  name: "__ghost__",
188
189
  arcOf: a.name,
189
- arcOfId: `${f.value}_${o}`,
190
- id: `ghost_${f.value}_${o}`,
190
+ arcOfId: `${p.value}_${o}`,
191
+ id: `ghost_${p.value}_${o}`,
191
192
  seriesIndex: -1,
192
193
  datasetIndex: o,
193
194
  color: "transparent",
194
- value: t,
195
- fullValue: t,
195
+ value: l,
196
+ fullValue: l,
196
197
  absoluteValues: [],
197
198
  ghost: !0
198
199
  };
199
- }), await Ct(), Et(
200
+ }), await Lt(), Rt(
200
201
  s,
201
202
  e.value.startAnimation.durationMs,
202
203
  e.value.startAnimation.staggerMs
@@ -206,21 +207,21 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
206
207
  } else
207
208
  R.value = !1;
208
209
  }
209
- ll(async () => {
210
+ il(async () => {
210
211
  Je.value = !0, lt(), await tt();
211
212
  });
212
- const P = gt(null), W = gt(null), X = _(() => !!e.value.debug);
213
+ const P = mt(null), W = mt(null), X = b(() => !!e.value.debug);
213
214
  function lt() {
214
- if (dl(g.dataset) ? (K({
215
+ if (gl(w.dataset) ? (K({
215
216
  componentName: "VueUiNestedDonuts",
216
217
  type: "dataset",
217
218
  debug: X.value
218
- }), ce.value = !1, me.value = !0) : me.value = e.value.loading, e.value.responsive) {
219
- const l = gl(() => {
220
- const { width: s, height: a } = ml({
219
+ }), he.value = !1, we.value = !0) : we.value = e.value.loading, e.value.responsive) {
220
+ const t = xl(() => {
221
+ const { width: s, height: a } = _l({
221
222
  chart: I.value,
222
223
  title: e.value.style.chart.title.text ? Ge.value : null,
223
- legend: e.value.style.chart.legend.show ? ye.value : null,
224
+ legend: e.value.style.chart.legend.show ? ge.value : null,
224
225
  source: Ye.value,
225
226
  noTitle: We.value,
226
227
  padding: et.value
@@ -229,25 +230,25 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
229
230
  h.value.width = s, h.value.height = a;
230
231
  });
231
232
  });
232
- P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect()), P.value = new ResizeObserver(l), W.value = I.value.parentNode, P.value.observe(W.value);
233
+ P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect()), P.value = new ResizeObserver(t), W.value = I.value.parentNode, P.value.observe(W.value);
233
234
  }
234
235
  }
235
- al(() => {
236
+ dl(() => {
236
237
  P.value && (W.value && P.value.unobserve(W.value), P.value.disconnect());
237
238
  });
238
- const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } = Cl({
239
- elementId: `nested_donuts_${f.value}`,
239
+ const { isPrinting: at, isImaging: ot, generatePdf: st, generateImage: ut } = Ol({
240
+ elementId: `nested_donuts_${p.value}`,
240
241
  fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
241
242
  options: e.value.userOptions.print
242
- }), Rt = _(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ut = _(() => vl(e.value.customPalette)), $ = c({
243
+ }), Ut = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), Gt = b(() => bl(e.value.customPalette)), C = c({
243
244
  dataLabels: {
244
245
  show: e.value.style.chart.layout.labels.dataLabels.show
245
246
  },
246
247
  showTable: e.value.table.show,
247
248
  showTooltip: e.value.style.chart.tooltip.show
248
249
  });
249
- te(e, () => {
250
- $.value = {
250
+ le(e, () => {
251
+ C.value = {
251
252
  dataLabels: {
252
253
  show: e.value.style.chart.layout.labels.dataLabels.show
253
254
  },
@@ -259,26 +260,26 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
259
260
  width: e.value.style.chart.width,
260
261
  height: e.value.style.chart.height
261
262
  }), nt = Ft;
262
- function Gt({ datapoint: l, index: s, seriesIndex: a }) {
263
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a }), nt("selectDatapoint", { datapoint: l, index: s });
263
+ function Yt({ datapoint: t, index: s, seriesIndex: a }) {
264
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), nt("selectDatapoint", { datapoint: t, index: s });
264
265
  }
265
266
  function rt({
266
- from: l,
267
+ from: t,
267
268
  to: s,
268
269
  duration: a,
269
270
  onUpdate: o,
270
- onDone: t,
271
- easing: n = xt
271
+ onDone: l,
272
+ easing: n = At
272
273
  }) {
273
274
  const v = performance.now();
274
- function y(w) {
275
- const d = Math.min((w - v) / a, 1), b = n(d), O = l + (s - l) * b;
276
- o(O, d), d < 1 ? requestAnimationFrame(y) : (o(s, 1), t && t());
275
+ function f(m) {
276
+ const d = Math.min((m - v) / a, 1), g = n(d), S = t + (s - t) * g;
277
+ o(S, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), l && l());
277
278
  }
278
- requestAnimationFrame(y);
279
+ requestAnimationFrame(f);
279
280
  }
280
- const L = c([]), N = _(() => {
281
- ge.value, Y.value.forEach((s, a) => {
281
+ const x = c([]), F = b(() => {
282
+ me.value, Y.value.forEach((s, a) => {
282
283
  [null, void 0].includes(s.name) && K({
283
284
  componentName: "VueUiNestedDonuts",
284
285
  type: "datasetSerieAttribute",
@@ -296,127 +297,127 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
296
297
  type: "datasetAttributeEmpty",
297
298
  property: `series at index ${a}`,
298
299
  debug: X.value
299
- }) : s.series.forEach((o, t) => {
300
+ }) : s.series.forEach((o, l) => {
300
301
  [null, void 0].includes(o.name) && K({
301
302
  componentName: "VueUiNestedDonuts",
302
303
  type: "datasetSerieAttribute",
303
304
  property: "name",
304
- index: t,
305
+ index: l,
305
306
  key: "serie",
306
307
  debug: X.value
307
308
  }), [null, void 0].includes(o.values) && K({
308
309
  componentName: "VueUiNestedDonuts",
309
310
  type: "datasetSerieAttribute",
310
311
  property: "values",
311
- index: t,
312
+ index: l,
312
313
  key: "serie",
313
314
  debug: X.value
314
315
  });
315
316
  });
316
317
  });
317
- let l = 0;
318
+ let t = 0;
318
319
  return Y.value.map((s, a) => ({
319
320
  ...s,
320
- total: s.series.filter((o) => !L.value.includes(o.id)).map((o) => E(o.values).reduce((t, n) => t + n, 0)).reduce((o, t) => o + t, 0),
321
+ total: s.series.filter((o) => !x.value.includes(o.id)).map((o) => E(o.values).reduce((l, n) => l + n, 0)).reduce((o, l) => o + l, 0),
321
322
  datasetIndex: a,
322
- id: `${f.value}_${a}`,
323
- series: s.series.map((o, t) => {
324
- const n = E(o.values).reduce((v, y) => v + y, 0);
323
+ id: `${p.value}_${a}`,
324
+ series: s.series.map((o, l) => {
325
+ const n = E(o.values).reduce((v, f) => v + f, 0);
325
326
  return {
326
327
  name: o.name,
327
328
  arcOf: s.name,
328
- arcOfId: `${f.value}_${a}`,
329
- id: `${f.value}_${a}_${t}`,
330
- seriesIndex: t,
329
+ arcOfId: `${p.value}_${a}`,
330
+ id: `${p.value}_${a}_${l}`,
331
+ seriesIndex: l,
331
332
  datasetIndex: a,
332
- color: cl(o.color) || Ut.value[t] || ze[t % ze.length],
333
- value: R.value ? U.value[l++] ?? 0 : n,
333
+ color: ml(o.color) || Gt.value[l] || ze[l % ze.length],
334
+ value: R.value ? U.value[t++] ?? 0 : n,
334
335
  absoluteValues: o.values || []
335
336
  };
336
337
  })
337
338
  }));
338
339
  });
339
- te(() => g.dataset, (l) => {
340
- Array.isArray(l) && l.length > 0 && (me.value = !1);
340
+ le(() => w.dataset, (t) => {
341
+ Array.isArray(t) && t.length > 0 && (we.value = !1);
341
342
  }, { immediate: !0 });
342
- const D = _(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = _(() => [...N.value].map((l, s) => {
343
- const a = l.series.filter((o) => !L.value.includes(o.id)).map((o) => o.value).reduce((o, t) => o + t, 0);
343
+ const N = b(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), it = b(() => [...F.value].map((t, s) => {
344
+ const a = t.series.filter((o) => !x.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
344
345
  return {
345
- ...l,
346
+ ...t,
346
347
  total: a,
347
- series: l.series.filter((o) => !L.value.includes(o.id)).map((o) => ({
348
+ series: t.series.filter((o) => !x.value.includes(o.id)).map((o) => ({
348
349
  ...o,
349
350
  proportion: o.value / a
350
351
  }))
351
352
  };
352
353
  }));
353
- function Yt(l, s, a) {
354
+ function Wt(t, s, a) {
354
355
  let o = 0;
355
- for (let t = 0; t < l.length; t += 1)
356
- a.includes(l[t]) && (o += 1);
356
+ for (let l = 0; l < t.length; l += 1)
357
+ a.includes(t[l]) && (o += 1);
357
358
  return o < s;
358
359
  }
359
- const m = c(it.value);
360
- te(
360
+ const k = c(it.value);
361
+ le(
361
362
  () => it.value,
362
- (l) => m.value = l
363
+ (t) => k.value = t
363
364
  );
364
- function $e(l) {
365
- nt("selectLegend", l);
366
- const s = g.dataset.flatMap(
367
- (d, b) => d.series.map((O, Oe) => ({
368
- value: E(O.values).reduce((Fe, ie) => Fe + ie, 0),
369
- id: `${f.value}_${b}_${Oe}`,
370
- arcOfId: `${f.value}_${b}`
365
+ function Ce(t) {
366
+ nt("selectLegend", t);
367
+ const s = w.dataset.flatMap(
368
+ (d, g) => d.series.map((S, Se) => ({
369
+ value: E(S.values).reduce((Oe, de) => Oe + de, 0),
370
+ id: `${p.value}_${g}_${Se}`,
371
+ arcOfId: `${p.value}_${g}`
371
372
  }))
372
- ).find((d) => d.id === l.id);
373
+ ).find((d) => d.id === t.id);
373
374
  if (!s) return;
374
- const a = N.value.flatMap((d) => d.series).find((d) => d.id === l.id)?.value ?? 0, o = m.value.flatMap((d) => d.series).find((d) => d.id === l.id);
375
+ const a = F.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = k.value.flatMap((d) => d.series).find((d) => d.id === t.id);
375
376
  let n = o ? o.value : 0;
376
- const v = N.value.find(
377
+ const v = F.value.find(
377
378
  (d) => d.id === s.arcOfId
378
379
  );
379
380
  if (!v) return;
380
- const y = v.series.map((d) => d.id), w = Yt(
381
- y,
382
- y.length - 1,
383
- L.value
381
+ const f = v.series.map((d) => d.id), m = Wt(
382
+ f,
383
+ f.length - 1,
384
+ x.value
384
385
  );
385
- L.value.includes(l.id) ? (L.value = L.value.filter((d) => d !== l.id), e.value.serieToggleAnimation.show ? rt({
386
+ x.value.includes(t.id) ? (x.value = x.value.filter((d) => d !== t.id), e.value.serieToggleAnimation.show ? rt({
386
387
  from: n,
387
388
  to: a,
388
389
  duration: e.value.serieToggleAnimation.durationMs,
389
390
  onUpdate: (d) => {
390
- m.value = m.value.map((b) => ({
391
- ...b,
392
- series: b.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
391
+ k.value = k.value.map((g) => ({
392
+ ...g,
393
+ series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
393
394
  }));
394
395
  }
395
- }) : m.value = m.value.map((d) => ({
396
+ }) : k.value = k.value.map((d) => ({
396
397
  ...d,
397
- series: d.series.map((b) => b.id === l.id ? { ...b, value: a } : b)
398
- }))) : w && (e.value.serieToggleAnimation.show ? rt({
398
+ series: d.series.map((g) => g.id === t.id ? { ...g, value: a } : g)
399
+ }))) : m && (e.value.serieToggleAnimation.show ? rt({
399
400
  from: n,
400
401
  to: 0,
401
402
  duration: e.value.serieToggleAnimation.durationMs,
402
403
  onUpdate: (d) => {
403
- m.value = m.value.map((b) => ({
404
- ...b,
405
- series: b.series.map((O) => O.id === l.id ? { ...O, value: d } : O)
404
+ k.value = k.value.map((g) => ({
405
+ ...g,
406
+ series: g.series.map((S) => S.id === t.id ? { ...S, value: d } : S)
406
407
  }));
407
408
  },
408
409
  onDone: () => {
409
- L.value.push(l.id);
410
+ x.value.push(t.id);
410
411
  }
411
- }) : (m.value = m.value.map((d) => ({
412
+ }) : (k.value = k.value.map((d) => ({
412
413
  ...d,
413
- series: d.series.map((b) => b.id === l.id ? { ...b, value: 0 } : b)
414
- })), L.value.push(l.id)));
414
+ series: d.series.map((g) => g.id === t.id ? { ...g, value: 0 } : g)
415
+ })), x.value.push(t.id)));
415
416
  }
416
- const oe = _(() => D.value / N.value.length * e.value.style.chart.layout.donut.spacingRatio), dt = _(() => m.value.map((l, s) => D.value - s * D.value / N.value.length)), q = _(() => m.value.map((l, s) => {
417
- const a = Math.abs(l.series.map((w) => w.value).reduce((w, d) => w + d, 0)) > 0, o = D.value - s * D.value / m.value.length, t = R.value ? Z.value.find((w) => w.datasetIndex === s) : null, n = [...l.series, ...t ? [t] : []].map((w) => ({
418
- ...w,
419
- value: w.value < 1e-11 ? Number.MIN_VALUE : w.value
417
+ const oe = b(() => N.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio), dt = b(() => k.value.map((t, s) => N.value - s * N.value / F.value.length)), q = b(() => k.value.map((t, s) => {
418
+ const a = Math.abs(t.series.map((m) => m.value).reduce((m, d) => m + d, 0)) > 0, o = N.value - s * N.value / k.value.length, l = R.value ? Z.value.find((m) => m.datasetIndex === s) : null, n = [...t.series, ...l ? [l] : []].map((m) => ({
419
+ ...m,
420
+ value: m.value < 1e-11 ? Number.MIN_VALUE : m.value
420
421
  })), v = Be(
421
422
  { series: [
422
423
  { name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
@@ -431,15 +432,15 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
431
432
  360,
432
433
  105.25,
433
434
  oe.value
434
- ), y = `M ${h.value.width / 2},${h.value.height / 2 + o}
435
+ ), f = `M ${h.value.width / 2},${h.value.height / 2 + o}
435
436
  a ${o},${o} 0 1,1 0,${-2 * o}
436
437
  a ${o},${o} 0 1,1 0,${2 * o}`;
437
438
  return {
438
- ...l,
439
+ ...t,
439
440
  hasData: a,
440
441
  radius: o,
441
442
  skeleton: v,
442
- fullCirclePath: y,
443
+ fullCirclePath: f,
443
444
  donut: Be(
444
445
  { series: n },
445
446
  h.value.width / 2,
@@ -454,58 +455,58 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
454
455
  oe.value
455
456
  )
456
457
  };
457
- })), vt = _(() => [...N.value].map((l, s) => {
458
- const a = s * D.value / N.value.length;
458
+ })), vt = b(() => [...F.value].map((t, s) => {
459
+ const a = s * N.value / F.value.length;
459
460
  return {
460
461
  sizeRatio: a,
461
462
  donut: Be(
462
463
  { series: [{ value: 1 }] },
463
464
  h.value.width / 2,
464
465
  h.value.height / 2,
465
- D.value - a,
466
- D.value - a,
466
+ N.value - a,
467
+ N.value - a,
467
468
  1.99999,
468
469
  2,
469
470
  1,
470
471
  360,
471
472
  105.25,
472
- D.value / N.value.length * e.value.style.chart.layout.donut.spacingRatio
473
+ N.value / F.value.length * e.value.style.chart.layout.donut.spacingRatio
473
474
  )[0]
474
475
  };
475
- })), ct = c(null), se = c(null), ue = c(null), Ce = c(null);
476
- function Wt({ datapoint: l, seriesIndex: s }) {
477
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), he.value = !1, ct.value = null, pe.value = null, se.value = null, ue.value = null;
476
+ })), ct = c(null), se = c(null), ue = c(null), Le = c(null);
477
+ function Xt({ datapoint: t, seriesIndex: s }) {
478
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), fe.value = !1, ct.value = null, ye.value = null, se.value = null, ue.value = null;
478
479
  }
479
- function Xt({ datapoint: l, _relativeIndex: s, seriesIndex: a }) {
480
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: a }), ct.value = l.arcOfId, se.value = l.id, ue.value = a, pe.value = l.id, Ce.value = {
481
- datapoint: l,
480
+ function qt({ datapoint: t, _relativeIndex: s, seriesIndex: a }) {
481
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ct.value = t.arcOfId, se.value = t.id, ue.value = a, ye.value = t.id, Le.value = {
482
+ datapoint: t,
482
483
  seriesIndex: a,
483
- series: m.value,
484
+ series: k.value,
484
485
  config: e.value
485
486
  };
486
487
  const o = e.value.style.chart.tooltip.customFormat;
487
- if (_t(o) && bl(
488
+ if (_t(o) && Ll(
488
489
  () => o({
489
490
  seriesIndex: a,
490
- datapoint: l,
491
- series: m.value,
491
+ datapoint: t,
492
+ series: k.value,
492
493
  config: e.value
493
494
  })
494
495
  ))
495
- fe.value = o({
496
+ pe.value = o({
496
497
  seriesIndex: a,
497
- datapoint: l,
498
- series: m.value,
498
+ datapoint: t,
499
+ series: k.value,
499
500
  config: e.value
500
501
  });
501
502
  else {
502
- let t = "";
503
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0) {
504
- const n = m.value.map((v) => v.series.find((y) => y.seriesIndex === a));
505
- n.forEach((v, y) => {
503
+ let l = "";
504
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && x.value.length === 0) {
505
+ const n = k.value.map((v) => v.series.find((f) => f.seriesIndex === a));
506
+ n.forEach((v, f) => {
506
507
  if (!v) return "";
507
- t += `
508
- <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${y < n.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
508
+ l += `
509
+ <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${f < n.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
509
510
  <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
510
511
  <svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
511
512
  <circle cx="10" cy="10" r="10" fill="${v.color}"/>
@@ -515,19 +516,19 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
515
516
  </span>
516
517
  </div>
517
518
  <span>
518
- ${e.value.style.chart.tooltip.showValue ? `<b>${le(
519
+ ${e.value.style.chart.tooltip.showValue ? `<b>${ae(
519
520
  e.value.style.chart.layout.labels.dataLabels.formatter,
520
- l.value,
521
- S({
521
+ t.value,
522
+ O({
522
523
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
523
- v: l.value,
524
+ v: t.value,
524
525
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
525
526
  r: e.value.style.chart.tooltip.roundingValue
526
527
  }),
527
- { datapoint: l, seriesIndex: a }
528
+ { datapoint: t, seriesIndex: a }
528
529
  )}
529
530
  </b>` : ""}
530
- ${e.value.style.chart.tooltip.showPercentage ? `(${S({
531
+ ${e.value.style.chart.tooltip.showPercentage ? `(${O({
531
532
  v: v.proportion * 100,
532
533
  s: "%",
533
534
  r: e.value.style.chart.tooltip.roundingPercentage
@@ -537,112 +538,128 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
537
538
  `;
538
539
  });
539
540
  } else
540
- t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.arcOf ?? ""} - ${l.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="${l.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (t += `<b>${le(
541
+ l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${ae(
541
542
  e.value.style.chart.layout.labels.dataLabels.formatter,
542
- l.value,
543
- S({
543
+ t.value,
544
+ O({
544
545
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
545
- v: l.value,
546
+ v: t.value,
546
547
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
547
548
  r: e.value.style.chart.tooltip.roundingValue
548
549
  }),
549
- { datapoint: l, seriesIndex: a }
550
- )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? t += `<span>(${S({
551
- v: l.proportion * 100,
550
+ { datapoint: t, seriesIndex: a }
551
+ )}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? l += `<span>(${O({
552
+ v: t.proportion * 100,
552
553
  s: "%",
553
554
  r: e.value.style.chart.tooltip.roundingPercentage
554
- })})</span></div>` : t += `<b>${S({
555
- v: l.proportion * 100,
555
+ })})</span></div>` : l += `<b>${O({
556
+ v: t.proportion * 100,
556
557
  s: "%",
557
558
  r: e.value.style.chart.tooltip.roundingPercentage
558
559
  })}</b></div>`);
559
- fe.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${t}</div>`;
560
+ pe.value = `<div style="font-size:${e.value.style.chart.tooltip.fontSize}px">${l}</div>`;
560
561
  }
561
- he.value = !0;
562
+ fe.value = !0;
562
563
  }
563
- function Le(l) {
564
- return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
564
+ function xe(t) {
565
+ return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
565
566
  }
566
- function ht(l, s) {
567
+ function ht(t, s) {
567
568
  if (!e.value.useBlurOnHover)
568
569
  return "";
569
- if (e.value.style.chart.tooltip.showAllItemsAtIndex && L.value.length === 0)
570
- return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${f.value})`;
571
- if (!e.value.style.chart.tooltip.showAllItemsAtIndex || L.value.length)
572
- return [null, void 0].includes(se.value) || se.value === l.id ? "" : `url(#blur_${f.value})`;
570
+ if (e.value.style.chart.tooltip.showAllItemsAtIndex && x.value.length === 0)
571
+ return [null, void 0].includes(ue.value) || ue.value === s ? "" : `url(#blur_${p.value})`;
572
+ if (!e.value.style.chart.tooltip.showAllItemsAtIndex || x.value.length)
573
+ return [null, void 0].includes(se.value) || se.value === t.id ? "" : `url(#blur_${p.value})`;
573
574
  }
574
- const _e = _(() => N.value.map((l, s) => {
575
- const a = l.series.filter(
576
- (t) => !L.value.includes(t.id)
577
- ), o = R.value ? a.map((t) => {
575
+ const ne = b(() => F.value.map((t, s) => {
576
+ const a = t.series.filter(
577
+ (l) => !x.value.includes(l.id)
578
+ ), o = R.value ? a.map((l) => {
578
579
  const n = Y.value[s].series.findIndex(
579
- (v) => v.name === t.name
580
+ (v) => v.name === l.name
580
581
  );
581
582
  return E(
582
583
  Y.value[s].series[n].values
583
- ).reduce((v, y) => v + y, 0);
584
- }).reduce((t, n) => t + n, 0) : a.map((t) => t.value).reduce((t, n) => t + n, 0);
585
- return l.series.map((t, n) => {
584
+ ).reduce((v, f) => v + f, 0);
585
+ }).reduce((l, n) => l + n, 0) : a.map((l) => l.value).reduce((l, n) => l + n, 0);
586
+ return t.series.map((l, n) => {
586
587
  const v = E(Y.value[s].series[n].values).reduce(
587
- (w, d) => w + d,
588
+ (d, g) => d + g,
588
589
  0
589
- ), y = R.value ? v : t.value;
590
+ ), f = R.value ? v : l.value, m = `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? ae(
591
+ e.value.style.chart.layout.labels.dataLabels.formatter,
592
+ f,
593
+ O({
594
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
595
+ v: f,
596
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
597
+ r: e.value.style.chart.legend.roundingValue
598
+ }),
599
+ { datapoint: l, seriesIndex: n }
600
+ ) : ""}${e.value.style.chart.legend.showPercentage ? x.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(f / o) ? "-" : O({
601
+ v: f / o * 100,
602
+ s: "%",
603
+ r: e.value.style.chart.legend.roundingPercentage
604
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`;
590
605
  return {
591
- name: t.name,
592
- color: t.color,
593
- value: y,
606
+ name: l.name,
607
+ color: l.color,
608
+ value: f,
609
+ display: m,
610
+ svgDisplay: `${l.arcOf ? `${l.arcOf} - ` : ""}${m}`,
594
611
  shape: "circle",
595
- arcOf: t.arcOf,
596
- id: t.id,
612
+ arcOf: l.arcOf,
613
+ id: l.id,
597
614
  seriesIndex: n,
598
615
  datasetIndex: s,
599
616
  total: o,
600
- opacity: L.value.includes(t.id) ? 0.5 : 1,
601
- segregate: () => $e(t),
602
- isSegregated: L.value.includes(t.id)
617
+ opacity: x.value.includes(l.id) ? 0.5 : 1,
618
+ segregate: () => Ce(l),
619
+ isSegregated: x.value.includes(l.id)
603
620
  };
604
621
  });
605
- })), qt = _(() => ({
622
+ })), Ht = b(() => ({
606
623
  cy: "nested-donuts-legend",
607
624
  backgroundColor: e.value.style.chart.legend.backgroundColor,
608
625
  color: e.value.style.chart.legend.color,
609
626
  fontSize: e.value.style.chart.legend.fontSize,
610
627
  paddingBottom: 12,
611
628
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
612
- })), V = _(() => {
613
- const l = m.value.flatMap((a) => a.series.map((o) => ({
629
+ })), V = b(() => {
630
+ const t = k.value.flatMap((a) => a.series.map((o) => ({
614
631
  name: `${a.name} - ${o.name}`,
615
632
  color: o.color,
616
633
  total: a.total
617
- }))), s = m.value.flatMap((a) => a.series.map((o) => o.value));
618
- return { head: l, body: s };
634
+ }))), s = k.value.flatMap((a) => a.series.map((o) => o.value));
635
+ return { head: t, body: s };
619
636
  });
620
- function xe(l = null) {
621
- Ct(() => {
622
- const s = V.value.head.map((t, n) => [
623
- [t.name],
637
+ function _e(t = null) {
638
+ Lt(() => {
639
+ const s = V.value.head.map((l, n) => [
640
+ [l.name],
624
641
  [V.value.body[n]],
625
642
  [
626
- isNaN(V.value.body[n] / t.total) ? "-" : V.value.body[n] / t.total * 100
643
+ isNaN(V.value.body[n] / l.total) ? "-" : V.value.body[n] / l.total * 100
627
644
  ]
628
645
  ]), a = [
629
646
  [e.value.style.chart.title.text],
630
647
  [e.value.style.chart.title.subtitle.text],
631
648
  [[""], ["val"], ["%"]]
632
- ].concat(s), o = pl(a);
633
- l ? l(o) : yl({
649
+ ].concat(s), o = $l(a);
650
+ t ? t(o) : Cl({
634
651
  csvContent: o,
635
652
  title: e.value.style.chart.title.text || "vue-ui-nested-donuts"
636
653
  });
637
654
  });
638
655
  }
639
- const ne = _(() => {
640
- const l = [
656
+ const re = b(() => {
657
+ const t = [
641
658
  e.value.table.columnNames.series,
642
659
  e.value.table.columnNames.value,
643
660
  e.value.table.columnNames.percentage
644
- ], s = V.value.head.map((t, n) => {
645
- const v = S({
661
+ ], s = V.value.head.map((l, n) => {
662
+ const v = O({
646
663
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
647
664
  v: V.value.body[n],
648
665
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -650,12 +667,12 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
650
667
  });
651
668
  return [
652
669
  {
653
- color: t.color,
654
- name: t.name
670
+ color: l.color,
671
+ name: l.name
655
672
  },
656
673
  v,
657
- isNaN(V.value.body[n] / t.total) ? "-" : S({
658
- v: V.value.body[n] / t.total * 100,
674
+ isNaN(V.value.body[n] / l.total) ? "-" : O({
675
+ v: V.value.body[n] / l.total * 100,
659
676
  s: "%",
660
677
  r: e.value.table.td.roundingPercentage
661
678
  })
@@ -679,32 +696,32 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
679
696
  e.value.table.columnNames.value,
680
697
  e.value.table.columnNames.percentage
681
698
  ],
682
- head: l,
699
+ head: t,
683
700
  body: s,
684
701
  config: a
685
702
  };
686
703
  });
687
- function Ht() {
688
- return N.value;
704
+ function Jt() {
705
+ return F.value;
689
706
  }
690
707
  function ft() {
691
- $.value.showTable = !$.value.showTable;
708
+ C.value.showTable = !C.value.showTable;
692
709
  }
693
710
  function pt() {
694
- $.value.dataLabels.show = !$.value.dataLabels.show;
711
+ C.value.dataLabels.show = !C.value.dataLabels.show;
695
712
  }
696
713
  function yt() {
697
- $.value.showTooltip = !$.value.showTooltip;
714
+ C.value.showTooltip = !C.value.showTooltip;
698
715
  }
699
- const re = c(!1);
716
+ const ie = c(!1);
700
717
  function Ae() {
701
- re.value = !re.value;
718
+ ie.value = !ie.value;
702
719
  }
703
- async function Jt({ scale: l = 2 } = {}) {
720
+ async function Kt({ scale: t = 2 } = {}) {
704
721
  if (!I.value) return;
705
- const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: t, base64: n } = await xl({ domElement: I.value, base64: !0, img: !0, scale: l });
722
+ const { width: s, height: a } = I.value.getBoundingClientRect(), o = s / a, { imageUri: l, base64: n } = await Dl({ domElement: I.value, base64: !0, img: !0, scale: t });
706
723
  return {
707
- imageUri: t,
724
+ imageUri: l,
708
725
  base64: n,
709
726
  title: e.value.style.chart.title.text,
710
727
  width: s,
@@ -713,17 +730,17 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
713
730
  };
714
731
  }
715
732
  const Te = c(null);
716
- function Kt() {
733
+ function Qt() {
717
734
  if (!Te.value) return;
718
- const { x: l, y: s, width: a, height: o } = Te.value.getBBox();
719
- ae.value && ae.value.setAttribute("viewBox", `${l} ${s} ${a + Math.min(0, l)} ${o + Math.min(0, s)}`);
735
+ const { x: t, y: s, width: a, height: o } = Te.value.getBBox();
736
+ ee.value && ee.value.setAttribute("viewBox", `${t} ${s} ${a + Math.min(0, t)} ${o + Math.min(0, s)}`);
720
737
  }
721
- const ee = _(() => {
722
- const l = e.value.table.useDialog && !e.value.table.show, s = $.value.showTable;
738
+ const te = b(() => {
739
+ const t = e.value.table.useDialog && !e.value.table.show, s = C.value.showTable;
723
740
  return {
724
- component: l ? Mt : It,
741
+ component: t ? Bt : Dt,
725
742
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
726
- props: l ? {
743
+ props: t ? {
727
744
  backgroundColor: e.value.table.th.backgroundColor,
728
745
  color: e.value.table.th.color,
729
746
  headerColor: e.value.table.th.color,
@@ -748,54 +765,72 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
748
765
  }
749
766
  };
750
767
  });
751
- te(() => $.value.showTable, (l) => {
752
- e.value.table.show || (l && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
768
+ le(() => C.value.showTable, (t) => {
769
+ e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
753
770
  });
754
- function bt() {
755
- $.value.showTable = !1, be.value && be.value.setTableIconState(!1);
771
+ function gt() {
772
+ C.value.showTable = !1, be.value && be.value.setTableIconState(!1);
773
+ }
774
+ const Zt = b(() => e.value.style.chart.backgroundColor), jt = b(() => e.value.style.chart.legend), el = b(() => e.value.style.chart.title), tl = b(() => ne.value.flat().map((t) => ({
775
+ ...t,
776
+ name: t.svgDisplay
777
+ }))), { exportSvg: ll, getSvg: al } = Fl({
778
+ svg: ee,
779
+ title: el,
780
+ legend: jt,
781
+ legendItems: tl,
782
+ backgroundColor: Zt
783
+ });
784
+ async function bt({ isCb: t }) {
785
+ if (t) {
786
+ const { blob: s, url: a, text: o, dataUrl: l } = await al();
787
+ e.value.userOptions.callbacks.svg({ blob: s, url: a, text: o, dataUrl: l });
788
+ } else
789
+ ll();
756
790
  }
757
791
  return Ot({
758
- autoSize: Kt,
759
- getData: Ht,
760
- getImage: Jt,
792
+ autoSize: Qt,
793
+ getData: Jt,
794
+ getImage: Kt,
761
795
  generatePdf: st,
762
- generateCsv: xe,
796
+ generateCsv: _e,
763
797
  generateImage: ut,
798
+ generateSvg: bt,
764
799
  toggleTable: ft,
765
800
  toggleLabels: pt,
766
801
  toggleTooltip: yt,
767
802
  toggleAnnotator: Ae,
768
803
  toggleFullscreen: Ke
769
- }), (l, s) => (u(), r("div", {
804
+ }), (t, s) => (u(), r("div", {
770
805
  ref_key: "nestedDonutsChart",
771
806
  ref: I,
772
- class: M(`vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
773
- style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
774
- id: `nested_donuts_${f.value}`,
807
+ class: M(`vue-data-ui-component vue-ui-nested-donuts ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
808
+ style: ce(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
809
+ id: `nested_donuts_${p.value}`,
775
810
  onMouseenter: s[2] || (s[2] = () => i(Ze)(!0)),
776
811
  onMouseleave: s[3] || (s[3] = () => i(Ze)(!1))
777
812
  }, [
778
- e.value.userOptions.buttons.annotator ? (u(), B(i(Vt), {
813
+ e.value.userOptions.buttons.annotator ? (u(), B(i(zt), {
779
814
  key: 0,
780
- svgRef: i(ae),
815
+ svgRef: i(ee),
781
816
  backgroundColor: e.value.style.chart.backgroundColor,
782
817
  color: e.value.style.chart.color,
783
- active: re.value,
818
+ active: ie.value,
784
819
  onClose: Ae
785
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
786
- Rt.value ? (u(), r("div", {
820
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : $("", !0),
821
+ Ut.value ? (u(), r("div", {
787
822
  key: 1,
788
823
  ref_key: "noTitle",
789
824
  ref: We,
790
825
  class: "vue-data-ui-no-title-space",
791
826
  style: "height:36px; width: 100%;background:transparent"
792
- }, null, 512)) : k("", !0),
827
+ }, null, 512)) : $("", !0),
793
828
  e.value.style.chart.title.text ? (u(), r("div", {
794
829
  key: 2,
795
830
  ref_key: "chartTitle",
796
831
  ref: Ge
797
832
  }, [
798
- (u(), B(Al, {
833
+ (u(), B(Pl, {
799
834
  key: `title_${Xe.value}`,
800
835
  config: {
801
836
  title: {
@@ -808,11 +843,11 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
808
843
  }
809
844
  }
810
845
  }, null, 8, ["config"]))
811
- ], 512)) : k("", !0),
812
- p("div", {
813
- id: `legend-top-${f.value}`
814
- }, null, 8, Nl),
815
- e.value.userOptions.show && ce.value && (i(je) || i(we)) ? (u(), B(i(Pt), {
846
+ ], 512)) : $("", !0),
847
+ y("div", {
848
+ id: `legend-top-${p.value}`
849
+ }, null, 8, El),
850
+ e.value.userOptions.show && he.value && (i(je) || i(ke)) ? (u(), B(i(Vt), {
816
851
  ref_key: "userOptionsRef",
817
852
  ref: be,
818
853
  key: `user_option_${Ue.value}`,
@@ -820,119 +855,121 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
820
855
  color: e.value.style.chart.color,
821
856
  isPrinting: i(at),
822
857
  isImaging: i(ot),
823
- uid: f.value,
858
+ uid: p.value,
824
859
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
825
860
  hasPdf: e.value.userOptions.buttons.pdf,
826
861
  hasXls: e.value.userOptions.buttons.csv,
827
862
  hasImg: e.value.userOptions.buttons.img,
863
+ hasSvg: e.value.userOptions.buttons.svg,
828
864
  hasTable: e.value.userOptions.buttons.table,
829
865
  hasLabel: e.value.userOptions.buttons.labels,
830
866
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
831
867
  isFullscreen: G.value,
832
- isTooltip: $.value.showTooltip,
868
+ isTooltip: C.value.showTooltip,
833
869
  titles: { ...e.value.userOptions.buttonTitles },
834
870
  chartElement: I.value,
835
871
  position: e.value.userOptions.position,
836
872
  hasAnnotator: e.value.userOptions.buttons.annotator,
837
- isAnnotation: re.value,
873
+ isAnnotation: ie.value,
838
874
  callbacks: e.value.userOptions.callbacks,
839
875
  printScale: e.value.userOptions.print.scale,
840
876
  tableDialog: e.value.table.useDialog,
841
877
  onToggleFullscreen: Ke,
842
878
  onGeneratePdf: i(st),
843
- onGenerateCsv: xe,
879
+ onGenerateCsv: _e,
844
880
  onGenerateImage: i(ut),
881
+ onGenerateSvg: bt,
845
882
  onToggleTable: ft,
846
883
  onToggleLabels: pt,
847
884
  onToggleTooltip: yt,
848
885
  onToggleAnnotator: Ae,
849
- style: ve({
850
- visibility: i(je) ? i(we) ? "visible" : "hidden" : "visible"
886
+ style: ce({
887
+ visibility: i(je) ? i(ke) ? "visible" : "hidden" : "visible"
851
888
  })
852
- }, mt({ _: 2 }, [
853
- l.$slots.menuIcon ? {
889
+ }, wt({ _: 2 }, [
890
+ t.$slots.menuIcon ? {
854
891
  name: "menuIcon",
855
- fn: C(({ isOpen: a, color: o }) => [
856
- x(l.$slots, "menuIcon", H(J({ isOpen: a, color: o })), void 0, !0)
892
+ fn: L(({ isOpen: a, color: o }) => [
893
+ _(t.$slots, "menuIcon", H(J({ isOpen: a, color: o })), void 0, !0)
857
894
  ]),
858
895
  key: "0"
859
896
  } : void 0,
860
- l.$slots.optionTooltip ? {
897
+ t.$slots.optionTooltip ? {
861
898
  name: "optionTooltip",
862
- fn: C(() => [
863
- x(l.$slots, "optionTooltip", {}, void 0, !0)
899
+ fn: L(() => [
900
+ _(t.$slots, "optionTooltip", {}, void 0, !0)
864
901
  ]),
865
902
  key: "1"
866
903
  } : void 0,
867
- l.$slots.optionPdf ? {
904
+ t.$slots.optionPdf ? {
868
905
  name: "optionPdf",
869
- fn: C(() => [
870
- x(l.$slots, "optionPdf", {}, void 0, !0)
906
+ fn: L(() => [
907
+ _(t.$slots, "optionPdf", {}, void 0, !0)
871
908
  ]),
872
909
  key: "2"
873
910
  } : void 0,
874
- l.$slots.optionCsv ? {
911
+ t.$slots.optionCsv ? {
875
912
  name: "optionCsv",
876
- fn: C(() => [
877
- x(l.$slots, "optionCsv", {}, void 0, !0)
913
+ fn: L(() => [
914
+ _(t.$slots, "optionCsv", {}, void 0, !0)
878
915
  ]),
879
916
  key: "3"
880
917
  } : void 0,
881
- l.$slots.optionImg ? {
918
+ t.$slots.optionImg ? {
882
919
  name: "optionImg",
883
- fn: C(() => [
884
- x(l.$slots, "optionImg", {}, void 0, !0)
920
+ fn: L(() => [
921
+ _(t.$slots, "optionImg", {}, void 0, !0)
885
922
  ]),
886
923
  key: "4"
887
924
  } : void 0,
888
- l.$slots.optionTable ? {
925
+ t.$slots.optionTable ? {
889
926
  name: "optionTable",
890
- fn: C(() => [
891
- x(l.$slots, "optionTable", {}, void 0, !0)
927
+ fn: L(() => [
928
+ _(t.$slots, "optionTable", {}, void 0, !0)
892
929
  ]),
893
930
  key: "5"
894
931
  } : void 0,
895
- l.$slots.optionLabels ? {
932
+ t.$slots.optionLabels ? {
896
933
  name: "optionLabels",
897
- fn: C(() => [
898
- x(l.$slots, "optionLabels", {}, void 0, !0)
934
+ fn: L(() => [
935
+ _(t.$slots, "optionLabels", {}, void 0, !0)
899
936
  ]),
900
937
  key: "6"
901
938
  } : void 0,
902
- l.$slots.optionFullscreen ? {
939
+ t.$slots.optionFullscreen ? {
903
940
  name: "optionFullscreen",
904
- fn: C(({ toggleFullscreen: a, isFullscreen: o }) => [
905
- x(l.$slots, "optionFullscreen", H(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
941
+ fn: L(({ toggleFullscreen: a, isFullscreen: o }) => [
942
+ _(t.$slots, "optionFullscreen", H(J({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
906
943
  ]),
907
944
  key: "7"
908
945
  } : void 0,
909
- l.$slots.optionAnnotator ? {
946
+ t.$slots.optionAnnotator ? {
910
947
  name: "optionAnnotator",
911
- fn: C(({ toggleAnnotator: a, isAnnotator: o }) => [
912
- x(l.$slots, "optionAnnotator", H(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
948
+ fn: L(({ toggleAnnotator: a, isAnnotator: o }) => [
949
+ _(t.$slots, "optionAnnotator", H(J({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
913
950
  ]),
914
951
  key: "8"
915
952
  } : void 0
916
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
953
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : $("", !0),
917
954
  (u(), r("svg", {
918
955
  ref_key: "svgRef",
919
- ref: ae,
920
- xmlns: i(hl),
956
+ ref: ee,
957
+ xmlns: i(wl),
921
958
  class: M({
922
959
  "vue-data-ui-fullscreen--on": G.value,
923
960
  "vue-data-ui-fulscreen--off": !G.value,
924
961
  "vue-data-ui-svg": !0
925
962
  }),
926
963
  viewBox: `0 0 ${h.value.width <= 0 ? 1e-3 : h.value.width} ${h.value.height < 0 ? 1e-3 : h.value.height}`,
927
- style: ve(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
964
+ style: ce(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${et.value.css}`)
928
965
  }, [
929
- p("g", {
966
+ y("g", {
930
967
  ref_key: "G",
931
968
  ref: Te,
932
969
  class: "vue-data-ui-g"
933
970
  }, [
934
- Ve(i(zt)),
935
- l.$slots["chart-background"] ? (u(), r("foreignObject", {
971
+ Ve(i(Mt)),
972
+ t.$slots["chart-background"] ? (u(), r("foreignObject", {
936
973
  key: 0,
937
974
  x: 0,
938
975
  y: 0,
@@ -942,106 +979,106 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
942
979
  pointerEvents: "none"
943
980
  }
944
981
  }, [
945
- x(l.$slots, "chart-background", {}, void 0, !0)
946
- ], 8, Dl)) : k("", !0),
947
- p("defs", null, [
982
+ _(t.$slots, "chart-background", {}, void 0, !0)
983
+ ], 8, Ul)) : $("", !0),
984
+ y("defs", null, [
948
985
  (u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("radialGradient", {
949
- id: `radial_${f.value}_${o}`
986
+ id: `radial_${p.value}_${o}`
950
987
  }, [
951
- s[4] || (s[4] = p("stop", {
988
+ s[4] || (s[4] = y("stop", {
952
989
  offset: "0%",
953
990
  "stop-color": "#FFFFFF",
954
991
  "stop-opacity": "0"
955
992
  }, null, -1)),
956
- p("stop", {
993
+ y("stop", {
957
994
  offset: `${(1 - oe.value / dt.value[o]) * 100}%`,
958
- "stop-color": i(fl)("#FFFFFF", 0),
995
+ "stop-color": i(kl)("#FFFFFF", 0),
959
996
  "stop-opacity": "0"
960
- }, null, 8, Vl),
961
- p("stop", {
997
+ }, null, 8, Yl),
998
+ y("stop", {
962
999
  offset: `${(1 - oe.value / dt.value[o] / 2) * 100}%`,
963
1000
  "stop-color": "#FFFFFF",
964
1001
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
965
- }, null, 8, zl),
966
- s[5] || (s[5] = p("stop", {
1002
+ }, null, 8, Wl),
1003
+ s[5] || (s[5] = y("stop", {
967
1004
  offset: "100%",
968
1005
  "stop-color": "#FFFFFF",
969
1006
  "stop-opacity": "0"
970
1007
  }, null, -1))
971
- ], 8, Pl))), 256))
1008
+ ], 8, Gl))), 256))
972
1009
  ]),
973
- p("defs", null, [
974
- p("filter", {
975
- id: `blur_${f.value}`,
1010
+ y("defs", null, [
1011
+ y("filter", {
1012
+ id: `blur_${p.value}`,
976
1013
  x: "-50%",
977
1014
  y: "-50%",
978
1015
  width: "200%",
979
1016
  height: "200%"
980
1017
  }, [
981
- p("feGaussianBlur", {
1018
+ y("feGaussianBlur", {
982
1019
  in: "SourceGraphic",
983
1020
  stdDeviation: 2,
984
- id: `blur_std_${f.value}`
985
- }, null, 8, Bl),
986
- s[6] || (s[6] = p("feColorMatrix", {
1021
+ id: `blur_std_${p.value}`
1022
+ }, null, 8, ql),
1023
+ s[6] || (s[6] = y("feColorMatrix", {
987
1024
  type: "saturate",
988
1025
  values: "0"
989
1026
  }, null, -1))
990
- ], 8, Ml),
991
- p("filter", {
992
- id: `shadow_${f.value}`,
1027
+ ], 8, Xl),
1028
+ y("filter", {
1029
+ id: `shadow_${p.value}`,
993
1030
  "color-interpolation-filters": "sRGB"
994
1031
  }, [
995
- p("feDropShadow", {
1032
+ y("feDropShadow", {
996
1033
  dx: "0",
997
1034
  dy: "0",
998
1035
  stdDeviation: "10",
999
1036
  "flood-opacity": "0.5",
1000
1037
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1001
- }, null, 8, Rl)
1002
- ], 8, El)
1038
+ }, null, 8, Jl)
1039
+ ], 8, Hl)
1003
1040
  ]),
1004
- p("defs", null, [
1041
+ y("defs", null, [
1005
1042
  (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("path", {
1006
1043
  key: `path-full-${o}`,
1007
- id: `path-full-${o}-${f.value}`,
1044
+ id: `path-full-${o}-${p.value}`,
1008
1045
  d: a.fullCirclePath,
1009
1046
  fill: "none"
1010
- }, null, 8, Ul))), 128))
1047
+ }, null, 8, Kl))), 128))
1011
1048
  ]),
1012
1049
  (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1013
- a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", null, [
1014
- p("path", {
1050
+ a.hasData ? (u(!0), r(A, { key: 0 }, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", null, [
1051
+ y("path", {
1015
1052
  class: "vue-ui-donut-arc-path",
1016
- d: t.arcSlice,
1017
- fill: t.color,
1053
+ d: l.arcSlice,
1054
+ fill: l.color,
1018
1055
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1019
1056
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1020
- filter: ht(t, n)
1021
- }, null, 8, Gl)
1022
- ]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (t, n) => (u(), r("g", null, [
1023
- p("path", {
1057
+ filter: ht(l, n)
1058
+ }, null, 8, Ql)
1059
+ ]))), 256)) : (u(!0), r(A, { key: 1 }, T(a.skeleton, (l, n) => (u(), r("g", null, [
1060
+ y("path", {
1024
1061
  class: "vue-ui-donut-arc-path",
1025
- d: t.arcSlice,
1026
- fill: t.color,
1062
+ d: l.arcSlice,
1063
+ fill: l.color,
1027
1064
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1028
1065
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1029
- }, null, 8, Yl)
1066
+ }, null, 8, Zl)
1030
1067
  ]))), 256))
1031
1068
  ]))), 256)),
1032
- e.value.style.chart.useGradient ? (u(), r("g", Wl, [
1069
+ e.value.style.chart.useGradient ? (u(), r("g", jl, [
1033
1070
  (u(!0), r(A, null, T(vt.value, (a, o) => (u(), r("g", null, [
1034
- p("path", {
1071
+ y("path", {
1035
1072
  d: a.donut.arcSlice,
1036
- fill: `url(#radial_${f.value}_${o})`,
1073
+ fill: `url(#radial_${p.value}_${o})`,
1037
1074
  stroke: "transparent",
1038
1075
  "stroke-width": "0"
1039
- }, null, 8, Xl)
1076
+ }, null, 8, ea)
1040
1077
  ]))), 256))
1041
- ])) : k("", !0),
1042
- e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", ql, [
1078
+ ])) : $("", !0),
1079
+ e.value.style.chart.layout.labels.dataLabels.showDonutName ? (u(), r("g", ta, [
1043
1080
  e.value.style.chart.layout.labels.dataLabels.curvedDonutName ? (u(!0), r(A, { key: 0 }, T(q.value, (a, o) => (u(), r("g", null, [
1044
- (u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
1081
+ (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1045
1082
  n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1046
1083
  key: 0,
1047
1084
  class: M({ animated: e.value.useCssAnimation }),
@@ -1051,154 +1088,154 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
1051
1088
  fill: e.value.style.chart.layout.labels.dataLabels.color,
1052
1089
  dy: e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY
1053
1090
  }, [
1054
- p("textPath", {
1055
- href: `#path-full-${o}-${f.value}`,
1091
+ y("textPath", {
1092
+ href: `#path-full-${o}-${p.value}`,
1056
1093
  startOffset: "50%",
1057
1094
  "text-anchor": "middle",
1058
1095
  method: "align",
1059
1096
  spacing: "auto"
1060
- }, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(Lt)({
1097
+ }, D(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
1061
1098
  source: a.name,
1062
1099
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1063
- }) : a.name), 9, Jl)
1064
- ], 10, Hl)) : k("", !0)
1100
+ }) : a.name), 9, aa)
1101
+ ], 10, la)) : $("", !0)
1065
1102
  ]))), 256))
1066
1103
  ]))), 256)) : (u(!0), r(A, { key: 1 }, T(q.value, (a, o) => (u(), r("g", null, [
1067
- (u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
1104
+ (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1068
1105
  n === 0 && h.value.width && h.value.height ? (u(), r("text", {
1069
1106
  key: 0,
1070
1107
  class: M({ animated: e.value.useCssAnimation }),
1071
1108
  x: h.value.width / 2,
1072
- y: t.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1109
+ y: l.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
1073
1110
  "text-anchor": "middle",
1074
1111
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1075
1112
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
1076
1113
  fill: e.value.style.chart.layout.labels.dataLabels.color
1077
- }, F(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(Lt)({
1114
+ }, D(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? i(xt)({
1078
1115
  source: a.name,
1079
1116
  length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1080
- }) : a.name), 11, Kl)) : k("", !0)
1117
+ }) : a.name), 11, oa)) : $("", !0)
1081
1118
  ]))), 256))
1082
1119
  ]))), 256))
1083
- ])) : k("", !0),
1084
- e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", Ql, [
1120
+ ])) : $("", !0),
1121
+ e.value.style.chart.layout.labels.dataLabels.show ? (u(), r("g", sa, [
1085
1122
  (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1086
- (u(!0), r(A, null, T(a.donut.filter((t) => !t.ghost), (t, n) => (u(), r("g", {
1087
- filter: ht(t, n)
1123
+ (u(!0), r(A, null, T(a.donut.filter((l) => !l.ghost), (l, n) => (u(), r("g", {
1124
+ filter: ht(l, n)
1088
1125
  }, [
1089
- wt(p("text", {
1126
+ kt(y("text", {
1090
1127
  class: M({ animated: e.value.useCssAnimation }),
1091
- opacity: Le(t) ? 1 : 0,
1092
- "text-anchor": i(Q)(t, !0).anchor,
1128
+ opacity: xe(l) ? 1 : 0,
1129
+ "text-anchor": i(Q)(l, !0).anchor,
1093
1130
  x: i(Q)(
1094
- t,
1131
+ l,
1095
1132
  !1,
1096
1133
  e.value.style.chart.layout.labels.dataLabels.offsetX
1097
1134
  ).x || 0,
1098
1135
  y: i(Ee)(
1099
- t,
1136
+ l,
1100
1137
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1101
1138
  e.value.style.chart.layout.labels.dataLabels.offsetY
1102
1139
  ),
1103
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1140
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1104
1141
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1105
1142
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
1106
- }, F(i(S)({
1107
- v: t.proportion * 100,
1143
+ }, D(i(O)({
1144
+ v: l.proportion * 100,
1108
1145
  s: "%",
1109
1146
  r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
1110
- })), 11, jl), [
1147
+ })), 11, na), [
1111
1148
  [
1112
- kt,
1113
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1149
+ $t,
1150
+ C.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage
1114
1151
  ]
1115
1152
  ]),
1116
- wt(p("text", {
1153
+ kt(y("text", {
1117
1154
  class: M({ animated: e.value.useCssAnimation }),
1118
- opacity: Le(t) ? 1 : 0,
1119
- "text-anchor": i(Q)(t, !0).anchor,
1155
+ opacity: xe(l) ? 1 : 0,
1156
+ "text-anchor": i(Q)(l, !0).anchor,
1120
1157
  x: i(Q)(
1121
- t,
1158
+ l,
1122
1159
  !1,
1123
1160
  e.value.style.chart.layout.labels.dataLabels.offsetX
1124
1161
  ).x || 0,
1125
1162
  y: i(Ee)(
1126
- t,
1163
+ l,
1127
1164
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1128
1165
  e.value.style.chart.layout.labels.dataLabels.offsetY
1129
1166
  ) + e.value.style.chart.layout.labels.dataLabels.fontSize,
1130
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1167
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1131
1168
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1132
1169
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1133
- }, " (" + F(i(le)(
1170
+ }, " (" + D(i(ae)(
1134
1171
  e.value.style.chart.layout.labels.dataLabels.formatter,
1135
- t.value,
1136
- i(S)({
1172
+ l.value,
1173
+ i(O)({
1137
1174
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1138
- v: t.value,
1175
+ v: l.value,
1139
1176
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1140
1177
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1141
1178
  }),
1142
- { datapoint: t, seriesIndex: o, datapointIndex: n }
1143
- )) + ") ", 11, ea), [
1179
+ { datapoint: l, seriesIndex: o, datapointIndex: n }
1180
+ )) + ") ", 11, ra), [
1144
1181
  [
1145
- kt,
1146
- $.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1182
+ $t,
1183
+ C.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue
1147
1184
  ]
1148
1185
  ]),
1149
- Le(t) && $.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
1186
+ xe(l) && C.value.dataLabels.show && !e.value.style.chart.layout.labels.dataLabels.showPercentage && e.value.style.chart.layout.labels.dataLabels.showValue ? (u(), r("text", {
1150
1187
  key: 0,
1151
1188
  class: M({ animated: e.value.useCssAnimation }),
1152
- "text-anchor": i(Q)(t, !0).anchor,
1189
+ "text-anchor": i(Q)(l, !0).anchor,
1153
1190
  x: i(Q)(
1154
- t,
1191
+ l,
1155
1192
  !1,
1156
1193
  e.value.style.chart.layout.labels.dataLabels.offsetX
1157
1194
  ).x || 0,
1158
1195
  y: i(Ee)(
1159
- t,
1196
+ l,
1160
1197
  e.value.style.chart.layout.labels.dataLabels.offsetY,
1161
1198
  e.value.style.chart.layout.labels.dataLabels.offsetY
1162
1199
  ),
1163
- fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? t.color : e.value.style.chart.layout.labels.dataLabels.color,
1200
+ fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
1164
1201
  "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
1165
1202
  "font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
1166
- }, F(i(le)(
1203
+ }, D(i(ae)(
1167
1204
  e.value.style.chart.layout.labels.dataLabels.formatter,
1168
- t.value,
1169
- i(S)({
1205
+ l.value,
1206
+ i(O)({
1170
1207
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1171
- v: t.value,
1208
+ v: l.value,
1172
1209
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1173
1210
  r: e.value.style.chart.layout.labels.dataLabels.roundingValue
1174
1211
  }),
1175
- { datapoint: t, seriesIndex: o, datapointIndex: n }
1176
- )), 11, ta)) : k("", !0)
1177
- ], 8, Zl))), 256))
1212
+ { datapoint: l, seriesIndex: o, datapointIndex: n }
1213
+ )), 11, ia)) : $("", !0)
1214
+ ], 8, ua))), 256))
1178
1215
  ]))), 256))
1179
- ])) : k("", !0),
1216
+ ])) : $("", !0),
1180
1217
  (u(!0), r(A, null, T(q.value, (a, o) => (u(), r("g", null, [
1181
- (u(!0), r(A, null, T(a.donut, (t, n) => (u(), r("g", null, [
1182
- p("path", {
1183
- d: t.arcSlice,
1184
- fill: pe.value === t.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1185
- onMouseenter: (v) => Xt({
1186
- datapoint: t,
1187
- seriesIndex: t.seriesIndex
1218
+ (u(!0), r(A, null, T(a.donut, (l, n) => (u(), r("g", null, [
1219
+ y("path", {
1220
+ d: l.arcSlice,
1221
+ fill: ye.value === l.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1222
+ onMouseenter: (v) => qt({
1223
+ datapoint: l,
1224
+ seriesIndex: l.seriesIndex
1188
1225
  }),
1189
- onClick: (v) => Gt({ datapoint: t, index: n, seriesIndex: t.seriesIndex }),
1190
- onMouseleave: (v) => Wt({ datapoint: t, seriesIndex: t.seriesIndex })
1191
- }, null, 40, la)
1226
+ onClick: (v) => Yt({ datapoint: l, index: n, seriesIndex: l.seriesIndex }),
1227
+ onMouseleave: (v) => Xt({ datapoint: l, seriesIndex: l.seriesIndex })
1228
+ }, null, 40, da)
1192
1229
  ]))), 256))
1193
1230
  ]))), 256)),
1194
- x(l.$slots, "svg", { svg: h.value }, void 0, !0)
1231
+ _(t.$slots, "svg", { svg: h.value }, void 0, !0)
1195
1232
  ], 512)
1196
- ], 14, Il)),
1197
- l.$slots.watermark ? (u(), r("div", aa, [
1198
- x(l.$slots, "watermark", H(J({ isPrinting: i(at) || i(ot) })), void 0, !0)
1199
- ])) : k("", !0),
1200
- Ve(i(St), {
1201
- show: $.value.showTooltip && he.value,
1233
+ ], 14, Rl)),
1234
+ t.$slots.watermark ? (u(), r("div", va, [
1235
+ _(t.$slots, "watermark", H(J({ isPrinting: i(at) || i(ot) })), void 0, !0)
1236
+ ])) : $("", !0),
1237
+ Ve(i(It), {
1238
+ show: C.value.showTooltip && fe.value,
1202
1239
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1203
1240
  color: e.value.style.chart.tooltip.color,
1204
1241
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -1209,7 +1246,7 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
1209
1246
  position: e.value.style.chart.tooltip.position,
1210
1247
  offsetY: e.value.style.chart.tooltip.offsetY,
1211
1248
  parent: I.value,
1212
- content: fe.value,
1249
+ content: pe.value,
1213
1250
  isFullscreen: G.value,
1214
1251
  isCustom: i(_t)(e.value.style.chart.tooltip.customFormat),
1215
1252
  smooth: e.value.style.chart.tooltip.smooth,
@@ -1217,99 +1254,85 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
1217
1254
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1218
1255
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1219
1256
  }, {
1220
- "tooltip-before": C(() => [
1221
- x(l.$slots, "tooltip-before", H(J({ ...Ce.value })), void 0, !0)
1257
+ "tooltip-before": L(() => [
1258
+ _(t.$slots, "tooltip-before", H(J({ ...Le.value })), void 0, !0)
1222
1259
  ]),
1223
- "tooltip-after": C(() => [
1224
- x(l.$slots, "tooltip-after", H(J({ ...Ce.value })), void 0, !0)
1260
+ "tooltip-after": L(() => [
1261
+ _(t.$slots, "tooltip-after", H(J({ ...Le.value })), void 0, !0)
1225
1262
  ]),
1226
1263
  _: 3
1227
1264
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1228
- p("div", {
1229
- id: `legend-bottom-${f.value}`
1230
- }, null, 8, oa),
1231
- Je.value ? (u(), B(ol, {
1265
+ y("div", {
1266
+ id: `legend-bottom-${p.value}`
1267
+ }, null, 8, ca),
1268
+ Je.value ? (u(), B(vl, {
1232
1269
  key: 5,
1233
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
1270
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
1234
1271
  }, [
1235
1272
  e.value.style.chart.legend.show ? (u(), r("div", {
1236
1273
  key: 0,
1237
1274
  ref_key: "chartLegend",
1238
- ref: ye,
1239
- class: M({ "vue-ui-nested-donuts-legend": _e.value.length > 1 })
1275
+ ref: ge,
1276
+ class: M({ "vue-ui-nested-donuts-legend": ne.value.length > 1 })
1240
1277
  }, [
1241
- (u(!0), r(A, null, T(_e.value, (a, o) => (u(), B(Ol, {
1278
+ (u(!0), r(A, null, T(ne.value, (a, o) => (u(), B(zl, {
1242
1279
  key: `legend_${o}_${He.value}`,
1243
1280
  legendSet: a,
1244
- config: qt.value,
1245
- onClickMarker: s[0] || (s[0] = ({ legend: t }) => $e(t))
1281
+ config: Ht.value,
1282
+ onClickMarker: s[0] || (s[0] = ({ legend: l }) => Ce(l))
1246
1283
  }, {
1247
- legendTitle: C(({ titleSet: t }) => [
1248
- t[0] && t[0].arcOf ? (u(), r("div", sa, F(t[0].arcOf), 1)) : k("", !0)
1284
+ legendTitle: L(({ titleSet: l }) => [
1285
+ l[0] && l[0].arcOf ? (u(), r("div", ha, D(l[0].arcOf), 1)) : $("", !0)
1249
1286
  ]),
1250
- item: C(({ legend: t, index: n }) => [
1251
- p("div", {
1252
- onClick: (v) => $e(t),
1253
- style: ve(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1254
- }, F(t.name) + F(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + F(e.value.style.chart.legend.showValue ? i(le)(
1255
- e.value.style.chart.layout.labels.dataLabels.formatter,
1256
- t.value,
1257
- i(S)({
1258
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
1259
- v: t.value,
1260
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
1261
- r: e.value.style.chart.legend.roundingValue
1262
- }),
1263
- { datapoint: t, seriesIndex: n }
1264
- ) : "") + " " + F(e.value.style.chart.legend.showPercentage ? L.value.includes(t.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(t.value / t.total) ? "-" : i(S)({
1265
- v: t.value / t.total * 100,
1266
- s: "%",
1267
- r: e.value.style.chart.legend.roundingPercentage
1268
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, ua)
1287
+ item: L(({ legend: l, index: n }) => [
1288
+ y("div", {
1289
+ onClick: (v) => Ce(l),
1290
+ style: ce(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
1291
+ }, D(l.display), 13, fa)
1269
1292
  ]),
1270
1293
  _: 1
1271
1294
  }, 8, ["legendSet", "config"]))), 128))
1272
- ], 2)) : k("", !0)
1273
- ], 8, ["to"])) : k("", !0),
1274
- e.value.style.chart.legend.show ? k("", !0) : (u(), r("div", {
1295
+ ], 2)) : $("", !0)
1296
+ ], 8, ["to"])) : $("", !0),
1297
+ e.value.style.chart.legend.show ? $("", !0) : (u(), r("div", {
1275
1298
  key: 6,
1276
1299
  ref_key: "chartLegend",
1277
- ref: ye
1300
+ ref: ge
1278
1301
  }, [
1279
- x(l.$slots, "legend", { legend: _e.value }, void 0, !0)
1302
+ _(t.$slots, "legend", { legend: ne.value }, void 0, !0)
1280
1303
  ], 512)),
1281
- l.$slots.source ? (u(), r("div", {
1304
+ t.$slots.source ? (u(), r("div", {
1282
1305
  key: 7,
1283
1306
  ref_key: "source",
1284
1307
  ref: Ye,
1285
1308
  dir: "auto"
1286
1309
  }, [
1287
- x(l.$slots, "source", {}, void 0, !0)
1288
- ], 512)) : k("", !0),
1289
- ce.value && e.value.userOptions.buttons.table ? (u(), B(sl(ee.value.component), ul({ key: 8 }, ee.value.props, {
1310
+ _(t.$slots, "source", {}, void 0, !0)
1311
+ ], 512)) : $("", !0),
1312
+ he.value && e.value.userOptions.buttons.table ? (u(), B(cl(te.value.component), hl({ key: 8 }, te.value.props, {
1290
1313
  ref_key: "tableUnit",
1291
1314
  ref: j,
1292
- onClose: bt
1293
- }), mt({
1294
- content: C(() => [
1295
- (u(), B(i(Dt), {
1315
+ onClose: gt
1316
+ }), wt({
1317
+ content: L(() => [
1318
+ (u(), B(i(Pt), {
1296
1319
  key: `table_${qe.value}`,
1297
- colNames: ne.value.colNames,
1298
- head: ne.value.head,
1299
- body: ne.value.body,
1300
- config: ne.value.config,
1301
- title: e.value.table.useDialog ? "" : ee.value.title,
1320
+ colNames: re.value.colNames,
1321
+ head: re.value.head,
1322
+ body: re.value.body,
1323
+ config: re.value.config,
1324
+ title: e.value.table.useDialog ? "" : te.value.title,
1302
1325
  withCloseButton: !e.value.table.useDialog,
1303
- onClose: bt
1326
+ onClose: gt
1304
1327
  }, {
1305
- th: C(({ th: a }) => [
1306
- p("div", {
1328
+ th: L(({ th: a }) => [
1329
+ y("div", {
1307
1330
  innerHTML: a,
1308
1331
  style: { display: "flex", "align-items": "center" }
1309
- }, null, 8, na)
1332
+ }, null, 8, pa)
1310
1333
  ]),
1311
- td: C(({ td: a }) => [
1312
- $t(F(a.name || a), 1)
1334
+ td: L(({ td: a }) => [
1335
+ Ct(D(a.name || a), 1)
1313
1336
  ]),
1314
1337
  _: 1
1315
1338
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1318,32 +1341,32 @@ const Sl = ["id"], Nl = ["id"], Il = ["xmlns", "viewBox"], Dl = ["width", "heigh
1318
1341
  }, [
1319
1342
  e.value.table.useDialog ? {
1320
1343
  name: "title",
1321
- fn: C(() => [
1322
- $t(F(ee.value.title), 1)
1344
+ fn: L(() => [
1345
+ Ct(D(te.value.title), 1)
1323
1346
  ]),
1324
1347
  key: "0"
1325
1348
  } : void 0,
1326
1349
  e.value.table.useDialog ? {
1327
1350
  name: "actions",
1328
- fn: C(() => [
1329
- p("button", {
1351
+ fn: L(() => [
1352
+ y("button", {
1330
1353
  tabindex: "0",
1331
1354
  class: "vue-ui-user-options-button",
1332
- onClick: s[1] || (s[1] = (a) => xe(e.value.userOptions.callbacks.csv))
1355
+ onClick: s[1] || (s[1] = (a) => _e(e.value.userOptions.callbacks.csv))
1333
1356
  }, [
1334
1357
  Ve(i(Nt), {
1335
1358
  name: "excel",
1336
- stroke: ee.value.props.color
1359
+ stroke: te.value.props.color
1337
1360
  }, null, 8, ["stroke"])
1338
1361
  ])
1339
1362
  ]),
1340
1363
  key: "1"
1341
1364
  } : void 0
1342
- ]), 1040)) : k("", !0),
1343
- i(ge) ? (u(), B($l, { key: 9 })) : k("", !0)
1344
- ], 46, Sl));
1365
+ ]), 1040)) : $("", !0),
1366
+ i(me) ? (u(), B(Sl, { key: 9 })) : $("", !0)
1367
+ ], 46, Bl));
1345
1368
  }
1346
- }, $a = /* @__PURE__ */ Fl(ra, [["__scopeId", "data-v-07f0a210"]]);
1369
+ }, Fa = /* @__PURE__ */ Ml(ya, [["__scopeId", "data-v-f58dd2ed"]]);
1347
1370
  export {
1348
- $a as default
1371
+ Fa as default
1349
1372
  };