vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,1521 @@
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-CFm_J26b.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-BH-xle1O.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-BY6DNN3i.js";
9
+ import { t as we } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as Te } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
+ import { t as Ee } from "./img-Bikk1dGb.js";
12
+ import { n as De } from "./Title-BuPs74IB.js";
13
+ import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { l as ke, t as Ae } from "./useResponsive-ZtArZtUf.js";
15
+ import { t as je } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as Me } from "./BaseLegendToggle-DsWphmIb.js";
17
+ import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
18
+ import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Ie } from "./Legend-C0xAnJdO.js";
21
+ import { t as Le } from "./vue_ui_donut_evolution-D1yAAIHr.js";
22
+ import { t as Re } from "./Slicer-C6qNUmZ4.js";
23
+ import { Fragment as u, Teleport as ze, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ue, nextTick as We, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ge, onMounted as Ke, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as T, toRefs as Ye, unref as E, watch as Xe, watchEffect as Ze, withCtx as D } from "vue";
24
+ //#region src/components/vue-ui-donut-evolution.vue
25
+ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt = ["id"], nt = { style: { position: "relative" } }, rt = [
26
+ "xmlns",
27
+ "aria-describedby",
28
+ "viewBox"
29
+ ], it = [
30
+ "x",
31
+ "y",
32
+ "width",
33
+ "height"
34
+ ], at = { key: 1 }, ot = [
35
+ "x1",
36
+ "x2",
37
+ "y1",
38
+ "y2",
39
+ "stroke",
40
+ "stroke-width"
41
+ ], st = [
42
+ "x1",
43
+ "x2",
44
+ "y1",
45
+ "y2",
46
+ "stroke",
47
+ "stroke-width"
48
+ ], ct = { key: 0 }, lt = [
49
+ "x1",
50
+ "x2",
51
+ "y1",
52
+ "y2",
53
+ "stroke",
54
+ "stroke-width"
55
+ ], ut = [
56
+ "font-size",
57
+ "fill",
58
+ "transform"
59
+ ], dt = [
60
+ "x",
61
+ "y",
62
+ "font-size",
63
+ "fill"
64
+ ], ft = [
65
+ "x1",
66
+ "x2",
67
+ "y1",
68
+ "y2",
69
+ "stroke",
70
+ "stroke-width"
71
+ ], pt = [
72
+ "x",
73
+ "y",
74
+ "font-size",
75
+ "text-anchor",
76
+ "fill",
77
+ "font-weight"
78
+ ], mt = { key: 0 }, ht = [
79
+ "text-anchor",
80
+ "font-size",
81
+ "fill",
82
+ "transform"
83
+ ], gt = [
84
+ "text-anchor",
85
+ "font-size",
86
+ "fill",
87
+ "transform",
88
+ "innerHTML"
89
+ ], _t = [
90
+ "x1",
91
+ "y1",
92
+ "x2",
93
+ "y2",
94
+ "stroke",
95
+ "stroke-width"
96
+ ], vt = { key: 1 }, yt = [
97
+ "cx",
98
+ "cy",
99
+ "r",
100
+ "fill"
101
+ ], bt = { key: 0 }, xt = { key: 0 }, St = ["d", "stroke"], Ct = [
102
+ "text-anchor",
103
+ "x",
104
+ "y",
105
+ "fill"
106
+ ], wt = [
107
+ "cx",
108
+ "cy",
109
+ "r",
110
+ "fill"
111
+ ], Tt = { key: 0 }, Et = [
112
+ "cx",
113
+ "cy",
114
+ "fill"
115
+ ], Dt = { key: 1 }, Ot = [
116
+ "d",
117
+ "fill",
118
+ "stroke"
119
+ ], kt = { key: 2 }, At = [
120
+ "d",
121
+ "fill",
122
+ "stroke"
123
+ ], jt = [
124
+ "x",
125
+ "y",
126
+ "font-size",
127
+ "fill"
128
+ ], Mt = [
129
+ "x",
130
+ "y",
131
+ "width",
132
+ "height",
133
+ "fill"
134
+ ], Nt = [
135
+ "x",
136
+ "y",
137
+ "width",
138
+ "height",
139
+ "onMouseenter",
140
+ "onMouseleave",
141
+ "onClick"
142
+ ], Pt = {
143
+ key: 0,
144
+ style: {
145
+ position: "absolute",
146
+ top: "100%",
147
+ left: "0",
148
+ width: "100%"
149
+ },
150
+ "data-dom-to-png-ignore": "",
151
+ "aria-hidden": "true"
152
+ }, Ft = {
153
+ key: 5,
154
+ class: "vue-data-ui-watermark"
155
+ }, It = ["id"], Lt = ["onClick"], Rt = { key: 0 }, zt = { key: 1 }, Bt = /*#__PURE__*/ Oe({
156
+ __name: "vue-ui-donut-evolution",
157
+ props: {
158
+ config: {
159
+ type: Object,
160
+ default() {
161
+ return {};
162
+ }
163
+ },
164
+ dataset: {
165
+ type: Array,
166
+ default() {
167
+ return [];
168
+ }
169
+ }
170
+ },
171
+ emits: ["selectLegend", "copyAlt"],
172
+ setup(e, { expose: Oe, emit: Qe }) {
173
+ let Bt = g(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), Vt = g(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Ht = g(() => import("./DataTable-DzPEVvSo.js")), Ut = g(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), Wt = g(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Gt = g(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), Kt = g(() => import("./vue-ui-donut-jXRV-3ON.js").then((e) => e.n)), qt = g(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_donut_evolution: Jt } = ve(), { isThemeValid: Yt, warnInvalidTheme: Xt } = we(), O = e, k = S(s()), A = S([]), j = S(null), M = S(null), Zt = S(!1), N = S(null), P = S(null), Qt = S(null), $t = S(0), en = S(0), tn = S(0), nn = S(0), rn = S(0), an = S(null), on = S(null), sn = S(null), cn = S(null), ln = S(!1), F = S(null), un = S(null), dn = S(!1), fn = S(!1), pn = S(null), mn = S(null), hn = S(null), gn = S(null), _n = S(null), vn = S(!1), I = Je(null), yn = Je(null), bn = S(null), L = S(null), xn = S(!1), Sn = Qe, Cn = d(() => !!O.dataset && O.dataset.length);
174
+ Ke(() => {
175
+ ln.value = !0, Tn();
176
+ });
177
+ let wn = d(() => !!R.value.debug);
178
+ function Tn() {
179
+ if (t(O.dataset) ? (oe({
180
+ componentName: "VueUiDonutEvolution",
181
+ type: "dataset",
182
+ debug: wn.value
183
+ }), kn.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
184
+ ce({
185
+ datasetObject: e,
186
+ requiredAttributes: ["name", "values"]
187
+ }).forEach((e) => {
188
+ oe({
189
+ componentName: "VueUiDonutEvolution",
190
+ type: "datasetSerieAttribute",
191
+ property: e,
192
+ index: t,
193
+ debug: wn.value
194
+ }), kn.value = !0;
195
+ });
196
+ }), t(O.dataset) || (kn.value = R.value.loading), setTimeout(() => {
197
+ vn.value = !0;
198
+ }, 10), Mn(), R.value.responsive) {
199
+ let e = ke(() => {
200
+ vn.value = !1;
201
+ let { width: e, height: t } = Ae({
202
+ chart: P.value,
203
+ title: R.value.style.chart.title.text ? pn.value : null,
204
+ legend: R.value.style.chart.legend.show ? mn.value : null,
205
+ slicer: R.value.style.chart.zoom.show && An.value > 1 ? _n.value : null,
206
+ source: hn.value
207
+ });
208
+ requestAnimationFrame(() => {
209
+ B.value.width = e, B.value.height = t - 12, clearTimeout(bn.value), bn.value = setTimeout(() => {
210
+ vn.value = !0;
211
+ }, 10);
212
+ });
213
+ });
214
+ I.value && (yn.value && I.value.unobserve(yn.value), I.value.disconnect()), I.value = new ResizeObserver(e), yn.value = P.value.parentNode, I.value.observe(yn.value);
215
+ }
216
+ }
217
+ let R = S(Rn()), z = d(() => R.value.userOptions.useCursorPointer), En = d(() => fe({
218
+ defaultConfig: {
219
+ useCssAnimation: !1,
220
+ table: { show: !1 },
221
+ userOptions: { show: !1 },
222
+ style: { chart: {
223
+ backgroundColor: "#99999930",
224
+ layout: {
225
+ dataLabels: { show: !1 },
226
+ grid: {
227
+ stroke: "#6A6A6A",
228
+ axis: {
229
+ yLabel: "",
230
+ xLabel: ""
231
+ },
232
+ yAxis: {
233
+ scaleMin: null,
234
+ scaleMax: null,
235
+ autoScale: !1,
236
+ dataLabels: { show: !1 }
237
+ },
238
+ xAxis: { dataLabels: { show: !1 } }
239
+ },
240
+ line: { stroke: "#CACACA60" }
241
+ },
242
+ legend: {
243
+ backgroundColor: "transparent",
244
+ showValue: !1,
245
+ showPercentage: !1
246
+ },
247
+ zoom: {
248
+ show: !1,
249
+ startIndex: null,
250
+ endIndex: null
251
+ }
252
+ } }
253
+ },
254
+ userConfig: R.value.skeletonConfig ?? {}
255
+ })), { loading: Dn, FINAL_DATASET: On, manualLoading: kn } = be({
256
+ ...Ye(O),
257
+ FINAL_CONFIG: R,
258
+ prepareConfig: Rn,
259
+ callback: () => {
260
+ Promise.resolve().then(async () => {
261
+ await Mn();
262
+ });
263
+ },
264
+ skeletonDataset: O.config?.skeletonDataset ?? [
265
+ {
266
+ name: "",
267
+ values: [
268
+ 1,
269
+ 2,
270
+ 3,
271
+ 5,
272
+ 8,
273
+ 13
274
+ ],
275
+ color: "#AAAAAA"
276
+ },
277
+ {
278
+ name: "",
279
+ values: [
280
+ 1,
281
+ 2,
282
+ 3,
283
+ 5,
284
+ 8,
285
+ 13
286
+ ],
287
+ color: "#BABABA"
288
+ },
289
+ {
290
+ name: "",
291
+ values: [
292
+ 1,
293
+ 2,
294
+ 3,
295
+ 5,
296
+ 8,
297
+ 13
298
+ ],
299
+ color: "#CACACA"
300
+ }
301
+ ],
302
+ skeletonConfig: fe({
303
+ defaultConfig: R.value,
304
+ userConfig: En.value
305
+ })
306
+ }), B = S({
307
+ width: R.value.style.chart.layout.width,
308
+ height: R.value.style.chart.layout.height
309
+ }), An = d(() => Math.max(...On.value.map((e) => e.values.length))), V = S({
310
+ start: 0,
311
+ end: An.value
312
+ });
313
+ function jn() {
314
+ Mn();
315
+ }
316
+ async function Mn() {
317
+ await We(), await We();
318
+ let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = gn.value;
319
+ V.value = {
320
+ start: 0,
321
+ max: q.value
322
+ }, (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(Nn(t + 1))) : (V.value = {
323
+ start: 0,
324
+ end: q.value
325
+ }, en.value += 1);
326
+ }
327
+ function Nn(e) {
328
+ let t = q.value;
329
+ 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;
330
+ }
331
+ let { userOptionsVisible: Pn, setUserOptionsVisibility: Fn, keepUserOptionState: In } = Pe({ config: R.value }), { svgRef: Ln } = Fe({ config: R.value.style.chart.title });
332
+ function Rn() {
333
+ let e = Ce({
334
+ userConfig: O.config,
335
+ defaultConfig: Jt
336
+ }), t = {}, n = e.theme;
337
+ if (n) if (!Yt.value(e)) Xt(e), t = e;
338
+ else {
339
+ let r = Ce({
340
+ userConfig: Le[n] || O.config,
341
+ defaultConfig: e
342
+ });
343
+ t = {
344
+ ...Ce({
345
+ userConfig: O.config,
346
+ defaultConfig: r
347
+ }),
348
+ customPalette: e.customPalette ? e.customPalette : a[n] || l
349
+ };
350
+ }
351
+ else t = e;
352
+ return t;
353
+ }
354
+ Xe(() => O.config, (e) => {
355
+ Dn.value || (R.value = Rn()), Pn.value = !R.value.userOptions.showOnChartHover, Tn(), tn.value += 1, nn.value += 1, rn.value += 1, H.value.showTable = R.value.table.show;
356
+ }, { deep: !0 }), Xe(() => O.dataset, (e) => {
357
+ Array.isArray(e) && e.length > 0 && (kn.value = !1), jn();
358
+ }, { deep: !0 });
359
+ let { isPrinting: zn, isImaging: Bn, generatePdf: Vn, generateImage: Hn } = ye({
360
+ elementId: k.value,
361
+ fileName: R.value.style.chart.title.text || "vue-ui-donut-evolution",
362
+ options: R.value.userOptions.print
363
+ }), Un = d(() => R.value.userOptions.show && !R.value.style.chart.title.text), Wn = d(() => n(R.value.customPalette)), H = S({ showTable: R.value.table.show });
364
+ Xe(R, () => {
365
+ H.value = { showTable: R.value.table.show };
366
+ }, { immediate: !0 });
367
+ let U = d(() => ({
368
+ top: R.value.style.chart.layout.padding.top,
369
+ right: R.value.style.chart.layout.padding.right,
370
+ bottom: R.value.style.chart.layout.padding.bottom,
371
+ left: R.value.style.chart.layout.padding.left
372
+ })), W = d(() => R.value.style.chart.layout.grid.yAxis.position === "right");
373
+ function Gn() {
374
+ let e = 0;
375
+ an.value && (e = Array.from(an.value.querySelectorAll("text")).reduce((e, t) => {
376
+ let n = t.getComputedTextLength();
377
+ return n > e ? n : e;
378
+ }, 0));
379
+ let t = cn.value ? cn.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
380
+ return {
381
+ left: W.value ? 0 : n,
382
+ right: W.value ? n : 0,
383
+ scaleLabelsWidth: e,
384
+ yAxisLabelWidth: t,
385
+ crosshair: 5
386
+ };
387
+ }
388
+ let Kn = S(0), qn = ke((e) => {
389
+ Kn.value = e;
390
+ }, 100);
391
+ Ze((e) => {
392
+ let t = on.value;
393
+ if (!t) return;
394
+ let n = new ResizeObserver((e) => {
395
+ qn(e[0].contentRect.height);
396
+ });
397
+ n.observe(t), e(() => n.disconnect());
398
+ }), Ge(() => {
399
+ Kn.value = 0;
400
+ });
401
+ let Jn = d(() => {
402
+ let e = 0;
403
+ sn.value && (e = sn.value.getBBox().height);
404
+ let t = 0;
405
+ return on.value && (t = Kn.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
406
+ }), G = d(() => {
407
+ let e = Gn(), 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 - Jn.value, c = U.value.top + t;
408
+ return {
409
+ top: c,
410
+ left: i,
411
+ right: a,
412
+ bottom: r - U.value.bottom - Jn.value,
413
+ absoluteHeight: r,
414
+ absoluteWidth: n,
415
+ centerX: i + Math.max(10, o) / 2,
416
+ centerY: c + Math.max(10, s) / 2,
417
+ width: Math.max(10, o),
418
+ height: Math.max(10, s),
419
+ scaleLabelsWidth: e.scaleLabelsWidth,
420
+ yAxisLabelWidth: e.yAxisLabelWidth,
421
+ crosshair: e.crosshair
422
+ };
423
+ }), K = d(() => (On.value.forEach((e, t) => {
424
+ [null, void 0].includes(e.name) && oe({
425
+ componentName: "VueUiDonutEvolution",
426
+ type: "datasetSerieAttribute",
427
+ property: "name",
428
+ index: t,
429
+ debug: wn.value
430
+ }), [null, void 0].includes(e.values) && oe({
431
+ componentName: "VueUiDonutEvolution",
432
+ type: "datasetSerieAttribute",
433
+ property: "values",
434
+ index: t,
435
+ debug: wn.value
436
+ });
437
+ }), On.value.map((e, t) => ({
438
+ ...e,
439
+ values: c(e.values),
440
+ color: he(e.color) || Wn.value[t] || l[t] || l[t % l.length],
441
+ length: (e.values || []).length,
442
+ uid: s()
443
+ })))), Yn = d(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
444
+ ...e,
445
+ values: e.values.filter((e, t) => t >= V.value.start && t <= V.value.end)
446
+ }))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]), Xn = 0;
447
+ Ze(() => {
448
+ let e = ++Xn;
449
+ (async () => {
450
+ let t = await _e({
451
+ values: R.value.style.chart.layout.grid.xAxis.dataLabels.values,
452
+ maxDatapoints: q.value,
453
+ formatter: R.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
454
+ start: V.value.start,
455
+ end: V.value.end
456
+ });
457
+ e === Xn && (J.value = t);
458
+ })();
459
+ });
460
+ let Y = d(() => G.value.width / (V.value.end - V.value.start)), Zn = d(() => {
461
+ let e = [];
462
+ for (let t = 0; t < V.value.end - V.value.start; t += 1) {
463
+ let n = Yn.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;
464
+ e.push({
465
+ index: t,
466
+ percentages: a,
467
+ subtotal: r || i < 0 ? null : i,
468
+ values: n,
469
+ x: o
470
+ });
471
+ }
472
+ return e;
473
+ }), Qn = d(() => {
474
+ let e = Math.max(...Zn.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 1, t = Math.min(...Zn.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), i;
475
+ 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), {
476
+ max: n,
477
+ min: i
478
+ };
479
+ }), X = d(() => {
480
+ let e = Zn.value.length === 1 ? Qn.value.max * 2 : Qn.value.max;
481
+ return le(Qn.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
482
+ });
483
+ function $n(e) {
484
+ return (e - X.value.min) / (X.value.max - X.value.min);
485
+ }
486
+ let er = d(() => X.value.ticks.map((e) => ({
487
+ y: G.value.bottom - G.value.height * $n(e),
488
+ value: e
489
+ }))), Z = d(() => {
490
+ let e = Zn.value, t = Math.max(...e.map((e) => e.subtotal));
491
+ return e.length === 1 && t * 2, e.map((t, n) => {
492
+ 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 * $n(t.subtotal), c = Yn.value.map((e) => ({
493
+ color: e.color,
494
+ name: e.name,
495
+ value: e.values[n] ?? 0
496
+ })).toSorted((e, t) => t.value - e.value);
497
+ return {
498
+ ...t,
499
+ y: s,
500
+ radius: i,
501
+ activeRadius: a,
502
+ hoverRadius: o,
503
+ donut: ee({ series: c }, t.x, s, i, i, 1.99999, 2, 1, 360, 105.25, i / 2),
504
+ donutHover: ee({ series: c }, t.x, s, o, o, 1.99999, 2, 1, 360, 105.25, o / 2),
505
+ 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)
506
+ };
507
+ });
508
+ });
509
+ function tr(e, t, n) {
510
+ return ue(R.value.style.chart.layout.dataLabels.formatter, e, re({
511
+ p: R.value.style.chart.layout.dataLabels.prefix,
512
+ v: e,
513
+ s: R.value.style.chart.layout.dataLabels.suffix,
514
+ r: R.value.style.chart.layout.dataLabels.rounding
515
+ }), {
516
+ datapoint: t,
517
+ index: n
518
+ });
519
+ }
520
+ function nr(e, t) {
521
+ return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
522
+ }
523
+ function rr(e) {
524
+ j.value = null, M.value = null, L.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
525
+ datapoint: e,
526
+ seriesIndex: e.seriesIndex + V.value.start
527
+ });
528
+ }
529
+ function ir(e) {
530
+ R.value.events.datapointEnter && R.value.events.datapointEnter({
531
+ datapoint: e,
532
+ seriesIndex: e.index + V.value.start
533
+ }), j.value = e.index, M.value = e, L.value = e.index;
534
+ }
535
+ let ar = S(null);
536
+ function or(e, t) {
537
+ R.value.events.datapointClick && R.value.events.datapointClick({
538
+ datapoint: e,
539
+ seriesIndex: e.index + V.value.start
540
+ }), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null, Zt.value = !0, N.value = e, Tr(e), [null, void 0].includes(t) || (ar.value = t));
541
+ }
542
+ let sr = d(() => K.value.map((e, t) => ({
543
+ name: e.name,
544
+ value: e.values.slice(V.value.start, V.value.end).reduce((e, t) => e + t, 0),
545
+ shape: "circle",
546
+ uid: e.uid,
547
+ color: e.color
548
+ })).sort((e, t) => t.value - e.value).map((e, t) => ({
549
+ ...e,
550
+ opacity: A.value.includes(e.uid) ? .5 : 1,
551
+ segregate: () => dr(e.uid),
552
+ isSegregated: A.value.includes(e.uid),
553
+ 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({
554
+ p: R.value.style.chart.layout.dataLabels.prefix,
555
+ v: e.value,
556
+ s: R.value.style.chart.layout.dataLabels.suffix,
557
+ r: R.value.style.chart.legend.roundingValue
558
+ }), {
559
+ datapoint: e,
560
+ seriesIndex: t
561
+ }) : ""}${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 / cr.value) ? "-" : re({
562
+ v: e.value / cr.value * 100,
563
+ s: "%",
564
+ r: R.value.style.chart.legend.roundingPercentage
565
+ })}${R.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
566
+ }))), cr = d(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), lr = d(() => ({
567
+ cy: "donut-div-legend",
568
+ backgroundColor: R.value.style.chart.legend.backgroundColor,
569
+ color: R.value.style.chart.legend.color,
570
+ fontSize: R.value.style.chart.legend.fontSize,
571
+ paddingBottom: 12,
572
+ fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
573
+ }));
574
+ function ur() {
575
+ A.value.length ? A.value = [] : sr.value.forEach((e) => {
576
+ A.value.push(e.uid);
577
+ }), Sn("selectLegend", Yn.value);
578
+ }
579
+ function dr(e) {
580
+ if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), Sn("selectLegend", Yn.value);
581
+ else {
582
+ if (A.value.length === K.value.length - 1) return;
583
+ A.value.push(e), Sn("selectLegend", Yn.value);
584
+ }
585
+ N.value && or(Z.value.find((e, t) => t === ar.value));
586
+ }
587
+ function fr(e) {
588
+ 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);
589
+ }
590
+ function pr(e) {
591
+ let t = fr(e);
592
+ t !== null && A.value.includes(t.uid) && dr(t.uid);
593
+ }
594
+ function mr(e) {
595
+ let t = fr(e);
596
+ t !== null && (A.value.includes(t.uid) || dr(t.uid));
597
+ }
598
+ let Q = d(() => {
599
+ let e = [""].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
600
+ name: e.name,
601
+ color: e.color
602
+ })), ["Σ"]), t = [];
603
+ for (let e = 0; e < q.value; e += 1) {
604
+ let n = K.value.filter((e) => !A.value.includes(e.uid)).map((t) => t.values[e] ?? 0).reduce((e, t) => e + t, 0);
605
+ t.push([J.value[e] ? J.value[e].text : "-"].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((t) => ({
606
+ value: t.values[e] ?? 0,
607
+ percentage: t.values[e] ? t.values[e] / n * 100 : 0
608
+ })), [`${R.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(R.value.table.td.roundingValue))}${R.value.style.chart.layout.dataLabels.suffix}`]));
609
+ }
610
+ return {
611
+ head: e,
612
+ body: t,
613
+ bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${tr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
614
+ config: {
615
+ th: {
616
+ backgroundColor: R.value.table.th.backgroundColor,
617
+ color: R.value.table.th.color,
618
+ outline: R.value.table.th.outline
619
+ },
620
+ td: {
621
+ backgroundColor: R.value.table.td.backgroundColor,
622
+ color: R.value.table.td.color,
623
+ outline: R.value.table.td.outline
624
+ },
625
+ breakpoint: R.value.table.responsiveBreakpoint
626
+ },
627
+ 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)
628
+ };
629
+ });
630
+ function hr() {
631
+ return K.value;
632
+ }
633
+ function gr(e = null) {
634
+ We(() => {
635
+ let t = [
636
+ [R.value.style.chart.title.text],
637
+ [R.value.style.chart.title.subtitle.text],
638
+ [""]
639
+ ], 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));
640
+ e ? e(a) : te({
641
+ csvContent: a,
642
+ title: R.value.style.chart.title.text || "vue-ui-donut-evolution"
643
+ });
644
+ });
645
+ }
646
+ let $ = S(!1);
647
+ function _r(e) {
648
+ $.value = e, $t.value += 1;
649
+ }
650
+ function vr() {
651
+ H.value.showTable = !H.value.showTable;
652
+ }
653
+ let yr = S(!1);
654
+ function br() {
655
+ yr.value = !yr.value;
656
+ }
657
+ function xr(e) {
658
+ return e.proportion * 100 > R.value.style.chart.donuts.hover.hideLabelsUnderValue;
659
+ }
660
+ let Sr = S([]), Cr = S({}), wr = S(null);
661
+ function Tr(e) {
662
+ Sr.value = e.donut.map((e) => ({
663
+ name: e.name,
664
+ values: [e.value],
665
+ color: e.color
666
+ })), Cr.value = ie({
667
+ ...R.value.style.chart.dialog.donutChart,
668
+ responsive: !0,
669
+ theme: R.value.theme
670
+ }), wr.value && wr.value.open();
671
+ }
672
+ async function Er({ scale: e = 2 } = {}) {
673
+ if (!P.value) return;
674
+ let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ee({
675
+ domElement: P.value,
676
+ base64: !0,
677
+ img: !0,
678
+ scale: e
679
+ });
680
+ return {
681
+ imageUri: i,
682
+ base64: a,
683
+ title: R.value.style.chart.title.text,
684
+ width: t,
685
+ height: n,
686
+ aspectRatio: r
687
+ };
688
+ }
689
+ Te({
690
+ timeLabelsEls: on,
691
+ timeLabels: J,
692
+ slicer: V,
693
+ configRef: R,
694
+ rotationPath: [
695
+ "style",
696
+ "chart",
697
+ "layout",
698
+ "grid",
699
+ "xAxis",
700
+ "dataLabels",
701
+ "rotation"
702
+ ],
703
+ autoRotatePath: [
704
+ "style",
705
+ "chart",
706
+ "layout",
707
+ "grid",
708
+ "xAxis",
709
+ "dataLabels",
710
+ "autoRotate",
711
+ "enable"
712
+ ],
713
+ isAutoSize: !1,
714
+ width: d(() => B.value.width),
715
+ height: d(() => B.value.height),
716
+ rotation: R.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
717
+ });
718
+ let Dr = d(() => {
719
+ let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
720
+ return {
721
+ component: e ? qt : Bt,
722
+ title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
723
+ props: e ? {
724
+ backgroundColor: R.value.table.th.backgroundColor,
725
+ color: R.value.table.th.color,
726
+ headerColor: R.value.table.th.color,
727
+ headerBg: R.value.table.th.backgroundColor,
728
+ isFullscreen: $.value,
729
+ fullscreenParent: P.value,
730
+ forcedWidth: Math.min(800, window.innerWidth * .8),
731
+ isCursorPointer: z.value
732
+ } : {
733
+ hideDetails: !0,
734
+ config: {
735
+ open: t,
736
+ maxHeight: 1e4,
737
+ body: {
738
+ backgroundColor: R.value.style.chart.backgroundColor,
739
+ color: R.value.style.chart.color
740
+ },
741
+ head: {
742
+ backgroundColor: R.value.style.chart.backgroundColor,
743
+ color: R.value.style.chart.color
744
+ }
745
+ }
746
+ }
747
+ };
748
+ });
749
+ Xe(() => H.value.showTable, (e) => {
750
+ R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
751
+ });
752
+ function Or() {
753
+ H.value.showTable = !1, un.value && un.value.setTableIconState(!1);
754
+ }
755
+ let kr = d(() => sr.value.map((e) => ({
756
+ ...e,
757
+ name: e.display
758
+ }))), Ar = d(() => R.value.style.chart.backgroundColor), jr = d(() => R.value.style.chart.legend), { exportSvg: Mr, getSvg: Nr } = Se({
759
+ svg: Ln,
760
+ title: d(() => R.value.style.chart.title),
761
+ legend: jr,
762
+ legendItems: kr,
763
+ backgroundColor: Ar
764
+ });
765
+ async function Pr({ isCb: e }) {
766
+ fn.value = !0, await We();
767
+ try {
768
+ if (e) {
769
+ let { blob: e, url: t, text: n, dataUrl: r } = await Nr();
770
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
771
+ blob: e,
772
+ url: t,
773
+ text: n,
774
+ dataUrl: r
775
+ }));
776
+ } else await Promise.resolve(Mr());
777
+ } finally {
778
+ fn.value = !1;
779
+ }
780
+ }
781
+ function Fr(e) {
782
+ if (e?.stage === "start") {
783
+ dn.value = !0;
784
+ return;
785
+ }
786
+ if (e?.stage === "end") {
787
+ dn.value = !1;
788
+ return;
789
+ }
790
+ Hn();
791
+ }
792
+ async function Ir() {
793
+ if (Sn("copyAlt", {
794
+ config: R.value,
795
+ dataset: Z.value
796
+ }), !R.value.userOptions.callbacks.altCopy) {
797
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
798
+ return;
799
+ }
800
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
801
+ config: R.value,
802
+ dataset: Z.value
803
+ }));
804
+ }
805
+ function Lr() {
806
+ L.value = null, xn.value = !0;
807
+ }
808
+ function Rr() {
809
+ L.value = null, j.value = null, M.value = null, xn.value = !1;
810
+ }
811
+ function zr(e) {
812
+ if (!Ln.value || yr.value || document.activeElement !== Ln.value || !Z.value.length) return;
813
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
814
+ if (!t && !n && !r && !i) return;
815
+ if (e.preventDefault(), e.stopPropagation(), i) {
816
+ L.value = null, j.value = null, M.value = null;
817
+ return;
818
+ }
819
+ if (r) {
820
+ if (L.value === null) return;
821
+ let e = Z.value[L.value];
822
+ if (!e) return;
823
+ or(e, L.value);
824
+ return;
825
+ }
826
+ 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;
827
+ 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;
828
+ let l = Z.value[a];
829
+ l && ir(l);
830
+ }
831
+ let Br = d(() => ({
832
+ headers: Q.value?.colNames ?? [],
833
+ rows: Q.value?.bodyA11y ?? []
834
+ }));
835
+ return Oe({
836
+ getData: hr,
837
+ getImage: Er,
838
+ generatePdf: Vn,
839
+ generateCsv: gr,
840
+ generateImage: Hn,
841
+ generateSvg: Pr,
842
+ hideSeries: mr,
843
+ showSeries: pr,
844
+ toggleTable: vr,
845
+ toggleAnnotator: br,
846
+ toggleFullscreen: _r,
847
+ copyAlt: Ir
848
+ }), (e, t) => (x(), m("div", {
849
+ ref_key: "donutEvolutionChart",
850
+ ref: P,
851
+ class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
852
+ style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
853
+ id: k.value,
854
+ onMouseenter: t[5] ||= () => E(Fn)(!0),
855
+ onMouseleave: t[6] ||= () => E(Fn)(!1)
856
+ }, [
857
+ h("div", {
858
+ id: `chart-instructions-${k.value}`,
859
+ class: "sr-only"
860
+ }, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, et),
861
+ Br.value?.rows?.length ? (x(), f(Ne, {
862
+ key: 0,
863
+ uid: k.value,
864
+ head: Br.value.headers,
865
+ body: Br.value.rows,
866
+ notice: R.value.a11y.translations.tableAvailable,
867
+ caption: R.value.a11y.translations.tableCaption
868
+ }, null, 8, [
869
+ "uid",
870
+ "head",
871
+ "body",
872
+ "notice",
873
+ "caption"
874
+ ])) : p("", !0),
875
+ R.value.userOptions.buttons.annotator ? (x(), f(E(Wt), {
876
+ key: 1,
877
+ svgRef: E(Ln),
878
+ backgroundColor: R.value.style.chart.backgroundColor,
879
+ color: R.value.style.chart.color,
880
+ active: yr.value,
881
+ isCursorPointer: z.value,
882
+ onClose: br
883
+ }, {
884
+ "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
885
+ "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
886
+ "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
887
+ "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
888
+ "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
889
+ "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
890
+ _: 3
891
+ }, 8, [
892
+ "svgRef",
893
+ "backgroundColor",
894
+ "color",
895
+ "active",
896
+ "isCursorPointer"
897
+ ])) : p("", !0),
898
+ Un.value ? (x(), m("div", {
899
+ key: 2,
900
+ ref_key: "noTitle",
901
+ ref: Qt,
902
+ class: "vue-data-ui-no-title-space",
903
+ style: "height:36px; width: 100%;background:transparent"
904
+ }, null, 512)) : p("", !0),
905
+ R.value.style.chart.title.text ? (x(), m("div", {
906
+ key: 3,
907
+ ref_key: "chartTitle",
908
+ ref: pn,
909
+ style: "width:100%;background:transparent;padding-bottom:24px",
910
+ onMouseleave: rr
911
+ }, [(x(), f(De, {
912
+ key: `title_${tn.value}`,
913
+ config: {
914
+ title: {
915
+ cy: "donut-evolution-div-title",
916
+ ...R.value.style.chart.title
917
+ },
918
+ subtitle: {
919
+ cy: "donut-evolution-div-subtitle",
920
+ ...R.value.style.chart.title.subtitle
921
+ }
922
+ }
923
+ }, null, 8, ["config"]))], 544)) : p("", !0),
924
+ h("div", { id: `legend-top-${k.value}` }, null, 8, tt),
925
+ R.value.userOptions.show && Cn.value && (E(In) || E(Pn)) ? (x(), f(E(Gt), {
926
+ ref_key: "userOptionsRef",
927
+ ref: un,
928
+ key: `user_options_${$t.value}`,
929
+ backgroundColor: R.value.style.chart.backgroundColor,
930
+ color: R.value.style.chart.color,
931
+ isPrinting: E(zn),
932
+ isImaging: E(Bn),
933
+ uid: k.value,
934
+ hasPdf: R.value.userOptions.buttons.pdf,
935
+ hasImg: R.value.userOptions.buttons.img,
936
+ hasSvg: R.value.userOptions.buttons.svg,
937
+ hasXls: R.value.userOptions.buttons.csv,
938
+ hasTable: R.value.userOptions.buttons.table,
939
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
940
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
941
+ isFullscreen: $.value,
942
+ titles: { ...R.value.userOptions.buttonTitles },
943
+ chartElement: P.value,
944
+ position: R.value.userOptions.position,
945
+ hasAnnotator: R.value.userOptions.buttons.annotator,
946
+ isAnnotation: yr.value,
947
+ callbacks: R.value.userOptions.callbacks,
948
+ printScale: R.value.userOptions.print.scale,
949
+ tableDialog: R.value.table.useDialog,
950
+ isCursorPointer: z.value,
951
+ onToggleFullscreen: _r,
952
+ onGeneratePdf: E(Vn),
953
+ onGenerateCsv: gr,
954
+ onGenerateImage: Fr,
955
+ onGenerateSvg: Pr,
956
+ onToggleTable: vr,
957
+ onToggleAnnotator: br,
958
+ onCopyAlt: Ir,
959
+ style: b({ visibility: E(In) ? E(Pn) ? "visible" : "hidden" : "visible" })
960
+ }, Be({ _: 2 }, [
961
+ e.$slots.menuIcon ? {
962
+ name: "menuIcon",
963
+ fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
964
+ isOpen: t,
965
+ color: n
966
+ })), void 0, !0)]),
967
+ key: "0"
968
+ } : void 0,
969
+ e.$slots.optionPdf ? {
970
+ name: "optionPdf",
971
+ fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
972
+ key: "1"
973
+ } : void 0,
974
+ e.$slots.optionCsv ? {
975
+ name: "optionCsv",
976
+ fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
977
+ key: "2"
978
+ } : void 0,
979
+ e.$slots.optionImg ? {
980
+ name: "optionImg",
981
+ fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
982
+ key: "3"
983
+ } : void 0,
984
+ e.$slots.optionSvg ? {
985
+ name: "optionSvg",
986
+ fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
987
+ key: "4"
988
+ } : void 0,
989
+ e.$slots.optionTable ? {
990
+ name: "optionTable",
991
+ fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
992
+ key: "5"
993
+ } : void 0,
994
+ e.$slots.optionFullscreen ? {
995
+ name: "optionFullscreen",
996
+ fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
997
+ toggleFullscreen: t,
998
+ isFullscreen: n
999
+ })), void 0, !0)]),
1000
+ key: "6"
1001
+ } : void 0,
1002
+ e.$slots.optionAnnotator ? {
1003
+ name: "optionAnnotator",
1004
+ fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
1005
+ toggleAnnotator: t,
1006
+ isAnnotator: n
1007
+ })), void 0, !0)]),
1008
+ key: "7"
1009
+ } : void 0,
1010
+ e.$slots.optionAltCopy ? {
1011
+ name: "optionAltCopy",
1012
+ fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1013
+ key: "8"
1014
+ } : void 0,
1015
+ e.$slots["custom-menu-before"] ? {
1016
+ name: "custom-menu-before",
1017
+ fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1018
+ key: "9"
1019
+ } : void 0,
1020
+ e.$slots["custom-menu-after"] ? {
1021
+ name: "custom-menu-after",
1022
+ fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1023
+ key: "10"
1024
+ } : void 0
1025
+ ]), 1032, [
1026
+ "backgroundColor",
1027
+ "color",
1028
+ "isPrinting",
1029
+ "isImaging",
1030
+ "uid",
1031
+ "hasPdf",
1032
+ "hasImg",
1033
+ "hasSvg",
1034
+ "hasXls",
1035
+ "hasTable",
1036
+ "hasFullscreen",
1037
+ "hasAltCopy",
1038
+ "isFullscreen",
1039
+ "titles",
1040
+ "chartElement",
1041
+ "position",
1042
+ "hasAnnotator",
1043
+ "isAnnotation",
1044
+ "callbacks",
1045
+ "printScale",
1046
+ "tableDialog",
1047
+ "isCursorPointer",
1048
+ "onGeneratePdf",
1049
+ "style"
1050
+ ])) : p("", !0),
1051
+ h("div", nt, [(x(), m("svg", {
1052
+ ref_key: "svgRef",
1053
+ ref: Ln,
1054
+ xmlns: E(pe),
1055
+ "aria-describedby": `chart-instructions-${k.value}`,
1056
+ class: v({
1057
+ "vue-data-ui-fullscreen--on": $.value,
1058
+ "vue-data-ui-fulscreen--off": !$.value
1059
+ }),
1060
+ viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.absoluteHeight}`,
1061
+ style: b(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color};`),
1062
+ tabindex: "0",
1063
+ onFocus: Lr,
1064
+ onBlur: Rr,
1065
+ onKeydown: zr
1066
+ }, [
1067
+ He(E(Ut)),
1068
+ e.$slots["chart-background"] ? (x(), m("foreignObject", {
1069
+ key: 0,
1070
+ x: G.value.left,
1071
+ y: G.value.top,
1072
+ width: G.value.width,
1073
+ height: G.value.height,
1074
+ style: { pointerEvents: "none" }
1075
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, it)) : p("", !0),
1076
+ h("defs", null, [He(je, {
1077
+ t: "linear",
1078
+ id: `hover_${k.value}`,
1079
+ x1: "0%",
1080
+ y1: "0%",
1081
+ x2: "0%",
1082
+ y2: "100%",
1083
+ stops: [[
1084
+ "0%",
1085
+ E(ge)(R.value.style.chart.backgroundColor, R.value.style.chart.layout.highlighter.opacity),
1086
+ 1
1087
+ ], [
1088
+ "100%",
1089
+ E(ge)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
1090
+ 1
1091
+ ]]
1092
+ }, null, 8, ["id", "stops"]), He(je, {
1093
+ t: "radial",
1094
+ id: `focus_${k.value}`,
1095
+ stops: [
1096
+ [
1097
+ "0%",
1098
+ E(ge)(E(he)(R.value.style.chart.backgroundColor), 0),
1099
+ 1
1100
+ ],
1101
+ [
1102
+ "77%",
1103
+ E(ge)("#FFFFFF", 30),
1104
+ 1
1105
+ ],
1106
+ [
1107
+ "100%",
1108
+ E(ge)(E(he)(R.value.style.chart.backgroundColor), 0),
1109
+ 1
1110
+ ]
1111
+ ]
1112
+ }, null, 8, ["id", "stops"])]),
1113
+ R.value.style.chart.layout.grid.show ? (x(), m("g", at, [
1114
+ h("line", {
1115
+ x1: W.value ? G.value.right : G.value.left,
1116
+ x2: W.value ? G.value.right : G.value.left,
1117
+ y1: G.value.top,
1118
+ y2: G.value.top + G.value.height,
1119
+ stroke: R.value.style.chart.layout.grid.stroke,
1120
+ "stroke-width": R.value.style.chart.layout.grid.strokeWidth,
1121
+ "stroke-linecap": "round"
1122
+ }, null, 8, ot),
1123
+ h("line", {
1124
+ x1: G.value.left,
1125
+ x2: G.value.right,
1126
+ y1: G.value.bottom,
1127
+ y2: G.value.bottom,
1128
+ stroke: R.value.style.chart.layout.grid.stroke,
1129
+ "stroke-width": R.value.style.chart.layout.grid.strokeWidth,
1130
+ "stroke-linecap": "round"
1131
+ }, null, 8, st),
1132
+ R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", ct, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("line", {
1133
+ x1: G.value.left + (t + 1) * Y.value,
1134
+ x2: G.value.left + (t + 1) * Y.value,
1135
+ y1: G.value.top,
1136
+ y2: G.value.bottom,
1137
+ stroke: R.value.style.chart.layout.grid.stroke,
1138
+ "stroke-width": R.value.style.chart.layout.grid.strokeWidth,
1139
+ "stroke-linecap": "round"
1140
+ }, null, 8, lt))), 256))])) : p("", !0)
1141
+ ])) : p("", !0),
1142
+ h("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
1143
+ key: 0,
1144
+ ref_key: "yAxisLabel",
1145
+ ref: cn,
1146
+ "font-size": R.value.style.chart.layout.grid.axis.fontSize,
1147
+ fill: R.value.style.chart.layout.grid.axis.color,
1148
+ 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)`,
1149
+ "text-anchor": "middle",
1150
+ style: { transition: "none" }
1151
+ }, T(R.value.style.chart.layout.grid.axis.yLabel), 9, ut)) : p("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
1152
+ key: 1,
1153
+ ref_key: "xAxisLabel",
1154
+ ref: sn,
1155
+ "text-anchor": "middle",
1156
+ x: G.value.absoluteWidth / 2,
1157
+ y: G.value.absoluteHeight - 3,
1158
+ "font-size": R.value.style.chart.layout.grid.axis.fontSize,
1159
+ fill: R.value.style.chart.layout.grid.axis.color
1160
+ }, T(R.value.style.chart.layout.grid.axis.xLabel), 9, dt)) : p("", !0)]),
1161
+ R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
1162
+ key: 2,
1163
+ ref_key: "scaleLabels",
1164
+ ref: an,
1165
+ class: v({
1166
+ "donut-opacity": !0,
1167
+ "donut-behind": j.value !== null
1168
+ })
1169
+ }, [(x(!0), m(u, null, C(er.value, (e, t) => (x(), m("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (x(), m("line", {
1170
+ key: 0,
1171
+ x1: W.value ? G.value.right : G.value.left,
1172
+ x2: W.value ? G.value.right + 5 : G.value.left - 5,
1173
+ y1: e.y,
1174
+ y2: e.y,
1175
+ stroke: R.value.style.chart.layout.grid.stroke,
1176
+ "stroke-width": R.value.style.chart.layout.grid.strokeWidth
1177
+ }, null, 8, ft)) : p("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), m("text", {
1178
+ key: 1,
1179
+ x: 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,
1180
+ y: e.y + R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
1181
+ "font-size": R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
1182
+ "text-anchor": W.value ? "start" : "end",
1183
+ fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
1184
+ "font-weight": R.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1185
+ }, T(E(me)(e.value) ? E(ue)(R.value.style.chart.layout.dataLabels.formatter, e.value, E(re)({
1186
+ p: R.value.style.chart.layout.dataLabels.prefix,
1187
+ v: e.value,
1188
+ s: R.value.style.chart.layout.dataLabels.suffix,
1189
+ r: R.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
1190
+ }), {
1191
+ datapoint: e,
1192
+ seriesIndex: t
1193
+ }) : ""), 9, pt)) : p("", !0)]))), 256))], 2)) : p("", !0),
1194
+ R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
1195
+ key: 3,
1196
+ ref_key: "timeLabelsEls",
1197
+ ref: on,
1198
+ class: v({ "donut-opacity": !0 })
1199
+ }, [(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", mt, [String(J.value[t].text).includes("\n") ? (x(), m("text", {
1200
+ key: 1,
1201
+ class: "vue-data-ui-time-label",
1202
+ "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",
1203
+ "font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1204
+ fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
1205
+ 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})`,
1206
+ innerHTML: E(ne)({
1207
+ content: String(J.value[t].text),
1208
+ fontSize: R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1209
+ fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
1210
+ x: 0,
1211
+ y: 0
1212
+ })
1213
+ }, null, 8, gt)) : (x(), m("text", {
1214
+ key: 0,
1215
+ class: "vue-data-ui-time-label",
1216
+ "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",
1217
+ "font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1218
+ fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
1219
+ 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})`
1220
+ }, T(J.value[t].text || ""), 9, ht))])) : p("", !0)]))), 256))], 512)) : p("", !0),
1221
+ (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", {
1222
+ key: 0,
1223
+ class: v({
1224
+ "donut-opacity": !0,
1225
+ "donut-behind": j.value !== null
1226
+ }),
1227
+ x1: e.x,
1228
+ y1: e.y,
1229
+ x2: Z.value[t + 1].x,
1230
+ y2: Z.value[t + 1].y,
1231
+ stroke: R.value.style.chart.layout.line.stroke,
1232
+ "stroke-width": R.value.style.chart.layout.line.strokeWidth,
1233
+ "stroke-linecap": "round",
1234
+ "stroke-linejoin": "round"
1235
+ }, null, 10, _t)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", vt, [e.subtotal ? (x(), m("circle", {
1236
+ key: 0,
1237
+ cx: e.x,
1238
+ cy: e.y,
1239
+ r: e.activeRadius,
1240
+ fill: R.value.style.chart.backgroundColor
1241
+ }, null, 8, yt)) : p("", !0)]))]))), 256)),
1242
+ (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1243
+ "donut-opacity": !0,
1244
+ "donut-behind": t !== j.value && j.value !== null
1245
+ }) }, [e.subtotal ? (x(), m("g", bt, [j.value !== null && j.value === t ? (x(), m("g", xt, [
1246
+ (x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [xr(t) ? (x(), m("path", {
1247
+ key: 0,
1248
+ d: E(de)(t, {
1249
+ x: t.center.endX,
1250
+ y: t.center.endY
1251
+ }, 12, 12, {
1252
+ x: e.x,
1253
+ y: e.y
1254
+ }, !1, 20),
1255
+ stroke: t.color,
1256
+ "stroke-width": "1",
1257
+ "stroke-linecap": "round",
1258
+ "stroke-linejoin": "round",
1259
+ fill: "none"
1260
+ }, null, 8, St)) : p("", !0)]))), 256)),
1261
+ (x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [xr(t) ? (x(), m("text", {
1262
+ key: 0,
1263
+ "data-cy-hover-label": "",
1264
+ "text-anchor": E(ae)(t, !0, 0).anchor,
1265
+ x: E(ae)(t, !0, 9).x,
1266
+ y: E(se)(t, 14, 10),
1267
+ fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
1268
+ "font-size": 8,
1269
+ "font-weight": "bold"
1270
+ }, T(t.name) + ": " + T(nr(t, e.donut)) + " (" + T(t.value === null ? "-" : tr(t.value, t, n)) + ") ", 9, Ct)) : p("", !0)]))), 256)),
1271
+ h("g", null, [h("circle", {
1272
+ cx: e.x,
1273
+ cy: e.y,
1274
+ r: e.hoverRadius,
1275
+ fill: R.value.style.chart.backgroundColor
1276
+ }, null, 8, wt)])
1277
+ ])) : p("", !0)])) : p("", !0)], 2))), 256)),
1278
+ (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1279
+ "donut-opacity": !0,
1280
+ "donut-behind": t !== j.value && j.value !== null
1281
+ }) }, [e.subtotal === null ? p("", !0) : (x(), m("g", Tt, [e.subtotal === 0 ? (x(), m("circle", {
1282
+ key: 0,
1283
+ cx: e.x,
1284
+ cy: e.y,
1285
+ r: 3,
1286
+ fill: R.value.style.chart.color
1287
+ }, null, 8, Et)) : j.value !== null && j.value === t ? (x(), m("g", Dt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
1288
+ d: e.arcSlice,
1289
+ fill: `${e.color}`,
1290
+ "stroke-width": 1,
1291
+ stroke: R.value.style.chart.backgroundColor
1292
+ }, null, 8, Ot))), 256))])) : (x(), m("g", kt, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
1293
+ d: e.arcSlice,
1294
+ fill: `${e.color}`,
1295
+ "stroke-width": .5,
1296
+ stroke: R.value.style.chart.backgroundColor
1297
+ }, null, 8, At))), 256))]))]))], 2))), 256)),
1298
+ (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1299
+ "donut-opacity": !0,
1300
+ "donut-behind": t !== j.value && j.value !== null || Zt.value && t !== N.value.index
1301
+ }) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
1302
+ key: 0,
1303
+ "text-anchor": "middle",
1304
+ x: e.x,
1305
+ y: j.value === e.index && e.subtotal ? e.y + R.value.style.chart.layout.dataLabels.fontSize / 3 : e.y - e.radius - R.value.style.chart.layout.dataLabels.fontSize + R.value.style.chart.layout.dataLabels.offsetY,
1306
+ "font-size": R.value.style.chart.layout.dataLabels.fontSize,
1307
+ "font-weight": "bold",
1308
+ fill: R.value.style.chart.layout.dataLabels.color
1309
+ }, T(tr(e.subtotal, e, t)), 9, jt)) : p("", !0)], 2))), 256)),
1310
+ (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
1311
+ x: G.value.left + t * Y.value,
1312
+ y: G.value.top,
1313
+ width: Y.value,
1314
+ height: G.value.height,
1315
+ fill: [j.value, ar.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
1316
+ class: v({ "donut-hover": z.value && e.subtotal && [j.value, ar.value].includes(e.index) }),
1317
+ style: { pointerEvents: "none" }
1318
+ }, null, 10, Mt))), 256)),
1319
+ (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
1320
+ "data-cy-trap": "",
1321
+ x: G.value.left + t * Y.value,
1322
+ y: G.value.top,
1323
+ width: Y.value,
1324
+ height: G.value.height,
1325
+ fill: "transparent",
1326
+ onMouseenter: (t) => ir(e),
1327
+ onMouseleave: (t) => rr(e),
1328
+ onClick: (n) => or(e, t),
1329
+ class: v({ "donut-hover": z.value && j.value === e.index && e.subtotal })
1330
+ }, null, 42, Nt))), 256)),
1331
+ w(e.$slots, "svg", { svg: {
1332
+ ...G.value,
1333
+ isPrintingImg: E(zn) || E(Bn) || dn.value,
1334
+ isPrintingSvg: fn.value
1335
+ } }, void 0, !0)
1336
+ ], 46, rt)), e.$slots.hint ? (x(), m("div", Pt, [w(e.$slots, "hint", y(_({
1337
+ hint: R.value.a11y.translations.keyboardNavigation,
1338
+ isVisible: xn.value
1339
+ })), void 0, !0)])) : p("", !0)]),
1340
+ e.$slots.watermark ? (x(), m("div", Ft, [w(e.$slots, "watermark", y(_({ isPrinting: E(zn) || E(Bn) || dn.value || fn.value })), void 0, !0)])) : p("", !0),
1341
+ h("div", {
1342
+ ref_key: "chartSlicer",
1343
+ ref: _n,
1344
+ style: b(`width:100%;background:${R.value.style.chart.backgroundColor}`),
1345
+ "data-dom-to-png-ignore": ""
1346
+ }, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(Re, {
1347
+ ref_key: "slicerComponent",
1348
+ ref: gn,
1349
+ key: `slicer_${en.value}`,
1350
+ background: R.value.style.chart.zoom.color,
1351
+ borderColor: R.value.style.chart.backgroundColor,
1352
+ fontSize: R.value.style.chart.zoom.fontSize,
1353
+ useResetSlot: R.value.style.chart.zoom.useResetSlot,
1354
+ labelLeft: J.value[0] ? J.value[0].text : "",
1355
+ labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
1356
+ textColor: R.value.style.chart.color,
1357
+ inputColor: R.value.style.chart.zoom.color,
1358
+ selectColor: R.value.style.chart.zoom.highlightColor,
1359
+ max: q.value,
1360
+ min: 0,
1361
+ valueStart: V.value.start,
1362
+ valueEnd: V.value.end,
1363
+ start: V.value.start,
1364
+ "onUpdate:start": t[0] ||= (e) => V.value.start = e,
1365
+ end: V.value.end,
1366
+ "onUpdate:end": t[1] ||= (e) => V.value.end = e,
1367
+ refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
1368
+ refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? q.value : R.value.style.chart.zoom.endIndex + 1,
1369
+ enableRangeHandles: R.value.style.chart.zoom.enableRangeHandles,
1370
+ enableSelectionDrag: R.value.style.chart.zoom.enableSelectionDrag,
1371
+ focusOnDrag: R.value.style.chart.zoom.focusOnDrag,
1372
+ focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
1373
+ isCursorPointer: z.value,
1374
+ maxWidth: R.value.style.chart.zoom.maxWidth,
1375
+ onReset: jn
1376
+ }, {
1377
+ "reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
1378
+ _: 3
1379
+ }, 8, [
1380
+ "background",
1381
+ "borderColor",
1382
+ "fontSize",
1383
+ "useResetSlot",
1384
+ "labelLeft",
1385
+ "labelRight",
1386
+ "textColor",
1387
+ "inputColor",
1388
+ "selectColor",
1389
+ "max",
1390
+ "valueStart",
1391
+ "valueEnd",
1392
+ "start",
1393
+ "end",
1394
+ "refreshStartPoint",
1395
+ "refreshEndPoint",
1396
+ "enableRangeHandles",
1397
+ "enableSelectionDrag",
1398
+ "focusOnDrag",
1399
+ "focusRangeRatio",
1400
+ "isCursorPointer",
1401
+ "maxWidth"
1402
+ ])) : p("", !0)], 4),
1403
+ h("div", { id: `legend-bottom-${k.value}` }, null, 8, It),
1404
+ ln.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(ze, {
1405
+ key: 6,
1406
+ to: R.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1407
+ }, [h("div", {
1408
+ ref_key: "chartLegend",
1409
+ ref: mn
1410
+ }, [w(e.$slots, "legend", { legend: sr.value }, () => [R.value.style.chart.legend.show ? (x(), f(Ie, {
1411
+ key: `legend_${rn.value}`,
1412
+ legendSet: sr.value,
1413
+ config: lr.value,
1414
+ onClickMarker: t[2] ||= ({ legend: e }) => dr(e.uid)
1415
+ }, {
1416
+ item: D(({ legend: e, index: t }) => [h("div", {
1417
+ onClick: (t) => dr(e.uid),
1418
+ style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
1419
+ }, T(e.display), 13, Lt)]),
1420
+ legendToggle: D(() => [sr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(Dn) ? (x(), f(Me, {
1421
+ key: 0,
1422
+ backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
1423
+ color: R.value.style.chart.legend.selectAllToggle.color,
1424
+ fontSize: R.value.style.chart.legend.fontSize,
1425
+ checked: A.value.length > 0,
1426
+ onToggle: ur
1427
+ }, null, 8, [
1428
+ "backgroundColor",
1429
+ "color",
1430
+ "fontSize",
1431
+ "checked"
1432
+ ])) : p("", !0)]),
1433
+ _: 1
1434
+ }, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1435
+ e.$slots.source ? (x(), m("div", {
1436
+ key: 7,
1437
+ ref_key: "source",
1438
+ ref: hn,
1439
+ dir: "auto"
1440
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1441
+ Cn.value && R.value.userOptions.buttons.table ? (x(), f(qe(Dr.value.component), Ue({ key: 8 }, Dr.value.props, {
1442
+ ref_key: "tableUnit",
1443
+ ref: F,
1444
+ onClose: Or
1445
+ }), Be({
1446
+ content: D(() => [(x(), f(E(Ht), {
1447
+ key: `table_${nn.value}`,
1448
+ colNames: Q.value.colNames,
1449
+ head: Q.value.head,
1450
+ body: Q.value.body,
1451
+ config: Q.value.config,
1452
+ title: R.value.table.useDialog ? "" : Dr.value.title,
1453
+ withCloseButton: !R.value.table.useDialog,
1454
+ isCursorPointer: z.value,
1455
+ onClose: Or
1456
+ }, {
1457
+ th: D(({ th: e }) => [Ve(T(e.name ?? e), 1)]),
1458
+ td: D(({ td: e }) => [e.value === null ? (x(), m("span", Rt, "-")) : (x(), m("b", zt, 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)]),
1459
+ _: 1
1460
+ }, 8, [
1461
+ "colNames",
1462
+ "head",
1463
+ "body",
1464
+ "config",
1465
+ "title",
1466
+ "withCloseButton",
1467
+ "isCursorPointer"
1468
+ ]))]),
1469
+ _: 2
1470
+ }, [R.value.table.useDialog ? {
1471
+ name: "title",
1472
+ fn: D(() => [Ve(T(Dr.value.title), 1)]),
1473
+ key: "0"
1474
+ } : void 0, R.value.table.useDialog ? {
1475
+ name: "actions",
1476
+ fn: D(() => [h("button", {
1477
+ tabindex: "0",
1478
+ class: "vue-ui-user-options-button",
1479
+ onClick: t[3] ||= (e) => gr(R.value.userOptions.callbacks.csv),
1480
+ style: b({ cursor: z.value ? "cursor" : "default" })
1481
+ }, [He(E(Vt), {
1482
+ name: "fileCsv",
1483
+ stroke: Dr.value.props.color
1484
+ }, null, 8, ["stroke"])], 4)]),
1485
+ key: "1"
1486
+ } : void 0]), 1040)) : p("", !0),
1487
+ R.value.style.chart.dialog.show ? (x(), f(E(qt), {
1488
+ key: 9,
1489
+ ref_key: "dialog",
1490
+ ref: wr,
1491
+ onClose: t[4] ||= (e) => {
1492
+ N.value = null, Zt.value = !1, M.value = null, j.value = null, ar.value = null;
1493
+ },
1494
+ backgroundColor: R.value.style.chart.dialog.backgroundColor,
1495
+ color: R.value.style.chart.dialog.color,
1496
+ headerBg: R.value.style.chart.dialog.header.backgroundColor,
1497
+ headerColor: R.value.style.chart.dialog.header.color,
1498
+ isFullscreen: $.value,
1499
+ fullscreenParent: P.value
1500
+ }, {
1501
+ title: D(() => [Ve(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
1502
+ content: D(() => [N.value ? (x(), f(E(Kt), {
1503
+ key: 0,
1504
+ config: Cr.value,
1505
+ dataset: Sr.value
1506
+ }, null, 8, ["config", "dataset"])) : p("", !0)]),
1507
+ _: 1
1508
+ }, 8, [
1509
+ "backgroundColor",
1510
+ "color",
1511
+ "headerBg",
1512
+ "headerColor",
1513
+ "isFullscreen",
1514
+ "fullscreenParent"
1515
+ ])) : p("", !0),
1516
+ E(Dn) ? (x(), f(xe, { key: 10 })) : p("", !0)
1517
+ ], 46, $e));
1518
+ }
1519
+ }, [["__scopeId", "data-v-5ddd11b9"]]);
1520
+ //#endregion
1521
+ export { Qe as n, Bt as t };