vue-data-ui 2.12.6 → 2.12.7-beta.1

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