vue-data-ui 3.22.14 → 3.23.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 (229) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
  4. package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  5. package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
  6. package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  7. package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  8. package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
  9. package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
  10. package/dist/HillActions-BD9j_sOU.js +187 -0
  11. package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
  13. package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
  14. package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
  15. package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
  16. package/dist/Slicer-CIk57nL4.js +1163 -0
  17. package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
  18. package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
  19. package/dist/Title-BE3qg9xl.js +87 -0
  20. package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
  21. package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/composables.js +1 -1
  93. package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
  94. package/dist/exposedLib-C0DPCgFj.js +28 -0
  95. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  96. package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
  97. package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
  98. package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
  99. package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
  100. package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
  101. package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
  102. package/dist/ssr/vue-ui-donut.js +1 -1
  103. package/dist/ssr/vue-ui-xy.js +1 -1
  104. package/dist/ssr.js +2 -2
  105. package/dist/style.css +1 -1
  106. package/dist/types/vue-data-ui.d.ts +496 -0
  107. package/dist/types/vue-ui-hill.d.ts +90 -0
  108. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  109. package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
  110. package/dist/useHints-Dq_w2E8B.js +66 -0
  111. package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
  112. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
  113. package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
  114. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  115. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  116. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  117. package/dist/useTransitions-g_zBREk2.js +39 -0
  118. package/dist/utils.js +14 -14
  119. package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
  120. package/dist/vue-data-ui.js +77 -76
  121. package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
  122. package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
  123. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
  124. package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
  125. package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
  126. package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
  127. package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
  128. package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
  129. package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
  130. package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
  131. package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
  132. package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
  133. package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
  134. package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
  135. package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
  136. package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
  137. package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
  138. package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
  139. package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
  140. package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
  141. package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
  142. package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
  143. package/dist/vue-ui-gauge-ByE_txav.js +953 -0
  144. package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
  145. package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
  146. package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
  147. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  148. package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
  149. package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
  150. package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
  151. package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
  152. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  153. package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
  154. package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
  155. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  156. package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
  157. package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
  158. package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
  159. package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
  160. package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
  161. package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
  162. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  163. package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
  164. package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
  165. package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
  166. package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
  167. package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
  168. package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
  169. package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
  170. package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
  171. package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
  172. package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
  173. package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
  174. package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
  175. package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
  176. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  177. package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
  178. package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
  179. package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
  180. package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
  181. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  182. package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
  183. package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
  184. package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
  185. package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
  186. package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
  187. package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
  188. package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
  189. package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
  190. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  191. package/package.json +4 -4
  192. package/dist/Slicer-JdCzBeYM.js +0 -1149
  193. package/dist/Title-Thf71-8D.js +0 -87
  194. package/dist/exposedLib-CfZhN94x.js +0 -25
  195. package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
  196. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  197. package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
  198. package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
  199. package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
  200. package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
  201. package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
  202. package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
  203. package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
  204. package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
  205. package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
  206. package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
  207. package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
  208. package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
  209. package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
  210. package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
  211. package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
  212. package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
  213. package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
  214. package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
  215. package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
  216. package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
  217. package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
  218. package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
  219. package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
  220. package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
  221. package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
  222. package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
  223. package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
  224. package/dist/vue-ui-table-DEhy61ln.js +0 -1339
  225. package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
  226. package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
  227. package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
  228. package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
  229. package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
@@ -1,134 +1,136 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, C as n, Ct as r, E as i, Gt as a, Ht as o, K as s, Lt as c, Nt as l, Ot as ee, Q as te, W as ne, Y as re, Z as ie, d as ae, et as oe, f as se, ft as ce, g as le, i as ue, m as de, qt as fe, t as pe, v as me, x as he, zt as ge } from "./lib-C-QGo8GG.js";
3
- import { t as _e } from "./useTimeLabels-B9CEuiLZ.js";
4
- import { t as ve } from "./useConfig-C0V0eG7L.js";
5
- import { t as ye } from "./usePrinter-C5ordS-4.js";
6
- import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as Se } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as Ce } from "./useNestedProp-BYfiWVP8.js";
9
- import { t as we } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as Te } from "./useMountedDelay-BAjrhRJb.js";
11
- import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as De } from "./img-zY7_pJz1.js";
13
- import { n as Oe } from "./Title-Thf71-8D.js";
14
- import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
16
- import { t as Me } from "./DefGrad-DVBqDjhO.js";
17
- import { t as Ne } from "./BaseLegendToggle-DJU4VsLO.js";
18
- import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Le } from "./Legend-DSPDFP3n.js";
22
- import { t as Re } from "./vue_ui_donut_evolution-D1yAAIHr.js";
23
- import { t as ze } from "./Slicer-JdCzBeYM.js";
24
- import { Fragment as u, Teleport as Be, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ve, createTextVNode as He, createVNode as Ue, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as We, nextTick as Ge, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ke, onMounted as qe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as T, toRefs as Xe, unref as E, watch as Ze, watchEffect as Qe, withCtx as D } from "vue";
2
+ import { $ as t, Bt as n, D as r, G as i, Jt as a, Kt as o, Pt as s, Q as c, Rt as ee, S as te, Ut as ne, X as re, _ as ie, f as ae, h as oe, i as se, jt as ce, kt as le, p as ue, pt as de, q as fe, t as pe, tt as me, w as he, wt as ge, y as _e } from "./lib-Bttd6u5E.js";
3
+ import { n as ve, t as ye } from "./useHints-Dq_w2E8B.js";
4
+ import { t as be } from "./useTimeLabels-d2f-W1L4.js";
5
+ import { t as xe } from "./useConfig-D3scuR88.js";
6
+ import { t as Se } from "./usePrinter-DN5bYhTG.js";
7
+ import { n as Ce, t as we } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as Te } from "./useSvgExport-DH-FfcqQ.js";
9
+ import { t as Ee } from "./useNestedProp-vPNvh7rV.js";
10
+ import { t as De } from "./useThemeCheck-C43Tcqmk.js";
11
+ import { t as Oe } from "./useTransitions-g_zBREk2.js";
12
+ import { t as ke } from "./useStableElementSize-C7KADDKj.js";
13
+ import { t as Ae } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
+ import { t as je } from "./img-Bnokohej.js";
15
+ import { n as Me } from "./Title-BE3qg9xl.js";
16
+ import { t as Ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
17
+ import { l as Pe, t as Fe } from "./useResponsive-ZtArZtUf.js";
18
+ import { t as Ie } from "./DefGrad-DVBqDjhO.js";
19
+ import { t as Le } from "./BaseLegendToggle-DZVucLnv.js";
20
+ import { t as Re } from "./A11yDataTable-DdRsVULz.js";
21
+ import { t as ze } from "./useUserOptionState-DK-_1ddE.js";
22
+ import { t as Be } from "./useChartAccessibility-DYqac8yF.js";
23
+ import { t as Ve } from "./Legend-CQxUgOd-.js";
24
+ import { t as He } from "./vue_ui_donut_evolution-D1yAAIHr.js";
25
+ import { t as Ue } from "./Slicer-CIk57nL4.js";
26
+ import { Fragment as l, Teleport as We, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Je, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ye, onMounted as Xe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ze, shallowRef as Qe, toDisplayString as T, toRefs as $e, unref as E, watch as et, watchEffect as tt, withCtx as D } from "vue";
25
27
  //#region src/components/vue-ui-donut-evolution.vue
26
- var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
28
+ var nt = /* @__PURE__ */ e({ default: () => Wt }), rt = ["id"], it = ["id"], at = ["id"], ot = { style: { position: "relative" } }, st = [
27
29
  "xmlns",
28
30
  "aria-describedby",
29
31
  "viewBox"
30
- ], at = [
32
+ ], ct = [
31
33
  "x",
32
34
  "y",
33
35
  "width",
34
36
  "height"
35
- ], ot = { key: 1 }, st = [
37
+ ], lt = { key: 1 }, ut = [
36
38
  "x1",
37
39
  "x2",
38
40
  "y1",
39
41
  "y2",
40
42
  "stroke",
41
43
  "stroke-width"
42
- ], ct = [
44
+ ], dt = [
43
45
  "x1",
44
46
  "x2",
45
47
  "y1",
46
48
  "y2",
47
49
  "stroke",
48
50
  "stroke-width"
49
- ], lt = { key: 0 }, ut = [
51
+ ], ft = { key: 0 }, pt = [
50
52
  "x1",
51
53
  "x2",
52
54
  "y1",
53
55
  "y2",
54
56
  "stroke",
55
57
  "stroke-width"
56
- ], dt = [
58
+ ], mt = [
57
59
  "font-size",
58
60
  "fill",
59
61
  "transform"
60
- ], ft = [
62
+ ], ht = [
61
63
  "x",
62
64
  "y",
63
65
  "font-size",
64
66
  "fill"
65
- ], pt = [
67
+ ], gt = [
66
68
  "d",
67
69
  "stroke",
68
70
  "stroke-width"
69
- ], mt = [
71
+ ], _t = [
70
72
  "transform",
71
73
  "font-size",
72
74
  "text-anchor",
73
75
  "fill",
74
76
  "font-weight"
75
- ], ht = { key: 0 }, gt = [
77
+ ], vt = { key: 0 }, yt = [
76
78
  "text-anchor",
77
79
  "font-size",
78
80
  "fill",
79
81
  "transform"
80
- ], _t = [
82
+ ], bt = [
81
83
  "text-anchor",
82
84
  "font-size",
83
85
  "fill",
84
86
  "transform",
85
87
  "innerHTML"
86
- ], vt = [
88
+ ], xt = [
87
89
  "x1",
88
90
  "y1",
89
91
  "x2",
90
92
  "y2",
91
93
  "stroke",
92
94
  "stroke-width"
93
- ], yt = { key: 1 }, bt = [
95
+ ], St = { key: 1 }, Ct = [
94
96
  "cx",
95
97
  "cy",
96
98
  "r",
97
99
  "fill"
98
- ], xt = { key: 0 }, St = { key: 0 }, Ct = ["d", "stroke"], wt = [
100
+ ], wt = { key: 0 }, Tt = { key: 0 }, Et = ["d", "stroke"], Dt = [
99
101
  "text-anchor",
100
102
  "x",
101
103
  "y",
102
104
  "fill"
103
- ], Tt = [
105
+ ], Ot = [
104
106
  "cx",
105
107
  "cy",
106
108
  "r",
107
109
  "fill"
108
- ], Et = { key: 0 }, Dt = [
110
+ ], kt = { key: 0 }, At = [
109
111
  "cx",
110
112
  "cy",
111
113
  "fill"
112
- ], Ot = { key: 1 }, kt = [
114
+ ], jt = { key: 1 }, Mt = [
113
115
  "d",
114
116
  "fill",
115
117
  "stroke"
116
- ], At = { key: 2 }, jt = [
118
+ ], Nt = { key: 2 }, Pt = [
117
119
  "d",
118
120
  "fill",
119
121
  "stroke"
120
- ], Mt = [
122
+ ], Ft = [
121
123
  "x",
122
124
  "y",
123
125
  "font-size",
124
126
  "fill"
125
- ], Nt = [
127
+ ], It = [
126
128
  "x",
127
129
  "y",
128
130
  "width",
129
131
  "height",
130
132
  "fill"
131
- ], Pt = [
133
+ ], Lt = [
132
134
  "x",
133
135
  "y",
134
136
  "width",
@@ -136,7 +138,7 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
136
138
  "onMouseenter",
137
139
  "onMouseleave",
138
140
  "onClick"
139
- ], Ft = {
141
+ ], Rt = {
140
142
  key: 0,
141
143
  style: {
142
144
  position: "absolute",
@@ -146,10 +148,10 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
146
148
  },
147
149
  "data-dom-to-png-ignore": "",
148
150
  "aria-hidden": "true"
149
- }, It = {
151
+ }, zt = {
150
152
  key: 5,
151
153
  class: "vue-data-ui-watermark"
152
- }, Lt = ["id"], Rt = ["onClick"], zt = { key: 0 }, Bt = { key: 1 }, Vt = /*#__PURE__*/ ke({
154
+ }, Bt = ["id"], Vt = ["onClick"], Ht = { key: 0 }, Ut = { key: 1 }, Wt = /*#__PURE__*/ Ne({
153
155
  __name: "vue-ui-donut-evolution",
154
156
  props: {
155
157
  config: {
@@ -166,52 +168,126 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
166
168
  }
167
169
  },
168
170
  emits: ["selectLegend", "copyAlt"],
169
- setup(e, { expose: ke, emit: $e }) {
170
- let Vt = g(() => import("./vue-ui-accordion-FimGHtuy.js").then((e) => e.n)), Ht = g(() => import("./BaseIcon-DJbOzCDs.js").then((e) => e.n)), Ut = g(() => import("./DataTable-rIsBpJMt.js")), Wt = g(() => import("./PackageVersion-BUmadjVO.js").then((e) => e.t)), Gt = g(() => import("./PenAndPaper-D--sbRMA.js").then((e) => e.t)), Kt = g(() => import("./UserOptions-BknvMNU1.js").then((e) => e.n)), qt = g(() => import("./vue-ui-donut-BCLG16Vb.js").then((e) => e.n)), Jt = g(() => import("./BaseDraggableDialog-hyW32gLf.js").then((e) => e.n)), { vue_ui_donut_evolution: Yt } = ve(), { isThemeValid: Xt, warnInvalidTheme: Zt } = we(), { isReady: Qt } = Te(300), O = e, k = S(s()), A = S([]), j = S(null), M = S(null), $t = S(!1), N = S(null), P = S(null), en = S(null), tn = S(0), nn = S(0), rn = S(0), an = S(0), on = S(0), sn = S(null), cn = S(null), ln = S(null), un = S(null), dn = S(!1), F = S(null), fn = S(null), pn = S(!1), mn = S(!1), hn = S(null), gn = S(null), _n = S(null), vn = S(null), yn = S(null), bn = S(!1), I = Ye(null), xn = Ye(null), Sn = S(null), L = S(null), Cn = S(!1), wn = $e, Tn = d(() => !!O.dataset && O.dataset.length);
171
- qe(() => {
172
- dn.value = !0, Dn();
171
+ setup(e, { expose: Ne, emit: nt }) {
172
+ let Wt = h(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), Gt = h(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Kt = h(() => import("./DataTable-BbKgJ5UI.js")), qt = h(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), Jt = h(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Yt = h(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Xt = h(() => import("./vue-ui-donut-C0cWRLbU.js").then((e) => e.n)), Zt = h(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_donut_evolution: Qt } = xe(), { isThemeValid: $t, warnInvalidTheme: en } = De(), O = e, k = S(fe()), A = S([]), j = S(null), M = S(null), tn = S(!1), N = S(null), P = S(null), nn = S(null), rn = S(0), an = S(0), on = S(0), sn = S(0), cn = S(0), ln = S(null), un = S(null), dn = S(null), fn = S(null), pn = S(!1), mn = S(null), hn = S(null), gn = S(!1), _n = S(!1), vn = Qe(null), yn = S(0), bn = S(0), xn = S(!1);
173
+ function Sn() {
174
+ vn.value = P.value?.parentNode ?? null;
175
+ }
176
+ function Cn() {
177
+ return new Promise((e) => {
178
+ requestAnimationFrame(() => {
179
+ requestAnimationFrame(e);
180
+ });
181
+ });
182
+ }
183
+ async function wn() {
184
+ let e = ++bn.value;
185
+ await _(), await Cn(), await Cn(), e === bn.value && (yn.value += 1);
186
+ }
187
+ function Tn() {
188
+ xn.value || (xn.value = !0, _(() => {
189
+ xn.value = !1, Sn(), wn();
190
+ }));
191
+ }
192
+ let En = ke({
193
+ elementRef: vn,
194
+ minimumWidth: 2,
195
+ minimumHeight: 2,
196
+ stableFramesRequired: 2,
197
+ once: !1,
198
+ onSizeAccepted: () => {
199
+ wn();
200
+ }
201
+ }), Dn = S(null), On = S(null), kn = S(null), An = S(null), jn = S(null), Mn = S(!1), F = Qe(null), I = Qe(null), Nn = S(null), L = S(null), Pn = S(!1), Fn = nt, In = u(() => !!O.dataset && O.dataset.length);
202
+ Xe(() => {
203
+ pn.value = !0, Sn(), En.start(), Rn(), wn();
173
204
  });
174
- let En = d(() => !!R.value.debug);
175
- function Dn() {
176
- if (t(O.dataset) ? (oe({
205
+ let Ln = u(() => !!R.value.debug);
206
+ function Rn() {
207
+ if (ce(O.dataset) ? (me({
177
208
  componentName: "VueUiDonutEvolution",
178
209
  type: "dataset",
179
- debug: En.value
180
- }), jn.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
181
- ce({
210
+ debug: Ln.value
211
+ }), Un.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
212
+ de({
182
213
  datasetObject: e,
183
214
  requiredAttributes: ["name", "values"]
184
215
  }).forEach((e) => {
185
- oe({
216
+ me({
186
217
  componentName: "VueUiDonutEvolution",
187
218
  type: "datasetSerieAttribute",
188
219
  property: e,
189
220
  index: t,
190
- debug: En.value
191
- }), jn.value = !0;
221
+ debug: Ln.value
222
+ }), Un.value = !0;
192
223
  });
193
- }), t(O.dataset) || (jn.value = R.value.loading), setTimeout(() => {
194
- bn.value = !0;
195
- }, 10), Pn(), R.value.responsive) {
196
- let e = Ae(() => {
197
- bn.value = !1;
198
- let { width: e, height: t } = je({
224
+ }), ce(O.dataset) || (Un.value = R.value.loading), setTimeout(() => {
225
+ Mn.value = !0;
226
+ }, 10), Kn(), R.value.responsive) {
227
+ let e = Pe(() => {
228
+ Mn.value = !1;
229
+ let { width: e, height: t } = Fe({
199
230
  chart: P.value,
200
- title: R.value.style.chart.title.text ? hn.value : null,
201
- legend: R.value.style.chart.legend.show ? gn.value : null,
202
- slicer: R.value.style.chart.zoom.show && Mn.value > 1 ? yn.value : null,
203
- source: _n.value
231
+ title: R.value.style.chart.title.text ? Dn.value : null,
232
+ legend: R.value.style.chart.legend.show ? On.value : null,
233
+ slicer: R.value.style.chart.zoom.show && Wn.value > 1 ? jn.value : null,
234
+ source: kn.value
204
235
  });
205
236
  requestAnimationFrame(() => {
206
- B.value.width = e, B.value.height = t - 12, clearTimeout(Sn.value), Sn.value = setTimeout(() => {
207
- bn.value = !0;
237
+ B.value.width = e, B.value.height = t - 12, Tn(), clearTimeout(Nn.value), Nn.value = setTimeout(() => {
238
+ Mn.value = !0;
208
239
  }, 10);
209
240
  });
210
241
  });
211
- I.value && (xn.value && I.value.unobserve(xn.value), I.value.disconnect()), I.value = new ResizeObserver(e), xn.value = P.value.parentNode, I.value.observe(xn.value);
242
+ F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
212
243
  }
244
+ Tn();
213
245
  }
214
- let R = S(Bn()), z = d(() => R.value.userOptions.useCursorPointer), On = d(() => fe({
246
+ let R = S(Qn());
247
+ ve({
248
+ config: () => R.value,
249
+ dataset: () => O.dataset,
250
+ component: "VueUiDonutEvolution",
251
+ rules: [
252
+ ye.emptyArray,
253
+ {
254
+ test: (e) => e.length === 1,
255
+ message: [
256
+ "👀 There is only a single series in your dataset. Consider:",
257
+ "",
258
+ "▶️ Using VueUiXy instead, for a regular line chart."
259
+ ]
260
+ },
261
+ {
262
+ test: (e) => e.length > 6,
263
+ message: [
264
+ "👀 The number of series is > 6, which makes donuts hard to read. Consider:",
265
+ "",
266
+ "▶️ Grouping small values dynamically into a single \"Other\" series.",
267
+ "",
268
+ "▶️ Using filters to let users choose a maximum number of series to display.",
269
+ "",
270
+ "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
271
+ ]
272
+ },
273
+ {
274
+ test: (e) => e.some((e) => e.values.length > 24),
275
+ message: [
276
+ "👀 Some series have a number of data points > 24, which can make the chart and donuts hard to read. Consider:",
277
+ "",
278
+ "▶️ Using larger time scales, or aggregated values.",
279
+ "",
280
+ "▶️ Filtering the time range by adding date intputs in your UI.",
281
+ "",
282
+ "▶️ Using VueUiXy to show longer series in a more comfortable display."
283
+ ]
284
+ }
285
+ ]
286
+ });
287
+ let { transitionEnabled: zn } = Oe({
288
+ config: () => R.value.transitions,
289
+ dataset: () => O.dataset
290
+ }), z = u(() => R.value.userOptions.useCursorPointer), Bn = u(() => a({
215
291
  defaultConfig: {
216
292
  useCssAnimation: !1,
217
293
  table: { show: !1 },
@@ -249,13 +325,13 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
249
325
  } }
250
326
  },
251
327
  userConfig: R.value.skeletonConfig ?? {}
252
- })), { loading: kn, FINAL_DATASET: An, manualLoading: jn } = be({
253
- ...Xe(O),
328
+ })), { loading: Vn, FINAL_DATASET: Hn, manualLoading: Un } = Ce({
329
+ ...$e(O),
254
330
  FINAL_CONFIG: R,
255
- prepareConfig: Bn,
331
+ prepareConfig: Qn,
256
332
  callback: () => {
257
333
  Promise.resolve().then(async () => {
258
- await Pn();
334
+ await Kn();
259
335
  });
260
336
  },
261
337
  skeletonDataset: O.config?.skeletonDataset ?? [
@@ -296,84 +372,84 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
296
372
  color: "#CACACA"
297
373
  }
298
374
  ],
299
- skeletonConfig: fe({
375
+ skeletonConfig: a({
300
376
  defaultConfig: R.value,
301
- userConfig: On.value
377
+ userConfig: Bn.value
302
378
  })
303
379
  }), B = S({
304
380
  width: R.value.style.chart.layout.width,
305
381
  height: R.value.style.chart.layout.height
306
- }), Mn = d(() => Math.max(...An.value.map((e) => e.values.length))), V = S({
382
+ }), Wn = u(() => Math.max(...Hn.value.map((e) => e.values.length))), V = S({
307
383
  start: 0,
308
- end: Mn.value
384
+ end: Wn.value
309
385
  });
310
- function Nn() {
311
- Pn();
386
+ function Gn() {
387
+ Kn();
312
388
  }
313
- async function Pn() {
314
- await Ge(), await Ge();
315
- let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = vn.value;
389
+ async function Kn() {
390
+ await _(), await _();
391
+ let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = An.value;
316
392
  V.value = {
317
393
  start: 0,
318
394
  max: q.value
319
- }, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(Fn(t + 1))) : (V.value = {
395
+ }, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(qn(t + 1))) : (V.value = {
320
396
  start: 0,
321
397
  end: q.value
322
- }, nn.value += 1);
398
+ }, an.value += 1), Tn();
323
399
  }
324
- function Fn(e) {
400
+ function qn(e) {
325
401
  let t = q.value;
326
402
  return e > t ? t : e < 0 || R.value.style.chart.zoom.startIndex !== null && e < R.value.style.chart.zoom.startIndex ? R.value.style.chart.zoom.startIndex === null ? 1 : R.value.style.chart.zoom.startIndex + 1 : e;
327
403
  }
328
- let { userOptionsVisible: In, setUserOptionsVisibility: Ln, keepUserOptionState: Rn } = Fe({ config: R.value }), { svgRef: zn } = Ie({ config: R.value.style.chart.title });
329
- function Bn() {
330
- let e = Ce({
404
+ let { userOptionsVisible: Jn, setUserOptionsVisibility: Yn, keepUserOptionState: Xn } = ze({ config: R.value }), { svgRef: Zn } = Be({ config: R.value.style.chart.title });
405
+ function Qn() {
406
+ let e = Ee({
331
407
  userConfig: O.config,
332
- defaultConfig: Yt
408
+ defaultConfig: Qt
333
409
  }), t = {}, n = e.theme;
334
- if (n) if (!Xt.value(e)) Zt(e), t = e;
410
+ if (n) if (!$t.value(e)) en(e), t = e;
335
411
  else {
336
- let r = Ce({
337
- userConfig: Re[n] || O.config,
412
+ let r = Ee({
413
+ userConfig: He[n] || O.config,
338
414
  defaultConfig: e
339
415
  });
340
416
  t = {
341
- ...Ce({
417
+ ...Ee({
342
418
  userConfig: O.config,
343
419
  defaultConfig: r
344
420
  }),
345
- customPalette: e.customPalette ? e.customPalette : a[n] || l
421
+ customPalette: e.customPalette ? e.customPalette : o[n] || s
346
422
  };
347
423
  }
348
424
  else t = e;
349
425
  return t;
350
426
  }
351
- Ze(() => O.config, (e) => {
352
- kn.value || (R.value = Bn()), In.value = !R.value.userOptions.showOnChartHover, Dn(), rn.value += 1, an.value += 1, on.value += 1, H.value.showTable = R.value.table.show;
353
- }, { deep: !0 }), Ze(() => O.dataset, (e) => {
354
- Array.isArray(e) && e.length > 0 && (jn.value = !1), Nn();
427
+ et(() => O.config, (e) => {
428
+ Vn.value || (R.value = Qn()), Jn.value = !R.value.userOptions.showOnChartHover, Rn(), on.value += 1, sn.value += 1, cn.value += 1, H.value.showTable = R.value.table.show;
429
+ }, { deep: !0 }), et(() => O.dataset, (e) => {
430
+ Array.isArray(e) && e.length > 0 && (Un.value = !1), Gn();
355
431
  }, { deep: !0 });
356
- let { isPrinting: Vn, isImaging: Hn, generatePdf: Un, generateImage: Wn } = ye({
432
+ let { isPrinting: $n, isImaging: er, generatePdf: tr, generateImage: nr } = Se({
357
433
  elementId: k.value,
358
434
  fileName: R.value.style.chart.title.text || "vue-ui-donut-evolution",
359
435
  options: R.value.userOptions.print
360
- }), Gn = d(() => R.value.userOptions.show && !R.value.style.chart.title.text), Kn = d(() => n(R.value.customPalette)), H = S({ showTable: R.value.table.show });
361
- Ze(R, () => {
436
+ }), rr = u(() => R.value.userOptions.show && !R.value.style.chart.title.text), ir = u(() => he(R.value.customPalette)), H = S({ showTable: R.value.table.show });
437
+ et(R, () => {
362
438
  H.value = { showTable: R.value.table.show };
363
439
  }, { immediate: !0 });
364
- let U = d(() => ({
440
+ let U = u(() => ({
365
441
  top: R.value.style.chart.layout.padding.top,
366
442
  right: R.value.style.chart.layout.padding.right,
367
443
  bottom: R.value.style.chart.layout.padding.bottom,
368
444
  left: R.value.style.chart.layout.padding.left
369
- })), W = d(() => R.value.style.chart.layout.grid.yAxis.position === "right");
370
- function qn() {
445
+ })), W = u(() => R.value.style.chart.layout.grid.yAxis.position === "right");
446
+ function ar() {
371
447
  let e = 0;
372
- sn.value && (e = Array.from(sn.value.querySelectorAll("text")).reduce((e, t) => {
448
+ ln.value && (e = Array.from(ln.value.querySelectorAll("text")).reduce((e, t) => {
373
449
  let n = t.getComputedTextLength();
374
450
  return n > e ? n : e;
375
451
  }, 0));
376
- let t = un.value ? un.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
452
+ let t = fn.value ? fn.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
377
453
  return {
378
454
  left: W.value ? 0 : n,
379
455
  right: W.value ? n : 0,
@@ -382,31 +458,32 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
382
458
  crosshair: 5
383
459
  };
384
460
  }
385
- let Jn = S(0), Yn = Ae((e) => {
386
- Jn.value = e;
461
+ let or = S(0), sr = Pe((e) => {
462
+ or.value = e;
387
463
  }, 100);
388
- Qe((e) => {
389
- let t = cn.value;
464
+ tt((e) => {
465
+ let t = un.value;
390
466
  if (!t) return;
391
467
  let n = new ResizeObserver((e) => {
392
- Yn(e[0].contentRect.height);
468
+ sr(e[0].contentRect.height);
393
469
  });
394
470
  n.observe(t), e(() => n.disconnect());
395
- }), Ke(() => {
396
- Jn.value = 0;
471
+ }), Ye(() => {
472
+ or.value = 0, En.stop(), clearTimeout(Nn.value), F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect(), F.value = null, I.value = null);
397
473
  });
398
- let Xn = d(() => {
474
+ let cr = u(() => {
399
475
  let e = 0;
400
- ln.value && (e = ln.value.getBBox().height);
476
+ dn.value && (e = dn.value.getBBox().height);
401
477
  let t = 0;
402
- return cn.value && (t = Jn.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
403
- }), G = d(() => {
404
- let e = qn(), t = R.value.style.chart.layout.dataLabels.fontSize * 3, n = B.value.width, r = B.value.height, i = U.value.left + e.left, a = n - U.value.right - e.right, o = n - i - U.value.right - e.right, s = r - U.value.top - U.value.bottom - t - Xn.value, c = U.value.top + t;
478
+ return un.value && (t = or.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
479
+ }), G = u(() => {
480
+ yn.value;
481
+ let e = ar(), t = R.value.style.chart.layout.dataLabels.fontSize * 3, n = B.value.width, r = B.value.height, i = U.value.left + e.left, a = n - U.value.right - e.right, o = n - i - U.value.right - e.right, s = r - U.value.top - U.value.bottom - t - cr.value, c = U.value.top + t;
405
482
  return {
406
483
  top: c,
407
484
  left: i,
408
485
  right: a,
409
- bottom: r - U.value.bottom - Xn.value,
486
+ bottom: r - U.value.bottom - cr.value,
410
487
  absoluteHeight: r,
411
488
  absoluteWidth: n,
412
489
  centerX: i + Math.max(10, o) / 2,
@@ -417,47 +494,47 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
417
494
  yAxisLabelWidth: e.yAxisLabelWidth,
418
495
  crosshair: e.crosshair
419
496
  };
420
- }), K = d(() => (An.value.forEach((e, t) => {
421
- [null, void 0].includes(e.name) && oe({
497
+ }), K = u(() => (Hn.value.forEach((e, t) => {
498
+ [null, void 0].includes(e.name) && me({
422
499
  componentName: "VueUiDonutEvolution",
423
500
  type: "datasetSerieAttribute",
424
501
  property: "name",
425
502
  index: t,
426
- debug: En.value
427
- }), [null, void 0].includes(e.values) && oe({
503
+ debug: Ln.value
504
+ }), [null, void 0].includes(e.values) && me({
428
505
  componentName: "VueUiDonutEvolution",
429
506
  type: "datasetSerieAttribute",
430
507
  property: "values",
431
508
  index: t,
432
- debug: En.value
509
+ debug: Ln.value
433
510
  });
434
- }), An.value.map((e, t) => ({
511
+ }), Hn.value.map((e, t) => ({
435
512
  ...e,
436
- values: c(e.values),
437
- color: he(e.color) || Kn.value[t] || l[t] || l[t % l.length],
513
+ values: ee(e.values),
514
+ color: te(e.color) || ir.value[t] || s[t] || s[t % s.length],
438
515
  length: (e.values || []).length,
439
- uid: s()
440
- })))), Zn = d(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
516
+ uid: fe()
517
+ })))), lr = u(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
441
518
  ...e,
442
519
  values: e.values.filter((e, t) => t >= V.value.start && t <= V.value.end)
443
- }))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]), Qn = 0;
444
- Qe(() => {
445
- let e = ++Qn;
520
+ }))), q = u(() => Math.max(...K.value.map((e) => e.length))), J = S([]), ur = 0;
521
+ tt(() => {
522
+ let e = ++ur;
446
523
  (async () => {
447
- let t = await _e({
524
+ let t = await be({
448
525
  values: R.value.style.chart.layout.grid.xAxis.dataLabels.values,
449
526
  maxDatapoints: q.value,
450
527
  formatter: R.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
451
528
  start: V.value.start,
452
529
  end: V.value.end
453
530
  });
454
- e === Qn && (J.value = t);
531
+ e === ur && (J.value = t);
455
532
  })();
456
533
  });
457
- let Y = d(() => G.value.width / (V.value.end - V.value.start)), $n = d(() => {
534
+ let Y = u(() => G.value.width / (V.value.end - V.value.start)), dr = u(() => {
458
535
  let e = [];
459
536
  for (let t = 0; t < V.value.end - V.value.start; t += 1) {
460
- let n = Zn.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = G.value.left + Y.value * t + Y.value / 2;
537
+ let n = lr.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = G.value.left + Y.value * t + Y.value / 2;
461
538
  e.push({
462
539
  index: t,
463
540
  percentages: a,
@@ -467,26 +544,29 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
467
544
  });
468
545
  }
469
546
  return e;
470
- }), er = d(() => {
471
- let e = Math.max(...$n.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 1, t = Math.min(...$n.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), i;
472
- return i = R.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, R.value.style.chart.layout.grid.yAxis.scaleMin), R.value.style.chart.layout.grid.yAxis.autoScale && (i = t, n = e), i === n && (i = n / 2, n *= 1.5), {
547
+ }), fr = u(() => {
548
+ let e = Math.max(...dr.value.map((e) => e.subtotal).filter((e) => ge(e))) ?? 1, t = Math.min(...dr.value.map((e) => e.subtotal).filter((e) => ge(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
549
+ return r = R.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, R.value.style.chart.layout.grid.yAxis.scaleMin), R.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
473
550
  max: n,
474
- min: i
551
+ min: r
475
552
  };
476
- }), X = d(() => {
477
- let e = $n.value.length === 1 ? er.value.max * 2 : er.value.max;
478
- return le(er.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
553
+ }), X = u(() => {
554
+ let e = dr.value.length === 1 ? fr.value.max * 2 : fr.value.max;
555
+ return ie(fr.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
479
556
  });
480
- function tr(e) {
557
+ et(() => X.value.ticks.join("|"), () => {
558
+ Tn();
559
+ }, { flush: "post" });
560
+ function pr(e) {
481
561
  return (e - X.value.min) / (X.value.max - X.value.min);
482
562
  }
483
- let nr = d(() => X.value.ticks.map((e) => ({
484
- y: G.value.bottom - G.value.height * tr(e),
563
+ let mr = u(() => X.value.ticks.map((e) => ({
564
+ y: G.value.bottom - G.value.height * pr(e),
485
565
  value: e
486
- }))), Z = d(() => {
487
- let e = $n.value, t = Math.max(...e.map((e) => e.subtotal));
566
+ }))), Z = u(() => {
567
+ let e = dr.value, t = Math.max(...e.map((e) => e.subtotal));
488
568
  return e.length === 1 && t * 2, e.map((t, n) => {
489
- let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, s = G.value.bottom - G.value.height * tr(t.subtotal), c = Zn.value.map((e) => ({
569
+ let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, s = G.value.bottom - G.value.height * pr(t.subtotal), c = lr.value.map((e) => ({
490
570
  color: e.color,
491
571
  name: e.name,
492
572
  value: e.values[n] ?? 0
@@ -497,14 +577,14 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
497
577
  radius: i,
498
578
  activeRadius: a,
499
579
  hoverRadius: o,
500
- donut: ee({ series: c }, t.x, s, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
501
- donutHover: ee({ series: c }, t.x, s, o, o, 1.99999, 2, 1, 360, 105.25, o / 2),
502
- donutFocus: ee({ series: c }, G.value.centerX, G.value.centerY, G.value.height / 3.6, G.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, G.value.height / 6)
580
+ donut: le({ series: c }, t.x, s, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
581
+ donutHover: le({ series: c }, t.x, s, o, o, 1.99999, 2, 1, 360, 105.25, o / 2),
582
+ donutFocus: le({ series: c }, G.value.centerX, G.value.centerY, G.value.height / 3.6, G.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, G.value.height / 6)
503
583
  };
504
584
  });
505
585
  });
506
- function rr(e, t, n) {
507
- return ue(R.value.style.chart.layout.dataLabels.formatter, e, re({
586
+ function hr(e, t, n) {
587
+ return se(R.value.style.chart.layout.dataLabels.formatter, e, re({
508
588
  p: R.value.style.chart.layout.dataLabels.prefix,
509
589
  v: e,
510
590
  s: R.value.style.chart.layout.dataLabels.suffix,
@@ -514,29 +594,29 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
514
594
  index: n
515
595
  });
516
596
  }
517
- function ir(e, t) {
518
- return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
597
+ function gr(e, t) {
598
+ return isNaN(e.value / ne(t, "value")) ? 0 : (e.value / ne(t, "value") * 100).toFixed(0) + "%";
519
599
  }
520
- function ar(e) {
600
+ function _r(e) {
521
601
  j.value = null, M.value = null, L.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
522
602
  datapoint: e,
523
603
  seriesIndex: e.seriesIndex + V.value.start
524
604
  });
525
605
  }
526
- function or(e) {
606
+ function vr(e) {
527
607
  R.value.events.datapointEnter && R.value.events.datapointEnter({
528
608
  datapoint: e,
529
609
  seriesIndex: e.index + V.value.start
530
610
  }), j.value = e.index, M.value = e, L.value = e.index;
531
611
  }
532
- let sr = S(null);
533
- function cr(e, t) {
612
+ let yr = S(null);
613
+ function br(e, t) {
534
614
  R.value.events.datapointClick && R.value.events.datapointClick({
535
615
  datapoint: e,
536
616
  seriesIndex: e.index + V.value.start
537
- }), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null, $t.value = !0, N.value = e, Dr(e), [null, void 0].includes(t) || (sr.value = t));
617
+ }), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null, tn.value = !0, N.value = e, zr(e), [null, void 0].includes(t) || (yr.value = t));
538
618
  }
539
- let lr = d(() => K.value.map((e, t) => ({
619
+ let xr = u(() => K.value.map((e, t) => ({
540
620
  name: e.name,
541
621
  value: e.values.slice(V.value.start, V.value.end).reduce((e, t) => e + t, 0),
542
622
  shape: "circle",
@@ -545,9 +625,9 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
545
625
  })).sort((e, t) => t.value - e.value).map((e, t) => ({
546
626
  ...e,
547
627
  opacity: A.value.includes(e.uid) ? .5 : 1,
548
- segregate: () => pr(e.uid),
628
+ segregate: () => Tr(e.uid),
549
629
  isSegregated: A.value.includes(e.uid),
550
- display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ? ue(R.value.style.chart.layout.dataLabels.formatter, e.value, re({
630
+ display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ? se(R.value.style.chart.layout.dataLabels.formatter, e.value, re({
551
631
  p: R.value.style.chart.layout.dataLabels.prefix,
552
632
  v: e.value,
553
633
  s: R.value.style.chart.layout.dataLabels.suffix,
@@ -555,12 +635,12 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
555
635
  }), {
556
636
  datapoint: e,
557
637
  seriesIndex: t
558
- }) : ""}${R.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ur.value) ? "-" : re({
559
- v: e.value / ur.value * 100,
638
+ }) : ""}${R.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / Sr.value) ? "-" : re({
639
+ v: e.value / Sr.value * 100,
560
640
  s: "%",
561
641
  r: R.value.style.chart.legend.roundingPercentage
562
642
  })}${R.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
563
- }))), ur = d(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), dr = d(() => ({
643
+ }))), Sr = u(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), Cr = u(() => ({
564
644
  cy: "donut-div-legend",
565
645
  backgroundColor: R.value.style.chart.legend.backgroundColor,
566
646
  color: R.value.style.chart.legend.color,
@@ -568,31 +648,31 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
568
648
  paddingBottom: 12,
569
649
  fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
570
650
  }));
571
- function fr() {
572
- A.value.length ? A.value = [] : lr.value.forEach((e) => {
651
+ function wr() {
652
+ A.value.length ? A.value = [] : xr.value.forEach((e) => {
573
653
  A.value.push(e.uid);
574
- }), wn("selectLegend", Zn.value);
654
+ }), Fn("selectLegend", lr.value);
575
655
  }
576
- function pr(e) {
577
- if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), wn("selectLegend", Zn.value);
656
+ function Tr(e) {
657
+ if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), Fn("selectLegend", lr.value);
578
658
  else {
579
659
  if (A.value.length === K.value.length - 1) return;
580
- A.value.push(e), wn("selectLegend", Zn.value);
660
+ A.value.push(e), Fn("selectLegend", lr.value);
581
661
  }
582
- N.value && cr(Z.value.find((e, t) => t === sr.value));
662
+ N.value && br(Z.value.find((e, t) => t === yr.value));
583
663
  }
584
- function mr(e) {
664
+ function Er(e) {
585
665
  return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
586
666
  }
587
- function hr(e) {
588
- let t = mr(e);
589
- t !== null && A.value.includes(t.uid) && pr(t.uid);
667
+ function Dr(e) {
668
+ let t = Er(e);
669
+ t !== null && A.value.includes(t.uid) && Tr(t.uid);
590
670
  }
591
- function gr(e) {
592
- let t = mr(e);
593
- t !== null && (A.value.includes(t.uid) || pr(t.uid));
671
+ function Or(e) {
672
+ let t = Er(e);
673
+ t !== null && (A.value.includes(t.uid) || Tr(t.uid));
594
674
  }
595
- let Q = d(() => {
675
+ let Q = u(() => {
596
676
  let e = [""].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
597
677
  name: e.name,
598
678
  color: e.color
@@ -607,7 +687,7 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
607
687
  return {
608
688
  head: e,
609
689
  body: t,
610
- bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${rr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
690
+ bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${hr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
611
691
  config: {
612
692
  th: {
613
693
  backgroundColor: R.value.table.th.backgroundColor,
@@ -624,51 +704,51 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
624
704
  colNames: [R.value.table.columnNames.period].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), R.value.table.columnNames.total)
625
705
  };
626
706
  });
627
- function _r() {
707
+ function kr() {
628
708
  return K.value;
629
709
  }
630
- function vr(e = null) {
631
- Ge(() => {
632
- let t = [
710
+ function Ar(e = null) {
711
+ _(() => {
712
+ let n = [
633
713
  [R.value.style.chart.title.text],
634
714
  [R.value.style.chart.title.subtitle.text],
635
715
  [""]
636
- ], n = [...Q.value.head.map((e) => e.name ?? e)], r = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], a = i(t.concat([n]).concat(r));
637
- e ? e(a) : te({
638
- csvContent: a,
716
+ ], i = [...Q.value.head.map((e) => e.name ?? e)], a = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], o = n.concat([i]).concat(a), s = r(o);
717
+ e ? e(s) : t({
718
+ csvContent: s,
639
719
  title: R.value.style.chart.title.text || "vue-ui-donut-evolution"
640
720
  });
641
721
  });
642
722
  }
643
723
  let $ = S(!1);
644
- function yr(e) {
645
- $.value = e, tn.value += 1;
724
+ function jr(e) {
725
+ $.value = e, rn.value += 1;
646
726
  }
647
- function br() {
727
+ function Mr() {
648
728
  H.value.showTable = !H.value.showTable;
649
729
  }
650
- let xr = S(!1);
651
- function Sr() {
652
- xr.value = !xr.value;
730
+ let Nr = S(!1);
731
+ function Pr() {
732
+ Nr.value = !Nr.value;
653
733
  }
654
- function Cr(e) {
734
+ function Fr(e) {
655
735
  return e.proportion * 100 > R.value.style.chart.donuts.hover.hideLabelsUnderValue;
656
736
  }
657
- let wr = S([]), Tr = S({}), Er = S(null);
658
- function Dr(e) {
659
- wr.value = e.donut.map((e) => ({
737
+ let Ir = S([]), Lr = S({}), Rr = S(null);
738
+ function zr(e) {
739
+ Ir.value = e.donut.map((e) => ({
660
740
  name: e.name,
661
741
  values: [e.value],
662
742
  color: e.color
663
- })), Tr.value = ie({
743
+ })), Lr.value = c({
664
744
  ...R.value.style.chart.dialog.donutChart,
665
745
  responsive: !0,
666
746
  theme: R.value.theme
667
- }), Er.value && Er.value.open();
747
+ }), Rr.value && Rr.value.open();
668
748
  }
669
- async function Or({ scale: e = 2 } = {}) {
749
+ async function Br({ scale: e = 2 } = {}) {
670
750
  if (!P.value) return;
671
- let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await De({
751
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await je({
672
752
  domElement: P.value,
673
753
  base64: !0,
674
754
  img: !0,
@@ -683,8 +763,9 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
683
763
  aspectRatio: r
684
764
  };
685
765
  }
686
- Ee({
687
- timeLabelsEls: cn,
766
+ let Vr = u(() => B.value.width), Hr = u(() => B.value.height);
767
+ Ae({
768
+ timeLabelsEls: un,
688
769
  timeLabels: J,
689
770
  slicer: V,
690
771
  configRef: R,
@@ -708,14 +789,14 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
708
789
  "enable"
709
790
  ],
710
791
  isAutoSize: !1,
711
- width: d(() => B.value.width),
712
- height: d(() => B.value.height),
792
+ width: Vr,
793
+ height: Hr,
713
794
  rotation: R.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
714
795
  });
715
- let kr = d(() => {
796
+ let Ur = u(() => {
716
797
  let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
717
798
  return {
718
- component: e ? Jt : Vt,
799
+ component: e ? Zt : Wt,
719
800
  title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
720
801
  props: e ? {
721
802
  backgroundColor: R.value.table.th.backgroundColor,
@@ -743,51 +824,51 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
743
824
  }
744
825
  };
745
826
  });
746
- Ze(() => H.value.showTable, (e) => {
747
- R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
827
+ et(() => H.value.showTable, (e) => {
828
+ R.value.table.show || (e && R.value.table.useDialog && mn.value ? mn.value.open() : "close" in mn.value && mn.value.close());
748
829
  });
749
- function Ar() {
750
- H.value.showTable = !1, fn.value && fn.value.setTableIconState(!1);
830
+ function Wr() {
831
+ H.value.showTable = !1, hn.value && hn.value.setTableIconState(!1);
751
832
  }
752
- let jr = d(() => lr.value.map((e) => ({
833
+ let Gr = u(() => xr.value.map((e) => ({
753
834
  ...e,
754
835
  name: e.display
755
- }))), Mr = d(() => R.value.style.chart.backgroundColor), Nr = d(() => R.value.style.chart.legend), { exportSvg: Pr, getSvg: Fr } = Se({
756
- svg: zn,
757
- title: d(() => R.value.style.chart.title),
758
- legend: Nr,
759
- legendItems: jr,
760
- backgroundColor: Mr
836
+ }))), Kr = u(() => R.value.style.chart.backgroundColor), qr = u(() => R.value.style.chart.legend), Jr = u(() => R.value.style.chart.title), { exportSvg: Yr, getSvg: Xr } = Te({
837
+ svg: Zn,
838
+ title: Jr,
839
+ legend: qr,
840
+ legendItems: Gr,
841
+ backgroundColor: Kr
761
842
  });
762
- async function Ir({ isCb: e }) {
763
- mn.value = !0, await Ge();
843
+ async function Zr({ isCb: e }) {
844
+ _n.value = !0, await _();
764
845
  try {
765
846
  if (e) {
766
- let { blob: e, url: t, text: n, dataUrl: r } = await Fr();
847
+ let { blob: e, url: t, text: n, dataUrl: r } = await Xr();
767
848
  await Promise.resolve(R.value.userOptions.callbacks.svg({
768
849
  blob: e,
769
850
  url: t,
770
851
  text: n,
771
852
  dataUrl: r
772
853
  }));
773
- } else await Promise.resolve(Pr());
854
+ } else await Promise.resolve(Yr());
774
855
  } finally {
775
- mn.value = !1;
856
+ _n.value = !1;
776
857
  }
777
858
  }
778
- function Lr(e) {
859
+ function Qr(e) {
779
860
  if (e?.stage === "start") {
780
- pn.value = !0;
861
+ gn.value = !0;
781
862
  return;
782
863
  }
783
864
  if (e?.stage === "end") {
784
- pn.value = !1;
865
+ gn.value = !1;
785
866
  return;
786
867
  }
787
- Wn();
868
+ nr();
788
869
  }
789
- async function Rr() {
790
- if (wn("copyAlt", {
870
+ async function $r() {
871
+ if (Fn("copyAlt", {
791
872
  config: R.value,
792
873
  dataset: Z.value
793
874
  }), !R.value.userOptions.callbacks.altCopy) {
@@ -799,14 +880,14 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
799
880
  dataset: Z.value
800
881
  }));
801
882
  }
802
- function zr() {
803
- L.value = null, Cn.value = !0;
883
+ function ei() {
884
+ L.value = null, Pn.value = !0;
804
885
  }
805
- function Br() {
806
- L.value = null, j.value = null, M.value = null, Cn.value = !1;
886
+ function ti() {
887
+ L.value = null, j.value = null, M.value = null, Pn.value = !1;
807
888
  }
808
- function Vr(e) {
809
- if (!zn.value || xr.value || document.activeElement !== zn.value || !Z.value.length) return;
889
+ function ni(e) {
890
+ if (!Zn.value || Nr.value || document.activeElement !== Zn.value || !Z.value.length) return;
810
891
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
811
892
  if (!t && !n && !r && !i) return;
812
893
  if (e.preventDefault(), e.stopPropagation(), i) {
@@ -817,49 +898,49 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
817
898
  if (L.value === null) return;
818
899
  let e = Z.value[L.value];
819
900
  if (!e) return;
820
- cr(e, L.value);
901
+ br(e, L.value);
821
902
  return;
822
903
  }
823
904
  let a = L.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o !== null && o >= 0 && o < Z.value.length;
824
905
  s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
825
- let l = Z.value[a];
826
- l && or(l);
906
+ let ee = Z.value[a];
907
+ ee && vr(ee);
827
908
  }
828
- let Hr = d(() => ({
909
+ let ri = u(() => ({
829
910
  headers: Q.value?.colNames ?? [],
830
911
  rows: Q.value?.bodyA11y ?? []
831
912
  }));
832
- return ke({
833
- getData: _r,
834
- getImage: Or,
835
- generatePdf: Un,
836
- generateCsv: vr,
837
- generateImage: Wn,
838
- generateSvg: Ir,
839
- hideSeries: gr,
840
- showSeries: hr,
841
- toggleTable: br,
842
- toggleAnnotator: Sr,
843
- toggleFullscreen: yr,
844
- copyAlt: Rr
845
- }), (e, t) => (x(), m("div", {
913
+ return Ne({
914
+ getData: kr,
915
+ getImage: Br,
916
+ generatePdf: tr,
917
+ generateCsv: Ar,
918
+ generateImage: nr,
919
+ generateSvg: Zr,
920
+ hideSeries: Or,
921
+ showSeries: Dr,
922
+ toggleTable: Mr,
923
+ toggleAnnotator: Pr,
924
+ toggleFullscreen: jr,
925
+ copyAlt: $r
926
+ }), (e, t) => (x(), p("div", {
846
927
  ref_key: "donutEvolutionChart",
847
928
  ref: P,
848
929
  class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
849
930
  style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
850
931
  id: k.value,
851
- onMouseenter: t[5] ||= () => E(Ln)(!0),
852
- onMouseleave: t[6] ||= () => E(Ln)(!1)
932
+ onMouseenter: t[5] ||= () => E(Yn)(!0),
933
+ onMouseleave: t[6] ||= () => E(Yn)(!1)
853
934
  }, [
854
- h("div", {
935
+ m("div", {
855
936
  id: `chart-instructions-${k.value}`,
856
937
  class: "sr-only"
857
- }, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
858
- Hr.value?.rows?.length ? (x(), f(Pe, {
938
+ }, [m("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, it),
939
+ ri.value?.rows?.length ? (x(), d(Re, {
859
940
  key: 0,
860
941
  uid: k.value,
861
- head: Hr.value.headers,
862
- body: Hr.value.rows,
942
+ head: ri.value.headers,
943
+ body: ri.value.rows,
863
944
  notice: R.value.a11y.translations.tableAvailable,
864
945
  caption: R.value.a11y.translations.tableCaption
865
946
  }, null, 8, [
@@ -868,22 +949,22 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
868
949
  "body",
869
950
  "notice",
870
951
  "caption"
871
- ])) : p("", !0),
872
- R.value.userOptions.buttons.annotator ? (x(), f(E(Gt), {
952
+ ])) : f("", !0),
953
+ R.value.userOptions.buttons.annotator ? (x(), d(E(Jt), {
873
954
  key: 1,
874
- svgRef: E(zn),
955
+ svgRef: E(Zn),
875
956
  backgroundColor: R.value.style.chart.backgroundColor,
876
957
  color: R.value.style.chart.color,
877
- active: xr.value,
958
+ active: Nr.value,
878
959
  isCursorPointer: z.value,
879
- onClose: Sr
960
+ onClose: Pr
880
961
  }, {
881
962
  "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
882
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
883
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
884
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
885
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
886
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
963
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(g({ color: t })), void 0, !0)]),
964
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(g({ mode: t })), void 0, !0)]),
965
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(g({ disabled: t })), void 0, !0)]),
966
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(g({ disabled: t })), void 0, !0)]),
967
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(g({ disabled: t })), void 0, !0)]),
887
968
  _: 3
888
969
  }, 8, [
889
970
  "svgRef",
@@ -891,22 +972,22 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
891
972
  "color",
892
973
  "active",
893
974
  "isCursorPointer"
894
- ])) : p("", !0),
895
- Gn.value ? (x(), m("div", {
975
+ ])) : f("", !0),
976
+ rr.value ? (x(), p("div", {
896
977
  key: 2,
897
978
  ref_key: "noTitle",
898
- ref: en,
979
+ ref: nn,
899
980
  class: "vue-data-ui-no-title-space",
900
981
  style: "height:36px; width: 100%;background:transparent"
901
- }, null, 512)) : p("", !0),
902
- R.value.style.chart.title.text ? (x(), m("div", {
982
+ }, null, 512)) : f("", !0),
983
+ R.value.style.chart.title.text ? (x(), p("div", {
903
984
  key: 3,
904
985
  ref_key: "chartTitle",
905
- ref: hn,
986
+ ref: Dn,
906
987
  style: "width:100%;background:transparent;padding-bottom:24px",
907
- onMouseleave: ar
908
- }, [(x(), f(Oe, {
909
- key: `title_${rn.value}`,
988
+ onMouseleave: _r
989
+ }, [(x(), d(Me, {
990
+ key: `title_${on.value}`,
910
991
  config: {
911
992
  title: {
912
993
  cy: "donut-evolution-div-title",
@@ -917,16 +998,16 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
917
998
  ...R.value.style.chart.title.subtitle
918
999
  }
919
1000
  }
920
- }, null, 8, ["config"]))], 544)) : p("", !0),
921
- h("div", { id: `legend-top-${k.value}` }, null, 8, nt),
922
- R.value.userOptions.show && Tn.value && (E(Rn) || E(In)) ? (x(), f(E(Kt), {
1001
+ }, null, 8, ["config"]))], 544)) : f("", !0),
1002
+ m("div", { id: `legend-top-${k.value}` }, null, 8, at),
1003
+ R.value.userOptions.show && In.value && (E(Xn) || E(Jn)) ? (x(), d(E(Yt), {
923
1004
  ref_key: "userOptionsRef",
924
- ref: fn,
925
- key: `user_options_${tn.value}`,
1005
+ ref: hn,
1006
+ key: `user_options_${rn.value}`,
926
1007
  backgroundColor: R.value.style.chart.backgroundColor,
927
1008
  color: R.value.style.chart.color,
928
- isPrinting: E(Vn),
929
- isImaging: E(Hn),
1009
+ isPrinting: E($n),
1010
+ isImaging: E(er),
930
1011
  uid: k.value,
931
1012
  hasPdf: R.value.userOptions.buttons.pdf,
932
1013
  hasImg: R.value.userOptions.buttons.img,
@@ -940,24 +1021,24 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
940
1021
  chartElement: P.value,
941
1022
  position: R.value.userOptions.position,
942
1023
  hasAnnotator: R.value.userOptions.buttons.annotator,
943
- isAnnotation: xr.value,
1024
+ isAnnotation: Nr.value,
944
1025
  callbacks: R.value.userOptions.callbacks,
945
1026
  printScale: R.value.userOptions.print.scale,
946
1027
  tableDialog: R.value.table.useDialog,
947
1028
  isCursorPointer: z.value,
948
- onToggleFullscreen: yr,
949
- onGeneratePdf: E(Un),
950
- onGenerateCsv: vr,
951
- onGenerateImage: Lr,
952
- onGenerateSvg: Ir,
953
- onToggleTable: br,
954
- onToggleAnnotator: Sr,
955
- onCopyAlt: Rr,
956
- style: b({ visibility: E(Rn) ? E(In) ? "visible" : "hidden" : "visible" })
957
- }, Ve({ _: 2 }, [
1029
+ onToggleFullscreen: jr,
1030
+ onGeneratePdf: E(tr),
1031
+ onGenerateCsv: Ar,
1032
+ onGenerateImage: Qr,
1033
+ onGenerateSvg: Zr,
1034
+ onToggleTable: Mr,
1035
+ onToggleAnnotator: Pr,
1036
+ onCopyAlt: $r,
1037
+ style: b({ visibility: E(Xn) ? E(Jn) ? "visible" : "hidden" : "visible" })
1038
+ }, Ge({ _: 2 }, [
958
1039
  e.$slots.menuIcon ? {
959
1040
  name: "menuIcon",
960
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
1041
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(g({
961
1042
  isOpen: t,
962
1043
  color: n
963
1044
  })), void 0, !0)]),
@@ -990,7 +1071,7 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
990
1071
  } : void 0,
991
1072
  e.$slots.optionFullscreen ? {
992
1073
  name: "optionFullscreen",
993
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
1074
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(g({
994
1075
  toggleFullscreen: t,
995
1076
  isFullscreen: n
996
1077
  })), void 0, !0)]),
@@ -998,7 +1079,7 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
998
1079
  } : void 0,
999
1080
  e.$slots.optionAnnotator ? {
1000
1081
  name: "optionAnnotator",
1001
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
1082
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(g({
1002
1083
  toggleAnnotator: t,
1003
1084
  isAnnotator: n
1004
1085
  })), void 0, !0)]),
@@ -1006,7 +1087,7 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1006
1087
  } : void 0,
1007
1088
  e.$slots.optionAltCopy ? {
1008
1089
  name: "optionAltCopy",
1009
- fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1090
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(g({ altCopy: t })), void 0, !0)]),
1010
1091
  key: "8"
1011
1092
  } : void 0,
1012
1093
  e.$slots["custom-menu-before"] ? {
@@ -1044,33 +1125,34 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1044
1125
  "isCursorPointer",
1045
1126
  "onGeneratePdf",
1046
1127
  "style"
1047
- ])) : p("", !0),
1048
- h("div", rt, [(x(), m("svg", {
1128
+ ])) : f("", !0),
1129
+ m("div", ot, [(x(), p("svg", {
1049
1130
  ref_key: "svgRef",
1050
- ref: zn,
1131
+ ref: Zn,
1051
1132
  xmlns: E(pe),
1052
1133
  "aria-describedby": `chart-instructions-${k.value}`,
1053
1134
  class: v({
1054
1135
  "vue-data-ui-fullscreen--on": $.value,
1055
- "vue-data-ui-fulscreen--off": !$.value
1136
+ "vue-data-ui-fulscreen--off": !$.value,
1137
+ "vue-data-ui-no-transition": !E(zn)
1056
1138
  }),
1057
1139
  viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.absoluteHeight}`,
1058
1140
  style: b(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color};`),
1059
1141
  tabindex: "0",
1060
- onFocus: zr,
1061
- onBlur: Br,
1062
- onKeydown: Vr
1142
+ onFocus: ei,
1143
+ onBlur: ti,
1144
+ onKeydown: ni
1063
1145
  }, [
1064
- Ue(E(Wt)),
1065
- e.$slots["chart-background"] ? (x(), m("foreignObject", {
1146
+ qe(E(qt)),
1147
+ e.$slots["chart-background"] ? (x(), p("foreignObject", {
1066
1148
  key: 0,
1067
1149
  x: G.value.left,
1068
1150
  y: G.value.top,
1069
1151
  width: G.value.width,
1070
1152
  height: G.value.height,
1071
1153
  style: { pointerEvents: "none" }
1072
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : p("", !0),
1073
- h("defs", null, [Ue(Me, {
1154
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : f("", !0),
1155
+ m("defs", null, [qe(Ie, {
1074
1156
  t: "linear",
1075
1157
  id: `hover_${k.value}`,
1076
1158
  x1: "0%",
@@ -1079,36 +1161,36 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1079
1161
  y2: "100%",
1080
1162
  stops: [[
1081
1163
  "0%",
1082
- E(ge)(R.value.style.chart.backgroundColor, R.value.style.chart.layout.highlighter.opacity),
1164
+ E(n)(R.value.style.chart.backgroundColor, R.value.style.chart.layout.highlighter.opacity),
1083
1165
  1
1084
1166
  ], [
1085
1167
  "100%",
1086
- E(ge)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
1168
+ E(n)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
1087
1169
  1
1088
1170
  ]]
1089
- }, null, 8, ["id", "stops"]), Ue(Me, {
1171
+ }, null, 8, ["id", "stops"]), qe(Ie, {
1090
1172
  t: "radial",
1091
1173
  id: `focus_${k.value}`,
1092
1174
  stops: [
1093
1175
  [
1094
1176
  "0%",
1095
- E(ge)(E(he)(R.value.style.chart.backgroundColor), 0),
1177
+ E(n)(E(te)(R.value.style.chart.backgroundColor), 0),
1096
1178
  1
1097
1179
  ],
1098
1180
  [
1099
1181
  "77%",
1100
- E(ge)("#FFFFFF", 30),
1182
+ E(n)("#FFFFFF", 30),
1101
1183
  1
1102
1184
  ],
1103
1185
  [
1104
1186
  "100%",
1105
- E(ge)(E(he)(R.value.style.chart.backgroundColor), 0),
1187
+ E(n)(E(te)(R.value.style.chart.backgroundColor), 0),
1106
1188
  1
1107
1189
  ]
1108
1190
  ]
1109
1191
  }, null, 8, ["id", "stops"])]),
1110
- R.value.style.chart.layout.grid.show ? (x(), m("g", ot, [
1111
- h("line", {
1192
+ R.value.style.chart.layout.grid.show ? (x(), p("g", lt, [
1193
+ m("line", {
1112
1194
  x1: W.value ? G.value.right : G.value.left,
1113
1195
  x2: W.value ? G.value.right : G.value.left,
1114
1196
  y1: G.value.top,
@@ -1116,8 +1198,8 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1116
1198
  stroke: R.value.style.chart.layout.grid.stroke,
1117
1199
  "stroke-width": R.value.style.chart.layout.grid.strokeWidth,
1118
1200
  "stroke-linecap": "round"
1119
- }, null, 8, st),
1120
- h("line", {
1201
+ }, null, 8, ut),
1202
+ m("line", {
1121
1203
  x1: G.value.left,
1122
1204
  x2: G.value.right,
1123
1205
  y1: G.value.bottom,
@@ -1125,8 +1207,8 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1125
1207
  stroke: R.value.style.chart.layout.grid.stroke,
1126
1208
  "stroke-width": R.value.style.chart.layout.grid.strokeWidth,
1127
1209
  "stroke-linecap": "round"
1128
- }, null, 8, ct),
1129
- R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", lt, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("line", {
1210
+ }, null, 8, dt),
1211
+ R.value.style.chart.layout.grid.showVerticalLines ? (x(), p("g", ft, [(x(!0), p(l, null, C(V.value.end - V.value.start, (e, t) => (x(), p("line", {
1130
1212
  x1: G.value.left + (t + 1) * Y.value,
1131
1213
  x2: G.value.left + (t + 1) * Y.value,
1132
1214
  y1: G.value.top,
@@ -1134,51 +1216,51 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1134
1216
  stroke: R.value.style.chart.layout.grid.stroke,
1135
1217
  "stroke-width": R.value.style.chart.layout.grid.strokeWidth,
1136
1218
  "stroke-linecap": "round"
1137
- }, null, 8, ut))), 256))])) : p("", !0)
1138
- ])) : p("", !0),
1139
- h("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
1219
+ }, null, 8, pt))), 256))])) : f("", !0)
1220
+ ])) : f("", !0),
1221
+ m("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (x(), p("text", {
1140
1222
  key: 0,
1141
1223
  ref_key: "yAxisLabel",
1142
- ref: un,
1224
+ ref: fn,
1143
1225
  "font-size": R.value.style.chart.layout.grid.axis.fontSize,
1144
1226
  fill: R.value.style.chart.layout.grid.axis.color,
1145
1227
  transform: `translate(${W.value ? G.value.absoluteWidth - R.value.style.chart.layout.grid.axis.fontSize / 2 - R.value.style.chart.layout.grid.axis.yLabelOffsetX : R.value.style.chart.layout.grid.axis.fontSize}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
1146
1228
  "text-anchor": "middle",
1147
1229
  style: { transition: "none" }
1148
- }, T(R.value.style.chart.layout.grid.axis.yLabel), 9, dt)) : p("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
1230
+ }, T(R.value.style.chart.layout.grid.axis.yLabel), 9, mt)) : f("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (x(), p("text", {
1149
1231
  key: 1,
1150
1232
  ref_key: "xAxisLabel",
1151
- ref: ln,
1233
+ ref: dn,
1152
1234
  "text-anchor": "middle",
1153
1235
  x: G.value.absoluteWidth / 2,
1154
1236
  y: G.value.absoluteHeight - 3,
1155
1237
  "font-size": R.value.style.chart.layout.grid.axis.fontSize,
1156
1238
  fill: R.value.style.chart.layout.grid.axis.color
1157
- }, T(R.value.style.chart.layout.grid.axis.xLabel), 9, ft)) : p("", !0)]),
1158
- R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
1239
+ }, T(R.value.style.chart.layout.grid.axis.xLabel), 9, ht)) : f("", !0)]),
1240
+ R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), p("g", {
1159
1241
  key: 2,
1160
1242
  ref_key: "scaleLabels",
1161
- ref: sn,
1243
+ ref: ln,
1162
1244
  class: v({
1163
1245
  "donut-opacity": !0,
1164
1246
  "donut-behind": j.value !== null
1165
1247
  })
1166
- }, [(x(!0), m(u, null, C(nr.value, (e, t) => (x(), m("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (x(), m("path", {
1248
+ }, [(x(!0), p(l, null, C(mr.value, (e, t) => (x(), p("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (x(), p("path", {
1167
1249
  key: 0,
1168
- class: v({ "vue-data-ui-datalabel": E(Qt) }),
1250
+ class: v({ "vue-data-ui-transition": E(zn) }),
1169
1251
  d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 5 : G.value.left - 5},${e.y}`,
1170
1252
  stroke: R.value.style.chart.layout.grid.stroke,
1171
1253
  "stroke-width": R.value.style.chart.layout.grid.strokeWidth,
1172
1254
  "stroke-linecap": "round"
1173
- }, null, 10, pt)) : p("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), m("text", {
1255
+ }, null, 10, gt)) : f("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), p("text", {
1174
1256
  key: 1,
1175
- class: v({ "vue-data-ui-datalabel": E(Qt) }),
1257
+ class: v({ "vue-data-ui-transition": E(zn) }),
1176
1258
  transform: `translate(${W.value ? G.value.right - R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : G.value.left + R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7}, ${e.y + R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3})`,
1177
1259
  "font-size": R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
1178
1260
  "text-anchor": W.value ? "start" : "end",
1179
1261
  fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
1180
1262
  "font-weight": R.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1181
- }, T(E(me)(e.value) ? E(ue)(R.value.style.chart.layout.dataLabels.formatter, e.value, E(re)({
1263
+ }, T(E(_e)(e.value) ? E(se)(R.value.style.chart.layout.dataLabels.formatter, e.value, E(re)({
1182
1264
  p: R.value.style.chart.layout.dataLabels.prefix,
1183
1265
  v: e.value,
1184
1266
  s: R.value.style.chart.layout.dataLabels.suffix,
@@ -1186,35 +1268,35 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1186
1268
  }), {
1187
1269
  datapoint: e,
1188
1270
  seriesIndex: t
1189
- }) : ""), 11, mt)) : p("", !0)]))), 128))], 2)) : p("", !0),
1190
- R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
1271
+ }) : ""), 11, _t)) : f("", !0)]))), 128))], 2)) : f("", !0),
1272
+ R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), p("g", {
1191
1273
  key: 3,
1192
1274
  ref_key: "timeLabelsEls",
1193
- ref: cn,
1275
+ ref: un,
1194
1276
  class: v({ "donut-opacity": !0 })
1195
- }, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (x(), m("g", ht, [String(J.value[t].text).includes("\n") ? (x(), m("text", {
1277
+ }, [(x(!0), p(l, null, C(V.value.end - V.value.start, (e, t) => (x(), p("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (x(), p("g", vt, [String(J.value[t].text).includes("\n") ? (x(), p("text", {
1196
1278
  key: 1,
1197
1279
  class: "vue-data-ui-time-label",
1198
1280
  "text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1199
1281
  "font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1200
1282
  fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
1201
1283
  transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
1202
- innerHTML: E(ne)({
1284
+ innerHTML: E(i)({
1203
1285
  content: String(J.value[t].text),
1204
1286
  fontSize: R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1205
1287
  fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
1206
1288
  x: 0,
1207
1289
  y: 0
1208
1290
  })
1209
- }, null, 8, _t)) : (x(), m("text", {
1291
+ }, null, 8, bt)) : (x(), p("text", {
1210
1292
  key: 0,
1211
1293
  class: "vue-data-ui-time-label",
1212
1294
  "text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1213
1295
  "font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1214
1296
  fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
1215
1297
  transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
1216
- }, T(J.value[t].text || ""), 9, gt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
1217
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", null, [R.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
1298
+ }, T(J.value[t].text || ""), 9, yt))])) : f("", !0)]))), 256))], 512)) : f("", !0),
1299
+ (x(!0), p(l, null, C(Z.value, (e, t) => (x(), p("g", null, [R.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (x(), p("line", {
1218
1300
  key: 0,
1219
1301
  class: v({
1220
1302
  "donut-opacity": !0,
@@ -1228,20 +1310,20 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1228
1310
  "stroke-width": R.value.style.chart.layout.line.strokeWidth,
1229
1311
  "stroke-linecap": "round",
1230
1312
  "stroke-linejoin": "round"
1231
- }, null, 10, vt)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", yt, [e.subtotal ? (x(), m("circle", {
1313
+ }, null, 10, xt)) : f("", !0), e.subtotal === null ? f("", !0) : (x(), p("g", St, [e.subtotal ? (x(), p("circle", {
1232
1314
  key: 0,
1233
1315
  cx: e.x,
1234
1316
  cy: e.y,
1235
1317
  r: e.activeRadius,
1236
1318
  fill: R.value.style.chart.backgroundColor
1237
- }, null, 8, bt)) : p("", !0)]))]))), 256)),
1238
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1319
+ }, null, 8, Ct)) : f("", !0)]))]))), 256)),
1320
+ (x(!0), p(l, null, C(Z.value, (e, t) => (x(), p("g", { class: v({
1239
1321
  "donut-opacity": !0,
1240
1322
  "donut-behind": t !== j.value && j.value !== null
1241
- }) }, [e.subtotal ? (x(), m("g", xt, [j.value !== null && j.value === t ? (x(), m("g", St, [
1242
- (x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Cr(t) ? (x(), m("path", {
1323
+ }) }, [e.subtotal ? (x(), p("g", wt, [j.value !== null && j.value === t ? (x(), p("g", Tt, [
1324
+ (x(!0), p(l, null, C(e.donutHover, (t) => (x(), p("g", null, [Fr(t) ? (x(), p("path", {
1243
1325
  key: 0,
1244
- d: E(de)(t, {
1326
+ d: E(oe)(t, {
1245
1327
  x: t.center.endX,
1246
1328
  y: t.center.endY
1247
1329
  }, 12, 12, {
@@ -1253,48 +1335,48 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1253
1335
  "stroke-linecap": "round",
1254
1336
  "stroke-linejoin": "round",
1255
1337
  fill: "none"
1256
- }, null, 8, Ct)) : p("", !0)]))), 256)),
1257
- (x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Cr(t) ? (x(), m("text", {
1338
+ }, null, 8, Et)) : f("", !0)]))), 256)),
1339
+ (x(!0), p(l, null, C(e.donutHover, (t, n) => (x(), p("g", null, [Fr(t) ? (x(), p("text", {
1258
1340
  key: 0,
1259
1341
  "data-cy-hover-label": "",
1260
1342
  "text-anchor": E(ae)(t, !0, 0).anchor,
1261
1343
  x: E(ae)(t, !0, 9).x,
1262
- y: E(se)(t, 14, 10),
1344
+ y: E(ue)(t, 14, 10),
1263
1345
  fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
1264
1346
  "font-size": 8,
1265
1347
  "font-weight": "bold"
1266
- }, T(t.name) + ": " + T(ir(t, e.donut)) + " (" + T(t.value === null ? "-" : rr(t.value, t, n)) + ") ", 9, wt)) : p("", !0)]))), 256)),
1267
- h("g", null, [h("circle", {
1348
+ }, T(t.name) + ": " + T(gr(t, e.donut)) + " (" + T(t.value === null ? "-" : hr(t.value, t, n)) + ") ", 9, Dt)) : f("", !0)]))), 256)),
1349
+ m("g", null, [m("circle", {
1268
1350
  cx: e.x,
1269
1351
  cy: e.y,
1270
1352
  r: e.hoverRadius,
1271
1353
  fill: R.value.style.chart.backgroundColor
1272
- }, null, 8, Tt)])
1273
- ])) : p("", !0)])) : p("", !0)], 2))), 256)),
1274
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1354
+ }, null, 8, Ot)])
1355
+ ])) : f("", !0)])) : f("", !0)], 2))), 256)),
1356
+ (x(!0), p(l, null, C(Z.value, (e, t) => (x(), p("g", { class: v({
1275
1357
  "donut-opacity": !0,
1276
1358
  "donut-behind": t !== j.value && j.value !== null
1277
- }) }, [e.subtotal === null ? p("", !0) : (x(), m("g", Et, [e.subtotal === 0 ? (x(), m("circle", {
1359
+ }) }, [e.subtotal === null ? f("", !0) : (x(), p("g", kt, [e.subtotal === 0 ? (x(), p("circle", {
1278
1360
  key: 0,
1279
1361
  cx: e.x,
1280
1362
  cy: e.y,
1281
1363
  r: 3,
1282
1364
  fill: R.value.style.chart.color
1283
- }, null, 8, Dt)) : j.value !== null && j.value === t ? (x(), m("g", Ot, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
1365
+ }, null, 8, At)) : j.value !== null && j.value === t ? (x(), p("g", jt, [(x(!0), p(l, null, C(e.donutHover, (e, t) => (x(), p("path", {
1284
1366
  d: e.arcSlice,
1285
1367
  fill: `${e.color}`,
1286
1368
  "stroke-width": 1,
1287
1369
  stroke: R.value.style.chart.backgroundColor
1288
- }, null, 8, kt))), 256))])) : (x(), m("g", At, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
1370
+ }, null, 8, Mt))), 256))])) : (x(), p("g", Nt, [(x(!0), p(l, null, C(e.donut, (e, t) => (x(), p("path", {
1289
1371
  d: e.arcSlice,
1290
1372
  fill: `${e.color}`,
1291
1373
  "stroke-width": .5,
1292
1374
  stroke: R.value.style.chart.backgroundColor
1293
- }, null, 8, jt))), 256))]))]))], 2))), 256)),
1294
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1375
+ }, null, 8, Pt))), 256))]))]))], 2))), 256)),
1376
+ (x(!0), p(l, null, C(Z.value, (e, t) => (x(), p("g", { class: v({
1295
1377
  "donut-opacity": !0,
1296
- "donut-behind": t !== j.value && j.value !== null || $t.value && t !== N.value.index
1297
- }) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
1378
+ "donut-behind": t !== j.value && j.value !== null || tn.value && t !== N.value.index
1379
+ }) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (x(), p("text", {
1298
1380
  key: 0,
1299
1381
  "text-anchor": "middle",
1300
1382
  x: e.x,
@@ -1302,47 +1384,47 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1302
1384
  "font-size": R.value.style.chart.layout.dataLabels.fontSize,
1303
1385
  "font-weight": "bold",
1304
1386
  fill: R.value.style.chart.layout.dataLabels.color
1305
- }, T(rr(e.subtotal, e, t)), 9, Mt)) : p("", !0)], 2))), 256)),
1306
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
1387
+ }, T(hr(e.subtotal, e, t)), 9, Ft)) : f("", !0)], 2))), 256)),
1388
+ (x(!0), p(l, null, C(Z.value, (e, t) => (x(), p("rect", {
1307
1389
  x: G.value.left + t * Y.value,
1308
1390
  y: G.value.top,
1309
1391
  width: Y.value,
1310
1392
  height: G.value.height,
1311
- fill: [j.value, sr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
1312
- class: v({ "donut-hover": z.value && e.subtotal && [j.value, sr.value].includes(e.index) }),
1393
+ fill: [j.value, yr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
1394
+ class: v({ "donut-hover": z.value && e.subtotal && [j.value, yr.value].includes(e.index) }),
1313
1395
  style: { pointerEvents: "none" }
1314
- }, null, 10, Nt))), 256)),
1315
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
1396
+ }, null, 10, It))), 256)),
1397
+ (x(!0), p(l, null, C(Z.value, (e, t) => (x(), p("rect", {
1316
1398
  "data-cy-trap": "",
1317
1399
  x: G.value.left + t * Y.value,
1318
1400
  y: G.value.top,
1319
1401
  width: Y.value,
1320
1402
  height: G.value.height,
1321
1403
  fill: "transparent",
1322
- onMouseenter: (t) => or(e),
1323
- onMouseleave: (t) => ar(e),
1324
- onClick: (n) => cr(e, t),
1404
+ onMouseenter: (t) => vr(e),
1405
+ onMouseleave: (t) => _r(e),
1406
+ onClick: (n) => br(e, t),
1325
1407
  class: v({ "donut-hover": z.value && j.value === e.index && e.subtotal })
1326
- }, null, 42, Pt))), 256)),
1408
+ }, null, 42, Lt))), 256)),
1327
1409
  w(e.$slots, "svg", { svg: {
1328
1410
  ...G.value,
1329
- isPrintingImg: E(Vn) || E(Hn) || pn.value,
1330
- isPrintingSvg: mn.value
1411
+ isPrintingImg: E($n) || E(er) || gn.value,
1412
+ isPrintingSvg: _n.value
1331
1413
  } }, void 0, !0)
1332
- ], 46, it)), e.$slots.hint ? (x(), m("div", Ft, [w(e.$slots, "hint", y(_({
1414
+ ], 46, st)), e.$slots.hint ? (x(), p("div", Rt, [w(e.$slots, "hint", y(g({
1333
1415
  hint: R.value.a11y.translations.keyboardNavigation,
1334
- isVisible: Cn.value
1335
- })), void 0, !0)])) : p("", !0)]),
1336
- e.$slots.watermark ? (x(), m("div", It, [w(e.$slots, "watermark", y(_({ isPrinting: E(Vn) || E(Hn) || pn.value || mn.value })), void 0, !0)])) : p("", !0),
1337
- h("div", {
1416
+ isVisible: Pn.value
1417
+ })), void 0, !0)])) : f("", !0)]),
1418
+ e.$slots.watermark ? (x(), p("div", zt, [w(e.$slots, "watermark", y(g({ isPrinting: E($n) || E(er) || gn.value || _n.value })), void 0, !0)])) : f("", !0),
1419
+ m("div", {
1338
1420
  ref_key: "chartSlicer",
1339
- ref: yn,
1421
+ ref: jn,
1340
1422
  style: b(`width:100%;background:${R.value.style.chart.backgroundColor}`),
1341
1423
  "data-dom-to-png-ignore": ""
1342
- }, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(ze, {
1424
+ }, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), d(Ue, {
1343
1425
  ref_key: "slicerComponent",
1344
- ref: vn,
1345
- key: `slicer_${nn.value}`,
1426
+ ref: An,
1427
+ key: `slicer_${an.value}`,
1346
1428
  background: R.value.style.chart.zoom.color,
1347
1429
  borderColor: R.value.style.chart.backgroundColor,
1348
1430
  fontSize: R.value.style.chart.zoom.fontSize,
@@ -1368,9 +1450,11 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1368
1450
  focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
1369
1451
  isCursorPointer: z.value,
1370
1452
  maxWidth: R.value.style.chart.zoom.maxWidth,
1371
- onReset: Nn
1453
+ minimapLeftInsetRatio: G.value.absoluteWidth > 0 && R.value.style.chart.zoom.autoFit ? G.value.left / G.value.absoluteWidth : null,
1454
+ minimapRightInsetRatio: G.value.absoluteWidth > 0 && R.value.style.chart.zoom.autoFit ? (G.value.absoluteWidth - G.value.right) / G.value.absoluteWidth : null,
1455
+ onReset: Gn
1372
1456
  }, {
1373
- "reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
1457
+ "reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(g({ reset: t })), void 0, !0)]),
1374
1458
  _: 3
1375
1459
  }, 8, [
1376
1460
  "background",
@@ -1394,64 +1478,66 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1394
1478
  "focusOnDrag",
1395
1479
  "focusRangeRatio",
1396
1480
  "isCursorPointer",
1397
- "maxWidth"
1398
- ])) : p("", !0)], 4),
1399
- h("div", { id: `legend-bottom-${k.value}` }, null, 8, Lt),
1400
- dn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Be, {
1481
+ "maxWidth",
1482
+ "minimapLeftInsetRatio",
1483
+ "minimapRightInsetRatio"
1484
+ ])) : f("", !0)], 4),
1485
+ m("div", { id: `legend-bottom-${k.value}` }, null, 8, Bt),
1486
+ pn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (x(), d(We, {
1401
1487
  key: 6,
1402
1488
  to: R.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1403
- }, [h("div", {
1489
+ }, [m("div", {
1404
1490
  ref_key: "chartLegend",
1405
- ref: gn
1406
- }, [w(e.$slots, "legend", { legend: lr.value }, () => [R.value.style.chart.legend.show ? (x(), f(Le, {
1407
- key: `legend_${on.value}`,
1408
- legendSet: lr.value,
1409
- config: dr.value,
1410
- onClickMarker: t[2] ||= ({ legend: e }) => pr(e.uid)
1491
+ ref: On
1492
+ }, [w(e.$slots, "legend", { legend: xr.value }, () => [R.value.style.chart.legend.show ? (x(), d(Ve, {
1493
+ key: `legend_${cn.value}`,
1494
+ legendSet: xr.value,
1495
+ config: Cr.value,
1496
+ onClickMarker: t[2] ||= ({ legend: e }) => Tr(e.uid)
1411
1497
  }, {
1412
- item: D(({ legend: e, index: t }) => [h("div", {
1413
- onClick: (t) => pr(e.uid),
1498
+ item: D(({ legend: e, index: t }) => [m("div", {
1499
+ onClick: (t) => Tr(e.uid),
1414
1500
  style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
1415
- }, T(e.display), 13, Rt)]),
1416
- legendToggle: D(() => [lr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(kn) ? (x(), f(Ne, {
1501
+ }, T(e.display), 13, Vt)]),
1502
+ legendToggle: D(() => [xr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(Vn) ? (x(), d(Le, {
1417
1503
  key: 0,
1418
1504
  backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
1419
1505
  color: R.value.style.chart.legend.selectAllToggle.color,
1420
1506
  fontSize: R.value.style.chart.legend.fontSize,
1421
1507
  checked: A.value.length > 0,
1422
- onToggle: fr
1508
+ onToggle: wr
1423
1509
  }, null, 8, [
1424
1510
  "backgroundColor",
1425
1511
  "color",
1426
1512
  "fontSize",
1427
1513
  "checked"
1428
- ])) : p("", !0)]),
1514
+ ])) : f("", !0)]),
1429
1515
  _: 1
1430
- }, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1431
- e.$slots.source ? (x(), m("div", {
1516
+ }, 8, ["legendSet", "config"])) : f("", !0)], !0)], 512)], 8, ["to"])) : f("", !0),
1517
+ e.$slots.source ? (x(), p("div", {
1432
1518
  key: 7,
1433
1519
  ref_key: "source",
1434
- ref: _n,
1520
+ ref: kn,
1435
1521
  dir: "auto"
1436
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1437
- Tn.value && R.value.userOptions.buttons.table ? (x(), f(Je(kr.value.component), We({ key: 8 }, kr.value.props, {
1522
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1523
+ In.value && R.value.userOptions.buttons.table ? (x(), d(Ze(Ur.value.component), Je({ key: 8 }, Ur.value.props, {
1438
1524
  ref_key: "tableUnit",
1439
- ref: F,
1440
- onClose: Ar
1441
- }), Ve({
1442
- content: D(() => [(x(), f(E(Ut), {
1443
- key: `table_${an.value}`,
1525
+ ref: mn,
1526
+ onClose: Wr
1527
+ }), Ge({
1528
+ content: D(() => [(x(), d(E(Kt), {
1529
+ key: `table_${sn.value}`,
1444
1530
  colNames: Q.value.colNames,
1445
1531
  head: Q.value.head,
1446
1532
  body: Q.value.body,
1447
1533
  config: Q.value.config,
1448
- title: R.value.table.useDialog ? "" : kr.value.title,
1534
+ title: R.value.table.useDialog ? "" : Ur.value.title,
1449
1535
  withCloseButton: !R.value.table.useDialog,
1450
1536
  isCursorPointer: z.value,
1451
- onClose: Ar
1537
+ onClose: Wr
1452
1538
  }, {
1453
- th: D(({ th: e }) => [He(T(e.name ?? e), 1)]),
1454
- td: D(({ td: e }) => [e.value === null ? (x(), m("span", zt, "-")) : (x(), m("b", Bt, T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(R.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(R.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
1539
+ th: D(({ th: e }) => [Ke(T(e.name ?? e), 1)]),
1540
+ td: D(({ td: e }) => [e.value === null ? (x(), p("span", Ht, "-")) : (x(), p("b", Ut, T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(R.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.suffix), 1)), m("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(R.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
1455
1541
  _: 1
1456
1542
  }, 8, [
1457
1543
  "colNames",
@@ -1465,27 +1551,27 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1465
1551
  _: 2
1466
1552
  }, [R.value.table.useDialog ? {
1467
1553
  name: "title",
1468
- fn: D(() => [He(T(kr.value.title), 1)]),
1554
+ fn: D(() => [Ke(T(Ur.value.title), 1)]),
1469
1555
  key: "0"
1470
1556
  } : void 0, R.value.table.useDialog ? {
1471
1557
  name: "actions",
1472
- fn: D(() => [h("button", {
1558
+ fn: D(() => [m("button", {
1473
1559
  tabindex: "0",
1474
1560
  class: "vue-ui-user-options-button",
1475
- onClick: t[3] ||= (e) => vr(R.value.userOptions.callbacks.csv),
1561
+ onClick: t[3] ||= (e) => Ar(R.value.userOptions.callbacks.csv),
1476
1562
  style: b({ cursor: z.value ? "cursor" : "default" })
1477
- }, [Ue(E(Ht), {
1563
+ }, [qe(E(Gt), {
1478
1564
  name: "fileCsv",
1479
- stroke: kr.value.props.color
1565
+ stroke: Ur.value.props.color
1480
1566
  }, null, 8, ["stroke"])], 4)]),
1481
1567
  key: "1"
1482
- } : void 0]), 1040)) : p("", !0),
1483
- R.value.style.chart.dialog.show ? (x(), f(E(Jt), {
1568
+ } : void 0]), 1040)) : f("", !0),
1569
+ R.value.style.chart.dialog.show ? (x(), d(E(Zt), {
1484
1570
  key: 9,
1485
1571
  ref_key: "dialog",
1486
- ref: Er,
1572
+ ref: Rr,
1487
1573
  onClose: t[4] ||= (e) => {
1488
- N.value = null, $t.value = !1, M.value = null, j.value = null, sr.value = null;
1574
+ N.value = null, tn.value = !1, M.value = null, j.value = null, yr.value = null;
1489
1575
  },
1490
1576
  backgroundColor: R.value.style.chart.dialog.backgroundColor,
1491
1577
  color: R.value.style.chart.dialog.color,
@@ -1494,12 +1580,12 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1494
1580
  isFullscreen: $.value,
1495
1581
  fullscreenParent: P.value
1496
1582
  }, {
1497
- title: D(() => [He(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
1498
- content: D(() => [N.value ? (x(), f(E(qt), {
1583
+ title: D(() => [Ke(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
1584
+ content: D(() => [N.value ? (x(), d(E(Xt), {
1499
1585
  key: 0,
1500
- config: Tr.value,
1501
- dataset: wr.value
1502
- }, null, 8, ["config", "dataset"])) : p("", !0)]),
1586
+ config: Lr.value,
1587
+ dataset: Ir.value
1588
+ }, null, 8, ["config", "dataset"])) : f("", !0)]),
1503
1589
  _: 1
1504
1590
  }, 8, [
1505
1591
  "backgroundColor",
@@ -1508,10 +1594,10 @@ var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt
1508
1594
  "headerColor",
1509
1595
  "isFullscreen",
1510
1596
  "fullscreenParent"
1511
- ])) : p("", !0),
1512
- E(kn) ? (x(), f(xe, { key: 10 })) : p("", !0)
1513
- ], 46, et));
1597
+ ])) : f("", !0),
1598
+ E(Vn) ? (x(), d(we, { key: 10 })) : f("", !0)
1599
+ ], 46, rt));
1514
1600
  }
1515
- }, [["__scopeId", "data-v-344b2cc9"]]);
1601
+ }, [["__scopeId", "data-v-7d5348e7"]]);
1516
1602
  //#endregion
1517
- export { $e as n, Vt as t };
1603
+ export { nt as n, Wt as t };