vue-data-ui 3.23.8 → 3.23.10

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 (179) hide show
  1. package/dist/{Arrow-CF0VFcBH.js → Arrow-bwmME0jw.js} +1 -1
  2. package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-DBVHlhQZ.js} +2 -2
  3. package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-B4n7br_R.js} +1 -1
  4. package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-wRhcG_-q.js} +1 -1
  5. package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-BZjzzyQo.js} +2 -2
  6. package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-B9kUMLSz.js} +2 -2
  7. package/dist/{DataTable-BbKgJ5UI.js → DataTable-DMsScfkx.js} +2 -2
  8. package/dist/{HillActions-BD9j_sOU.js → HillActions-IWPfuceW.js} +1 -1
  9. package/dist/{Legend-CQxUgOd-.js → Legend-DWEFXq9E.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-Crs4-xWz.js} +3 -3
  11. package/dist/{PackageVersion-C9lXG-wa.js → PackageVersion-DNTJUKh1.js} +1 -1
  12. package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-DJ607Hx6.js} +3 -3
  13. package/dist/{Shape-C21CMlWS.js → Shape-BAhF1ToV.js} +1 -1
  14. package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-sXtk2ZZ2.js} +2 -2
  15. package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-BE50SZQH.js} +1 -1
  16. package/dist/{Title-BE3qg9xl.js → Title-BGLPsoA9.js} +1 -1
  17. package/dist/{Tooltip-DhjyfHwz.js → Tooltip-DO4-MVhc.js} +1 -1
  18. package/dist/{UserOptions-Dt98of5H.js → UserOptions-HQyukyl2.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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BYIvdTe8.js → dom-to-png-Cg_3vpOo.js} +1 -1
  90. package/dist/{exposedLib-C0DPCgFj.js → exposedLib-vfRiIvq_.js} +1 -1
  91. package/dist/{img-Bnokohej.js → img-tU9mMt9W.js} +1 -1
  92. package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-C_lMnQRs.js} +1 -1
  93. package/dist/{lib-Bttd6u5E.js → lib-AT2PUyyh.js} +1 -1
  94. package/dist/{package-BieOvFq9.js → package-enC-Nivt.js} +1 -1
  95. package/dist/{pdf-CVIDfCrS.js → pdf-ColHHJFH.js} +1 -1
  96. package/dist/{render-common-C5vqxC-e.js → render-common-CqcoYfCA.js} +2 -2
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/vue-data-ui.d.ts +2 -7
  102. package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CW0vJS1B.js} +1 -1
  103. package/dist/{usePrinter-DN5bYhTG.js → usePrinter-BFS7d6eb.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui--BufRcn0.js → vue-data-ui-DD7J3yor.js} +69 -69
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-DgrcdAgz.js +1829 -0
  108. package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-DJNjilyy.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-j6nm1rbi.js → vue-ui-age-pyramid-DI8b5E2H.js} +6 -6
  110. package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-7ZVfFskI.js} +6 -6
  111. package/dist/{vue-ui-bullet-CKQ35-dP.js → vue-ui-bullet-Dyd5F1Wa.js} +7 -7
  112. package/dist/{vue-ui-bump-BXp-EozA.js → vue-ui-bump-DzB3WQnq.js} +166 -166
  113. package/dist/{vue-ui-candlestick-DvvyheWp.js → vue-ui-candlestick--YWEtek_.js} +7 -7
  114. package/dist/{vue-ui-carousel-table-D_dEXiNd.js → vue-ui-carousel-table-Dn3RZU0p.js} +4 -4
  115. package/dist/{vue-ui-chestnut-eCwEo5D9.js → vue-ui-chestnut-BIsXeXiU.js} +5 -5
  116. package/dist/{vue-ui-chord-C6O2lzrg.js → vue-ui-chord-BimXqVsF.js} +8 -8
  117. package/dist/{vue-ui-circle-pack-D_nwf-RO.js → vue-ui-circle-pack-DKQEhL-L.js} +13 -16
  118. package/dist/{vue-ui-cursor-Bu9PM_P_.js → vue-ui-cursor-C-P2D5i6.js} +3 -3
  119. package/dist/{vue-ui-dag-DSx4o3Rk.js → vue-ui-dag-CThnMMWA.js} +7 -7
  120. package/dist/{vue-ui-dashboard-BM747fZF.js → vue-ui-dashboard-D0NNTRO3.js} +69 -69
  121. package/dist/{vue-ui-digits-BtvY8wIB.js → vue-ui-digits-9tGjGzZh.js} +3 -3
  122. package/dist/{vue-ui-donut-DQHLJR8y.js → vue-ui-donut-DLN9uPOi.js} +2 -2
  123. package/dist/vue-ui-donut-EZu8p7HF.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-PSmZvtzE.js → vue-ui-donut-evolution-mu-iGTIn.js} +9 -9
  125. package/dist/{vue-ui-dumbbell-CGquzMdY.js → vue-ui-dumbbell-Dvldi3Oo.js} +13 -16
  126. package/dist/{vue-ui-flow-9el51M_Y.js → vue-ui-flow-DYZBT5Cb.js} +13 -16
  127. package/dist/{vue-ui-funnel-D7Gy--C2.js → vue-ui-funnel--NaxO0cZ.js} +13 -16
  128. package/dist/{vue-ui-galaxy-Dxj9UwDo.js → vue-ui-galaxy-D6eYN8Ut.js} +291 -293
  129. package/dist/{vue-ui-gauge-Cn9YVMXf.js → vue-ui-gauge-DTIEl2Xb.js} +6 -6
  130. package/dist/{vue-ui-geo-BPOiMgSG.js → vue-ui-geo-CQqNemR6.js} +7 -7
  131. package/dist/{vue-ui-gizmo-DWHHzGBD.js → vue-ui-gizmo-ClunTUxX.js} +3 -3
  132. package/dist/{vue-ui-heatmap-BE1K40ib.js → vue-ui-heatmap-B_pSQNzO.js} +7 -7
  133. package/dist/{vue-ui-hill-Dr4UkjNJ.js → vue-ui-hill-Byp0Tnny.js} +6 -6
  134. package/dist/{vue-ui-history-plot-CxCKkOf0.js → vue-ui-history-plot-CMu8ST1E.js} +14 -17
  135. package/dist/{vue-ui-horizontal-bar-BkmnLr-i.js → vue-ui-horizontal-bar-BQn7WxQ-.js} +10 -10
  136. package/dist/{vue-ui-kpi-BBWW791i.js → vue-ui-kpi-BKw5t-rX.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BNm0MQDw.js} +2 -2
  138. package/dist/{vue-ui-molecule-CxkcMjno.js → vue-ui-molecule-DRwQV5hN.js} +232 -238
  139. package/dist/{vue-ui-mood-radar-C4CzuVdT.js → vue-ui-mood-radar-Bj3KTWYj.js} +298 -300
  140. package/dist/{vue-ui-nested-donuts-DSDJQExL.js → vue-ui-nested-donuts-83Wh2w6z.js} +15 -18
  141. package/dist/{vue-ui-onion-Cu0dBdFS.js → vue-ui-onion-C27GpneA.js} +9 -9
  142. package/dist/{vue-ui-parallel-coordinate-plot-D_EwS2Xg.js → vue-ui-parallel-coordinate-plot-BklOszr1.js} +212 -212
  143. package/dist/{vue-ui-quadrant-jyEV4UXd.js → vue-ui-quadrant-_J-Qr7-K.js} +9 -9
  144. package/dist/{vue-ui-quick-chart-DiWQ1MyR.js → vue-ui-quick-chart-DcOUq4ym.js} +7 -7
  145. package/dist/{vue-ui-radar-BmgJ961A.js → vue-ui-radar-FlRlsoAd.js} +8 -8
  146. package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-eCxEZD8C.js} +2 -2
  147. package/dist/{vue-ui-relation-circle-DV54YMDh.js → vue-ui-relation-circle-DnsxHv7t.js} +6 -6
  148. package/dist/{vue-ui-ridgeline-izSLMS2A.js → vue-ui-ridgeline-TopTLyaE.js} +485 -485
  149. package/dist/vue-ui-rings-obVfb09j.js +1250 -0
  150. package/dist/{vue-ui-scatter-D_qfVTjs.js → vue-ui-scatter-BHSuA506.js} +9 -9
  151. package/dist/{vue-ui-skeleton-ORnWxVcQ.js → vue-ui-skeleton-CNOam3kC.js} +3 -3
  152. package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-YdyidjBH.js} +2 -2
  153. package/dist/{vue-ui-spark-trend-CnWD2enH.js → vue-ui-spark-trend-CS5GLtYL.js} +3 -3
  154. package/dist/{vue-ui-sparkbar-Cgbnebde.js → vue-ui-sparkbar-DDHwgP4k.js} +3 -3
  155. package/dist/{vue-ui-sparkgauge-Cvlb65Sh.js → vue-ui-sparkgauge-BcQu9V3h.js} +3 -3
  156. package/dist/{vue-ui-sparkhistogram-BiTJ8hLF.js → vue-ui-sparkhistogram-CPsA5P6c.js} +4 -4
  157. package/dist/{vue-ui-sparkline-D_lUtZ0M.js → vue-ui-sparkline-CnbO-GkM.js} +3 -3
  158. package/dist/{vue-ui-sparkstackbar-44IKCY9x.js → vue-ui-sparkstackbar-4tsTxMe2.js} +4 -4
  159. package/dist/{vue-ui-stackbar-DF3p95Bo.js → vue-ui-stackbar-2_SrMFNT.js} +575 -571
  160. package/dist/{vue-ui-stackline-DhKuZEnZ.js → vue-ui-stackline-BNCWO_jG.js} +612 -608
  161. package/dist/{vue-ui-strip-plot-C-ulifjS.js → vue-ui-strip-plot-2Y1c02Ek.js} +13 -16
  162. package/dist/{vue-ui-table-CpnarLaC.js → vue-ui-table-DJZxHo5N.js} +5 -5
  163. package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-BacaEjQy.js} +5 -5
  164. package/dist/{vue-ui-table-sparkline-Du4MfWFg.js → vue-ui-table-sparkline-B8oAU5yr.js} +4 -4
  165. package/dist/{vue-ui-thermometer-CrbJmWkG.js → vue-ui-thermometer-BGtxNU9T.js} +6 -6
  166. package/dist/{vue-ui-timer-CG_cHMLa.js → vue-ui-timer-CWZgSpP8.js} +5 -5
  167. package/dist/{vue-ui-tiremarks-C9op3rMU.js → vue-ui-tiremarks-LLVCPyg9.js} +6 -6
  168. package/dist/{vue-ui-treemap-X6xvCAx5.js → vue-ui-treemap-ehBl9JMC.js} +16 -19
  169. package/dist/{vue-ui-waffle-CC8t5ghD.js → vue-ui-waffle-DpBAXbhh.js} +288 -290
  170. package/dist/{vue-ui-wheel-qsjBqrXG.js → vue-ui-wheel-C4OHPrtC.js} +6 -6
  171. package/dist/{vue-ui-word-cloud-PpZeiZUt.js → vue-ui-word-cloud-CDHn3Kwa.js} +13 -16
  172. package/dist/{vue-ui-world-CvLyEEZQ.js → vue-ui-world-ao1xf04I.js} +13 -16
  173. package/dist/{vue-ui-xy-eKIptvTV.js → vue-ui-xy-DmJDCl3c.js} +2 -2
  174. package/dist/{vue-ui-xy-BJ96qlGZ.js → vue-ui-xy-_U3wmtCf.js} +1502 -1496
  175. package/dist/{vue-ui-xy-canvas-B-KxaFGF.js → vue-ui-xy-canvas-Bx-9y53V.js} +334 -330
  176. package/package.json +1 -1
  177. package/dist/vue-ui-3d-bar-Dspy8rjO.js +0 -1831
  178. package/dist/vue-ui-donut-DtmxMF94.js +0 -2415
  179. package/dist/vue-ui-rings-B-vqjj5N.js +0 -1252
@@ -0,0 +1,1829 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Ot as o, Pt as s, S as c, X as l, Y as u, b as d, f, h as p, i as m, jt as ee, kt as te, p as ne, pt as re, q as ie, t as ae, tt as oe, w as se } from "./lib-AT2PUyyh.js";
3
+ import { n as ce } from "./useHints-Dq_w2E8B.js";
4
+ import { t as le } from "./useConfig-DwdGsXTx.js";
5
+ import { t as ue } from "./usePrinter-BFS7d6eb.js";
6
+ import { n as de, t as fe } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as pe } from "./useNestedProp-CW0vJS1B.js";
8
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as he } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as ge } from "./img-tU9mMt9W.js";
11
+ import { n as _e } from "./Title-BGLPsoA9.js";
12
+ import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as h } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as xe } from "./A11yDataTable-DdRsVULz.js";
16
+ import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
17
+ import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
18
+ import { t as we } from "./vue_ui_3d_bar-C4R7o-yX.js";
19
+ import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Te, createTextVNode as Ee, createVNode as S, defineAsyncComponent as C, guardReactiveProps as w, mergeProps as De, nextTick as Oe, normalizeClass as ke, normalizeProps as T, normalizeStyle as E, onMounted as Ae, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as je, toDisplayString as j, toRefs as Me, unref as M, watch as Ne, withCtx as N, withKeys as Pe, withModifiers as Fe } from "vue";
20
+ //#region src/components/vue-ui-3d-bar.vue
21
+ var Ie = /* @__PURE__ */ e({ default: () => nn }), Le = ["id"], Re = ["id"], ze = {
22
+ "aria-live": "polite",
23
+ class: "sr-only"
24
+ }, Be = { style: { position: "relative" } }, Ve = [
25
+ "xmlns",
26
+ "viewBox",
27
+ "aria-describedby"
28
+ ], He = ["width", "height"], Ue = { key: 1 }, We = [
29
+ "x",
30
+ "y",
31
+ "font-size",
32
+ "font-weight",
33
+ "fill"
34
+ ], Ge = ["x", "y"], Ke = [
35
+ "cx",
36
+ "cy",
37
+ "stroke",
38
+ "opacity"
39
+ ], qe = ["d", "stroke"], Je = ["d", "stroke"], Ye = { key: 4 }, Xe = { key: 0 }, Ze = [
40
+ "stroke-dasharray",
41
+ "d",
42
+ "stroke",
43
+ "stroke-width"
44
+ ], Qe = [
45
+ "stroke-dasharray",
46
+ "d",
47
+ "stroke",
48
+ "stroke-width"
49
+ ], $e = [
50
+ "stroke-dasharray",
51
+ "d",
52
+ "stroke",
53
+ "stroke-width"
54
+ ], et = [
55
+ "stroke-dasharray",
56
+ "d",
57
+ "stroke",
58
+ "stroke-width"
59
+ ], tt = { key: 1 }, nt = [
60
+ "d",
61
+ "stroke",
62
+ "stroke-width",
63
+ "fill"
64
+ ], rt = [
65
+ "d",
66
+ "stroke",
67
+ "stroke-width",
68
+ "fill"
69
+ ], it = [
70
+ "d",
71
+ "stroke",
72
+ "stroke-width",
73
+ "fill"
74
+ ], at = { key: 2 }, ot = ["aria-label"], st = [
75
+ "d",
76
+ "fill",
77
+ "onMouseenter",
78
+ "onClick",
79
+ "onMouseout"
80
+ ], ct = [
81
+ "d",
82
+ "fill",
83
+ "onMouseenter",
84
+ "onClick",
85
+ "onMouseout"
86
+ ], lt = [
87
+ "d",
88
+ "fill",
89
+ "onMouseenter",
90
+ "onClick",
91
+ "onMouseout"
92
+ ], ut = [
93
+ "d",
94
+ "onMouseenter",
95
+ "onClick",
96
+ "onMouseout"
97
+ ], dt = ["d"], ft = ["d", "stroke"], pt = ["onClick"], mt = ["stroke", "d"], ht = [
98
+ "cx",
99
+ "cy",
100
+ "fill",
101
+ "stroke"
102
+ ], gt = [
103
+ "x",
104
+ "y",
105
+ "width",
106
+ "height"
107
+ ], _t = [
108
+ "x",
109
+ "y",
110
+ "width",
111
+ "height"
112
+ ], vt = { key: 3 }, yt = ["d", "stroke"], bt = [
113
+ "d",
114
+ "fill",
115
+ "stroke"
116
+ ], xt = { key: 0 }, St = [
117
+ "text-anchor",
118
+ "x",
119
+ "y",
120
+ "fill",
121
+ "font-size",
122
+ "font-weight"
123
+ ], Ct = [
124
+ "text-anchor",
125
+ "x",
126
+ "y",
127
+ "fill",
128
+ "font-size",
129
+ "font-weight"
130
+ ], wt = { key: 4 }, Tt = [
131
+ "d",
132
+ "fill",
133
+ "stroke"
134
+ ], Et = { key: 5 }, Dt = { key: 0 }, Ot = [
135
+ "stroke-dasharray",
136
+ "d",
137
+ "stroke",
138
+ "stroke-width"
139
+ ], kt = [
140
+ "stroke-dasharray",
141
+ "d",
142
+ "stroke",
143
+ "stroke-width"
144
+ ], At = [
145
+ "stroke-dasharray",
146
+ "d",
147
+ "stroke",
148
+ "stroke-width"
149
+ ], jt = [
150
+ "stroke-dasharray",
151
+ "d",
152
+ "stroke",
153
+ "stroke-width"
154
+ ], Mt = [
155
+ "d",
156
+ "stroke",
157
+ "stroke-width",
158
+ "fill"
159
+ ], Nt = [
160
+ "d",
161
+ "stroke",
162
+ "stroke-width",
163
+ "fill"
164
+ ], Pt = ["d"], Ft = { key: 1 }, It = ["aria-label"], Lt = [
165
+ "onMouseenter",
166
+ "onClick",
167
+ "onMouseout",
168
+ "d",
169
+ "fill"
170
+ ], Rt = [
171
+ "onMouseenter",
172
+ "onClick",
173
+ "onMouseout",
174
+ "d"
175
+ ], zt = [
176
+ "onMouseenter",
177
+ "onClick",
178
+ "onMouseout",
179
+ "d",
180
+ "fill"
181
+ ], Bt = ["onClick"], Vt = ["stroke", "d"], Ht = [
182
+ "cx",
183
+ "cy",
184
+ "fill",
185
+ "stroke"
186
+ ], Ut = [
187
+ "x",
188
+ "y",
189
+ "width",
190
+ "height"
191
+ ], Wt = [
192
+ "x",
193
+ "y",
194
+ "width",
195
+ "height"
196
+ ], Gt = { key: 3 }, Kt = ["d", "stroke"], qt = [
197
+ "d",
198
+ "fill",
199
+ "stroke"
200
+ ], Jt = { key: 0 }, Yt = [
201
+ "text-anchor",
202
+ "x",
203
+ "y",
204
+ "fill",
205
+ "font-size",
206
+ "font-weight"
207
+ ], Xt = [
208
+ "text-anchor",
209
+ "x",
210
+ "y",
211
+ "fill",
212
+ "font-size",
213
+ "font-weight"
214
+ ], Zt = { key: 4 }, Qt = [
215
+ "d",
216
+ "fill",
217
+ "stroke"
218
+ ], $t = {
219
+ key: 4,
220
+ class: "vue-data-ui-watermark"
221
+ }, en = { key: 0 }, tn = { key: 1 }, nn = /*#__PURE__*/ ve({
222
+ __name: "vue-ui-3d-bar",
223
+ props: {
224
+ config: {
225
+ type: Object,
226
+ default() {
227
+ return {};
228
+ }
229
+ },
230
+ dataset: {
231
+ type: Object,
232
+ default() {
233
+ return {};
234
+ }
235
+ }
236
+ },
237
+ emits: ["selectDatapoint", "copyAlt"],
238
+ setup(e, { expose: ve, emit: Ie }) {
239
+ let nn = C(() => import("./BaseIcon-B4n7br_R.js").then((e) => e.n)), rn = C(() => import("./vue-ui-accordion-DJNjilyy.js").then((e) => e.n)), an = C(() => import("./DataTable-DMsScfkx.js")), on = C(() => import("./PenAndPaper-DJ607Hx6.js").then((e) => e.t)), sn = C(() => import("./UserOptions-HQyukyl2.js").then((e) => e.n)), cn = C(() => import("./PackageVersion-DNTJUKh1.js").then((e) => e.t)), ln = C(() => import("./BaseDraggableDialog-DBVHlhQZ.js").then((e) => e.n)), { vue_ui_3d_bar: un } = le(), { isThemeValid: dn, warnInvalidTheme: fn } = me(), P = e, pn = Ie, mn = _(() => !!P.dataset && Object.keys(P.dataset).length), F = O(ie()), I = O(null), L = O(!1), hn = O(0), gn = O(0), _n = O(null), vn = O(null), yn = O(null), bn = O(null), R = O(!1), xn = O(null), Sn = O(null), z = O(null), B = O(""), V = O(An());
240
+ ce({
241
+ config: () => V.value,
242
+ dataset: () => P.dataset,
243
+ component: "VueUi3dBar",
244
+ rules: [{
245
+ test: (e) => e?.series && e.series.length > 8,
246
+ message: [
247
+ "👀 The number of series is > 8. Consider:",
248
+ "",
249
+ "▶️ Grouping small values dynamically into a single \"Other\" series.",
250
+ "",
251
+ "▶️ Using filters to let users choose a maximum number of series to display.",
252
+ "",
253
+ "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
254
+ ]
255
+ }, {
256
+ test: (e) => e?.series && e.series.some((e) => e?.breakdown && e.breakdown.length > 6),
257
+ message: [
258
+ "👀 Some donut breakdowns have > 6 data points. Consider:",
259
+ "",
260
+ "▶️ Grouping small values dynamically into a single \"Other\" data point."
261
+ ]
262
+ }]
263
+ });
264
+ let Cn = _(() => V.value.userOptions.useCursorPointer), wn = _(() => i({
265
+ defaultConfig: {
266
+ customPalette: [
267
+ "#808080",
268
+ "#ADADAD",
269
+ "#DBDBDB"
270
+ ],
271
+ userOptions: { show: !1 },
272
+ table: { show: !1 },
273
+ style: { chart: {
274
+ backgroundColor: "#99999930",
275
+ color: "#6A6A6A",
276
+ bar: {
277
+ color: "#ADADAD",
278
+ stroke: "#6A6A6A"
279
+ },
280
+ box: { stroke: "#6A6A6A" }
281
+ } }
282
+ },
283
+ userConfig: V.value.skeletonConfig ?? {}
284
+ })), { loading: Tn, FINAL_DATASET: H } = de({
285
+ ...Me(P),
286
+ FINAL_CONFIG: V,
287
+ prepareConfig: An,
288
+ callback: () => {
289
+ Promise.resolve().then(async () => {
290
+ await Oe(), zn();
291
+ });
292
+ },
293
+ skeletonDataset: P.config?.skeletonDataset ?? { series: [
294
+ {
295
+ name: "_",
296
+ value: 21,
297
+ breakdown: [{
298
+ name: "_",
299
+ value: 13
300
+ }, {
301
+ name: "_",
302
+ value: 8
303
+ }]
304
+ },
305
+ {
306
+ name: "_",
307
+ value: 13,
308
+ breakdown: [{
309
+ name: "_",
310
+ value: 8
311
+ }, {
312
+ name: "_",
313
+ value: 5
314
+ }]
315
+ },
316
+ {
317
+ name: "_",
318
+ value: 8,
319
+ breakdown: [{
320
+ name: "_",
321
+ value: 5
322
+ }, {
323
+ name: "_",
324
+ value: 3
325
+ }]
326
+ }
327
+ ] },
328
+ skeletonConfig: i({
329
+ defaultConfig: V.value,
330
+ userConfig: wn.value
331
+ })
332
+ }), { userOptionsVisible: En, setUserOptionsVisibility: Dn, keepUserOptionState: On } = Se({ config: V.value }), { svgRef: kn } = Ce({ config: V.value.style.chart.title });
333
+ function An() {
334
+ let e = pe({
335
+ userConfig: P.config,
336
+ defaultConfig: un
337
+ }), t = e.theme;
338
+ if (!t) return e;
339
+ if (!dn.value(e)) return fn(e), e;
340
+ let n = pe({
341
+ userConfig: we[t] || P.config,
342
+ defaultConfig: e
343
+ }), r = pe({
344
+ userConfig: P.config,
345
+ defaultConfig: n
346
+ });
347
+ return {
348
+ ...r,
349
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || s
350
+ };
351
+ }
352
+ Ne(() => P.config, (e) => {
353
+ Tn.value || (V.value = An()), En.value = !V.value.userOptions.showOnChartHover, Hn(), hn.value += 1, gn.value += 1, U.value.showTable = V.value.table.show;
354
+ }, { deep: !0 });
355
+ let { isPrinting: jn, isImaging: Mn, generatePdf: Nn, generateImage: Pn } = ue({
356
+ elementId: `3d_bar_${F.value}`,
357
+ fileName: V.value.style.chart.title.text || "vue-ui-3d-bar",
358
+ options: V.value.userOptions.print
359
+ }), Fn = _(() => se(V.value.customPalette)), U = O({ showTable: V.value.table.show });
360
+ Ne(V, () => {
361
+ U.value = { showTable: V.value.table.show };
362
+ }, { immediate: !0 });
363
+ let W = _(() => H.value.series && H.value.series.length), In = O(V.value.style.chart.box.dimensions.width * (W.value ? 2 : 1)), Ln = O(V.value.style.chart.box.dimensions.height), G = _(() => ({
364
+ height: Ln.value,
365
+ width: In.value,
366
+ absoluteWidth: In.value,
367
+ top: V.value.style.chart.box.dimensions.top,
368
+ bottom: V.value.style.chart.box.dimensions.bottom,
369
+ left: V.value.style.chart.box.dimensions.left,
370
+ right: V.value.style.chart.box.dimensions.right,
371
+ perspective: V.value.style.chart.box.dimensions.perspective
372
+ })), K = _(() => {
373
+ if (W.value) {
374
+ let e = H.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), t = H.value.series.map((t, n) => ({
375
+ ...t,
376
+ seriesIndex: n,
377
+ id: ie(),
378
+ proportion: (t.value || 0) / e,
379
+ color: c(t.color) || Fn.value[n] || s[n] || s[n % s.length],
380
+ breakdown: t.breakdown ? t.breakdown.sort((e, t) => t.value - e.value) : null
381
+ })).sort((e, t) => t.value - e.value), n = [], r = 0;
382
+ for (let e = 0; e < t.length; e += 1) n.push({
383
+ ...t[e],
384
+ fill: Wn(r, t[e].proportion, t[e].breakdown, t[e].color)
385
+ }), r += t[e].proportion;
386
+ return n;
387
+ }
388
+ return null;
389
+ }), q = _(() => {
390
+ let e = G.value.width / 2;
391
+ return {
392
+ right: `M${e},${G.value.top} ${G.value.width - G.value.right}, ${G.value.top + G.value.perspective} ${G.value.width - G.value.right},${G.value.height - G.value.bottom - G.value.perspective} ${e},${G.value.height - G.value.bottom}`,
393
+ left: `M${e},${G.value.top} ${G.value.left},${G.value.top + G.value.perspective} ${G.value.left},${G.value.height - G.value.bottom - G.value.perspective} ${e},${G.value.height - G.value.bottom}`,
394
+ side: `M${e},${G.value.height - G.value.bottom} ${e},${G.value.top + G.value.perspective * 2}`,
395
+ topSides: `M${G.value.left},${G.value.top + G.value.perspective} ${e},${G.value.top + G.value.perspective * 2} ${G.value.width - G.value.right},${G.value.top + G.value.perspective}`,
396
+ tubeTop: `M${G.value.left},${G.value.top + G.value.perspective} C ${G.value.left},${G.value.top - G.value.perspective / 3} ${G.value.width - G.value.right},${G.value.top - G.value.perspective / 3} ${G.value.width - G.value.right},${G.value.top + G.value.perspective} C ${G.value.width - G.value.right},${G.value.top + G.value.perspective * 2.3} ${G.value.left},${G.value.top + G.value.perspective * 2.3} ${G.value.left},${G.value.top + G.value.perspective}`,
397
+ tubeLeft: `M${G.value.left},${G.value.top + G.value.perspective} ${G.value.left},${G.value.height - G.value.bottom - G.value.perspective}`,
398
+ tubeRight: `M${G.value.width - G.value.right},${G.value.top + G.value.perspective} ${G.value.width - G.value.right},${G.value.height - G.value.bottom - G.value.perspective}`,
399
+ tubeBottom: `M${G.value.width - G.value.right},${G.value.height - G.value.bottom - G.value.perspective} C ${G.value.width - G.value.right},${G.value.height} ${G.value.left},${G.value.height} ${G.value.left},${G.value.height - G.value.bottom - G.value.perspective}`
400
+ };
401
+ }), Rn = O(V.value.style.chart.animation.use ? 0 : H.value.percentage);
402
+ function zn() {
403
+ let e = 0, t = V.value.style.chart.animation.speed, n = .005 * V.value.style.chart.animation.acceleration;
404
+ function r() {
405
+ Rn.value += t + e, e += n, Rn.value < H.value.percentage ? requestAnimationFrame(r) : Rn.value = H.value.percentage;
406
+ }
407
+ V.value.style.chart.animation.use && (Rn.value = 0, r());
408
+ }
409
+ Ae(() => {
410
+ Hn(), zn();
411
+ });
412
+ let Bn = _(() => V.value.debug);
413
+ function Vn() {
414
+ Bn.value && (ee(P.dataset) ? oe({
415
+ componentName: "VueUi3dBar",
416
+ type: "dataset",
417
+ debug: Bn.value
418
+ }) : P.dataset.series ? P.dataset.series.forEach((e, t) => {
419
+ re({
420
+ datasetObject: e,
421
+ requiredAttributes: ["name", "value"]
422
+ }).forEach((e) => {
423
+ oe({
424
+ componentName: "VueUi3dBar",
425
+ type: "datasetSerieAttribute",
426
+ property: e,
427
+ index: t,
428
+ debug: Bn.value
429
+ });
430
+ }), e.breakdown && e.breakdown.forEach((e, n) => {
431
+ re({
432
+ datasetObject: e,
433
+ requiredAttributes: ["name", "value"]
434
+ }).forEach((e) => {
435
+ oe({
436
+ componentName: "VueUi3dBar",
437
+ type: "datasetSerieAttribute",
438
+ property: e,
439
+ index: `${t} - ${n}`,
440
+ debug: Bn.value
441
+ });
442
+ });
443
+ });
444
+ }) : re({
445
+ datasetObject: P.dataset,
446
+ requiredAttributes: ["percentage"]
447
+ }).forEach((e) => {
448
+ oe({
449
+ componentName: "VueUi3dBar",
450
+ type: "datasetAttribute",
451
+ property: e,
452
+ debug: Bn.value
453
+ });
454
+ }));
455
+ }
456
+ function Hn() {
457
+ if (Vn(), V.value.responsive) {
458
+ let e = ye(() => {
459
+ let { width: e, height: t } = be({
460
+ chart: I.value,
461
+ title: V.value.style.chart.title.text ? _n.value : null,
462
+ source: bn.value
463
+ });
464
+ requestAnimationFrame(() => {
465
+ Ln.value = t - 12, In.value = e;
466
+ });
467
+ });
468
+ vn.value && (yn.value && vn.value.unobserve(yn.value), vn.value.disconnect()), vn.value = new ResizeObserver(e), yn.value = I.value.parentNode, vn.value.observe(yn.value);
469
+ }
470
+ }
471
+ let Un = _(() => G.value.width / 4);
472
+ function Wn(e, t, n, r) {
473
+ let i = G.value.height - G.value.bottom - G.value.top - G.value.perspective * 2, { width: a, height: s, bottom: c, right: l, left: u, perspective: d } = G.value, f = W.value ? a / 4 : a / 2, p = f * 2 + u, m = c + i * e, ee = s - m - d - i * t / 2, ne = ee > G.value.height / 2 ? "top" : "bottom", re = s * .25, ie = !!n, ae = null, oe = null;
474
+ return ie && (n = n.map((e, t) => ({
475
+ ...e,
476
+ value: e.value || 0,
477
+ color: o(r, t / n.length)
478
+ })), ae = te({ series: n }, a / 2 + a / 5, ne === "top" ? ee - re : ee + re, a / 10, a / 10, 1.99999, 2, 1, 360, 105.25, a / 20), oe = te({ series: n }, a - p + a / 14, s - m - d - i * t / 2, a / 40, a / 40, 1.99999, 2, 1, 360, 105.25, a / 40)), {
479
+ donut: ae,
480
+ miniDonut: oe,
481
+ donutR: a / 20,
482
+ CENTER_X: f,
483
+ sidePointer: {
484
+ x: a - p,
485
+ x2: a - p + a / 14,
486
+ xText: a - p + a / 9,
487
+ y: s - m - d - i * t / 2,
488
+ topY: s - m - d - i * t,
489
+ height: i * t
490
+ },
491
+ apexBottom: {
492
+ y: s - m,
493
+ x: f
494
+ },
495
+ apexTop: {
496
+ y: s - m - i * t,
497
+ x: f
498
+ },
499
+ right: `M${f},${s - m} ${f},${s - m - i * t} ${a - p},${s - m - d - i * t} ${a - p},${s - m - d}Z`,
500
+ left: `M${f},${s - m} ${f},${s - m - i * t} ${u}, ${s - m - d - i * t} ${u},${s - m - d}Z`,
501
+ liningTop: `M${u},${s - m - d - i * t} ${f},${s - m - i * t} ${a - p},${s - m - d - i * t}`,
502
+ liningTopShade: `M${u},${s - m - d - i * t - .5} ${f},${s - m - i * t - .5} ${a - p},${s - m - d - i * t - .5}`,
503
+ top: `M${f},${s - m - i * t} ${u},${s - m - d - i * t} ${f},${s - m - d * 2 - i * t} ${a - p},${s - m - d - i * t} Z`,
504
+ tubeTop: `M${u},${s - m - i * t - d} C ${u},${s - m - i * t - d * 2.5} ${a - p},${s - m - i * t - d * 2.5} ${a - p},${s - m - i * t - d} C ${a - p},${s - m - i * t + d / 2} ${u},${s - m - i * t + d / 2} ${u},${s - m - i * t - d}`,
505
+ bottomTubeTop: `M ${a - p - .5},${s - m - d} C ${a - p - .5},${s - m + d / 2} ${u},${s - m + d / 2} ${u + .5},${s - m - d}`,
506
+ tubeBody: `M
507
+ ${u},${s - m - i * t - d}
508
+ C ${u},${s - m - i * t + d / 2}
509
+ ${a - p},${s - m - i * t + d / 2}
510
+ ${a - p},${s - m - i * t - d}
511
+ L${a - p},${s - m - d}
512
+ C
513
+ ${a - p},${s - m + d / 2}
514
+ ${u},${s - m + d / 2}
515
+ ${u},${s - m - d}Z`
516
+ };
517
+ }
518
+ let Gn = _(() => {
519
+ let e = d(Rn.value / 100), t = G.value.height - G.value.bottom - G.value.top - G.value.perspective * 2, { width: n, height: r, bottom: i, right: a, left: o, perspective: s } = G.value, c = W.value ? n / 4 : n / 2, l = W.value ? c * 2 + o : a, u = i + t * 0;
520
+ return {
521
+ right: `M${c},${r - u} ${c},${r - u - t * e} ${n - l},${r - u - s - t * e} ${n - l},${r - u - s}Z`,
522
+ left: `M${c},${r - u} ${c},${r - u - t * e} ${o}, ${r - u - s - t * e} ${o},${r - u - s}Z`,
523
+ top: `M${c},${r - u - t * e} ${o},${r - u - s - t * e} ${c},${r - u - s * 2 - t * e} ${n - l},${r - u - s - t * e} Z`,
524
+ tubeTop: `M${o},${r - u - t * e - s} C ${o},${r - u - t * e - s * 2.5} ${n - l},${r - u - t * e - s * 2.5} ${n - l},${r - u - t * e - s} C ${n - l},${r - u - t * e + s / 2} ${o},${r - u - t * e + s / 2} ${o},${r - u - t * e - s}`,
525
+ tubeBody: `M
526
+ ${o},${r - u - t * e - s}
527
+ C ${o},${r - u - t * e + s / 2}
528
+ ${n - l},${r - u - t * e + s / 2}
529
+ ${n - l},${r - u - t * e - s}
530
+ L${n - l},${r - s * 1.5}
531
+ C
532
+ ${n - l},${r}
533
+ ${o},${r}
534
+ ${o},${r - u - s}Z`
535
+ };
536
+ }), J = O(null);
537
+ function Y(e, t = !1) {
538
+ V.value.events.datapointEnter && !t && V.value.events.datapointEnter({
539
+ datapoint: e,
540
+ seriesIndex: e.seriesIndex
541
+ }), V.value.events.datapointClick && t && V.value.events.datapointClick({
542
+ datapoint: e,
543
+ seriesIndex: e.seriesIndex
544
+ }), pn("selectDatapoint", e);
545
+ let n = K.value?.findIndex((t) => t.id === e.id) ?? null;
546
+ n !== null && n !== -1 && (z.value = n, B.value = dr(e)), t || (J.value = e.id), t && L.value && (L.value = !1), t && !L.value && (L.value = !0);
547
+ }
548
+ function X(e) {
549
+ V.value.events.datapointLeave && V.value.events.datapointLeave({
550
+ datapoint: e,
551
+ seriesIndex: e.seriesIndex
552
+ }), !L.value && (J.value = null, z.value = null, B.value = "");
553
+ }
554
+ function Z(e, t, n = !1) {
555
+ let r = H.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), i = isNaN(e.value / r) ? 0 : e.value / r * 100, a = isNaN(e.value / Kn(t)) ? 0 : e.value / Kn(t) * 100;
556
+ return n ? a : i.toFixed(0) + "%";
557
+ }
558
+ function Kn(e) {
559
+ return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
560
+ }
561
+ let qn = O(!1);
562
+ function Jn(e) {
563
+ qn.value = e;
564
+ }
565
+ function Yn() {
566
+ return W.value ? K.value : H.value.percentage;
567
+ }
568
+ let Q = _(() => W.value ? {
569
+ head: K.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{
570
+ name: e.name,
571
+ color: e.color
572
+ }, ...e.breakdown.map((t, n) => ({
573
+ name: t.name,
574
+ color: o(e.color, n / e.breakdown.length)
575
+ }))] : {
576
+ name: e.name,
577
+ color: e.color
578
+ }),
579
+ body: K.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((e) => e.value)] : e.value)
580
+ } : null);
581
+ function Xn(e = null) {
582
+ if (!W.value) {
583
+ console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
584
+ return;
585
+ }
586
+ Oe(() => {
587
+ let n = K.value.map((e) => e.value).reduce((e, t) => e + t, 0), i = Q.value.head.map((e, t) => [
588
+ [e.name],
589
+ [Q.value.body[t]],
590
+ [isNaN(Q.value.body[t] / n) ? "-" : Q.value.body[t] / n * 100]
591
+ ]), a = [
592
+ [V.value.style.chart.title.text],
593
+ [V.value.style.chart.title.subtitle.text],
594
+ [
595
+ [""],
596
+ ["val"],
597
+ ["%"]
598
+ ]
599
+ ].concat(i), o = r(a);
600
+ e ? e(o) : t({
601
+ csvContent: o,
602
+ title: V.value.style.chart.title.text || "vue-ui-3d-bar"
603
+ });
604
+ });
605
+ }
606
+ let $ = _(() => {
607
+ if (!W.value || !Array.isArray(K.value) || !K.value.length) return {
608
+ colNames: [],
609
+ head: [],
610
+ body: [],
611
+ a11yBody: [],
612
+ config: {
613
+ th: {
614
+ backgroundColor: V.value.table.th.backgroundColor,
615
+ color: V.value.table.th.color,
616
+ outline: V.value.table.th.outline
617
+ },
618
+ td: {
619
+ backgroundColor: V.value.table.td.backgroundColor,
620
+ color: V.value.table.td.color,
621
+ outline: V.value.table.td.outline
622
+ },
623
+ breakpoint: V.value.table.responsiveBreakpoint,
624
+ shape: V.value.style.shape === "tube" ? "circle" : "square"
625
+ }
626
+ };
627
+ let e = K.value.reduce((e, t) => e + t.value, 0), t = [
628
+ "__SUM__",
629
+ l({
630
+ p: V.value.style.chart.legend.prefix,
631
+ v: e,
632
+ s: V.value.style.chart.legend.suffix,
633
+ r: V.value.table.td.roundingValue
634
+ }),
635
+ "100%"
636
+ ], n = Q.value.head.map((t, n) => {
637
+ let r = Q.value.body[n];
638
+ return [
639
+ {
640
+ color: t.color,
641
+ name: t.name
642
+ },
643
+ l({
644
+ p: V.value.style.chart.legend.prefix,
645
+ v: r,
646
+ s: V.value.style.chart.legend.suffix,
647
+ r: V.value.table.td.roundingValue
648
+ }),
649
+ isNaN(r / e) ? "-" : l({
650
+ v: r / e * 100,
651
+ s: "%",
652
+ r: V.value.table.td.roundingPercentage
653
+ })
654
+ ];
655
+ }), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e));
656
+ return {
657
+ colNames: [
658
+ V.value.table.columnNames.series,
659
+ V.value.table.columnNames.value,
660
+ V.value.table.columnNames.percentage
661
+ ],
662
+ head: t,
663
+ body: n,
664
+ a11yBody: r,
665
+ config: {
666
+ th: {
667
+ backgroundColor: V.value.table.th.backgroundColor,
668
+ color: V.value.table.th.color,
669
+ outline: V.value.table.th.outline
670
+ },
671
+ td: {
672
+ backgroundColor: V.value.table.td.backgroundColor,
673
+ color: V.value.table.td.color,
674
+ outline: V.value.table.td.outline
675
+ },
676
+ breakpoint: V.value.table.responsiveBreakpoint,
677
+ shape: V.value.style.shape === "tube" ? "circle" : "square"
678
+ }
679
+ };
680
+ });
681
+ function Zn() {
682
+ U.value.showTable = !U.value.showTable;
683
+ }
684
+ let Qn = O(!1);
685
+ function $n() {
686
+ Qn.value = !Qn.value;
687
+ }
688
+ async function er({ scale: e = 2 } = {}) {
689
+ if (!I.value) return;
690
+ let { width: t, height: n } = I.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
691
+ domElement: I.value,
692
+ base64: !0,
693
+ img: !0,
694
+ scale: e
695
+ });
696
+ return {
697
+ imageUri: i,
698
+ base64: a,
699
+ title: V.value.style.chart.title.text,
700
+ width: t,
701
+ height: n,
702
+ aspectRatio: r
703
+ };
704
+ }
705
+ let tr = _(() => {
706
+ let e = V.value.table.useDialog && !V.value.table.show, t = U.value.showTable;
707
+ return {
708
+ component: e ? ln : rn,
709
+ title: `${V.value.style.chart.title.text}${V.value.style.chart.title.subtitle.text ? `: ${V.value.style.chart.title.subtitle.text}` : ""}`,
710
+ props: e ? {
711
+ backgroundColor: V.value.table.th.backgroundColor,
712
+ color: V.value.table.th.color,
713
+ headerColor: V.value.table.th.color,
714
+ headerBg: V.value.table.th.backgroundColor,
715
+ isFullscreen: qn.value,
716
+ fullscreenParent: I.value,
717
+ forcedWidth: Math.min(800, window.innerWidth * .8)
718
+ } : {
719
+ hideDetails: !0,
720
+ config: {
721
+ open: t,
722
+ maxHeight: 1e4,
723
+ body: {
724
+ backgroundColor: V.value.style.chart.backgroundColor,
725
+ color: V.value.style.chart.color
726
+ },
727
+ head: {
728
+ backgroundColor: V.value.style.chart.backgroundColor,
729
+ color: V.value.style.chart.color
730
+ }
731
+ }
732
+ }
733
+ };
734
+ });
735
+ Ne(() => U.value.showTable, (e) => {
736
+ V.value.table.show || (e && V.value.table.useDialog && xn.value ? xn.value.open() : "close" in xn.value && xn.value.close());
737
+ });
738
+ function nr() {
739
+ U.value.showTable = !1, Sn.value && Sn.value.setTableIconState(!1);
740
+ }
741
+ let rr = _(() => V.value.style.chart.backgroundColor), ir = _(() => V.value.style.chart.title), { isCallbackImaging: ar, isCallbackSvg: or, generateSvg: sr, onGenerateImage: cr } = he({
742
+ svg: kn,
743
+ title: ir,
744
+ legend: null,
745
+ legendItems: null,
746
+ backgroundColor: rr,
747
+ getSvgCallback: () => V.value.userOptions.callbacks.svg,
748
+ generateImage: Pn
749
+ });
750
+ async function lr() {
751
+ if (pn("copyAlt", {
752
+ config: V.value,
753
+ dataset: H.value
754
+ }), !V.value.userOptions.callbacks.altCopy) {
755
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
756
+ return;
757
+ }
758
+ await Promise.resolve(V.value.userOptions.callbacks.altCopy({
759
+ config: V.value,
760
+ dataset: H.value
761
+ }));
762
+ }
763
+ function ur() {
764
+ z.value = null, B.value = "", L.value = !1, J.value = null;
765
+ }
766
+ function dr(e) {
767
+ if (!e) return "";
768
+ let t = l({
769
+ p: V.value.style.chart.legend.prefix,
770
+ v: e.value,
771
+ s: V.value.style.chart.legend.suffix,
772
+ r: V.value.style.chart.legend.roundingValue
773
+ }), n = l({
774
+ v: e.proportion * 100,
775
+ s: "%",
776
+ r: V.value.style.chart.legend.roundingPercentage
777
+ });
778
+ return `${e.name}: ${t}, ${n}`;
779
+ }
780
+ function fr(e) {
781
+ if (!W.value || !K.value?.length) return;
782
+ let t = K.value[e];
783
+ t && (z.value = e, J.value = t.id, B.value = dr(t));
784
+ }
785
+ function pr() {
786
+ R.value = !0, !(!W.value || !K.value?.length) && z.value === null && fr(0);
787
+ }
788
+ function mr() {
789
+ R.value = !1, L.value || (z.value = null, J.value = null, B.value = "");
790
+ }
791
+ function hr(e) {
792
+ if (!W.value || !K.value?.length || !kn.value || document.activeElement !== kn.value) return;
793
+ let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
794
+ if (!t && !n && !r && !i) return;
795
+ if (e.preventDefault(), e.stopPropagation(), i) {
796
+ ur();
797
+ return;
798
+ }
799
+ if (r) {
800
+ if (z.value === null) return;
801
+ let e = K.value[z.value];
802
+ if (!e) return;
803
+ Y(e, !0), B.value = `${dr(e)} selected`;
804
+ return;
805
+ }
806
+ let a = z.value;
807
+ a === null || a < 0 || a >= K.value.length ? a = n ? 0 : K.value.length - 1 : n ? (a += 1, a >= K.value.length && (a = 0)) : t && (--a, a < 0 && (a = K.value.length - 1)), fr(a);
808
+ }
809
+ let gr = _(() => ({
810
+ headers: $.value?.colNames ?? [],
811
+ rows: $.value?.a11yBody ?? []
812
+ }));
813
+ return ve({
814
+ getImage: er,
815
+ generateCsv: Xn,
816
+ generatePdf: Nn,
817
+ generateImage: Pn,
818
+ generateSvg: sr,
819
+ getData: Yn,
820
+ toggleTable: Zn,
821
+ toggleAnnotator: $n,
822
+ toggleFullscreen: Jn,
823
+ copyAlt: lr
824
+ }), (e, t) => (D(), b("div", {
825
+ ref_key: "bar3dChart",
826
+ ref: I,
827
+ class: ke("vue-data-ui-component vue-ui-3d-bar"),
828
+ style: E(`font-family:${V.value.style.fontFamily};width:100%; text-align:center;background:${V.value.style.chart.backgroundColor}`),
829
+ id: `3d_bar_${F.value}`,
830
+ onMouseenter: t[8] ||= () => M(Dn)(!0),
831
+ onMouseleave: t[9] ||= () => M(Dn)(!1)
832
+ }, [
833
+ x("div", {
834
+ id: `chart-instructions-${F.value}`,
835
+ class: "sr-only"
836
+ }, [x("p", null, j(V.value.a11y.translations.keyboardNavigation), 1)], 8, Re),
837
+ x("div", ze, j(B.value), 1),
838
+ gr.value?.rows?.length ? (D(), v(xe, {
839
+ key: 0,
840
+ uid: F.value,
841
+ head: gr.value.headers,
842
+ body: gr.value.rows,
843
+ notice: V.value.a11y.translations.tableAvailable,
844
+ caption: V.value.a11y.translations.tableCaption
845
+ }, null, 8, [
846
+ "uid",
847
+ "head",
848
+ "body",
849
+ "notice",
850
+ "caption"
851
+ ])) : y("", !0),
852
+ V.value.userOptions.buttons.annotator ? (D(), v(M(on), {
853
+ key: 1,
854
+ svgRef: M(kn),
855
+ backgroundColor: V.value.style.chart.backgroundColor,
856
+ color: V.value.style.chart.color,
857
+ active: Qn.value,
858
+ isCursorPointer: Cn.value,
859
+ onClose: $n
860
+ }, {
861
+ "annotator-action-close": N(() => [A(e.$slots, "annotator-action-close", {}, void 0, !0)]),
862
+ "annotator-action-color": N(({ color: t }) => [A(e.$slots, "annotator-action-color", T(w({ color: t })), void 0, !0)]),
863
+ "annotator-action-draw": N(({ mode: t }) => [A(e.$slots, "annotator-action-draw", T(w({ mode: t })), void 0, !0)]),
864
+ "annotator-action-undo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-undo", T(w({ disabled: t })), void 0, !0)]),
865
+ "annotator-action-redo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-redo", T(w({ disabled: t })), void 0, !0)]),
866
+ "annotator-action-delete": N(({ disabled: t }) => [A(e.$slots, "annotator-action-delete", T(w({ disabled: t })), void 0, !0)]),
867
+ _: 3
868
+ }, 8, [
869
+ "svgRef",
870
+ "backgroundColor",
871
+ "color",
872
+ "active",
873
+ "isCursorPointer"
874
+ ])) : y("", !0),
875
+ V.value.style.chart.title.text ? (D(), b("div", {
876
+ key: 2,
877
+ ref_key: "chartTitle",
878
+ ref: _n,
879
+ style: "width:100%;background:transparent"
880
+ }, [(D(), v(_e, {
881
+ key: `title_${hn.value}`,
882
+ config: {
883
+ title: {
884
+ cy: "3dBar-div-title",
885
+ ...V.value.style.chart.title
886
+ },
887
+ subtitle: {
888
+ cy: "3dBar-div-subtitle",
889
+ ...V.value.style.chart.title.subtitle
890
+ }
891
+ }
892
+ }, null, 8, ["config"]))], 512)) : y("", !0),
893
+ V.value.userOptions.show && mn.value && (M(On) || M(En)) ? (D(), v(M(sn), {
894
+ key: 3,
895
+ ref_key: "userOptionsRef",
896
+ ref: Sn,
897
+ backgroundColor: V.value.style.chart.backgroundColor,
898
+ color: V.value.style.chart.color,
899
+ isPrinting: M(jn),
900
+ isImaging: M(Mn),
901
+ uid: F.value,
902
+ hasPdf: V.value.userOptions.buttons.pdf,
903
+ hasTable: !!W.value && V.value.userOptions.buttons.table,
904
+ hasXls: !!W.value && V.value.userOptions.buttons.csv,
905
+ hasImg: V.value.userOptions.buttons.img,
906
+ hasSvg: V.value.userOptions.buttons.svg,
907
+ hasFullscreen: V.value.userOptions.buttons.fullscreen,
908
+ hasAltCopy: V.value.userOptions.buttons.altCopy,
909
+ titles: { ...V.value.userOptions.buttonTitles },
910
+ chartElement: I.value,
911
+ position: V.value.userOptions.position,
912
+ hasAnnotator: V.value.userOptions.buttons.annotator,
913
+ isAnnotation: Qn.value,
914
+ callbacks: V.value.userOptions.callbacks,
915
+ printScale: V.value.userOptions.print.scale,
916
+ tableDialog: V.value.table.useDialog,
917
+ isCursorPointer: Cn.value,
918
+ onToggleFullscreen: Jn,
919
+ onGeneratePdf: M(Nn),
920
+ onGenerateCsv: Xn,
921
+ onGenerateImage: M(cr),
922
+ onGenerateSvg: M(sr),
923
+ onToggleTable: Zn,
924
+ onToggleAnnotator: $n,
925
+ onCopyAlt: lr,
926
+ style: E({ visibility: M(On) ? M(En) ? "visible" : "hidden" : "visible" })
927
+ }, Te({ _: 2 }, [
928
+ e.$slots.menuIcon ? {
929
+ name: "menuIcon",
930
+ fn: N(({ isOpen: t, color: n }) => [A(e.$slots, "menuIcon", T(w({
931
+ isOpen: t,
932
+ color: n
933
+ })), void 0, !0)]),
934
+ key: "0"
935
+ } : void 0,
936
+ e.$slots.optionPdf ? {
937
+ name: "optionPdf",
938
+ fn: N(() => [A(e.$slots, "optionPdf", {}, void 0, !0)]),
939
+ key: "1"
940
+ } : void 0,
941
+ e.$slots.optionCsv ? {
942
+ name: "optionCsv",
943
+ fn: N(() => [A(e.$slots, "optionCsv", {}, void 0, !0)]),
944
+ key: "2"
945
+ } : void 0,
946
+ e.$slots.optionImg ? {
947
+ name: "optionImg",
948
+ fn: N(() => [A(e.$slots, "optionImg", {}, void 0, !0)]),
949
+ key: "3"
950
+ } : void 0,
951
+ e.$slots.optionSvg ? {
952
+ name: "optionSvg",
953
+ fn: N(() => [A(e.$slots, "optionSvg", {}, void 0, !0)]),
954
+ key: "4"
955
+ } : void 0,
956
+ e.$slots.optionTable ? {
957
+ name: "optionTable",
958
+ fn: N(() => [A(e.$slots, "optionTable", {}, void 0, !0)]),
959
+ key: "5"
960
+ } : void 0,
961
+ e.$slots.optionFullscreen ? {
962
+ name: "optionFullscreen",
963
+ fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [A(e.$slots, "optionFullscreen", T(w({
964
+ toggleFullscreen: t,
965
+ isFullscreen: n
966
+ })), void 0, !0)]),
967
+ key: "6"
968
+ } : void 0,
969
+ e.$slots.optionAnnotator ? {
970
+ name: "optionAnnotator",
971
+ fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [A(e.$slots, "optionAnnotator", T(w({
972
+ toggleAnnotator: t,
973
+ isAnnotator: n
974
+ })), void 0, !0)]),
975
+ key: "7"
976
+ } : void 0,
977
+ e.$slots.optionAltCopy ? {
978
+ name: "optionAltCopy",
979
+ fn: N(({ altCopy: t }) => [A(e.$slots, "optionAltCopy", T(w({ altCopy: t })), void 0, !0)]),
980
+ key: "8"
981
+ } : void 0,
982
+ e.$slots["custom-menu-before"] ? {
983
+ name: "custom-menu-before",
984
+ fn: N(() => [A(e.$slots, "custom-menu-before", {}, void 0, !0)]),
985
+ key: "9"
986
+ } : void 0,
987
+ e.$slots["custom-menu-after"] ? {
988
+ name: "custom-menu-after",
989
+ fn: N(() => [A(e.$slots, "custom-menu-after", {}, void 0, !0)]),
990
+ key: "10"
991
+ } : void 0
992
+ ]), 1032, [
993
+ "backgroundColor",
994
+ "color",
995
+ "isPrinting",
996
+ "isImaging",
997
+ "uid",
998
+ "hasPdf",
999
+ "hasTable",
1000
+ "hasXls",
1001
+ "hasImg",
1002
+ "hasSvg",
1003
+ "hasFullscreen",
1004
+ "hasAltCopy",
1005
+ "titles",
1006
+ "chartElement",
1007
+ "position",
1008
+ "hasAnnotator",
1009
+ "isAnnotation",
1010
+ "callbacks",
1011
+ "printScale",
1012
+ "tableDialog",
1013
+ "isCursorPointer",
1014
+ "onGeneratePdf",
1015
+ "onGenerateImage",
1016
+ "onGenerateSvg",
1017
+ "style"
1018
+ ])) : y("", !0),
1019
+ x("div", Be, [(D(), b("svg", {
1020
+ ref_key: "svgRef",
1021
+ ref: kn,
1022
+ xmlns: M(ae),
1023
+ class: ke({
1024
+ "vue-data-ui-fullscreen--on": qn.value,
1025
+ "vue-data-ui-fulscreen--off": !qn.value
1026
+ }),
1027
+ viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.height}`,
1028
+ style: E(`max-width:100%; overflow: visible; background:transparent;color:${V.value.style.chart.color}`),
1029
+ tabindex: "0",
1030
+ "aria-describedby": `chart-instructions-${F.value}`,
1031
+ onFocus: pr,
1032
+ onBlur: mr,
1033
+ onKeydown: hr
1034
+ }, [
1035
+ S(M(cn)),
1036
+ e.$slots["chart-background"] ? (D(), b("foreignObject", {
1037
+ key: 0,
1038
+ x: 0,
1039
+ y: 0,
1040
+ width: G.value.absoluteWidth,
1041
+ height: G.value.height,
1042
+ style: { pointerEvents: "none" }
1043
+ }, [A(e.$slots, "chart-background", {}, void 0, !0)], 8, He)) : y("", !0),
1044
+ x("defs", null, [
1045
+ S(h, {
1046
+ t: "radial",
1047
+ id: `gradient_top${F.value}`,
1048
+ stops: [[
1049
+ "0%",
1050
+ M(n)(V.value.style.chart.backgroundColor, 0),
1051
+ 1
1052
+ ], [
1053
+ "100%",
1054
+ V.value.style.chart.bar.color,
1055
+ 1
1056
+ ]]
1057
+ }, null, 8, ["id", "stops"]),
1058
+ S(h, {
1059
+ t: "radial",
1060
+ id: `gradient_tube_top${F.value}`,
1061
+ stops: [[
1062
+ "0%",
1063
+ M(n)(M(o)(V.value.style.chart.bar.color, .5), 80),
1064
+ 1
1065
+ ], [
1066
+ "100%",
1067
+ M(n)(M(u)(V.value.style.chart.bar.color, .1), 80),
1068
+ 1
1069
+ ]]
1070
+ }, null, 8, ["id", "stops"]),
1071
+ S(h, {
1072
+ t: "radial",
1073
+ id: `gradient_left${F.value}`,
1074
+ stops: [[
1075
+ "0%",
1076
+ M(n)(V.value.style.chart.backgroundColor, 0),
1077
+ 1
1078
+ ], [
1079
+ "100%",
1080
+ M(n)(V.value.style.chart.bar.color, 20),
1081
+ 1
1082
+ ]]
1083
+ }, null, 8, ["id", "stops"]),
1084
+ S(h, {
1085
+ t: "radial",
1086
+ id: `gradient_right${F.value}`,
1087
+ stops: [[
1088
+ "0%",
1089
+ M(n)(V.value.style.chart.backgroundColor, 0),
1090
+ 1
1091
+ ], [
1092
+ "100%",
1093
+ M(n)(V.value.style.chart.bar.color, 20),
1094
+ 1
1095
+ ]]
1096
+ }, null, 8, ["id", "stops"]),
1097
+ S(h, {
1098
+ t: "linear",
1099
+ id: `gradient_tube_body${F.value}`,
1100
+ x1: "0%",
1101
+ y1: "0%",
1102
+ x2: "100%",
1103
+ y2: "0%",
1104
+ stops: [
1105
+ [
1106
+ "0%",
1107
+ V.value.style.chart.bar.color,
1108
+ 1
1109
+ ],
1110
+ [
1111
+ "10%",
1112
+ M(n)(M(u)(V.value.style.chart.bar.color, .7), 100),
1113
+ 1
1114
+ ],
1115
+ [
1116
+ "25%",
1117
+ M(n)(M(u)(V.value.style.chart.bar.color, .5), 100),
1118
+ 1
1119
+ ],
1120
+ [
1121
+ "75%",
1122
+ M(n)(V.value.style.chart.bar.color, 80),
1123
+ 1
1124
+ ],
1125
+ [
1126
+ "100%",
1127
+ M(n)(M(o)(V.value.style.chart.bar.color, .7), 100),
1128
+ 1
1129
+ ]
1130
+ ]
1131
+ }, null, 8, ["id", "stops"])
1132
+ ]),
1133
+ W.value ? (D(), b("defs", Ue, [
1134
+ (D(!0), b(g, null, k(K.value, (e) => (D(), v(h, {
1135
+ t: "radial",
1136
+ id: `grad_top_${e.id}`,
1137
+ key: `grad_top_${e.id}`,
1138
+ stops: [[
1139
+ "0%",
1140
+ M(n)(M(o)(e.color, .5), 80),
1141
+ 1
1142
+ ], [
1143
+ "100%",
1144
+ e.color,
1145
+ 1
1146
+ ]]
1147
+ }, null, 8, ["id", "stops"]))), 128)),
1148
+ (D(!0), b(g, null, k(K.value, (e) => (D(), v(h, {
1149
+ t: "linear",
1150
+ id: `grad_left_${e.id}`,
1151
+ key: `grad_left_${e.id}`,
1152
+ stops: [[
1153
+ "0%",
1154
+ M(n)(e.color, 80),
1155
+ 1
1156
+ ], [
1157
+ "100%",
1158
+ M(n)(M(u)(e.color, .5), 100),
1159
+ 1
1160
+ ]]
1161
+ }, null, 8, ["id", "stops"]))), 128)),
1162
+ (D(!0), b(g, null, k(K.value, (e) => (D(), v(h, {
1163
+ t: "linear",
1164
+ id: `grad_right_${e.id}`,
1165
+ key: `grad_right_${e.id}`,
1166
+ stops: [[
1167
+ "2%",
1168
+ M(n)(M(o)(e.color, .5), 100),
1169
+ 1
1170
+ ], [
1171
+ "100%",
1172
+ M(n)(e.color, 80),
1173
+ 1
1174
+ ]]
1175
+ }, null, 8, ["id", "stops"]))), 128)),
1176
+ S(h, {
1177
+ t: "linear",
1178
+ x1: "0%",
1179
+ y1: "0%",
1180
+ x2: "0%",
1181
+ y2: "100%",
1182
+ id: `vertical_line_${F.value}`,
1183
+ stops: [[
1184
+ "0%",
1185
+ "#FFFFFF",
1186
+ 1
1187
+ ], [
1188
+ "100%",
1189
+ "#FFFFFF33",
1190
+ 1
1191
+ ]]
1192
+ }, null, 8, ["id"])
1193
+ ])) : y("", !0),
1194
+ V.value.style.chart.dataLabel.show && ![null, void 0].includes(M(H).percentage) && [null, void 0].includes(M(H).series) ? (D(), b("text", {
1195
+ key: 2,
1196
+ x: G.value.width / 2,
1197
+ y: G.value.top - V.value.style.chart.dataLabel.fontSize / 2,
1198
+ "font-size": V.value.style.chart.dataLabel.fontSize,
1199
+ "font-weight": V.value.style.chart.dataLabel.bold ? "bold" : "normal",
1200
+ fill: V.value.style.chart.dataLabel.color,
1201
+ "text-anchor": "middle"
1202
+ }, j(M(l)({
1203
+ v: Rn.value,
1204
+ s: "%",
1205
+ r: V.value.style.chart.dataLabel.rounding
1206
+ })), 9, We)) : y("", !0),
1207
+ L.value ? (D(), b("g", {
1208
+ key: 3,
1209
+ role: "button",
1210
+ tabindex: "0",
1211
+ "aria-label": "Clear selection",
1212
+ onClick: t[0] ||= (e) => {
1213
+ L.value = !1, J.value = null;
1214
+ },
1215
+ onKeydown: [t[1] ||= Pe(Fe((e) => {
1216
+ L.value = !1, J.value = null;
1217
+ }, ["prevent"]), ["enter"]), t[2] ||= Pe(Fe((e) => {
1218
+ L.value = !1, J.value = null;
1219
+ }, ["prevent"]), ["space"])],
1220
+ onFocus: t[3] ||= (e) => R.value = !0,
1221
+ onBlur: t[4] ||= (e) => R.value = !1,
1222
+ onMouseenter: t[5] ||= (e) => R.value = !0,
1223
+ onMouseleave: t[6] ||= (e) => R.value = !1,
1224
+ class: "svg-btn",
1225
+ "data-dom-to-png-ignore": "",
1226
+ style: E({
1227
+ cursor: Cn.value ? "pointer" : "default",
1228
+ outline: "none"
1229
+ })
1230
+ }, [
1231
+ t[10] ||= x("title", null, "Clear selection", -1),
1232
+ x("rect", {
1233
+ x: Un.value - 12,
1234
+ y: G.value.top - 24,
1235
+ width: 24,
1236
+ height: 24,
1237
+ fill: "transparent",
1238
+ "pointer-events": "all"
1239
+ }, null, 8, Ge),
1240
+ x("circle", {
1241
+ cx: Un.value,
1242
+ cy: G.value.top - 12,
1243
+ r: "10",
1244
+ fill: "none",
1245
+ stroke: V.value.style.chart.color,
1246
+ "stroke-width": "2",
1247
+ "vector-effect": "non-scaling-stroke",
1248
+ opacity: R.value ? .5 : 0
1249
+ }, null, 8, Ke),
1250
+ x("path", {
1251
+ d: `M${Un.value - 6},${G.value.top - 18} ${Un.value + 6},${G.value.top - 6}`,
1252
+ stroke: V.value.style.chart.color,
1253
+ "stroke-linecap": "round",
1254
+ "stroke-width": "2",
1255
+ "vector-effect": "non-scaling-stroke"
1256
+ }, null, 8, qe),
1257
+ x("path", {
1258
+ d: `M${Un.value + 6},${G.value.top - 18} ${Un.value - 6},${G.value.top - 6}`,
1259
+ stroke: V.value.style.chart.color,
1260
+ "stroke-linecap": "round",
1261
+ "stroke-width": "2",
1262
+ "vector-effect": "non-scaling-stroke"
1263
+ }, null, 8, Je)
1264
+ ], 36)) : y("", !0),
1265
+ !V.value.style.shape || V.value.style.shape === "bar" ? (D(), b("g", Ye, [
1266
+ W.value ? y("", !0) : (D(), b("g", Xe, [
1267
+ x("path", {
1268
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1269
+ d: q.value.right,
1270
+ stroke: V.value.style.chart.box.stroke,
1271
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1272
+ "stroke-linejoin": "round",
1273
+ "stroke-linecap": "round",
1274
+ fill: "none"
1275
+ }, null, 8, Ze),
1276
+ x("path", {
1277
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1278
+ d: q.value.left,
1279
+ stroke: V.value.style.chart.box.stroke,
1280
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1281
+ "stroke-linejoin": "round",
1282
+ "stroke-linecap": "round",
1283
+ fill: "none"
1284
+ }, null, 8, Qe),
1285
+ x("path", {
1286
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1287
+ d: q.value.side,
1288
+ stroke: V.value.style.chart.box.stroke,
1289
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1290
+ "stroke-linejoin": "round",
1291
+ "stroke-linecap": "round",
1292
+ fill: "none"
1293
+ }, null, 8, $e),
1294
+ x("path", {
1295
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1296
+ d: q.value.topSides,
1297
+ stroke: V.value.style.chart.box.stroke,
1298
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1299
+ "stroke-linejoin": "round",
1300
+ "stroke-linecap": "round",
1301
+ fill: "none"
1302
+ }, null, 8, et)
1303
+ ])),
1304
+ W.value ? y("", !0) : (D(), b("g", tt, [
1305
+ x("path", {
1306
+ d: Gn.value.right,
1307
+ stroke: V.value.style.chart.bar.stroke,
1308
+ "stroke-width": V.value.style.chart.bar.strokeWidth,
1309
+ "stroke-linejoin": "round",
1310
+ "stroke-linecap": "round",
1311
+ fill: `url(#gradient_right${F.value})`
1312
+ }, null, 8, nt),
1313
+ x("path", {
1314
+ d: Gn.value.left,
1315
+ stroke: V.value.style.chart.bar.stroke,
1316
+ "stroke-width": V.value.style.chart.bar.strokeWidth,
1317
+ "stroke-linejoin": "round",
1318
+ "stroke-linecap": "round",
1319
+ fill: `url(#gradient_left${F.value})`
1320
+ }, null, 8, rt),
1321
+ x("path", {
1322
+ d: Gn.value.top,
1323
+ stroke: V.value.style.chart.bar.stroke,
1324
+ "stroke-width": V.value.style.chart.bar.strokeWidth,
1325
+ "stroke-linejoin": "round",
1326
+ "stroke-linecap": "round",
1327
+ fill: `url(#gradient_top${F.value})`
1328
+ }, null, 8, it)
1329
+ ])),
1330
+ W.value ? (D(), b("g", at, [
1331
+ (D(!0), b(g, null, k(K.value, (e, t) => (D(), b("g", {
1332
+ style: E(`opacity:${J.value ? J.value === e.id ? 1 : .3 : 1}`),
1333
+ class: "vue-ui-3d-bar-stack",
1334
+ role: "img",
1335
+ "aria-label": dr(e)
1336
+ }, [
1337
+ x("path", {
1338
+ d: e.fill.right,
1339
+ fill: `url(#grad_right_${e.id})`,
1340
+ onMouseenter: (t) => Y(e),
1341
+ onClick: (t) => Y(e, !0),
1342
+ onMouseout: (t) => X(e)
1343
+ }, null, 40, st),
1344
+ x("path", {
1345
+ d: e.fill.left,
1346
+ fill: `url(#grad_left_${e.id})`,
1347
+ onMouseenter: (t) => Y(e),
1348
+ onClick: (t) => Y(e, !0),
1349
+ onMouseout: (t) => X(e)
1350
+ }, null, 40, ct),
1351
+ x("path", {
1352
+ d: e.fill.top,
1353
+ fill: `url(#grad_top_${e.id})`,
1354
+ onMouseenter: (t) => Y(e),
1355
+ onClick: (t) => Y(e, !0),
1356
+ onMouseout: (t) => X(e)
1357
+ }, null, 40, lt),
1358
+ x("path", {
1359
+ d: e.fill.liningTop,
1360
+ stroke: "#FFFFFF",
1361
+ "stroke-width": "0.5",
1362
+ "stroke-linecap": "round",
1363
+ fill: "none",
1364
+ onMouseenter: (t) => Y(e),
1365
+ onClick: (t) => Y(e, !0),
1366
+ onMouseout: (t) => X(e)
1367
+ }, null, 40, ut),
1368
+ x("path", {
1369
+ d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
1370
+ stroke: "#FFFFFF",
1371
+ "stroke-width": "0.5",
1372
+ "stroke-linecap": "round"
1373
+ }, null, 8, dt)
1374
+ ], 12, ot))), 256)),
1375
+ (D(!0), b(g, null, k(K.value, (e, t) => (D(), b("g", null, [t === K.value.length - 1 ? y("", !0) : (D(), b("path", {
1376
+ key: 0,
1377
+ d: e.fill.liningTopShade,
1378
+ stroke: V.value.style.chart.bar.shadeColor,
1379
+ "stroke-width": "0.5",
1380
+ "stroke-linecap": "round",
1381
+ fill: "none",
1382
+ style: { "pointer-events": "none" }
1383
+ }, null, 8, ft))]))), 256)),
1384
+ (D(!0), b(g, null, k(K.value, (t, n) => (D(), b("g", {
1385
+ style: E(`opacity:${J.value ? +(J.value === t.id) : +(t.proportion * 100 > V.value.style.chart.legend.hideUnderPercentage)}`),
1386
+ onClick: (e) => pn("selectDatapoint", t)
1387
+ }, [
1388
+ x("path", {
1389
+ stroke: V.value.style.chart.color,
1390
+ "stroke-dasharray": "1",
1391
+ "stroke-width": "0.5",
1392
+ "stroke-linecap": "round",
1393
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1394
+ }, null, 8, mt),
1395
+ !t.fill.miniDonut || J.value ? (D(), b("circle", {
1396
+ key: 0,
1397
+ cx: t.fill.sidePointer.x2,
1398
+ cy: t.fill.sidePointer.y,
1399
+ r: 2,
1400
+ fill: t.color,
1401
+ stroke: V.value.style.chart.backgroundColor
1402
+ }, null, 8, ht)) : y("", !0),
1403
+ M(Tn) ? (D(), b("rect", {
1404
+ key: 1,
1405
+ x: t.fill.sidePointer.xText,
1406
+ y: t.fill.sidePointer.y - V.value.style.chart.legend.fontSize / 2,
1407
+ width: G.value.width / 3,
1408
+ height: V.value.style.chart.legend.fontSize,
1409
+ fill: "#6A6A6A80",
1410
+ rx: "3"
1411
+ }, null, 8, gt)) : y("", !0),
1412
+ M(Tn) ? y("", !0) : (D(), b("foreignObject", {
1413
+ key: 2,
1414
+ x: t.fill.sidePointer.xText,
1415
+ y: t.fill.sidePointer.y - V.value.style.chart.legend.fontSize,
1416
+ width: G.value.absoluteWidth / 3,
1417
+ height: V.value.style.chart.legend.fontSize * 2,
1418
+ style: {
1419
+ overflow: "visible",
1420
+ position: "relative"
1421
+ }
1422
+ }, [V.value.style.chart.legend.showDefault ? (D(), b("div", {
1423
+ key: 0,
1424
+ style: E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${V.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${V.value.style.chart.legend.fontSize}px; color:${V.value.style.chart.legend.color}; font-weight:${V.value.style.chart.legend.bold ? "bold" : "normal"}`)
1425
+ }, j(M(m)(V.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${M(l)({
1426
+ v: t.proportion * 100,
1427
+ s: "%",
1428
+ r: V.value.style.chart.legend.roundingPercentage
1429
+ })} (${M(l)({
1430
+ p: V.value.style.chart.legend.prefix,
1431
+ v: t.value,
1432
+ s: V.value.style.chart.legend.suffix,
1433
+ r: V.value.style.chart.legend.roundingValue
1434
+ })})`, {
1435
+ datapoint: t,
1436
+ seriesIndex: n,
1437
+ type: "barDatapoint"
1438
+ })), 5)) : y("", !0), A(e.$slots, "legend", De({ ref_for: !0 }, {
1439
+ datapoint: t,
1440
+ config: V.value,
1441
+ dataset: K.value
1442
+ }), void 0, !0)], 8, _t)),
1443
+ t.fill.donut && J.value === t.id ? (D(), b("g", vt, [
1444
+ (D(!0), b(g, null, k(t.fill.donut, (e, n) => (D(), b("g", null, [Z(e, t.fill.donut, !0) > 6 ? (D(), b("path", {
1445
+ key: 0,
1446
+ d: M(p)(e, {
1447
+ x: e.cx,
1448
+ y: e.cy
1449
+ }, 0, 8, !1, !0, 10),
1450
+ stroke: e.color,
1451
+ class: "vue-ui-donut-arc-path",
1452
+ "stroke-width": "0.5",
1453
+ "stroke-linecap": "round",
1454
+ "stroke-linejoin": "round",
1455
+ fill: "none"
1456
+ }, null, 8, yt)) : y("", !0)]))), 256)),
1457
+ (D(!0), b(g, null, k(t.fill.donut, (e, t) => (D(), b("path", {
1458
+ class: "vue-ui-donut-arc-path",
1459
+ d: e.arcSlice,
1460
+ fill: `${e.color}`,
1461
+ stroke: V.value.style.chart.backgroundColor,
1462
+ "stroke-width": 1
1463
+ }, null, 8, bt))), 256)),
1464
+ (D(!0), b(g, null, k(t.fill.donut, (e, n) => (D(), b("g", null, [Z(e, t.fill.donut, !0) > 6 ? (D(), b("g", xt, [x("text", {
1465
+ "text-anchor": M(f)(e, !0, 0).anchor,
1466
+ x: M(f)(e, !0, 2).x,
1467
+ y: M(ne)(e, 12, 12),
1468
+ fill: V.value.style.chart.legend.color,
1469
+ "font-size": V.value.style.chart.legend.fontSize / 1.5,
1470
+ "font-weight": V.value.style.chart.legend.bold ? "bold" : "normal"
1471
+ }, j(M(m)(V.value.style.chart.dataLabel.formatter, e.value, `${Z(e, t.fill.donut)} (${M(l)({
1472
+ p: V.value.style.chart.legend.prefix,
1473
+ v: e.value,
1474
+ s: V.value.style.chart.legend.suffix,
1475
+ r: V.value.style.chart.legend.roundingValue
1476
+ })})`, {
1477
+ datapoint: e,
1478
+ seriesIndex: n,
1479
+ type: "donutDatapoint"
1480
+ })), 9, St), x("text", {
1481
+ "text-anchor": M(f)(e).anchor,
1482
+ x: M(f)(e, !0, 2).x,
1483
+ y: M(ne)(e, 12, 12) + V.value.style.chart.legend.fontSize / 1.5,
1484
+ fill: V.value.style.chart.legend.color,
1485
+ "font-size": V.value.style.chart.legend.fontSize / 1.5,
1486
+ "font-weight": V.value.style.chart.legend.bold ? "bold" : "normal"
1487
+ }, j(e.name), 9, Ct)])) : y("", !0)]))), 256))
1488
+ ])) : y("", !0),
1489
+ t.fill.miniDonut && !J.value ? (D(), b("g", wt, [(D(!0), b(g, null, k(t.fill.miniDonut, (e, t) => (D(), b("path", {
1490
+ class: "vue-ui-donut-arc-path",
1491
+ d: e.arcSlice,
1492
+ fill: `${e.color}`,
1493
+ stroke: V.value.style.chart.backgroundColor,
1494
+ "stroke-width": .5
1495
+ }, null, 8, Tt))), 256))])) : y("", !0)
1496
+ ], 12, pt))), 256))
1497
+ ])) : y("", !0)
1498
+ ])) : y("", !0),
1499
+ V.value.style.shape === "tube" ? (D(), b("g", Et, [W.value ? y("", !0) : (D(), b("g", Dt, [
1500
+ x("path", {
1501
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1502
+ d: q.value.tubeTop,
1503
+ stroke: V.value.style.chart.box.stroke,
1504
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1505
+ "stroke-linejoin": "round",
1506
+ "stroke-linecap": "round",
1507
+ fill: "none"
1508
+ }, null, 8, Ot),
1509
+ x("path", {
1510
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1511
+ d: q.value.tubeLeft,
1512
+ stroke: V.value.style.chart.box.stroke,
1513
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1514
+ "stroke-linejoin": "round",
1515
+ "stroke-linecap": "round",
1516
+ fill: "none"
1517
+ }, null, 8, kt),
1518
+ x("path", {
1519
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1520
+ d: q.value.tubeRight,
1521
+ stroke: V.value.style.chart.box.stroke,
1522
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1523
+ "stroke-linejoin": "round",
1524
+ "stroke-linecap": "round",
1525
+ fill: "none"
1526
+ }, null, 8, At),
1527
+ x("path", {
1528
+ "stroke-dasharray": V.value.style.chart.box.strokeDasharray,
1529
+ d: q.value.tubeBottom,
1530
+ stroke: V.value.style.chart.box.stroke,
1531
+ "stroke-width": V.value.style.chart.box.strokeWidth,
1532
+ "stroke-linejoin": "round",
1533
+ "stroke-linecap": "round",
1534
+ fill: "none"
1535
+ }, null, 8, jt),
1536
+ x("path", {
1537
+ d: Gn.value.tubeTop,
1538
+ stroke: V.value.style.chart.bar.stroke,
1539
+ "stroke-width": V.value.style.chart.bar.strokeWidth,
1540
+ "stroke-linejoin": "round",
1541
+ "stroke-linecap": "round",
1542
+ fill: `url(#gradient_tube_top${F.value})`
1543
+ }, null, 8, Mt),
1544
+ x("path", {
1545
+ d: Gn.value.tubeBody,
1546
+ stroke: V.value.style.chart.bar.stroke,
1547
+ "stroke-width": V.value.style.chart.bar.strokeWidth,
1548
+ "stroke-linejoin": "round",
1549
+ "stroke-linecap": "round",
1550
+ fill: `url(#gradient_tube_body${F.value})`
1551
+ }, null, 8, Nt),
1552
+ x("path", {
1553
+ d: Gn.value.tubeTop,
1554
+ stroke: "#FFFFFF",
1555
+ "stroke-width": .5,
1556
+ "stroke-linejoin": "round",
1557
+ "stroke-linecap": "round",
1558
+ fill: "none"
1559
+ }, null, 8, Pt)
1560
+ ])), W.value ? (D(), b("g", Ft, [(D(!0), b(g, null, k(K.value, (e, t) => (D(), b("g", {
1561
+ style: E(`opacity:${J.value ? J.value === e.id ? 1 : .3 : 1}`),
1562
+ class: "vue-ui-3d-bar-stack",
1563
+ role: "img",
1564
+ "aria-label": dr(e)
1565
+ }, [
1566
+ x("defs", null, [S(h, {
1567
+ t: "radial",
1568
+ id: `gradient_tube_top_${e.id}`,
1569
+ fx: "10%",
1570
+ cy: "55%",
1571
+ stops: [[
1572
+ "0%",
1573
+ M(n)(M(o)(e.color, .5), 80),
1574
+ 1
1575
+ ], [
1576
+ "100%",
1577
+ M(n)(M(u)(e.color, .1), 80),
1578
+ 1
1579
+ ]]
1580
+ }, null, 8, ["id", "stops"]), S(h, {
1581
+ t: "linear",
1582
+ id: `gradient_tube_body_${e.id}`,
1583
+ x1: "0%",
1584
+ y1: "0%",
1585
+ x2: "100%",
1586
+ y2: "0%",
1587
+ stops: [
1588
+ [
1589
+ "0%",
1590
+ e.color,
1591
+ 1
1592
+ ],
1593
+ [
1594
+ "10%",
1595
+ M(n)(M(u)(e.color, .7), 100),
1596
+ 1
1597
+ ],
1598
+ [
1599
+ "25%",
1600
+ M(n)(M(u)(e.color, .5), 100),
1601
+ 1
1602
+ ],
1603
+ [
1604
+ "75%",
1605
+ M(n)(e.color, 80),
1606
+ 1
1607
+ ],
1608
+ [
1609
+ "100%",
1610
+ M(n)(M(o)(e.color, .7), 100),
1611
+ 1
1612
+ ]
1613
+ ]
1614
+ }, null, 8, ["id", "stops"])]),
1615
+ x("path", {
1616
+ onMouseenter: (t) => Y(e),
1617
+ onClick: (t) => Y(e, !0),
1618
+ onMouseout: (t) => X(e),
1619
+ d: e.fill.tubeBody,
1620
+ stroke: "#FFFFFF",
1621
+ "stroke-width": .5,
1622
+ "stroke-linejoin": "round",
1623
+ "stroke-linecap": "round",
1624
+ fill: `url(#gradient_tube_body_${e.id})`
1625
+ }, null, 40, Lt),
1626
+ t > 0 ? (D(), b("path", {
1627
+ key: 0,
1628
+ onMouseenter: (t) => Y(e),
1629
+ onClick: (t) => Y(e, !0),
1630
+ onMouseout: (t) => X(e),
1631
+ d: e.fill.bottomTubeTop,
1632
+ stroke: "#000000",
1633
+ "stroke-width": .5,
1634
+ "stroke-linejoin": "round",
1635
+ "stroke-linecap": "round",
1636
+ fill: "none"
1637
+ }, null, 40, Rt)) : y("", !0),
1638
+ x("path", {
1639
+ onMouseenter: (t) => Y(e),
1640
+ onClick: (t) => Y(e, !0),
1641
+ onMouseout: (t) => X(e),
1642
+ d: e.fill.tubeTop,
1643
+ stroke: "#FFFFFF",
1644
+ "stroke-width": .5,
1645
+ "stroke-linejoin": "round",
1646
+ "stroke-linecap": "round",
1647
+ fill: `url(#gradient_tube_top_${e.id})`
1648
+ }, null, 40, zt)
1649
+ ], 12, It))), 256)), (D(!0), b(g, null, k(K.value, (t, n) => (D(), b("g", {
1650
+ style: E(`opacity:${J.value ? +(J.value === t.id) : +(t.proportion * 100 > V.value.style.chart.legend.hideUnderPercentage)}`),
1651
+ onClick: (e) => pn("selectDatapoint", t)
1652
+ }, [
1653
+ x("path", {
1654
+ stroke: V.value.style.chart.color,
1655
+ "stroke-dasharray": "1",
1656
+ "stroke-width": "0.5",
1657
+ "stroke-linecap": "round",
1658
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1659
+ }, null, 8, Vt),
1660
+ !t.fill.miniDonut || J.value ? (D(), b("circle", {
1661
+ key: 0,
1662
+ cx: t.fill.sidePointer.x2,
1663
+ cy: t.fill.sidePointer.y,
1664
+ r: 2,
1665
+ fill: t.color,
1666
+ stroke: V.value.style.chart.backgroundColor
1667
+ }, null, 8, Ht)) : y("", !0),
1668
+ M(Tn) ? (D(), b("rect", {
1669
+ key: 1,
1670
+ x: t.fill.sidePointer.xText,
1671
+ y: t.fill.sidePointer.y - V.value.style.chart.legend.fontSize / 2,
1672
+ width: G.value.width / 3,
1673
+ height: V.value.style.chart.legend.fontSize,
1674
+ fill: "#6A6A6A80",
1675
+ rx: "3"
1676
+ }, null, 8, Ut)) : y("", !0),
1677
+ M(Tn) ? y("", !0) : (D(), b("foreignObject", {
1678
+ key: 2,
1679
+ x: t.fill.sidePointer.xText,
1680
+ y: t.fill.sidePointer.y - V.value.style.chart.legend.fontSize,
1681
+ width: G.value.absoluteWidth / 3,
1682
+ height: V.value.style.chart.legend.fontSize * 2,
1683
+ style: {
1684
+ overflow: "visible",
1685
+ position: "relative"
1686
+ }
1687
+ }, [V.value.style.chart.legend.showDefault ? (D(), b("div", {
1688
+ key: 0,
1689
+ style: E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${V.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${V.value.style.chart.legend.fontSize}px; color:${V.value.style.chart.legend.color};font-weight:${V.value.style.chart.legend.bold ? "bold" : "normal"}`)
1690
+ }, j(M(m)(V.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${M(l)({
1691
+ v: t.proportion * 100,
1692
+ s: "%",
1693
+ r: V.value.style.chart.legend.roundingPercentage
1694
+ })} (${M(l)({
1695
+ p: V.value.style.chart.legend.prefix,
1696
+ v: t.value,
1697
+ s: V.value.style.chart.legend.suffix,
1698
+ r: V.value.style.chart.legend.roundingValue
1699
+ })})`, {
1700
+ datapoint: t,
1701
+ seriesIndex: n,
1702
+ type: "barDatapoint"
1703
+ })), 5)) : y("", !0), A(e.$slots, "legend", De({ ref_for: !0 }, {
1704
+ datapoint: t,
1705
+ config: V.value,
1706
+ dataset: K.value
1707
+ }), void 0, !0)], 8, Wt)),
1708
+ t.fill.donut && J.value === t.id ? (D(), b("g", Gt, [
1709
+ (D(!0), b(g, null, k(t.fill.donut, (e, n) => (D(), b("g", null, [Z(e, t.fill.donut, !0) > 6 ? (D(), b("path", {
1710
+ key: 0,
1711
+ d: M(p)(e, {
1712
+ x: e.cx,
1713
+ y: e.cy
1714
+ }, 0, 8, !1, !0, 10),
1715
+ stroke: e.color,
1716
+ class: "vue-ui-donut-arc-path",
1717
+ "stroke-width": "0.5",
1718
+ "stroke-linecap": "round",
1719
+ "stroke-linejoin": "round",
1720
+ fill: "none"
1721
+ }, null, 8, Kt)) : y("", !0)]))), 256)),
1722
+ (D(!0), b(g, null, k(t.fill.donut, (e, t) => (D(), b("path", {
1723
+ class: "vue-ui-donut-arc-path",
1724
+ d: e.arcSlice,
1725
+ fill: `${e.color}`,
1726
+ stroke: V.value.style.chart.backgroundColor,
1727
+ "stroke-width": 1
1728
+ }, null, 8, qt))), 256)),
1729
+ (D(!0), b(g, null, k(t.fill.donut, (e, n) => (D(), b("g", null, [Z(e, t.fill.donut, !0) > 6 ? (D(), b("g", Jt, [x("text", {
1730
+ "text-anchor": M(f)(e, !0, 0).anchor,
1731
+ x: M(f)(e, !0, 2).x,
1732
+ y: M(ne)(e, 12, 12),
1733
+ fill: V.value.style.chart.legend.color,
1734
+ "font-size": V.value.style.chart.legend.fontSize / 1.5,
1735
+ "font-weight": V.value.style.chart.legend.bold ? "bold" : "normal"
1736
+ }, j(M(m)(V.value.style.chart.dataLabel.formatter, e.value, `${Z(e, t.fill.donut)} (${M(l)({
1737
+ p: V.value.style.chart.legend.prefix,
1738
+ v: e.value,
1739
+ s: V.value.style.chart.legend.suffix,
1740
+ r: V.value.style.chart.legend.roundingValue
1741
+ })})`, {
1742
+ datapoint: e,
1743
+ seriesIndex: n,
1744
+ type: "donutDatapoint"
1745
+ })), 9, Yt), x("text", {
1746
+ "text-anchor": M(f)(e).anchor,
1747
+ x: M(f)(e, !0, 2).x,
1748
+ y: M(ne)(e, 12, 12) + V.value.style.chart.legend.fontSize / 1.5,
1749
+ fill: V.value.style.chart.legend.color,
1750
+ "font-size": V.value.style.chart.legend.fontSize / 1.5,
1751
+ "font-weight": V.value.style.chart.legend.bold ? "bold" : "normal"
1752
+ }, j(e.name), 9, Xt)])) : y("", !0)]))), 256))
1753
+ ])) : y("", !0),
1754
+ t.fill.miniDonut && !J.value ? (D(), b("g", Zt, [(D(!0), b(g, null, k(t.fill.miniDonut, (e, t) => (D(), b("path", {
1755
+ class: "vue-ui-donut-arc-path",
1756
+ d: e.arcSlice,
1757
+ fill: `${e.color}`,
1758
+ stroke: V.value.style.chart.backgroundColor,
1759
+ "stroke-width": .5
1760
+ }, null, 8, Qt))), 256))])) : y("", !0)
1761
+ ], 12, Bt))), 256))])) : y("", !0)])) : y("", !0),
1762
+ A(e.$slots, "svg", { svg: {
1763
+ ...G.value,
1764
+ isPrintingImg: M(jn) || M(Mn) || M(ar),
1765
+ isPrintingSvg: M(or)
1766
+ } }, void 0, !0)
1767
+ ], 46, Ve))]),
1768
+ e.$slots.watermark ? (D(), b("div", $t, [A(e.$slots, "watermark", T(w({ isPrinting: M(jn) || M(Mn) || M(or) || M(ar) })), void 0, !0)])) : y("", !0),
1769
+ e.$slots.source ? (D(), b("div", {
1770
+ key: 5,
1771
+ ref_key: "source",
1772
+ ref: bn,
1773
+ dir: "auto"
1774
+ }, [A(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
1775
+ mn.value && W.value && V.value.userOptions.buttons.table ? (D(), v(je(tr.value.component), De({ key: 6 }, tr.value.props, {
1776
+ ref_key: "tableUnit",
1777
+ ref: xn,
1778
+ onClose: nr
1779
+ }), Te({
1780
+ content: N(() => [(D(), v(M(an), {
1781
+ key: `table_${gn.value}`,
1782
+ colNames: $.value.colNames,
1783
+ head: $.value.head,
1784
+ body: $.value.body,
1785
+ config: $.value.config,
1786
+ title: V.value.table.useDialog ? "" : tr.value.title,
1787
+ withCloseButton: !V.value.table.useDialog,
1788
+ isCursorPointer: Cn.value,
1789
+ onClose: nr
1790
+ }, {
1791
+ th: N(({ th: e }) => [e === "__SUM__" ? (D(), b("div", en, [S(M(nn), {
1792
+ name: "sigma",
1793
+ stroke: $.value.config.th.color,
1794
+ size: 16
1795
+ }, null, 8, ["stroke"])])) : (D(), b("div", tn, j(e), 1))]),
1796
+ td: N(({ td: e }) => [Ee(j(e.name || e), 1)]),
1797
+ _: 1
1798
+ }, 8, [
1799
+ "colNames",
1800
+ "head",
1801
+ "body",
1802
+ "config",
1803
+ "title",
1804
+ "withCloseButton",
1805
+ "isCursorPointer"
1806
+ ]))]),
1807
+ _: 2
1808
+ }, [V.value.table.useDialog ? {
1809
+ name: "title",
1810
+ fn: N(() => [Ee(j(tr.value.title), 1)]),
1811
+ key: "0"
1812
+ } : void 0, V.value.table.useDialog ? {
1813
+ name: "actions",
1814
+ fn: N(() => [x("button", {
1815
+ tabindex: "0",
1816
+ class: "vue-ui-user-options-button",
1817
+ onClick: t[7] ||= (e) => Xn(V.value.userOptions.callbacks.csv)
1818
+ }, [S(M(nn), {
1819
+ name: "fileCsv",
1820
+ stroke: tr.value.props.color
1821
+ }, null, 8, ["stroke"])])]),
1822
+ key: "1"
1823
+ } : void 0]), 1040)) : y("", !0),
1824
+ A(e.$slots, "skeleton", {}, () => [M(Tn) ? (D(), v(fe, { key: 0 })) : y("", !0)], !0)
1825
+ ], 44, Le));
1826
+ }
1827
+ }, [["__scopeId", "data-v-0936c7c0"]]);
1828
+ //#endregion
1829
+ export { Ie as n, nn as t };