vue-data-ui 2.12.6 → 2.12.7-beta.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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,24 +1,17 @@
1
- import { useSlots as He, ref as i, computed as g, watch as Ge, onMounted as je, onBeforeUnmount as Xe, createElementBlock as v, openBlock as n, unref as r, normalizeStyle as I, normalizeClass as M, createBlock as O, createCommentVNode as m, createElementVNode as _, createVNode as J, createSlots as we, withCtx as h, renderSlot as d, normalizeProps as P, guardReactiveProps as F, Fragment as K, renderList as Q, mergeProps as qe, createTextVNode as _e, toDisplayString as E, nextTick as Ye } from "vue";
2
- import { u as Je, c as Te, t as Ke, p as N, a as Qe, o as Ze, e as Z, g as et, b as tt, H as lt, d as xe, f as S, X as ot, s as at, w as st, v as H, i as Ie, q as nt, r as ut, x as rt, y as it } from "./index-BFzQMJda.js";
3
- import { t as vt, u as ct } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as dt } from "./Title-CzaCeCOm.js";
5
- import { u as pt, U as ht } from "./usePrinter-C5bLp34h.js";
6
- import { _ as gt } from "./Tooltip-CWmRmhJr.js";
7
- import { D as ft } from "./DataTable-Rajdtaf6.js";
8
- import { L as yt } from "./Legend-BxtDQCIv.js";
9
- import mt from "./vue-ui-skeleton-B_YI7Yuc.js";
10
- import bt from "./vue-ui-accordion-BUz4JIIX.js";
11
- import { u as Oe } from "./useNestedProp-v7KPpwuP.js";
12
- import { _ as kt } from "./PackageVersion-BjrblLPQ.js";
13
- import { _ as Ct } from "./PenAndPaper-BkP3J-Ft.js";
14
- import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as wt } from "./Shape-C69a0f29.js";
16
- import { u as _t } from "./useChartAccessibility-BWojgys7.js";
17
- import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["id"], St = ["stop-color"], At = ["stop-color"], Pt = { key: 1 }, Ft = ["stroke", "cx", "cy", "r", "fill"], Lt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Rt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Mt = ["cx", "cy", "r", "onMouseenter"], Vt = {
1
+ import { defineAsyncComponent as I, useSlots as tt, ref as i, computed as g, watch as lt, shallowRef as _e, onMounted as ot, onBeforeUnmount as at, createElementBlock as v, 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 xe, withCtx as h, renderSlot as d, normalizeProps as R, guardReactiveProps as M, Fragment as Z, renderList as ee, mergeProps as st, createTextVNode as Ie, toDisplayString as G, nextTick as nt } from "vue";
2
+ import { u as ut, c as Oe, t as rt, p as S, a as it, o as vt, e as te, g as ct, b as dt, H as pt, d as Ne, f as A, 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-BiHmNd1-.js";
3
+ import { t as Ct, u as wt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as Se } from "./useNestedProp-tRqS0ZAM.js";
5
+ import { u as $t } from "./usePrinter-CRCbl1WG.js";
6
+ import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as _t } from "./useChartAccessibility-9icAAmYg.js";
8
+ import xt from "./Legend-DFunFf8i.js";
9
+ import It from "./Title-B5qqUI3M.js";
10
+ import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["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 = {
19
12
  key: 5,
20
13
  class: "vue-data-ui-watermark"
21
- }, zt = ["onClick"], Ut = { key: 0 }, Wt = { key: 1 }, Bt = ["innerHTML"], Dt = {
14
+ }, Bt = ["onClick"], Et = { key: 0 }, Dt = { key: 1 }, Ht = ["innerHTML"], Gt = {
22
15
  __name: "vue-ui-rings",
23
16
  props: {
24
17
  config: {
@@ -35,44 +28,44 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
35
28
  }
36
29
  },
37
30
  emits: ["selectLegend"],
38
- setup(Ne, { expose: Se, emit: Ae }) {
39
- const { vue_ui_rings: Pe } = Je(), Fe = He(), b = Ne, x = i(!1), V = g(() => !!b.dataset && b.dataset.length), $ = i(Te()), Le = i(null), z = i(!1), G = i(""), w = i(null), ee = i(0), L = i(null), te = i(null), le = i(null), oe = i(null), ae = i(null), se = i(0), ne = i(0), ue = i(0), e = g({
40
- get: () => ce(),
31
+ setup(Ae, { expose: Fe, emit: Le }) {
32
+ const Re = I(() => import("./vue-ui-accordion-CmCs2yR2.js")), Me = I(() => import("./DataTable-Cv9CIz-a.js")), Ve = I(() => import("./PackageVersion-CLY-udAA.js")), ze = I(() => import("./PenAndPaper-B9na2mbr.js")), Ue = I(() => import("./Shape-D3w9qas1.js")), We = I(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Be = I(() => import("./Tooltip-C9rxJ-Ru.js")), Ee = I(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_rings: De } = ut(), He = tt(), b = Ae, O = i(!1), W = g(() => !!b.dataset && b.dataset.length), w = i(Oe()), 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 = g({
33
+ get: () => pe(),
41
34
  set: (t) => t
42
- }), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = $t({ config: e.value }), { svgRef: ve } = _t({ config: e.value.style.chart.title });
43
- function ce() {
44
- const t = Oe({
35
+ }), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = Tt({ config: e.value }), { svgRef: de } = _t({ config: e.value.style.chart.title });
36
+ function pe() {
37
+ const t = Se({
45
38
  userConfig: b.config,
46
- defaultConfig: Pe
39
+ defaultConfig: De
47
40
  });
48
41
  return t.theme ? {
49
- ...Oe({
50
- userConfig: Qe.vue_ui_rings[t.theme] || b.config,
42
+ ...Se({
43
+ userConfig: it.vue_ui_rings[t.theme] || b.config,
51
44
  defaultConfig: t
52
45
  }),
53
- customPalette: Ke[t.theme] || N
46
+ customPalette: rt[t.theme] || S
54
47
  } : t;
55
48
  }
56
- Ge(() => b.config, (t) => {
57
- e.value = ce(), j.value = !e.value.userOptions.showOnChartHover, de(), se.value += 1, ne.value += 1, ue.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
49
+ lt(() => b.config, (t) => {
50
+ 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;
58
51
  }, { deep: !0 });
59
- const U = i(null);
60
- je(() => {
61
- de();
52
+ const _ = _e(null), F = _e(null);
53
+ ot(() => {
54
+ he();
62
55
  });
63
- function de() {
64
- if (Ze(b.dataset) ? Z({
56
+ function he() {
57
+ if (vt(b.dataset) ? te({
65
58
  componentName: "VueUiRings",
66
59
  type: "dataset"
67
60
  }) : b.dataset.forEach((t, o) => {
68
- t.values.length || Z({
61
+ t.values.length || te({
69
62
  componentName: "VueUiRings",
70
63
  type: "dataset"
71
- }), et({
64
+ }), ct({
72
65
  datasetObject: t,
73
66
  requiredAttributes: ["name", "values"]
74
67
  }).forEach((l) => {
75
- Z({
68
+ te({
76
69
  componentName: "VueUiRings",
77
70
  type: "datasetSerieAttribute",
78
71
  property: l,
@@ -80,123 +73,123 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
80
73
  });
81
74
  });
82
75
  }), e.value.responsive) {
83
- const t = vt(() => {
84
- const { width: o, height: l } = ct({
85
- chart: L.value,
86
- title: e.value.style.chart.title.text ? te.value : null,
87
- legend: e.value.style.chart.legend.show ? le.value : null,
88
- source: oe.value,
89
- noTitle: ae.value
76
+ const t = Ct(() => {
77
+ const { width: o, height: l } = wt({
78
+ chart: V.value,
79
+ title: e.value.style.chart.title.text ? oe.value : null,
80
+ legend: e.value.style.chart.legend.show ? ae.value : null,
81
+ source: se.value,
82
+ noTitle: ne.value
90
83
  });
91
84
  requestAnimationFrame(() => {
92
- s.value.width = o, s.value.height = l;
85
+ n.value.width = o, n.value.height = l;
93
86
  });
94
87
  });
95
- U.value = new ResizeObserver(t), U.value.observe(L.value.parentNode);
88
+ _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = V.value.parentNode, _.value.observe(F.value);
96
89
  }
97
90
  setTimeout(() => {
98
- x.value = !0;
91
+ O.value = !0;
99
92
  }, 600);
100
93
  }
101
- Xe(() => {
102
- U.value && U.value.disconnect();
94
+ at(() => {
95
+ _.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
103
96
  });
104
- const { isPrinting: pe, isImaging: he, generatePdf: ge, generateImage: fe } = pt({
105
- elementId: `rings_${$.value}`,
97
+ const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = $t({
98
+ elementId: `rings_${w.value}`,
106
99
  fileName: e.value.style.chart.title.text || "vue-ui-rings",
107
100
  options: e.value.userOptions.print
108
- }), Re = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), ye = g(() => tt(e.value.customPalette)), k = i({
101
+ }), je = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = g(() => dt(e.value.customPalette)), k = i({
109
102
  showTable: e.value.table.show,
110
103
  showTooltip: e.value.style.chart.tooltip.show
111
- }), s = i({
104
+ }), n = i({
112
105
  height: 360,
113
106
  width: 360
114
- }), Me = g(() => Math.min(s.value.height, s.value.width)), Ve = Ae, f = i([]);
115
- function X(t) {
116
- f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t), Ve("selectLegend", p.value.map((o) => ({
107
+ }), Xe = g(() => Math.min(n.value.height, n.value.width)), qe = Le, f = i([]);
108
+ function Y(t) {
109
+ f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t), qe("selectLegend", p.value.map((o) => ({
117
110
  name: o.name,
118
111
  color: o.color,
119
112
  value: o.value
120
113
  })));
121
114
  }
122
- const ze = g(() => Math.max(
123
- ...W.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t)
115
+ const Ye = g(() => Math.max(
116
+ ...E.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t)
124
117
  ));
125
- function me(t) {
126
- return t / ze.value;
118
+ function ke(t) {
119
+ return t / Ye.value;
127
120
  }
128
- const W = g(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
129
- const u = lt(t).reduce((y, R) => y + R, 0);
121
+ const E = g(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
122
+ const r = pt(t).reduce((y, z) => y + z, 0);
130
123
  return {
131
124
  name: o,
132
- color: l || xe(l) || ye.value[a] || N[a] || N[a % N.length],
133
- value: u,
134
- proportion: u / b.dataset.map((y) => (y.values || []).reduce((R, Ee) => R + Ee, 0)).reduce((y, R) => y + R, 0),
135
- uid: Te(),
125
+ color: l || Ne(l) || be.value[a] || S[a] || S[a % S.length],
126
+ value: r,
127
+ proportion: r / b.dataset.map((y) => (y.values || []).reduce((z, et) => z + et, 0)).reduce((y, z) => y + z, 0),
128
+ uid: Oe(),
136
129
  absoluteIndex: a
137
130
  };
138
- })), be = g(() => W.value.map((t) => ({
131
+ })), Ce = g(() => E.value.map((t) => ({
139
132
  ...t,
140
133
  shape: "circle",
141
134
  opacity: f.value.includes(t.uid) ? 0.5 : 1,
142
- segregate: () => X(t.uid),
135
+ segregate: () => Y(t.uid),
143
136
  isSegregated: f.value.includes(t.uid)
144
- })).toSorted((t, o) => o.value - t.value)), Ue = g(() => ({
137
+ })).toSorted((t, o) => o.value - t.value)), Je = g(() => ({
145
138
  cy: "rings-div-legend",
146
139
  backgroundColor: e.value.style.chart.legend.backgroundColor,
147
140
  color: e.value.style.chart.legend.color,
148
141
  fontSize: e.value.style.chart.legend.fontSize,
149
142
  paddingBottom: 12,
150
143
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
151
- })), C = g(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), p = g(() => W.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: u }, y) => ({
152
- absoluteIndex: u,
144
+ })), C = g(() => E.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), p = g(() => E.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, y) => ({
145
+ absoluteIndex: r,
153
146
  uid: a,
154
147
  name: t,
155
- color: l || xe(l) || ye.value[y] || N[y] || N[y % N.length],
148
+ color: l || Ne(l) || be.value[y] || S[y] || S[y % S.length],
156
149
  value: o,
157
- proportion: me(o),
150
+ proportion: ke(o),
158
151
  percentage: o / C.value * 100,
159
- strokeWidth: e.value.style.chart.layout.rings.strokeWidth * me(o)
152
+ strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
160
153
  })).toSorted((t, o) => o.value - t.value));
161
- function We() {
154
+ function Ke() {
162
155
  return p.value.map(
163
- ({ name: t, color: o, value: l, absoluteValues: a, percentage: u }) => ({
156
+ ({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
164
157
  name: t,
165
158
  color: o,
166
159
  value: l,
167
160
  absoluteValues: a,
168
- percentage: u
161
+ percentage: r
169
162
  })
170
163
  );
171
164
  }
172
- const c = g(() => Me.value - e.value.style.chart.layout.rings.strokeWidth * 2), q = i(null);
173
- function Be(t, o) {
165
+ const c = g(() => Xe.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
166
+ function Qe(t, o) {
174
167
  if (f.value.length === b.dataset.length) return;
175
- q.value = {
168
+ J.value = {
176
169
  datapoint: o,
177
170
  seriesIndex: t,
178
171
  series: p.value,
179
172
  config: e.value
180
- }, w.value = t;
173
+ }, $.value = t;
181
174
  const l = p.value[t], a = e.value.style.chart.tooltip.customFormat;
182
- if (rt(a) && it(() => a({
175
+ if (bt(a) && kt(() => a({
183
176
  seriesIndex: t,
184
177
  datapoint: o,
185
178
  series: p.value,
186
179
  config: e.value
187
180
  })))
188
- G.value = a({
181
+ X.value = a({
189
182
  seriesIndex: t,
190
183
  datapoint: o,
191
184
  series: p.value,
192
185
  config: e.value
193
186
  });
194
187
  else {
195
- let u = "";
196
- 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}" />${Fe.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${$.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${Ie(
188
+ let r = "";
189
+ 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}" />${He.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(
197
190
  e.value.style.chart.layout.labels.dataLabels.formatter,
198
191
  l.value,
199
- S({
192
+ A({
200
193
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
201
194
  v: l.value,
202
195
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -204,36 +197,36 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
204
197
  }),
205
198
  { datapoint: o, seriesIndex: t }
206
199
  )}
207
- </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? u += `<span>(${S({
200
+ </b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${A({
208
201
  v: l.value / C.value * 100,
209
202
  s: "%",
210
203
  r: e.value.style.chart.tooltip.roundingPercentage
211
- })})</span></div>` : u += `<b>${S({
204
+ })})</span></div>` : r += `<b>${A({
212
205
  v: l.value / C.value * 100,
213
206
  s: "%",
214
207
  r: e.value.style.chart.tooltip.roundingPercentage
215
- })}</b></div>`), G.value = u;
208
+ })}</b></div>`), X.value = r;
216
209
  }
217
- z.value = !0;
210
+ B.value = !0;
218
211
  }
219
- const T = g(() => {
212
+ const x = g(() => {
220
213
  const t = p.value.map((l) => ({
221
214
  name: l.name,
222
215
  color: l.color
223
216
  })), o = p.value.map((l) => l.value);
224
217
  return { head: t, body: o };
225
- }), B = g(() => {
218
+ }), D = g(() => {
226
219
  const t = [
227
220
  ' <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>',
228
- S({ 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 }),
221
+ 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 }),
229
222
  "100%"
230
- ], o = T.value.head.map((u, y) => [
223
+ ], o = x.value.head.map((r, y) => [
231
224
  {
232
- color: u.color,
233
- name: u.name
225
+ color: r.color,
226
+ name: r.name
234
227
  },
235
- S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: T.value.body[y], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
236
- isNaN(T.value.body[y] / C.value) ? "-" : (T.value.body[y] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
228
+ A({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[y], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
229
+ isNaN(x.value.body[y] / C.value) ? "-" : (x.value.body[y] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
237
230
  ]), l = {
238
231
  th: {
239
232
  backgroundColor: e.value.table.th.backgroundColor,
@@ -258,70 +251,70 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
258
251
  colNames: a
259
252
  };
260
253
  });
261
- function ke() {
262
- Ye(() => {
263
- const t = T.value.head.map((a, u) => [[
254
+ function we() {
255
+ nt(() => {
256
+ const t = x.value.head.map((a, r) => [[
264
257
  a.name
265
- ], [T.value.body[u]], [isNaN(T.value.body[u] / C.value) ? "-" : T.value.body[u] / C.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = nt(o);
266
- ut({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
258
+ ], [x.value.body[r]], [isNaN(x.value.body[r] / C.value) ? "-" : x.value.body[r] / C.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = yt(o);
259
+ mt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
267
260
  });
268
261
  }
269
- const A = i(!1);
270
- function De(t) {
271
- A.value = t, ee.value += 1;
262
+ const L = i(!1);
263
+ function Ze(t) {
264
+ L.value = t, le.value += 1;
272
265
  }
273
- function Ce() {
266
+ function $e() {
274
267
  k.value.showTable = !k.value.showTable;
275
268
  }
276
- function $e() {
269
+ function Te() {
277
270
  k.value.showTooltip = !k.value.showTooltip;
278
271
  }
279
- const D = i(!1);
280
- function Y() {
281
- D.value = !D.value;
272
+ const H = i(!1);
273
+ function K() {
274
+ H.value = !H.value;
282
275
  }
283
- return Se({
284
- getData: We,
285
- generatePdf: ge,
286
- generateCsv: ke,
287
- generateImage: fe,
288
- toggleTable: Ce,
289
- toggleTooltip: $e,
290
- toggleAnnotator: Y
291
- }), (t, o) => (n(), v("div", {
276
+ return Fe({
277
+ getData: Ke,
278
+ generatePdf: ye,
279
+ generateCsv: we,
280
+ generateImage: me,
281
+ toggleTable: $e,
282
+ toggleTooltip: Te,
283
+ toggleAnnotator: K
284
+ }), (t, o) => (u(), v("div", {
292
285
  ref_key: "ringsChart",
293
- ref: L,
294
- class: M(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
295
- style: I(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
296
- id: `rings_${$.value}`,
286
+ ref: V,
287
+ class: U(`vue-ui-rings ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
288
+ style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
289
+ id: `rings_${w.value}`,
297
290
  onMouseleave: o[3] || (o[3] = (l) => {
298
- w.value = null, z.value = !1, r(re)(!1);
291
+ $.value = null, B.value = !1, s(ve)(!1);
299
292
  }),
300
- onMouseenter: o[4] || (o[4] = () => r(re)(!0))
293
+ onMouseenter: o[4] || (o[4] = () => s(ve)(!0))
301
294
  }, [
302
- e.value.userOptions.buttons.annotator ? (n(), O(Ct, {
295
+ e.value.userOptions.buttons.annotator ? (u(), P(s(ze), {
303
296
  key: 0,
304
- svgRef: r(ve),
297
+ svgRef: s(de),
305
298
  backgroundColor: e.value.style.chart.backgroundColor,
306
299
  color: e.value.style.chart.color,
307
- active: D.value,
308
- onClose: Y
300
+ active: H.value,
301
+ onClose: K
309
302
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
310
- Re.value ? (n(), v("div", {
303
+ je.value ? (u(), v("div", {
311
304
  key: 1,
312
305
  ref_key: "noTitle",
313
- ref: ae,
306
+ ref: ne,
314
307
  class: "vue-data-ui-no-title-space",
315
308
  style: "height:36px; width: 100%;background:transparent"
316
309
  }, null, 512)) : m("", !0),
317
- e.value.style.chart.title.text ? (n(), v("div", {
310
+ e.value.style.chart.title.text ? (u(), v("div", {
318
311
  key: 2,
319
312
  ref_key: "chartTitle",
320
- ref: te,
313
+ ref: oe,
321
314
  style: "width:100%;background:transparent"
322
315
  }, [
323
- (n(), O(dt, {
324
- key: `title_${se.value}`,
316
+ (u(), P(It, {
317
+ key: `title_${ue.value}`,
325
318
  config: {
326
319
  title: {
327
320
  cy: "rings-div-title",
@@ -334,15 +327,15 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
334
327
  }
335
328
  }, null, 8, ["config"]))
336
329
  ], 512)) : m("", !0),
337
- e.value.userOptions.show && V.value && (r(ie) || r(j)) ? (n(), O(ht, {
330
+ e.value.userOptions.show && W.value && (s(ce) || s(q)) ? (u(), P(s(Ee), {
338
331
  ref_key: "details",
339
- ref: Le,
340
- key: `user_options_${ee.value}`,
332
+ ref: Ge,
333
+ key: `user_options_${le.value}`,
341
334
  backgroundColor: e.value.style.chart.backgroundColor,
342
335
  color: e.value.style.chart.color,
343
- isPrinting: r(pe),
344
- isImaging: r(he),
345
- uid: $.value,
336
+ isPrinting: s(ge),
337
+ isImaging: s(fe),
338
+ uid: w.value,
346
339
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
347
340
  hasPdf: e.value.userOptions.buttons.pdf,
348
341
  hasXls: e.value.userOptions.buttons.csv,
@@ -350,27 +343,27 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
350
343
  hasTable: e.value.userOptions.buttons.table,
351
344
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
352
345
  isTooltip: k.value.showTooltip,
353
- isFullscreen: A.value,
346
+ isFullscreen: L.value,
354
347
  titles: { ...e.value.userOptions.buttonTitles },
355
- chartElement: L.value,
348
+ chartElement: V.value,
356
349
  position: e.value.userOptions.position,
357
350
  hasAnnotator: e.value.userOptions.buttons.annotator,
358
- isAnnotation: D.value,
359
- onToggleFullscreen: De,
360
- onGeneratePdf: r(ge),
361
- onGenerateCsv: ke,
362
- onGenerateImage: r(fe),
363
- onToggleTable: Ce,
364
- onToggleTooltip: $e,
365
- onToggleAnnotator: Y,
366
- style: I({
367
- visibility: r(ie) ? r(j) ? "visible" : "hidden" : "visible"
351
+ isAnnotation: H.value,
352
+ onToggleFullscreen: Ze,
353
+ onGeneratePdf: s(ye),
354
+ onGenerateCsv: we,
355
+ onGenerateImage: s(me),
356
+ onToggleTable: $e,
357
+ onToggleTooltip: Te,
358
+ onToggleAnnotator: K,
359
+ style: N({
360
+ visibility: s(ce) ? s(q) ? "visible" : "hidden" : "visible"
368
361
  })
369
- }, we({ _: 2 }, [
362
+ }, xe({ _: 2 }, [
370
363
  t.$slots.menuIcon ? {
371
364
  name: "menuIcon",
372
365
  fn: h(({ isOpen: l, color: a }) => [
373
- d(t.$slots, "menuIcon", P(F({ isOpen: l, color: a })), void 0, !0)
366
+ d(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
374
367
  ]),
375
368
  key: "0"
376
369
  } : void 0,
@@ -412,127 +405,127 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
412
405
  t.$slots.optionFullscreen ? {
413
406
  name: "optionFullscreen",
414
407
  fn: h(({ toggleFullscreen: l, isFullscreen: a }) => [
415
- d(t.$slots, "optionFullscreen", P(F({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
408
+ d(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
416
409
  ]),
417
410
  key: "6"
418
411
  } : void 0,
419
412
  t.$slots.optionAnnotator ? {
420
413
  name: "optionAnnotator",
421
414
  fn: h(({ toggleAnnotator: l, isAnnotator: a }) => [
422
- d(t.$slots, "optionAnnotator", P(F({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
415
+ d(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
423
416
  ]),
424
417
  key: "7"
425
418
  } : void 0
426
419
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
427
- V.value ? (n(), v("svg", {
420
+ W.value ? (u(), v("svg", {
428
421
  key: 4,
429
422
  ref_key: "svgRef",
430
- ref: ve,
431
- xmlns: r(ot),
432
- class: M({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
433
- viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
434
- style: I(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
423
+ ref: de,
424
+ xmlns: s(ht),
425
+ class: U({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
426
+ viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
427
+ style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
435
428
  }, [
436
- J(kt),
437
- t.$slots["chart-background"] ? (n(), v("foreignObject", {
429
+ Q(s(Ve)),
430
+ t.$slots["chart-background"] ? (u(), v("foreignObject", {
438
431
  key: 0,
439
432
  x: 0,
440
433
  y: 0,
441
- width: s.value.width <= 0 ? 10 : s.value.width,
442
- height: s.value.height <= 0 ? 10 : s.value.height,
434
+ width: n.value.width <= 0 ? 10 : n.value.width,
435
+ height: n.value.height <= 0 ? 10 : n.value.height,
443
436
  style: {
444
437
  pointerEvents: "none"
445
438
  }
446
439
  }, [
447
440
  d(t.$slots, "chart-background", {}, void 0, !0)
448
- ], 8, Ot)) : m("", !0),
449
- _("defs", null, [
450
- (n(!0), v(K, null, Q(p.value, (l, a) => (n(), v("radialGradient", {
441
+ ], 8, St)) : m("", !0),
442
+ T("defs", null, [
443
+ (u(!0), v(Z, null, ee(p.value, (l, a) => (u(), v("radialGradient", {
451
444
  cx: "50%",
452
445
  cy: "30%",
453
446
  r: "50%",
454
447
  fx: "50%",
455
448
  fy: "50%",
456
- id: `gradient_${$.value}_${a}`
449
+ id: `gradient_${w.value}_${a}`
457
450
  }, [
458
- _("stop", {
451
+ T("stop", {
459
452
  offset: "0%",
460
- "stop-color": r(at)(r(st)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
461
- }, null, 8, St),
462
- _("stop", {
453
+ "stop-color": s(gt)(s(ft)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
454
+ }, null, 8, Ft),
455
+ T("stop", {
463
456
  offset: "100%",
464
457
  "stop-color": l.color
465
- }, null, 8, At)
466
- ], 8, Nt))), 256))
458
+ }, null, 8, Lt)
459
+ ], 8, At))), 256))
467
460
  ]),
468
- t.$slots.pattern ? (n(), v("g", Pt, [
469
- (n(!0), v(K, null, Q(p.value, (l) => (n(), v("defs", null, [
470
- d(t.$slots, "pattern", qe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${$.value}_${l.absoluteIndex}` }), void 0, !0)
461
+ t.$slots.pattern ? (u(), v("g", Rt, [
462
+ (u(!0), v(Z, null, ee(p.value, (l) => (u(), v("defs", null, [
463
+ d(t.$slots, "pattern", st({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
471
464
  ]))), 256))
472
465
  ])) : m("", !0),
473
- (n(!0), v(K, null, Q(p.value, (l, a) => (n(), v("g", null, [
474
- _("circle", {
475
- class: M({
476
- "vue-ui-rings-item": x.value && e.value.useCssAnimation,
477
- "vue-rings-item-onload": !x.value && e.value.useCssAnimation,
478
- "vue-ui-rings-opacity": w.value !== null && w.value !== a
466
+ (u(!0), v(Z, null, ee(p.value, (l, a) => (u(), v("g", null, [
467
+ T("circle", {
468
+ class: U({
469
+ "vue-ui-rings-item": O.value && e.value.useCssAnimation,
470
+ "vue-rings-item-onload": !O.value && e.value.useCssAnimation,
471
+ "vue-ui-rings-opacity": $.value !== null && $.value !== a
479
472
  }),
480
- style: I(`animation-delay:${a * 100}ms`),
473
+ style: N(`animation-delay:${a * 100}ms`),
481
474
  stroke: e.value.style.chart.layout.rings.stroke,
482
- cx: s.value.width / 2,
483
- cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
484
- r: r(H)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
475
+ cx: n.value.width / 2,
476
+ cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
477
+ r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
485
478
  fill: e.value.style.chart.layout.rings.gradient.underlayerColor
486
- }, null, 14, Ft),
487
- _("circle", {
488
- class: M({
489
- "vue-ui-rings-item": x.value && e.value.useCssAnimation,
490
- "vue-rings-item-onload": !x.value && e.value.useCssAnimation,
479
+ }, null, 14, Mt),
480
+ T("circle", {
481
+ class: U({
482
+ "vue-ui-rings-item": O.value && e.value.useCssAnimation,
483
+ "vue-rings-item-onload": !O.value && e.value.useCssAnimation,
491
484
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
492
- "vue-ui-rings-blur": w.value !== null && w.value !== a
485
+ "vue-ui-rings-blur": $.value !== null && $.value !== a
493
486
  }),
494
- style: I(`animation-delay:${a * 100}ms`),
487
+ style: N(`animation-delay:${a * 100}ms`),
495
488
  stroke: e.value.style.chart.layout.rings.stroke,
496
489
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
497
- cx: s.value.width / 2,
498
- cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
499
- r: r(H)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
500
- fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${$.value}_${a})` : l.color
501
- }, null, 14, Lt),
502
- t.$slots.pattern ? (n(), v("circle", {
490
+ cx: n.value.width / 2,
491
+ cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
492
+ r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
493
+ fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${a})` : l.color
494
+ }, null, 14, Vt),
495
+ t.$slots.pattern ? (u(), v("circle", {
503
496
  key: 0,
504
- class: M({
505
- "vue-ui-rings-item": x.value && e.value.useCssAnimation,
506
- "vue-rings-item-onload": !x.value && e.value.useCssAnimation,
497
+ class: U({
498
+ "vue-ui-rings-item": O.value && e.value.useCssAnimation,
499
+ "vue-rings-item-onload": !O.value && e.value.useCssAnimation,
507
500
  "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
508
- "vue-ui-rings-blur": w.value !== null && w.value !== a
501
+ "vue-ui-rings-blur": $.value !== null && $.value !== a
509
502
  }),
510
- style: I(`animation-delay:${a * 100}ms`),
503
+ style: N(`animation-delay:${a * 100}ms`),
511
504
  stroke: e.value.style.chart.layout.rings.stroke,
512
505
  "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
513
- cx: s.value.width / 2,
514
- cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
515
- r: r(H)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
516
- fill: `url(#pattern_${$.value}_${l.absoluteIndex})`
517
- }, null, 14, Rt)) : m("", !0),
518
- _("circle", {
506
+ cx: n.value.width / 2,
507
+ cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
508
+ r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
509
+ fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
510
+ }, null, 14, zt)) : m("", !0),
511
+ T("circle", {
519
512
  stroke: "none",
520
- cx: s.value.width / 2,
521
- cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
522
- r: r(H)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
513
+ cx: n.value.width / 2,
514
+ cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
515
+ r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
523
516
  fill: "transparent",
524
- onMouseenter: (u) => Be(a, l),
525
- onMouseleave: o[0] || (o[0] = (u) => {
526
- w.value = null, z.value = !1;
517
+ onMouseenter: (r) => Qe(a, l),
518
+ onMouseleave: o[0] || (o[0] = (r) => {
519
+ $.value = null, B.value = !1;
527
520
  })
528
- }, null, 40, Mt)
521
+ }, null, 40, Ut)
529
522
  ]))), 256)),
530
- d(t.$slots, "svg", { svg: s.value }, void 0, !0)
531
- ], 14, It)) : m("", !0),
532
- t.$slots.watermark ? (n(), v("div", Vt, [
533
- d(t.$slots, "watermark", P(F({ isPrinting: r(pe) || r(he) })), void 0, !0)
523
+ d(t.$slots, "svg", { svg: n.value }, void 0, !0)
524
+ ], 14, Pt)) : m("", !0),
525
+ t.$slots.watermark ? (u(), v("div", Wt, [
526
+ d(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
534
527
  ])) : m("", !0),
535
- V.value ? m("", !0) : (n(), O(mt, {
528
+ W.value ? m("", !0) : (u(), P(s(We), {
536
529
  key: 6,
537
530
  config: {
538
531
  type: "rings",
@@ -544,25 +537,25 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
544
537
  }
545
538
  }
546
539
  }, null, 8, ["config"])),
547
- _("div", {
540
+ T("div", {
548
541
  ref_key: "chartLegend",
549
- ref: le
542
+ ref: ae
550
543
  }, [
551
- e.value.style.chart.legend.show ? (n(), O(yt, {
552
- key: `legend_${ue.value}`,
553
- legendSet: be.value,
554
- config: Ue.value,
555
- onClickMarker: o[1] || (o[1] = ({ legend: l }) => X(l.uid))
556
- }, we({
544
+ e.value.style.chart.legend.show ? (u(), P(xt, {
545
+ key: `legend_${ie.value}`,
546
+ legendSet: Ce.value,
547
+ config: Je.value,
548
+ onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
549
+ }, xe({
557
550
  item: h(({ legend: l, index: a }) => [
558
- _("div", {
559
- onClick: (u) => X(l.uid),
560
- style: I(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
551
+ T("div", {
552
+ onClick: (r) => Y(l.uid),
553
+ style: N(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
561
554
  }, [
562
- _e(E(l.name) + ": " + E(r(Ie)(
555
+ Ie(G(l.name) + ": " + G(s(Pe)(
563
556
  e.value.style.chart.layout.labels.dataLabels.formatter,
564
557
  l.value,
565
- r(S)({
558
+ s(A)({
566
559
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
567
560
  v: l.value,
568
561
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -570,43 +563,43 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
570
563
  }),
571
564
  { datapoint: l, seriesIndex: a }
572
565
  )) + " ", 1),
573
- f.value.includes(l.uid) ? (n(), v("span", Wt, " ( - % ) ")) : (n(), v("span", Ut, " (" + E(isNaN(l.value / C.value) ? "-" : r(S)({
566
+ f.value.includes(l.uid) ? (u(), v("span", Dt, " ( - % ) ")) : (u(), v("span", Et, " (" + G(isNaN(l.value / C.value) ? "-" : s(A)({
574
567
  v: l.value / C.value * 100,
575
568
  s: "%",
576
569
  r: e.value.style.chart.legend.roundingPercentage
577
570
  })) + ") ", 1))
578
- ], 12, zt)
571
+ ], 12, Bt)
579
572
  ]),
580
573
  _: 2
581
574
  }, [
582
575
  t.$slots.pattern ? {
583
576
  name: "legend-pattern",
584
577
  fn: h(({ legend: l, index: a }) => [
585
- J(wt, {
578
+ Q(s(Ue), {
586
579
  shape: l.shape,
587
580
  radius: 30,
588
581
  stroke: "none",
589
582
  plot: { x: 30, y: 30 },
590
- fill: `url(#pattern_${$.value}_${a})`
583
+ fill: `url(#pattern_${w.value}_${a})`
591
584
  }, null, 8, ["shape", "fill"])
592
585
  ]),
593
586
  key: "0"
594
587
  } : void 0
595
588
  ]), 1032, ["legendSet", "config"])) : d(t.$slots, "legend", {
596
589
  key: 1,
597
- legend: be.value
590
+ legend: Ce.value
598
591
  }, void 0, !0)
599
592
  ], 512),
600
- t.$slots.source ? (n(), v("div", {
593
+ t.$slots.source ? (u(), v("div", {
601
594
  key: 7,
602
595
  ref_key: "source",
603
- ref: oe,
596
+ ref: se,
604
597
  dir: "auto"
605
598
  }, [
606
599
  d(t.$slots, "source", {}, void 0, !0)
607
600
  ], 512)) : m("", !0),
608
- J(gt, {
609
- show: k.value.showTooltip && z.value && f.value.length < b.dataset.length,
601
+ Q(s(Be), {
602
+ show: k.value.showTooltip && B.value && f.value.length < b.dataset.length,
610
603
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
611
604
  color: e.value.style.chart.tooltip.color,
612
605
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -616,20 +609,20 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
616
609
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
617
610
  position: e.value.style.chart.tooltip.position,
618
611
  offsetY: e.value.style.chart.tooltip.offsetY,
619
- parent: L.value,
620
- content: G.value,
621
- isFullscreen: A.value,
612
+ parent: V.value,
613
+ content: X.value,
614
+ isFullscreen: L.value,
622
615
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
623
616
  }, {
624
617
  "tooltip-before": h(() => [
625
- d(t.$slots, "tooltip-before", P(F({ ...q.value })), void 0, !0)
618
+ d(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
626
619
  ]),
627
620
  "tooltip-after": h(() => [
628
- d(t.$slots, "tooltip-after", P(F({ ...q.value })), void 0, !0)
621
+ d(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
629
622
  ]),
630
623
  _: 3
631
624
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
632
- V.value ? (n(), O(bt, {
625
+ W.value ? (u(), P(s(Re), {
633
626
  key: 8,
634
627
  hideDetails: "",
635
628
  config: {
@@ -646,32 +639,32 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
646
639
  }
647
640
  }, {
648
641
  content: h(() => [
649
- (n(), O(ft, {
650
- key: `table_${ne.value}`,
651
- colNames: B.value.colNames,
652
- head: B.value.head,
653
- body: B.value.body,
654
- config: B.value.config,
642
+ (u(), P(s(Me), {
643
+ key: `table_${re.value}`,
644
+ colNames: D.value.colNames,
645
+ head: D.value.head,
646
+ body: D.value.body,
647
+ config: D.value.config,
655
648
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
656
649
  onClose: o[2] || (o[2] = (l) => k.value.showTable = !1)
657
650
  }, {
658
651
  th: h(({ th: l }) => [
659
- _("div", {
652
+ T("div", {
660
653
  innerHTML: l,
661
654
  style: { display: "flex", "align-items": "center" }
662
- }, null, 8, Bt)
655
+ }, null, 8, Ht)
663
656
  ]),
664
657
  td: h(({ td: l }) => [
665
- _e(E(l.name || l), 1)
658
+ Ie(G(l.name || l), 1)
666
659
  ]),
667
660
  _: 1
668
661
  }, 8, ["colNames", "head", "body", "config", "title"]))
669
662
  ]),
670
663
  _: 1
671
664
  }, 8, ["config"])) : m("", !0)
672
- ], 46, xt));
665
+ ], 46, Nt));
673
666
  }
674
- }, nl = /* @__PURE__ */ Tt(Dt, [["__scopeId", "data-v-be9fc972"]]);
667
+ }, ll = /* @__PURE__ */ Ot(Gt, [["__scopeId", "data-v-0de2504d"]]);
675
668
  export {
676
- nl as default
669
+ ll as default
677
670
  };