vue-data-ui 3.23.10 → 3.23.11

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