vue-data-ui 3.22.0 → 3.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/{Arrow-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
  3. package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
  4. package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
  5. package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
  6. package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
  7. package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
  8. package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
  10. package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
  11. package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
  12. package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
  13. package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
  14. package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
  15. package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
  16. package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
  17. package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
  18. package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.js} +2 -2
  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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
  89. package/dist/exposedLib-CffbQxjN.js +19 -0
  90. package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
  91. package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
  92. package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
  93. package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
  94. package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
  95. package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +7 -10
  101. package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
  102. package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
  103. package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
  104. package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
  105. package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
  106. package/dist/utils.js +3 -3
  107. package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
  108. package/dist/vue-data-ui.js +72 -72
  109. package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
  110. package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
  111. package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
  112. package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
  113. package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
  114. package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
  115. package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
  116. package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
  117. package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
  118. package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
  120. package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
  121. package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
  122. package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
  123. package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
  124. package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
  125. package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
  126. package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
  127. package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
  128. package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
  129. package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
  130. package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
  131. package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
  132. package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
  133. package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
  134. package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
  135. package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
  136. package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
  137. package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
  139. package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
  140. package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
  141. package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
  142. package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
  143. package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
  144. package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
  145. package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
  146. package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
  147. package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
  148. package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
  149. package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
  150. package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
  151. package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
  152. package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
  153. package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
  154. package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
  155. package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
  156. package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
  157. package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
  158. package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
  159. package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
  160. package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
  161. package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
  162. package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
  163. package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
  164. package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
  165. package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
  166. package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
  167. package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
  168. package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
  169. package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
  170. package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
  171. package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
  172. package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
  173. package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
  174. package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
  175. package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
  176. package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
  177. package/package.json +2 -2
  178. package/dist/exposedLib-BJbE_A8E.js +0 -19
  179. package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
  181. package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
  182. package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
  183. package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
  184. package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
  185. package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
  186. package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
  187. package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
  188. package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
  189. package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
  190. package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
  191. package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
  192. package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
  193. package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
  194. package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
  195. package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
  196. package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
  197. package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
  198. package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
  199. package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
@@ -1,1510 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { B as t, Bt as n, Ct as r, G as i, H as a, Ht as o, J as s, Lt as c, Mt as l, Ot as ee, Pt as te, S as ne, Tt as re, X as ie, _ as ae, ct as oe, d as se, h as ce, i as le, p as ue, q as de, t as fe, u as pe, vt as me, x as he, y as ge } from "./lib-AJRHFE5U.js";
3
- import { t as _e } from "./useTimeLabels-BmBRv27Y.js";
4
- import { t as ve } from "./useConfig-Br1uzq_L.js";
5
- import { t as ye } from "./usePrinter-6n2MzVyV.js";
6
- import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as Se } from "./useSvgExport-SVIsDot8.js";
8
- import { t as Ce } from "./useNestedProp-DtcXIg7n.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-C_RNNswI.js";
12
- import { n as De } from "./Title-DH6G8_cZ.js";
13
- import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { c as ke } from "./canvas-lib-BOP_HS11.js";
15
- import { t as Ae } from "./useResponsive-BfnK0KxU.js";
16
- import { t as je } from "./BaseLegendToggle-CUYal8mC.js";
17
- import { t as Me } from "./A11yDataTable-DdRsVULz.js";
18
- import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as Fe } from "./Legend-CAStwHdx.js";
21
- import { t as Ie } from "./vue_ui_donut_evolution-D1yAAIHr.js";
22
- import { t as Le } from "./Slicer-JCOpjPU7.js";
23
- import { Fragment as u, Teleport as Re, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as He, nextTick as Ue, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as We, onMounted as Ge, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as T, toRefs as Je, unref as E, watch as Ye, watchEffect as Xe, withCtx as D } from "vue";
24
- //#region src/components/vue-ui-donut-evolution.vue
25
- var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et = ["id"], tt = { style: { position: "relative" } }, nt = [
26
- "xmlns",
27
- "aria-describedby",
28
- "viewBox"
29
- ], rt = [
30
- "x",
31
- "y",
32
- "width",
33
- "height"
34
- ], it = ["id"], at = ["stop-color"], ot = ["stop-color"], st = ["id"], ct = ["stop-color"], lt = ["stop-color"], ut = ["stop-color"], dt = { key: 1 }, ft = [
35
- "x1",
36
- "x2",
37
- "y1",
38
- "y2",
39
- "stroke",
40
- "stroke-width"
41
- ], pt = [
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2",
46
- "stroke",
47
- "stroke-width"
48
- ], mt = { key: 0 }, ht = [
49
- "x1",
50
- "x2",
51
- "y1",
52
- "y2",
53
- "stroke",
54
- "stroke-width"
55
- ], gt = [
56
- "font-size",
57
- "fill",
58
- "transform"
59
- ], _t = [
60
- "x",
61
- "y",
62
- "font-size",
63
- "fill"
64
- ], vt = [
65
- "x1",
66
- "x2",
67
- "y1",
68
- "y2",
69
- "stroke",
70
- "stroke-width"
71
- ], yt = [
72
- "x",
73
- "y",
74
- "font-size",
75
- "text-anchor",
76
- "fill",
77
- "font-weight"
78
- ], bt = { key: 0 }, xt = [
79
- "text-anchor",
80
- "font-size",
81
- "fill",
82
- "transform"
83
- ], St = [
84
- "text-anchor",
85
- "font-size",
86
- "fill",
87
- "transform",
88
- "innerHTML"
89
- ], Ct = [
90
- "x1",
91
- "y1",
92
- "x2",
93
- "y2",
94
- "stroke",
95
- "stroke-width"
96
- ], wt = { key: 1 }, Tt = [
97
- "cx",
98
- "cy",
99
- "r",
100
- "fill"
101
- ], Et = { key: 0 }, Dt = { key: 0 }, Ot = ["d", "stroke"], kt = [
102
- "text-anchor",
103
- "x",
104
- "y",
105
- "fill"
106
- ], At = [
107
- "cx",
108
- "cy",
109
- "r",
110
- "fill"
111
- ], jt = { key: 0 }, Mt = [
112
- "cx",
113
- "cy",
114
- "fill"
115
- ], Nt = { key: 1 }, Pt = [
116
- "d",
117
- "fill",
118
- "stroke"
119
- ], Ft = { key: 2 }, It = [
120
- "d",
121
- "fill",
122
- "stroke"
123
- ], Lt = [
124
- "x",
125
- "y",
126
- "font-size",
127
- "fill"
128
- ], Rt = [
129
- "x",
130
- "y",
131
- "width",
132
- "height",
133
- "fill"
134
- ], zt = [
135
- "x",
136
- "y",
137
- "width",
138
- "height",
139
- "onMouseenter",
140
- "onMouseleave",
141
- "onClick"
142
- ], Bt = {
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
- }, Vt = {
153
- key: 5,
154
- class: "vue-data-ui-watermark"
155
- }, Ht = ["id"], Ut = ["onClick"], Wt = { key: 0 }, Gt = { key: 1 }, Kt = /*#__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: Ze }) {
173
- let Kt = g(() => import("./vue-ui-accordion-HvsT8_RM.js").then((e) => e.n)), qt = g(() => import("./BaseIcon-CWXbczu_.js").then((e) => e.n)), Jt = g(() => import("./DataTable-G9aclxhk.js")), Yt = g(() => import("./PackageVersion-DxBQctV8.js").then((e) => e.t)), Xt = g(() => import("./PenAndPaper-z1woaB1V.js").then((e) => e.t)), Zt = g(() => import("./UserOptions-rx9hUnOy.js").then((e) => e.n)), Qt = g(() => import("./vue-ui-donut-BugVAUHv.js").then((e) => e.n)), $t = g(() => import("./BaseDraggableDialog-O8jn9Lvi.js").then((e) => e.n)), { vue_ui_donut_evolution: en } = ve(), { isThemeValid: tn, warnInvalidTheme: nn } = we(), O = e, k = S(a()), A = S([]), j = S(null), M = S(null), rn = S(!1), N = S(null), P = S(null), an = S(null), on = S(0), sn = S(0), cn = S(0), ln = S(0), un = S(0), dn = S(null), fn = S(null), pn = S(null), mn = S(null), hn = S(!1), F = S(null), gn = S(null), _n = S(!1), vn = S(!1), yn = S(null), bn = S(null), xn = S(null), Sn = S(null), Cn = S(null), wn = S(!1), Tn = qe(null), En = qe(null), Dn = S(null), I = S(null), On = S(!1), kn = Ze, An = d(() => !!O.dataset && O.dataset.length);
174
- Ge(() => {
175
- hn.value = !0, Mn();
176
- });
177
- let jn = d(() => !!L.value.debug);
178
- function Mn() {
179
- if (re(O.dataset) ? (ie({
180
- componentName: "VueUiDonutEvolution",
181
- type: "dataset",
182
- debug: jn.value
183
- }), In.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
184
- oe({
185
- datasetObject: e,
186
- requiredAttributes: ["name", "values"]
187
- }).forEach((e) => {
188
- ie({
189
- componentName: "VueUiDonutEvolution",
190
- type: "datasetSerieAttribute",
191
- property: e,
192
- index: t,
193
- debug: jn.value
194
- }), In.value = !0;
195
- });
196
- }), re(O.dataset) || (In.value = L.value.loading), setTimeout(() => {
197
- wn.value = !0;
198
- }, 10), zn(), L.value.responsive) {
199
- let e = ke(() => {
200
- wn.value = !1;
201
- let { width: e, height: t } = Ae({
202
- chart: P.value,
203
- title: L.value.style.chart.title.text ? yn.value : null,
204
- legend: L.value.style.chart.legend.show ? bn.value : null,
205
- slicer: L.value.style.chart.zoom.show && Ln.value > 1 ? Cn.value : null,
206
- source: xn.value
207
- });
208
- requestAnimationFrame(() => {
209
- z.value.width = e, z.value.height = t - 12, clearTimeout(Dn.value), Dn.value = setTimeout(() => {
210
- wn.value = !0;
211
- }, 10);
212
- });
213
- });
214
- Tn.value && (En.value && Tn.value.unobserve(En.value), Tn.value.disconnect()), Tn.value = new ResizeObserver(e), En.value = P.value.parentNode, Tn.value.observe(En.value);
215
- }
216
- }
217
- let L = S(Wn()), R = d(() => L.value.userOptions.useCursorPointer), Nn = d(() => o({
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: L.value.skeletonConfig ?? {}
255
- })), { loading: Pn, FINAL_DATASET: Fn, manualLoading: In } = be({
256
- ...Je(O),
257
- FINAL_CONFIG: L,
258
- prepareConfig: Wn,
259
- callback: () => {
260
- Promise.resolve().then(async () => {
261
- await zn();
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: o({
303
- defaultConfig: L.value,
304
- userConfig: Nn.value
305
- })
306
- }), z = S({
307
- width: L.value.style.chart.layout.width,
308
- height: L.value.style.chart.layout.height
309
- }), Ln = d(() => Math.max(...Fn.value.map((e) => e.values.length))), B = S({
310
- start: 0,
311
- end: Ln.value
312
- });
313
- function Rn() {
314
- zn();
315
- }
316
- async function zn() {
317
- await Ue(), await Ue();
318
- let { startIndex: e, endIndex: t } = L.value.style.chart.zoom, n = Sn.value;
319
- B.value = {
320
- start: 0,
321
- max: q.value
322
- }, (e != null || t != null) && n ? (e == null ? (B.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (B.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(Bn(t + 1))) : (B.value = {
323
- start: 0,
324
- end: q.value
325
- }, sn.value += 1);
326
- }
327
- function Bn(e) {
328
- let t = q.value;
329
- return e > t ? t : e < 0 || L.value.style.chart.zoom.startIndex !== null && e < L.value.style.chart.zoom.startIndex ? L.value.style.chart.zoom.startIndex === null ? 1 : L.value.style.chart.zoom.startIndex + 1 : e;
330
- }
331
- let { userOptionsVisible: Vn, setUserOptionsVisibility: Hn, keepUserOptionState: Un } = Ne({ config: L.value }), { svgRef: V } = Pe({ config: L.value.style.chart.title });
332
- function Wn() {
333
- let e = Ce({
334
- userConfig: O.config,
335
- defaultConfig: en
336
- }), t = {}, r = e.theme;
337
- if (r) if (!tn.value(e)) nn(e), t = e;
338
- else {
339
- let i = Ce({
340
- userConfig: Ie[r] || O.config,
341
- defaultConfig: e
342
- });
343
- t = {
344
- ...Ce({
345
- userConfig: O.config,
346
- defaultConfig: i
347
- }),
348
- customPalette: e.customPalette ? e.customPalette : n[r] || ee
349
- };
350
- }
351
- else t = e;
352
- return t;
353
- }
354
- Ye(() => O.config, (e) => {
355
- Pn.value || (L.value = Wn()), Vn.value = !L.value.userOptions.showOnChartHover, Mn(), cn.value += 1, ln.value += 1, un.value += 1, H.value.showTable = L.value.table.show;
356
- }, { deep: !0 }), Ye(() => O.dataset, (e) => {
357
- Array.isArray(e) && e.length > 0 && (In.value = !1), Rn();
358
- }, { deep: !0 });
359
- let { isPrinting: Gn, isImaging: Kn, generatePdf: qn, generateImage: Jn } = ye({
360
- elementId: k.value,
361
- fileName: L.value.style.chart.title.text || "vue-ui-donut-evolution",
362
- options: L.value.userOptions.print
363
- }), Yn = d(() => L.value.userOptions.show && !L.value.style.chart.title.text), Xn = d(() => he(L.value.customPalette)), H = S({ showTable: L.value.table.show });
364
- Ye(L, () => {
365
- H.value = { showTable: L.value.table.show };
366
- }, { immediate: !0 });
367
- let U = d(() => ({
368
- top: L.value.style.chart.layout.padding.top,
369
- right: L.value.style.chart.layout.padding.right,
370
- bottom: L.value.style.chart.layout.padding.bottom,
371
- left: L.value.style.chart.layout.padding.left
372
- })), W = d(() => L.value.style.chart.layout.grid.yAxis.position === "right");
373
- function Zn() {
374
- let e = 0;
375
- dn.value && (e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
376
- let n = t.getComputedTextLength();
377
- return n > e ? n : e;
378
- }, 0));
379
- let t = mn.value ? mn.value.getBoundingClientRect().width + L.value.style.chart.layout.grid.axis.yLabelOffsetX + L.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 Qn = S(0), $n = ke((e) => {
389
- Qn.value = e;
390
- }, 100);
391
- Xe((e) => {
392
- let t = fn.value;
393
- if (!t) return;
394
- let n = new ResizeObserver((e) => {
395
- $n(e[0].contentRect.height);
396
- });
397
- n.observe(t), e(() => n.disconnect());
398
- }), We(() => {
399
- Qn.value = 0;
400
- });
401
- let er = d(() => {
402
- let e = 0;
403
- pn.value && (e = pn.value.getBBox().height);
404
- let t = 0;
405
- return fn.value && (t = Qn.value), e + t + L.value.style.chart.layout.grid.axis.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
406
- }), G = d(() => {
407
- let e = Zn(), t = L.value.style.chart.layout.dataLabels.fontSize * 3, n = z.value.width, r = z.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 - er.value, c = U.value.top + t;
408
- return {
409
- top: c,
410
- left: i,
411
- right: a,
412
- bottom: r - U.value.bottom - er.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(() => (Fn.value.forEach((e, t) => {
424
- [null, void 0].includes(e.name) && ie({
425
- componentName: "VueUiDonutEvolution",
426
- type: "datasetSerieAttribute",
427
- property: "name",
428
- index: t,
429
- debug: jn.value
430
- }), [null, void 0].includes(e.values) && ie({
431
- componentName: "VueUiDonutEvolution",
432
- type: "datasetSerieAttribute",
433
- property: "values",
434
- index: t,
435
- debug: jn.value
436
- });
437
- }), Fn.value.map((e, t) => ({
438
- ...e,
439
- values: l(e.values),
440
- color: ge(e.color) || Xn.value[t] || ee[t] || ee[t % ee.length],
441
- length: (e.values || []).length,
442
- uid: a()
443
- })))), tr = d(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
444
- ...e,
445
- values: e.values.filter((e, t) => t >= B.value.start && t <= B.value.end)
446
- }))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]), nr = 0;
447
- Xe(() => {
448
- let e = ++nr;
449
- (async () => {
450
- let t = await _e({
451
- values: L.value.style.chart.layout.grid.xAxis.dataLabels.values,
452
- maxDatapoints: q.value,
453
- formatter: L.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
454
- start: B.value.start,
455
- end: B.value.end
456
- });
457
- e === nr && (J.value = t);
458
- })();
459
- });
460
- let Y = d(() => G.value.width / (B.value.end - B.value.start)), rr = d(() => {
461
- let e = [];
462
- for (let t = 0; t < B.value.end - B.value.start; t += 1) {
463
- let n = tr.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
- }), ir = d(() => {
474
- let e = Math.max(...rr.value.map((e) => e.subtotal).filter((e) => me(e))) ?? 1, t = Math.min(...rr.value.map((e) => e.subtotal).filter((e) => me(e))) ?? 0, n = Math.max(L.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
475
- return r = L.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, L.value.style.chart.layout.grid.yAxis.scaleMin), L.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
476
- max: n,
477
- min: r
478
- };
479
- }), X = d(() => {
480
- let e = rr.value.length === 1 ? ir.value.max * 2 : ir.value.max;
481
- return ce(ir.value.min, e, L.value.style.chart.layout.grid.yAxis.dataLabels.steps);
482
- });
483
- function ar(e) {
484
- return (e - X.value.min) / (X.value.max - X.value.min);
485
- }
486
- let or = d(() => X.value.ticks.map((e) => ({
487
- y: G.value.bottom - G.value.height * ar(e),
488
- value: e
489
- }))), Z = d(() => {
490
- let e = rr.value, t = Math.max(...e.map((e) => e.subtotal));
491
- return e.length === 1 && t * 2, e.map((t, n) => {
492
- let i = Math.min(G.value.width / 24, Y.value / 2 * .7), a = i > G.value.width / 16 ? G.value.width / 16 : i, o = j.value === t.index ? G.value.width / 16 : a, s = e.length > 4 ? i * 2 : i * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : i * 2, c = G.value.bottom - G.value.height * ar(t.subtotal), l = tr.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: c,
500
- radius: a,
501
- activeRadius: o,
502
- hoverRadius: s,
503
- donut: r({ series: l }, t.x, c, a, a, 1.99999, 2, 1, 360, 105.25, a / 2),
504
- donutHover: r({ series: l }, t.x, c, s, s, 1.99999, 2, 1, 360, 105.25, s / 2),
505
- donutFocus: r({ series: l }, 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 sr(e, t, n) {
510
- return le(L.value.style.chart.layout.dataLabels.formatter, e, i({
511
- p: L.value.style.chart.layout.dataLabels.prefix,
512
- v: e,
513
- s: L.value.style.chart.layout.dataLabels.suffix,
514
- r: L.value.style.chart.layout.dataLabels.rounding
515
- }), {
516
- datapoint: t,
517
- index: n
518
- });
519
- }
520
- function cr(e, t) {
521
- return isNaN(e.value / c(t, "value")) ? 0 : (e.value / c(t, "value") * 100).toFixed(0) + "%";
522
- }
523
- function lr(e) {
524
- j.value = null, M.value = null, I.value = null, L.value.events.datapointLeave && L.value.events.datapointLeave({
525
- datapoint: e,
526
- seriesIndex: e.seriesIndex + B.value.start
527
- });
528
- }
529
- function ur(e) {
530
- L.value.events.datapointEnter && L.value.events.datapointEnter({
531
- datapoint: e,
532
- seriesIndex: e.index + B.value.start
533
- }), j.value = e.index, M.value = e, I.value = e.index;
534
- }
535
- let dr = S(null);
536
- function fr(e, t) {
537
- L.value.events.datapointClick && L.value.events.datapointClick({
538
- datapoint: e,
539
- seriesIndex: e.index + B.value.start
540
- }), !(!e.subtotal || !L.value.style.chart.dialog.show) && (M.value = null, j.value = null, rn.value = !0, N.value = e, jr(e), [null, void 0].includes(t) || (dr.value = t));
541
- }
542
- let pr = d(() => K.value.map((e, t) => ({
543
- name: e.name,
544
- value: e.values.slice(B.value.start, B.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: () => _r(e.uid),
552
- isSegregated: A.value.includes(e.uid),
553
- display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? le(L.value.style.chart.layout.dataLabels.formatter, e.value, i({
554
- p: L.value.style.chart.layout.dataLabels.prefix,
555
- v: e.value,
556
- s: L.value.style.chart.layout.dataLabels.suffix,
557
- r: L.value.style.chart.legend.roundingValue
558
- }), {
559
- datapoint: e,
560
- seriesIndex: t
561
- }) : ""}${L.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / mr.value) ? "-" : i({
562
- v: e.value / mr.value * 100,
563
- s: "%",
564
- r: L.value.style.chart.legend.roundingPercentage
565
- })}${L.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
566
- }))), mr = d(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), hr = d(() => ({
567
- cy: "donut-div-legend",
568
- backgroundColor: L.value.style.chart.legend.backgroundColor,
569
- color: L.value.style.chart.legend.color,
570
- fontSize: L.value.style.chart.legend.fontSize,
571
- paddingBottom: 12,
572
- fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
573
- }));
574
- function gr() {
575
- A.value.length ? A.value = [] : pr.value.forEach((e) => {
576
- A.value.push(e.uid);
577
- }), kn("selectLegend", tr.value);
578
- }
579
- function _r(e) {
580
- if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), kn("selectLegend", tr.value);
581
- else {
582
- if (A.value.length === K.value.length - 1) return;
583
- A.value.push(e), kn("selectLegend", tr.value);
584
- }
585
- N.value && fr(Z.value.find((e, t) => t === dr.value));
586
- }
587
- function vr(e) {
588
- return K.value.length ? K.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
589
- }
590
- function yr(e) {
591
- let t = vr(e);
592
- t !== null && A.value.includes(t.uid) && _r(t.uid);
593
- }
594
- function br(e) {
595
- let t = vr(e);
596
- t !== null && (A.value.includes(t.uid) || _r(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
- })), [`${L.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(L.value.table.td.roundingValue))}${L.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 : `${sr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
614
- config: {
615
- th: {
616
- backgroundColor: L.value.table.th.backgroundColor,
617
- color: L.value.table.th.color,
618
- outline: L.value.table.th.outline
619
- },
620
- td: {
621
- backgroundColor: L.value.table.td.backgroundColor,
622
- color: L.value.table.td.color,
623
- outline: L.value.table.td.outline
624
- },
625
- breakpoint: L.value.table.responsiveBreakpoint
626
- },
627
- colNames: [L.value.table.columnNames.period].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), L.value.table.columnNames.total)
628
- };
629
- });
630
- function xr() {
631
- return K.value;
632
- }
633
- function Sr(e = null) {
634
- Ue(() => {
635
- let t = [
636
- [L.value.style.chart.title.text],
637
- [L.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))], i = ne(t.concat([n]).concat(r));
640
- e ? e(i) : s({
641
- csvContent: i,
642
- title: L.value.style.chart.title.text || "vue-ui-donut-evolution"
643
- });
644
- });
645
- }
646
- let $ = S(!1);
647
- function Cr(e) {
648
- $.value = e, on.value += 1;
649
- }
650
- function wr() {
651
- H.value.showTable = !H.value.showTable;
652
- }
653
- let Tr = S(!1);
654
- function Er() {
655
- Tr.value = !Tr.value;
656
- }
657
- function Dr(e) {
658
- return e.proportion * 100 > L.value.style.chart.donuts.hover.hideLabelsUnderValue;
659
- }
660
- let Or = S([]), kr = S({}), Ar = S(null);
661
- function jr(e) {
662
- Or.value = e.donut.map((e) => ({
663
- name: e.name,
664
- values: [e.value],
665
- color: e.color
666
- })), kr.value = de({
667
- ...L.value.style.chart.dialog.donutChart,
668
- responsive: !0,
669
- theme: L.value.theme
670
- }), Ar.value && Ar.value.open();
671
- }
672
- async function Mr({ 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: L.value.style.chart.title.text,
684
- width: t,
685
- height: n,
686
- aspectRatio: r
687
- };
688
- }
689
- Te({
690
- timeLabelsEls: fn,
691
- timeLabels: J,
692
- slicer: B,
693
- configRef: L,
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(() => z.value.width),
715
- height: d(() => z.value.height),
716
- rotation: L.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
717
- });
718
- let Nr = d(() => {
719
- let e = L.value.table.useDialog && !L.value.table.show, t = H.value.showTable;
720
- return {
721
- component: e ? $t : Kt,
722
- title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
723
- props: e ? {
724
- backgroundColor: L.value.table.th.backgroundColor,
725
- color: L.value.table.th.color,
726
- headerColor: L.value.table.th.color,
727
- headerBg: L.value.table.th.backgroundColor,
728
- isFullscreen: $.value,
729
- fullscreenParent: P.value,
730
- forcedWidth: Math.min(800, window.innerWidth * .8),
731
- isCursorPointer: R.value
732
- } : {
733
- hideDetails: !0,
734
- config: {
735
- open: t,
736
- maxHeight: 1e4,
737
- body: {
738
- backgroundColor: L.value.style.chart.backgroundColor,
739
- color: L.value.style.chart.color
740
- },
741
- head: {
742
- backgroundColor: L.value.style.chart.backgroundColor,
743
- color: L.value.style.chart.color
744
- }
745
- }
746
- }
747
- };
748
- });
749
- Ye(() => H.value.showTable, (e) => {
750
- L.value.table.show || (e && L.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
751
- });
752
- function Pr() {
753
- H.value.showTable = !1, gn.value && gn.value.setTableIconState(!1);
754
- }
755
- let Fr = d(() => pr.value.map((e) => ({
756
- ...e,
757
- name: e.display
758
- }))), Ir = d(() => L.value.style.chart.backgroundColor), Lr = d(() => L.value.style.chart.legend), { exportSvg: Rr, getSvg: zr } = Se({
759
- svg: V,
760
- title: d(() => L.value.style.chart.title),
761
- legend: Lr,
762
- legendItems: Fr,
763
- backgroundColor: Ir
764
- });
765
- async function Br({ isCb: e }) {
766
- vn.value = !0, await Ue();
767
- try {
768
- if (e) {
769
- let { blob: e, url: t, text: n, dataUrl: r } = await zr();
770
- await Promise.resolve(L.value.userOptions.callbacks.svg({
771
- blob: e,
772
- url: t,
773
- text: n,
774
- dataUrl: r
775
- }));
776
- } else await Promise.resolve(Rr());
777
- } finally {
778
- vn.value = !1;
779
- }
780
- }
781
- function Vr(e) {
782
- if (e?.stage === "start") {
783
- _n.value = !0;
784
- return;
785
- }
786
- if (e?.stage === "end") {
787
- _n.value = !1;
788
- return;
789
- }
790
- Jn();
791
- }
792
- async function Hr() {
793
- if (kn("copyAlt", {
794
- config: L.value,
795
- dataset: Z.value
796
- }), !L.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(L.value.userOptions.callbacks.altCopy({
801
- config: L.value,
802
- dataset: Z.value
803
- }));
804
- }
805
- function Ur() {
806
- I.value = null, On.value = !0;
807
- }
808
- function Wr() {
809
- I.value = null, j.value = null, M.value = null, On.value = !1;
810
- }
811
- function Gr(e) {
812
- if (!V.value || Tr.value || document.activeElement !== V.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
- I.value = null, j.value = null, M.value = null;
817
- return;
818
- }
819
- if (r) {
820
- if (I.value === null) return;
821
- let e = Z.value[I.value];
822
- if (!e) return;
823
- fr(e, I.value);
824
- return;
825
- }
826
- let a = I.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 && ur(l);
830
- }
831
- let Kr = d(() => ({
832
- headers: Q.value?.colNames ?? [],
833
- rows: Q.value?.bodyA11y ?? []
834
- }));
835
- return Oe({
836
- getData: xr,
837
- getImage: Mr,
838
- generatePdf: qn,
839
- generateCsv: Sr,
840
- generateImage: Jn,
841
- generateSvg: Br,
842
- hideSeries: br,
843
- showSeries: yr,
844
- toggleTable: wr,
845
- toggleAnnotator: Er,
846
- toggleFullscreen: Cr,
847
- copyAlt: Hr
848
- }), (e, n) => (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" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
852
- style: b(`font-family:${L.value.style.fontFamily};width:100%; text-align:center;background:${L.value.style.chart.backgroundColor}`),
853
- id: k.value,
854
- onMouseenter: n[5] ||= () => E(Hn)(!0),
855
- onMouseleave: n[6] ||= () => E(Hn)(!1)
856
- }, [
857
- h("div", {
858
- id: `chart-instructions-${k.value}`,
859
- class: "sr-only"
860
- }, [h("p", null, T(L.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
861
- Kr.value?.rows?.length ? (x(), f(Me, {
862
- key: 0,
863
- uid: k.value,
864
- head: Kr.value.headers,
865
- body: Kr.value.rows,
866
- notice: L.value.a11y.translations.tableAvailable,
867
- caption: L.value.a11y.translations.tableCaption
868
- }, null, 8, [
869
- "uid",
870
- "head",
871
- "body",
872
- "notice",
873
- "caption"
874
- ])) : p("", !0),
875
- L.value.userOptions.buttons.annotator ? (x(), f(E(Xt), {
876
- key: 1,
877
- svgRef: E(V),
878
- backgroundColor: L.value.style.chart.backgroundColor,
879
- color: L.value.style.chart.color,
880
- active: Tr.value,
881
- isCursorPointer: R.value,
882
- onClose: Er
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
- Yn.value ? (x(), m("div", {
899
- key: 2,
900
- ref_key: "noTitle",
901
- ref: an,
902
- class: "vue-data-ui-no-title-space",
903
- style: "height:36px; width: 100%;background:transparent"
904
- }, null, 512)) : p("", !0),
905
- L.value.style.chart.title.text ? (x(), m("div", {
906
- key: 3,
907
- ref_key: "chartTitle",
908
- ref: yn,
909
- style: "width:100%;background:transparent;padding-bottom:24px",
910
- onMouseleave: lr
911
- }, [(x(), f(De, {
912
- key: `title_${cn.value}`,
913
- config: {
914
- title: {
915
- cy: "donut-evolution-div-title",
916
- ...L.value.style.chart.title
917
- },
918
- subtitle: {
919
- cy: "donut-evolution-div-subtitle",
920
- ...L.value.style.chart.title.subtitle
921
- }
922
- }
923
- }, null, 8, ["config"]))], 544)) : p("", !0),
924
- h("div", { id: `legend-top-${k.value}` }, null, 8, et),
925
- L.value.userOptions.show && An.value && (E(Un) || E(Vn)) ? (x(), f(E(Zt), {
926
- ref_key: "userOptionsRef",
927
- ref: gn,
928
- key: `user_options_${on.value}`,
929
- backgroundColor: L.value.style.chart.backgroundColor,
930
- color: L.value.style.chart.color,
931
- isPrinting: E(Gn),
932
- isImaging: E(Kn),
933
- uid: k.value,
934
- hasPdf: L.value.userOptions.buttons.pdf,
935
- hasImg: L.value.userOptions.buttons.img,
936
- hasSvg: L.value.userOptions.buttons.svg,
937
- hasXls: L.value.userOptions.buttons.csv,
938
- hasTable: L.value.userOptions.buttons.table,
939
- hasFullscreen: L.value.userOptions.buttons.fullscreen,
940
- hasAltCopy: L.value.userOptions.buttons.altCopy,
941
- isFullscreen: $.value,
942
- titles: { ...L.value.userOptions.buttonTitles },
943
- chartElement: P.value,
944
- position: L.value.userOptions.position,
945
- hasAnnotator: L.value.userOptions.buttons.annotator,
946
- isAnnotation: Tr.value,
947
- callbacks: L.value.userOptions.callbacks,
948
- printScale: L.value.userOptions.print.scale,
949
- tableDialog: L.value.table.useDialog,
950
- isCursorPointer: R.value,
951
- onToggleFullscreen: Cr,
952
- onGeneratePdf: E(qn),
953
- onGenerateCsv: Sr,
954
- onGenerateImage: Vr,
955
- onGenerateSvg: Br,
956
- onToggleTable: wr,
957
- onToggleAnnotator: Er,
958
- onCopyAlt: Hr,
959
- style: b({ visibility: E(Un) ? E(Vn) ? "visible" : "hidden" : "visible" })
960
- }, ze({ _: 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", tt, [(x(), m("svg", {
1052
- ref_key: "svgRef",
1053
- ref: V,
1054
- xmlns: E(fe),
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:${L.value.style.chart.color};`),
1062
- tabindex: "0",
1063
- onFocus: Ur,
1064
- onBlur: Wr,
1065
- onKeydown: Gr
1066
- }, [
1067
- Ve(E(Yt)),
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, rt)) : p("", !0),
1076
- h("defs", null, [h("linearGradient", {
1077
- id: `hover_${k.value}`,
1078
- x1: "0%",
1079
- y1: "0%",
1080
- x2: "0%",
1081
- y2: "100%"
1082
- }, [h("stop", {
1083
- offset: "0%",
1084
- "stop-color": E(te)(L.value.style.chart.backgroundColor, L.value.style.chart.layout.highlighter.opacity)
1085
- }, null, 8, at), h("stop", {
1086
- offset: "100%",
1087
- "stop-color": E(te)(L.value.style.chart.layout.highlighter.color, L.value.style.chart.layout.highlighter.opacity)
1088
- }, null, 8, ot)], 8, it), h("radialGradient", { id: `focus_${k.value}` }, [
1089
- h("stop", {
1090
- offset: "0%",
1091
- "stop-color": E(te)(E(ge)(L.value.style.chart.backgroundColor), 0)
1092
- }, null, 8, ct),
1093
- h("stop", {
1094
- offset: "77%",
1095
- "stop-color": E(te)("#FFFFFF", 30)
1096
- }, null, 8, lt),
1097
- h("stop", {
1098
- offset: "100%",
1099
- "stop-color": E(te)(E(ge)(L.value.style.chart.backgroundColor), 0)
1100
- }, null, 8, ut)
1101
- ], 8, st)]),
1102
- L.value.style.chart.layout.grid.show ? (x(), m("g", dt, [
1103
- h("line", {
1104
- x1: W.value ? G.value.right : G.value.left,
1105
- x2: W.value ? G.value.right : G.value.left,
1106
- y1: G.value.top,
1107
- y2: G.value.top + G.value.height,
1108
- stroke: L.value.style.chart.layout.grid.stroke,
1109
- "stroke-width": L.value.style.chart.layout.grid.strokeWidth,
1110
- "stroke-linecap": "round"
1111
- }, null, 8, ft),
1112
- h("line", {
1113
- x1: G.value.left,
1114
- x2: G.value.right,
1115
- y1: G.value.bottom,
1116
- y2: G.value.bottom,
1117
- stroke: L.value.style.chart.layout.grid.stroke,
1118
- "stroke-width": L.value.style.chart.layout.grid.strokeWidth,
1119
- "stroke-linecap": "round"
1120
- }, null, 8, pt),
1121
- L.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", mt, [(x(!0), m(u, null, C(B.value.end - B.value.start, (e, t) => (x(), m("line", {
1122
- x1: G.value.left + (t + 1) * Y.value,
1123
- x2: G.value.left + (t + 1) * Y.value,
1124
- y1: G.value.top,
1125
- y2: G.value.bottom,
1126
- stroke: L.value.style.chart.layout.grid.stroke,
1127
- "stroke-width": L.value.style.chart.layout.grid.strokeWidth,
1128
- "stroke-linecap": "round"
1129
- }, null, 8, ht))), 256))])) : p("", !0)
1130
- ])) : p("", !0),
1131
- h("g", null, [L.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
1132
- key: 0,
1133
- ref_key: "yAxisLabel",
1134
- ref: mn,
1135
- "font-size": L.value.style.chart.layout.grid.axis.fontSize,
1136
- fill: L.value.style.chart.layout.grid.axis.color,
1137
- transform: `translate(${W.value ? G.value.absoluteWidth - L.value.style.chart.layout.grid.axis.fontSize / 2 - L.value.style.chart.layout.grid.axis.yLabelOffsetX : L.value.style.chart.layout.grid.axis.fontSize}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
1138
- "text-anchor": "middle",
1139
- style: { transition: "none" }
1140
- }, T(L.value.style.chart.layout.grid.axis.yLabel), 9, gt)) : p("", !0), L.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
1141
- key: 1,
1142
- ref_key: "xAxisLabel",
1143
- ref: pn,
1144
- "text-anchor": "middle",
1145
- x: G.value.absoluteWidth / 2,
1146
- y: G.value.absoluteHeight - 3,
1147
- "font-size": L.value.style.chart.layout.grid.axis.fontSize,
1148
- fill: L.value.style.chart.layout.grid.axis.color
1149
- }, T(L.value.style.chart.layout.grid.axis.xLabel), 9, _t)) : p("", !0)]),
1150
- L.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
1151
- key: 2,
1152
- ref_key: "scaleLabels",
1153
- ref: dn,
1154
- class: v({
1155
- "donut-opacity": !0,
1156
- "donut-behind": j.value !== null
1157
- })
1158
- }, [(x(!0), m(u, null, C(or.value, (e, t) => (x(), m("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (x(), m("line", {
1159
- key: 0,
1160
- x1: W.value ? G.value.right : G.value.left,
1161
- x2: W.value ? G.value.right + 5 : G.value.left - 5,
1162
- y1: e.y,
1163
- y2: e.y,
1164
- stroke: L.value.style.chart.layout.grid.stroke,
1165
- "stroke-width": L.value.style.chart.layout.grid.strokeWidth
1166
- }, null, 8, vt)) : p("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), m("text", {
1167
- key: 1,
1168
- x: W.value ? G.value.right - L.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : G.value.left + L.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
1169
- y: e.y + L.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
1170
- "font-size": L.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
1171
- "text-anchor": W.value ? "start" : "end",
1172
- fill: L.value.style.chart.layout.grid.yAxis.dataLabels.color,
1173
- "font-weight": L.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1174
- }, T(E(ae)(e.value) ? E(le)(L.value.style.chart.layout.dataLabels.formatter, e.value, E(i)({
1175
- p: L.value.style.chart.layout.dataLabels.prefix,
1176
- v: e.value,
1177
- s: L.value.style.chart.layout.dataLabels.suffix,
1178
- r: L.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
1179
- }), {
1180
- datapoint: e,
1181
- seriesIndex: t
1182
- }) : ""), 9, yt)) : p("", !0)]))), 256))], 2)) : p("", !0),
1183
- L.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
1184
- key: 3,
1185
- ref_key: "timeLabelsEls",
1186
- ref: fn,
1187
- class: v({ "donut-opacity": !0 })
1188
- }, [(x(!0), m(u, null, C(B.value.end - B.value.start, (e, n) => (x(), m("g", null, [(L.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === q.value - 1) || !L.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[n] && J.value[n].text ? (x(), m("g", bt, [String(J.value[n].text).includes("\n") ? (x(), m("text", {
1189
- key: 1,
1190
- class: "vue-data-ui-time-label",
1191
- "text-anchor": L.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : L.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1192
- "font-size": L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1193
- fill: L.value.style.chart.layout.grid.xAxis.dataLabels.color,
1194
- transform: `translate(${G.value.left + Y.value * n + Y.value / 2}, ${G.value.bottom + L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${L.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
1195
- innerHTML: E(t)({
1196
- content: String(J.value[n].text),
1197
- fontSize: L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1198
- fill: L.value.style.chart.layout.grid.xAxis.dataLabels.color,
1199
- x: 0,
1200
- y: 0
1201
- })
1202
- }, null, 8, St)) : (x(), m("text", {
1203
- key: 0,
1204
- class: "vue-data-ui-time-label",
1205
- "text-anchor": L.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : L.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1206
- "font-size": L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
1207
- fill: L.value.style.chart.layout.grid.xAxis.dataLabels.color,
1208
- transform: `translate(${G.value.left + Y.value * n + Y.value / 2}, ${G.value.bottom + L.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + L.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${L.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
1209
- }, T(J.value[n].text || ""), 9, xt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
1210
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", null, [L.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
1211
- key: 0,
1212
- class: v({
1213
- "donut-opacity": !0,
1214
- "donut-behind": j.value !== null
1215
- }),
1216
- x1: e.x,
1217
- y1: e.y,
1218
- x2: Z.value[t + 1].x,
1219
- y2: Z.value[t + 1].y,
1220
- stroke: L.value.style.chart.layout.line.stroke,
1221
- "stroke-width": L.value.style.chart.layout.line.strokeWidth,
1222
- "stroke-linecap": "round",
1223
- "stroke-linejoin": "round"
1224
- }, null, 10, Ct)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", wt, [e.subtotal ? (x(), m("circle", {
1225
- key: 0,
1226
- cx: e.x,
1227
- cy: e.y,
1228
- r: e.activeRadius,
1229
- fill: L.value.style.chart.backgroundColor
1230
- }, null, 8, Tt)) : p("", !0)]))]))), 256)),
1231
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1232
- "donut-opacity": !0,
1233
- "donut-behind": t !== j.value && j.value !== null
1234
- }) }, [e.subtotal ? (x(), m("g", Et, [j.value !== null && j.value === t ? (x(), m("g", Dt, [
1235
- (x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Dr(t) ? (x(), m("path", {
1236
- key: 0,
1237
- d: E(ue)(t, {
1238
- x: t.center.endX,
1239
- y: t.center.endY
1240
- }, 12, 12, {
1241
- x: e.x,
1242
- y: e.y
1243
- }, !1, 20),
1244
- stroke: t.color,
1245
- "stroke-width": "1",
1246
- "stroke-linecap": "round",
1247
- "stroke-linejoin": "round",
1248
- fill: "none"
1249
- }, null, 8, Ot)) : p("", !0)]))), 256)),
1250
- (x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Dr(t) ? (x(), m("text", {
1251
- key: 0,
1252
- "data-cy-hover-label": "",
1253
- "text-anchor": E(pe)(t, !0, 0).anchor,
1254
- x: E(pe)(t, !0, 9).x,
1255
- y: E(se)(t, 14, 10),
1256
- fill: L.value.style.chart.layout.grid.yAxis.dataLabels.color,
1257
- "font-size": 8,
1258
- "font-weight": "bold"
1259
- }, T(t.name) + ": " + T(cr(t, e.donut)) + " (" + T(t.value === null ? "-" : sr(t.value, t, n)) + ") ", 9, kt)) : p("", !0)]))), 256)),
1260
- h("g", null, [h("circle", {
1261
- cx: e.x,
1262
- cy: e.y,
1263
- r: e.hoverRadius,
1264
- fill: L.value.style.chart.backgroundColor
1265
- }, null, 8, At)])
1266
- ])) : p("", !0)])) : p("", !0)], 2))), 256)),
1267
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1268
- "donut-opacity": !0,
1269
- "donut-behind": t !== j.value && j.value !== null
1270
- }) }, [e.subtotal === null ? p("", !0) : (x(), m("g", jt, [e.subtotal === 0 ? (x(), m("circle", {
1271
- key: 0,
1272
- cx: e.x,
1273
- cy: e.y,
1274
- r: 3,
1275
- fill: L.value.style.chart.color
1276
- }, null, 8, Mt)) : j.value !== null && j.value === t ? (x(), m("g", Nt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
1277
- d: e.arcSlice,
1278
- fill: `${e.color}`,
1279
- "stroke-width": 1,
1280
- stroke: L.value.style.chart.backgroundColor
1281
- }, null, 8, Pt))), 256))])) : (x(), m("g", Ft, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
1282
- d: e.arcSlice,
1283
- fill: `${e.color}`,
1284
- "stroke-width": .5,
1285
- stroke: L.value.style.chart.backgroundColor
1286
- }, null, 8, It))), 256))]))]))], 2))), 256)),
1287
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
1288
- "donut-opacity": !0,
1289
- "donut-behind": t !== j.value && j.value !== null || rn.value && t !== N.value.index
1290
- }) }, [e.subtotal !== null && L.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
1291
- key: 0,
1292
- "text-anchor": "middle",
1293
- x: e.x,
1294
- y: j.value === e.index && e.subtotal ? e.y + L.value.style.chart.layout.dataLabels.fontSize / 3 : e.y - e.radius - L.value.style.chart.layout.dataLabels.fontSize + L.value.style.chart.layout.dataLabels.offsetY,
1295
- "font-size": L.value.style.chart.layout.dataLabels.fontSize,
1296
- "font-weight": "bold",
1297
- fill: L.value.style.chart.layout.dataLabels.color
1298
- }, T(sr(e.subtotal, e, t)), 9, Lt)) : p("", !0)], 2))), 256)),
1299
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
1300
- x: G.value.left + t * Y.value,
1301
- y: G.value.top,
1302
- width: Y.value,
1303
- height: G.value.height,
1304
- fill: [j.value, dr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
1305
- class: v({ "donut-hover": R.value && e.subtotal && [j.value, dr.value].includes(e.index) }),
1306
- style: { pointerEvents: "none" }
1307
- }, null, 10, Rt))), 256)),
1308
- (x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
1309
- "data-cy-trap": "",
1310
- x: G.value.left + t * Y.value,
1311
- y: G.value.top,
1312
- width: Y.value,
1313
- height: G.value.height,
1314
- fill: "transparent",
1315
- onMouseenter: (t) => ur(e),
1316
- onMouseleave: (t) => lr(e),
1317
- onClick: (n) => fr(e, t),
1318
- class: v({ "donut-hover": R.value && j.value === e.index && e.subtotal })
1319
- }, null, 42, zt))), 256)),
1320
- w(e.$slots, "svg", { svg: {
1321
- ...G.value,
1322
- isPrintingImg: E(Gn) || E(Kn) || _n.value,
1323
- isPrintingSvg: vn.value
1324
- } }, void 0, !0)
1325
- ], 46, nt)), e.$slots.hint ? (x(), m("div", Bt, [w(e.$slots, "hint", y(_({
1326
- hint: L.value.a11y.translations.keyboardNavigation,
1327
- isVisible: On.value
1328
- })), void 0, !0)])) : p("", !0)]),
1329
- e.$slots.watermark ? (x(), m("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Gn) || E(Kn) || _n.value || vn.value })), void 0, !0)])) : p("", !0),
1330
- h("div", {
1331
- ref_key: "chartSlicer",
1332
- ref: Cn,
1333
- style: b(`width:100%;background:${L.value.style.chart.backgroundColor}`),
1334
- "data-dom-to-png-ignore": ""
1335
- }, [q.value > 1 && L.value.style.chart.zoom.show ? (x(), f(Le, {
1336
- ref_key: "slicerComponent",
1337
- ref: Sn,
1338
- key: `slicer_${sn.value}`,
1339
- background: L.value.style.chart.zoom.color,
1340
- borderColor: L.value.style.chart.backgroundColor,
1341
- fontSize: L.value.style.chart.zoom.fontSize,
1342
- useResetSlot: L.value.style.chart.zoom.useResetSlot,
1343
- labelLeft: J.value[0] ? J.value[0].text : "",
1344
- labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
1345
- textColor: L.value.style.chart.color,
1346
- inputColor: L.value.style.chart.zoom.color,
1347
- selectColor: L.value.style.chart.zoom.highlightColor,
1348
- max: q.value,
1349
- min: 0,
1350
- valueStart: B.value.start,
1351
- valueEnd: B.value.end,
1352
- start: B.value.start,
1353
- "onUpdate:start": n[0] ||= (e) => B.value.start = e,
1354
- end: B.value.end,
1355
- "onUpdate:end": n[1] ||= (e) => B.value.end = e,
1356
- refreshStartPoint: L.value.style.chart.zoom.startIndex === null ? 0 : L.value.style.chart.zoom.startIndex,
1357
- refreshEndPoint: L.value.style.chart.zoom.endIndex === null ? q.value : L.value.style.chart.zoom.endIndex + 1,
1358
- enableRangeHandles: L.value.style.chart.zoom.enableRangeHandles,
1359
- enableSelectionDrag: L.value.style.chart.zoom.enableSelectionDrag,
1360
- focusOnDrag: L.value.style.chart.zoom.focusOnDrag,
1361
- focusRangeRatio: L.value.style.chart.zoom.focusRangeRatio,
1362
- isCursorPointer: R.value,
1363
- maxWidth: L.value.style.chart.zoom.maxWidth,
1364
- onReset: Rn
1365
- }, {
1366
- "reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
1367
- _: 3
1368
- }, 8, [
1369
- "background",
1370
- "borderColor",
1371
- "fontSize",
1372
- "useResetSlot",
1373
- "labelLeft",
1374
- "labelRight",
1375
- "textColor",
1376
- "inputColor",
1377
- "selectColor",
1378
- "max",
1379
- "valueStart",
1380
- "valueEnd",
1381
- "start",
1382
- "end",
1383
- "refreshStartPoint",
1384
- "refreshEndPoint",
1385
- "enableRangeHandles",
1386
- "enableSelectionDrag",
1387
- "focusOnDrag",
1388
- "focusRangeRatio",
1389
- "isCursorPointer",
1390
- "maxWidth"
1391
- ])) : p("", !0)], 4),
1392
- h("div", { id: `legend-bottom-${k.value}` }, null, 8, Ht),
1393
- hn.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Re, {
1394
- key: 6,
1395
- to: L.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1396
- }, [h("div", {
1397
- ref_key: "chartLegend",
1398
- ref: bn
1399
- }, [w(e.$slots, "legend", { legend: pr.value }, () => [L.value.style.chart.legend.show ? (x(), f(Fe, {
1400
- key: `legend_${un.value}`,
1401
- legendSet: pr.value,
1402
- config: hr.value,
1403
- onClickMarker: n[2] ||= ({ legend: e }) => _r(e.uid)
1404
- }, {
1405
- item: D(({ legend: e, index: t }) => [h("div", {
1406
- onClick: (t) => _r(e.uid),
1407
- style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
1408
- }, T(e.display), 13, Ut)]),
1409
- legendToggle: D(() => [pr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !E(Pn) ? (x(), f(je, {
1410
- key: 0,
1411
- backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
1412
- color: L.value.style.chart.legend.selectAllToggle.color,
1413
- fontSize: L.value.style.chart.legend.fontSize,
1414
- checked: A.value.length > 0,
1415
- onToggle: gr
1416
- }, null, 8, [
1417
- "backgroundColor",
1418
- "color",
1419
- "fontSize",
1420
- "checked"
1421
- ])) : p("", !0)]),
1422
- _: 1
1423
- }, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1424
- e.$slots.source ? (x(), m("div", {
1425
- key: 7,
1426
- ref_key: "source",
1427
- ref: xn,
1428
- dir: "auto"
1429
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1430
- An.value && L.value.userOptions.buttons.table ? (x(), f(Ke(Nr.value.component), He({ key: 8 }, Nr.value.props, {
1431
- ref_key: "tableUnit",
1432
- ref: F,
1433
- onClose: Pr
1434
- }), ze({
1435
- content: D(() => [(x(), f(E(Jt), {
1436
- key: `table_${ln.value}`,
1437
- colNames: Q.value.colNames,
1438
- head: Q.value.head,
1439
- body: Q.value.body,
1440
- config: Q.value.config,
1441
- title: L.value.table.useDialog ? "" : Nr.value.title,
1442
- withCloseButton: !L.value.table.useDialog,
1443
- isCursorPointer: R.value,
1444
- onClose: Pr
1445
- }, {
1446
- th: D(({ th: e }) => [Be(T(e.name ?? e), 1)]),
1447
- td: D(({ td: e }) => [e.value === null ? (x(), m("span", Wt, "-")) : (x(), m("b", Gt, T(isNaN(e.value) ? "" : L.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(L.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : L.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(L.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
1448
- _: 1
1449
- }, 8, [
1450
- "colNames",
1451
- "head",
1452
- "body",
1453
- "config",
1454
- "title",
1455
- "withCloseButton",
1456
- "isCursorPointer"
1457
- ]))]),
1458
- _: 2
1459
- }, [L.value.table.useDialog ? {
1460
- name: "title",
1461
- fn: D(() => [Be(T(Nr.value.title), 1)]),
1462
- key: "0"
1463
- } : void 0, L.value.table.useDialog ? {
1464
- name: "actions",
1465
- fn: D(() => [h("button", {
1466
- tabindex: "0",
1467
- class: "vue-ui-user-options-button",
1468
- onClick: n[3] ||= (e) => Sr(L.value.userOptions.callbacks.csv),
1469
- style: b({ cursor: R.value ? "cursor" : "default" })
1470
- }, [Ve(E(qt), {
1471
- name: "fileCsv",
1472
- stroke: Nr.value.props.color
1473
- }, null, 8, ["stroke"])], 4)]),
1474
- key: "1"
1475
- } : void 0]), 1040)) : p("", !0),
1476
- L.value.style.chart.dialog.show ? (x(), f(E($t), {
1477
- key: 9,
1478
- ref_key: "dialog",
1479
- ref: Ar,
1480
- onClose: n[4] ||= (e) => {
1481
- N.value = null, rn.value = !1, M.value = null, j.value = null, dr.value = null;
1482
- },
1483
- backgroundColor: L.value.style.chart.dialog.backgroundColor,
1484
- color: L.value.style.chart.dialog.color,
1485
- headerBg: L.value.style.chart.dialog.header.backgroundColor,
1486
- headerColor: L.value.style.chart.dialog.header.color,
1487
- isFullscreen: $.value,
1488
- fullscreenParent: P.value
1489
- }, {
1490
- title: D(() => [Be(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
1491
- content: D(() => [N.value ? (x(), f(E(Qt), {
1492
- key: 0,
1493
- config: kr.value,
1494
- dataset: Or.value
1495
- }, null, 8, ["config", "dataset"])) : p("", !0)]),
1496
- _: 1
1497
- }, 8, [
1498
- "backgroundColor",
1499
- "color",
1500
- "headerBg",
1501
- "headerColor",
1502
- "isFullscreen",
1503
- "fullscreenParent"
1504
- ])) : p("", !0),
1505
- E(Pn) ? (x(), f(xe, { key: 10 })) : p("", !0)
1506
- ], 46, Qe));
1507
- }
1508
- }, [["__scopeId", "data-v-b09f1aa6"]]);
1509
- //#endregion
1510
- export { Ze as n, Kt as t };