vue-data-ui 3.2.8 → 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-C40g0Rfc.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-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.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-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
  106. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.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-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -1,21 +1,22 @@
1
- import { defineAsyncComponent as F, useSlots as ft, ref as u, computed as f, toRefs as yt, watch as Y, shallowRef as Be, onMounted as mt, onBeforeUnmount as bt, createElementBlock as h, openBlock as i, unref as s, normalizeStyle as N, normalizeClass as W, createBlock as O, createCommentVNode as b, createElementVNode as C, createVNode as J, createSlots as re, withCtx as c, renderSlot as p, normalizeProps as V, guardReactiveProps as B, Fragment as ie, renderList as ve, mergeProps as Me, Teleport as kt, toDisplayString as M, resolveDynamicComponent as wt, createTextVNode as ze, nextTick as Ct } from "vue";
2
- import { c as Ee, t as $t, b as Tt, p as D, o as Ue, f as ce, g as _t, e as xt, J as At, h as We, d as L, X as Ft, s as Ot, i as It, q as K, a as Ge, x as St, y as Pt, z as Nt, A as Dt } from "./lib-BEpWEyMm.js";
3
- import { t as Lt, u as Rt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Vt, a as He } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as Bt } from "./usePrinter-w23K-ezx.js";
6
- import { u as Mt, B as zt } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
9
- import Wt from "./img-DjWwQXVS.js";
10
- import { _ as Gt } from "./Shape-C_C_OmqR.js";
11
- import Ht from "./Title-DG2nloSB.js";
12
- import { t as jt } from "./themes-Dw-dDudK.js";
13
- import Xt from "./Legend-BpoFJ8fc.js";
14
- import { _ as qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "height"], Zt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = { key: 1 }, ol = ["stroke", "cx", "cy", "r", "fill"], al = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], sl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], nl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], ul = {
1
+ import { defineAsyncComponent as A, useSlots as $t, ref as r, computed as c, toRefs as Tt, watch as q, shallowRef as Me, onMounted as _t, onBeforeUnmount as xt, createElementBlock as p, openBlock as i, unref as s, normalizeStyle as L, normalizeClass as U, createBlock as O, createCommentVNode as b, createElementVNode as C, createVNode as Y, createSlots as ie, withCtx as d, renderSlot as g, normalizeProps as B, guardReactiveProps as V, Fragment as ve, renderList as ce, mergeProps as ze, Teleport as St, toDisplayString as de, resolveDynamicComponent as At, createTextVNode as Ee, nextTick as Ot } from "vue";
2
+ import { c as Ue, t as Ft, b as It, p as N, o as We, f as he, g as Pt, e as Lt, J as Nt, h as Ge, a as He, d as D, X as Dt, s as Rt, i as Bt, q as J, x as Vt, y as Mt, z as zt, A as Et } from "./lib-GIYcnm0E.js";
3
+ import { t as Ut, u as Wt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Gt, a as je } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as Ht } from "./usePrinter-DYRFiw7X.js";
6
+ import { u as jt, B as Xt } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as qt } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as Yt } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
10
+ import Kt from "./img-6wPuVVtk.js";
11
+ import { _ as Qt } from "./Shape-DJG2zW7b.js";
12
+ import Zt from "./Title-D17CJXko.js";
13
+ import { t as el } from "./themes-Dw-dDudK.js";
14
+ import tl from "./Legend-DsogCeTb.js";
15
+ import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "height"], ul = ["id"], rl = ["stop-color"], il = ["stop-color"], vl = { key: 1 }, cl = ["stroke", "cx", "cy", "r", "fill"], dl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], hl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], pl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], gl = {
16
17
  key: 4,
17
18
  class: "vue-data-ui-watermark"
18
- }, rl = ["id"], il = ["onClick"], vl = ["innerHTML"], cl = {
19
+ }, fl = ["id"], yl = ["onClick"], ml = ["innerHTML"], bl = {
19
20
  __name: "vue-ui-rings",
20
21
  props: {
21
22
  config: {
@@ -32,9 +33,9 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
32
33
  }
33
34
  },
34
35
  emits: ["selectLegend"],
35
- setup(je, { expose: Xe, emit: qe }) {
36
- const Ye = F(() => import("./Tooltip-BOXz8skU.js")), Je = F(() => import("./BaseIcon-Bz-1GQhu.js")), Ke = F(() => import("./vue-ui-accordion-CDIzGCG1.js")), Qe = F(() => import("./DataTable-BvjacRbw.js")), Ze = F(() => import("./PenAndPaper-CR8q353D.js")), et = F(() => import("./UserOptions-DsTgvAok.js")), tt = F(() => import("./PackageVersion-C40g0Rfc.js")), lt = F(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_rings: ot } = Vt(), at = ft(), k = je, I = u(!1), de = f(() => !!k.dataset && k.dataset.length), y = u(Ee()), G = u(!1), Q = u(""), T = u(null), he = u(0), _ = u(null), pe = u(null), ge = u(null), fe = u(null), ye = u(null), me = u(0), be = u(0), ke = u(0), Z = u(!1), we = u(!1), z = u(null), ee = u(null), e = u(le()), { loading: S, FINAL_DATASET: Ce, manualLoading: H } = Mt({
37
- ...yt(k),
36
+ setup(Xe, { expose: qe, emit: Ye }) {
37
+ const Je = A(() => import("./Tooltip-CtVdvbZi.js")), Ke = A(() => import("./BaseIcon-CtqN7W_g.js")), Qe = A(() => import("./vue-ui-accordion-Dch9YrCi.js")), Ze = A(() => import("./DataTable-BeI6gYJX.js")), et = A(() => import("./PenAndPaper-BxbYiPy4.js")), tt = A(() => import("./UserOptions-B3vCIe-u.js")), lt = A(() => import("./PackageVersion-C9oklnuy.js")), ot = A(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_rings: at } = Gt(), st = $t(), k = Xe, F = r(!1), pe = c(() => !!k.dataset && k.dataset.length), y = r(Ue()), W = r(!1), K = r(""), T = r(null), ge = r(0), _ = r(null), fe = r(null), ye = r(null), me = r(null), be = r(null), ke = r(0), we = r(0), Ce = r(0), Q = r(!1), $e = r(!1), M = r(null), Z = r(null), e = r(le()), { loading: I, FINAL_DATASET: Te, manualLoading: G } = jt({
38
+ ...Tt(k),
38
39
  FINAL_CONFIG: e,
39
40
  prepareConfig: le,
40
41
  skeletonDataset: [
@@ -44,7 +45,7 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
44
45
  { name: "_", values: [3], color: "#C4C4C4" },
45
46
  { name: "_", values: [2], color: "#DBDBDB" }
46
47
  ],
47
- skeletonConfig: $t({
48
+ skeletonConfig: Ft({
48
49
  defaultConfig: e.value,
49
50
  userConfig: {
50
51
  userOptions: { show: !1 },
@@ -67,45 +68,45 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
67
68
  }
68
69
  }
69
70
  })
70
- }), { userOptionsVisible: te, setUserOptionsVisibility: $e, keepUserOptionState: Te } = Et({ config: e.value }), { svgRef: _e } = Ut({ config: e.value.style.chart.title });
71
+ }), { userOptionsVisible: ee, setUserOptionsVisibility: _e, keepUserOptionState: xe } = Yt({ config: e.value }), { svgRef: te } = Jt({ config: e.value.style.chart.title });
71
72
  function le() {
72
- const t = He({
73
+ const t = je({
73
74
  userConfig: k.config,
74
- defaultConfig: ot
75
+ defaultConfig: at
75
76
  });
76
77
  return t.theme ? {
77
- ...He({
78
- userConfig: jt.vue_ui_rings[t.theme] || k.config,
78
+ ...je({
79
+ userConfig: el.vue_ui_rings[t.theme] || k.config,
79
80
  defaultConfig: t
80
81
  }),
81
- customPalette: Tt[t.theme] || D
82
+ customPalette: It[t.theme] || N
82
83
  } : t;
83
84
  }
84
- Y(() => k.config, (t) => {
85
- S.value || (e.value = le()), te.value = !e.value.userOptions.showOnChartHover, xe(), me.value += 1, be.value += 1, ke.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
86
- }, { deep: !0 }), Y(() => k.dataset, (t) => {
87
- Array.isArray(t) && t.length > 0 && (H.value = !1);
85
+ q(() => k.config, (t) => {
86
+ I.value || (e.value = le()), ee.value = !e.value.userOptions.showOnChartHover, Se(), ke.value += 1, we.value += 1, Ce.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
87
+ }, { deep: !0 }), q(() => k.dataset, (t) => {
88
+ Array.isArray(t) && t.length > 0 && (G.value = !1);
88
89
  }, { deep: !0 });
89
- const x = Be(null), R = Be(null);
90
- mt(() => {
91
- we.value = !0, xe();
90
+ const x = Me(null), R = Me(null);
91
+ _t(() => {
92
+ $e.value = !0, Se();
92
93
  });
93
- const oe = f(() => !!e.value.debug);
94
- function xe() {
95
- if (Ue(k.dataset) ? (ce({
94
+ const oe = c(() => !!e.value.debug);
95
+ function Se() {
96
+ if (We(k.dataset) ? (he({
96
97
  componentName: "VueUiRings",
97
98
  type: "dataset",
98
99
  debug: oe.value
99
- }), H.value = !0) : k.dataset.forEach((t, o) => {
100
- t.values.length || (ce({
100
+ }), G.value = !0) : k.dataset.forEach((t, o) => {
101
+ t.values.length || (he({
101
102
  componentName: "VueUiRings",
102
103
  type: "dataset",
103
104
  debug: oe.value
104
- }), H.value = !0), _t({
105
+ }), G.value = !0), Pt({
105
106
  datasetObject: t,
106
107
  requiredAttributes: ["name", "values"]
107
108
  }).forEach((l) => {
108
- ce({
109
+ he({
109
110
  componentName: "VueUiRings",
110
111
  type: "datasetSerieAttribute",
111
112
  property: l,
@@ -113,139 +114,145 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
113
114
  debug: oe.value
114
115
  });
115
116
  });
116
- }), Ue(k.dataset) || (H.value = e.value.loading), e.value.responsive) {
117
- const t = Lt(() => {
118
- Z.value = !0;
119
- const { width: o, height: l } = Rt({
117
+ }), We(k.dataset) || (G.value = e.value.loading), e.value.responsive) {
118
+ const t = Ut(() => {
119
+ Q.value = !0;
120
+ const { width: o, height: l } = Wt({
120
121
  chart: _.value,
121
- title: e.value.style.chart.title.text ? pe.value : null,
122
- legend: e.value.style.chart.legend.show ? ge.value : null,
123
- source: fe.value,
124
- noTitle: ye.value
122
+ title: e.value.style.chart.title.text ? fe.value : null,
123
+ legend: e.value.style.chart.legend.show ? ye.value : null,
124
+ source: me.value,
125
+ noTitle: be.value
125
126
  });
126
127
  requestAnimationFrame(() => {
127
- n.value.width = o, n.value.height = l - 12, Z.value = !1;
128
+ u.value.width = o, u.value.height = l - 12, Q.value = !1;
128
129
  });
129
130
  });
130
131
  x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect()), x.value = new ResizeObserver(t), R.value = _.value.parentNode, x.value.observe(R.value);
131
132
  }
132
133
  setTimeout(() => {
133
- I.value = !0;
134
+ F.value = !0;
134
135
  }, 600);
135
136
  }
136
- bt(() => {
137
+ xt(() => {
137
138
  x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect());
138
139
  });
139
- const { isPrinting: Ae, isImaging: Fe, generatePdf: Oe, generateImage: Ie } = Bt({
140
+ const { isPrinting: Ae, isImaging: Oe, generatePdf: Fe, generateImage: Ie } = Ht({
140
141
  elementId: `rings_${y.value}`,
141
142
  fileName: e.value.style.chart.title.text || "vue-ui-rings",
142
143
  options: e.value.userOptions.print
143
- }), st = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = f(() => xt(e.value.customPalette)), w = u({
144
+ }), nt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = c(() => Lt(e.value.customPalette)), w = r({
144
145
  showTable: e.value.table.show,
145
146
  showTooltip: e.value.style.chart.tooltip.show
146
147
  });
147
- Y(e, () => {
148
+ q(e, () => {
148
149
  w.value = {
149
150
  showTable: e.value.table.show,
150
151
  showTooltip: e.value.style.chart.tooltip.show
151
152
  };
152
153
  }, { immediate: !0 });
153
- const n = u({
154
+ const u = r({
154
155
  height: 360,
155
156
  width: 360
156
- }), nt = f(() => Math.min(n.value.height, n.value.width)), ut = qe, m = u([]);
157
+ }), ut = c(() => Math.min(u.value.height, u.value.width)), rt = Ye, m = r([]);
157
158
  function ae(t) {
158
- m.value.includes(t) ? m.value = m.value.filter((o) => o !== t) : m.value.push(t), ut("selectLegend", g.value.map((o) => ({
159
+ m.value.includes(t) ? m.value = m.value.filter((o) => o !== t) : m.value.push(t), rt("selectLegend", f.value.map((o) => ({
159
160
  name: o.name,
160
161
  color: o.color,
161
162
  value: o.value
162
163
  })));
163
164
  }
164
- const rt = f(() => Math.max(
165
- ...j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
165
+ const it = c(() => Math.max(
166
+ ...H.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
166
167
  ));
167
- function Pe(t) {
168
- return t / rt.value;
168
+ function Le(t) {
169
+ return t / it.value;
169
170
  }
170
- const j = f(() => Ce.value.map(({ values: t, name: o, color: l = null }, a) => {
171
- const r = At(t).reduce((v, U) => v + U, 0);
171
+ const H = c(() => Te.value.map(({ values: t, name: o, color: l = null }, a) => {
172
+ const n = Nt(t).reduce((v, E) => v + E, 0);
172
173
  return {
173
174
  name: o,
174
- color: l || We(l) || Se.value[a] || D[a] || D[a % D.length],
175
- value: r,
176
- proportion: r / Ce.value.map((v) => (v.values || []).reduce((U, gt) => U + gt, 0)).reduce((v, U) => v + U, 0),
177
- uid: Ee(),
175
+ color: l || Ge(l) || Pe.value[a] || N[a] || N[a % N.length],
176
+ value: n,
177
+ proportion: n / Te.value.map((v) => (v.values || []).reduce((E, Ct) => E + Ct, 0)).reduce((v, E) => v + E, 0),
178
+ uid: Ue(),
178
179
  absoluteIndex: a
179
180
  };
180
- })), Ne = f(() => j.value.map((t) => ({
181
+ })), se = c(() => H.value.map((t, o) => ({
181
182
  ...t,
182
183
  shape: "circle",
183
184
  opacity: m.value.includes(t.uid) ? 0.5 : 1,
184
185
  segregate: () => ae(t.uid),
185
- isSegregated: m.value.includes(t.uid)
186
- })).toSorted((t, o) => o.value - t.value)), it = f(() => ({
186
+ isSegregated: m.value.includes(t.uid),
187
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? He(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, D({
188
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
189
+ v: t.value,
190
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
191
+ r: e.value.style.chart.legend.roundingValue
192
+ }), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? m.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / $.value) ? "-" : D({ v: t.value / $.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
193
+ })).toSorted((t, o) => o.value - t.value)), vt = c(() => ({
187
194
  cy: "rings-div-legend",
188
195
  backgroundColor: e.value.style.chart.legend.backgroundColor,
189
196
  color: e.value.style.chart.legend.color,
190
197
  fontSize: e.value.style.chart.legend.fontSize,
191
198
  paddingBottom: 12,
192
199
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
193
- })), $ = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), g = f(() => j.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, v) => ({
194
- absoluteIndex: r,
200
+ })), $ = c(() => H.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), f = c(() => H.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: n }, v) => ({
201
+ absoluteIndex: n,
195
202
  uid: a,
196
203
  name: t,
197
- color: l || We(l) || Se.value[v] || D[v] || D[v % D.length],
204
+ color: l || Ge(l) || Pe.value[v] || N[v] || N[v % N.length],
198
205
  value: o,
199
- proportion: Pe(o),
206
+ proportion: Le(o),
200
207
  percentage: o / $.value * 100,
201
- strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Pe(o)
208
+ strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Le(o)
202
209
  })).toSorted((t, o) => o.value - t.value));
203
- function vt() {
204
- return g.value.map(
205
- ({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
210
+ function ct() {
211
+ return f.value.map(
212
+ ({ name: t, color: o, value: l, absoluteValues: a, percentage: n }) => ({
206
213
  name: t,
207
214
  color: o,
208
215
  value: l,
209
216
  absoluteValues: a,
210
- percentage: r
217
+ percentage: n
211
218
  })
212
219
  );
213
220
  }
214
- const d = f(() => nt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
215
- function ct(t, o) {
216
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
217
- }
221
+ const h = c(() => ut.value - e.value.style.chart.layout.rings.strokeWidth * 2);
218
222
  function dt(t, o) {
219
- T.value = null, G.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
223
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
220
224
  }
221
- const se = u(null);
222
225
  function ht(t, o) {
226
+ T.value = null, W.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
227
+ }
228
+ const ne = r(null);
229
+ function pt(t, o) {
223
230
  if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), m.value.length === k.dataset.length) return;
224
- se.value = {
231
+ ne.value = {
225
232
  datapoint: t,
226
233
  seriesIndex: o,
227
- series: g.value,
234
+ series: f.value,
228
235
  config: e.value
229
236
  }, T.value = o;
230
- const l = g.value[o], a = e.value.style.chart.tooltip.customFormat;
231
- if (Nt(a) && Dt(() => a({
237
+ const l = f.value[o], a = e.value.style.chart.tooltip.customFormat;
238
+ if (zt(a) && Et(() => a({
232
239
  seriesIndex: o,
233
240
  datapoint: t,
234
- series: g.value,
241
+ series: f.value,
235
242
  config: e.value
236
243
  })))
237
- Q.value = a({
244
+ K.value = a({
238
245
  seriesIndex: o,
239
246
  datapoint: t,
240
- series: g.value,
247
+ series: f.value,
241
248
  config: e.value
242
249
  });
243
250
  else {
244
- let r = "";
245
- r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${at.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Ge(
251
+ let n = "";
252
+ n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${st.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (n += `<b>${He(
246
253
  e.value.style.chart.layout.labels.dataLabels.formatter,
247
254
  l.value,
248
- L({
255
+ D({
249
256
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
250
257
  v: l.value,
251
258
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -253,36 +260,36 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
253
260
  }),
254
261
  { datapoint: t, seriesIndex: o }
255
262
  )}
256
- </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${L({
263
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? n += `<span>(${D({
257
264
  v: l.value / $.value * 100,
258
265
  s: "%",
259
266
  r: e.value.style.chart.tooltip.roundingPercentage
260
- })})</span></div>` : r += `<b>${L({
267
+ })})</span></div>` : n += `<b>${D({
261
268
  v: l.value / $.value * 100,
262
269
  s: "%",
263
270
  r: e.value.style.chart.tooltip.roundingPercentage
264
- })}</b></div>`), Q.value = r;
271
+ })}</b></div>`), K.value = n;
265
272
  }
266
- G.value = !0;
273
+ W.value = !0;
267
274
  }
268
- const A = f(() => {
269
- const t = g.value.map((l) => ({
275
+ const S = c(() => {
276
+ const t = f.value.map((l) => ({
270
277
  name: l.name,
271
278
  color: l.color
272
- })), o = g.value.map((l) => l.value);
279
+ })), o = f.value.map((l) => l.value);
273
280
  return { head: t, body: o };
274
- }), X = f(() => {
281
+ }), j = c(() => {
275
282
  const t = [
276
283
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
277
- L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
284
+ D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: $.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
278
285
  "100%"
279
- ], o = A.value.head.map((r, v) => [
286
+ ], o = S.value.head.map((n, v) => [
280
287
  {
281
- color: r.color,
282
- name: r.name
288
+ color: n.color,
289
+ name: n.name
283
290
  },
284
- L({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: A.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
285
- isNaN(A.value.body[v] / $.value) ? "-" : (A.value.body[v] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
291
+ D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
292
+ isNaN(S.value.body[v] / $.value) ? "-" : (S.value.body[v] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
286
293
  ]), l = {
287
294
  th: {
288
295
  backgroundColor: e.value.table.th.backgroundColor,
@@ -307,33 +314,33 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
307
314
  colNames: a
308
315
  };
309
316
  });
310
- function ne(t = null) {
311
- Ct(() => {
312
- const o = A.value.head.map((r, v) => [[
313
- r.name
314
- ], [A.value.body[v]], [isNaN(A.value.body[v] / $.value) ? "-" : A.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = St(l);
315
- t ? t(a) : Pt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
317
+ function ue(t = null) {
318
+ Ot(() => {
319
+ const o = S.value.head.map((n, v) => [[
320
+ n.name
321
+ ], [S.value.body[v]], [isNaN(S.value.body[v] / $.value) ? "-" : S.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Vt(l);
322
+ t ? t(a) : Mt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
316
323
  });
317
324
  }
318
- const P = u(!1);
319
- function De(t) {
320
- P.value = t, he.value += 1;
325
+ const P = r(!1);
326
+ function Ne(t) {
327
+ P.value = t, ge.value += 1;
321
328
  }
322
- function Le() {
329
+ function De() {
323
330
  w.value.showTable = !w.value.showTable;
324
331
  }
325
332
  function Re() {
326
333
  w.value.showTooltip = !w.value.showTooltip;
327
334
  }
328
- const q = u(!1);
329
- function ue() {
330
- q.value = !q.value;
335
+ const X = r(!1);
336
+ function re() {
337
+ X.value = !X.value;
331
338
  }
332
- async function pt({ scale: t = 2 } = {}) {
339
+ async function gt({ scale: t = 2 } = {}) {
333
340
  if (!_.value) return;
334
- const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: v } = await Wt({ domElement: _.value, base64: !0, img: !0, scale: t });
341
+ const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: n, base64: v } = await Kt({ domElement: _.value, base64: !0, img: !0, scale: t });
335
342
  return {
336
- imageUri: r,
343
+ imageUri: n,
337
344
  base64: v,
338
345
  title: e.value.style.chart.title.text,
339
346
  width: o,
@@ -341,10 +348,10 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
341
348
  aspectRatio: a
342
349
  };
343
350
  }
344
- const E = f(() => {
351
+ const z = c(() => {
345
352
  const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
346
353
  return {
347
- component: t ? lt : Ke,
354
+ component: t ? ot : Qe,
348
355
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
349
356
  props: t ? {
350
357
  backgroundColor: e.value.table.th.backgroundColor,
@@ -371,56 +378,74 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
371
378
  }
372
379
  };
373
380
  });
374
- Y(() => w.value.showTable, (t) => {
375
- e.value.table.show || (t && e.value.table.useDialog && z.value ? z.value.open() : "close" in z.value && z.value.close());
381
+ q(() => w.value.showTable, (t) => {
382
+ e.value.table.show || (t && e.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
376
383
  });
377
- function Ve() {
378
- w.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
384
+ function Be() {
385
+ w.value.showTable = !1, Z.value && Z.value.setTableIconState(!1);
379
386
  }
380
- return Xe({
381
- getData: vt,
382
- getImage: pt,
383
- generatePdf: Oe,
384
- generateCsv: ne,
387
+ const ft = c(() => se.value.map((t) => ({
388
+ ...t,
389
+ name: t.display
390
+ }))), yt = c(() => e.value.style.chart.backgroundColor), mt = c(() => e.value.style.chart.legend), bt = c(() => e.value.style.chart.title), { exportSvg: kt, getSvg: wt } = qt({
391
+ svg: te,
392
+ title: bt,
393
+ legend: mt,
394
+ legendItems: ft,
395
+ backgroundColor: yt
396
+ });
397
+ async function Ve({ isCb: t }) {
398
+ if (t) {
399
+ const { blob: o, url: l, text: a, dataUrl: n } = await wt();
400
+ e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: n });
401
+ } else
402
+ kt();
403
+ }
404
+ return qe({
405
+ getData: ct,
406
+ getImage: gt,
407
+ generatePdf: Fe,
408
+ generateCsv: ue,
385
409
  generateImage: Ie,
386
- toggleTable: Le,
410
+ generateSvg: Ve,
411
+ toggleTable: De,
387
412
  toggleTooltip: Re,
388
- toggleAnnotator: ue,
389
- toggleFullscreen: De
390
- }), (t, o) => (i(), h("div", {
413
+ toggleAnnotator: re,
414
+ toggleFullscreen: Ne
415
+ }), (t, o) => (i(), p("div", {
391
416
  ref_key: "ringsChart",
392
417
  ref: _,
393
- class: W(`vue-data-ui-component vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
394
- style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
418
+ class: U(`vue-data-ui-component vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
419
+ style: L(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
395
420
  id: `rings_${y.value}`,
396
421
  onMouseleave: o[2] || (o[2] = (l) => {
397
- T.value = null, G.value = !1, s($e)(!1);
422
+ T.value = null, W.value = !1, s(_e)(!1);
398
423
  }),
399
- onMouseenter: o[3] || (o[3] = () => s($e)(!0))
424
+ onMouseenter: o[3] || (o[3] = () => s(_e)(!0))
400
425
  }, [
401
- e.value.userOptions.buttons.annotator ? (i(), O(s(Ze), {
426
+ e.value.userOptions.buttons.annotator ? (i(), O(s(et), {
402
427
  key: 0,
403
- svgRef: s(_e),
428
+ svgRef: s(te),
404
429
  backgroundColor: e.value.style.chart.backgroundColor,
405
430
  color: e.value.style.chart.color,
406
- active: q.value,
407
- onClose: ue
431
+ active: X.value,
432
+ onClose: re
408
433
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
409
- st.value ? (i(), h("div", {
434
+ nt.value ? (i(), p("div", {
410
435
  key: 1,
411
436
  ref_key: "noTitle",
412
- ref: ye,
437
+ ref: be,
413
438
  class: "vue-data-ui-no-title-space",
414
439
  style: "height:36px; width: 100%;background:transparent"
415
440
  }, null, 512)) : b("", !0),
416
- e.value.style.chart.title.text ? (i(), h("div", {
441
+ e.value.style.chart.title.text ? (i(), p("div", {
417
442
  key: 2,
418
443
  ref_key: "chartTitle",
419
- ref: pe,
444
+ ref: fe,
420
445
  style: "width:100%;background:transparent"
421
446
  }, [
422
- (i(), O(Ht, {
423
- key: `title_${me.value}`,
447
+ (i(), O(Zt, {
448
+ key: `title_${ke.value}`,
424
449
  config: {
425
450
  title: {
426
451
  cy: "rings-div-title",
@@ -435,20 +460,21 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
435
460
  ], 512)) : b("", !0),
436
461
  C("div", {
437
462
  id: `legend-top-${y.value}`
438
- }, null, 8, Jt),
439
- e.value.userOptions.show && de.value && (s(Te) || s(te)) ? (i(), O(s(et), {
463
+ }, null, 8, al),
464
+ e.value.userOptions.show && pe.value && (s(xe) || s(ee)) ? (i(), O(s(tt), {
440
465
  ref_key: "userOptionsRef",
441
- ref: ee,
442
- key: `user_options_${he.value}`,
466
+ ref: Z,
467
+ key: `user_options_${ge.value}`,
443
468
  backgroundColor: e.value.style.chart.backgroundColor,
444
469
  color: e.value.style.chart.color,
445
470
  isPrinting: s(Ae),
446
- isImaging: s(Fe),
471
+ isImaging: s(Oe),
447
472
  uid: y.value,
448
473
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
449
474
  hasPdf: e.value.userOptions.buttons.pdf,
450
475
  hasXls: e.value.userOptions.buttons.csv,
451
476
  hasImg: e.value.userOptions.buttons.img,
477
+ hasSvg: e.value.userOptions.buttons.svg,
452
478
  hasTable: e.value.userOptions.buttons.table,
453
479
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
454
480
  isTooltip: w.value.showTooltip,
@@ -457,101 +483,102 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
457
483
  chartElement: _.value,
458
484
  position: e.value.userOptions.position,
459
485
  hasAnnotator: e.value.userOptions.buttons.annotator,
460
- isAnnotation: q.value,
486
+ isAnnotation: X.value,
461
487
  callbacks: e.value.userOptions.callbacks,
462
488
  printScale: e.value.userOptions.print.scale,
463
489
  tableDialog: e.value.table.useDialog,
464
- onToggleFullscreen: De,
465
- onGeneratePdf: s(Oe),
466
- onGenerateCsv: ne,
490
+ onToggleFullscreen: Ne,
491
+ onGeneratePdf: s(Fe),
492
+ onGenerateCsv: ue,
467
493
  onGenerateImage: s(Ie),
468
- onToggleTable: Le,
494
+ onGenerateSvg: Ve,
495
+ onToggleTable: De,
469
496
  onToggleTooltip: Re,
470
- onToggleAnnotator: ue,
471
- style: N({
472
- visibility: s(Te) ? s(te) ? "visible" : "hidden" : "visible"
497
+ onToggleAnnotator: re,
498
+ style: L({
499
+ visibility: s(xe) ? s(ee) ? "visible" : "hidden" : "visible"
473
500
  })
474
- }, re({ _: 2 }, [
501
+ }, ie({ _: 2 }, [
475
502
  t.$slots.menuIcon ? {
476
503
  name: "menuIcon",
477
- fn: c(({ isOpen: l, color: a }) => [
478
- p(t.$slots, "menuIcon", V(B({ isOpen: l, color: a })), void 0, !0)
504
+ fn: d(({ isOpen: l, color: a }) => [
505
+ g(t.$slots, "menuIcon", B(V({ isOpen: l, color: a })), void 0, !0)
479
506
  ]),
480
507
  key: "0"
481
508
  } : void 0,
482
509
  t.$slots.optionTooltip ? {
483
510
  name: "optionTooltip",
484
- fn: c(() => [
485
- p(t.$slots, "optionTooltip", {}, void 0, !0)
511
+ fn: d(() => [
512
+ g(t.$slots, "optionTooltip", {}, void 0, !0)
486
513
  ]),
487
514
  key: "1"
488
515
  } : void 0,
489
516
  t.$slots.optionPdf ? {
490
517
  name: "optionPdf",
491
- fn: c(() => [
492
- p(t.$slots, "optionPdf", {}, void 0, !0)
518
+ fn: d(() => [
519
+ g(t.$slots, "optionPdf", {}, void 0, !0)
493
520
  ]),
494
521
  key: "2"
495
522
  } : void 0,
496
523
  t.$slots.optionCsv ? {
497
524
  name: "optionCsv",
498
- fn: c(() => [
499
- p(t.$slots, "optionCsv", {}, void 0, !0)
525
+ fn: d(() => [
526
+ g(t.$slots, "optionCsv", {}, void 0, !0)
500
527
  ]),
501
528
  key: "3"
502
529
  } : void 0,
503
530
  t.$slots.optionImg ? {
504
531
  name: "optionImg",
505
- fn: c(() => [
506
- p(t.$slots, "optionImg", {}, void 0, !0)
532
+ fn: d(() => [
533
+ g(t.$slots, "optionImg", {}, void 0, !0)
507
534
  ]),
508
535
  key: "4"
509
536
  } : void 0,
510
537
  t.$slots.optionTable ? {
511
538
  name: "optionTable",
512
- fn: c(() => [
513
- p(t.$slots, "optionTable", {}, void 0, !0)
539
+ fn: d(() => [
540
+ g(t.$slots, "optionTable", {}, void 0, !0)
514
541
  ]),
515
542
  key: "5"
516
543
  } : void 0,
517
544
  t.$slots.optionFullscreen ? {
518
545
  name: "optionFullscreen",
519
- fn: c(({ toggleFullscreen: l, isFullscreen: a }) => [
520
- p(t.$slots, "optionFullscreen", V(B({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
546
+ fn: d(({ toggleFullscreen: l, isFullscreen: a }) => [
547
+ g(t.$slots, "optionFullscreen", B(V({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
521
548
  ]),
522
549
  key: "6"
523
550
  } : void 0,
524
551
  t.$slots.optionAnnotator ? {
525
552
  name: "optionAnnotator",
526
- fn: c(({ toggleAnnotator: l, isAnnotator: a }) => [
527
- p(t.$slots, "optionAnnotator", V(B({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
553
+ fn: d(({ toggleAnnotator: l, isAnnotator: a }) => [
554
+ g(t.$slots, "optionAnnotator", B(V({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
528
555
  ]),
529
556
  key: "7"
530
557
  } : void 0
531
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
532
- (i(), h("svg", {
558
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
559
+ (i(), p("svg", {
533
560
  ref_key: "svgRef",
534
- ref: _e,
535
- xmlns: s(Ft),
536
- class: W({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: Z.value || s(S) }),
537
- viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
538
- style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
561
+ ref: te,
562
+ xmlns: s(Dt),
563
+ class: U({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: Q.value || s(I) }),
564
+ viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
565
+ style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
539
566
  }, [
540
- J(s(tt)),
541
- t.$slots["chart-background"] ? (i(), h("foreignObject", {
567
+ Y(s(lt)),
568
+ t.$slots["chart-background"] ? (i(), p("foreignObject", {
542
569
  key: 0,
543
570
  x: 0,
544
571
  y: 0,
545
- width: n.value.width <= 0 ? 10 : n.value.width,
546
- height: n.value.height <= 0 ? 10 : n.value.height,
572
+ width: u.value.width <= 0 ? 10 : u.value.width,
573
+ height: u.value.height <= 0 ? 10 : u.value.height,
547
574
  style: {
548
575
  pointerEvents: "none"
549
576
  }
550
577
  }, [
551
- p(t.$slots, "chart-background", {}, void 0, !0)
552
- ], 8, Qt)) : b("", !0),
578
+ g(t.$slots, "chart-background", {}, void 0, !0)
579
+ ], 8, nl)) : b("", !0),
553
580
  C("defs", null, [
554
- (i(!0), h(ie, null, ve(g.value, (l, a) => (i(), h("radialGradient", {
581
+ (i(!0), p(ve, null, ce(f.value, (l, a) => (i(), p("radialGradient", {
555
582
  cx: "50%",
556
583
  cy: "30%",
557
584
  r: "50%",
@@ -561,124 +588,110 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
561
588
  }, [
562
589
  C("stop", {
563
590
  offset: "0%",
564
- "stop-color": s(Ot)(s(It)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
565
- }, null, 8, el),
591
+ "stop-color": s(Rt)(s(Bt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
592
+ }, null, 8, rl),
566
593
  C("stop", {
567
594
  offset: "100%",
568
595
  "stop-color": l.color
569
- }, null, 8, tl)
570
- ], 8, Zt))), 256))
596
+ }, null, 8, il)
597
+ ], 8, ul))), 256))
571
598
  ]),
572
- t.$slots.pattern ? (i(), h("g", ll, [
573
- (i(!0), h(ie, null, ve(g.value, (l) => (i(), h("defs", null, [
574
- p(t.$slots, "pattern", Me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
599
+ t.$slots.pattern ? (i(), p("g", vl, [
600
+ (i(!0), p(ve, null, ce(f.value, (l) => (i(), p("defs", null, [
601
+ g(t.$slots, "pattern", ze({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
575
602
  ]))), 256))
576
603
  ])) : b("", !0),
577
- (i(!0), h(ie, null, ve(g.value, (l, a) => (i(), h("g", null, [
604
+ (i(!0), p(ve, null, ce(f.value, (l, a) => (i(), p("g", null, [
578
605
  C("circle", {
579
- class: W({
580
- "vue-ui-rings-item": I.value && e.value.useCssAnimation,
581
- "vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(S),
606
+ class: U({
607
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
608
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
582
609
  "vue-ui-rings-opacity": T.value !== null && T.value !== a
583
610
  }),
584
- style: N(`animation-delay:${a * 100}ms`),
611
+ style: L(`animation-delay:${a * 100}ms`),
585
612
  stroke: e.value.style.chart.layout.rings.stroke,
586
- cx: n.value.width / 2,
587
- cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
588
- r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
613
+ cx: u.value.width / 2,
614
+ cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
615
+ r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
589
616
  fill: e.value.style.chart.layout.rings.gradient.underlayerColor
590
- }, null, 14, ol),
617
+ }, null, 14, cl),
591
618
  C("circle", {
592
- class: W({
593
- "vue-ui-rings-item": I.value && e.value.useCssAnimation,
594
- "vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(S),
619
+ class: U({
620
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
621
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
595
622
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
596
623
  "vue-ui-rings-blur": T.value !== null && T.value !== a
597
624
  }),
598
- style: N(`animation-delay:${a * 100}ms`),
625
+ style: L(`animation-delay:${a * 100}ms`),
599
626
  stroke: e.value.style.chart.layout.rings.stroke,
600
627
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
601
- cx: n.value.width / 2,
602
- cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
603
- r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
628
+ cx: u.value.width / 2,
629
+ cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
630
+ r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
604
631
  fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${a})` : l.color
605
- }, null, 14, al),
606
- t.$slots.pattern ? (i(), h("circle", {
632
+ }, null, 14, dl),
633
+ t.$slots.pattern ? (i(), p("circle", {
607
634
  key: 0,
608
- class: W({
609
- "vue-ui-rings-item": I.value && e.value.useCssAnimation,
610
- "vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(S),
635
+ class: U({
636
+ "vue-ui-rings-item": F.value && e.value.useCssAnimation,
637
+ "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
611
638
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
612
639
  "vue-ui-rings-blur": T.value !== null && T.value !== a
613
640
  }),
614
- style: N(`animation-delay:${a * 100}ms`),
641
+ style: L(`animation-delay:${a * 100}ms`),
615
642
  stroke: e.value.style.chart.layout.rings.stroke,
616
643
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
617
- cx: n.value.width / 2,
618
- cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
619
- r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
644
+ cx: u.value.width / 2,
645
+ cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
646
+ r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
620
647
  fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
621
- }, null, 14, sl)) : b("", !0),
648
+ }, null, 14, hl)) : b("", !0),
622
649
  C("circle", {
623
650
  stroke: "none",
624
- cx: n.value.width / 2,
625
- cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * g.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
626
- r: s(K)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
651
+ cx: u.value.width / 2,
652
+ cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
653
+ r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
627
654
  fill: "transparent",
628
- onMouseenter: (r) => ht(l, a),
629
- onMouseleave: (r) => dt(l, a),
630
- onClick: (r) => ct(l, a)
631
- }, null, 40, nl)
655
+ onMouseenter: (n) => pt(l, a),
656
+ onMouseleave: (n) => ht(l, a),
657
+ onClick: (n) => dt(l, a)
658
+ }, null, 40, pl)
632
659
  ]))), 256)),
633
- p(t.$slots, "svg", { svg: n.value }, void 0, !0)
634
- ], 14, Kt)),
635
- t.$slots.watermark ? (i(), h("div", ul, [
636
- p(t.$slots, "watermark", V(B({ isPrinting: s(Ae) || s(Fe) })), void 0, !0)
660
+ g(t.$slots, "svg", { svg: u.value }, void 0, !0)
661
+ ], 14, sl)),
662
+ t.$slots.watermark ? (i(), p("div", gl, [
663
+ g(t.$slots, "watermark", B(V({ isPrinting: s(Ae) || s(Oe) })), void 0, !0)
637
664
  ])) : b("", !0),
638
665
  C("div", {
639
666
  id: `legend-bottom-${y.value}`
640
- }, null, 8, rl),
641
- we.value ? (i(), O(kt, {
667
+ }, null, 8, fl),
668
+ $e.value ? (i(), O(St, {
642
669
  key: 5,
643
670
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
644
671
  }, [
645
672
  C("div", {
646
673
  ref_key: "chartLegend",
647
- ref: ge
674
+ ref: ye
648
675
  }, [
649
- e.value.style.chart.legend.show ? (i(), O(Xt, {
650
- key: `legend_${ke.value}`,
651
- legendSet: Ne.value,
652
- config: it.value,
676
+ e.value.style.chart.legend.show ? (i(), O(tl, {
677
+ key: `legend_${Ce.value}`,
678
+ legendSet: se.value,
679
+ config: vt.value,
653
680
  onClickMarker: o[0] || (o[0] = ({ legend: l }) => ae(l.uid))
654
- }, re({
655
- item: c(({ legend: l, index: a }) => [
656
- s(S) ? b("", !0) : (i(), h("div", {
681
+ }, ie({
682
+ item: d(({ legend: l, index: a }) => [
683
+ s(I) ? b("", !0) : (i(), p("div", {
657
684
  key: 0,
658
- onClick: (r) => ae(l.uid),
659
- style: N(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
660
- }, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? s(Ge)(
661
- e.value.style.chart.layout.labels.dataLabels.formatter,
662
- l.value,
663
- s(L)({
664
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
665
- v: l.value,
666
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
667
- r: e.value.style.chart.legend.roundingValue
668
- }),
669
- { datapoint: l, seriesIndex: a }
670
- ) : "") + " " + M(e.value.style.chart.legend.showPercentage ? m.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / $.value) ? "-" : s(L)({
671
- v: l.value / $.value * 100,
672
- s: "%",
673
- r: e.value.style.chart.legend.roundingPercentage
674
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, il))
685
+ onClick: (n) => ae(l.uid),
686
+ style: L(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
687
+ }, de(l.display), 13, yl))
675
688
  ]),
676
689
  _: 2
677
690
  }, [
678
691
  t.$slots.pattern ? {
679
692
  name: "legend-pattern",
680
- fn: c(({ legend: l, index: a }) => [
681
- J(Gt, {
693
+ fn: d(({ legend: l, index: a }) => [
694
+ Y(Qt, {
682
695
  shape: l.shape,
683
696
  radius: 30,
684
697
  stroke: "none",
@@ -688,22 +701,22 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
688
701
  ]),
689
702
  key: "0"
690
703
  } : void 0
691
- ]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
704
+ ]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
692
705
  key: 1,
693
- legend: Ne.value
706
+ legend: se.value
694
707
  }, void 0, !0)
695
708
  ], 512)
696
709
  ], 8, ["to"])) : b("", !0),
697
- t.$slots.source ? (i(), h("div", {
710
+ t.$slots.source ? (i(), p("div", {
698
711
  key: 6,
699
712
  ref_key: "source",
700
- ref: fe,
713
+ ref: me,
701
714
  dir: "auto"
702
715
  }, [
703
- p(t.$slots, "source", {}, void 0, !0)
716
+ g(t.$slots, "source", {}, void 0, !0)
704
717
  ], 512)) : b("", !0),
705
- J(s(Ye), {
706
- show: w.value.showTooltip && G.value && m.value.length < k.dataset.length,
718
+ Y(s(Je), {
719
+ show: w.value.showTooltip && W.value && m.value.length < k.dataset.length,
707
720
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
708
721
  color: e.value.style.chart.tooltip.color,
709
722
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -714,7 +727,7 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
714
727
  position: e.value.style.chart.tooltip.position,
715
728
  offsetY: e.value.style.chart.tooltip.offsetY,
716
729
  parent: _.value,
717
- content: Q.value,
730
+ content: K.value,
718
731
  isFullscreen: P.value,
719
732
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
720
733
  smooth: e.value.style.chart.tooltip.smooth,
@@ -722,38 +735,38 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
722
735
  smoothForce: e.value.style.chart.tooltip.smoothForce,
723
736
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
724
737
  }, {
725
- "tooltip-before": c(() => [
726
- p(t.$slots, "tooltip-before", V(B({ ...se.value })), void 0, !0)
738
+ "tooltip-before": d(() => [
739
+ g(t.$slots, "tooltip-before", B(V({ ...ne.value })), void 0, !0)
727
740
  ]),
728
- "tooltip-after": c(() => [
729
- p(t.$slots, "tooltip-after", V(B({ ...se.value })), void 0, !0)
741
+ "tooltip-after": d(() => [
742
+ g(t.$slots, "tooltip-after", B(V({ ...ne.value })), void 0, !0)
730
743
  ]),
731
744
  _: 3
732
745
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
733
- de.value && e.value.userOptions.buttons.table ? (i(), O(wt(E.value.component), Me({ key: 7 }, E.value.props, {
746
+ pe.value && e.value.userOptions.buttons.table ? (i(), O(At(z.value.component), ze({ key: 7 }, z.value.props, {
734
747
  ref_key: "tableUnit",
735
- ref: z,
736
- onClose: Ve
737
- }), re({
738
- content: c(() => [
739
- (i(), O(s(Qe), {
740
- key: `table_${be.value}`,
741
- colNames: X.value.colNames,
742
- head: X.value.head,
743
- body: X.value.body,
744
- config: X.value.config,
745
- title: e.value.table.useDialog ? "" : E.value.title,
748
+ ref: M,
749
+ onClose: Be
750
+ }), ie({
751
+ content: d(() => [
752
+ (i(), O(s(Ze), {
753
+ key: `table_${we.value}`,
754
+ colNames: j.value.colNames,
755
+ head: j.value.head,
756
+ body: j.value.body,
757
+ config: j.value.config,
758
+ title: e.value.table.useDialog ? "" : z.value.title,
746
759
  withCloseButton: !e.value.table.useDialog,
747
- onClose: Ve
760
+ onClose: Be
748
761
  }, {
749
- th: c(({ th: l }) => [
762
+ th: d(({ th: l }) => [
750
763
  C("div", {
751
764
  innerHTML: l,
752
765
  style: { display: "flex", "align-items": "center" }
753
- }, null, 8, vl)
766
+ }, null, 8, ml)
754
767
  ]),
755
- td: c(({ td: l }) => [
756
- ze(M(l.name || l), 1)
768
+ td: d(({ td: l }) => [
769
+ Ee(de(l.name || l), 1)
757
770
  ]),
758
771
  _: 1
759
772
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -762,32 +775,32 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
762
775
  }, [
763
776
  e.value.table.useDialog ? {
764
777
  name: "title",
765
- fn: c(() => [
766
- ze(M(E.value.title), 1)
778
+ fn: d(() => [
779
+ Ee(de(z.value.title), 1)
767
780
  ]),
768
781
  key: "0"
769
782
  } : void 0,
770
783
  e.value.table.useDialog ? {
771
784
  name: "actions",
772
- fn: c(() => [
785
+ fn: d(() => [
773
786
  C("button", {
774
787
  tabindex: "0",
775
788
  class: "vue-ui-user-options-button",
776
- onClick: o[1] || (o[1] = (l) => ne(e.value.userOptions.callbacks.csv))
789
+ onClick: o[1] || (o[1] = (l) => ue(e.value.userOptions.callbacks.csv))
777
790
  }, [
778
- J(s(Je), {
791
+ Y(s(Ke), {
779
792
  name: "excel",
780
- stroke: E.value.props.color
793
+ stroke: z.value.props.color
781
794
  }, null, 8, ["stroke"])
782
795
  ])
783
796
  ]),
784
797
  key: "1"
785
798
  } : void 0
786
799
  ]), 1040)) : b("", !0),
787
- s(S) ? (i(), O(zt, { key: 8 })) : b("", !0)
788
- ], 46, Yt));
800
+ s(I) ? (i(), O(Xt, { key: 8 })) : b("", !0)
801
+ ], 46, ol));
789
802
  }
790
- }, xl = /* @__PURE__ */ qt(cl, [["__scopeId", "data-v-28c710d7"]]);
803
+ }, Dl = /* @__PURE__ */ ll(bl, [["__scopeId", "data-v-5c6dcdcf"]]);
791
804
  export {
792
- xl as default
805
+ Dl as default
793
806
  };