vue-data-ui 3.0.2 → 3.0.4

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 (91) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
  41. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
  42. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
  88. package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
  89. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
@@ -1,20 +1,20 @@
1
- import { defineAsyncComponent as R, useSlots as rt, ref as r, computed as f, toRefs as it, watch as le, shallowRef as Pe, onMounted as vt, onBeforeUnmount as ct, createElementBlock as d, openBlock as i, unref as s, normalizeStyle as O, normalizeClass as B, createBlock as S, createCommentVNode as b, createElementVNode as A, createVNode as ae, createSlots as Ne, withCtx as g, renderSlot as h, normalizeProps as D, guardReactiveProps as M, Fragment as oe, renderList as se, mergeProps as dt, toDisplayString as E, createTextVNode as ht, nextTick as pt } from "vue";
2
- import { u as gt, c as Le, t as ft, a as yt, p as P, b as mt, o as Ve, f as ne, g as bt, d as kt, G as wt, e as Re, i as N, X as Ct, s as $t, x as Tt, h as X, k as De, v as _t, w as xt, y as At, z as Ft } from "./index-B9Ct1B_p.js";
3
- import { t as It, u as Ot } from "./useResponsive-DfdjqQps.js";
4
- import { u as St } from "./usePrinter-DcZXg1hH.js";
5
- import { u as Pt, B as Nt } from "./useLoading-D7YHNtLX.js";
6
- import { u as Me } from "./useNestedProp-C0gKxLur.js";
7
- import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
9
- import Rt from "./Legend-CQsASoei.js";
10
- import Dt from "./Title-CntvKJss.js";
11
- import { _ as Mt } from "./Shape-0sW2StrO.js";
12
- import zt from "./img-Cv4nScI0.js";
13
- import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["id"], Ht = ["stop-color"], jt = ["stop-color"], Xt = { key: 1 }, Yt = ["stroke", "cx", "cy", "r", "fill"], qt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Jt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Kt = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Qt = {
1
+ import { defineAsyncComponent as R, useSlots as it, ref as r, computed as f, toRefs as vt, watch as le, shallowRef as Ne, onMounted as ct, onBeforeUnmount as dt, createElementBlock as d, openBlock as i, unref as s, normalizeStyle as S, normalizeClass as B, createBlock as F, createCommentVNode as b, createElementVNode as $, createVNode as ae, createSlots as Le, withCtx as g, renderSlot as h, normalizeProps as D, guardReactiveProps as M, Fragment as oe, renderList as se, mergeProps as ht, Teleport as pt, toDisplayString as E, createTextVNode as gt, nextTick as ft } from "vue";
2
+ import { u as yt, c as Ve, t as mt, a as bt, p as P, b as kt, o as Re, f as ne, g as wt, d as Ct, G as $t, e as De, i as N, X as Tt, s as _t, x as xt, h as X, k as Me, v as At, w as Ft, y as It, z as Ot } from "./index-q-LPw2IT.js";
3
+ import { t as St, u as Pt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Nt } from "./usePrinter-DX7efa1s.js";
5
+ import { u as Lt, B as Vt } from "./useLoading-D7YHNtLX.js";
6
+ import { u as ze } from "./useNestedProp-04aFeUYu.js";
7
+ import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Mt from "./Legend-DcDSkq99.js";
10
+ import zt from "./Title-B55R8CAZ.js";
11
+ import { _ as Bt } from "./Shape-DHIaJs9G.js";
12
+ import Et from "./img-Ctts6JQb.js";
13
+ import { _ as Ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Wt = ["id"], Gt = ["id"], Ht = ["xmlns", "viewBox"], jt = ["width", "height"], Xt = ["id"], Yt = ["stop-color"], qt = ["stop-color"], Jt = { key: 1 }, Kt = ["stroke", "cx", "cy", "r", "fill"], Qt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Zt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], el = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], tl = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
- }, Zt = ["onClick"], el = ["innerHTML"], tl = {
17
+ }, ll = ["id"], al = ["onClick"], ol = ["innerHTML"], sl = {
18
18
  __name: "vue-ui-rings",
19
19
  props: {
20
20
  config: {
@@ -31,9 +31,9 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(ze, { expose: Be, emit: Ee }) {
35
- const Ue = R(() => import("./vue-ui-accordion-B31QK9Hj.js")), We = R(() => import("./DataTable-osx68WLA.js")), Ge = R(() => import("./PackageVersion-DZGrOKw5.js")), He = R(() => import("./PenAndPaper-CdXspg5R.js")), je = R(() => import("./Tooltip-DF8e4iB9.js")), Xe = R(() => import("./UserOptions-DQyIO0ts.js")), { vue_ui_rings: Ye } = gt(), qe = rt(), m = ze, F = r(!1), ue = f(() => !!m.dataset && m.dataset.length), C = r(Le()), Je = r(null), U = r(!1), Y = r(""), $ = r(null), re = r(0), T = r(null), ie = r(null), ve = r(null), ce = r(null), de = r(null), he = r(0), pe = r(0), ge = r(0), q = r(!1), e = r(K()), { loading: I, FINAL_DATASET: fe, manualLoading: W } = Pt({
36
- ...it(m),
34
+ setup(Be, { expose: Ee, emit: Ue }) {
35
+ const We = R(() => import("./vue-ui-accordion-D46i_gkB.js")), Ge = R(() => import("./DataTable-rj9-mAwF.js")), He = R(() => import("./PackageVersion-5ZjKSIei.js")), je = R(() => import("./PenAndPaper-BJ0hcgsa.js")), Xe = R(() => import("./Tooltip-BMOddG-M.js")), Ye = R(() => import("./UserOptions-DVzyjG-W.js")), { vue_ui_rings: qe } = yt(), Je = it(), k = Be, I = r(!1), ue = f(() => !!k.dataset && k.dataset.length), y = r(Ve()), Ke = r(null), U = r(!1), Y = r(""), T = r(null), re = r(0), _ = r(null), ie = r(null), ve = r(null), ce = r(null), de = r(null), he = r(0), pe = r(0), ge = r(0), q = r(!1), fe = r(!1), e = r(K()), { loading: O, FINAL_DATASET: ye, manualLoading: W } = Lt({
36
+ ...vt(k),
37
37
  FINAL_CONFIG: e,
38
38
  prepareConfig: K,
39
39
  skeletonDataset: [
@@ -43,7 +43,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
43
43
  { name: "_", values: [3], color: "#C4C4C4" },
44
44
  { name: "_", values: [2], color: "#DBDBDB" }
45
45
  ],
46
- skeletonConfig: ft({
46
+ skeletonConfig: mt({
47
47
  defaultConfig: e.value,
48
48
  userConfig: {
49
49
  userOptions: { show: !1 },
@@ -66,41 +66,41 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
66
66
  }
67
67
  }
68
68
  })
69
- }), { userOptionsVisible: J, setUserOptionsVisibility: ye, keepUserOptionState: me } = Lt({ config: e.value }), { svgRef: be } = Vt({ config: e.value.style.chart.title });
69
+ }), { userOptionsVisible: J, setUserOptionsVisibility: me, keepUserOptionState: be } = Rt({ config: e.value }), { svgRef: ke } = Dt({ config: e.value.style.chart.title });
70
70
  function K() {
71
- const t = Me({
72
- userConfig: m.config,
73
- defaultConfig: Ye
71
+ const t = ze({
72
+ userConfig: k.config,
73
+ defaultConfig: qe
74
74
  });
75
75
  return t.theme ? {
76
- ...Me({
77
- userConfig: mt.vue_ui_rings[t.theme] || m.config,
76
+ ...ze({
77
+ userConfig: kt.vue_ui_rings[t.theme] || k.config,
78
78
  defaultConfig: t
79
79
  }),
80
- customPalette: yt[t.theme] || P
80
+ customPalette: bt[t.theme] || P
81
81
  } : t;
82
82
  }
83
- le(() => m.config, (t) => {
84
- I.value || (e.value = K()), J.value = !e.value.userOptions.showOnChartHover, ke(), he.value += 1, pe.value += 1, ge.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
85
- }, { deep: !0 }), le(() => m.dataset, (t) => {
83
+ le(() => k.config, (t) => {
84
+ O.value || (e.value = K()), J.value = !e.value.userOptions.showOnChartHover, we(), he.value += 1, pe.value += 1, ge.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
85
+ }, { deep: !0 }), le(() => k.dataset, (t) => {
86
86
  Array.isArray(t) && t.length > 0 && (W.value = !1);
87
87
  }, { deep: !0 });
88
- const _ = Pe(null), L = Pe(null);
89
- vt(() => {
90
- ke();
88
+ const x = Ne(null), L = Ne(null);
89
+ ct(() => {
90
+ fe.value = !0, we();
91
91
  });
92
92
  const Q = f(() => !!e.value.debug);
93
- function ke() {
94
- if (Ve(m.dataset) ? (ne({
93
+ function we() {
94
+ if (Re(k.dataset) ? (ne({
95
95
  componentName: "VueUiRings",
96
96
  type: "dataset",
97
97
  debug: Q.value
98
- }), W.value = !0) : m.dataset.forEach((t, a) => {
98
+ }), W.value = !0) : k.dataset.forEach((t, a) => {
99
99
  t.values.length || (ne({
100
100
  componentName: "VueUiRings",
101
101
  type: "dataset",
102
102
  debug: Q.value
103
- }), W.value = !0), bt({
103
+ }), W.value = !0), wt({
104
104
  datasetObject: t,
105
105
  requiredAttributes: ["name", "values"]
106
106
  }).forEach((l) => {
@@ -112,11 +112,11 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
112
112
  debug: Q.value
113
113
  });
114
114
  });
115
- }), Ve(m.dataset) || (W.value = e.value.loading), e.value.responsive) {
116
- const t = It(() => {
115
+ }), Re(k.dataset) || (W.value = e.value.loading), e.value.responsive) {
116
+ const t = St(() => {
117
117
  q.value = !0;
118
- const { width: a, height: l } = Ot({
119
- chart: T.value,
118
+ const { width: a, height: l } = Pt({
119
+ chart: _.value,
120
120
  title: e.value.style.chart.title.text ? ie.value : null,
121
121
  legend: e.value.style.chart.legend.show ? ve.value : null,
122
122
  source: ce.value,
@@ -126,25 +126,25 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
126
126
  n.value.width = a, n.value.height = l - 12, q.value = !1;
127
127
  });
128
128
  });
129
- _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = T.value.parentNode, _.value.observe(L.value);
129
+ x.value && (L.value && x.value.unobserve(L.value), x.value.disconnect()), x.value = new ResizeObserver(t), L.value = _.value.parentNode, x.value.observe(L.value);
130
130
  }
131
131
  setTimeout(() => {
132
- F.value = !0;
132
+ I.value = !0;
133
133
  }, 600);
134
134
  }
135
- ct(() => {
136
- _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
135
+ dt(() => {
136
+ x.value && (L.value && x.value.unobserve(L.value), x.value.disconnect());
137
137
  });
138
- const { isPrinting: we, isImaging: Ce, generatePdf: $e, generateImage: Te } = St({
139
- elementId: `rings_${C.value}`,
138
+ const { isPrinting: Ce, isImaging: $e, generatePdf: Te, generateImage: _e } = Nt({
139
+ elementId: `rings_${y.value}`,
140
140
  fileName: e.value.style.chart.title.text || "vue-ui-rings",
141
141
  options: e.value.userOptions.print
142
- }), Ke = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), _e = f(() => kt(e.value.customPalette)), k = r({
142
+ }), Qe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), xe = f(() => Ct(e.value.customPalette)), w = r({
143
143
  showTable: e.value.table.show,
144
144
  showTooltip: e.value.style.chart.tooltip.show
145
145
  });
146
146
  le(e, () => {
147
- k.value = {
147
+ w.value = {
148
148
  showTable: e.value.table.show,
149
149
  showTooltip: e.value.style.chart.tooltip.show
150
150
  };
@@ -152,54 +152,54 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
152
152
  const n = r({
153
153
  height: 360,
154
154
  width: 360
155
- }), Qe = f(() => Math.min(n.value.height, n.value.width)), Ze = Ee, y = r([]);
155
+ }), Ze = f(() => Math.min(n.value.height, n.value.width)), et = Ue, m = r([]);
156
156
  function Z(t) {
157
- y.value.includes(t) ? y.value = y.value.filter((a) => a !== t) : y.value.push(t), Ze("selectLegend", p.value.map((a) => ({
157
+ m.value.includes(t) ? m.value = m.value.filter((a) => a !== t) : m.value.push(t), et("selectLegend", p.value.map((a) => ({
158
158
  name: a.name,
159
159
  color: a.color,
160
160
  value: a.value
161
161
  })));
162
162
  }
163
- const et = f(() => Math.max(
164
- ...G.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t)
163
+ const tt = f(() => Math.max(
164
+ ...G.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
165
165
  ));
166
- function xe(t) {
167
- return t / et.value;
166
+ function Ae(t) {
167
+ return t / tt.value;
168
168
  }
169
- const G = f(() => fe.value.map(({ values: t, name: a, color: l = null }, o) => {
170
- const u = wt(t).reduce((v, z) => v + z, 0);
169
+ const G = f(() => ye.value.map(({ values: t, name: a, color: l = null }, o) => {
170
+ const u = $t(t).reduce((v, z) => v + z, 0);
171
171
  return {
172
172
  name: a,
173
- color: l || Re(l) || _e.value[o] || P[o] || P[o % P.length],
173
+ color: l || De(l) || xe.value[o] || P[o] || P[o % P.length],
174
174
  value: u,
175
- proportion: u / fe.value.map((v) => (v.values || []).reduce((z, ut) => z + ut, 0)).reduce((v, z) => v + z, 0),
176
- uid: Le(),
175
+ proportion: u / ye.value.map((v) => (v.values || []).reduce((z, rt) => z + rt, 0)).reduce((v, z) => v + z, 0),
176
+ uid: Ve(),
177
177
  absoluteIndex: o
178
178
  };
179
- })), Ae = f(() => G.value.map((t) => ({
179
+ })), Fe = f(() => G.value.map((t) => ({
180
180
  ...t,
181
181
  shape: "circle",
182
- opacity: y.value.includes(t.uid) ? 0.5 : 1,
182
+ opacity: m.value.includes(t.uid) ? 0.5 : 1,
183
183
  segregate: () => Z(t.uid),
184
- isSegregated: y.value.includes(t.uid)
185
- })).toSorted((t, a) => a.value - t.value)), tt = f(() => ({
184
+ isSegregated: m.value.includes(t.uid)
185
+ })).toSorted((t, a) => a.value - t.value)), lt = f(() => ({
186
186
  cy: "rings-div-legend",
187
187
  backgroundColor: e.value.style.chart.legend.backgroundColor,
188
188
  color: e.value.style.chart.legend.color,
189
189
  fontSize: e.value.style.chart.legend.fontSize,
190
190
  paddingBottom: 12,
191
191
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
192
- })), w = f(() => G.value.filter((t) => !y.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), p = f(() => G.value.filter((t) => !y.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: u }, v) => ({
192
+ })), C = f(() => G.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), p = f(() => G.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: u }, v) => ({
193
193
  absoluteIndex: u,
194
194
  uid: o,
195
195
  name: t,
196
- color: l || Re(l) || _e.value[v] || P[v] || P[v % P.length],
196
+ color: l || De(l) || xe.value[v] || P[v] || P[v % P.length],
197
197
  value: a,
198
- proportion: xe(a),
199
- percentage: a / w.value * 100,
200
- strokeWidth: e.value.style.chart.layout.rings.strokeWidth * xe(a)
198
+ proportion: Ae(a),
199
+ percentage: a / C.value * 100,
200
+ strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ae(a)
201
201
  })).toSorted((t, a) => a.value - t.value));
202
- function lt() {
202
+ function at() {
203
203
  return p.value.map(
204
204
  ({ name: t, color: a, value: l, absoluteValues: o, percentage: u }) => ({
205
205
  name: t,
@@ -210,24 +210,24 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
210
210
  })
211
211
  );
212
212
  }
213
- const c = f(() => Qe.value - e.value.style.chart.layout.rings.strokeWidth * 2);
214
- function at(t, a) {
213
+ const c = f(() => Ze.value - e.value.style.chart.layout.rings.strokeWidth * 2);
214
+ function ot(t, a) {
215
215
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
216
216
  }
217
- function ot(t, a) {
218
- $.value = null, U.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
217
+ function st(t, a) {
218
+ T.value = null, U.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
219
219
  }
220
220
  const ee = r(null);
221
- function st(t, a) {
222
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), y.value.length === m.dataset.length) return;
221
+ function nt(t, a) {
222
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), m.value.length === k.dataset.length) return;
223
223
  ee.value = {
224
224
  datapoint: t,
225
225
  seriesIndex: a,
226
226
  series: p.value,
227
227
  config: e.value
228
- }, $.value = a;
228
+ }, T.value = a;
229
229
  const l = p.value[a], o = e.value.style.chart.tooltip.customFormat;
230
- if (At(o) && Ft(() => o({
230
+ if (It(o) && Ot(() => o({
231
231
  seriesIndex: a,
232
232
  datapoint: t,
233
233
  series: p.value,
@@ -241,7 +241,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
241
241
  });
242
242
  else {
243
243
  let u = "";
244
- u += `<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>`, u += `<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}" />${qe.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${C.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${De(
244
+ u += `<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>`, u += `<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}" />${Je.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${Me(
245
245
  e.value.style.chart.layout.labels.dataLabels.formatter,
246
246
  l.value,
247
247
  N({
@@ -253,18 +253,18 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
253
253
  { datapoint: t, seriesIndex: a }
254
254
  )}
255
255
  </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${N({
256
- v: l.value / w.value * 100,
256
+ v: l.value / C.value * 100,
257
257
  s: "%",
258
258
  r: e.value.style.chart.tooltip.roundingPercentage
259
259
  })})</span></div>` : u += `<b>${N({
260
- v: l.value / w.value * 100,
260
+ v: l.value / C.value * 100,
261
261
  s: "%",
262
262
  r: e.value.style.chart.tooltip.roundingPercentage
263
263
  })}</b></div>`), Y.value = u;
264
264
  }
265
265
  U.value = !0;
266
266
  }
267
- const x = f(() => {
267
+ const A = f(() => {
268
268
  const t = p.value.map((l) => ({
269
269
  name: l.name,
270
270
  color: l.color
@@ -273,15 +273,15 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
273
273
  }), H = f(() => {
274
274
  const t = [
275
275
  ' <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>',
276
- N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: w.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
276
+ N({ 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 }),
277
277
  "100%"
278
- ], a = x.value.head.map((u, v) => [
278
+ ], a = A.value.head.map((u, v) => [
279
279
  {
280
280
  color: u.color,
281
281
  name: u.name
282
282
  },
283
- N({ 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 }),
284
- isNaN(x.value.body[v] / w.value) ? "-" : (x.value.body[v] / w.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
283
+ N({ 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 }),
284
+ isNaN(A.value.body[v] / C.value) ? "-" : (A.value.body[v] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
285
285
  ]), l = {
286
286
  th: {
287
287
  backgroundColor: e.value.table.th.backgroundColor,
@@ -306,31 +306,31 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
306
306
  colNames: o
307
307
  };
308
308
  });
309
- function Fe(t = null) {
310
- pt(() => {
311
- const a = x.value.head.map((u, v) => [[
309
+ function Ie(t = null) {
310
+ ft(() => {
311
+ const a = A.value.head.map((u, v) => [[
312
312
  u.name
313
- ], [x.value.body[v]], [isNaN(x.value.body[v] / w.value) ? "-" : x.value.body[v] / w.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = _t(l);
314
- t ? t(o) : xt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
313
+ ], [A.value.body[v]], [isNaN(A.value.body[v] / C.value) ? "-" : A.value.body[v] / C.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = At(l);
314
+ t ? t(o) : Ft({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
315
315
  });
316
316
  }
317
317
  const V = r(!1);
318
- function Ie(t) {
318
+ function Oe(t) {
319
319
  V.value = t, re.value += 1;
320
320
  }
321
- function Oe() {
322
- k.value.showTable = !k.value.showTable;
323
- }
324
321
  function Se() {
325
- k.value.showTooltip = !k.value.showTooltip;
322
+ w.value.showTable = !w.value.showTable;
323
+ }
324
+ function Pe() {
325
+ w.value.showTooltip = !w.value.showTooltip;
326
326
  }
327
327
  const j = r(!1);
328
328
  function te() {
329
329
  j.value = !j.value;
330
330
  }
331
- async function nt({ scale: t = 2 } = {}) {
332
- if (!T.value) return;
333
- const { width: a, height: l } = T.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: v } = await zt({ domElement: T.value, base64: !0, img: !0, scale: t });
331
+ async function ut({ scale: t = 2 } = {}) {
332
+ if (!_.value) return;
333
+ const { width: a, height: l } = _.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: v } = await Et({ domElement: _.value, base64: !0, img: !0, scale: t });
334
334
  return {
335
335
  imageUri: u,
336
336
  base64: v,
@@ -340,36 +340,36 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
340
340
  aspectRatio: o
341
341
  };
342
342
  }
343
- return Be({
344
- getData: lt,
345
- getImage: nt,
346
- generatePdf: $e,
347
- generateCsv: Fe,
348
- generateImage: Te,
349
- toggleTable: Oe,
350
- toggleTooltip: Se,
343
+ return Ee({
344
+ getData: at,
345
+ getImage: ut,
346
+ generatePdf: Te,
347
+ generateCsv: Ie,
348
+ generateImage: _e,
349
+ toggleTable: Se,
350
+ toggleTooltip: Pe,
351
351
  toggleAnnotator: te,
352
- toggleFullscreen: Ie
352
+ toggleFullscreen: Oe
353
353
  }), (t, a) => (i(), d("div", {
354
354
  ref_key: "ringsChart",
355
- ref: T,
355
+ ref: _,
356
356
  class: B(`vue-ui-rings ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
357
- style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
358
- id: `rings_${C.value}`,
357
+ style: S(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
358
+ id: `rings_${y.value}`,
359
359
  onMouseleave: a[2] || (a[2] = (l) => {
360
- $.value = null, U.value = !1, s(ye)(!1);
360
+ T.value = null, U.value = !1, s(me)(!1);
361
361
  }),
362
- onMouseenter: a[3] || (a[3] = () => s(ye)(!0))
362
+ onMouseenter: a[3] || (a[3] = () => s(me)(!0))
363
363
  }, [
364
- e.value.userOptions.buttons.annotator ? (i(), S(s(He), {
364
+ e.value.userOptions.buttons.annotator ? (i(), F(s(je), {
365
365
  key: 0,
366
- svgRef: s(be),
366
+ svgRef: s(ke),
367
367
  backgroundColor: e.value.style.chart.backgroundColor,
368
368
  color: e.value.style.chart.color,
369
369
  active: j.value,
370
370
  onClose: te
371
371
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
372
- Ke.value ? (i(), d("div", {
372
+ Qe.value ? (i(), d("div", {
373
373
  key: 1,
374
374
  ref_key: "noTitle",
375
375
  ref: de,
@@ -382,7 +382,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
382
382
  ref: ie,
383
383
  style: "width:100%;background:transparent"
384
384
  }, [
385
- (i(), S(Dt, {
385
+ (i(), F(zt, {
386
386
  key: `title_${he.value}`,
387
387
  config: {
388
388
  title: {
@@ -396,41 +396,44 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
396
396
  }
397
397
  }, null, 8, ["config"]))
398
398
  ], 512)) : b("", !0),
399
- e.value.userOptions.show && ue.value && (s(me) || s(J)) ? (i(), S(s(Xe), {
399
+ $("div", {
400
+ id: `legend-top-${y.value}`
401
+ }, null, 8, Gt),
402
+ e.value.userOptions.show && ue.value && (s(be) || s(J)) ? (i(), F(s(Ye), {
400
403
  ref_key: "details",
401
- ref: Je,
404
+ ref: Ke,
402
405
  key: `user_options_${re.value}`,
403
406
  backgroundColor: e.value.style.chart.backgroundColor,
404
407
  color: e.value.style.chart.color,
405
- isPrinting: s(we),
406
- isImaging: s(Ce),
407
- uid: C.value,
408
+ isPrinting: s(Ce),
409
+ isImaging: s($e),
410
+ uid: y.value,
408
411
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
409
412
  hasPdf: e.value.userOptions.buttons.pdf,
410
413
  hasXls: e.value.userOptions.buttons.csv,
411
414
  hasImg: e.value.userOptions.buttons.img,
412
415
  hasTable: e.value.userOptions.buttons.table,
413
416
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
414
- isTooltip: k.value.showTooltip,
417
+ isTooltip: w.value.showTooltip,
415
418
  isFullscreen: V.value,
416
419
  titles: { ...e.value.userOptions.buttonTitles },
417
- chartElement: T.value,
420
+ chartElement: _.value,
418
421
  position: e.value.userOptions.position,
419
422
  hasAnnotator: e.value.userOptions.buttons.annotator,
420
423
  isAnnotation: j.value,
421
424
  callbacks: e.value.userOptions.callbacks,
422
425
  printScale: e.value.userOptions.print.scale,
423
- onToggleFullscreen: Ie,
424
- onGeneratePdf: s($e),
425
- onGenerateCsv: Fe,
426
- onGenerateImage: s(Te),
427
- onToggleTable: Oe,
428
- onToggleTooltip: Se,
426
+ onToggleFullscreen: Oe,
427
+ onGeneratePdf: s(Te),
428
+ onGenerateCsv: Ie,
429
+ onGenerateImage: s(_e),
430
+ onToggleTable: Se,
431
+ onToggleTooltip: Pe,
429
432
  onToggleAnnotator: te,
430
- style: O({
431
- visibility: s(me) ? s(J) ? "visible" : "hidden" : "visible"
433
+ style: S({
434
+ visibility: s(be) ? s(J) ? "visible" : "hidden" : "visible"
432
435
  })
433
- }, Ne({ _: 2 }, [
436
+ }, Le({ _: 2 }, [
434
437
  t.$slots.menuIcon ? {
435
438
  name: "menuIcon",
436
439
  fn: g(({ isOpen: l, color: o }) => [
@@ -490,13 +493,13 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
490
493
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
491
494
  (i(), d("svg", {
492
495
  ref_key: "svgRef",
493
- ref: be,
494
- xmlns: s(Ct),
495
- class: B({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value, resizing: q.value || s(I) }),
496
+ ref: ke,
497
+ xmlns: s(Tt),
498
+ class: B({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value, resizing: q.value || s(O) }),
496
499
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
497
- style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
500
+ style: S(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
498
501
  }, [
499
- ae(s(Ge)),
502
+ ae(s(He)),
500
503
  t.$slots["chart-background"] ? (i(), d("foreignObject", {
501
504
  key: 0,
502
505
  x: 0,
@@ -508,153 +511,161 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
508
511
  }
509
512
  }, [
510
513
  h(t.$slots, "chart-background", {}, void 0, !0)
511
- ], 8, Wt)) : b("", !0),
512
- A("defs", null, [
514
+ ], 8, jt)) : b("", !0),
515
+ $("defs", null, [
513
516
  (i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("radialGradient", {
514
517
  cx: "50%",
515
518
  cy: "30%",
516
519
  r: "50%",
517
520
  fx: "50%",
518
521
  fy: "50%",
519
- id: `gradient_${C.value}_${o}`
522
+ id: `gradient_${y.value}_${o}`
520
523
  }, [
521
- A("stop", {
524
+ $("stop", {
522
525
  offset: "0%",
523
- "stop-color": s($t)(s(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
524
- }, null, 8, Ht),
525
- A("stop", {
526
+ "stop-color": s(_t)(s(xt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
527
+ }, null, 8, Yt),
528
+ $("stop", {
526
529
  offset: "100%",
527
530
  "stop-color": l.color
528
- }, null, 8, jt)
529
- ], 8, Gt))), 256))
531
+ }, null, 8, qt)
532
+ ], 8, Xt))), 256))
530
533
  ]),
531
- t.$slots.pattern ? (i(), d("g", Xt, [
534
+ t.$slots.pattern ? (i(), d("g", Jt, [
532
535
  (i(!0), d(oe, null, se(p.value, (l) => (i(), d("defs", null, [
533
- h(t.$slots, "pattern", dt({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${C.value}_${l.absoluteIndex}` }), void 0, !0)
536
+ h(t.$slots, "pattern", ht({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
534
537
  ]))), 256))
535
538
  ])) : b("", !0),
536
539
  (i(!0), d(oe, null, se(p.value, (l, o) => (i(), d("g", null, [
537
- A("circle", {
540
+ $("circle", {
538
541
  class: B({
539
- "vue-ui-rings-item": F.value && e.value.useCssAnimation,
540
- "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
541
- "vue-ui-rings-opacity": $.value !== null && $.value !== o
542
+ "vue-ui-rings-item": I.value && e.value.useCssAnimation,
543
+ "vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(O),
544
+ "vue-ui-rings-opacity": T.value !== null && T.value !== o
542
545
  }),
543
- style: O(`animation-delay:${o * 100}ms`),
546
+ style: S(`animation-delay:${o * 100}ms`),
544
547
  stroke: e.value.style.chart.layout.rings.stroke,
545
548
  cx: n.value.width / 2,
546
549
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
547
550
  r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
548
551
  fill: e.value.style.chart.layout.rings.gradient.underlayerColor
549
- }, null, 14, Yt),
550
- A("circle", {
552
+ }, null, 14, Kt),
553
+ $("circle", {
551
554
  class: B({
552
- "vue-ui-rings-item": F.value && e.value.useCssAnimation,
553
- "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
555
+ "vue-ui-rings-item": I.value && e.value.useCssAnimation,
556
+ "vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(O),
554
557
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
555
- "vue-ui-rings-blur": $.value !== null && $.value !== o
558
+ "vue-ui-rings-blur": T.value !== null && T.value !== o
556
559
  }),
557
- style: O(`animation-delay:${o * 100}ms`),
560
+ style: S(`animation-delay:${o * 100}ms`),
558
561
  stroke: e.value.style.chart.layout.rings.stroke,
559
562
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
560
563
  cx: n.value.width / 2,
561
564
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
562
565
  r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
563
- fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${C.value}_${o})` : l.color
564
- }, null, 14, qt),
566
+ fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${o})` : l.color
567
+ }, null, 14, Qt),
565
568
  t.$slots.pattern ? (i(), d("circle", {
566
569
  key: 0,
567
570
  class: B({
568
- "vue-ui-rings-item": F.value && e.value.useCssAnimation,
569
- "vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
571
+ "vue-ui-rings-item": I.value && e.value.useCssAnimation,
572
+ "vue-rings-item-onload": !I.value && e.value.useCssAnimation && !s(O),
570
573
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
571
- "vue-ui-rings-blur": $.value !== null && $.value !== o
574
+ "vue-ui-rings-blur": T.value !== null && T.value !== o
572
575
  }),
573
- style: O(`animation-delay:${o * 100}ms`),
576
+ style: S(`animation-delay:${o * 100}ms`),
574
577
  stroke: e.value.style.chart.layout.rings.stroke,
575
578
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
576
579
  cx: n.value.width / 2,
577
580
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
578
581
  r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
579
- fill: `url(#pattern_${C.value}_${l.absoluteIndex})`
580
- }, null, 14, Jt)) : b("", !0),
581
- A("circle", {
582
+ fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
583
+ }, null, 14, Zt)) : b("", !0),
584
+ $("circle", {
582
585
  stroke: "none",
583
586
  cx: n.value.width / 2,
584
587
  cy: o === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (o + 1),
585
588
  r: s(X)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
586
589
  fill: "transparent",
587
- onMouseenter: (u) => st(l, o),
588
- onMouseleave: (u) => ot(l, o),
589
- onClick: (u) => at(l, o)
590
- }, null, 40, Kt)
590
+ onMouseenter: (u) => nt(l, o),
591
+ onMouseleave: (u) => st(l, o),
592
+ onClick: (u) => ot(l, o)
593
+ }, null, 40, el)
591
594
  ]))), 256)),
592
595
  h(t.$slots, "svg", { svg: n.value }, void 0, !0)
593
- ], 14, Ut)),
594
- t.$slots.watermark ? (i(), d("div", Qt, [
595
- h(t.$slots, "watermark", D(M({ isPrinting: s(we) || s(Ce) })), void 0, !0)
596
+ ], 14, Ht)),
597
+ t.$slots.watermark ? (i(), d("div", tl, [
598
+ h(t.$slots, "watermark", D(M({ isPrinting: s(Ce) || s($e) })), void 0, !0)
596
599
  ])) : b("", !0),
597
- A("div", {
598
- ref_key: "chartLegend",
599
- ref: ve
600
+ $("div", {
601
+ id: `legend-bottom-${y.value}`
602
+ }, null, 8, ll),
603
+ fe.value ? (i(), F(pt, {
604
+ key: 5,
605
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
600
606
  }, [
601
- e.value.style.chart.legend.show ? (i(), S(Rt, {
602
- key: `legend_${ge.value}`,
603
- legendSet: Ae.value,
604
- config: tt.value,
605
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => Z(l.uid))
606
- }, Ne({
607
- item: g(({ legend: l, index: o }) => [
608
- s(I) ? b("", !0) : (i(), d("div", {
609
- key: 0,
610
- onClick: (u) => Z(l.uid),
611
- style: O(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
612
- }, E(l.name) + E(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + E(e.value.style.chart.legend.showValue ? s(De)(
613
- e.value.style.chart.layout.labels.dataLabels.formatter,
614
- l.value,
615
- s(N)({
616
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
617
- v: l.value,
618
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
619
- r: e.value.style.chart.legend.roundingValue
620
- }),
621
- { datapoint: l, seriesIndex: o }
622
- ) : "") + " " + E(e.value.style.chart.legend.showPercentage ? y.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 / w.value) ? "-" : s(N)({
623
- v: l.value / w.value * 100,
624
- s: "%",
625
- r: e.value.style.chart.legend.roundingPercentage
626
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Zt))
627
- ]),
628
- _: 2
607
+ $("div", {
608
+ ref_key: "chartLegend",
609
+ ref: ve
629
610
  }, [
630
- t.$slots.pattern ? {
631
- name: "legend-pattern",
632
- fn: g(({ legend: l, index: o }) => [
633
- ae(Mt, {
634
- shape: l.shape,
635
- radius: 30,
636
- stroke: "none",
637
- plot: { x: 30, y: 30 },
638
- fill: `url(#pattern_${C.value}_${o})`
639
- }, null, 8, ["shape", "fill"])
611
+ e.value.style.chart.legend.show ? (i(), F(Mt, {
612
+ key: `legend_${ge.value}`,
613
+ legendSet: Fe.value,
614
+ config: lt.value,
615
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => Z(l.uid))
616
+ }, Le({
617
+ item: g(({ legend: l, index: o }) => [
618
+ s(O) ? b("", !0) : (i(), d("div", {
619
+ key: 0,
620
+ onClick: (u) => Z(l.uid),
621
+ style: S(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
622
+ }, E(l.name) + E(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + E(e.value.style.chart.legend.showValue ? s(Me)(
623
+ e.value.style.chart.layout.labels.dataLabels.formatter,
624
+ l.value,
625
+ s(N)({
626
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
627
+ v: l.value,
628
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
629
+ r: e.value.style.chart.legend.roundingValue
630
+ }),
631
+ { datapoint: l, seriesIndex: o }
632
+ ) : "") + " " + E(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 / C.value) ? "-" : s(N)({
633
+ v: l.value / C.value * 100,
634
+ s: "%",
635
+ r: e.value.style.chart.legend.roundingPercentage
636
+ })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, al))
640
637
  ]),
641
- key: "0"
642
- } : void 0
643
- ]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
644
- key: 1,
645
- legend: Ae.value
646
- }, void 0, !0)
647
- ], 512),
638
+ _: 2
639
+ }, [
640
+ t.$slots.pattern ? {
641
+ name: "legend-pattern",
642
+ fn: g(({ legend: l, index: o }) => [
643
+ ae(Bt, {
644
+ shape: l.shape,
645
+ radius: 30,
646
+ stroke: "none",
647
+ plot: { x: 30, y: 30 },
648
+ fill: `url(#pattern_${y.value}_${o})`
649
+ }, null, 8, ["shape", "fill"])
650
+ ]),
651
+ key: "0"
652
+ } : void 0
653
+ ]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
654
+ key: 1,
655
+ legend: Fe.value
656
+ }, void 0, !0)
657
+ ], 512)
658
+ ], 8, ["to"])) : b("", !0),
648
659
  t.$slots.source ? (i(), d("div", {
649
- key: 5,
660
+ key: 6,
650
661
  ref_key: "source",
651
662
  ref: ce,
652
663
  dir: "auto"
653
664
  }, [
654
665
  h(t.$slots, "source", {}, void 0, !0)
655
666
  ], 512)) : b("", !0),
656
- ae(s(je), {
657
- show: k.value.showTooltip && U.value && y.value.length < m.dataset.length,
667
+ ae(s(Xe), {
668
+ show: w.value.showTooltip && U.value && m.value.length < k.dataset.length,
658
669
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
659
670
  color: e.value.style.chart.tooltip.color,
660
671
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -664,7 +675,7 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
664
675
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
665
676
  position: e.value.style.chart.tooltip.position,
666
677
  offsetY: e.value.style.chart.tooltip.offsetY,
667
- parent: T.value,
678
+ parent: _.value,
668
679
  content: Y.value,
669
680
  isFullscreen: V.value,
670
681
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
@@ -679,11 +690,11 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
679
690
  ]),
680
691
  _: 3
681
692
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
682
- ue.value ? (i(), S(s(Ue), {
683
- key: 6,
693
+ ue.value ? (i(), F(s(We), {
694
+ key: 7,
684
695
  hideDetails: "",
685
696
  config: {
686
- open: k.value.showTable,
697
+ open: w.value.showTable,
687
698
  maxHeight: 1e4,
688
699
  body: {
689
700
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -696,33 +707,33 @@ const Et = ["id"], Ut = ["xmlns", "viewBox"], Wt = ["width", "height"], Gt = ["i
696
707
  }
697
708
  }, {
698
709
  content: g(() => [
699
- (i(), S(s(We), {
710
+ (i(), F(s(Ge), {
700
711
  key: `table_${pe.value}`,
701
712
  colNames: H.value.colNames,
702
713
  head: H.value.head,
703
714
  body: H.value.body,
704
715
  config: H.value.config,
705
716
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
706
- onClose: a[1] || (a[1] = (l) => k.value.showTable = !1)
717
+ onClose: a[1] || (a[1] = (l) => w.value.showTable = !1)
707
718
  }, {
708
719
  th: g(({ th: l }) => [
709
- A("div", {
720
+ $("div", {
710
721
  innerHTML: l,
711
722
  style: { display: "flex", "align-items": "center" }
712
- }, null, 8, el)
723
+ }, null, 8, ol)
713
724
  ]),
714
725
  td: g(({ td: l }) => [
715
- ht(E(l.name || l), 1)
726
+ gt(E(l.name || l), 1)
716
727
  ]),
717
728
  _: 1
718
729
  }, 8, ["colNames", "head", "body", "config", "title"]))
719
730
  ]),
720
731
  _: 1
721
732
  }, 8, ["config"])) : b("", !0),
722
- s(I) ? (i(), S(Nt, { key: 7 })) : b("", !0)
723
- ], 46, Et));
733
+ s(O) ? (i(), F(Vt, { key: 8 })) : b("", !0)
734
+ ], 46, Wt));
724
735
  }
725
- }, gl = /* @__PURE__ */ Bt(tl, [["__scopeId", "data-v-96435534"]]);
736
+ }, bl = /* @__PURE__ */ Ut(sl, [["__scopeId", "data-v-1b4eaf1a"]]);
726
737
  export {
727
- gl as default
738
+ bl as default
728
739
  };