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,23 +1,17 @@
1
- import { computed as h, ref as r, watch as we, onMounted as Xe, onBeforeUnmount as Ge, createElementBlock as u, openBlock as n, unref as i, normalizeStyle as B, normalizeClass as U, createBlock as C, createCommentVNode as g, createElementVNode as _, createVNode as $e, createSlots as Ee, withCtx as f, renderSlot as d, normalizeProps as O, guardReactiveProps as P, Fragment as M, renderList as N, toDisplayString as I, createTextVNode as He, nextTick as We } from "vue";
2
- import { u as je, c as qe, t as Je, p as Ce, a as Ke, b as Qe, o as Ze, e as K, d as et, X as tt, f as R, i as Q, x as xe, q as at, r as lt, y as ot } from "./index-BFzQMJda.js";
3
- import { t as st, u as nt } from "./useResponsive-JZ9xq-JV.js";
4
- import { _ as rt } from "./Title-CzaCeCOm.js";
5
- import { u as ut, U as it } from "./usePrinter-C5bLp34h.js";
6
- import { L as ct } from "./Legend-BxtDQCIv.js";
7
- import { D as dt } from "./DataTable-Rajdtaf6.js";
8
- import { _ as vt } from "./Tooltip-CWmRmhJr.js";
9
- import ht from "./vue-ui-skeleton-B_YI7Yuc.js";
10
- import ft from "./vue-ui-accordion-BUz4JIIX.js";
11
- import { u as Te } from "./useNestedProp-v7KPpwuP.js";
12
- import { _ as gt } from "./PackageVersion-BjrblLPQ.js";
13
- import { _ as pt } from "./PenAndPaper-BkP3J-Ft.js";
14
- import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { u as mt } from "./useChartAccessibility-BWojgys7.js";
16
- import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], xt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Tt = ["id"], _t = ["stdDeviation"], Ot = ["filter"], Pt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], It = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], At = { key: 2 }, St = ["onMouseenter"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = {
1
+ import { defineAsyncComponent as x, computed as h, ref as u, watch as Ce, shallowRef as xe, onMounted as Ze, onBeforeUnmount as et, createElementBlock as i, openBlock as s, unref as r, normalizeStyle as U, normalizeClass as G, createBlock as T, createCommentVNode as g, createElementVNode as A, createVNode as Te, createSlots as tt, withCtx as f, renderSlot as v, normalizeProps as I, guardReactiveProps as S, Fragment as D, renderList as L, toDisplayString as F, createTextVNode as at, nextTick as lt } from "vue";
2
+ import { u as ot, c as nt, t as st, p as Oe, a as rt, b as ut, o as it, e as Z, d as ct, X as vt, f as V, i as ee, x as Pe, q as dt, r as ht, y as ft } from "./index-BHEd2dgu.js";
3
+ import { t as gt, u as pt } from "./useResponsive-JZ9xq-JV.js";
4
+ import { u as _e } from "./useNestedProp-CZztHZIm.js";
5
+ import { u as yt } from "./usePrinter-C8URL2IU.js";
6
+ import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as bt } from "./useChartAccessibility-9icAAmYg.js";
8
+ import kt from "./Title-Bc66VstS.js";
9
+ import wt from "./Legend-DtTYopxf.js";
10
+ import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const Ct = ["id"], xt = ["xmlns", "viewBox"], Tt = ["width", "height"], Ot = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Pt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], _t = ["id"], At = ["stdDeviation"], It = ["filter"], St = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], Ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], Mt = { key: 2 }, Rt = ["onMouseenter"], Nt = ["x", "y", "font-size", "fill", "font-weight"], Dt = {
18
12
  key: 5,
19
13
  class: "vue-data-ui-watermark"
20
- }, Nt = ["onClick"], Rt = ["innerHTML"], Dt = {
14
+ }, Lt = ["onClick"], Vt = ["innerHTML"], zt = {
21
15
  __name: "vue-ui-onion",
22
16
  props: {
23
17
  config: {
@@ -34,35 +28,35 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
34
28
  }
35
29
  },
36
30
  emits: ["selectLegend"],
37
- setup(_e, { expose: Oe, emit: Pe }) {
38
- const { vue_ui_onion: Ie } = je(), w = _e, D = h(() => !!w.dataset && w.dataset.length), x = r(qe()), Ae = r(null), Z = r(0), L = r(!1), X = r(""), y = r([]), A = r(null), ee = r(null), te = r(null), ae = r(null), le = r(null), oe = r(0), se = r(0), ne = r(0), e = h({
39
- get: () => ce(),
31
+ setup(Ae, { expose: Ie, emit: Se }) {
32
+ const Fe = x(() => import("./vue-ui-accordion-DntThSTF.js")), Me = x(() => import("./DataTable-Y5HbiUZU.js")), Re = x(() => import("./PackageVersion-DaWGaZxE.js")), Ne = x(() => import("./PenAndPaper-C-CpE0NC.js")), De = x(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), Le = x(() => import("./Tooltip-B07vY6jm.js")), Ve = x(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_onion: ze } = ot(), w = Ae, z = h(() => !!w.dataset && w.dataset.length), O = u(nt()), Ye = u(null), te = u(0), Y = u(!1), E = u(""), y = u([]), M = u(null), ae = u(null), le = u(null), oe = u(null), ne = u(null), se = u(0), re = u(0), ue = u(0), e = h({
33
+ get: () => de(),
40
34
  set: (t) => t
41
- }), { userOptionsVisible: G, setUserOptionsVisibility: re, keepUserOptionState: ue } = yt({ config: e.value }), { svgRef: ie } = mt({ config: e.value.style.chart.title });
42
- function ce() {
43
- const t = Te({
35
+ }), { userOptionsVisible: H, setUserOptionsVisibility: ie, keepUserOptionState: ce } = mt({ config: e.value }), { svgRef: ve } = bt({ config: e.value.style.chart.title });
36
+ function de() {
37
+ const t = _e({
44
38
  userConfig: w.config,
45
- defaultConfig: Ie
39
+ defaultConfig: ze
46
40
  });
47
41
  return t.theme ? {
48
- ...Te({
49
- userConfig: Ke.vue_ui_onion[t.theme] || w.config,
42
+ ..._e({
43
+ userConfig: rt.vue_ui_onion[t.theme] || w.config,
50
44
  defaultConfig: t
51
45
  }),
52
- customPalette: Je[t.theme] || Ce
46
+ customPalette: st[t.theme] || Oe
53
47
  } : t;
54
48
  }
55
- we(() => w.config, (t) => {
56
- e.value = ce(), G.value = !e.value.userOptions.showOnChartHover, ge(), oe.value += 1, se.value += 1, ne.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
49
+ Ce(() => w.config, (t) => {
50
+ e.value = de(), H.value = !e.value.userOptions.showOnChartHover, ye(), se.value += 1, re.value += 1, ue.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show;
57
51
  }, { deep: !0 });
58
- const { isPrinting: de, isImaging: ve, generatePdf: he, generateImage: fe } = ut({
59
- elementId: `vue-ui-onion_${x.value}`,
52
+ const { isPrinting: he, isImaging: fe, generatePdf: ge, generateImage: pe } = yt({
53
+ elementId: `vue-ui-onion_${O.value}`,
60
54
  fileName: e.value.style.chart.title.text || "vue-ui-onion",
61
55
  options: e.value.userOptions.print
62
- }), Se = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = h(() => Qe(e.value.customPalette)), m = r({
56
+ }), Be = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = h(() => ut(e.value.customPalette)), m = u({
63
57
  showTable: e.value.table.show,
64
58
  showTooltip: e.value.style.chart.tooltip.show
65
- }), s = r({
59
+ }), n = u({
66
60
  height: 512,
67
61
  width: 512,
68
62
  padding: {
@@ -72,119 +66,119 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
72
66
  bottom: 64
73
67
  },
74
68
  minRadius: 64
75
- }), V = r(null);
76
- Xe(() => {
77
- ge();
69
+ }), $ = xe(null), P = xe(null);
70
+ Ze(() => {
71
+ ye();
78
72
  });
79
- function ge() {
80
- if (Ze(w.dataset) && K({
73
+ function ye() {
74
+ if (it(w.dataset) && Z({
81
75
  componentName: "VueUiOnion",
82
76
  type: "dataset"
83
77
  }), e.value.responsive) {
84
- const o = st(() => {
85
- const { width: a, height: l } = nt({
86
- chart: A.value,
87
- title: e.value.style.chart.title.text ? ee.value : null,
88
- legend: e.value.style.chart.legend.show ? te.value : null,
89
- source: ae.value,
90
- noTitle: le.value
78
+ const o = gt(() => {
79
+ const { width: a, height: l } = pt({
80
+ chart: M.value,
81
+ title: e.value.style.chart.title.text ? ae.value : null,
82
+ legend: e.value.style.chart.legend.show ? le.value : null,
83
+ source: oe.value,
84
+ noTitle: ne.value
91
85
  });
92
86
  requestAnimationFrame(() => {
93
- s.value.width = a, s.value.height = l, s.value.padding.top = Math.max(a, l) * 0.125, s.value.padding.right = Math.max(a, l) * 0.125, s.value.padding.bottom = Math.max(a, l) * 0.125, s.value.padding.left = Math.max(a, l) * 0.125, s.value.minRadius = Math.min(a, l) * 0.125;
87
+ n.value.width = a, n.value.height = l, n.value.padding.top = Math.max(a, l) * 0.125, n.value.padding.right = Math.max(a, l) * 0.125, n.value.padding.bottom = Math.max(a, l) * 0.125, n.value.padding.left = Math.max(a, l) * 0.125, n.value.minRadius = Math.min(a, l) * 0.125;
94
88
  });
95
89
  });
96
- V.value = new ResizeObserver(o), V.value.observe(A.value.parentNode);
90
+ $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(o), P.value = M.value.parentNode, $.value.observe(P.value);
97
91
  }
98
92
  }
99
- Ge(() => {
100
- V.value && V.value.disconnect();
93
+ et(() => {
94
+ $.value && (P.value && $.value.unobserve(P.value), $.value.disconnect());
101
95
  });
102
96
  const c = h(() => ({
103
- top: s.value.padding.top,
104
- left: s.value.padding.left,
105
- right: s.value.width - s.value.padding.right,
106
- bottom: s.value.height - s.value.padding.bottom,
107
- centerX: s.value.width / 2,
108
- centerY: s.value.height / 2,
109
- width: s.value.width - s.value.padding.right - s.value.padding.left,
110
- height: s.value.height - s.value.padding.bottom - s.value.padding.top,
111
- minRadius: s.value.minRadius,
112
- maxRadius: Math.min(s.value.width, s.value.height) - s.value.padding.top * 2
113
- })), v = h(() => (w.dataset.forEach((t, o) => {
114
- [null, void 0].includes(t.name) && K({
97
+ top: n.value.padding.top,
98
+ left: n.value.padding.left,
99
+ right: n.value.width - n.value.padding.right,
100
+ bottom: n.value.height - n.value.padding.bottom,
101
+ centerX: n.value.width / 2,
102
+ centerY: n.value.height / 2,
103
+ width: n.value.width - n.value.padding.right - n.value.padding.left,
104
+ height: n.value.height - n.value.padding.bottom - n.value.padding.top,
105
+ minRadius: n.value.minRadius,
106
+ maxRadius: Math.min(n.value.width, n.value.height) - n.value.padding.top * 2
107
+ })), d = h(() => (w.dataset.forEach((t, o) => {
108
+ [null, void 0].includes(t.name) && Z({
115
109
  componentName: "VueUiOnion",
116
110
  type: "datasetSerieAttribute",
117
111
  property: "name",
118
112
  index: o
119
- }), [void 0].includes(t.percentage) && K({
113
+ }), [void 0].includes(t.percentage) && Z({
120
114
  componentName: "VueUiOnion",
121
115
  type: "datasetSerieAttribute",
122
116
  property: "percentage",
123
117
  index: o
124
118
  });
125
119
  }), w.dataset.map((t, o) => {
126
- const a = `onion_serie_${o}_${x.value}`;
120
+ const a = `onion_serie_${o}_${O.value}`;
127
121
  return {
128
122
  ...t,
129
123
  percentage: t.percentage || 0,
130
124
  targetPercentage: t.percentage || 0,
131
- color: et(t.color) || Fe.value[o] || Ce[o],
125
+ color: ct(t.color) || Xe.value[o] || Oe[o],
132
126
  id: a,
133
127
  shape: "circle",
134
128
  opacity: y.value.includes(a) ? 0.5 : 1,
135
129
  absoluteIndex: o,
136
- segregate: () => pe(a),
130
+ segregate: () => me(a),
137
131
  isSegregated: y.value.includes(a)
138
132
  };
139
- }))), S = r(v.value), Me = h(() => e.value.useStartAnimation), Ne = r(null), Re = h(() => Math.max(...v.value.map((t) => t.percentage))), E = r(!1);
140
- we(() => v.value, De, { immediate: !0 });
141
- function De() {
142
- if (Me.value && !E.value) {
133
+ }))), R = u(d.value), Ue = h(() => e.value.useStartAnimation), Ge = u(null), Ee = h(() => Math.max(...d.value.map((t) => t.percentage))), W = u(!1);
134
+ Ce(() => d.value, He, { immediate: !0 });
135
+ function He() {
136
+ if (Ue.value && !W.value) {
143
137
  let o = function() {
144
- t >= Re.value ? (cancelAnimationFrame(Ne.value), S.value = v.value, E.value = !0) : (S.value = v.value.map((a) => ({
138
+ t >= Ee.value ? (cancelAnimationFrame(Ge.value), R.value = d.value, W.value = !0) : (R.value = d.value.map((a) => ({
145
139
  ...a,
146
140
  percentage: t < a.targetPercentage ? t : a.targetPercentage
147
- })), t += 1, requestAnimationFrame(o), E.value = !0);
141
+ })), t += 1, requestAnimationFrame(o), W.value = !0);
148
142
  };
149
- S.value = v.value.map((a) => ({
143
+ R.value = d.value.map((a) => ({
150
144
  ...a,
151
145
  percentage: 0
152
146
  }));
153
147
  let t = 0;
154
148
  o();
155
149
  } else
156
- S.value = v.value;
150
+ R.value = d.value;
157
151
  }
158
- const Le = h(() => ({
152
+ const We = h(() => ({
159
153
  cy: "onion-div-legend",
160
154
  backgroundColor: e.value.style.chart.legend.backgroundColor,
161
155
  color: e.value.style.chart.legend.color,
162
156
  fontSize: e.value.style.chart.legend.fontSize,
163
157
  paddingBottom: 12,
164
158
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
165
- })), Ve = h(() => v.value.filter((t) => !y.value.includes(t.id)).length), $ = h(() => {
166
- const t = Math.min(c.value.width, c.value.height) / 2 / v.value.length;
159
+ })), je = h(() => d.value.filter((t) => !y.value.includes(t.id)).length), C = h(() => {
160
+ const t = Math.min(c.value.width, c.value.height) / 2 / d.value.length;
167
161
  return {
168
162
  gutter: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.gutter.width,
169
163
  track: (t > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : t) * e.value.style.chart.layout.track.width
170
164
  };
171
- }), b = h(() => S.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
172
- const a = (c.value.maxRadius - $.value.track) / Ve.value / 2 * (1 + o), l = c.value.centerY - a;
165
+ }), b = h(() => R.value.filter((t) => !y.value.includes(t.id)).map((t, o) => {
166
+ const a = (c.value.maxRadius - C.value.track) / je.value / 2 * (1 + o), l = c.value.centerY - a;
173
167
  return {
174
168
  percentage: t.percentage || 0,
175
169
  ...t,
176
170
  labelY: l,
177
171
  radius: a,
178
- path: ze(a, t.percentage || 0)
172
+ path: qe(a, t.percentage || 0)
179
173
  };
180
174
  }));
181
- function ze(t, o) {
182
- const a = 2 * Math.PI * t, l = a * 0.75, p = `${l} ${a}`, F = l * (1 - o / 100);
175
+ function qe(t, o) {
176
+ const a = 2 * Math.PI * t, l = a * 0.75, p = `${l} ${a}`, N = l * (1 - o / 100);
183
177
  return {
184
178
  bgDashArray: `${l} ${a}`,
185
179
  bgDashOffset: 0,
186
180
  dashArray: p,
187
- dashOffset: F,
181
+ dashOffset: N,
188
182
  fullOffset: 0,
189
183
  active: `
190
184
  M ${c.value.centerX},${c.value.centerY - t}
@@ -193,22 +187,22 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
193
187
  `.trim()
194
188
  };
195
189
  }
196
- const Ye = Pe;
197
- function pe(t) {
198
- y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Ye("selectLegend", b.value);
190
+ const Je = Se;
191
+ function me(t) {
192
+ y.value.includes(t) ? y.value = y.value.filter((o) => o !== t) : y.value.push(t), Je("selectLegend", b.value);
199
193
  }
200
- function Be() {
194
+ function Ke() {
201
195
  return b.value;
202
196
  }
203
- const H = h(() => {
197
+ const j = h(() => {
204
198
  const t = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = b.value.map((a) => [
205
199
  a.name,
206
200
  a.percentage,
207
201
  a.value
208
202
  ]);
209
203
  return { head: t, body: o };
210
- }), z = h(() => {
211
- const t = H.value.head, o = b.value.map((l) => [
204
+ }), B = h(() => {
205
+ const t = j.value.head, o = b.value.map((l) => [
212
206
  `<span style="color:${l.color}">⬤</span> ${l.name}`,
213
207
  `${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
214
208
  `${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
@@ -227,104 +221,104 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
227
221
  };
228
222
  return { head: t, body: o, config: a, colNames: t };
229
223
  });
230
- function ye() {
231
- We(() => {
232
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = H.value.head, a = H.value.body, l = t.concat([o]).concat(a), p = at(l);
233
- lt({ csvContent: p, title: e.value.style.chart.title.text || "vue-ui-onion" });
224
+ function be() {
225
+ lt(() => {
226
+ const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = j.value.head, a = j.value.body, l = t.concat([o]).concat(a), p = dt(l);
227
+ ht({ csvContent: p, title: e.value.style.chart.title.text || "vue-ui-onion" });
234
228
  });
235
229
  }
236
- const k = r(void 0), T = r(!1);
237
- function Ue(t) {
238
- T.value = t, Z.value += 1;
230
+ const k = u(void 0), _ = u(!1);
231
+ function Qe(t) {
232
+ _.value = t, te.value += 1;
239
233
  }
240
- const W = r(null);
241
- function me({ datapoint: t, seriesIndex: o, show: a = !0 }) {
234
+ const q = u(null);
235
+ function ke({ datapoint: t, seriesIndex: o, show: a = !0 }) {
242
236
  const l = t.absoluteIndex;
243
- k.value = o, W.value = {
237
+ k.value = o, q.value = {
244
238
  datapoint: t,
245
239
  seriesIndex: l,
246
- series: v.value,
240
+ series: d.value,
247
241
  config: e.value
248
- }, L.value = a;
242
+ }, Y.value = a;
249
243
  let p = "";
250
- const F = e.value.style.chart.tooltip.customFormat;
251
- if (xe(F) && ot(() => F({
244
+ const N = e.value.style.chart.tooltip.customFormat;
245
+ if (Pe(N) && ft(() => N({
252
246
  seriesIndex: l,
253
247
  datapoint: t,
254
- series: v.value,
248
+ series: d.value,
255
249
  config: e.value
256
250
  })))
257
- X.value = F({
251
+ E.value = N({
258
252
  seriesIndex: l,
259
253
  datapoint: t,
260
- series: v.value,
254
+ series: d.value,
261
255
  config: e.value
262
256
  });
263
257
  else {
264
- const q = e.value.style.chart.tooltip.showPercentage, J = e.value.style.chart.tooltip.showValue;
265
- p += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, p += `<div style="width:100%;text-align:left;"><b>${q ? R({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${q && J ? "(" : ""}${J ? Q(
258
+ const K = e.value.style.chart.tooltip.showPercentage, Q = e.value.style.chart.tooltip.showValue;
259
+ p += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg><span></span>${t.name}</span></div>`, p += `<div style="width:100%;text-align:left;"><b>${K ? V({ p: "", v: t.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${K && Q ? "(" : ""}${Q ? ee(
266
260
  e.value.style.chart.layout.labels.value.formatter,
267
261
  t.value,
268
- R({
262
+ V({
269
263
  p: t.prefix || "",
270
264
  v: t.value,
271
265
  s: t.suffix || "",
272
266
  r: e.value.style.chart.tooltip.roundingValue
273
267
  }),
274
268
  { datapoint: t, seriesIndex: o }
275
- ) : ""}${q && J ? ")" : ""}</div>`, X.value = `<div>${p}</div>`;
269
+ ) : ""}${K && Q ? ")" : ""}</div>`, E.value = `<div>${p}</div>`;
276
270
  }
277
271
  }
278
- function be() {
272
+ function we() {
279
273
  m.value.showTable = !m.value.showTable;
280
274
  }
281
- function ke() {
275
+ function $e() {
282
276
  m.value.showTooltip = !m.value.showTooltip;
283
277
  }
284
- const Y = r(!1);
285
- function j() {
286
- Y.value = !Y.value;
278
+ const X = u(!1);
279
+ function J() {
280
+ X.value = !X.value;
287
281
  }
288
- return Oe({
289
- getData: Be,
290
- generatePdf: he,
291
- generateCsv: ye,
292
- generateImage: fe,
293
- toggleTable: be,
294
- toggleTooltip: ke,
295
- toggleAnnotator: j
296
- }), (t, o) => (n(), u("div", {
297
- class: U(`vue-ui-onion ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
282
+ return Ie({
283
+ getData: Ke,
284
+ generatePdf: ge,
285
+ generateCsv: be,
286
+ generateImage: pe,
287
+ toggleTable: we,
288
+ toggleTooltip: $e,
289
+ toggleAnnotator: J
290
+ }), (t, o) => (s(), i("div", {
291
+ class: G(`vue-ui-onion ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
298
292
  ref_key: "onionChart",
299
- ref: A,
300
- id: `vue-ui-onion_${x.value}`,
301
- style: B(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
302
- onMouseenter: o[4] || (o[4] = () => i(re)(!0)),
303
- onMouseleave: o[5] || (o[5] = () => i(re)(!1))
293
+ ref: M,
294
+ id: `vue-ui-onion_${O.value}`,
295
+ style: U(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
296
+ onMouseenter: o[4] || (o[4] = () => r(ie)(!0)),
297
+ onMouseleave: o[5] || (o[5] = () => r(ie)(!1))
304
298
  }, [
305
- e.value.userOptions.buttons.annotator ? (n(), C(pt, {
299
+ e.value.userOptions.buttons.annotator ? (s(), T(r(Ne), {
306
300
  key: 0,
307
- svgRef: i(ie),
301
+ svgRef: r(ve),
308
302
  backgroundColor: e.value.style.chart.backgroundColor,
309
303
  color: e.value.style.chart.color,
310
- active: Y.value,
311
- onClose: j
304
+ active: X.value,
305
+ onClose: J
312
306
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
313
- Se.value ? (n(), u("div", {
307
+ Be.value ? (s(), i("div", {
314
308
  key: 1,
315
309
  ref_key: "noTitle",
316
- ref: le,
310
+ ref: ne,
317
311
  class: "vue-data-ui-no-title-space",
318
312
  style: "height:36px; width: 100%;background:transparent"
319
313
  }, null, 512)) : g("", !0),
320
- e.value.style.chart.title.text ? (n(), u("div", {
314
+ e.value.style.chart.title.text ? (s(), i("div", {
321
315
  key: 2,
322
316
  ref_key: "chartTitle",
323
- ref: ee,
317
+ ref: ae,
324
318
  style: "width:100%;background:transparent"
325
319
  }, [
326
- (n(), C(rt, {
327
- key: `title_${oe.value}`,
320
+ (s(), T(kt, {
321
+ key: `title_${se.value}`,
328
322
  config: {
329
323
  title: {
330
324
  cy: "onion-div-title",
@@ -337,248 +331,248 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
337
331
  }
338
332
  }, null, 8, ["config"]))
339
333
  ], 512)) : g("", !0),
340
- e.value.userOptions.show && D.value && (i(ue) || i(G)) ? (n(), C(it, {
334
+ e.value.userOptions.show && z.value && (r(ce) || r(H)) ? (s(), T(r(Ve), {
341
335
  ref_key: "details",
342
- ref: Ae,
343
- key: `user_options${Z.value}`,
336
+ ref: Ye,
337
+ key: `user_options${te.value}`,
344
338
  backgroundColor: e.value.style.chart.backgroundColor,
345
339
  color: e.value.style.chart.color,
346
- isImaging: i(ve),
347
- isPrinting: i(de),
348
- uid: x.value,
340
+ isImaging: r(fe),
341
+ isPrinting: r(he),
342
+ uid: O.value,
349
343
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
350
344
  hasPdf: e.value.userOptions.buttons.pdf,
351
345
  hasImg: e.value.userOptions.buttons.img,
352
346
  hasXls: e.value.userOptions.buttons.csv,
353
347
  hasTable: e.value.userOptions.buttons.table,
354
348
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
355
- isFullscreen: T.value,
349
+ isFullscreen: _.value,
356
350
  isTooltip: m.value.showTooltip,
357
351
  titles: { ...e.value.userOptions.buttonTitles },
358
- chartElement: A.value,
352
+ chartElement: M.value,
359
353
  position: e.value.userOptions.position,
360
354
  hasAnnotator: e.value.userOptions.buttons.annotator,
361
- isAnnotation: Y.value,
362
- onToggleFullscreen: Ue,
363
- onGeneratePdf: i(he),
364
- onGenerateCsv: ye,
365
- onGenerateImage: i(fe),
366
- onToggleTable: be,
367
- onToggleTooltip: ke,
368
- onToggleAnnotator: j,
369
- style: B({
370
- visibility: i(ue) ? i(G) ? "visible" : "hidden" : "visible"
355
+ isAnnotation: X.value,
356
+ onToggleFullscreen: Qe,
357
+ onGeneratePdf: r(ge),
358
+ onGenerateCsv: be,
359
+ onGenerateImage: r(pe),
360
+ onToggleTable: we,
361
+ onToggleTooltip: $e,
362
+ onToggleAnnotator: J,
363
+ style: U({
364
+ visibility: r(ce) ? r(H) ? "visible" : "hidden" : "visible"
371
365
  })
372
- }, Ee({ _: 2 }, [
366
+ }, tt({ _: 2 }, [
373
367
  t.$slots.menuIcon ? {
374
368
  name: "menuIcon",
375
369
  fn: f(({ isOpen: a, color: l }) => [
376
- d(t.$slots, "menuIcon", O(P({ isOpen: a, color: l })), void 0, !0)
370
+ v(t.$slots, "menuIcon", I(S({ isOpen: a, color: l })), void 0, !0)
377
371
  ]),
378
372
  key: "0"
379
373
  } : void 0,
380
374
  t.$slots.optionTooltip ? {
381
375
  name: "optionTooltip",
382
376
  fn: f(() => [
383
- d(t.$slots, "optionTooltip", {}, void 0, !0)
377
+ v(t.$slots, "optionTooltip", {}, void 0, !0)
384
378
  ]),
385
379
  key: "1"
386
380
  } : void 0,
387
381
  t.$slots.optionPdf ? {
388
382
  name: "optionPdf",
389
383
  fn: f(() => [
390
- d(t.$slots, "optionPdf", {}, void 0, !0)
384
+ v(t.$slots, "optionPdf", {}, void 0, !0)
391
385
  ]),
392
386
  key: "2"
393
387
  } : void 0,
394
388
  t.$slots.optionCsv ? {
395
389
  name: "optionCsv",
396
390
  fn: f(() => [
397
- d(t.$slots, "optionCsv", {}, void 0, !0)
391
+ v(t.$slots, "optionCsv", {}, void 0, !0)
398
392
  ]),
399
393
  key: "3"
400
394
  } : void 0,
401
395
  t.$slots.optionImg ? {
402
396
  name: "optionImg",
403
397
  fn: f(() => [
404
- d(t.$slots, "optionImg", {}, void 0, !0)
398
+ v(t.$slots, "optionImg", {}, void 0, !0)
405
399
  ]),
406
400
  key: "4"
407
401
  } : void 0,
408
402
  t.$slots.optionTable ? {
409
403
  name: "optionTable",
410
404
  fn: f(() => [
411
- d(t.$slots, "optionTable", {}, void 0, !0)
405
+ v(t.$slots, "optionTable", {}, void 0, !0)
412
406
  ]),
413
407
  key: "5"
414
408
  } : void 0,
415
409
  t.$slots.optionFullscreen ? {
416
410
  name: "optionFullscreen",
417
411
  fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
418
- d(t.$slots, "optionFullscreen", O(P({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
412
+ v(t.$slots, "optionFullscreen", I(S({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
419
413
  ]),
420
414
  key: "6"
421
415
  } : void 0,
422
416
  t.$slots.optionAnnotator ? {
423
417
  name: "optionAnnotator",
424
418
  fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
425
- d(t.$slots, "optionAnnotator", O(P({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
419
+ v(t.$slots, "optionAnnotator", I(S({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
426
420
  ]),
427
421
  key: "7"
428
422
  } : void 0
429
423
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
430
- D.value ? (n(), u("svg", {
424
+ z.value ? (s(), i("svg", {
431
425
  key: 4,
432
426
  ref_key: "svgRef",
433
- ref: ie,
434
- xmlns: i(tt),
435
- class: U({ "vue-data-ui-fullscreen--on": T.value, "vue-data-ui-fulscreen--off": !T.value }),
436
- viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
437
- style: B(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
427
+ ref: ve,
428
+ xmlns: r(vt),
429
+ class: G({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
430
+ viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
431
+ style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
438
432
  }, [
439
- $e(gt),
440
- t.$slots["chart-background"] ? (n(), u("foreignObject", {
433
+ Te(r(Re)),
434
+ t.$slots["chart-background"] ? (s(), i("foreignObject", {
441
435
  key: 0,
442
436
  x: 0,
443
437
  y: 0,
444
- width: s.value.width <= 0 ? 10 : s.value.width,
445
- height: s.value.height <= 0 ? 10 : s.value.height,
438
+ width: n.value.width <= 0 ? 10 : n.value.width,
439
+ height: n.value.height <= 0 ? 10 : n.value.height,
446
440
  style: {
447
441
  pointerEvents: "none"
448
442
  }
449
443
  }, [
450
- d(t.$slots, "chart-background", {}, void 0, !0)
451
- ], 8, $t)) : g("", !0),
452
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
444
+ v(t.$slots, "chart-background", {}, void 0, !0)
445
+ ], 8, Tt)) : g("", !0),
446
+ (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
453
447
  cx: c.value.centerX,
454
448
  cy: c.value.centerY,
455
449
  r: a.radius <= 0 ? 1e-4 : a.radius,
456
450
  stroke: e.value.style.chart.layout.gutter.color,
457
- "stroke-width": $.value.gutter,
451
+ "stroke-width": C.value.gutter,
458
452
  fill: "none",
459
453
  "stroke-dasharray": a.path.bgDashArray,
460
454
  "stroke-dashoffset": a.path.fullOffset,
461
455
  "stroke-linecap": "round",
462
- class: U({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
456
+ class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
463
457
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
464
- }, null, 10, Ct))), 256)),
465
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
458
+ }, null, 10, Ot))), 256)),
459
+ (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
466
460
  cx: c.value.centerX,
467
461
  cy: c.value.centerY,
468
462
  r: a.radius < 0 ? 1e-4 : a.radius,
469
463
  stroke: `${a.color}`,
470
- "stroke-width": $.value.track,
464
+ "stroke-width": C.value.track,
471
465
  fill: "none",
472
466
  "stroke-dasharray": a.path.dashArray,
473
467
  "stroke-dashoffset": a.path.dashOffset,
474
- class: U({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
468
+ class: G({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== l }),
475
469
  "stroke-linecap": "round",
476
470
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
477
- }, null, 10, xt))), 256)),
478
- _("defs", null, [
479
- _("filter", {
480
- id: `blur_${x.value}`,
471
+ }, null, 10, Pt))), 256)),
472
+ A("defs", null, [
473
+ A("filter", {
474
+ id: `blur_${O.value}`,
481
475
  x: "-50%",
482
476
  y: "-50%",
483
477
  width: "200%",
484
478
  height: "200%"
485
479
  }, [
486
- _("feGaussianBlur", {
480
+ A("feGaussianBlur", {
487
481
  in: "SourceGraphic",
488
482
  stdDeviation: 100 / e.value.style.chart.gradientIntensity
489
- }, null, 8, _t)
490
- ], 8, Tt)
483
+ }, null, 8, At)
484
+ ], 8, _t)
491
485
  ]),
492
- e.value.style.chart.useGradient ? (n(), u("g", {
486
+ e.value.style.chart.useGradient ? (s(), i("g", {
493
487
  key: 1,
494
- filter: `url(#blur_${x.value})`
488
+ filter: `url(#blur_${O.value})`
495
489
  }, [
496
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
490
+ (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
497
491
  cx: c.value.centerX,
498
492
  cy: c.value.centerY,
499
493
  r: a.radius <= 0 ? 1e-4 : a.radius,
500
494
  stroke: "white",
501
- "stroke-width": $.value.track / 3,
495
+ "stroke-width": C.value.track / 3,
502
496
  fill: "none",
503
497
  "stroke-linecap": "round",
504
498
  "stroke-dasharray": a.path.dashArray,
505
499
  "stroke-dashoffset": a.path.dashOffset,
506
500
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
507
- }, null, 8, Pt))), 256))
508
- ], 8, Ot)) : g("", !0),
509
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("circle", {
501
+ }, null, 8, St))), 256))
502
+ ], 8, It)) : g("", !0),
503
+ (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("circle", {
510
504
  cx: c.value.centerX,
511
505
  cy: c.value.centerY,
512
506
  r: a.radius <= 0 ? 1e-4 : a.radius,
513
507
  stroke: "transparent",
514
- "stroke-width": Math.max($.value.track, $.value.gutter),
508
+ "stroke-width": Math.max(C.value.track, C.value.gutter),
515
509
  fill: "none",
516
510
  "stroke-dasharray": a.path.bgDashArray,
517
511
  "stroke-dashoffset": a.path.fullOffset,
518
512
  "stroke-linecap": "round",
519
513
  class: "vue-ui-onion-path",
520
514
  style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
521
- onMouseenter: (p) => me({
515
+ onMouseenter: (p) => ke({
522
516
  datapoint: a,
523
517
  show: !0,
524
518
  seriesIndex: l
525
519
  }),
526
520
  onMouseleave: o[0] || (o[0] = (p) => {
527
- k.value = void 0, L.value = !1;
521
+ k.value = void 0, Y.value = !1;
528
522
  })
529
- }, null, 40, It))), 256)),
530
- e.value.style.chart.layout.labels.show ? (n(), u("g", At, [
531
- (n(!0), u(M, null, N(b.value, (a, l) => (n(), u("g", {
532
- onMouseenter: (p) => me({
523
+ }, null, 40, Ft))), 256)),
524
+ e.value.style.chart.layout.labels.show ? (s(), i("g", Mt, [
525
+ (s(!0), i(D, null, L(b.value, (a, l) => (s(), i("g", {
526
+ onMouseenter: (p) => ke({
533
527
  datapoint: a,
534
528
  show: !0,
535
529
  seriesIndex: l
536
530
  }),
537
531
  onMouseleave: o[1] || (o[1] = (p) => {
538
- k.value = void 0, L.value = !1;
532
+ k.value = void 0, Y.value = !1;
539
533
  })
540
534
  }, [
541
- y.value.includes(a.id) ? g("", !0) : (n(), u("text", {
535
+ y.value.includes(a.id) ? g("", !0) : (s(), i("text", {
542
536
  key: 0,
543
- x: s.value.width / 2 - $.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
537
+ x: n.value.width / 2 - C.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
544
538
  y: a.labelY + e.value.style.chart.layout.labels.offsetY,
545
539
  "text-anchor": "end",
546
540
  "font-size": e.value.style.chart.layout.labels.fontSize,
547
541
  fill: e.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value === l ? a.color : e.value.style.chart.layout.labels.color,
548
542
  "font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
549
- }, I(a.name ? a.name + ": " : "") + " " + I(e.value.style.chart.layout.labels.percentage.show ? i(R)({
543
+ }, F(a.name ? a.name + ": " : "") + " " + F(e.value.style.chart.layout.labels.percentage.show ? r(V)({
550
544
  v: a.percentage,
551
545
  s: "%",
552
546
  r: e.value.style.chart.layout.labels.roundingPercentage
553
- }) : "") + " " + I(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${i(Q)(
547
+ }) : "") + " " + F(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${r(ee)(
554
548
  e.value.style.chart.layout.labels.value.formatter,
555
549
  a.value,
556
- i(R)({
550
+ r(V)({
557
551
  p: a.prefix || "",
558
552
  v: a.value || 0,
559
553
  s: a.suffix || "",
560
554
  r: e.value.style.chart.layout.labels.roundingValue
561
555
  }),
562
556
  { datapoint: a, seriesIndex: l }
563
- )}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${i(Q)(
557
+ )}` : `${e.value.style.chart.layout.labels.value.show && a.value ? `(${r(ee)(
564
558
  e.value.style.chart.layout.labels.value.formatter,
565
559
  a.value,
566
- i(R)({
560
+ r(V)({
567
561
  p: a.prefix || "",
568
562
  v: a.value || 0,
569
563
  s: a.suffix || "",
570
564
  r: e.value.style.chart.layout.labels.roundingValue
571
565
  }),
572
566
  { datapoint: a, seriesIndex: l }
573
- )})` : ""}`), 9, Ft))
574
- ], 40, St))), 256))
567
+ )})` : ""}`), 9, Nt))
568
+ ], 40, Rt))), 256))
575
569
  ])) : g("", !0),
576
- d(t.$slots, "svg", { svg: s.value }, void 0, !0)
577
- ], 14, wt)) : g("", !0),
578
- t.$slots.watermark ? (n(), u("div", Mt, [
579
- d(t.$slots, "watermark", O(P({ isPrinting: i(de) || i(ve) })), void 0, !0)
570
+ v(t.$slots, "svg", { svg: n.value }, void 0, !0)
571
+ ], 14, xt)) : g("", !0),
572
+ t.$slots.watermark ? (s(), i("div", Dt, [
573
+ v(t.$slots, "watermark", I(S({ isPrinting: r(he) || r(fe) })), void 0, !0)
580
574
  ])) : g("", !0),
581
- D.value ? g("", !0) : (n(), C(ht, {
575
+ z.value ? g("", !0) : (s(), T(r(De), {
582
576
  key: 6,
583
577
  config: {
584
578
  type: "onion",
@@ -590,39 +584,39 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
590
584
  }
591
585
  }
592
586
  }, null, 8, ["config"])),
593
- _("div", {
587
+ A("div", {
594
588
  ref_key: "chartLegend",
595
- ref: te
589
+ ref: le
596
590
  }, [
597
- e.value.style.chart.legend.show ? (n(), C(ct, {
598
- key: `legend_${ne.value}`,
599
- legendSet: v.value,
600
- config: Le.value,
601
- onClickMarker: o[2] || (o[2] = ({ legend: a }) => pe(a.id))
591
+ e.value.style.chart.legend.show ? (s(), T(wt, {
592
+ key: `legend_${ue.value}`,
593
+ legendSet: d.value,
594
+ config: We.value,
595
+ onClickMarker: o[2] || (o[2] = ({ legend: a }) => me(a.id))
602
596
  }, {
603
597
  item: f(({ legend: a }) => [
604
- _("div", {
598
+ A("div", {
605
599
  "data-cy-legend-item": "",
606
600
  onClick: (l) => a.segregate(),
607
- style: B(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
608
- }, I(a.name ? a.name + ": " : "") + " " + I((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Nt)
601
+ style: U(`opacity:${y.value.includes(a.id) ? 0.5 : 1}`)
602
+ }, F(a.name ? a.name + ": " : "") + " " + F((a.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, Lt)
609
603
  ]),
610
604
  _: 1
611
- }, 8, ["legendSet", "config"])) : d(t.$slots, "legend", {
605
+ }, 8, ["legendSet", "config"])) : v(t.$slots, "legend", {
612
606
  key: 1,
613
- legend: v.value
607
+ legend: d.value
614
608
  }, void 0, !0)
615
609
  ], 512),
616
- t.$slots.source ? (n(), u("div", {
610
+ t.$slots.source ? (s(), i("div", {
617
611
  key: 7,
618
612
  ref_key: "source",
619
- ref: ae,
613
+ ref: oe,
620
614
  dir: "auto"
621
615
  }, [
622
- d(t.$slots, "source", {}, void 0, !0)
616
+ v(t.$slots, "source", {}, void 0, !0)
623
617
  ], 512)) : g("", !0),
624
- $e(vt, {
625
- show: m.value.showTooltip && L.value,
618
+ Te(r(Le), {
619
+ show: m.value.showTooltip && Y.value,
626
620
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
627
621
  color: e.value.style.chart.tooltip.color,
628
622
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -632,20 +626,20 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
632
626
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
633
627
  position: e.value.style.chart.tooltip.position,
634
628
  offsetY: e.value.style.chart.tooltip.offsetY,
635
- parent: A.value,
636
- content: X.value,
637
- isFullscreen: T.value,
638
- isCustom: i(xe)(e.value.style.chart.tooltip.customFormat)
629
+ parent: M.value,
630
+ content: E.value,
631
+ isFullscreen: _.value,
632
+ isCustom: r(Pe)(e.value.style.chart.tooltip.customFormat)
639
633
  }, {
640
634
  "tooltip-before": f(() => [
641
- d(t.$slots, "tooltip-before", O(P({ ...W.value })), void 0, !0)
635
+ v(t.$slots, "tooltip-before", I(S({ ...q.value })), void 0, !0)
642
636
  ]),
643
637
  "tooltip-after": f(() => [
644
- d(t.$slots, "tooltip-after", O(P({ ...W.value })), void 0, !0)
638
+ v(t.$slots, "tooltip-after", I(S({ ...q.value })), void 0, !0)
645
639
  ]),
646
640
  _: 3
647
641
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
648
- D.value ? (n(), C(ft, {
642
+ z.value ? (s(), T(r(Fe), {
649
643
  key: 8,
650
644
  hideDetails: "",
651
645
  config: {
@@ -662,29 +656,29 @@ const kt = ["id"], wt = ["xmlns", "viewBox"], $t = ["width", "height"], Ct = ["c
662
656
  }
663
657
  }, {
664
658
  content: f(() => [
665
- (n(), C(dt, {
666
- key: `table_${se.value}`,
667
- colNames: z.value.colNames,
668
- head: z.value.head,
669
- body: z.value.body,
670
- config: z.value.config,
659
+ (s(), T(r(Me), {
660
+ key: `table_${re.value}`,
661
+ colNames: B.value.colNames,
662
+ head: B.value.head,
663
+ body: B.value.body,
664
+ config: B.value.config,
671
665
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
672
666
  onClose: o[3] || (o[3] = (a) => m.value.showTable = !1)
673
667
  }, {
674
668
  th: f(({ th: a }) => [
675
- He(I(a), 1)
669
+ at(F(a), 1)
676
670
  ]),
677
671
  td: f(({ td: a }) => [
678
- _("div", { innerHTML: a }, null, 8, Rt)
672
+ A("div", { innerHTML: a }, null, 8, Vt)
679
673
  ]),
680
674
  _: 1
681
675
  }, 8, ["colNames", "head", "body", "config", "title"]))
682
676
  ]),
683
677
  _: 1
684
678
  }, 8, ["config"])) : g("", !0)
685
- ], 46, kt));
679
+ ], 46, Ct));
686
680
  }
687
- }, Zt = /* @__PURE__ */ bt(Dt, [["__scopeId", "data-v-c097b7d4"]]);
681
+ }, Jt = /* @__PURE__ */ $t(zt, [["__scopeId", "data-v-86272e4c"]]);
688
682
  export {
689
- Zt as default
683
+ Jt as default
690
684
  };