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