vue-data-ui 3.23.1 → 3.23.2

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 (171) hide show
  1. package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-hill.js +1 -1
  28. package/dist/components/vue-ui-history-plot.js +1 -1
  29. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  30. package/dist/components/vue-ui-kpi.js +1 -1
  31. package/dist/components/vue-ui-mini-loader.js +1 -1
  32. package/dist/components/vue-ui-molecule.js +1 -1
  33. package/dist/components/vue-ui-mood-radar.js +1 -1
  34. package/dist/components/vue-ui-nested-donuts.js +1 -1
  35. package/dist/components/vue-ui-onion.js +1 -1
  36. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  37. package/dist/components/vue-ui-quadrant.js +1 -1
  38. package/dist/components/vue-ui-quick-chart.js +1 -1
  39. package/dist/components/vue-ui-radar.js +1 -1
  40. package/dist/components/vue-ui-rating.js +1 -1
  41. package/dist/components/vue-ui-relation-circle.js +1 -1
  42. package/dist/components/vue-ui-ridgeline.js +1 -1
  43. package/dist/components/vue-ui-rings.js +1 -1
  44. package/dist/components/vue-ui-scatter.js +1 -1
  45. package/dist/components/vue-ui-skeleton.js +1 -1
  46. package/dist/components/vue-ui-smiley.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
  71. package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
  72. package/dist/ssr/vue-ui-donut.js +1 -1
  73. package/dist/ssr/vue-ui-xy.js +1 -1
  74. package/dist/ssr.js +2 -2
  75. package/dist/style.css +1 -1
  76. package/dist/types/vue-data-ui.d.ts +6 -0
  77. package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
  78. package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
  79. package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
  80. package/dist/utils.js +1 -1
  81. package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
  82. package/dist/vue-data-ui.js +69 -69
  83. package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
  84. package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
  85. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  86. package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
  87. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  88. package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
  89. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  90. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  91. package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
  92. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  93. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  94. package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
  95. package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
  96. package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
  97. package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
  98. package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
  99. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  100. package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
  101. package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
  102. package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
  103. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  104. package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
  105. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  106. package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
  107. package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
  108. package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
  109. package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
  110. package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
  111. package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
  112. package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
  113. package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
  114. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  115. package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
  116. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  117. package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
  118. package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
  119. package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
  120. package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
  121. package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
  122. package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
  123. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  124. package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
  125. package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
  126. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  127. package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
  128. package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
  129. package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
  130. package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  131. package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
  132. package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
  133. package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
  134. package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
  135. package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
  136. package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
  137. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  138. package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
  139. package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
  140. package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
  141. package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  142. package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
  143. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  144. package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
  145. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  146. package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
  147. package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
  148. package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
  149. package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
  150. package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
  151. package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
  152. package/package.json +1 -1
  153. package/dist/Slicer-CIk57nL4.js +0 -1163
  154. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
  155. package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
  156. package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
  157. package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
  158. package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
  159. package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
  160. package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
  161. package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
  162. package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
  163. package/dist/vue-ui-gauge-ByE_txav.js +0 -953
  164. package/dist/vue-ui-hill-BT183G-_.js +0 -1768
  165. package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
  166. package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
  167. package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
  168. package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
  169. package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
  170. package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
  171. package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { $ as t, D as n, Jt as r, Kt as i, Pt as a, S as o, X as s, ct as ee, i as te, jt as ne, q as re, t as ie, tt as ae, w as oe, xt as se } from "./lib-Bttd6u5E.js";
3
3
  import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
4
- import { t as ue } from "./useConfig-D3scuR88.js";
4
+ import { t as ue } from "./useConfig-DlNpz6P8.js";
5
5
  import { t as de } from "./usePrinter-DN5bYhTG.js";
6
6
  import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as me } from "./useSvgExport-DH-FfcqQ.js";
8
- import { t as he } from "./useNestedProp-vPNvh7rV.js";
9
- import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as me } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as he } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ge } from "./useChartExport-DNiwdPmb.js";
10
10
  import { t as _e } from "./useTransitions-g_zBREk2.js";
11
11
  import { t as ve } from "./img-Bnokohej.js";
12
12
  import { n as ye } from "./Title-BE3qg9xl.js";
@@ -20,7 +20,7 @@ import { t as De } from "./labelUtils-BeVpDvTJ.js";
20
20
  import { t as Oe } from "./Legend-CQxUgOd-.js";
21
21
  import { t as ke } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
22
22
  import { t as Ae } from "./vue_ui_onion-1FTFFS46.js";
23
- import { Fragment as je, Teleport as Me, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Ie, nextTick as Le, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Re, onMounted as ze, openBlock as v, ref as y, renderList as Be, renderSlot as b, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as x, toRefs as Ue, unref as S, watch as C, withCtx as w } from "vue";
23
+ import { Fragment as je, Teleport as Me, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Ie, nextTick as Le, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Re, onMounted as ze, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as He, toRefs as Ue, unref as S, watch as C, withCtx as w } from "vue";
24
24
  //#region src/components/vue-ui-onion.vue
25
25
  var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
26
26
  "xmlns",
@@ -99,10 +99,10 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
99
99
  },
100
100
  emits: ["selectLegend", "copyAlt"],
101
101
  setup(e, { expose: be, emit: We }) {
102
- let ft = p(() => import("./Tooltip-DhjyfHwz.js")), pt = p(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), mt = p(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), ht = p(() => import("./DataTable-BbKgJ5UI.js")), gt = p(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), _t = p(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), vt = p(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), yt = p(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_onion: bt } = ue(), { isThemeValid: xt, warnInvalidTheme: St } = ge(), T = e, Ct = c(() => !!T.dataset && T.dataset.length), E = y(re()), wt = y(null), Tt = y(0), Et = y(!1), Dt = y(""), D = y([]), O = y(null), Ot = y(null), kt = y(null), At = y(null), jt = y(null), Mt = y(0), Nt = y(0), Pt = y(0), k = y(!1), Ft = y(!1), A = y(null), It = y(!1), Lt = y(!1), j = y(null), Rt = y({
102
+ let ft = p(() => import("./Tooltip-DhjyfHwz.js")), pt = p(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), mt = p(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), ht = p(() => import("./DataTable-BbKgJ5UI.js")), gt = p(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), _t = p(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), vt = p(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), yt = p(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_onion: bt } = ue(), { isThemeValid: xt, warnInvalidTheme: St } = he(), T = e, Ct = c(() => !!T.dataset && T.dataset.length), E = y(re()), wt = y(null), Tt = y(0), D = y(!1), Et = y(""), O = y([]), k = y(null), Dt = y(null), Ot = y(null), kt = y(null), At = y(null), jt = y(0), Mt = y(0), Nt = y(0), Pt = y(!1), Ft = y(!1), It = y(null), A = y(null), Lt = y({
103
103
  x: 0,
104
104
  y: 0
105
- }), zt = y("pointer"), Bt = y(!1), M = y(qt());
105
+ }), j = y("pointer"), Rt = y(!1), M = y(Gt());
106
106
  ce({
107
107
  config: () => M.value,
108
108
  dataset: () => T.dataset,
@@ -123,7 +123,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
123
123
  let { transitionEnabled: N } = _e({
124
124
  config: () => M.value.transitions,
125
125
  dataset: () => T.dataset
126
- }), P = c(() => M.value.userOptions.useCursorPointer), Vt = c(() => r({
126
+ }), P = c(() => M.value.userOptions.useCursorPointer), zt = c(() => r({
127
127
  defaultConfig: {
128
128
  userOptions: { show: !1 },
129
129
  table: { show: !1 },
@@ -137,13 +137,13 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
137
137
  } }
138
138
  },
139
139
  userConfig: M.value.skeletonConfig ?? {}
140
- })), { loading: F, FINAL_DATASET: Ht, manualLoading: Ut } = fe({
140
+ })), { loading: F, FINAL_DATASET: Bt, manualLoading: Vt } = fe({
141
141
  ...Ue(T),
142
142
  FINAL_CONFIG: M,
143
- prepareConfig: qt,
143
+ prepareConfig: Gt,
144
144
  callback: () => {
145
145
  Promise.resolve().then(async () => {
146
- await Le(), pn();
146
+ await Le(), dn();
147
147
  });
148
148
  },
149
149
  skeletonDataset: T.config?.skeletonDataset ?? [
@@ -174,20 +174,20 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
174
174
  ],
175
175
  skeletonConfig: r({
176
176
  defaultConfig: M.value,
177
- userConfig: Vt.value
177
+ userConfig: zt.value
178
178
  })
179
- }), { userOptionsVisible: Wt, setUserOptionsVisibility: Gt, keepUserOptionState: Kt } = Te({ config: M.value }), { svgRef: I } = Ee({ config: M.value.style.chart.title });
180
- function qt() {
181
- let e = he({
179
+ }), { userOptionsVisible: Ht, setUserOptionsVisibility: Ut, keepUserOptionState: Wt } = Te({ config: M.value }), { svgRef: I } = Ee({ config: M.value.style.chart.title });
180
+ function Gt() {
181
+ let e = me({
182
182
  userConfig: T.config,
183
183
  defaultConfig: bt
184
184
  }), t = e.theme;
185
185
  if (!t) return e;
186
186
  if (!xt.value(e)) return St(e), e;
187
- let n = he({
187
+ let n = me({
188
188
  userConfig: Ae[t] || T.config,
189
189
  defaultConfig: e
190
- }), r = he({
190
+ }), r = me({
191
191
  userConfig: T.config,
192
192
  defaultConfig: n
193
193
  });
@@ -197,13 +197,13 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
197
197
  };
198
198
  }
199
199
  C(() => T.config, (e) => {
200
- F.value || (M.value = qt()), Wt.value = !M.value.userOptions.showOnChartHover, cn(), Mt.value += 1, Nt.value += 1, Pt.value += 1, L.value.showTable = M.value.table.show, L.value.showTooltip = M.value.style.chart.tooltip.show;
200
+ F.value || (M.value = Gt()), Ht.value = !M.value.userOptions.showOnChartHover, on(), jt.value += 1, Mt.value += 1, Nt.value += 1, L.value.showTable = M.value.table.show, L.value.showTooltip = M.value.style.chart.tooltip.show;
201
201
  }, { deep: !0 });
202
- let { isPrinting: Jt, isImaging: Yt, generatePdf: Xt, generateImage: Zt } = de({
202
+ let { isPrinting: Kt, isImaging: qt, generatePdf: Jt, generateImage: Yt } = de({
203
203
  elementId: `vue-ui-onion_${E.value}`,
204
204
  fileName: M.value.style.chart.title.text || "vue-ui-onion",
205
205
  options: M.value.userOptions.print
206
- }), Qt = c(() => M.value.userOptions.show && !M.value.style.chart.title.text), $t = c(() => oe(M.value.customPalette)), L = y({
206
+ }), Xt = c(() => M.value.userOptions.show && !M.value.style.chart.title.text), Zt = c(() => oe(M.value.customPalette)), L = y({
207
207
  showTable: M.value.table.show,
208
208
  showTooltip: M.value.style.chart.tooltip.show
209
209
  });
@@ -223,83 +223,83 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
223
223
  bottom: 64
224
224
  },
225
225
  minRadius: 64
226
- }), z = He(null), B = He(null);
226
+ }), z = Ve(null), B = Ve(null);
227
227
  ze(() => {
228
- Ft.value = !0, cn();
228
+ Ft.value = !0, on();
229
229
  });
230
- let { autoSizeLabels: en } = ke({
230
+ let { autoSizeLabels: Qt } = ke({
231
231
  svgRef: I,
232
232
  fontSize: () => M.value.style.chart.layout.labels.fontSize,
233
233
  minFontSize: () => M.value.style.chart.layout.labels.minFontSize,
234
234
  labelClass: ".vue-ui-onion-label"
235
235
  }), V = null, H = null, U = 0;
236
- function tn() {
236
+ function $t() {
237
237
  V !== null && (cancelAnimationFrame(V), V = null), H !== null && (clearTimeout(H), H = null);
238
238
  }
239
- function nn(e) {
239
+ function en(e) {
240
240
  return String(e).split(",").map((e) => {
241
241
  let t = e.trim(), n = Number.parseFloat(t);
242
242
  return Number.isFinite(n) ? t.endsWith("ms") ? n : n * 1e3 : 0;
243
243
  });
244
244
  }
245
- function rn() {
246
- return typeof window > "u" || !N.value || k.value || F.value || !I.value ? 0 : Array.from(I.value.querySelectorAll(".vue-ui-onion-label.vue-data-ui-transition")).reduce((e, t) => {
245
+ function tn() {
246
+ return typeof window > "u" || !N.value || Pt.value || F.value || !I.value ? 0 : Array.from(I.value.querySelectorAll(".vue-ui-onion-label.vue-data-ui-transition")).reduce((e, t) => {
247
247
  let n = window.getComputedStyle(t);
248
248
  if (n.transitionProperty === "none") return e;
249
- let r = nn(n.transitionDuration), i = nn(n.transitionDelay), a = Math.max(r.length, i.length), o = Array.from({ length: a }, (e, t) => (r[t % r.length] ?? 0) + (i[t % i.length] ?? 0)).reduce((e, t) => Math.max(e, t), 0);
249
+ let r = en(n.transitionDuration), i = en(n.transitionDelay), a = Math.max(r.length, i.length), o = Array.from({ length: a }, (e, t) => (r[t % r.length] ?? 0) + (i[t % i.length] ?? 0)).reduce((e, t) => Math.max(e, t), 0);
250
250
  return Math.max(e, o);
251
251
  }, 0);
252
252
  }
253
- function an() {
253
+ function nn() {
254
254
  typeof window > "u" || (V = requestAnimationFrame(() => {
255
- V = null, en();
255
+ V = null, Qt();
256
256
  }));
257
257
  }
258
258
  function W() {
259
259
  if (typeof window > "u") return;
260
260
  let e = ++U;
261
- tn(), Le(() => {
261
+ $t(), Le(() => {
262
262
  e === U && (V = requestAnimationFrame(() => {
263
263
  if (V = null, e !== U) return;
264
- let t = rn();
264
+ let t = tn();
265
265
  if (t <= 0) {
266
- an();
266
+ nn();
267
267
  return;
268
268
  }
269
269
  H = setTimeout(() => {
270
- H = null, e === U && an();
270
+ H = null, e === U && nn();
271
271
  }, t + 34);
272
272
  }));
273
273
  });
274
274
  }
275
- let on = c(() => M.value.debug), sn = null;
276
- function cn() {
275
+ let rn = c(() => M.value.debug), an = null;
276
+ function on() {
277
277
  if (ne(T.dataset) && (ae({
278
278
  componentName: "VueUiOnion",
279
279
  type: "dataset",
280
- debug: on.value
281
- }), Ut.value = !0), ne(T.dataset) || (Ut.value = M.value.loading), M.value.responsive) {
280
+ debug: rn.value
281
+ }), Vt.value = !0), ne(T.dataset) || (Vt.value = M.value.loading), M.value.responsive) {
282
282
  let e = 64 / 512, t = xe(() => {
283
- sn && clearTimeout(sn), k.value = !0;
283
+ an && clearTimeout(an), Pt.value = !0;
284
284
  let { width: t, height: n } = Se({
285
- chart: O.value,
286
- title: M.value.style.chart.title.text ? Ot.value : null,
287
- legend: M.value.style.chart.legend.show ? kt.value : null,
288
- source: At.value,
289
- noTitle: jt.value
285
+ chart: k.value,
286
+ title: M.value.style.chart.title.text ? Dt.value : null,
287
+ legend: M.value.style.chart.legend.show ? Ot.value : null,
288
+ source: kt.value,
289
+ noTitle: At.value
290
290
  });
291
291
  n -= 12, requestAnimationFrame(async () => {
292
- R.value.width = t, R.value.height = n, R.value.padding.top = Math.max(t, n) * e, R.value.padding.right = Math.max(t, n) * e, R.value.padding.bottom = Math.max(t, n) * e, R.value.padding.left = Math.max(t, n) * e, R.value.minRadius = Math.min(t, n) * e, sn = setTimeout(() => {
293
- k.value = !1, W();
292
+ R.value.width = t, R.value.height = n, R.value.padding.top = Math.max(t, n) * e, R.value.padding.right = Math.max(t, n) * e, R.value.padding.bottom = Math.max(t, n) * e, R.value.padding.left = Math.max(t, n) * e, R.value.minRadius = Math.min(t, n) * e, an = setTimeout(() => {
293
+ Pt.value = !1, W();
294
294
  }, 0);
295
295
  });
296
296
  });
297
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(t), B.value = O.value.parentNode, z.value.observe(B.value);
297
+ z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(t), B.value = k.value.parentNode, z.value.observe(B.value);
298
298
  }
299
299
  W();
300
300
  }
301
301
  Re(() => {
302
- U += 1, tn(), z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
302
+ U += 1, $t(), z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
303
303
  });
304
304
  let G = c(() => ({
305
305
  top: R.value.padding.top,
@@ -312,7 +312,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
312
312
  height: R.value.height - R.value.padding.bottom - R.value.padding.top,
313
313
  minRadius: R.value.minRadius,
314
314
  maxRadius: Math.min(R.value.width, R.value.height) - R.value.padding.top * 2
315
- })), K = c(() => (Ht.value.forEach((e, t) => {
315
+ })), K = c(() => (rn.value && Bt.value.forEach((e, t) => {
316
316
  [null, void 0].includes(e.name) && ae({
317
317
  componentName: "VueUiOnion",
318
318
  type: "datasetSerieAttribute",
@@ -324,22 +324,22 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
324
324
  property: "percentage",
325
325
  index: t
326
326
  });
327
- }), Ht.value.map((e, t) => {
327
+ }), Bt.value.map((e, t) => {
328
328
  let n = `onion_serie_${t}_${E.value}`;
329
329
  return {
330
330
  ...e,
331
331
  percentage: e.percentage || 0,
332
332
  targetPercentage: e.percentage || 0,
333
- color: o(e.color) || $t.value[t] || a[t],
333
+ color: o(e.color) || Zt.value[t] || a[t],
334
334
  id: n,
335
335
  shape: "circle",
336
- opacity: D.value.includes(n) ? .5 : 1,
336
+ opacity: O.value.includes(n) ? .5 : 1,
337
337
  absoluteIndex: t,
338
- segregate: () => yn(n),
339
- isSegregated: D.value.includes(n)
338
+ segregate: () => _n(n),
339
+ isSegregated: O.value.includes(n)
340
340
  };
341
341
  }))), q = c(() => K.value.map((e, t) => {
342
- let n = M.value.style.chart.legend.showValue, r = M.value.style.chart.legend.showPercentage, i = kn({
342
+ let n = M.value.style.chart.legend.showValue, r = M.value.style.chart.legend.showPercentage, i = Dn({
343
343
  showVal: n,
344
344
  showPercentage: r,
345
345
  val: te(M.value.style.chart.layout.labels.value.formatter, e.value, s({
@@ -359,56 +359,56 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
359
359
  ...e,
360
360
  display: `${e.name}${n || r ? ": " : ""}${i}`
361
361
  };
362
- })), J = y(K.value), ln = c(() => M.value.useStartAnimation), un = y(null), dn = c(() => Math.max(...K.value.map((e) => e.percentage))), fn = y(!1);
363
- C(() => K.value, pn, {
362
+ })), J = y(K.value), sn = c(() => M.value.useStartAnimation), cn = y(null), ln = c(() => Math.max(...K.value.map((e) => e.percentage))), un = y(!1);
363
+ C(() => K.value, dn, {
364
364
  immediate: !0,
365
365
  deep: !0
366
366
  }), C(() => T.dataset, (e) => {
367
- Array.isArray(e) && e.length > 0 && (Ut.value = !1), W();
367
+ Array.isArray(e) && e.length > 0 && (Vt.value = !1), W();
368
368
  }, {
369
369
  deep: !0,
370
370
  flush: "post"
371
371
  });
372
- function pn() {
373
- if (ln.value && !fn.value && !F.value) {
372
+ function dn() {
373
+ if (sn.value && !un.value && !F.value) {
374
374
  J.value = K.value.map((e) => ({
375
375
  ...e,
376
376
  percentage: 0
377
377
  }));
378
378
  let e = 0;
379
379
  function t() {
380
- e >= dn.value ? (cancelAnimationFrame(un.value), J.value = K.value, fn.value = !0) : (J.value = K.value.map((t) => ({
380
+ e >= ln.value ? (cancelAnimationFrame(cn.value), J.value = K.value, un.value = !0) : (J.value = K.value.map((t) => ({
381
381
  ...t,
382
382
  percentage: e < t.targetPercentage ? e : t.targetPercentage
383
- })), e += 1, requestAnimationFrame(t), fn.value = !0);
383
+ })), e += 1, requestAnimationFrame(t), un.value = !0);
384
384
  }
385
385
  t();
386
386
  } else J.value = K.value;
387
387
  }
388
- let mn = c(() => ({
388
+ let fn = c(() => ({
389
389
  cy: "onion-div-legend",
390
390
  backgroundColor: M.value.style.chart.legend.backgroundColor,
391
391
  color: M.value.style.chart.legend.color,
392
392
  fontSize: M.value.style.chart.legend.fontSize,
393
393
  paddingBottom: 12,
394
394
  fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
395
- })), hn = c(() => K.value.filter((e) => !D.value.includes(e.id)).length), Y = c(() => {
395
+ })), pn = c(() => K.value.filter((e) => !O.value.includes(e.id)).length), Y = c(() => {
396
396
  let e = Math.min(G.value.width, G.value.height) / 2 / K.value.length;
397
397
  return {
398
398
  gutter: (e > M.value.style.chart.layout.maxThickness ? M.value.style.chart.layout.maxThickness : e) * M.value.style.chart.layout.gutter.width,
399
399
  track: (e > M.value.style.chart.layout.maxThickness ? M.value.style.chart.layout.maxThickness : e) * M.value.style.chart.layout.track.width
400
400
  };
401
- }), X = c(() => J.value.filter((e) => !D.value.includes(e.id)).map((e, t) => {
402
- let n = (G.value.maxRadius - Y.value.track) / hn.value / 2 * (1 + t), r = G.value.centerY - n;
401
+ }), X = c(() => J.value.filter((e) => !O.value.includes(e.id)).map((e, t) => {
402
+ let n = (G.value.maxRadius - Y.value.track) / pn.value / 2 * (1 + t), r = G.value.centerY - n;
403
403
  return {
404
404
  percentage: e.percentage || 0,
405
405
  ...e,
406
406
  labelY: r,
407
407
  radius: n,
408
- path: gn(n, e.percentage || 0)
408
+ path: mn(n, e.percentage || 0)
409
409
  };
410
410
  }));
411
- function gn(e, t) {
411
+ function mn(e, t) {
412
412
  let n = 2 * Math.PI * e, r = n * .75, i = `${r} ${n}`, a = r * (1 - t / 100);
413
413
  return {
414
414
  bgDashArray: `${r} ${n}`,
@@ -423,35 +423,35 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
423
423
  `.trim()
424
424
  };
425
425
  }
426
- let _n = We;
427
- function vn() {
428
- D.value.length ? D.value = [] : q.value.forEach((e) => {
429
- D.value.push(e.id);
430
- }), W(), _n("selectLegend", X.value);
426
+ let hn = We;
427
+ function gn() {
428
+ O.value.length ? O.value = [] : q.value.forEach((e) => {
429
+ O.value.push(e.id);
430
+ }), W(), hn("selectLegend", X.value);
431
431
  }
432
- function yn(e) {
433
- if (D.value.includes(e)) D.value = D.value.filter((t) => t !== e);
432
+ function _n(e) {
433
+ if (O.value.includes(e)) O.value = O.value.filter((t) => t !== e);
434
434
  else {
435
- if (D.value.length === K.value.length - 1) return;
436
- D.value.push(e);
435
+ if (O.value.length === K.value.length - 1) return;
436
+ O.value.push(e);
437
437
  }
438
- W(), _n("selectLegend", X.value);
438
+ W(), hn("selectLegend", X.value);
439
439
  }
440
- function bn(e) {
441
- return K.value.length ? K.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiOnion - Series name not found "${e}"`), null) : (M.value.debug && console.warn("VueUiOnion - There are no series to show."), null);
440
+ function vn(e) {
441
+ return K.value.length ? K.value.find((t) => t.name === e) || (rn.value && console.warn(`VueUiOnion - Series name not found "${e}"`), null) : (rn.value && console.warn("VueUiOnion - There are no series to show."), null);
442
442
  }
443
- function xn(e) {
444
- let t = bn(e);
445
- t !== null && D.value.includes(t.id) && yn(t.id);
443
+ function yn(e) {
444
+ let t = vn(e);
445
+ t !== null && O.value.includes(t.id) && _n(t.id);
446
446
  }
447
- function Sn(e) {
448
- let t = bn(e);
449
- t !== null && (D.value.includes(t.id) || yn(t.id));
447
+ function bn(e) {
448
+ let t = vn(e);
449
+ t !== null && (O.value.includes(t.id) || _n(t.id));
450
450
  }
451
- function Cn() {
451
+ function xn() {
452
452
  return X.value;
453
453
  }
454
- let wn = c(() => ({
454
+ let Sn = c(() => ({
455
455
  head: [
456
456
  M.value.table.translations.serie,
457
457
  M.value.table.translations.percentage,
@@ -463,7 +463,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
463
463
  e.value
464
464
  ])
465
465
  })), Z = c(() => {
466
- let e = wn.value.head;
466
+ let e = Sn.value.head;
467
467
  return {
468
468
  head: e,
469
469
  body: X.value.map((e) => [
@@ -492,13 +492,13 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
492
492
  colNames: e
493
493
  };
494
494
  });
495
- function Tn(e = null) {
495
+ function Cn(e = null) {
496
496
  Le(() => {
497
497
  let r = [
498
498
  [M.value.style.chart.title.text],
499
499
  [M.value.style.chart.title.subtitle.text],
500
500
  [""]
501
- ], i = wn.value.head, a = wn.value.body, o = r.concat([i]).concat(a), s = n(o);
501
+ ], i = Sn.value.head, a = Sn.value.body, o = r.concat([i]).concat(a), s = n(o);
502
502
  e ? e(s) : t({
503
503
  csvContent: s,
504
504
  title: M.value.style.chart.title.text || "vue-ui-onion"
@@ -506,22 +506,22 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
506
506
  });
507
507
  }
508
508
  let Q = y(void 0), $ = y(!1);
509
- function En(e) {
509
+ function wn(e) {
510
510
  $.value = e, Tt.value += 1;
511
511
  }
512
- function Dn({ datapoint: e }) {
512
+ function Tn({ datapoint: e }) {
513
513
  M.value.events.datapointClick && M.value.events.datapointClick({
514
514
  datapoint: e,
515
515
  seriesIndex: e.absoluteIndex
516
516
  });
517
517
  }
518
- function On({ datapoint: e }) {
519
- Q.value = void 0, Et.value = !1, j.value = null, zt.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
518
+ function En({ datapoint: e }) {
519
+ Q.value = void 0, D.value = !1, A.value = null, j.value = "pointer", M.value.events.datapointLeave && M.value.events.datapointLeave({
520
520
  datapoint: e,
521
521
  seriesIndex: e.absoluteIndex
522
522
  });
523
523
  }
524
- function kn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
524
+ function Dn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
525
525
  return De({
526
526
  config: i,
527
527
  val: e,
@@ -530,8 +530,8 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
530
530
  showPercentage: r
531
531
  });
532
532
  }
533
- function An(e, t) {
534
- let n = M.value.style.chart.layout.labels.value.show, r = M.value.style.chart.layout.labels.percentage.show, i = kn({
533
+ function On(e, t) {
534
+ let n = M.value.style.chart.layout.labels.value.show, r = M.value.style.chart.layout.labels.percentage.show, i = Dn({
535
535
  config: M.value.style.chart.layout.labels,
536
536
  showVal: n,
537
537
  showPercentage: r,
@@ -552,26 +552,26 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
552
552
  });
553
553
  return `${e.name}${n || r ? ": " : ""}${i}`;
554
554
  }
555
- let jn = y(null);
556
- function Mn({ datapoint: e, seriesIndex: t, show: n = !0, triggerMode: r = "pointer" }) {
555
+ let kn = y(null);
556
+ function An({ datapoint: e, seriesIndex: t, show: n = !0, triggerMode: r = "pointer" }) {
557
557
  M.value.events.datapointEnter && M.value.events.datapointEnter({
558
558
  datapoint: e,
559
559
  seriesIndex: e.absoluteIndex
560
- }), zt.value = r, j.value = t;
560
+ }), j.value = r, A.value = t;
561
561
  let i = e.absoluteIndex;
562
- Q.value = t, jn.value = {
562
+ Q.value = t, kn.value = {
563
563
  datapoint: e,
564
564
  seriesIndex: i,
565
565
  series: K.value,
566
566
  config: M.value
567
- }, Et.value = n;
567
+ }, D.value = n;
568
568
  let a = "", o = M.value.style.chart.tooltip.customFormat;
569
569
  if (se(o) && ee(() => o({
570
570
  seriesIndex: i,
571
571
  datapoint: e,
572
572
  series: K.value,
573
573
  config: M.value
574
- }))) Dt.value = o({
574
+ }))) Et.value = o({
575
575
  seriesIndex: i,
576
576
  datapoint: e,
577
577
  series: K.value,
@@ -579,7 +579,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
579
579
  });
580
580
  else {
581
581
  let n = M.value.style.chart.tooltip.showPercentage, r = M.value.style.chart.tooltip.showValue;
582
- a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, a += `<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="${e.color}"/></svg>`, a += `<b>${kn({
582
+ a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, a += `<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="${e.color}"/></svg>`, a += `<b>${Dn({
583
583
  config: M.value.style.chart.tooltip,
584
584
  showVal: r,
585
585
  showPercentage: n,
@@ -597,23 +597,23 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
597
597
  s: "%",
598
598
  r: M.value.style.chart.tooltip.roundingPercentage
599
599
  })
600
- })}</b></div>`, Dt.value = `<div>${a}</div>`;
600
+ })}</b></div>`, Et.value = `<div>${a}</div>`;
601
601
  }
602
602
  }
603
- function Nn() {
603
+ function jn() {
604
604
  L.value.showTable = !L.value.showTable;
605
605
  }
606
- function Pn() {
606
+ function Mn() {
607
607
  L.value.showTooltip = !L.value.showTooltip;
608
608
  }
609
- let Fn = y(!1);
610
- function In() {
611
- Fn.value = !Fn.value;
609
+ let Nn = y(!1);
610
+ function Pn() {
611
+ Nn.value = !Nn.value;
612
612
  }
613
- async function Ln({ scale: e = 2 } = {}) {
614
- if (!O.value) return;
615
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
616
- domElement: O.value,
613
+ async function Fn({ scale: e = 2 } = {}) {
614
+ if (!k.value) return;
615
+ let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
616
+ domElement: k.value,
617
617
  base64: !0,
618
618
  img: !0,
619
619
  scale: e
@@ -627,7 +627,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
627
627
  aspectRatio: r
628
628
  };
629
629
  }
630
- let Rn = c(() => {
630
+ let In = c(() => {
631
631
  let e = M.value.table.useDialog && !M.value.table.show, t = L.value.showTable;
632
632
  return {
633
633
  component: e ? yt : mt,
@@ -638,7 +638,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
638
638
  headerColor: M.value.table.th.color,
639
639
  headerBg: M.value.table.th.backgroundColor,
640
640
  isFullscreen: $.value,
641
- fullscreenParent: O.value,
641
+ fullscreenParent: k.value,
642
642
  forcedWidth: Math.min(600, window.innerWidth * .8),
643
643
  isCursorPointer: P.value
644
644
  } : {
@@ -659,47 +659,22 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
659
659
  };
660
660
  });
661
661
  C(() => L.value.showTable, (e) => {
662
- M.value.table.show || (e && M.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
662
+ M.value.table.show || (e && M.value.table.useDialog && It.value ? It.value.open() : "close" in It.value && It.value.close());
663
663
  });
664
- let zn = c(() => q.value.map((e) => ({
664
+ let Ln = c(() => q.value.map((e) => ({
665
665
  ...e,
666
666
  name: e.display
667
- }))), Bn = c(() => M.value.style.chart.backgroundColor), Vn = c(() => M.value.style.chart.legend), Hn = c(() => M.value.style.chart.title), { exportSvg: Un, getSvg: Wn } = me({
667
+ }))), Rn = c(() => M.value.style.chart.backgroundColor), zn = c(() => M.value.style.chart.legend), Bn = c(() => M.value.style.chart.title), { isCallbackImaging: Vn, isCallbackSvg: Hn, generateSvg: Un, onGenerateImage: Wn } = ge({
668
668
  svg: I,
669
- title: Hn,
670
- legend: Vn,
671
- legendItems: zn,
672
- backgroundColor: Bn
669
+ title: Bn,
670
+ legend: zn,
671
+ legendItems: Ln,
672
+ backgroundColor: Rn,
673
+ getSvgCallback: () => M.value.userOptions.callbacks.svg,
674
+ generateImage: Yt
673
675
  });
674
- async function Gn({ isCb: e }) {
675
- Lt.value = !0, await Le();
676
- try {
677
- if (e) {
678
- let { blob: e, url: t, text: n, dataUrl: r } = await Wn();
679
- await Promise.resolve(M.value.userOptions.callbacks.svg({
680
- blob: e,
681
- url: t,
682
- text: n,
683
- dataUrl: r
684
- }));
685
- } else await Promise.resolve(Un());
686
- } finally {
687
- Lt.value = !1;
688
- }
689
- }
690
- function Kn(e) {
691
- if (e?.stage === "start") {
692
- It.value = !0;
693
- return;
694
- }
695
- if (e?.stage === "end") {
696
- It.value = !1;
697
- return;
698
- }
699
- Zt();
700
- }
701
- async function qn() {
702
- if (_n("copyAlt", {
676
+ async function Gn() {
677
+ if (hn("copyAlt", {
703
678
  config: M.value,
704
679
  dataset: X.value
705
680
  }), !M.value.userOptions.callbacks.altCopy) {
@@ -711,83 +686,83 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
711
686
  dataset: X.value
712
687
  }));
713
688
  }
714
- function Jn() {
715
- j.value = null, Bt.value = !0;
689
+ function Kn() {
690
+ A.value = null, Rt.value = !0;
716
691
  }
717
- function Yn() {
718
- j.value = null, zt.value = "pointer", Et.value = !1, Q.value = void 0, Bt.value = !1;
692
+ function qn() {
693
+ A.value = null, j.value = "pointer", D.value = !1, Q.value = void 0, Rt.value = !1;
719
694
  }
720
- function Xn(e) {
721
- if (!I.value || Fn.value || document.activeElement !== I.value || !X.value.length) return;
695
+ function Jn(e) {
696
+ if (!I.value || Nn.value || document.activeElement !== I.value || !X.value.length) return;
722
697
  let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
723
698
  if (!t && !n && !r && !i) return;
724
699
  if (e.preventDefault(), e.stopPropagation(), i) {
725
- j.value = null, zt.value = "pointer", Et.value = !1, Q.value = void 0;
700
+ A.value = null, j.value = "pointer", D.value = !1, Q.value = void 0;
726
701
  return;
727
702
  }
728
703
  if (r) {
729
- if (j.value === null) return;
730
- let e = X.value[j.value];
704
+ if (A.value === null) return;
705
+ let e = X.value[A.value];
731
706
  if (!e) return;
732
- Dn({ datapoint: e });
707
+ Tn({ datapoint: e });
733
708
  return;
734
709
  }
735
- let a = j.value;
710
+ let a = A.value;
736
711
  a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1));
737
712
  let o = X.value[a];
738
- o && (Zn(a), Mn({
713
+ o && (Yn(a), An({
739
714
  datapoint: o,
740
715
  seriesIndex: a,
741
716
  show: !0,
742
717
  triggerMode: "keyboard"
743
718
  }));
744
719
  }
745
- function Zn(e) {
720
+ function Yn(e) {
746
721
  if (!Number.isFinite(e) || !I.value) return;
747
722
  let t = X.value[e];
748
723
  if (!t) return;
749
724
  let n = t.radius, r = Math.PI * 7 / 4, i = G.value.centerX + n * Math.cos(r), a = G.value.centerY + n * Math.sin(r), o = I.value.getBoundingClientRect();
750
- Rt.value = {
725
+ Lt.value = {
751
726
  x: o.left + i / R.value.width * o.width,
752
727
  y: o.top + a / R.value.height * o.height
753
728
  };
754
729
  }
755
- let Qn = c(() => ({
730
+ let Xn = c(() => ({
756
731
  headers: Z.value?.colNames ?? [],
757
732
  rows: Z.value?.body ?? []
758
733
  }));
759
734
  return be({
760
- getData: Cn,
761
- getImage: Ln,
762
- generatePdf: Xt,
763
- generateCsv: Tn,
764
- generateImage: Zt,
765
- generateSvg: Gn,
766
- hideSeries: Sn,
767
- showSeries: xn,
768
- toggleTable: Nn,
769
- toggleTooltip: Pn,
770
- toggleAnnotator: In,
771
- toggleFullscreen: En,
772
- copyAlt: qn
735
+ getData: xn,
736
+ getImage: Fn,
737
+ generatePdf: Jt,
738
+ generateCsv: Cn,
739
+ generateImage: Yt,
740
+ generateSvg: Un,
741
+ hideSeries: bn,
742
+ showSeries: yn,
743
+ toggleTable: jn,
744
+ toggleTooltip: Mn,
745
+ toggleAnnotator: Pn,
746
+ toggleFullscreen: wn,
747
+ copyAlt: Gn
773
748
  }), (e, t) => (v(), d("div", {
774
749
  class: h(`vue-data-ui-component vue-ui-onion ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
775
750
  ref_key: "onionChart",
776
- ref: O,
751
+ ref: k,
777
752
  id: `vue-ui-onion_${E.value}`,
778
753
  style: _(`font-family:${M.value.style.fontFamily};width:100%; ${M.value.responsive ? "height: 100%;" : ""} text-align:center;background:${M.value.style.chart.backgroundColor}`),
779
- onMouseenter: t[4] ||= () => S(Gt)(!0),
780
- onMouseleave: t[5] ||= () => S(Gt)(!1)
754
+ onMouseenter: t[4] ||= () => S(Ut)(!0),
755
+ onMouseleave: t[5] ||= () => S(Ut)(!1)
781
756
  }, [
782
757
  f("div", {
783
758
  id: `chart-instructions-${E.value}`,
784
759
  class: "sr-only"
785
- }, [f("p", null, x(M.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
786
- Qn.value?.rows?.length ? (v(), l(we, {
760
+ }, [f("p", null, He(M.value.a11y.translations.keyboardNavigation), 1)], 8, Ke),
761
+ Xn.value?.rows?.length ? (v(), l(we, {
787
762
  key: 0,
788
763
  uid: E.value,
789
- head: Qn.value.headers,
790
- body: Qn.value.rows,
764
+ head: Xn.value.headers,
765
+ body: Xn.value.rows,
791
766
  notice: M.value.a11y.translations.tableAvailable,
792
767
  caption: M.value.a11y.translations.tableCaption
793
768
  }, null, 8, [
@@ -802,16 +777,16 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
802
777
  svgRef: S(I),
803
778
  backgroundColor: M.value.style.chart.backgroundColor,
804
779
  color: M.value.style.chart.color,
805
- active: Fn.value,
780
+ active: Nn.value,
806
781
  isCursorPointer: P.value,
807
- onClose: In
782
+ onClose: Pn
808
783
  }, {
809
- "annotator-action-close": w(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
810
- "annotator-action-color": w(({ color: t }) => [b(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
811
- "annotator-action-draw": w(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
812
- "annotator-action-undo": w(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
813
- "annotator-action-redo": w(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
814
- "annotator-action-delete": w(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
784
+ "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
785
+ "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
786
+ "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
787
+ "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
788
+ "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
789
+ "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
815
790
  _: 3
816
791
  }, 8, [
817
792
  "svgRef",
@@ -820,20 +795,20 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
820
795
  "active",
821
796
  "isCursorPointer"
822
797
  ])) : u("", !0),
823
- Qt.value ? (v(), d("div", {
798
+ Xt.value ? (v(), d("div", {
824
799
  key: 2,
825
800
  ref_key: "noTitle",
826
- ref: jt,
801
+ ref: At,
827
802
  class: "vue-data-ui-no-title-space",
828
803
  style: "height:36px; width: 100%;background:transparent"
829
804
  }, null, 512)) : u("", !0),
830
805
  M.value.style.chart.title.text ? (v(), d("div", {
831
806
  key: 3,
832
807
  ref_key: "chartTitle",
833
- ref: Ot,
808
+ ref: Dt,
834
809
  style: "width:100%;background:transparent"
835
810
  }, [(v(), l(ye, {
836
- key: `title_${Mt.value}`,
811
+ key: `title_${jt.value}`,
837
812
  config: {
838
813
  title: {
839
814
  cy: "onion-div-title",
@@ -846,14 +821,14 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
846
821
  }
847
822
  }, null, 8, ["config"]))], 512)) : u("", !0),
848
823
  f("div", { id: `legend-top-${E.value}` }, null, 8, qe),
849
- M.value.userOptions.show && Ct.value && (S(Kt) || S(Wt)) ? (v(), l(S(gt), {
824
+ M.value.userOptions.show && Ct.value && (S(Wt) || S(Ht)) ? (v(), l(S(gt), {
850
825
  ref_key: "details",
851
826
  ref: wt,
852
827
  key: `user_options${Tt.value}`,
853
828
  backgroundColor: M.value.style.chart.backgroundColor,
854
829
  color: M.value.style.chart.color,
855
- isImaging: S(Yt),
856
- isPrinting: S(Jt),
830
+ isImaging: S(qt),
831
+ isPrinting: S(Kt),
857
832
  uid: E.value,
858
833
  hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
859
834
  hasPdf: M.value.userOptions.buttons.pdf,
@@ -866,28 +841,28 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
866
841
  isFullscreen: $.value,
867
842
  isTooltip: L.value.showTooltip,
868
843
  titles: { ...M.value.userOptions.buttonTitles },
869
- chartElement: O.value,
844
+ chartElement: k.value,
870
845
  position: M.value.userOptions.position,
871
846
  hasAnnotator: M.value.userOptions.buttons.annotator,
872
- isAnnotation: Fn.value,
847
+ isAnnotation: Nn.value,
873
848
  callbacks: M.value.userOptions.callbacks,
874
849
  printScale: M.value.userOptions.print.scale,
875
850
  tableDialog: M.value.table.useDialog,
876
851
  isCursorPointer: P.value,
877
- onToggleFullscreen: En,
878
- onGeneratePdf: S(Xt),
879
- onGenerateCsv: Tn,
880
- onGenerateImage: Kn,
881
- onGenerateSvg: Gn,
882
- onToggleTable: Nn,
883
- onToggleTooltip: Pn,
884
- onToggleAnnotator: In,
885
- onCopyAlt: qn,
886
- style: _({ visibility: S(Kt) ? S(Wt) ? "visible" : "hidden" : "visible" })
852
+ onToggleFullscreen: wn,
853
+ onGeneratePdf: S(Jt),
854
+ onGenerateCsv: Cn,
855
+ onGenerateImage: S(Wn),
856
+ onGenerateSvg: S(Un),
857
+ onToggleTable: jn,
858
+ onToggleTooltip: Mn,
859
+ onToggleAnnotator: Pn,
860
+ onCopyAlt: Gn,
861
+ style: _({ visibility: S(Wt) ? S(Ht) ? "visible" : "hidden" : "visible" })
887
862
  }, Ne({ _: 2 }, [
888
863
  e.$slots.menuIcon ? {
889
864
  name: "menuIcon",
890
- fn: w(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(m({
865
+ fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(m({
891
866
  isOpen: t,
892
867
  color: n
893
868
  })), void 0, !0)]),
@@ -895,37 +870,37 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
895
870
  } : void 0,
896
871
  e.$slots.optionTooltip ? {
897
872
  name: "optionTooltip",
898
- fn: w(() => [b(e.$slots, "optionTooltip", {}, void 0, !0)]),
873
+ fn: w(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
899
874
  key: "1"
900
875
  } : void 0,
901
876
  e.$slots.optionPdf ? {
902
877
  name: "optionPdf",
903
- fn: w(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
878
+ fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
904
879
  key: "2"
905
880
  } : void 0,
906
881
  e.$slots.optionCsv ? {
907
882
  name: "optionCsv",
908
- fn: w(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
883
+ fn: w(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
909
884
  key: "3"
910
885
  } : void 0,
911
886
  e.$slots.optionImg ? {
912
887
  name: "optionImg",
913
- fn: w(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
888
+ fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
914
889
  key: "4"
915
890
  } : void 0,
916
891
  e.$slots.optionSvg ? {
917
892
  name: "optionSvg",
918
- fn: w(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
893
+ fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
919
894
  key: "5"
920
895
  } : void 0,
921
896
  e.$slots.optionTable ? {
922
897
  name: "optionTable",
923
- fn: w(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
898
+ fn: w(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
924
899
  key: "6"
925
900
  } : void 0,
926
901
  e.$slots.optionFullscreen ? {
927
902
  name: "optionFullscreen",
928
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(m({
903
+ fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(m({
929
904
  toggleFullscreen: t,
930
905
  isFullscreen: n
931
906
  })), void 0, !0)]),
@@ -933,7 +908,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
933
908
  } : void 0,
934
909
  e.$slots.optionAnnotator ? {
935
910
  name: "optionAnnotator",
936
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(m({
911
+ fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(m({
937
912
  toggleAnnotator: t,
938
913
  isAnnotator: n
939
914
  })), void 0, !0)]),
@@ -941,20 +916,20 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
941
916
  } : void 0,
942
917
  e.$slots.optionAltCopy ? {
943
918
  name: "optionAltCopy",
944
- fn: w(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
919
+ fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
945
920
  key: "9"
946
921
  } : void 0,
947
922
  e.$slots["custom-menu-before"] ? {
948
923
  name: "custom-menu-before",
949
- fn: w(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
924
+ fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
950
925
  key: "10"
951
926
  } : void 0,
952
927
  e.$slots["custom-menu-after"] ? {
953
928
  name: "custom-menu-after",
954
- fn: w(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
929
+ fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
955
930
  key: "11"
956
931
  } : void 0
957
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : u("", !0),
932
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
958
933
  f("div", Je, [(v(), d("svg", {
959
934
  ref_key: "svgRef",
960
935
  ref: I,
@@ -963,15 +938,15 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
963
938
  class: h({
964
939
  "vue-data-ui-fullscreen--on": $.value,
965
940
  "vue-data-ui-fulscreen--off": !$.value,
966
- resizing: k.value,
967
- "vue-data-ui-no-transition": !S(N) || k.value || S(F)
941
+ resizing: Pt.value,
942
+ "vue-data-ui-no-transition": !S(N) || Pt.value || S(F)
968
943
  }),
969
944
  viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
970
945
  style: _(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
971
946
  tabindex: "0",
972
- onFocus: Jn,
973
- onBlur: Yn,
974
- onKeydown: Xn
947
+ onFocus: Kn,
948
+ onBlur: qn,
949
+ onKeydown: Jn
975
950
  }, [
976
951
  Fe(S(vt)),
977
952
  e.$slots["chart-background"] ? (v(), d("foreignObject", {
@@ -981,8 +956,8 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
981
956
  width: R.value.width <= 0 ? 10 : R.value.width,
982
957
  height: R.value.height <= 0 ? 10 : R.value.height,
983
958
  style: { pointerEvents: "none" }
984
- }, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : u("", !0),
985
- (v(!0), d(je, null, Be(X.value, (e, t) => (v(), d("circle", {
959
+ }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : u("", !0),
960
+ (v(!0), d(je, null, b(X.value, (e, t) => (v(), d("circle", {
986
961
  cx: G.value.centerX,
987
962
  cy: G.value.centerY,
988
963
  r: e.radius <= 0 ? 1e-4 : e.radius,
@@ -1002,7 +977,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1002
977
  transformOrigin: "50% 50%"
1003
978
  }
1004
979
  }, null, 10, Ze))), 256)),
1005
- (v(!0), d(je, null, Be(X.value, (e, t) => (v(), d("circle", {
980
+ (v(!0), d(je, null, b(X.value, (e, t) => (v(), d("circle", {
1006
981
  cx: G.value.centerX,
1007
982
  cy: G.value.centerY,
1008
983
  r: e.radius < 0 ? 1e-4 : e.radius,
@@ -1035,7 +1010,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1035
1010
  M.value.style.chart.useGradient ? (v(), d("g", {
1036
1011
  key: 1,
1037
1012
  filter: `url(#blur_${E.value})`
1038
- }, [(v(!0), d(je, null, Be(X.value, (e, t) => (v(), d("circle", {
1013
+ }, [(v(!0), d(je, null, b(X.value, (e, t) => (v(), d("circle", {
1039
1014
  cx: G.value.centerX,
1040
1015
  cy: G.value.centerY,
1041
1016
  r: e.radius <= 0 ? 1e-4 : e.radius,
@@ -1051,7 +1026,7 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1051
1026
  },
1052
1027
  class: h({ "vue-data-ui-transition": S(N) })
1053
1028
  }, null, 10, nt))), 256))], 8, tt)) : u("", !0),
1054
- (v(!0), d(je, null, Be(X.value, (e, t) => (v(), d("circle", {
1029
+ (v(!0), d(je, null, b(X.value, (e, t) => (v(), d("circle", {
1055
1030
  cx: G.value.centerX,
1056
1031
  cy: G.value.centerY,
1057
1032
  r: e.radius <= 0 ? 1e-4 : e.radius,
@@ -1066,26 +1041,26 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1066
1041
  transform: "rotate(-90deg)",
1067
1042
  transformOrigin: "50% 50%"
1068
1043
  },
1069
- onMouseenter: (n) => Mn({
1044
+ onMouseenter: (n) => An({
1070
1045
  datapoint: e,
1071
1046
  show: !0,
1072
1047
  seriesIndex: t,
1073
1048
  triggerMode: "pointer"
1074
1049
  }),
1075
- onMouseleave: (t) => On({ datapoint: e }),
1076
- onClick: (t) => Dn({ datapoint: e })
1050
+ onMouseleave: (t) => En({ datapoint: e }),
1051
+ onClick: (t) => Tn({ datapoint: e })
1077
1052
  }, null, 40, rt))), 256)),
1078
- M.value.style.chart.layout.labels.show ? (v(), d("g", it, [(v(!0), d(je, null, Be(X.value, (e, t) => (v(), d("g", {
1053
+ M.value.style.chart.layout.labels.show ? (v(), d("g", it, [(v(!0), d(je, null, b(X.value, (e, t) => (v(), d("g", {
1079
1054
  key: `dl_${e.id}`,
1080
- onMouseenter: (n) => Mn({
1055
+ onMouseenter: (n) => An({
1081
1056
  datapoint: e,
1082
1057
  show: !0,
1083
1058
  seriesIndex: t,
1084
1059
  triggerMode: "pointer"
1085
1060
  }),
1086
- onMouseleave: (t) => On({ datapoint: e }),
1087
- onClick: (t) => Dn({ datapoint: e })
1088
- }, [D.value.includes(e.id) ? u("", !0) : (v(), d("text", {
1061
+ onMouseleave: (t) => En({ datapoint: e }),
1062
+ onClick: (t) => Tn({ datapoint: e })
1063
+ }, [O.value.includes(e.id) ? u("", !0) : (v(), d("text", {
1089
1064
  key: 0,
1090
1065
  class: h(["vue-ui-onion-label", { "vue-data-ui-transition": S(N) }]),
1091
1066
  transform: `translate(${R.value.width / 2 - Y.value.gutter * .8 + M.value.style.chart.layout.labels.offsetX},${e.labelY + M.value.style.chart.layout.labels.offsetY})`,
@@ -1093,46 +1068,46 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1093
1068
  "font-size": M.value.style.chart.layout.labels.fontSize,
1094
1069
  fill: M.value.useBlurOnHover && ![null, void 0].includes(Q.value) && Q.value === t ? e.color : M.value.style.chart.layout.labels.color,
1095
1070
  "font-weight": M.value.style.chart.layout.labels.bold ? "bold" : "normal"
1096
- }, x(An(e, t)), 11, ot))], 40, at))), 128))])) : u("", !0),
1097
- b(e.$slots, "svg", { svg: {
1071
+ }, He(On(e, t)), 11, ot))], 40, at))), 128))])) : u("", !0),
1072
+ x(e.$slots, "svg", { svg: {
1098
1073
  ...R.value,
1099
1074
  drawingArea: G.value,
1100
- isPrintingImg: S(Jt) || S(Yt) || It.value,
1101
- isPrintingSvg: Lt.value
1075
+ isPrintingImg: S(Kt) || S(qt) || S(Vn),
1076
+ isPrintingSvg: S(Hn)
1102
1077
  } }, void 0, !0)
1103
- ], 46, Ye)), e.$slots.hint ? (v(), d("div", st, [b(e.$slots, "hint", g(m({
1078
+ ], 46, Ye)), e.$slots.hint ? (v(), d("div", st, [x(e.$slots, "hint", g(m({
1104
1079
  hint: M.value.a11y.translations.keyboardNavigation,
1105
- isVisible: Bt.value
1080
+ isVisible: Rt.value
1106
1081
  })), void 0, !0)])) : u("", !0)]),
1107
- e.$slots.watermark ? (v(), d("div", ct, [b(e.$slots, "watermark", g(m({ isPrinting: S(Jt) || S(Yt) || It.value || Lt.value })), void 0, !0)])) : u("", !0),
1082
+ e.$slots.watermark ? (v(), d("div", ct, [x(e.$slots, "watermark", g(m({ isPrinting: S(Kt) || S(qt) || S(Vn) || S(Hn) })), void 0, !0)])) : u("", !0),
1108
1083
  f("div", { id: `legend-bottom-${E.value}` }, null, 8, lt),
1109
1084
  Ft.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (v(), l(Me, {
1110
1085
  key: 6,
1111
1086
  to: M.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
1112
1087
  }, [f("div", {
1113
1088
  ref_key: "chartLegend",
1114
- ref: kt
1115
- }, [b(e.$slots, "legend", { legend: q.value }, () => [M.value.style.chart.legend.show ? (v(), l(Oe, {
1116
- key: `legend_${Pt.value}`,
1089
+ ref: Ot
1090
+ }, [x(e.$slots, "legend", { legend: q.value }, () => [M.value.style.chart.legend.show ? (v(), l(Oe, {
1091
+ key: `legend_${Nt.value}`,
1117
1092
  legendSet: q.value,
1118
- config: mn.value,
1093
+ config: fn.value,
1119
1094
  isCursorPointer: P.value,
1120
- onClickMarker: t[0] ||= ({ legend: e }) => yn(e.id)
1095
+ onClickMarker: t[0] ||= ({ legend: e }) => _n(e.id)
1121
1096
  }, {
1122
1097
  item: w(({ legend: e }) => [S(F) ? u("", !0) : (v(), d("div", {
1123
1098
  key: 0,
1124
1099
  "data-cy-legend-item": "",
1125
1100
  onClick: (t) => e.segregate(),
1126
- style: _(`opacity:${D.value.includes(e.id) ? .5 : 1}`)
1127
- }, x(e.display), 13, ut))]),
1101
+ style: _(`opacity:${O.value.includes(e.id) ? .5 : 1}`)
1102
+ }, He(e.display), 13, ut))]),
1128
1103
  legendToggle: w(() => [q.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !S(F) ? (v(), l(Ce, {
1129
1104
  key: 0,
1130
1105
  backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
1131
1106
  color: M.value.style.chart.legend.selectAllToggle.color,
1132
1107
  fontSize: M.value.style.chart.legend.fontSize,
1133
- checked: D.value.length > 0,
1108
+ checked: O.value.length > 0,
1134
1109
  isCursorPointer: P.value,
1135
- onToggle: vn
1110
+ onToggle: gn
1136
1111
  }, null, 8, [
1137
1112
  "backgroundColor",
1138
1113
  "color",
@@ -1149,12 +1124,12 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1149
1124
  e.$slots.source ? (v(), d("div", {
1150
1125
  key: 7,
1151
1126
  ref_key: "source",
1152
- ref: At,
1127
+ ref: kt,
1153
1128
  dir: "auto"
1154
- }, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
1129
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
1155
1130
  Fe(S(ft), {
1156
1131
  teleportTo: M.value.style.chart.tooltip.teleportTo,
1157
- show: L.value.showTooltip && Et.value,
1132
+ show: L.value.showTooltip && D.value,
1158
1133
  backgroundColor: M.value.style.chart.tooltip.backgroundColor,
1159
1134
  color: M.value.style.chart.tooltip.color,
1160
1135
  borderRadius: M.value.style.chart.tooltip.borderRadius,
@@ -1165,20 +1140,20 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1165
1140
  position: M.value.style.chart.tooltip.position,
1166
1141
  offsetX: M.value.style.chart.tooltip.offsetX,
1167
1142
  offsetY: M.value.style.chart.tooltip.offsetY,
1168
- parent: O.value,
1169
- content: Dt.value,
1143
+ parent: k.value,
1144
+ content: Et.value,
1170
1145
  isFullscreen: $.value,
1171
1146
  isCustom: S(se)(M.value.style.chart.tooltip.customFormat),
1172
1147
  smooth: M.value.style.chart.tooltip.smooth,
1173
1148
  backdropFilter: M.value.style.chart.tooltip.backdropFilter,
1174
1149
  smoothForce: M.value.style.chart.tooltip.smoothForce,
1175
1150
  smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
1176
- isA11yMode: zt.value === "keyboard",
1177
- a11yPosition: Rt.value
1151
+ isA11yMode: j.value === "keyboard",
1152
+ a11yPosition: Lt.value
1178
1153
  }, {
1179
- "tooltip-before": w(() => [b(e.$slots, "tooltip-before", g(m({ ...jn.value })), void 0, !0)]),
1180
- tooltip: w(() => [b(e.$slots, "tooltip", g(m({ ...jn.value })), void 0, !0)]),
1181
- "tooltip-after": w(() => [b(e.$slots, "tooltip-after", g(m({ ...jn.value })), void 0, !0)]),
1154
+ "tooltip-before": w(() => [x(e.$slots, "tooltip-before", g(m({ ...kn.value })), void 0, !0)]),
1155
+ tooltip: w(() => [x(e.$slots, "tooltip", g(m({ ...kn.value })), void 0, !0)]),
1156
+ "tooltip-after": w(() => [x(e.$slots, "tooltip-after", g(m({ ...kn.value })), void 0, !0)]),
1182
1157
  _: 3
1183
1158
  }, 8, [
1184
1159
  "teleportTo",
@@ -1204,23 +1179,23 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1204
1179
  "isA11yMode",
1205
1180
  "a11yPosition"
1206
1181
  ]),
1207
- Ct.value && M.value.userOptions.buttons.table ? (v(), l(Ve(Rn.value.component), Ie({ key: 8 }, Rn.value.props, {
1182
+ Ct.value && M.value.userOptions.buttons.table ? (v(), l(Be(In.value.component), Ie({ key: 8 }, In.value.props, {
1208
1183
  ref_key: "tableUnit",
1209
- ref: A,
1184
+ ref: It,
1210
1185
  onClose: t[3] ||= (e) => L.value.showTable = !1
1211
1186
  }), Ne({
1212
1187
  content: w(() => [(v(), l(S(ht), {
1213
- key: `table_${Nt.value}`,
1188
+ key: `table_${Mt.value}`,
1214
1189
  colNames: Z.value.colNames,
1215
1190
  head: Z.value.head,
1216
1191
  body: Z.value.body,
1217
1192
  config: Z.value.config,
1218
- title: M.value.table.useDialog ? "" : Rn.value.title,
1193
+ title: M.value.table.useDialog ? "" : In.value.title,
1219
1194
  withCloseButton: !M.value.table.useDialog,
1220
1195
  isCursorPointer: P.value,
1221
1196
  onClose: t[2] ||= (e) => L.value.showTable = !1
1222
1197
  }, {
1223
- th: w(({ th: e }) => [Pe(x(e), 1)]),
1198
+ th: w(({ th: e }) => [Pe(He(e), 1)]),
1224
1199
  td: w(({ td: e }) => [f("div", { innerHTML: e }, null, 8, dt)]),
1225
1200
  _: 1
1226
1201
  }, 8, [
@@ -1235,24 +1210,24 @@ var We = /* @__PURE__ */ e({ default: () => ft }), Ge = ["id"], Ke = ["id"], qe
1235
1210
  _: 2
1236
1211
  }, [M.value.table.useDialog ? {
1237
1212
  name: "title",
1238
- fn: w(() => [Pe(x(Rn.value.title), 1)]),
1213
+ fn: w(() => [Pe(He(In.value.title), 1)]),
1239
1214
  key: "0"
1240
1215
  } : void 0, M.value.table.useDialog ? {
1241
1216
  name: "actions",
1242
1217
  fn: w(() => [f("button", {
1243
1218
  tabindex: "0",
1244
1219
  class: "vue-ui-user-options-button",
1245
- onClick: t[1] ||= (e) => Tn(M.value.userOptions.callbacks.csv),
1220
+ onClick: t[1] ||= (e) => Cn(M.value.userOptions.callbacks.csv),
1246
1221
  style: _({ cursor: P.value ? "pointer" : "default" })
1247
1222
  }, [Fe(S(pt), {
1248
1223
  name: "fileCsv",
1249
- stroke: Rn.value.props.color
1224
+ stroke: In.value.props.color
1250
1225
  }, null, 8, ["stroke"])], 4)]),
1251
1226
  key: "1"
1252
1227
  } : void 0]), 1040)) : u("", !0),
1253
- b(e.$slots, "skeleton", {}, () => [S(F) ? (v(), l(pe, { key: 0 })) : u("", !0)], !0)
1228
+ x(e.$slots, "skeleton", {}, () => [S(F) ? (v(), l(pe, { key: 0 })) : u("", !0)], !0)
1254
1229
  ], 46, Ge));
1255
1230
  }
1256
- }, [["__scopeId", "data-v-4d2bd2f8"]]);
1231
+ }, [["__scopeId", "data-v-e202bda3"]]);
1257
1232
  //#endregion
1258
1233
  export { We as n, ft as t };