vue-data-ui 3.6.0 → 3.7.0

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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +1 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  105. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  106. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  113. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  114. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  115. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  116. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  119. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  123. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  124. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  125. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  129. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  132. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  133. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  134. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  138. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  139. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  141. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  143. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  144. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  149. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  151. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  152. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  155. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  156. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
  158. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,1208 +0,0 @@
1
- import { defineAsyncComponent as B, ref as i, shallowRef as xt, computed as y, onMounted as dl, toRefs as hl, nextTick as Ie, watch as ie, watchEffect as yl, onBeforeUnmount as gl, createElementBlock as s, openBlock as u, unref as c, normalizeStyle as te, normalizeClass as P, createBlock as D, createCommentVNode as v, createElementVNode as m, withCtx as f, renderSlot as p, normalizeProps as R, guardReactiveProps as E, createSlots as kt, createVNode as wt, Fragment as $, renderList as z, toDisplayString as C, Teleport as fl, resolveDynamicComponent as bl, mergeProps as ml, createTextVNode as Te } from "vue";
2
- import { c as Ct, o as Lt, f as ce, g as pl, t as xl, b as kl, p as ve, O as _t, e as wl, h as De, a1 as Cl, m as At, T as Oe, a as Ne, d as de, X as Ll, s as le, a2 as _l, M as Al, V as Sl, W as $l, Y as St, P as zl, Q as Il, a3 as $t, a4 as Tl } from "./lib-C_mNZmhD.js";
3
- import { t as zt, u as Dl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ol, a as It } from "./useNestedProp-CIoDlpHu.js";
5
- import { u as Nl } from "./usePrinter-DTzqpYKF.js";
6
- import { u as Pl, B as Rl } from "./BaseScanner-BgWxam9d.js";
7
- import { u as El } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Fl } from "./useTimeLabels-BGFjWgrv.js";
9
- import { u as Vl } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Bl } from "./useChartAccessibility-9icAAmYg.js";
11
- import { u as Ml } from "./useTimeLabelCollider-CIsgDrl9.js";
12
- import Hl from "./img-BecE5qXd.js";
13
- import Ul from "./Title-Bb1VWCtR.js";
14
- import { t as Xl } from "./themes-DH-N_ePR.js";
15
- import Wl from "./Legend-D9ZTJKjh.js";
16
- import { S as Gl } from "./Slicer-CJfhtoVn.js";
17
- import { _ as Yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const jl = ["id"], ql = ["id"], Ql = ["xmlns", "viewBox"], Jl = ["x", "y", "width", "height"], Kl = ["id"], Zl = ["stop-color"], ea = ["stop-color"], ta = ["id"], la = ["stop-color"], aa = ["stop-color"], oa = ["stop-color"], ua = { key: 1 }, na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ra = { key: 0 }, ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ca = ["font-size", "fill", "transform"], va = ["x", "y", "font-size", "fill"], da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ha = ["x", "y", "font-size", "fill", "font-weight"], ya = { key: 0 }, ga = ["text-anchor", "font-size", "fill", "transform"], fa = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], ba = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ma = { key: 1 }, pa = ["cx", "cy", "r", "fill"], xa = { key: 0 }, ka = { key: 0 }, wa = ["d", "stroke"], Ca = ["text-anchor", "x", "y", "fill"], La = ["cx", "cy", "r", "fill"], _a = { key: 0 }, Aa = ["cx", "cy", "fill"], Sa = { key: 1 }, $a = ["d", "fill", "stroke"], za = { key: 2 }, Ia = ["d", "fill", "stroke"], Ta = ["x", "y", "font-size", "fill"], Da = ["x", "y", "width", "height", "fill"], Oa = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Na = {
19
- key: 4,
20
- class: "vue-data-ui-watermark"
21
- }, Pa = ["id"], Ra = ["onClick"], Ea = { key: 0 }, Fa = { key: 1 }, Va = {
22
- __name: "vue-ui-donut-evolution",
23
- props: {
24
- config: {
25
- type: Object,
26
- default() {
27
- return {};
28
- }
29
- },
30
- dataset: {
31
- type: Array,
32
- default() {
33
- return [];
34
- }
35
- }
36
- },
37
- emits: ["selectLegend"],
38
- setup(Tt, { expose: Dt, emit: Ot }) {
39
- const Nt = B(() => import("./vue-ui-accordion-SSLXLlNz.js")), Pt = B(() => import("./BaseIcon-DLFL0M4-.js")), Rt = B(() => import("./DataTable-UCyd_BQI.js")), Et = B(() => import("./PackageVersion-D_4Hr4S4.js")), Ft = B(() => import("./PenAndPaper-BJSMejV9.js")), Vt = B(() => import("./UserOptions-BqmUW9Kp.js")), Bt = B(() => import("./vue-ui-donut-BaDmbWLh.js")), Pe = B(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_donut_evolution: Mt } = Ol(), x = Tt, O = i(Ct()), w = i([]), b = i(null), ae = i(null), he = i(!1), M = i(null), F = i(null), Ht = i(null), Re = i(0), Ee = i(0), Fe = i(0), Ve = i(0), Be = i(0), ye = i(null), oe = i(null), ge = i(null), fe = i(null), Me = i(!1), Q = i(null), be = i(null), He = i(null), Ue = i(null), Xe = i(null), We = i(null), Ge = i(null), me = i(!1), J = xt(null), ue = xt(null), Ye = i(null), je = Ot, qe = y(() => !!x.dataset && x.dataset.length);
40
- dl(() => {
41
- Me.value = !0, Qe();
42
- });
43
- const ne = y(() => !!e.value.debug);
44
- function Qe() {
45
- if (Lt(x.dataset) ? (ce({
46
- componentName: "VueUiDonutEvolution",
47
- type: "dataset",
48
- debug: ne.value
49
- }), se.value = !0) : x.dataset.length && x.dataset.forEach((t, a) => {
50
- pl({
51
- datasetObject: t,
52
- requiredAttributes: ["name", "values"]
53
- }).forEach((l) => {
54
- ce({
55
- componentName: "VueUiDonutEvolution",
56
- type: "datasetSerieAttribute",
57
- property: l,
58
- index: a,
59
- debug: ne.value
60
- }), se.value = !0;
61
- });
62
- }), Lt(x.dataset) || (se.value = e.value.loading), setTimeout(() => {
63
- me.value = !0;
64
- }, 10), xe(), e.value.responsive) {
65
- const t = zt(() => {
66
- me.value = !1;
67
- const { width: a, height: l } = Dl({
68
- chart: F.value,
69
- title: e.value.style.chart.title.text ? He.value : null,
70
- legend: e.value.style.chart.legend.show ? Ue.value : null,
71
- slicer: e.value.style.chart.zoom.show && Ke.value > 1 ? Ge.value : null,
72
- source: Xe.value
73
- });
74
- requestAnimationFrame(() => {
75
- G.value.width = a, G.value.height = l - 12, clearTimeout(Ye.value), Ye.value = setTimeout(() => {
76
- me.value = !0;
77
- }, 10);
78
- });
79
- });
80
- J.value && (ue.value && J.value.unobserve(ue.value), J.value.disconnect()), J.value = new ResizeObserver(t), ue.value = F.value.parentNode, J.value.observe(ue.value);
81
- }
82
- }
83
- const e = i(Ce()), { loading: Je, FINAL_DATASET: pe, manualLoading: se } = Pl({
84
- ...hl(x),
85
- FINAL_CONFIG: e,
86
- prepareConfig: Ce,
87
- callback: () => {
88
- Promise.resolve().then(async () => {
89
- await xe();
90
- });
91
- },
92
- skeletonDataset: [
93
- {
94
- name: "",
95
- values: [1, 2, 3, 5, 8, 13],
96
- color: "#AAAAAA"
97
- },
98
- {
99
- name: "",
100
- values: [1, 2, 3, 5, 8, 13],
101
- color: "#BABABA"
102
- },
103
- {
104
- name: "",
105
- values: [1, 2, 3, 5, 8, 13],
106
- color: "#CACACA"
107
- }
108
- ],
109
- skeletonConfig: xl({
110
- defaultConfig: e.value,
111
- userConfig: {
112
- useCssAnimation: !1,
113
- table: { show: !1 },
114
- userOptions: { show: !1 },
115
- style: {
116
- chart: {
117
- backgroundColor: "#99999930",
118
- layout: {
119
- dataLabels: { show: !1 },
120
- grid: {
121
- stroke: "#6A6A6A",
122
- axis: {
123
- yLabel: "",
124
- xLabel: ""
125
- },
126
- yAxis: {
127
- dataLabels: { show: !1 }
128
- },
129
- xAxis: {
130
- dataLabels: { show: !1 }
131
- }
132
- },
133
- line: {
134
- stroke: "#CACACA60"
135
- }
136
- },
137
- legend: {
138
- backgroundColor: "transparent",
139
- showValue: !1,
140
- showPercentage: !1
141
- },
142
- zoom: {
143
- show: !1,
144
- startIndex: null,
145
- endIndex: null
146
- }
147
- }
148
- }
149
- }
150
- })
151
- }), G = i({
152
- width: e.value.style.chart.layout.width,
153
- height: e.value.style.chart.layout.height
154
- }), Ke = y(() => Math.max(...pe.value.map((t) => t.values.length))), h = i({
155
- start: 0,
156
- end: Ke.value
157
- });
158
- function Ze() {
159
- xe();
160
- }
161
- async function xe() {
162
- await Ie(), await Ie();
163
- const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = We.value;
164
- h.value = { start: 0, max: I.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(Ut(a + 1)) : (h.value.end = I.value, l.setEndValue(I.value))) : (h.value = {
165
- start: 0,
166
- end: I.value
167
- }, Ee.value += 1);
168
- }
169
- function Ut(t) {
170
- const a = I.value;
171
- return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
172
- }
173
- const { userOptionsVisible: ke, setUserOptionsVisibility: et, keepUserOptionState: tt } = Vl({ config: e.value }), { svgRef: we } = Bl({ config: e.value.style.chart.title });
174
- function Ce() {
175
- const t = It({
176
- userConfig: x.config,
177
- defaultConfig: Mt
178
- });
179
- let a = {};
180
- return t.theme ? a = {
181
- ...It({
182
- userConfig: Xl.vue_ui_donut_evolution[t.theme] || x.config,
183
- defaultConfig: t
184
- }),
185
- customPalette: kl[t.theme] || ve
186
- } : a = t, x.config && _t(x.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = x.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, x.config && _t(x.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = x.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
187
- }
188
- ie(() => x.config, (t) => {
189
- Je.value || (e.value = Ce()), ke.value = !e.value.userOptions.showOnChartHover, Qe(), Fe.value += 1, Ve.value += 1, Be.value += 1, H.value.showTable = e.value.table.show;
190
- }, { deep: !0 }), ie(() => x.dataset, (t) => {
191
- Array.isArray(t) && t.length > 0 && (se.value = !1), Ze();
192
- }, { deep: !0 });
193
- const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: ut } = Nl({
194
- elementId: O.value,
195
- fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
196
- options: e.value.userOptions.print
197
- }), Xt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Wt = y(() => wl(e.value.customPalette)), H = i({
198
- showTable: e.value.table.show
199
- });
200
- ie(e, () => {
201
- H.value = {
202
- showTable: e.value.table.show
203
- };
204
- }, { immediate: !0 });
205
- const U = y(() => ({
206
- top: e.value.style.chart.layout.padding.top,
207
- right: e.value.style.chart.layout.padding.right,
208
- bottom: e.value.style.chart.layout.padding.bottom,
209
- left: e.value.style.chart.layout.padding.left
210
- }));
211
- function Gt() {
212
- let t = 0;
213
- ye.value && (t = Array.from(ye.value.querySelectorAll("text")).reduce((o, g) => {
214
- const d = g.getComputedTextLength();
215
- return (d > o ? d : o) + e.value.style.chart.layout.grid.axis.yLabelOffsetX;
216
- }, 0));
217
- const a = fe.value ? fe.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
218
- return t + a + 5;
219
- }
220
- const Le = i(0), Yt = zt((t) => {
221
- Le.value = t;
222
- }, 100);
223
- yl((t) => {
224
- const a = oe.value;
225
- if (!a) return;
226
- const l = new ResizeObserver((n) => {
227
- Yt(n[0].contentRect.height);
228
- });
229
- l.observe(a), t(() => l.disconnect());
230
- }), gl(() => {
231
- Le.value = 0;
232
- });
233
- const nt = y(() => {
234
- let t = 0;
235
- ge.value && (t = ge.value.getBBox().height);
236
- let a = 0;
237
- return oe.value && (a = Le.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
238
- }), r = y(() => {
239
- const t = Gt(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = G.value.width, n = G.value.height, o = U.value.left + t, g = l - U.value.right, d = l - o - U.value.right, k = n - U.value.top - U.value.bottom - a - nt.value, q = U.value.top + a, V = n - U.value.bottom - nt.value;
240
- return {
241
- top: q,
242
- left: o,
243
- right: g,
244
- bottom: V,
245
- absoluteHeight: n,
246
- absoluteWidth: l,
247
- centerX: o + Math.max(10, d) / 2,
248
- centerY: q + Math.max(10, k) / 2,
249
- width: Math.max(10, d),
250
- height: Math.max(10, k)
251
- };
252
- }), N = y(() => (pe.value.forEach((t, a) => {
253
- [null, void 0].includes(t.name) && ce({
254
- componentName: "VueUiDonutEvolution",
255
- type: "datasetSerieAttribute",
256
- property: "name",
257
- index: a,
258
- debug: ne.value
259
- }), [null, void 0].includes(t.values) && ce({
260
- componentName: "VueUiDonutEvolution",
261
- type: "datasetSerieAttribute",
262
- property: "values",
263
- index: a,
264
- debug: ne.value
265
- });
266
- }), pe.value.map((t, a) => ({
267
- ...t,
268
- values: Cl(t.values),
269
- color: De(t.color) || Wt.value[a] || ve[a] || ve[a % ve.length],
270
- length: (t.values || []).length,
271
- uid: Ct()
272
- })))), X = y(() => N.value.filter((t) => !w.value.includes(t.uid)).map((t) => ({
273
- ...t,
274
- values: t.values.filter((a, l) => l >= h.value.start && l <= h.value.end)
275
- }))), I = y(() => Math.max(...X.value.map((t) => t.length))), _ = y(() => Fl({
276
- values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
277
- maxDatapoints: I.value,
278
- formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
279
- start: h.value.start,
280
- end: h.value.end
281
- })), L = y(() => r.value.width / (h.value.end - h.value.start)), A = y(() => {
282
- const t = [];
283
- for (let o = 0; o < h.value.end - h.value.start; o += 1) {
284
- const g = X.value.map((T) => T.values[o] ?? null), d = g.filter((T) => [void 0, null].includes(T)).length === g.length, k = g.reduce((T, S) => T + S, 0), q = g.map((T) => T / k), V = r.value.left + L.value * o + L.value / 2;
285
- t.push({
286
- index: o,
287
- percentages: q,
288
- subtotal: d || k < 0 ? null : k,
289
- values: g,
290
- x: V
291
- });
292
- }
293
- const a = 0, l = Math.max(...t.map((o) => o.subtotal)), n = t.length === 1 ? l * 2 : l;
294
- return t.map((o, g) => {
295
- const d = Math.min(r.value.width / 24, L.value / 2 * 0.7), k = d > r.value.width / 16 ? r.value.width / 16 : d, q = b.value === o.index ? r.value.width / 16 : k, V = t.length > 4 ? d * 2 : d * 2 > L.value / 2 * 0.7 ? L.value / 2 * 0.7 : d * 2, T = r.value.bottom - r.value.height * o.subtotal / At(a, n, e.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;
296
- return {
297
- ...o,
298
- y: T,
299
- radius: k,
300
- activeRadius: q,
301
- hoverRadius: V,
302
- donut: Oe({
303
- series: X.value.map((S, pt) => ({
304
- color: S.color,
305
- name: S.name,
306
- value: S.values[g] ?? 0
307
- }))
308
- }, o.x, T, k, k, 1.99999, 2, 1, 360, 105.25, k / 2),
309
- donutHover: Oe({
310
- series: X.value.map((S, pt) => ({
311
- color: S.color,
312
- name: S.name,
313
- value: S.values[g] ?? 0
314
- }))
315
- }, o.x, T, V, V, 1.99999, 2, 1, 360, 105.25, V / 2),
316
- donutFocus: Oe({
317
- series: X.value.map((S, pt) => ({
318
- color: S.color,
319
- name: S.name,
320
- value: S.values[g] ?? 0
321
- }))
322
- }, r.value.centerX, r.value.centerY, r.value.height / 3.6, r.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, r.value.height / 6)
323
- };
324
- });
325
- });
326
- function st(t, a, l) {
327
- return Ne(
328
- e.value.style.chart.layout.dataLabels.formatter,
329
- t,
330
- de({
331
- p: e.value.style.chart.layout.dataLabels.prefix,
332
- v: t,
333
- s: e.value.style.chart.layout.dataLabels.suffix,
334
- r: e.value.style.chart.layout.dataLabels.rounding
335
- }),
336
- { datapoint: a, index: l }
337
- );
338
- }
339
- const _e = y(() => ({
340
- max: Math.max(...A.value.map((t) => t.subtotal)),
341
- min: 0
342
- })), Y = y(() => {
343
- const t = A.value.length === 1 ? _e.value.max * 2 : _e.value.max;
344
- return At(_e.value.min, t, e.value.style.chart.layout.grid.yAxis.dataLabels.steps);
345
- });
346
- function jt(t) {
347
- return t / Y.value.max;
348
- }
349
- const qt = y(() => Y.value.ticks.map((t) => ({
350
- y: r.value.bottom - r.value.height * jt(t),
351
- value: t
352
- })));
353
- function Qt(t, a) {
354
- return isNaN(t.value / $t(a, "value")) ? 0 : (t.value / $t(a, "value") * 100).toFixed(0) + "%";
355
- }
356
- function rt(t) {
357
- b.value = null, ae.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
358
- }
359
- function Jt(t) {
360
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), b.value = t.index, ae.value = t;
361
- }
362
- const K = i(null);
363
- function it(t, a) {
364
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (ae.value = null, b.value = null, he.value = !0, M.value = t, ll(t), [null, void 0].includes(a) || (K.value = a));
365
- }
366
- const Ae = y(() => N.value.map((t, a) => ({
367
- name: t.name,
368
- value: t.values.slice(h.value.start, h.value.end).reduce((l, n) => l + n, 0),
369
- shape: "circle",
370
- uid: t.uid,
371
- color: t.color
372
- })).sort((t, a) => a.value - t.value).map((t, a) => ({
373
- ...t,
374
- opacity: w.value.includes(t.uid) ? 0.5 : 1,
375
- segregate: () => Z(t.uid),
376
- isSegregated: w.value.includes(t.uid),
377
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Ne(
378
- e.value.style.chart.layout.dataLabels.formatter,
379
- t.value,
380
- de({
381
- p: e.value.style.chart.layout.dataLabels.prefix,
382
- v: t.value,
383
- s: e.value.style.chart.layout.dataLabels.suffix,
384
- r: e.value.style.chart.legend.roundingValue
385
- }),
386
- { datapoint: t, seriesIndex: a }
387
- ) : ""}${e.value.style.chart.legend.showPercentage ? w.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / ct.value) ? "-" : de({
388
- v: t.value / ct.value * 100,
389
- s: "%",
390
- r: e.value.style.chart.legend.roundingPercentage
391
- })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
392
- }))), ct = y(() => A.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), Kt = y(() => ({
393
- cy: "donut-div-legend",
394
- backgroundColor: e.value.style.chart.legend.backgroundColor,
395
- color: e.value.style.chart.legend.color,
396
- fontSize: e.value.style.chart.legend.fontSize,
397
- paddingBottom: 12,
398
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
399
- }));
400
- function Z(t) {
401
- if (w.value.includes(t))
402
- w.value = w.value.filter((a) => a !== t), je("selectLegend", X.value);
403
- else {
404
- if (w.value.length === N.value.length - 1) return;
405
- w.value.push(t), je("selectLegend", X.value);
406
- }
407
- M.value && it(A.value.find((a, l) => l === K.value));
408
- }
409
- function vt(t) {
410
- if (!N.value.length)
411
- return e.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null;
412
- const a = N.value.find((l) => l.name === t);
413
- return a || (e.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${t}"`), null);
414
- }
415
- function Zt(t) {
416
- const a = vt(t);
417
- a !== null && w.value.includes(a.uid) && Z(a.uid);
418
- }
419
- function el(t) {
420
- const a = vt(t);
421
- a !== null && (w.value.includes(a.uid) || Z(a.uid));
422
- }
423
- const j = y(() => {
424
- const t = [""].concat(N.value.filter((o) => !w.value.includes(o.uid)).map((o) => ({
425
- name: o.name,
426
- color: o.color
427
- }))).concat(["Σ"]);
428
- let a = [];
429
- for (let o = 0; o < I.value; o += 1) {
430
- const g = N.value.filter((d) => !w.value.includes(d.uid)).map((d) => d.values[o] ?? 0).reduce((d, k) => d + k, 0);
431
- a.push([_.value[o] ? _.value[o].text : "-"].concat(N.value.filter((d) => !w.value.includes(d.uid)).map((d) => ({
432
- value: d.values[o] ?? 0,
433
- percentage: d.values[o] ? d.values[o] / g * 100 : 0
434
- }))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(g.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
435
- }
436
- const l = {
437
- th: {
438
- backgroundColor: e.value.table.th.backgroundColor,
439
- color: e.value.table.th.color,
440
- outline: e.value.table.th.outline
441
- },
442
- td: {
443
- backgroundColor: e.value.table.td.backgroundColor,
444
- color: e.value.table.td.color,
445
- outline: e.value.table.td.outline
446
- },
447
- breakpoint: e.value.table.responsiveBreakpoint
448
- }, n = [
449
- e.value.table.columnNames.period
450
- ].concat(N.value.filter((o) => !w.value.includes(o.uid)).map((o) => o.name)).concat(e.value.table.columnNames.total);
451
- return { head: t, body: a, config: l, colNames: n };
452
- });
453
- function tl() {
454
- return N.value;
455
- }
456
- function Se(t = null) {
457
- Ie(() => {
458
- const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...j.value.head.map((d) => d.name ?? d)], n = [...j.value.body.map((d) => d.map((k) => k.value ?? k))], o = a.concat([l]).concat(n), g = zl(o);
459
- t ? t(g) : Il({ csvContent: g, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
460
- });
461
- }
462
- const W = i(!1);
463
- function dt(t) {
464
- W.value = t, Re.value += 1;
465
- }
466
- function ht() {
467
- H.value.showTable = !H.value.showTable;
468
- }
469
- const re = i(!1);
470
- function $e() {
471
- re.value = !re.value;
472
- }
473
- function yt(t) {
474
- return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
475
- }
476
- const gt = i([]), ft = i({}), ze = i(null);
477
- function ll(t) {
478
- gt.value = t.donut.map((a) => ({
479
- name: a.name,
480
- values: [a.value],
481
- color: a.color
482
- })), ft.value = Tl({
483
- ...e.value.style.chart.dialog.donutChart,
484
- responsive: !0,
485
- theme: e.value.theme
486
- }), ze.value && ze.value.open();
487
- }
488
- async function al({ scale: t = 2 } = {}) {
489
- if (!F.value) return;
490
- const { width: a, height: l } = F.value.getBoundingClientRect(), n = a / l, { imageUri: o, base64: g } = await Hl({ domElement: F.value, base64: !0, img: !0, scale: t });
491
- return {
492
- imageUri: o,
493
- base64: g,
494
- title: e.value.style.chart.title.text,
495
- width: a,
496
- height: l,
497
- aspectRatio: n
498
- };
499
- }
500
- const ol = y(() => G.value.width), ul = y(() => G.value.height);
501
- Ml({
502
- timeLabelsEls: oe,
503
- timeLabels: _,
504
- slicer: h,
505
- configRef: e,
506
- rotationPath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "rotation"],
507
- autoRotatePath: ["style", "chart", "layout", "grid", "xAxis", "dataLabels", "autoRotate", "enable"],
508
- isAutoSize: !1,
509
- width: ol,
510
- height: ul,
511
- rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
512
- });
513
- const ee = y(() => {
514
- const t = e.value.table.useDialog && !e.value.table.show, a = H.value.showTable;
515
- return {
516
- component: t ? Pe : Nt,
517
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
518
- props: t ? {
519
- backgroundColor: e.value.table.th.backgroundColor,
520
- color: e.value.table.th.color,
521
- headerColor: e.value.table.th.color,
522
- headerBg: e.value.table.th.backgroundColor,
523
- isFullscreen: W.value,
524
- fullscreenParent: F.value,
525
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
526
- } : {
527
- hideDetails: !0,
528
- config: {
529
- open: a,
530
- maxHeight: 1e4,
531
- body: {
532
- backgroundColor: e.value.style.chart.backgroundColor,
533
- color: e.value.style.chart.color
534
- },
535
- head: {
536
- backgroundColor: e.value.style.chart.backgroundColor,
537
- color: e.value.style.chart.color
538
- }
539
- }
540
- }
541
- };
542
- });
543
- ie(() => H.value.showTable, (t) => {
544
- e.value.table.show || (t && e.value.table.useDialog && Q.value ? Q.value.open() : "close" in Q.value && Q.value.close());
545
- });
546
- function bt() {
547
- H.value.showTable = !1, be.value && be.value.setTableIconState(!1);
548
- }
549
- const nl = y(() => Ae.value.map((t) => ({
550
- ...t,
551
- name: t.display
552
- }))), sl = y(() => e.value.style.chart.backgroundColor), rl = y(() => e.value.style.chart.legend), il = y(() => e.value.style.chart.title), { exportSvg: cl, getSvg: vl } = El({
553
- svg: we,
554
- title: il,
555
- legend: rl,
556
- legendItems: nl,
557
- backgroundColor: sl
558
- });
559
- async function mt({ isCb: t }) {
560
- if (t) {
561
- const { blob: a, url: l, text: n, dataUrl: o } = await vl();
562
- e.value.userOptions.callbacks.svg({ blob: a, url: l, text: n, dataUrl: o });
563
- } else
564
- cl();
565
- }
566
- return Dt({
567
- getData: tl,
568
- getImage: al,
569
- generatePdf: ot,
570
- generateCsv: Se,
571
- generateImage: ut,
572
- generateSvg: mt,
573
- hideSeries: el,
574
- showSeries: Zt,
575
- toggleTable: ht,
576
- toggleAnnotator: $e,
577
- toggleFullscreen: dt
578
- }), (t, a) => (u(), s("div", {
579
- ref_key: "donutEvolutionChart",
580
- ref: F,
581
- class: P(`vue-data-ui-component vue-ui-donut-evolution ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
582
- style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
583
- id: O.value,
584
- onMouseenter: a[5] || (a[5] = () => c(et)(!0)),
585
- onMouseleave: a[6] || (a[6] = () => c(et)(!1))
586
- }, [
587
- e.value.userOptions.buttons.annotator ? (u(), D(c(Ft), {
588
- key: 0,
589
- svgRef: c(we),
590
- backgroundColor: e.value.style.chart.backgroundColor,
591
- color: e.value.style.chart.color,
592
- active: re.value,
593
- onClose: $e
594
- }, {
595
- "annotator-action-close": f(() => [
596
- p(t.$slots, "annotator-action-close", {}, void 0, !0)
597
- ]),
598
- "annotator-action-color": f(({ color: l }) => [
599
- p(t.$slots, "annotator-action-color", R(E({ color: l })), void 0, !0)
600
- ]),
601
- "annotator-action-draw": f(({ mode: l }) => [
602
- p(t.$slots, "annotator-action-draw", R(E({ mode: l })), void 0, !0)
603
- ]),
604
- "annotator-action-undo": f(({ disabled: l }) => [
605
- p(t.$slots, "annotator-action-undo", R(E({ disabled: l })), void 0, !0)
606
- ]),
607
- "annotator-action-redo": f(({ disabled: l }) => [
608
- p(t.$slots, "annotator-action-redo", R(E({ disabled: l })), void 0, !0)
609
- ]),
610
- "annotator-action-delete": f(({ disabled: l }) => [
611
- p(t.$slots, "annotator-action-delete", R(E({ disabled: l })), void 0, !0)
612
- ]),
613
- _: 3
614
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : v("", !0),
615
- Xt.value ? (u(), s("div", {
616
- key: 1,
617
- ref_key: "noTitle",
618
- ref: Ht,
619
- class: "vue-data-ui-no-title-space",
620
- style: "height:36px; width: 100%;background:transparent"
621
- }, null, 512)) : v("", !0),
622
- e.value.style.chart.title.text ? (u(), s("div", {
623
- key: 2,
624
- ref_key: "chartTitle",
625
- ref: He,
626
- style: "width:100%;background:transparent;padding-bottom:24px",
627
- onMouseleave: rt
628
- }, [
629
- (u(), D(Ul, {
630
- key: `title_${Fe.value}`,
631
- config: {
632
- title: {
633
- cy: "donut-evolution-div-title",
634
- ...e.value.style.chart.title
635
- },
636
- subtitle: {
637
- cy: "donut-evolution-div-subtitle",
638
- ...e.value.style.chart.title.subtitle
639
- }
640
- }
641
- }, null, 8, ["config"]))
642
- ], 544)) : v("", !0),
643
- m("div", {
644
- id: `legend-top-${O.value}`
645
- }, null, 8, ql),
646
- e.value.userOptions.show && qe.value && (c(tt) || c(ke)) ? (u(), D(c(Vt), {
647
- ref_key: "userOptionsRef",
648
- ref: be,
649
- key: `user_options_${Re.value}`,
650
- backgroundColor: e.value.style.chart.backgroundColor,
651
- color: e.value.style.chart.color,
652
- isPrinting: c(lt),
653
- isImaging: c(at),
654
- uid: O.value,
655
- hasPdf: e.value.userOptions.buttons.pdf,
656
- hasImg: e.value.userOptions.buttons.img,
657
- hasSvg: e.value.userOptions.buttons.svg,
658
- hasXls: e.value.userOptions.buttons.csv,
659
- hasTable: e.value.userOptions.buttons.table,
660
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
661
- isFullscreen: W.value,
662
- titles: { ...e.value.userOptions.buttonTitles },
663
- chartElement: F.value,
664
- position: e.value.userOptions.position,
665
- hasAnnotator: e.value.userOptions.buttons.annotator,
666
- isAnnotation: re.value,
667
- callbacks: e.value.userOptions.callbacks,
668
- printScale: e.value.userOptions.print.scale,
669
- tableDialog: e.value.table.useDialog,
670
- onToggleFullscreen: dt,
671
- onGeneratePdf: c(ot),
672
- onGenerateCsv: Se,
673
- onGenerateImage: c(ut),
674
- onGenerateSvg: mt,
675
- onToggleTable: ht,
676
- onToggleAnnotator: $e,
677
- style: te({
678
- visibility: c(tt) ? c(ke) ? "visible" : "hidden" : "visible"
679
- })
680
- }, kt({ _: 2 }, [
681
- t.$slots.menuIcon ? {
682
- name: "menuIcon",
683
- fn: f(({ isOpen: l, color: n }) => [
684
- p(t.$slots, "menuIcon", R(E({ isOpen: l, color: n })), void 0, !0)
685
- ]),
686
- key: "0"
687
- } : void 0,
688
- t.$slots.optionPdf ? {
689
- name: "optionPdf",
690
- fn: f(() => [
691
- p(t.$slots, "optionPdf", {}, void 0, !0)
692
- ]),
693
- key: "1"
694
- } : void 0,
695
- t.$slots.optionCsv ? {
696
- name: "optionCsv",
697
- fn: f(() => [
698
- p(t.$slots, "optionCsv", {}, void 0, !0)
699
- ]),
700
- key: "2"
701
- } : void 0,
702
- t.$slots.optionImg ? {
703
- name: "optionImg",
704
- fn: f(() => [
705
- p(t.$slots, "optionImg", {}, void 0, !0)
706
- ]),
707
- key: "3"
708
- } : void 0,
709
- t.$slots.optionSvg ? {
710
- name: "optionSvg",
711
- fn: f(() => [
712
- p(t.$slots, "optionSvg", {}, void 0, !0)
713
- ]),
714
- key: "4"
715
- } : void 0,
716
- t.$slots.optionTable ? {
717
- name: "optionTable",
718
- fn: f(() => [
719
- p(t.$slots, "optionTable", {}, void 0, !0)
720
- ]),
721
- key: "5"
722
- } : void 0,
723
- t.$slots.optionFullscreen ? {
724
- name: "optionFullscreen",
725
- fn: f(({ toggleFullscreen: l, isFullscreen: n }) => [
726
- p(t.$slots, "optionFullscreen", R(E({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
727
- ]),
728
- key: "6"
729
- } : void 0,
730
- t.$slots.optionAnnotator ? {
731
- name: "optionAnnotator",
732
- fn: f(({ toggleAnnotator: l, isAnnotator: n }) => [
733
- p(t.$slots, "optionAnnotator", R(E({ toggleAnnotator: l, isAnnotator: n })), void 0, !0)
734
- ]),
735
- key: "7"
736
- } : void 0
737
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
738
- (u(), s("svg", {
739
- ref_key: "svgRef",
740
- ref: we,
741
- xmlns: c(Ll),
742
- class: P({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
743
- viewBox: `0 0 ${r.value.absoluteWidth} ${r.value.absoluteHeight}`,
744
- style: te(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
745
- }, [
746
- wt(c(Et)),
747
- t.$slots["chart-background"] ? (u(), s("foreignObject", {
748
- key: 0,
749
- x: r.value.left,
750
- y: r.value.top,
751
- width: r.value.width,
752
- height: r.value.height,
753
- style: {
754
- pointerEvents: "none"
755
- }
756
- }, [
757
- p(t.$slots, "chart-background", {}, void 0, !0)
758
- ], 8, Jl)) : v("", !0),
759
- m("defs", null, [
760
- m("linearGradient", {
761
- id: `hover_${O.value}`,
762
- x1: "0%",
763
- y1: "0%",
764
- x2: "0%",
765
- y2: "100%"
766
- }, [
767
- m("stop", {
768
- offset: "0%",
769
- "stop-color": c(le)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
770
- }, null, 8, Zl),
771
- m("stop", {
772
- offset: "100%",
773
- "stop-color": c(le)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
774
- }, null, 8, ea)
775
- ], 8, Kl),
776
- m("radialGradient", {
777
- id: `focus_${O.value}`
778
- }, [
779
- m("stop", {
780
- offset: "0%",
781
- "stop-color": c(le)(c(De)(e.value.style.chart.backgroundColor), 0)
782
- }, null, 8, la),
783
- m("stop", {
784
- offset: "77%",
785
- "stop-color": c(le)("#FFFFFF", 30)
786
- }, null, 8, aa),
787
- m("stop", {
788
- offset: "100%",
789
- "stop-color": c(le)(c(De)(e.value.style.chart.backgroundColor), 0)
790
- }, null, 8, oa)
791
- ], 8, ta)
792
- ]),
793
- e.value.style.chart.layout.grid.show ? (u(), s("g", ua, [
794
- m("line", {
795
- x1: r.value.left,
796
- x2: r.value.left,
797
- y1: r.value.top,
798
- y2: r.value.top + r.value.height,
799
- stroke: e.value.style.chart.layout.grid.stroke,
800
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
801
- "stroke-linecap": "round"
802
- }, null, 8, na),
803
- m("line", {
804
- x1: r.value.left,
805
- x2: r.value.right,
806
- y1: r.value.bottom,
807
- y2: r.value.bottom,
808
- stroke: e.value.style.chart.layout.grid.stroke,
809
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
810
- "stroke-linecap": "round"
811
- }, null, 8, sa),
812
- e.value.style.chart.layout.grid.showVerticalLines ? (u(), s("g", ra, [
813
- (u(!0), s($, null, z(h.value.end - h.value.start, (l, n) => (u(), s("line", {
814
- x1: r.value.left + (n + 1) * L.value,
815
- x2: r.value.left + (n + 1) * L.value,
816
- y1: r.value.top,
817
- y2: r.value.bottom,
818
- stroke: e.value.style.chart.layout.grid.stroke,
819
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth,
820
- "stroke-linecap": "round"
821
- }, null, 8, ia))), 256))
822
- ])) : v("", !0)
823
- ])) : v("", !0),
824
- m("g", null, [
825
- e.value.style.chart.layout.grid.axis.yLabel ? (u(), s("text", {
826
- key: 0,
827
- ref_key: "yAxisLabel",
828
- ref: fe,
829
- "font-size": e.value.style.chart.layout.grid.axis.fontSize,
830
- fill: e.value.style.chart.layout.grid.axis.color,
831
- transform: `translate(${e.value.style.chart.layout.grid.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
832
- "text-anchor": "middle",
833
- style: { transition: "none" }
834
- }, C(e.value.style.chart.layout.grid.axis.yLabel), 9, ca)) : v("", !0),
835
- e.value.style.chart.layout.grid.axis.xLabel ? (u(), s("text", {
836
- key: 1,
837
- ref_key: "xAxisLabel",
838
- ref: ge,
839
- "text-anchor": "middle",
840
- x: r.value.absoluteWidth / 2,
841
- y: r.value.absoluteHeight - 3,
842
- "font-size": e.value.style.chart.layout.grid.axis.fontSize,
843
- fill: e.value.style.chart.layout.grid.axis.color
844
- }, C(e.value.style.chart.layout.grid.axis.xLabel), 9, va)) : v("", !0)
845
- ]),
846
- e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), s("g", {
847
- key: 2,
848
- ref_key: "scaleLabels",
849
- ref: ye,
850
- class: P({ "donut-opacity": !0, "donut-behind": b.value !== null })
851
- }, [
852
- (u(!0), s($, null, z(qt.value, (l, n) => (u(), s("g", null, [
853
- l.value >= Y.value.min && l.value <= Y.value.max ? (u(), s("line", {
854
- key: 0,
855
- x1: r.value.left,
856
- x2: r.value.left - 5,
857
- y1: l.y,
858
- y2: l.y,
859
- stroke: e.value.style.chart.layout.grid.stroke,
860
- "stroke-width": e.value.style.chart.layout.grid.strokeWidth
861
- }, null, 8, da)) : v("", !0),
862
- l.value >= Y.value.min && l.value <= Y.value.max ? (u(), s("text", {
863
- key: 1,
864
- x: r.value.left,
865
- y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
866
- "font-size": e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
867
- "text-anchor": "end",
868
- fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
869
- "font-weight": e.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
870
- }, C(c(_l)(l.value) ? c(Ne)(
871
- e.value.style.chart.layout.dataLabels.formatter,
872
- l.value,
873
- c(de)({
874
- p: e.value.style.chart.layout.dataLabels.prefix,
875
- v: l.value,
876
- s: e.value.style.chart.layout.dataLabels.suffix,
877
- r: e.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
878
- }),
879
- { datapoint: l, seriesIndex: n }
880
- ) : ""), 9, ha)) : v("", !0)
881
- ]))), 256))
882
- ], 2)) : v("", !0),
883
- e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), s("g", {
884
- key: 3,
885
- ref_key: "timeLabelsEls",
886
- ref: oe,
887
- class: P({ "donut-opacity": !0 })
888
- }, [
889
- (u(!0), s($, null, z(h.value.end - h.value.start, (l, n) => (u(), s("g", null, [
890
- (e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === I.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && _.value[n] && _.value[n].text ? (u(), s("g", ya, [
891
- String(_.value[n].text).includes(`
892
- `) ? (u(), s("text", {
893
- key: 1,
894
- class: "vue-data-ui-time-label",
895
- "text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
896
- "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
897
- fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
898
- transform: `translate(${r.value.left + L.value * n + L.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
899
- innerHTML: c(Al)({
900
- content: String(_.value[n].text),
901
- fontSize: e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
902
- fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
903
- x: 0,
904
- y: 0
905
- })
906
- }, null, 8, fa)) : (u(), s("text", {
907
- key: 0,
908
- class: "vue-data-ui-time-label",
909
- "text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
910
- "font-size": e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
911
- fill: e.value.style.chart.layout.grid.xAxis.dataLabels.color,
912
- transform: `translate(${r.value.left + L.value * n + L.value / 2}, ${r.value.bottom + e.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
913
- }, C(_.value[n].text || ""), 9, ga))
914
- ])) : v("", !0)
915
- ]))), 256))
916
- ], 512)) : v("", !0),
917
- (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", null, [
918
- e.value.style.chart.layout.line.show && n < A.value.length - 1 && ![l.subtotal, A.value[n + 1].subtotal].includes(null) ? (u(), s("line", {
919
- key: 0,
920
- class: P({ "donut-opacity": !0, "donut-behind": b.value !== null }),
921
- x1: l.x,
922
- y1: l.y,
923
- x2: A.value[n + 1].x,
924
- y2: A.value[n + 1].y,
925
- stroke: e.value.style.chart.layout.line.stroke,
926
- "stroke-width": e.value.style.chart.layout.line.strokeWidth,
927
- "stroke-linecap": "round",
928
- "stroke-linejoin": "round"
929
- }, null, 10, ba)) : v("", !0),
930
- l.subtotal !== null ? (u(), s("g", ma, [
931
- l.subtotal ? (u(), s("circle", {
932
- key: 0,
933
- cx: l.x,
934
- cy: l.y,
935
- r: l.activeRadius,
936
- fill: e.value.style.chart.backgroundColor
937
- }, null, 8, pa)) : v("", !0)
938
- ])) : v("", !0)
939
- ]))), 256)),
940
- (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
941
- class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null })
942
- }, [
943
- l.subtotal ? (u(), s("g", xa, [
944
- b.value !== null && b.value === n ? (u(), s("g", ka, [
945
- (u(!0), s($, null, z(l.donutHover, (o) => (u(), s("g", null, [
946
- yt(o) ? (u(), s("path", {
947
- key: 0,
948
- d: c(Sl)(o, { x: o.center.endX, y: o.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
949
- stroke: o.color,
950
- "stroke-width": "1",
951
- "stroke-linecap": "round",
952
- "stroke-linejoin": "round",
953
- fill: "none"
954
- }, null, 8, wa)) : v("", !0)
955
- ]))), 256)),
956
- (u(!0), s($, null, z(l.donutHover, (o, g) => (u(), s("g", null, [
957
- yt(o) ? (u(), s("text", {
958
- key: 0,
959
- "data-cy-hover-label": "",
960
- "text-anchor": c(St)(o, !0, 0).anchor,
961
- x: c(St)(o, !0, 9).x,
962
- y: c($l)(o, 14, 10),
963
- fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
964
- "font-size": 8,
965
- "font-weight": "bold"
966
- }, C(o.name) + ": " + C(Qt(o, l.donut)) + " (" + C(o.value === null ? "-" : st(o.value, o, g)) + ") ", 9, Ca)) : v("", !0)
967
- ]))), 256)),
968
- m("g", null, [
969
- m("circle", {
970
- cx: l.x,
971
- cy: l.y,
972
- r: l.hoverRadius,
973
- fill: e.value.style.chart.backgroundColor
974
- }, null, 8, La)
975
- ])
976
- ])) : v("", !0)
977
- ])) : v("", !0)
978
- ], 2))), 256)),
979
- (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
980
- class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null })
981
- }, [
982
- l.subtotal !== null ? (u(), s("g", _a, [
983
- l.subtotal === 0 ? (u(), s("circle", {
984
- key: 0,
985
- cx: l.x,
986
- cy: l.y,
987
- r: 3,
988
- fill: e.value.style.chart.color
989
- }, null, 8, Aa)) : b.value !== null && b.value === n ? (u(), s("g", Sa, [
990
- (u(!0), s($, null, z(l.donutHover, (o, g) => (u(), s("path", {
991
- d: o.arcSlice,
992
- fill: `${o.color}`,
993
- "stroke-width": 1,
994
- stroke: e.value.style.chart.backgroundColor
995
- }, null, 8, $a))), 256))
996
- ])) : (u(), s("g", za, [
997
- (u(!0), s($, null, z(l.donut, (o, g) => (u(), s("path", {
998
- d: o.arcSlice,
999
- fill: `${o.color}`,
1000
- "stroke-width": 0.5,
1001
- stroke: e.value.style.chart.backgroundColor
1002
- }, null, 8, Ia))), 256))
1003
- ]))
1004
- ])) : v("", !0)
1005
- ], 2))), 256)),
1006
- (u(!0), s($, null, z(A.value, (l, n) => (u(), s("g", {
1007
- class: P({ "donut-opacity": !0, "donut-behind": n !== b.value && b.value !== null || he.value && n !== M.value.index })
1008
- }, [
1009
- l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), s("text", {
1010
- key: 0,
1011
- "text-anchor": "middle",
1012
- x: l.x,
1013
- y: b.value === l.index && l.subtotal ? l.y + e.value.style.chart.layout.dataLabels.fontSize / 3 : l.y - l.radius - e.value.style.chart.layout.dataLabels.fontSize + e.value.style.chart.layout.dataLabels.offsetY,
1014
- "font-size": e.value.style.chart.layout.dataLabels.fontSize,
1015
- "font-weight": "bold",
1016
- fill: e.value.style.chart.layout.dataLabels.color
1017
- }, C(st(l.subtotal, l, n)), 9, Ta)) : v("", !0)
1018
- ], 2))), 256)),
1019
- (u(!0), s($, null, z(A.value, (l, n) => (u(), s("rect", {
1020
- x: r.value.left + n * L.value,
1021
- y: r.value.top,
1022
- width: L.value,
1023
- height: r.value.height,
1024
- fill: [b.value, K.value].includes(l.index) ? `url(#hover_${O.value})` : "transparent",
1025
- class: P({ "donut-hover": l.subtotal && [b.value, K.value].includes(l.index) }),
1026
- style: {
1027
- pointerEvents: "none"
1028
- }
1029
- }, null, 10, Da))), 256)),
1030
- (u(!0), s($, null, z(A.value, (l, n) => (u(), s("rect", {
1031
- "data-cy-trap": "",
1032
- x: r.value.left + n * L.value,
1033
- y: r.value.top,
1034
- width: L.value,
1035
- height: r.value.height,
1036
- fill: "transparent",
1037
- onMouseenter: (o) => Jt(l),
1038
- onMouseleave: (o) => rt(l),
1039
- onClick: (o) => it(l, n),
1040
- class: P({ "donut-hover": b.value === l.index && l.subtotal })
1041
- }, null, 42, Oa))), 256)),
1042
- p(t.$slots, "svg", { svg: r.value }, void 0, !0)
1043
- ], 14, Ql)),
1044
- t.$slots.watermark ? (u(), s("div", Na, [
1045
- p(t.$slots, "watermark", R(E({ isPrinting: c(lt) || c(at) })), void 0, !0)
1046
- ])) : v("", !0),
1047
- m("div", {
1048
- ref_key: "chartSlicer",
1049
- ref: Ge,
1050
- style: te(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1051
- "data-dom-to-png-ignore": ""
1052
- }, [
1053
- I.value > 1 && e.value.style.chart.zoom.show ? (u(), D(Gl, {
1054
- ref_key: "slicerComponent",
1055
- ref: We,
1056
- key: `slicer_${Ee.value}`,
1057
- background: e.value.style.chart.zoom.color,
1058
- borderColor: e.value.style.chart.backgroundColor,
1059
- fontSize: e.value.style.chart.zoom.fontSize,
1060
- useResetSlot: e.value.style.chart.zoom.useResetSlot,
1061
- labelLeft: _.value[0] ? _.value[0].text : "",
1062
- labelRight: _.value.at(-1) ? _.value.at(-1).text : "",
1063
- textColor: e.value.style.chart.color,
1064
- inputColor: e.value.style.chart.zoom.color,
1065
- selectColor: e.value.style.chart.zoom.highlightColor,
1066
- max: I.value,
1067
- min: 0,
1068
- valueStart: h.value.start,
1069
- valueEnd: h.value.end,
1070
- start: h.value.start,
1071
- "onUpdate:start": a[0] || (a[0] = (l) => h.value.start = l),
1072
- end: h.value.end,
1073
- "onUpdate:end": a[1] || (a[1] = (l) => h.value.end = l),
1074
- refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1075
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : I.value,
1076
- enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1077
- enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1078
- focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
1079
- focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
1080
- onReset: Ze
1081
- }, {
1082
- "reset-action": f(({ reset: l }) => [
1083
- p(t.$slots, "reset-action", R(E({ reset: l })), void 0, !0)
1084
- ]),
1085
- _: 3
1086
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : v("", !0)
1087
- ], 4),
1088
- m("div", {
1089
- id: `legend-bottom-${O.value}`
1090
- }, null, 8, Pa),
1091
- Me.value ? (u(), D(fl, {
1092
- key: 5,
1093
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1094
- }, [
1095
- m("div", {
1096
- ref_key: "chartLegend",
1097
- ref: Ue
1098
- }, [
1099
- e.value.style.chart.legend.show ? (u(), D(Wl, {
1100
- key: `legend_${Be.value}`,
1101
- legendSet: Ae.value,
1102
- config: Kt.value,
1103
- onClickMarker: a[2] || (a[2] = ({ legend: l }) => Z(l.uid))
1104
- }, {
1105
- item: f(({ legend: l, index: n }) => [
1106
- m("div", {
1107
- onClick: (o) => Z(l.uid),
1108
- style: te(`opacity:${w.value.includes(l.uid) ? 0.5 : 1}`)
1109
- }, C(l.display), 13, Ra)
1110
- ]),
1111
- _: 1
1112
- }, 8, ["legendSet", "config"])) : v("", !0),
1113
- p(t.$slots, "legend", { legend: Ae.value }, void 0, !0)
1114
- ], 512)
1115
- ], 8, ["to"])) : v("", !0),
1116
- t.$slots.source ? (u(), s("div", {
1117
- key: 6,
1118
- ref_key: "source",
1119
- ref: Xe,
1120
- dir: "auto"
1121
- }, [
1122
- p(t.$slots, "source", {}, void 0, !0)
1123
- ], 512)) : v("", !0),
1124
- qe.value && e.value.userOptions.buttons.table ? (u(), D(bl(ee.value.component), ml({ key: 7 }, ee.value.props, {
1125
- ref_key: "tableUnit",
1126
- ref: Q,
1127
- onClose: bt
1128
- }), kt({
1129
- content: f(() => [
1130
- (u(), D(c(Rt), {
1131
- key: `table_${Ve.value}`,
1132
- colNames: j.value.colNames,
1133
- head: j.value.head,
1134
- body: j.value.body,
1135
- config: j.value.config,
1136
- title: e.value.table.useDialog ? "" : ee.value.title,
1137
- withCloseButton: !e.value.table.useDialog,
1138
- onClose: bt
1139
- }, {
1140
- th: f(({ th: l }) => [
1141
- Te(C(l.name ?? l), 1)
1142
- ]),
1143
- td: f(({ td: l }) => [
1144
- l.value === null ? (u(), s("span", Ea, "-")) : (u(), s("b", Fa, C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + C(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + C(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
1145
- m("span", null, C(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
1146
- ]),
1147
- _: 1
1148
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1149
- ]),
1150
- _: 2
1151
- }, [
1152
- e.value.table.useDialog ? {
1153
- name: "title",
1154
- fn: f(() => [
1155
- Te(C(ee.value.title), 1)
1156
- ]),
1157
- key: "0"
1158
- } : void 0,
1159
- e.value.table.useDialog ? {
1160
- name: "actions",
1161
- fn: f(() => [
1162
- m("button", {
1163
- tabindex: "0",
1164
- class: "vue-ui-user-options-button",
1165
- onClick: a[3] || (a[3] = (l) => Se(e.value.userOptions.callbacks.csv))
1166
- }, [
1167
- wt(c(Pt), {
1168
- name: "excel",
1169
- stroke: ee.value.props.color
1170
- }, null, 8, ["stroke"])
1171
- ])
1172
- ]),
1173
- key: "1"
1174
- } : void 0
1175
- ]), 1040)) : v("", !0),
1176
- e.value.style.chart.dialog.show ? (u(), D(c(Pe), {
1177
- key: 8,
1178
- ref_key: "dialog",
1179
- ref: ze,
1180
- onClose: a[4] || (a[4] = (l) => {
1181
- M.value = null, he.value = !1, ae.value = null, b.value = null, K.value = null;
1182
- }),
1183
- backgroundColor: e.value.style.chart.dialog.backgroundColor,
1184
- color: e.value.style.chart.dialog.color,
1185
- headerBg: e.value.style.chart.dialog.header.backgroundColor,
1186
- headerColor: e.value.style.chart.dialog.header.color,
1187
- isFullscreen: W.value,
1188
- fullscreenParent: F.value
1189
- }, {
1190
- title: f(() => [
1191
- Te(C(_.value[Number(M.value.index)] ? _.value[Number(M.value.index)].text : ""), 1)
1192
- ]),
1193
- content: f(() => [
1194
- M.value ? (u(), D(c(Bt), {
1195
- key: 0,
1196
- config: ft.value,
1197
- dataset: gt.value
1198
- }, null, 8, ["config", "dataset"])) : v("", !0)
1199
- ]),
1200
- _: 1
1201
- }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1202
- c(Je) ? (u(), D(Rl, { key: 9 })) : v("", !0)
1203
- ], 46, jl));
1204
- }
1205
- }, ao = /* @__PURE__ */ Yl(Va, [["__scopeId", "data-v-d491ac71"]]);
1206
- export {
1207
- ao as default
1208
- };