vue-data-ui 2.16.6 → 2.17.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 (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,18 +1,19 @@
1
- import { defineAsyncComponent as I, useSlots as et, ref as i, computed as f, watch as tt, shallowRef as _e, onMounted as lt, onBeforeUnmount as ot, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as S, normalizeClass as U, createBlock as N, createCommentVNode as m, createElementVNode as T, createVNode as Q, createSlots as xe, withCtx as g, renderSlot as p, normalizeProps as R, guardReactiveProps as M, Fragment as Z, renderList as ee, mergeProps as at, createTextVNode as Oe, toDisplayString as H, nextTick as st } from "vue";
2
- import { u as nt, c as Ie, t as ut, p as P, a as rt, o as it, e as te, g as vt, b as ct, G as dt, d as Se, f as A, X as pt, s as ht, w as gt, v as j, i as Ne, q as ft, r as yt, x as mt, y as bt } from "./index-DvIXJm6t.js";
3
- import { t as kt, u as Ct } from "./useResponsive-DfdjqQps.js";
4
- import { u as Pe } from "./useNestedProp-DrYHm61t.js";
5
- import { u as wt } from "./usePrinter-CWnXbGMb.js";
6
- import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
8
- import _t from "./Legend-nBXoxXJH.js";
9
- import xt from "./Title-Gi81VwUM.js";
10
- import { _ as Ot } from "./Shape-Bnf512BA.js";
11
- import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["id"], Ft = ["stop-color"], Lt = ["stop-color"], Rt = { key: 1 }, Mt = ["stroke", "cx", "cy", "r", "fill"], Vt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], zt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Ut = ["cx", "cy", "r", "onMouseenter"], Wt = {
1
+ import { defineAsyncComponent as S, useSlots as tt, ref as i, computed as f, watch as lt, shallowRef as xe, onMounted as ot, onBeforeUnmount as at, createElementBlock as c, openBlock as u, unref as s, normalizeStyle as N, normalizeClass as U, createBlock as P, createCommentVNode as m, createElementVNode as T, createVNode as Q, createSlots as Oe, withCtx as g, renderSlot as p, normalizeProps as M, guardReactiveProps as V, Fragment as Z, renderList as ee, mergeProps as st, createTextVNode as Ie, toDisplayString as H, nextTick as nt } from "vue";
2
+ import { u as ut, c as Se, t as rt, p as A, a as it, o as vt, e as te, g as ct, b as dt, G as pt, d as Ne, f as F, X as ht, s as gt, w as ft, v as j, i as Pe, q as yt, r as mt, x as bt, y as kt } from "./index-pPGk-uhD.js";
3
+ import { t as Ct, u as wt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ae } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as $t } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as _t } from "./useChartAccessibility-9icAAmYg.js";
8
+ import xt from "./Legend-Bxlv67uY.js";
9
+ import Ot from "./Title-B-2bV0SW.js";
10
+ import { _ as It } from "./Shape-DtFT5EJa.js";
11
+ import St from "./img-Y_hYz-ZC.js";
12
+ import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ const Pt = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Lt = ["id"], Rt = ["stop-color"], Mt = ["stop-color"], Vt = { key: 1 }, zt = ["stroke", "cx", "cy", "r", "fill"], Ut = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Et = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Wt = ["cx", "cy", "r", "onMouseenter"], Bt = {
13
14
  key: 5,
14
15
  class: "vue-data-ui-watermark"
15
- }, Bt = ["onClick"], Et = { key: 0 }, Dt = { key: 1 }, Gt = ["innerHTML"], Ht = {
16
+ }, Dt = ["onClick"], Gt = { key: 0 }, Ht = { key: 1 }, jt = ["innerHTML"], Xt = {
16
17
  __name: "vue-ui-rings",
17
18
  props: {
18
19
  config: {
@@ -29,40 +30,40 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
29
30
  }
30
31
  },
31
32
  emits: ["selectLegend"],
32
- setup(Ae, { expose: Fe, emit: Le }) {
33
- const Re = I(() => import("./vue-ui-accordion-D55kCO5G.js")), Me = I(() => import("./DataTable-CHBLjKtZ.js")), Ve = I(() => import("./PackageVersion-Bg_9KCU-.js")), ze = I(() => import("./PenAndPaper-BPTpbnay.js")), Ue = I(() => import("./vue-ui-skeleton-BAOt2neL.js")), We = I(() => import("./Tooltip-CJxVw7-T.js")), Be = I(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_rings: Ee } = nt(), De = et(), b = Ae, O = i(!1), W = f(() => !!b.dataset && b.dataset.length), w = i(Ie()), Ge = i(null), B = i(!1), X = i(""), $ = i(null), le = i(0), V = i(null), oe = i(null), ae = i(null), se = i(null), ne = i(null), ue = i(0), re = i(0), ie = i(0), e = f({
33
+ setup(Fe, { expose: Le, emit: Re }) {
34
+ const Me = S(() => import("./vue-ui-accordion-CVnA550V.js")), Ve = S(() => import("./DataTable-D0VYDhfx.js")), ze = S(() => import("./PackageVersion-5TR4ocqp.js")), Ue = S(() => import("./PenAndPaper-D6AqipIO.js")), Ee = S(() => import("./vue-ui-skeleton-DJPjyNYn.js")), We = S(() => import("./Tooltip-CoQnTnr-.js")), Be = S(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_rings: De } = ut(), Ge = tt(), b = Fe, O = i(!1), E = f(() => !!b.dataset && b.dataset.length), w = i(Se()), He = i(null), W = i(!1), X = i(""), $ = i(null), le = i(0), I = i(null), oe = i(null), ae = i(null), se = i(null), ne = i(null), ue = i(0), re = i(0), ie = i(0), e = f({
34
35
  get: () => pe(),
35
36
  set: (t) => t
36
- }), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = $t({ config: e.value }), { svgRef: de } = Tt({ config: e.value.style.chart.title });
37
+ }), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = Tt({ config: e.value }), { svgRef: de } = _t({ config: e.value.style.chart.title });
37
38
  function pe() {
38
- const t = Pe({
39
+ const t = Ae({
39
40
  userConfig: b.config,
40
- defaultConfig: Ee
41
+ defaultConfig: De
41
42
  });
42
43
  return t.theme ? {
43
- ...Pe({
44
- userConfig: rt.vue_ui_rings[t.theme] || b.config,
44
+ ...Ae({
45
+ userConfig: it.vue_ui_rings[t.theme] || b.config,
45
46
  defaultConfig: t
46
47
  }),
47
- customPalette: ut[t.theme] || P
48
+ customPalette: rt[t.theme] || A
48
49
  } : t;
49
50
  }
50
- tt(() => b.config, (t) => {
51
+ lt(() => b.config, (t) => {
51
52
  e.value = pe(), q.value = !e.value.userOptions.showOnChartHover, he(), ue.value += 1, re.value += 1, ie.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
52
53
  }, { deep: !0 });
53
- const _ = _e(null), F = _e(null);
54
- lt(() => {
54
+ const _ = xe(null), L = xe(null);
55
+ ot(() => {
55
56
  he();
56
57
  });
57
58
  function he() {
58
- if (it(b.dataset) ? te({
59
+ if (vt(b.dataset) ? te({
59
60
  componentName: "VueUiRings",
60
61
  type: "dataset"
61
62
  }) : b.dataset.forEach((t, o) => {
62
63
  t.values.length || te({
63
64
  componentName: "VueUiRings",
64
65
  type: "dataset"
65
- }), vt({
66
+ }), ct({
66
67
  datasetObject: t,
67
68
  requiredAttributes: ["name", "values"]
68
69
  }).forEach((l) => {
@@ -74,9 +75,9 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
74
75
  });
75
76
  });
76
77
  }), e.value.responsive) {
77
- const t = kt(() => {
78
- const { width: o, height: l } = Ct({
79
- chart: V.value,
78
+ const t = Ct(() => {
79
+ const { width: o, height: l } = wt({
80
+ chart: I.value,
80
81
  title: e.value.style.chart.title.text ? oe.value : null,
81
82
  legend: e.value.style.chart.legend.show ? ae.value : null,
82
83
  source: se.value,
@@ -86,73 +87,73 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
86
87
  n.value.width = o, n.value.height = l;
87
88
  });
88
89
  });
89
- _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = V.value.parentNode, _.value.observe(F.value);
90
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = I.value.parentNode, _.value.observe(L.value);
90
91
  }
91
92
  setTimeout(() => {
92
93
  O.value = !0;
93
94
  }, 600);
94
95
  }
95
- ot(() => {
96
- _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
96
+ at(() => {
97
+ _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
97
98
  });
98
- const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = wt({
99
+ const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = $t({
99
100
  elementId: `rings_${w.value}`,
100
101
  fileName: e.value.style.chart.title.text || "vue-ui-rings",
101
102
  options: e.value.userOptions.print
102
- }), He = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() => ct(e.value.customPalette)), k = i({
103
+ }), je = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = f(() => dt(e.value.customPalette)), k = i({
103
104
  showTable: e.value.table.show,
104
105
  showTooltip: e.value.style.chart.tooltip.show
105
106
  }), n = i({
106
107
  height: 360,
107
108
  width: 360
108
- }), je = f(() => Math.min(n.value.height, n.value.width)), Xe = Le, y = i([]);
109
+ }), Xe = f(() => Math.min(n.value.height, n.value.width)), qe = Re, y = i([]);
109
110
  function Y(t) {
110
- y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Xe("selectLegend", h.value.map((o) => ({
111
+ y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), qe("selectLegend", h.value.map((o) => ({
111
112
  name: o.name,
112
113
  color: o.color,
113
114
  value: o.value
114
115
  })));
115
116
  }
116
- const qe = f(() => Math.max(
117
- ...E.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
117
+ const Ye = f(() => Math.max(
118
+ ...B.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
118
119
  ));
119
120
  function ke(t) {
120
- return t / qe.value;
121
+ return t / Ye.value;
121
122
  }
122
- const E = f(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
123
- const r = dt(t).reduce((v, z) => v + z, 0);
123
+ const B = f(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
124
+ const r = pt(t).reduce((v, z) => v + z, 0);
124
125
  return {
125
126
  name: o,
126
- color: l || Se(l) || be.value[a] || P[a] || P[a % P.length],
127
+ color: l || Ne(l) || be.value[a] || A[a] || A[a % A.length],
127
128
  value: r,
128
- proportion: r / b.dataset.map((v) => (v.values || []).reduce((z, Ze) => z + Ze, 0)).reduce((v, z) => v + z, 0),
129
- uid: Ie(),
129
+ proportion: r / b.dataset.map((v) => (v.values || []).reduce((z, et) => z + et, 0)).reduce((v, z) => v + z, 0),
130
+ uid: Se(),
130
131
  absoluteIndex: a
131
132
  };
132
- })), Ce = f(() => E.value.map((t) => ({
133
+ })), Ce = f(() => B.value.map((t) => ({
133
134
  ...t,
134
135
  shape: "circle",
135
136
  opacity: y.value.includes(t.uid) ? 0.5 : 1,
136
137
  segregate: () => Y(t.uid),
137
138
  isSegregated: y.value.includes(t.uid)
138
- })).toSorted((t, o) => o.value - t.value)), Ye = f(() => ({
139
+ })).toSorted((t, o) => o.value - t.value)), Je = f(() => ({
139
140
  cy: "rings-div-legend",
140
141
  backgroundColor: e.value.style.chart.legend.backgroundColor,
141
142
  color: e.value.style.chart.legend.color,
142
143
  fontSize: e.value.style.chart.legend.fontSize,
143
144
  paddingBottom: 12,
144
145
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
145
- })), C = f(() => E.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), h = f(() => E.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, v) => ({
146
+ })), C = f(() => B.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), h = f(() => B.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, v) => ({
146
147
  absoluteIndex: r,
147
148
  uid: a,
148
149
  name: t,
149
- color: l || Se(l) || be.value[v] || P[v] || P[v % P.length],
150
+ color: l || Ne(l) || be.value[v] || A[v] || A[v % A.length],
150
151
  value: o,
151
152
  proportion: ke(o),
152
153
  percentage: o / C.value * 100,
153
154
  strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
154
155
  })).toSorted((t, o) => o.value - t.value));
155
- function Je() {
156
+ function Ke() {
156
157
  return h.value.map(
157
158
  ({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
158
159
  name: t,
@@ -163,8 +164,8 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
163
164
  })
164
165
  );
165
166
  }
166
- const d = f(() => je.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
167
- function Ke(t, o) {
167
+ const d = f(() => Xe.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
168
+ function Qe(t, o) {
168
169
  if (y.value.length === b.dataset.length) return;
169
170
  J.value = {
170
171
  datapoint: o,
@@ -173,7 +174,7 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
173
174
  config: e.value
174
175
  }, $.value = t;
175
176
  const l = h.value[t], a = e.value.style.chart.tooltip.customFormat;
176
- if (mt(a) && bt(() => a({
177
+ if (bt(a) && kt(() => a({
177
178
  seriesIndex: t,
178
179
  datapoint: o,
179
180
  series: h.value,
@@ -187,10 +188,10 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
187
188
  });
188
189
  else {
189
190
  let r = "";
190
- 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}" />${De.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Ne(
191
+ 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}" />${Ge.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Pe(
191
192
  e.value.style.chart.layout.labels.dataLabels.formatter,
192
193
  l.value,
193
- A({
194
+ F({
194
195
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
195
196
  v: l.value,
196
197
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -198,17 +199,17 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
198
199
  }),
199
200
  { datapoint: o, seriesIndex: t }
200
201
  )}
201
- </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${A({
202
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${F({
202
203
  v: l.value / C.value * 100,
203
204
  s: "%",
204
205
  r: e.value.style.chart.tooltip.roundingPercentage
205
- })})</span></div>` : r += `<b>${A({
206
+ })})</span></div>` : r += `<b>${F({
206
207
  v: l.value / C.value * 100,
207
208
  s: "%",
208
209
  r: e.value.style.chart.tooltip.roundingPercentage
209
210
  })}</b></div>`), X.value = r;
210
211
  }
211
- B.value = !0;
212
+ W.value = !0;
212
213
  }
213
214
  const x = f(() => {
214
215
  const t = h.value.map((l) => ({
@@ -219,14 +220,14 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
219
220
  }), D = f(() => {
220
221
  const t = [
221
222
  ' <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>',
222
- A({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
223
+ F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
223
224
  "100%"
224
225
  ], o = x.value.head.map((r, v) => [
225
226
  {
226
227
  color: r.color,
227
228
  name: r.name
228
229
  },
229
- A({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
230
+ F({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
230
231
  isNaN(x.value.body[v] / C.value) ? "-" : (x.value.body[v] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
231
232
  ]), l = {
232
233
  th: {
@@ -253,47 +254,54 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
253
254
  };
254
255
  });
255
256
  function we(t = null) {
256
- st(() => {
257
+ nt(() => {
257
258
  const o = x.value.head.map((r, v) => [[
258
259
  r.name
259
- ], [x.value.body[v]], [isNaN(x.value.body[v] / C.value) ? "-" : x.value.body[v] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = ft(l);
260
- t ? t(a) : yt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
260
+ ], [x.value.body[v]], [isNaN(x.value.body[v] / C.value) ? "-" : x.value.body[v] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = yt(l);
261
+ t ? t(a) : mt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
261
262
  });
262
263
  }
263
- const L = i(!1);
264
- function Qe(t) {
265
- L.value = t, le.value += 1;
264
+ const R = i(!1);
265
+ function $e(t) {
266
+ R.value = t, le.value += 1;
266
267
  }
267
- function $e() {
268
+ function Te() {
268
269
  k.value.showTable = !k.value.showTable;
269
270
  }
270
- function Te() {
271
+ function _e() {
271
272
  k.value.showTooltip = !k.value.showTooltip;
272
273
  }
273
274
  const G = i(!1);
274
275
  function K() {
275
276
  G.value = !G.value;
276
277
  }
277
- return Fe({
278
- getData: Je,
278
+ async function Ze({ scale: t = 2 } = {}) {
279
+ if (!I.value) return;
280
+ const { imageUri: o, base64: l } = await St({ domElement: I.value, base64: !0, img: !0, scale: t });
281
+ return { imageUri: o, base64: l };
282
+ }
283
+ return Le({
284
+ getData: Ke,
285
+ getImage: Ze,
279
286
  generatePdf: ye,
280
287
  generateCsv: we,
281
288
  generateImage: me,
282
- toggleTable: $e,
283
- toggleTooltip: Te,
284
- toggleAnnotator: K
289
+ toggleTable: Te,
290
+ toggleTooltip: _e,
291
+ toggleAnnotator: K,
292
+ toggleFullscreen: $e
285
293
  }), (t, o) => (u(), c("div", {
286
294
  ref_key: "ringsChart",
287
- ref: V,
288
- class: U(`vue-ui-rings ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
289
- style: S(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
295
+ ref: I,
296
+ class: U(`vue-ui-rings ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
297
+ style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
290
298
  id: `rings_${w.value}`,
291
299
  onMouseleave: o[3] || (o[3] = (l) => {
292
- $.value = null, B.value = !1, s(ve)(!1);
300
+ $.value = null, W.value = !1, s(ve)(!1);
293
301
  }),
294
302
  onMouseenter: o[4] || (o[4] = () => s(ve)(!0))
295
303
  }, [
296
- e.value.userOptions.buttons.annotator ? (u(), N(s(ze), {
304
+ e.value.userOptions.buttons.annotator ? (u(), P(s(Ue), {
297
305
  key: 0,
298
306
  svgRef: s(de),
299
307
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -301,7 +309,7 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
301
309
  active: G.value,
302
310
  onClose: K
303
311
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
304
- He.value ? (u(), c("div", {
312
+ je.value ? (u(), c("div", {
305
313
  key: 1,
306
314
  ref_key: "noTitle",
307
315
  ref: ne,
@@ -314,7 +322,7 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
314
322
  ref: oe,
315
323
  style: "width:100%;background:transparent"
316
324
  }, [
317
- (u(), N(xt, {
325
+ (u(), P(Ot, {
318
326
  key: `title_${ue.value}`,
319
327
  config: {
320
328
  title: {
@@ -328,9 +336,9 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
328
336
  }
329
337
  }, null, 8, ["config"]))
330
338
  ], 512)) : m("", !0),
331
- e.value.userOptions.show && W.value && (s(ce) || s(q)) ? (u(), N(s(Be), {
339
+ e.value.userOptions.show && E.value && (s(ce) || s(q)) ? (u(), P(s(Be), {
332
340
  ref_key: "details",
333
- ref: Ge,
341
+ ref: He,
334
342
  key: `user_options_${le.value}`,
335
343
  backgroundColor: e.value.style.chart.backgroundColor,
336
344
  color: e.value.style.chart.color,
@@ -344,29 +352,29 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
344
352
  hasTable: e.value.userOptions.buttons.table,
345
353
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
346
354
  isTooltip: k.value.showTooltip,
347
- isFullscreen: L.value,
355
+ isFullscreen: R.value,
348
356
  titles: { ...e.value.userOptions.buttonTitles },
349
- chartElement: V.value,
357
+ chartElement: I.value,
350
358
  position: e.value.userOptions.position,
351
359
  hasAnnotator: e.value.userOptions.buttons.annotator,
352
360
  isAnnotation: G.value,
353
361
  callbacks: e.value.userOptions.callbacks,
354
362
  printScale: e.value.userOptions.print.scale,
355
- onToggleFullscreen: Qe,
363
+ onToggleFullscreen: $e,
356
364
  onGeneratePdf: s(ye),
357
365
  onGenerateCsv: we,
358
366
  onGenerateImage: s(me),
359
- onToggleTable: $e,
360
- onToggleTooltip: Te,
367
+ onToggleTable: Te,
368
+ onToggleTooltip: _e,
361
369
  onToggleAnnotator: K,
362
- style: S({
370
+ style: N({
363
371
  visibility: s(ce) ? s(q) ? "visible" : "hidden" : "visible"
364
372
  })
365
- }, xe({ _: 2 }, [
373
+ }, Oe({ _: 2 }, [
366
374
  t.$slots.menuIcon ? {
367
375
  name: "menuIcon",
368
376
  fn: g(({ isOpen: l, color: a }) => [
369
- p(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
377
+ p(t.$slots, "menuIcon", M(V({ isOpen: l, color: a })), void 0, !0)
370
378
  ]),
371
379
  key: "0"
372
380
  } : void 0,
@@ -408,28 +416,28 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
408
416
  t.$slots.optionFullscreen ? {
409
417
  name: "optionFullscreen",
410
418
  fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
411
- p(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
419
+ p(t.$slots, "optionFullscreen", M(V({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
412
420
  ]),
413
421
  key: "6"
414
422
  } : void 0,
415
423
  t.$slots.optionAnnotator ? {
416
424
  name: "optionAnnotator",
417
425
  fn: g(({ toggleAnnotator: l, isAnnotator: a }) => [
418
- p(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
426
+ p(t.$slots, "optionAnnotator", M(V({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
419
427
  ]),
420
428
  key: "7"
421
429
  } : void 0
422
430
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
423
- W.value ? (u(), c("svg", {
431
+ E.value ? (u(), c("svg", {
424
432
  key: 4,
425
433
  ref_key: "svgRef",
426
434
  ref: de,
427
- xmlns: s(pt),
428
- class: U({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
435
+ xmlns: s(ht),
436
+ class: U({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value }),
429
437
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
430
- style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
438
+ style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
431
439
  }, [
432
- Q(s(Ve)),
440
+ Q(s(ze)),
433
441
  t.$slots["chart-background"] ? (u(), c("foreignObject", {
434
442
  key: 0,
435
443
  x: 0,
@@ -441,7 +449,7 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
441
449
  }
442
450
  }, [
443
451
  p(t.$slots, "chart-background", {}, void 0, !0)
444
- ], 8, Pt)) : m("", !0),
452
+ ], 8, Ft)) : m("", !0),
445
453
  T("defs", null, [
446
454
  (u(!0), c(Z, null, ee(h.value, (l, a) => (u(), c("radialGradient", {
447
455
  cx: "50%",
@@ -453,17 +461,17 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
453
461
  }, [
454
462
  T("stop", {
455
463
  offset: "0%",
456
- "stop-color": s(ht)(s(gt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
457
- }, null, 8, Ft),
464
+ "stop-color": s(gt)(s(ft)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
465
+ }, null, 8, Rt),
458
466
  T("stop", {
459
467
  offset: "100%",
460
468
  "stop-color": l.color
461
- }, null, 8, Lt)
462
- ], 8, At))), 256))
469
+ }, null, 8, Mt)
470
+ ], 8, Lt))), 256))
463
471
  ]),
464
- t.$slots.pattern ? (u(), c("g", Rt, [
472
+ t.$slots.pattern ? (u(), c("g", Vt, [
465
473
  (u(!0), c(Z, null, ee(h.value, (l) => (u(), c("defs", null, [
466
- p(t.$slots, "pattern", at({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
474
+ p(t.$slots, "pattern", st({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
467
475
  ]))), 256))
468
476
  ])) : m("", !0),
469
477
  (u(!0), c(Z, null, ee(h.value, (l, a) => (u(), c("g", null, [
@@ -473,13 +481,13 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
473
481
  "vue-rings-item-onload": !O.value && e.value.useCssAnimation,
474
482
  "vue-ui-rings-opacity": $.value !== null && $.value !== a
475
483
  }),
476
- style: S(`animation-delay:${a * 100}ms`),
484
+ style: N(`animation-delay:${a * 100}ms`),
477
485
  stroke: e.value.style.chart.layout.rings.stroke,
478
486
  cx: n.value.width / 2,
479
487
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
480
488
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
481
489
  fill: e.value.style.chart.layout.rings.gradient.underlayerColor
482
- }, null, 14, Mt),
490
+ }, null, 14, zt),
483
491
  T("circle", {
484
492
  class: U({
485
493
  "vue-ui-rings-item": O.value && e.value.useCssAnimation,
@@ -487,14 +495,14 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
487
495
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
488
496
  "vue-ui-rings-blur": $.value !== null && $.value !== a
489
497
  }),
490
- style: S(`animation-delay:${a * 100}ms`),
498
+ style: N(`animation-delay:${a * 100}ms`),
491
499
  stroke: e.value.style.chart.layout.rings.stroke,
492
500
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
493
501
  cx: n.value.width / 2,
494
502
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
495
503
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
496
504
  fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${a})` : l.color
497
- }, null, 14, Vt),
505
+ }, null, 14, Ut),
498
506
  t.$slots.pattern ? (u(), c("circle", {
499
507
  key: 0,
500
508
  class: U({
@@ -503,32 +511,32 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
503
511
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
504
512
  "vue-ui-rings-blur": $.value !== null && $.value !== a
505
513
  }),
506
- style: S(`animation-delay:${a * 100}ms`),
514
+ style: N(`animation-delay:${a * 100}ms`),
507
515
  stroke: e.value.style.chart.layout.rings.stroke,
508
516
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
509
517
  cx: n.value.width / 2,
510
518
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
511
519
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
512
520
  fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
513
- }, null, 14, zt)) : m("", !0),
521
+ }, null, 14, Et)) : m("", !0),
514
522
  T("circle", {
515
523
  stroke: "none",
516
524
  cx: n.value.width / 2,
517
525
  cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + d.value * h.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
518
526
  r: s(j)(d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9),
519
527
  fill: "transparent",
520
- onMouseenter: (r) => Ke(a, l),
528
+ onMouseenter: (r) => Qe(a, l),
521
529
  onMouseleave: o[0] || (o[0] = (r) => {
522
- $.value = null, B.value = !1;
530
+ $.value = null, W.value = !1;
523
531
  })
524
- }, null, 40, Ut)
532
+ }, null, 40, Wt)
525
533
  ]))), 256)),
526
534
  p(t.$slots, "svg", { svg: n.value }, void 0, !0)
527
- ], 14, Nt)) : m("", !0),
528
- t.$slots.watermark ? (u(), c("div", Wt, [
529
- p(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
535
+ ], 14, At)) : m("", !0),
536
+ t.$slots.watermark ? (u(), c("div", Bt, [
537
+ p(t.$slots, "watermark", M(V({ isPrinting: s(ge) || s(fe) })), void 0, !0)
530
538
  ])) : m("", !0),
531
- W.value ? m("", !0) : (u(), N(s(Ue), {
539
+ E.value ? m("", !0) : (u(), P(s(Ee), {
532
540
  key: 6,
533
541
  config: {
534
542
  type: "rings",
@@ -544,21 +552,21 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
544
552
  ref_key: "chartLegend",
545
553
  ref: ae
546
554
  }, [
547
- e.value.style.chart.legend.show ? (u(), N(_t, {
555
+ e.value.style.chart.legend.show ? (u(), P(xt, {
548
556
  key: `legend_${ie.value}`,
549
557
  legendSet: Ce.value,
550
- config: Ye.value,
558
+ config: Je.value,
551
559
  onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
552
- }, xe({
560
+ }, Oe({
553
561
  item: g(({ legend: l, index: a }) => [
554
562
  T("div", {
555
563
  onClick: (r) => Y(l.uid),
556
- style: S(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
564
+ style: N(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
557
565
  }, [
558
- Oe(H(l.name) + ": " + H(s(Ne)(
566
+ Ie(H(l.name) + ": " + H(s(Pe)(
559
567
  e.value.style.chart.layout.labels.dataLabels.formatter,
560
568
  l.value,
561
- s(A)({
569
+ s(F)({
562
570
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
563
571
  v: l.value,
564
572
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -566,19 +574,19 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
566
574
  }),
567
575
  { datapoint: l, seriesIndex: a }
568
576
  )) + " ", 1),
569
- y.value.includes(l.uid) ? (u(), c("span", Dt, " ( - % ) ")) : (u(), c("span", Et, " (" + H(isNaN(l.value / C.value) ? "-" : s(A)({
577
+ y.value.includes(l.uid) ? (u(), c("span", Ht, " ( - % ) ")) : (u(), c("span", Gt, " (" + H(isNaN(l.value / C.value) ? "-" : s(F)({
570
578
  v: l.value / C.value * 100,
571
579
  s: "%",
572
580
  r: e.value.style.chart.legend.roundingPercentage
573
581
  })) + ") ", 1))
574
- ], 12, Bt)
582
+ ], 12, Dt)
575
583
  ]),
576
584
  _: 2
577
585
  }, [
578
586
  t.$slots.pattern ? {
579
587
  name: "legend-pattern",
580
588
  fn: g(({ legend: l, index: a }) => [
581
- Q(Ot, {
589
+ Q(It, {
582
590
  shape: l.shape,
583
591
  radius: 30,
584
592
  stroke: "none",
@@ -602,7 +610,7 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
602
610
  p(t.$slots, "source", {}, void 0, !0)
603
611
  ], 512)) : m("", !0),
604
612
  Q(s(We), {
605
- show: k.value.showTooltip && B.value && y.value.length < b.dataset.length,
613
+ show: k.value.showTooltip && W.value && y.value.length < b.dataset.length,
606
614
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
607
615
  color: e.value.style.chart.tooltip.color,
608
616
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -612,20 +620,20 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
612
620
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
613
621
  position: e.value.style.chart.tooltip.position,
614
622
  offsetY: e.value.style.chart.tooltip.offsetY,
615
- parent: V.value,
623
+ parent: I.value,
616
624
  content: X.value,
617
- isFullscreen: L.value,
625
+ isFullscreen: R.value,
618
626
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
619
627
  }, {
620
628
  "tooltip-before": g(() => [
621
- p(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
629
+ p(t.$slots, "tooltip-before", M(V({ ...J.value })), void 0, !0)
622
630
  ]),
623
631
  "tooltip-after": g(() => [
624
- p(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
632
+ p(t.$slots, "tooltip-after", M(V({ ...J.value })), void 0, !0)
625
633
  ]),
626
634
  _: 3
627
635
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
628
- W.value ? (u(), N(s(Re), {
636
+ E.value ? (u(), P(s(Me), {
629
637
  key: 8,
630
638
  hideDetails: "",
631
639
  config: {
@@ -642,7 +650,7 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
642
650
  }
643
651
  }, {
644
652
  content: g(() => [
645
- (u(), N(s(Me), {
653
+ (u(), P(s(Ve), {
646
654
  key: `table_${re.value}`,
647
655
  colNames: D.value.colNames,
648
656
  head: D.value.head,
@@ -655,19 +663,19 @@ const St = ["id"], Nt = ["xmlns", "viewBox"], Pt = ["width", "height"], At = ["i
655
663
  T("div", {
656
664
  innerHTML: l,
657
665
  style: { display: "flex", "align-items": "center" }
658
- }, null, 8, Gt)
666
+ }, null, 8, jt)
659
667
  ]),
660
668
  td: g(({ td: l }) => [
661
- Oe(H(l.name || l), 1)
669
+ Ie(H(l.name || l), 1)
662
670
  ]),
663
671
  _: 1
664
672
  }, 8, ["colNames", "head", "body", "config", "title"]))
665
673
  ]),
666
674
  _: 1
667
675
  }, 8, ["config"])) : m("", !0)
668
- ], 46, St));
676
+ ], 46, Pt));
669
677
  }
670
- }, ol = /* @__PURE__ */ It(Ht, [["__scopeId", "data-v-f5f85f29"]]);
678
+ }, nl = /* @__PURE__ */ Nt(Xt, [["__scopeId", "data-v-ca1ab522"]]);
671
679
  export {
672
- ol as default
680
+ nl as default
673
681
  };