vue-data-ui 3.22.13 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -0,0 +1,1849 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Bt as n, D as r, Jt as i, Kt as a, Ot as o, Pt as s, S as c, X as l, Y as u, b as d, f, h as p, i as m, jt as ee, kt as te, p as ne, pt as re, q as ie, t as ae, tt as h, w as oe } from "./lib-BuMGJ_a0.js";
3
+ import { n as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-BilxnBNr.js";
5
+ import { t as le } from "./usePrinter-BFvi4jVy.js";
6
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
8
+ import { t as pe } from "./useNestedProp--NSEmhOH.js";
9
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as he } from "./img-DIQG5q8T.js";
11
+ import { n as ge } from "./Title-BODtwViI.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: () => en }), 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 = ["innerHTML"], en = /*#__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 en = w(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), tn = w(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), nn = w(() => import("./DataTable-D4tM9s5Y.js")), rn = w(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), an = w(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), on = w(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), sn = w(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_3d_bar: cn } = ce(), { isThemeValid: ln, warnInvalidTheme: un } = me(), F = e, dn = Fe, fn = v(() => !!F.dataset && Object.keys(F.dataset).length), I = k(ie()), L = k(null), R = k(!1), pn = k(0), mn = k(0), hn = k(null), gn = k(null), _n = k(null), vn = k(null), z = k(!1), yn = k(null), bn = k(null), xn = k(!1), Sn = k(!1), 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 Cn = v(() => H.value.userOptions.useCursorPointer), wn = v(() => i({
265
+ defaultConfig: {
266
+ customPalette: [
267
+ "#808080",
268
+ "#ADADAD",
269
+ "#DBDBDB"
270
+ ],
271
+ userOptions: { show: !1 },
272
+ table: { show: !1 },
273
+ style: { chart: {
274
+ backgroundColor: "#99999930",
275
+ color: "#6A6A6A",
276
+ bar: {
277
+ color: "#ADADAD",
278
+ stroke: "#6A6A6A"
279
+ },
280
+ box: { stroke: "#6A6A6A" }
281
+ } }
282
+ },
283
+ userConfig: H.value.skeletonConfig ?? {}
284
+ })), { loading: U, FINAL_DATASET: W } = ue({
285
+ ...je(F),
286
+ FINAL_CONFIG: H,
287
+ prepareConfig: kn,
288
+ callback: () => {
289
+ Promise.resolve().then(async () => {
290
+ await De(), Ln();
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: i({
329
+ defaultConfig: H.value,
330
+ userConfig: wn.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 = pe({
335
+ userConfig: F.config,
336
+ defaultConfig: cn
337
+ }), t = e.theme;
338
+ if (!t) return e;
339
+ if (!ln.value(e)) return un(e), e;
340
+ let n = pe({
341
+ userConfig: Ce[t] || F.config,
342
+ defaultConfig: e
343
+ }), r = pe({
344
+ userConfig: F.config,
345
+ defaultConfig: n
346
+ });
347
+ return {
348
+ ...r,
349
+ customPalette: r.customPalette.length ? r.customPalette : a[t] || s
350
+ };
351
+ }
352
+ Me(() => F.config, (e) => {
353
+ U.value || (H.value = kn()), Tn.value = !H.value.userOptions.showOnChartHover, zn(), pn.value += 1, mn.value += 1, G.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)), G = k({ showTable: H.value.table.show });
360
+ Me(H, () => {
361
+ G.value = { showTable: H.value.table.show };
362
+ }, { immediate: !0 });
363
+ let K = v(() => W.value.series && W.value.series.length), Fn = k(H.value.style.chart.box.dimensions.width * (K.value ? 2 : 1)), In = k(H.value.style.chart.box.dimensions.height), q = 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
+ })), J = v(() => {
373
+ if (K.value) {
374
+ let e = W.value.series.map((e) => e.value || 0).reduce((e, t) => e + t, 0), t = W.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] || s[n] || s[n % s.length],
380
+ breakdown: t.breakdown ? t.breakdown.sort((e, t) => t.value - e.value) : null
381
+ })).sort((e, t) => t.value - e.value), n = [], r = 0;
382
+ for (let e = 0; e < t.length; e += 1) n.push({
383
+ ...t[e],
384
+ fill: Vn(r, t[e].proportion, t[e].breakdown, t[e].color)
385
+ }), r += t[e].proportion;
386
+ return n;
387
+ }
388
+ return null;
389
+ }), Y = v(() => {
390
+ let e = q.value.width / 2;
391
+ return {
392
+ right: `M${e},${q.value.top} ${q.value.width - q.value.right}, ${q.value.top + q.value.perspective} ${q.value.width - q.value.right},${q.value.height - q.value.bottom - q.value.perspective} ${e},${q.value.height - q.value.bottom}`,
393
+ left: `M${e},${q.value.top} ${q.value.left},${q.value.top + q.value.perspective} ${q.value.left},${q.value.height - q.value.bottom - q.value.perspective} ${e},${q.value.height - q.value.bottom}`,
394
+ side: `M${e},${q.value.height - q.value.bottom} ${e},${q.value.top + q.value.perspective * 2}`,
395
+ topSides: `M${q.value.left},${q.value.top + q.value.perspective} ${e},${q.value.top + q.value.perspective * 2} ${q.value.width - q.value.right},${q.value.top + q.value.perspective}`,
396
+ tubeTop: `M${q.value.left},${q.value.top + q.value.perspective} C ${q.value.left},${q.value.top - q.value.perspective / 3} ${q.value.width - q.value.right},${q.value.top - q.value.perspective / 3} ${q.value.width - q.value.right},${q.value.top + q.value.perspective} C ${q.value.width - q.value.right},${q.value.top + q.value.perspective * 2.3} ${q.value.left},${q.value.top + q.value.perspective * 2.3} ${q.value.left},${q.value.top + q.value.perspective}`,
397
+ tubeLeft: `M${q.value.left},${q.value.top + q.value.perspective} ${q.value.left},${q.value.height - q.value.bottom - q.value.perspective}`,
398
+ tubeRight: `M${q.value.width - q.value.right},${q.value.top + q.value.perspective} ${q.value.width - q.value.right},${q.value.height - q.value.bottom - q.value.perspective}`,
399
+ tubeBottom: `M${q.value.width - q.value.right},${q.value.height - q.value.bottom - q.value.perspective} C ${q.value.width - q.value.right},${q.value.height} ${q.value.left},${q.value.height} ${q.value.left},${q.value.height - q.value.bottom - q.value.perspective}`
400
+ };
401
+ }), X = k(H.value.style.chart.animation.use ? 0 : W.value.percentage);
402
+ function Ln() {
403
+ let e = 0, t = H.value.style.chart.animation.speed, n = .005 * H.value.style.chart.animation.acceleration;
404
+ function r() {
405
+ X.value += t + e, e += n, X.value < W.value.percentage ? requestAnimationFrame(r) : X.value = W.value.percentage;
406
+ }
407
+ H.value.style.chart.animation.use && (X.value = 0, r());
408
+ }
409
+ ke(() => {
410
+ zn(), Ln();
411
+ });
412
+ let Rn = v(() => !!H.value.debug);
413
+ function zn() {
414
+ if (ee(F.dataset) ? h({
415
+ componentName: "VueUi3dBar",
416
+ type: "dataset",
417
+ debug: Rn.value
418
+ }) : F.dataset.series ? F.dataset.series.forEach((e, t) => {
419
+ re({
420
+ datasetObject: e,
421
+ requiredAttributes: ["name", "value"]
422
+ }).forEach((e) => {
423
+ h({
424
+ componentName: "VueUi3dBar",
425
+ type: "datasetSerieAttribute",
426
+ property: e,
427
+ index: t,
428
+ debug: Rn.value
429
+ });
430
+ }), e.breakdown && e.breakdown.forEach((e, n) => {
431
+ re({
432
+ datasetObject: e,
433
+ requiredAttributes: ["name", "value"]
434
+ }).forEach((e) => {
435
+ h({
436
+ componentName: "VueUi3dBar",
437
+ type: "datasetSerieAttribute",
438
+ property: e,
439
+ index: `${t} - ${n}`,
440
+ debug: Rn.value
441
+ });
442
+ });
443
+ });
444
+ }) : re({
445
+ datasetObject: F.dataset,
446
+ requiredAttributes: ["percentage"]
447
+ }).forEach((e) => {
448
+ h({
449
+ componentName: "VueUi3dBar",
450
+ type: "datasetAttribute",
451
+ property: e,
452
+ debug: Rn.value
453
+ });
454
+ }), H.value.responsive) {
455
+ let e = ve(() => {
456
+ let { width: e, height: t } = ye({
457
+ chart: L.value,
458
+ title: H.value.style.chart.title.text ? hn.value : null,
459
+ source: vn.value
460
+ });
461
+ requestAnimationFrame(() => {
462
+ In.value = t - 12, Fn.value = e;
463
+ });
464
+ });
465
+ gn.value && (_n.value && gn.value.unobserve(_n.value), gn.value.disconnect()), gn.value = new ResizeObserver(e), _n.value = L.value.parentNode, gn.value.observe(_n.value);
466
+ }
467
+ }
468
+ let Bn = v(() => q.value.width / 4);
469
+ function Vn(e, t, n, r) {
470
+ let i = q.value.height - q.value.bottom - q.value.top - q.value.perspective * 2, { width: a, height: s, bottom: c, right: l, left: u, perspective: d } = q.value, f = K.value ? a / 4 : a / 2, p = f * 2 + u, m = c + i * e, ee = s - m - d - i * t / 2, ne = ee > q.value.height / 2 ? "top" : "bottom", re = s * .25, ie = !!n, ae = null, h = null;
471
+ return ie && (n = n.map((e, t) => ({
472
+ ...e,
473
+ value: e.value || 0,
474
+ color: o(r, t / n.length)
475
+ })), ae = te({ series: n }, a / 2 + a / 5, ne === "top" ? ee - re : ee + re, a / 10, a / 10, 1.99999, 2, 1, 360, 105.25, a / 20), h = te({ series: n }, a - p + a / 14, s - m - d - i * t / 2, a / 40, a / 40, 1.99999, 2, 1, 360, 105.25, a / 40)), {
476
+ donut: ae,
477
+ miniDonut: h,
478
+ donutR: a / 20,
479
+ CENTER_X: f,
480
+ sidePointer: {
481
+ x: a - p,
482
+ x2: a - p + a / 14,
483
+ xText: a - p + a / 9,
484
+ y: s - m - d - i * t / 2,
485
+ topY: s - m - d - i * t,
486
+ height: i * t
487
+ },
488
+ apexBottom: {
489
+ y: s - m,
490
+ x: f
491
+ },
492
+ apexTop: {
493
+ y: s - m - i * t,
494
+ x: f
495
+ },
496
+ right: `M${f},${s - m} ${f},${s - m - i * t} ${a - p},${s - m - d - i * t} ${a - p},${s - m - d}Z`,
497
+ left: `M${f},${s - m} ${f},${s - m - i * t} ${u}, ${s - m - d - i * t} ${u},${s - m - d}Z`,
498
+ liningTop: `M${u},${s - m - d - i * t} ${f},${s - m - i * t} ${a - p},${s - m - d - i * t}`,
499
+ liningTopShade: `M${u},${s - m - d - i * t - .5} ${f},${s - m - i * t - .5} ${a - p},${s - m - d - i * t - .5}`,
500
+ top: `M${f},${s - m - i * t} ${u},${s - m - d - i * t} ${f},${s - m - d * 2 - i * t} ${a - p},${s - m - d - i * t} Z`,
501
+ tubeTop: `M${u},${s - m - i * t - d} C ${u},${s - m - i * t - d * 2.5} ${a - p},${s - m - i * t - d * 2.5} ${a - p},${s - m - i * t - d} C ${a - p},${s - m - i * t + d / 2} ${u},${s - m - i * t + d / 2} ${u},${s - m - i * t - d}`,
502
+ bottomTubeTop: `M ${a - p - .5},${s - m - d} C ${a - p - .5},${s - m + d / 2} ${u},${s - m + d / 2} ${u + .5},${s - m - d}`,
503
+ tubeBody: `M
504
+ ${u},${s - m - i * t - d}
505
+ C ${u},${s - m - i * t + d / 2}
506
+ ${a - p},${s - m - i * t + d / 2}
507
+ ${a - p},${s - m - i * t - d}
508
+ L${a - p},${s - m - d}
509
+ C
510
+ ${a - p},${s - m + d / 2}
511
+ ${u},${s - m + d / 2}
512
+ ${u},${s - m - d}Z`
513
+ };
514
+ }
515
+ let Hn = v(() => {
516
+ let e = d(X.value / 100), t = q.value.height - q.value.bottom - q.value.top - q.value.perspective * 2, { width: n, height: r, bottom: i, right: a, left: o, perspective: s } = q.value, c = K.value ? n / 4 : n / 2, l = K.value ? c * 2 + o : a, u = i + t * 0;
517
+ return {
518
+ right: `M${c},${r - u} ${c},${r - u - t * e} ${n - l},${r - u - s - t * e} ${n - l},${r - u - s}Z`,
519
+ left: `M${c},${r - u} ${c},${r - u - t * e} ${o}, ${r - u - s - t * e} ${o},${r - u - s}Z`,
520
+ 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`,
521
+ 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}`,
522
+ tubeBody: `M
523
+ ${o},${r - u - t * e - s}
524
+ C ${o},${r - u - t * e + s / 2}
525
+ ${n - l},${r - u - t * e + s / 2}
526
+ ${n - l},${r - u - t * e - s}
527
+ L${n - l},${r - s * 1.5}
528
+ C
529
+ ${n - l},${r}
530
+ ${o},${r}
531
+ ${o},${r - u - s}Z`
532
+ };
533
+ }), Z = k(null);
534
+ function Q(e, t = !1) {
535
+ H.value.events.datapointEnter && !t && H.value.events.datapointEnter({
536
+ datapoint: e,
537
+ seriesIndex: e.seriesIndex
538
+ }), H.value.events.datapointClick && t && H.value.events.datapointClick({
539
+ datapoint: e,
540
+ seriesIndex: e.seriesIndex
541
+ }), dn("selectDatapoint", e);
542
+ let n = J.value?.findIndex((t) => t.id === e.id) ?? null;
543
+ n !== null && n !== -1 && (B.value = n, V.value = ur(e)), t || (Z.value = e.id), t && R.value && (R.value = !1), t && !R.value && (R.value = !0);
544
+ }
545
+ function $(e) {
546
+ H.value.events.datapointLeave && H.value.events.datapointLeave({
547
+ datapoint: e,
548
+ seriesIndex: e.seriesIndex
549
+ }), !R.value && (Z.value = null, B.value = null, V.value = "");
550
+ }
551
+ function Un(e, t, n = !1) {
552
+ let r = W.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 / Wn(t)) ? 0 : e.value / Wn(t) * 100;
553
+ return n ? a : i.toFixed(0) + "%";
554
+ }
555
+ function Wn(e) {
556
+ return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
557
+ }
558
+ let Gn = k(!1);
559
+ function Kn(e) {
560
+ Gn.value = e;
561
+ }
562
+ function qn() {
563
+ return K.value ? J.value : W.value.percentage;
564
+ }
565
+ let Jn = v(() => K.value ? {
566
+ head: J.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{
567
+ name: e.name,
568
+ color: e.color
569
+ }, ...e.breakdown.map((t, n) => ({
570
+ name: t.name,
571
+ color: o(e.color, n / e.breakdown.length)
572
+ }))] : {
573
+ name: e.name,
574
+ color: e.color
575
+ }),
576
+ body: J.value.flatMap((e) => e.breakdown && e.breakdown.length ? [e.value, ...e.breakdown.map((e) => e.value)] : e.value)
577
+ } : null);
578
+ function Yn(e = null) {
579
+ if (!K.value) {
580
+ console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
581
+ return;
582
+ }
583
+ De(() => {
584
+ let n = J.value.map((e) => e.value).reduce((e, t) => e + t, 0), i = Jn.value.head.map((e, t) => [
585
+ [e.name],
586
+ [Jn.value.body[t]],
587
+ [isNaN(Jn.value.body[t] / n) ? "-" : Jn.value.body[t] / n * 100]
588
+ ]), a = r([
589
+ [H.value.style.chart.title.text],
590
+ [H.value.style.chart.title.subtitle.text],
591
+ [
592
+ [""],
593
+ ["val"],
594
+ ["%"]
595
+ ]
596
+ ].concat(i));
597
+ e ? e(a) : t({
598
+ csvContent: a,
599
+ title: H.value.style.chart.title.text || "vue-ui-3d-bar"
600
+ });
601
+ });
602
+ }
603
+ let Xn = v(() => {
604
+ if (!K.value || !Array.isArray(J.value) || !J.value.length) return {
605
+ colNames: [],
606
+ head: [],
607
+ body: [],
608
+ a11yBody: [],
609
+ config: {
610
+ th: {
611
+ backgroundColor: H.value.table.th.backgroundColor,
612
+ color: H.value.table.th.color,
613
+ outline: H.value.table.th.outline
614
+ },
615
+ td: {
616
+ backgroundColor: H.value.table.td.backgroundColor,
617
+ color: H.value.table.td.color,
618
+ outline: H.value.table.td.outline
619
+ },
620
+ breakpoint: H.value.table.responsiveBreakpoint,
621
+ shape: H.value.style.shape === "tube" ? "circle" : "square"
622
+ }
623
+ };
624
+ let e = J.value.reduce((e, t) => e + t.value, 0), t = [
625
+ " <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>",
626
+ l({
627
+ p: H.value.style.chart.legend.prefix,
628
+ v: e,
629
+ s: H.value.style.chart.legend.suffix,
630
+ r: H.value.table.td.roundingValue
631
+ }),
632
+ "100%"
633
+ ], n = Jn.value.head.map((t, n) => {
634
+ let r = Jn.value.body[n];
635
+ return [
636
+ {
637
+ color: t.color,
638
+ name: t.name
639
+ },
640
+ l({
641
+ p: H.value.style.chart.legend.prefix,
642
+ v: r,
643
+ s: H.value.style.chart.legend.suffix,
644
+ r: H.value.table.td.roundingValue
645
+ }),
646
+ isNaN(r / e) ? "-" : l({
647
+ v: r / e * 100,
648
+ s: "%",
649
+ r: H.value.table.td.roundingPercentage
650
+ })
651
+ ];
652
+ }), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e));
653
+ return {
654
+ colNames: [
655
+ H.value.table.columnNames.series,
656
+ H.value.table.columnNames.value,
657
+ H.value.table.columnNames.percentage
658
+ ],
659
+ head: t,
660
+ body: n,
661
+ a11yBody: r,
662
+ config: {
663
+ th: {
664
+ backgroundColor: H.value.table.th.backgroundColor,
665
+ color: H.value.table.th.color,
666
+ outline: H.value.table.th.outline
667
+ },
668
+ td: {
669
+ backgroundColor: H.value.table.td.backgroundColor,
670
+ color: H.value.table.td.color,
671
+ outline: H.value.table.td.outline
672
+ },
673
+ breakpoint: H.value.table.responsiveBreakpoint,
674
+ shape: H.value.style.shape === "tube" ? "circle" : "square"
675
+ }
676
+ };
677
+ });
678
+ function Zn() {
679
+ G.value.showTable = !G.value.showTable;
680
+ }
681
+ let Qn = k(!1);
682
+ function $n() {
683
+ Qn.value = !Qn.value;
684
+ }
685
+ async function er({ scale: e = 2 } = {}) {
686
+ if (!L.value) return;
687
+ let { width: t, height: n } = L.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
688
+ domElement: L.value,
689
+ base64: !0,
690
+ img: !0,
691
+ scale: e
692
+ });
693
+ return {
694
+ imageUri: i,
695
+ base64: a,
696
+ title: H.value.style.chart.title.text,
697
+ width: t,
698
+ height: n,
699
+ aspectRatio: r
700
+ };
701
+ }
702
+ let tr = v(() => {
703
+ let e = H.value.table.useDialog && !H.value.table.show, t = G.value.showTable;
704
+ return {
705
+ component: e ? sn : tn,
706
+ title: `${H.value.style.chart.title.text}${H.value.style.chart.title.subtitle.text ? `: ${H.value.style.chart.title.subtitle.text}` : ""}`,
707
+ props: e ? {
708
+ backgroundColor: H.value.table.th.backgroundColor,
709
+ color: H.value.table.th.color,
710
+ headerColor: H.value.table.th.color,
711
+ headerBg: H.value.table.th.backgroundColor,
712
+ isFullscreen: Gn.value,
713
+ fullscreenParent: L.value,
714
+ forcedWidth: Math.min(800, window.innerWidth * .8)
715
+ } : {
716
+ hideDetails: !0,
717
+ config: {
718
+ open: t,
719
+ maxHeight: 1e4,
720
+ body: {
721
+ backgroundColor: H.value.style.chart.backgroundColor,
722
+ color: H.value.style.chart.color
723
+ },
724
+ head: {
725
+ backgroundColor: H.value.style.chart.backgroundColor,
726
+ color: H.value.style.chart.color
727
+ }
728
+ }
729
+ }
730
+ };
731
+ });
732
+ Me(() => G.value.showTable, (e) => {
733
+ H.value.table.show || (e && H.value.table.useDialog && yn.value ? yn.value.open() : "close" in yn.value && yn.value.close());
734
+ });
735
+ function nr() {
736
+ G.value.showTable = !1, bn.value && bn.value.setTableIconState(!1);
737
+ }
738
+ let rr = v(() => H.value.style.chart.backgroundColor), { exportSvg: ir, getSvg: ar } = fe({
739
+ svg: On,
740
+ title: v(() => H.value.style.chart.title),
741
+ backgroundColor: rr
742
+ });
743
+ async function or({ isCb: e }) {
744
+ xn.value = !0, await De();
745
+ try {
746
+ if (e) {
747
+ let { blob: e, url: t, text: n, dataUrl: r } = await ar();
748
+ await Promise.resolve(H.value.userOptions.callbacks.svg({
749
+ blob: e,
750
+ url: t,
751
+ text: n,
752
+ dataUrl: r
753
+ }));
754
+ } else await Promise.resolve(ir());
755
+ } finally {
756
+ xn.value = !1;
757
+ }
758
+ }
759
+ function sr(e) {
760
+ if (e?.stage === "start") {
761
+ Sn.value = !0;
762
+ return;
763
+ }
764
+ if (e?.stage === "end") {
765
+ Sn.value = !1;
766
+ return;
767
+ }
768
+ Nn();
769
+ }
770
+ async function cr() {
771
+ if (dn("copyAlt", {
772
+ config: H.value,
773
+ dataset: W.value
774
+ }), !H.value.userOptions.callbacks.altCopy) {
775
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
776
+ return;
777
+ }
778
+ await Promise.resolve(H.value.userOptions.callbacks.altCopy({
779
+ config: H.value,
780
+ dataset: W.value
781
+ }));
782
+ }
783
+ function lr() {
784
+ B.value = null, V.value = "", R.value = !1, Z.value = null;
785
+ }
786
+ function ur(e) {
787
+ if (!e) return "";
788
+ let t = l({
789
+ p: H.value.style.chart.legend.prefix,
790
+ v: e.value,
791
+ s: H.value.style.chart.legend.suffix,
792
+ r: H.value.style.chart.legend.roundingValue
793
+ }), n = l({
794
+ v: e.proportion * 100,
795
+ s: "%",
796
+ r: H.value.style.chart.legend.roundingPercentage
797
+ });
798
+ return `${e.name}: ${t}, ${n}`;
799
+ }
800
+ function dr(e) {
801
+ if (!K.value || !J.value?.length) return;
802
+ let t = J.value[e];
803
+ t && (B.value = e, Z.value = t.id, V.value = ur(t));
804
+ }
805
+ function fr() {
806
+ z.value = !0, !(!K.value || !J.value?.length) && B.value === null && dr(0);
807
+ }
808
+ function pr() {
809
+ z.value = !1, R.value || (B.value = null, Z.value = null, V.value = "");
810
+ }
811
+ function mr(e) {
812
+ if (!K.value || !J.value?.length || !On.value || document.activeElement !== On.value) return;
813
+ let t = ["ArrowLeft", "ArrowDown"].includes(e.key), n = ["ArrowRight", "ArrowUp"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
814
+ if (!t && !n && !r && !i) return;
815
+ if (e.preventDefault(), e.stopPropagation(), i) {
816
+ lr();
817
+ return;
818
+ }
819
+ if (r) {
820
+ if (B.value === null) return;
821
+ let e = J.value[B.value];
822
+ if (!e) return;
823
+ Q(e, !0), V.value = `${ur(e)} selected`;
824
+ return;
825
+ }
826
+ let a = B.value;
827
+ a === null || a < 0 || a >= J.value.length ? a = n ? 0 : J.value.length - 1 : n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1)), dr(a);
828
+ }
829
+ let hr = v(() => ({
830
+ headers: Xn.value?.colNames ?? [],
831
+ rows: Xn.value?.a11yBody ?? []
832
+ }));
833
+ return _e({
834
+ getImage: er,
835
+ generateCsv: Yn,
836
+ generatePdf: Mn,
837
+ generateImage: Nn,
838
+ generateSvg: or,
839
+ getData: qn,
840
+ toggleTable: Zn,
841
+ toggleAnnotator: $n,
842
+ toggleFullscreen: Kn,
843
+ copyAlt: cr
844
+ }), (e, t) => (O(), x("div", {
845
+ ref_key: "bar3dChart",
846
+ ref: L,
847
+ class: Oe("vue-data-ui-component vue-ui-3d-bar"),
848
+ style: D(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor}`),
849
+ id: `3d_bar_${I.value}`,
850
+ onMouseenter: t[8] ||= () => N(En)(!0),
851
+ onMouseleave: t[9] ||= () => N(En)(!1)
852
+ }, [
853
+ S("div", {
854
+ id: `chart-instructions-${I.value}`,
855
+ class: "sr-only"
856
+ }, [S("p", null, M(H.value.a11y.translations.keyboardNavigation), 1)], 8, Le),
857
+ S("div", Re, M(V.value), 1),
858
+ hr.value?.rows?.length ? (O(), y(be, {
859
+ key: 0,
860
+ uid: I.value,
861
+ head: hr.value.headers,
862
+ body: hr.value.rows,
863
+ notice: H.value.a11y.translations.tableAvailable,
864
+ caption: H.value.a11y.translations.tableCaption
865
+ }, null, 8, [
866
+ "uid",
867
+ "head",
868
+ "body",
869
+ "notice",
870
+ "caption"
871
+ ])) : b("", !0),
872
+ H.value.userOptions.buttons.annotator ? (O(), y(N(rn), {
873
+ key: 1,
874
+ svgRef: N(On),
875
+ backgroundColor: H.value.style.chart.backgroundColor,
876
+ color: H.value.style.chart.color,
877
+ active: Qn.value,
878
+ isCursorPointer: Cn.value,
879
+ onClose: $n
880
+ }, {
881
+ "annotator-action-close": P(() => [j(e.$slots, "annotator-action-close", {}, void 0, !0)]),
882
+ "annotator-action-color": P(({ color: t }) => [j(e.$slots, "annotator-action-color", E(T({ color: t })), void 0, !0)]),
883
+ "annotator-action-draw": P(({ mode: t }) => [j(e.$slots, "annotator-action-draw", E(T({ mode: t })), void 0, !0)]),
884
+ "annotator-action-undo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-undo", E(T({ disabled: t })), void 0, !0)]),
885
+ "annotator-action-redo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-redo", E(T({ disabled: t })), void 0, !0)]),
886
+ "annotator-action-delete": P(({ disabled: t }) => [j(e.$slots, "annotator-action-delete", E(T({ disabled: t })), void 0, !0)]),
887
+ _: 3
888
+ }, 8, [
889
+ "svgRef",
890
+ "backgroundColor",
891
+ "color",
892
+ "active",
893
+ "isCursorPointer"
894
+ ])) : b("", !0),
895
+ H.value.style.chart.title.text ? (O(), x("div", {
896
+ key: 2,
897
+ ref_key: "chartTitle",
898
+ ref: hn,
899
+ style: "width:100%;background:transparent"
900
+ }, [(O(), y(ge, {
901
+ key: `title_${pn.value}`,
902
+ config: {
903
+ title: {
904
+ cy: "3dBar-div-title",
905
+ ...H.value.style.chart.title
906
+ },
907
+ subtitle: {
908
+ cy: "3dBar-div-subtitle",
909
+ ...H.value.style.chart.title.subtitle
910
+ }
911
+ }
912
+ }, null, 8, ["config"]))], 512)) : b("", !0),
913
+ H.value.userOptions.show && fn.value && (N(Dn) || N(Tn)) ? (O(), y(N(an), {
914
+ key: 3,
915
+ ref_key: "userOptionsRef",
916
+ ref: bn,
917
+ backgroundColor: H.value.style.chart.backgroundColor,
918
+ color: H.value.style.chart.color,
919
+ isPrinting: N(An),
920
+ isImaging: N(jn),
921
+ uid: I.value,
922
+ hasPdf: H.value.userOptions.buttons.pdf,
923
+ hasTable: !!K.value && H.value.userOptions.buttons.table,
924
+ hasXls: !!K.value && H.value.userOptions.buttons.csv,
925
+ hasImg: H.value.userOptions.buttons.img,
926
+ hasSvg: H.value.userOptions.buttons.svg,
927
+ hasFullscreen: H.value.userOptions.buttons.fullscreen,
928
+ hasAltCopy: H.value.userOptions.buttons.altCopy,
929
+ titles: { ...H.value.userOptions.buttonTitles },
930
+ chartElement: L.value,
931
+ position: H.value.userOptions.position,
932
+ hasAnnotator: H.value.userOptions.buttons.annotator,
933
+ isAnnotation: Qn.value,
934
+ callbacks: H.value.userOptions.callbacks,
935
+ printScale: H.value.userOptions.print.scale,
936
+ tableDialog: H.value.table.useDialog,
937
+ isCursorPointer: Cn.value,
938
+ onToggleFullscreen: Kn,
939
+ onGeneratePdf: N(Mn),
940
+ onGenerateCsv: Yn,
941
+ onGenerateImage: sr,
942
+ onGenerateSvg: or,
943
+ onToggleTable: Zn,
944
+ onToggleAnnotator: $n,
945
+ onCopyAlt: cr,
946
+ style: D({ visibility: N(Dn) ? N(Tn) ? "visible" : "hidden" : "visible" })
947
+ }, we({ _: 2 }, [
948
+ e.$slots.menuIcon ? {
949
+ name: "menuIcon",
950
+ fn: P(({ isOpen: t, color: n }) => [j(e.$slots, "menuIcon", E(T({
951
+ isOpen: t,
952
+ color: n
953
+ })), void 0, !0)]),
954
+ key: "0"
955
+ } : void 0,
956
+ e.$slots.optionPdf ? {
957
+ name: "optionPdf",
958
+ fn: P(() => [j(e.$slots, "optionPdf", {}, void 0, !0)]),
959
+ key: "1"
960
+ } : void 0,
961
+ e.$slots.optionCsv ? {
962
+ name: "optionCsv",
963
+ fn: P(() => [j(e.$slots, "optionCsv", {}, void 0, !0)]),
964
+ key: "2"
965
+ } : void 0,
966
+ e.$slots.optionImg ? {
967
+ name: "optionImg",
968
+ fn: P(() => [j(e.$slots, "optionImg", {}, void 0, !0)]),
969
+ key: "3"
970
+ } : void 0,
971
+ e.$slots.optionSvg ? {
972
+ name: "optionSvg",
973
+ fn: P(() => [j(e.$slots, "optionSvg", {}, void 0, !0)]),
974
+ key: "4"
975
+ } : void 0,
976
+ e.$slots.optionTable ? {
977
+ name: "optionTable",
978
+ fn: P(() => [j(e.$slots, "optionTable", {}, void 0, !0)]),
979
+ key: "5"
980
+ } : void 0,
981
+ e.$slots.optionFullscreen ? {
982
+ name: "optionFullscreen",
983
+ fn: P(({ toggleFullscreen: t, isFullscreen: n }) => [j(e.$slots, "optionFullscreen", E(T({
984
+ toggleFullscreen: t,
985
+ isFullscreen: n
986
+ })), void 0, !0)]),
987
+ key: "6"
988
+ } : void 0,
989
+ e.$slots.optionAnnotator ? {
990
+ name: "optionAnnotator",
991
+ fn: P(({ toggleAnnotator: t, isAnnotator: n }) => [j(e.$slots, "optionAnnotator", E(T({
992
+ toggleAnnotator: t,
993
+ isAnnotator: n
994
+ })), void 0, !0)]),
995
+ key: "7"
996
+ } : void 0,
997
+ e.$slots.optionAltCopy ? {
998
+ name: "optionAltCopy",
999
+ fn: P(({ altCopy: t }) => [j(e.$slots, "optionAltCopy", E(T({ altCopy: t })), void 0, !0)]),
1000
+ key: "8"
1001
+ } : void 0,
1002
+ e.$slots["custom-menu-before"] ? {
1003
+ name: "custom-menu-before",
1004
+ fn: P(() => [j(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1005
+ key: "9"
1006
+ } : void 0,
1007
+ e.$slots["custom-menu-after"] ? {
1008
+ name: "custom-menu-after",
1009
+ fn: P(() => [j(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1010
+ key: "10"
1011
+ } : void 0
1012
+ ]), 1032, [
1013
+ "backgroundColor",
1014
+ "color",
1015
+ "isPrinting",
1016
+ "isImaging",
1017
+ "uid",
1018
+ "hasPdf",
1019
+ "hasTable",
1020
+ "hasXls",
1021
+ "hasImg",
1022
+ "hasSvg",
1023
+ "hasFullscreen",
1024
+ "hasAltCopy",
1025
+ "titles",
1026
+ "chartElement",
1027
+ "position",
1028
+ "hasAnnotator",
1029
+ "isAnnotation",
1030
+ "callbacks",
1031
+ "printScale",
1032
+ "tableDialog",
1033
+ "isCursorPointer",
1034
+ "onGeneratePdf",
1035
+ "style"
1036
+ ])) : b("", !0),
1037
+ S("div", ze, [(O(), x("svg", {
1038
+ ref_key: "svgRef",
1039
+ ref: On,
1040
+ xmlns: N(ae),
1041
+ class: Oe({
1042
+ "vue-data-ui-fullscreen--on": Gn.value,
1043
+ "vue-data-ui-fulscreen--off": !Gn.value
1044
+ }),
1045
+ viewBox: `0 0 ${q.value.absoluteWidth} ${q.value.height}`,
1046
+ style: D(`max-width:100%; overflow: visible; background:transparent;color:${H.value.style.chart.color}`),
1047
+ tabindex: "0",
1048
+ "aria-describedby": `chart-instructions-${I.value}`,
1049
+ onFocus: fr,
1050
+ onBlur: pr,
1051
+ onKeydown: mr
1052
+ }, [
1053
+ C(N(on)),
1054
+ e.$slots["chart-background"] ? (O(), x("foreignObject", {
1055
+ key: 0,
1056
+ x: 0,
1057
+ y: 0,
1058
+ width: q.value.absoluteWidth,
1059
+ height: q.value.height,
1060
+ style: { pointerEvents: "none" }
1061
+ }, [j(e.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : b("", !0),
1062
+ S("defs", null, [
1063
+ C(g, {
1064
+ t: "radial",
1065
+ id: `gradient_top${I.value}`,
1066
+ stops: [[
1067
+ "0%",
1068
+ N(n)(H.value.style.chart.backgroundColor, 0),
1069
+ 1
1070
+ ], [
1071
+ "100%",
1072
+ H.value.style.chart.bar.color,
1073
+ 1
1074
+ ]]
1075
+ }, null, 8, ["id", "stops"]),
1076
+ C(g, {
1077
+ t: "radial",
1078
+ id: `gradient_tube_top${I.value}`,
1079
+ stops: [[
1080
+ "0%",
1081
+ N(n)(N(o)(H.value.style.chart.bar.color, .5), 80),
1082
+ 1
1083
+ ], [
1084
+ "100%",
1085
+ N(n)(N(u)(H.value.style.chart.bar.color, .1), 80),
1086
+ 1
1087
+ ]]
1088
+ }, null, 8, ["id", "stops"]),
1089
+ C(g, {
1090
+ t: "radial",
1091
+ id: `gradient_left${I.value}`,
1092
+ stops: [[
1093
+ "0%",
1094
+ N(n)(H.value.style.chart.backgroundColor, 0),
1095
+ 1
1096
+ ], [
1097
+ "100%",
1098
+ N(n)(H.value.style.chart.bar.color, 20),
1099
+ 1
1100
+ ]]
1101
+ }, null, 8, ["id", "stops"]),
1102
+ C(g, {
1103
+ t: "radial",
1104
+ id: `gradient_right${I.value}`,
1105
+ stops: [[
1106
+ "0%",
1107
+ N(n)(H.value.style.chart.backgroundColor, 0),
1108
+ 1
1109
+ ], [
1110
+ "100%",
1111
+ N(n)(H.value.style.chart.bar.color, 20),
1112
+ 1
1113
+ ]]
1114
+ }, null, 8, ["id", "stops"]),
1115
+ C(g, {
1116
+ t: "linear",
1117
+ id: `gradient_tube_body${I.value}`,
1118
+ x1: "0%",
1119
+ y1: "0%",
1120
+ x2: "100%",
1121
+ y2: "0%",
1122
+ stops: [
1123
+ [
1124
+ "0%",
1125
+ H.value.style.chart.bar.color,
1126
+ 1
1127
+ ],
1128
+ [
1129
+ "10%",
1130
+ N(n)(N(u)(H.value.style.chart.bar.color, .7), 100),
1131
+ 1
1132
+ ],
1133
+ [
1134
+ "25%",
1135
+ N(n)(N(u)(H.value.style.chart.bar.color, .5), 100),
1136
+ 1
1137
+ ],
1138
+ [
1139
+ "75%",
1140
+ N(n)(H.value.style.chart.bar.color, 80),
1141
+ 1
1142
+ ],
1143
+ [
1144
+ "100%",
1145
+ N(n)(N(o)(H.value.style.chart.bar.color, .7), 100),
1146
+ 1
1147
+ ]
1148
+ ]
1149
+ }, null, 8, ["id", "stops"])
1150
+ ]),
1151
+ K.value ? (O(), x("defs", He, [
1152
+ (O(!0), x(_, null, A(J.value, (e) => (O(), y(g, {
1153
+ t: "radial",
1154
+ id: `grad_top_${e.id}`,
1155
+ key: `grad_top_${e.id}`,
1156
+ stops: [[
1157
+ "0%",
1158
+ N(n)(N(o)(e.color, .5), 80),
1159
+ 1
1160
+ ], [
1161
+ "100%",
1162
+ e.color,
1163
+ 1
1164
+ ]]
1165
+ }, null, 8, ["id", "stops"]))), 128)),
1166
+ (O(!0), x(_, null, A(J.value, (e) => (O(), y(g, {
1167
+ t: "linear",
1168
+ id: `grad_left_${e.id}`,
1169
+ key: `grad_left_${e.id}`,
1170
+ stops: [[
1171
+ "0%",
1172
+ N(n)(e.color, 80),
1173
+ 1
1174
+ ], [
1175
+ "100%",
1176
+ N(n)(N(u)(e.color, .5), 100),
1177
+ 1
1178
+ ]]
1179
+ }, null, 8, ["id", "stops"]))), 128)),
1180
+ (O(!0), x(_, null, A(J.value, (e) => (O(), y(g, {
1181
+ t: "linear",
1182
+ id: `grad_right_${e.id}`,
1183
+ key: `grad_right_${e.id}`,
1184
+ stops: [[
1185
+ "2%",
1186
+ N(n)(N(o)(e.color, .5), 100),
1187
+ 1
1188
+ ], [
1189
+ "100%",
1190
+ N(n)(e.color, 80),
1191
+ 1
1192
+ ]]
1193
+ }, null, 8, ["id", "stops"]))), 128)),
1194
+ C(g, {
1195
+ t: "linear",
1196
+ x1: "0%",
1197
+ y1: "0%",
1198
+ x2: "0%",
1199
+ y2: "100%",
1200
+ id: `vertical_line_${I.value}`,
1201
+ stops: [[
1202
+ "0%",
1203
+ "#FFFFFF",
1204
+ 1
1205
+ ], [
1206
+ "100%",
1207
+ "#FFFFFF33",
1208
+ 1
1209
+ ]]
1210
+ }, null, 8, ["id"])
1211
+ ])) : b("", !0),
1212
+ H.value.style.chart.dataLabel.show && ![null, void 0].includes(N(W).percentage) && [null, void 0].includes(N(W).series) ? (O(), x("text", {
1213
+ key: 2,
1214
+ x: q.value.width / 2,
1215
+ y: q.value.top - H.value.style.chart.dataLabel.fontSize / 2,
1216
+ "font-size": H.value.style.chart.dataLabel.fontSize,
1217
+ "font-weight": H.value.style.chart.dataLabel.bold ? "bold" : "normal",
1218
+ fill: H.value.style.chart.dataLabel.color,
1219
+ "text-anchor": "middle"
1220
+ }, M(N(l)({
1221
+ v: X.value,
1222
+ s: "%",
1223
+ r: H.value.style.chart.dataLabel.rounding
1224
+ })), 9, Ue)) : b("", !0),
1225
+ R.value ? (O(), x("g", {
1226
+ key: 3,
1227
+ role: "button",
1228
+ tabindex: "0",
1229
+ "aria-label": "Clear selection",
1230
+ onClick: t[0] ||= (e) => {
1231
+ R.value = !1, Z.value = null;
1232
+ },
1233
+ onKeydown: [t[1] ||= Ne(Pe((e) => {
1234
+ R.value = !1, Z.value = null;
1235
+ }, ["prevent"]), ["enter"]), t[2] ||= Ne(Pe((e) => {
1236
+ R.value = !1, Z.value = null;
1237
+ }, ["prevent"]), ["space"])],
1238
+ onFocus: t[3] ||= (e) => z.value = !0,
1239
+ onBlur: t[4] ||= (e) => z.value = !1,
1240
+ onMouseenter: t[5] ||= (e) => z.value = !0,
1241
+ onMouseleave: t[6] ||= (e) => z.value = !1,
1242
+ class: "svg-btn",
1243
+ "data-dom-to-png-ignore": "",
1244
+ style: D({
1245
+ cursor: Cn.value ? "pointer" : "default",
1246
+ outline: "none"
1247
+ })
1248
+ }, [
1249
+ t[10] ||= S("title", null, "Clear selection", -1),
1250
+ S("rect", {
1251
+ x: Bn.value - 12,
1252
+ y: q.value.top - 24,
1253
+ width: 24,
1254
+ height: 24,
1255
+ fill: "transparent",
1256
+ "pointer-events": "all"
1257
+ }, null, 8, We),
1258
+ S("circle", {
1259
+ cx: Bn.value,
1260
+ cy: q.value.top - 12,
1261
+ r: "10",
1262
+ fill: "none",
1263
+ stroke: H.value.style.chart.color,
1264
+ "stroke-width": "2",
1265
+ "vector-effect": "non-scaling-stroke",
1266
+ opacity: z.value ? .5 : 0
1267
+ }, null, 8, Ge),
1268
+ S("path", {
1269
+ d: `M${Bn.value - 6},${q.value.top - 18} ${Bn.value + 6},${q.value.top - 6}`,
1270
+ stroke: H.value.style.chart.color,
1271
+ "stroke-linecap": "round",
1272
+ "stroke-width": "2",
1273
+ "vector-effect": "non-scaling-stroke"
1274
+ }, null, 8, Ke),
1275
+ S("path", {
1276
+ d: `M${Bn.value + 6},${q.value.top - 18} ${Bn.value - 6},${q.value.top - 6}`,
1277
+ stroke: H.value.style.chart.color,
1278
+ "stroke-linecap": "round",
1279
+ "stroke-width": "2",
1280
+ "vector-effect": "non-scaling-stroke"
1281
+ }, null, 8, qe)
1282
+ ], 36)) : b("", !0),
1283
+ !H.value.style.shape || H.value.style.shape === "bar" ? (O(), x("g", Je, [
1284
+ K.value ? b("", !0) : (O(), x("g", Ye, [
1285
+ S("path", {
1286
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1287
+ d: Y.value.right,
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, Xe),
1294
+ S("path", {
1295
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1296
+ d: Y.value.left,
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, Ze),
1303
+ S("path", {
1304
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1305
+ d: Y.value.side,
1306
+ stroke: H.value.style.chart.box.stroke,
1307
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1308
+ "stroke-linejoin": "round",
1309
+ "stroke-linecap": "round",
1310
+ fill: "none"
1311
+ }, null, 8, Qe),
1312
+ S("path", {
1313
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1314
+ d: Y.value.topSides,
1315
+ stroke: H.value.style.chart.box.stroke,
1316
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1317
+ "stroke-linejoin": "round",
1318
+ "stroke-linecap": "round",
1319
+ fill: "none"
1320
+ }, null, 8, $e)
1321
+ ])),
1322
+ K.value ? b("", !0) : (O(), x("g", et, [
1323
+ S("path", {
1324
+ d: Hn.value.right,
1325
+ stroke: H.value.style.chart.bar.stroke,
1326
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1327
+ "stroke-linejoin": "round",
1328
+ "stroke-linecap": "round",
1329
+ fill: `url(#gradient_right${I.value})`
1330
+ }, null, 8, tt),
1331
+ S("path", {
1332
+ d: Hn.value.left,
1333
+ stroke: H.value.style.chart.bar.stroke,
1334
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1335
+ "stroke-linejoin": "round",
1336
+ "stroke-linecap": "round",
1337
+ fill: `url(#gradient_left${I.value})`
1338
+ }, null, 8, nt),
1339
+ S("path", {
1340
+ d: Hn.value.top,
1341
+ stroke: H.value.style.chart.bar.stroke,
1342
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1343
+ "stroke-linejoin": "round",
1344
+ "stroke-linecap": "round",
1345
+ fill: `url(#gradient_top${I.value})`
1346
+ }, null, 8, rt)
1347
+ ])),
1348
+ K.value ? (O(), x("g", it, [
1349
+ (O(!0), x(_, null, A(J.value, (e, t) => (O(), x("g", {
1350
+ style: D(`opacity:${Z.value ? Z.value === e.id ? 1 : .3 : 1}`),
1351
+ class: "vue-ui-3d-bar-stack",
1352
+ role: "img",
1353
+ "aria-label": ur(e)
1354
+ }, [
1355
+ S("path", {
1356
+ d: e.fill.right,
1357
+ fill: `url(#grad_right_${e.id})`,
1358
+ onMouseenter: (t) => Q(e),
1359
+ onClick: (t) => Q(e, !0),
1360
+ onMouseout: (t) => $(e)
1361
+ }, null, 40, ot),
1362
+ S("path", {
1363
+ d: e.fill.left,
1364
+ fill: `url(#grad_left_${e.id})`,
1365
+ onMouseenter: (t) => Q(e),
1366
+ onClick: (t) => Q(e, !0),
1367
+ onMouseout: (t) => $(e)
1368
+ }, null, 40, st),
1369
+ S("path", {
1370
+ d: e.fill.top,
1371
+ fill: `url(#grad_top_${e.id})`,
1372
+ onMouseenter: (t) => Q(e),
1373
+ onClick: (t) => Q(e, !0),
1374
+ onMouseout: (t) => $(e)
1375
+ }, null, 40, ct),
1376
+ S("path", {
1377
+ d: e.fill.liningTop,
1378
+ stroke: "#FFFFFF",
1379
+ "stroke-width": "0.5",
1380
+ "stroke-linecap": "round",
1381
+ fill: "none",
1382
+ onMouseenter: (t) => Q(e),
1383
+ onClick: (t) => Q(e, !0),
1384
+ onMouseout: (t) => $(e)
1385
+ }, null, 40, lt),
1386
+ S("path", {
1387
+ d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
1388
+ stroke: "#FFFFFF",
1389
+ "stroke-width": "0.5",
1390
+ "stroke-linecap": "round"
1391
+ }, null, 8, ut)
1392
+ ], 12, at))), 256)),
1393
+ (O(!0), x(_, null, A(J.value, (e, t) => (O(), x("g", null, [t === J.value.length - 1 ? b("", !0) : (O(), x("path", {
1394
+ key: 0,
1395
+ d: e.fill.liningTopShade,
1396
+ stroke: H.value.style.chart.bar.shadeColor,
1397
+ "stroke-width": "0.5",
1398
+ "stroke-linecap": "round",
1399
+ fill: "none",
1400
+ style: { "pointer-events": "none" }
1401
+ }, null, 8, dt))]))), 256)),
1402
+ (O(!0), x(_, null, A(J.value, (t, n) => (O(), x("g", {
1403
+ style: D(`opacity:${Z.value ? +(Z.value === t.id) : +(t.proportion * 100 > H.value.style.chart.legend.hideUnderPercentage)}`),
1404
+ onClick: (e) => dn("selectDatapoint", t)
1405
+ }, [
1406
+ S("path", {
1407
+ stroke: H.value.style.chart.color,
1408
+ "stroke-dasharray": "1",
1409
+ "stroke-width": "0.5",
1410
+ "stroke-linecap": "round",
1411
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1412
+ }, null, 8, pt),
1413
+ !t.fill.miniDonut || Z.value ? (O(), x("circle", {
1414
+ key: 0,
1415
+ cx: t.fill.sidePointer.x2,
1416
+ cy: t.fill.sidePointer.y,
1417
+ r: 2,
1418
+ fill: t.color,
1419
+ stroke: H.value.style.chart.backgroundColor
1420
+ }, null, 8, mt)) : b("", !0),
1421
+ N(U) ? (O(), x("rect", {
1422
+ key: 1,
1423
+ x: t.fill.sidePointer.xText,
1424
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize / 2,
1425
+ width: q.value.width / 3,
1426
+ height: H.value.style.chart.legend.fontSize,
1427
+ fill: "#6A6A6A80",
1428
+ rx: "3"
1429
+ }, null, 8, ht)) : b("", !0),
1430
+ N(U) ? b("", !0) : (O(), x("foreignObject", {
1431
+ key: 2,
1432
+ x: t.fill.sidePointer.xText,
1433
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize,
1434
+ width: q.value.absoluteWidth / 3,
1435
+ height: H.value.style.chart.legend.fontSize * 2,
1436
+ style: {
1437
+ overflow: "visible",
1438
+ position: "relative"
1439
+ }
1440
+ }, [H.value.style.chart.legend.showDefault ? (O(), x("div", {
1441
+ key: 0,
1442
+ 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"}`)
1443
+ }, M(N(m)(H.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${N(l)({
1444
+ v: t.proportion * 100,
1445
+ s: "%",
1446
+ r: H.value.style.chart.legend.roundingPercentage
1447
+ })} (${N(l)({
1448
+ p: H.value.style.chart.legend.prefix,
1449
+ v: t.value,
1450
+ s: H.value.style.chart.legend.suffix,
1451
+ r: H.value.style.chart.legend.roundingValue
1452
+ })})`, {
1453
+ datapoint: t,
1454
+ seriesIndex: n,
1455
+ type: "barDatapoint"
1456
+ })), 5)) : b("", !0), j(e.$slots, "legend", Ee({ ref_for: !0 }, {
1457
+ datapoint: t,
1458
+ config: H.value,
1459
+ dataset: J.value
1460
+ }), void 0, !0)], 8, gt)),
1461
+ t.fill.donut && Z.value === t.id ? (O(), x("g", _t, [
1462
+ (O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Un(e, t.fill.donut, !0) > 6 ? (O(), x("path", {
1463
+ key: 0,
1464
+ d: N(p)(e, {
1465
+ x: e.cx,
1466
+ y: e.cy
1467
+ }, 0, 8, !1, !0, 10),
1468
+ stroke: e.color,
1469
+ class: "vue-ui-donut-arc-path",
1470
+ "stroke-width": "0.5",
1471
+ "stroke-linecap": "round",
1472
+ "stroke-linejoin": "round",
1473
+ fill: "none"
1474
+ }, null, 8, vt)) : b("", !0)]))), 256)),
1475
+ (O(!0), x(_, null, A(t.fill.donut, (e, t) => (O(), x("path", {
1476
+ class: "vue-ui-donut-arc-path",
1477
+ d: e.arcSlice,
1478
+ fill: `${e.color}`,
1479
+ stroke: H.value.style.chart.backgroundColor,
1480
+ "stroke-width": 1
1481
+ }, null, 8, yt))), 256)),
1482
+ (O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Un(e, t.fill.donut, !0) > 6 ? (O(), x("g", bt, [S("text", {
1483
+ "text-anchor": N(f)(e, !0, 0).anchor,
1484
+ x: N(f)(e, !0, 2).x,
1485
+ y: N(ne)(e, 12, 12),
1486
+ fill: H.value.style.chart.legend.color,
1487
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1488
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1489
+ }, M(N(m)(H.value.style.chart.dataLabel.formatter, e.value, `${Un(e, t.fill.donut)} (${N(l)({
1490
+ p: H.value.style.chart.legend.prefix,
1491
+ v: e.value,
1492
+ s: H.value.style.chart.legend.suffix,
1493
+ r: H.value.style.chart.legend.roundingValue
1494
+ })})`, {
1495
+ datapoint: e,
1496
+ seriesIndex: n,
1497
+ type: "donutDatapoint"
1498
+ })), 9, xt), S("text", {
1499
+ "text-anchor": N(f)(e).anchor,
1500
+ x: N(f)(e, !0, 2).x,
1501
+ y: N(ne)(e, 12, 12) + H.value.style.chart.legend.fontSize / 1.5,
1502
+ fill: H.value.style.chart.legend.color,
1503
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1504
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1505
+ }, M(e.name), 9, St)])) : b("", !0)]))), 256))
1506
+ ])) : b("", !0),
1507
+ t.fill.miniDonut && !Z.value ? (O(), x("g", Ct, [(O(!0), x(_, null, A(t.fill.miniDonut, (e, t) => (O(), x("path", {
1508
+ class: "vue-ui-donut-arc-path",
1509
+ d: e.arcSlice,
1510
+ fill: `${e.color}`,
1511
+ stroke: H.value.style.chart.backgroundColor,
1512
+ "stroke-width": .5
1513
+ }, null, 8, wt))), 256))])) : b("", !0)
1514
+ ], 12, ft))), 256))
1515
+ ])) : b("", !0)
1516
+ ])) : b("", !0),
1517
+ H.value.style.shape === "tube" ? (O(), x("g", Tt, [K.value ? b("", !0) : (O(), x("g", Et, [
1518
+ S("path", {
1519
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1520
+ d: Y.value.tubeTop,
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, Dt),
1527
+ S("path", {
1528
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1529
+ d: Y.value.tubeLeft,
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, Ot),
1536
+ S("path", {
1537
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1538
+ d: Y.value.tubeRight,
1539
+ stroke: H.value.style.chart.box.stroke,
1540
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1541
+ "stroke-linejoin": "round",
1542
+ "stroke-linecap": "round",
1543
+ fill: "none"
1544
+ }, null, 8, kt),
1545
+ S("path", {
1546
+ "stroke-dasharray": H.value.style.chart.box.strokeDasharray,
1547
+ d: Y.value.tubeBottom,
1548
+ stroke: H.value.style.chart.box.stroke,
1549
+ "stroke-width": H.value.style.chart.box.strokeWidth,
1550
+ "stroke-linejoin": "round",
1551
+ "stroke-linecap": "round",
1552
+ fill: "none"
1553
+ }, null, 8, At),
1554
+ S("path", {
1555
+ d: Hn.value.tubeTop,
1556
+ stroke: H.value.style.chart.bar.stroke,
1557
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1558
+ "stroke-linejoin": "round",
1559
+ "stroke-linecap": "round",
1560
+ fill: `url(#gradient_tube_top${I.value})`
1561
+ }, null, 8, jt),
1562
+ S("path", {
1563
+ d: Hn.value.tubeBody,
1564
+ stroke: H.value.style.chart.bar.stroke,
1565
+ "stroke-width": H.value.style.chart.bar.strokeWidth,
1566
+ "stroke-linejoin": "round",
1567
+ "stroke-linecap": "round",
1568
+ fill: `url(#gradient_tube_body${I.value})`
1569
+ }, null, 8, Mt),
1570
+ S("path", {
1571
+ d: Hn.value.tubeTop,
1572
+ stroke: "#FFFFFF",
1573
+ "stroke-width": .5,
1574
+ "stroke-linejoin": "round",
1575
+ "stroke-linecap": "round",
1576
+ fill: "none"
1577
+ }, null, 8, Nt)
1578
+ ])), K.value ? (O(), x("g", Pt, [(O(!0), x(_, null, A(J.value, (e, t) => (O(), x("g", {
1579
+ style: D(`opacity:${Z.value ? Z.value === e.id ? 1 : .3 : 1}`),
1580
+ class: "vue-ui-3d-bar-stack",
1581
+ role: "img",
1582
+ "aria-label": ur(e)
1583
+ }, [
1584
+ S("defs", null, [C(g, {
1585
+ t: "radial",
1586
+ id: `gradient_tube_top_${e.id}`,
1587
+ fx: "10%",
1588
+ cy: "55%",
1589
+ stops: [[
1590
+ "0%",
1591
+ N(n)(N(o)(e.color, .5), 80),
1592
+ 1
1593
+ ], [
1594
+ "100%",
1595
+ N(n)(N(u)(e.color, .1), 80),
1596
+ 1
1597
+ ]]
1598
+ }, null, 8, ["id", "stops"]), C(g, {
1599
+ t: "linear",
1600
+ id: `gradient_tube_body_${e.id}`,
1601
+ x1: "0%",
1602
+ y1: "0%",
1603
+ x2: "100%",
1604
+ y2: "0%",
1605
+ stops: [
1606
+ [
1607
+ "0%",
1608
+ e.color,
1609
+ 1
1610
+ ],
1611
+ [
1612
+ "10%",
1613
+ N(n)(N(u)(e.color, .7), 100),
1614
+ 1
1615
+ ],
1616
+ [
1617
+ "25%",
1618
+ N(n)(N(u)(e.color, .5), 100),
1619
+ 1
1620
+ ],
1621
+ [
1622
+ "75%",
1623
+ N(n)(e.color, 80),
1624
+ 1
1625
+ ],
1626
+ [
1627
+ "100%",
1628
+ N(n)(N(o)(e.color, .7), 100),
1629
+ 1
1630
+ ]
1631
+ ]
1632
+ }, null, 8, ["id", "stops"])]),
1633
+ S("path", {
1634
+ onMouseenter: (t) => Q(e),
1635
+ onClick: (t) => Q(e, !0),
1636
+ onMouseout: (t) => $(e),
1637
+ d: e.fill.tubeBody,
1638
+ stroke: "#FFFFFF",
1639
+ "stroke-width": .5,
1640
+ "stroke-linejoin": "round",
1641
+ "stroke-linecap": "round",
1642
+ fill: `url(#gradient_tube_body_${e.id})`
1643
+ }, null, 40, It),
1644
+ t > 0 ? (O(), x("path", {
1645
+ key: 0,
1646
+ onMouseenter: (t) => Q(e),
1647
+ onClick: (t) => Q(e, !0),
1648
+ onMouseout: (t) => $(e),
1649
+ d: e.fill.bottomTubeTop,
1650
+ stroke: "#000000",
1651
+ "stroke-width": .5,
1652
+ "stroke-linejoin": "round",
1653
+ "stroke-linecap": "round",
1654
+ fill: "none"
1655
+ }, null, 40, Lt)) : b("", !0),
1656
+ S("path", {
1657
+ onMouseenter: (t) => Q(e),
1658
+ onClick: (t) => Q(e, !0),
1659
+ onMouseout: (t) => $(e),
1660
+ d: e.fill.tubeTop,
1661
+ stroke: "#FFFFFF",
1662
+ "stroke-width": .5,
1663
+ "stroke-linejoin": "round",
1664
+ "stroke-linecap": "round",
1665
+ fill: `url(#gradient_tube_top_${e.id})`
1666
+ }, null, 40, Rt)
1667
+ ], 12, Ft))), 256)), (O(!0), x(_, null, A(J.value, (t, n) => (O(), x("g", {
1668
+ style: D(`opacity:${Z.value ? +(Z.value === t.id) : +(t.proportion * 100 > H.value.style.chart.legend.hideUnderPercentage)}`),
1669
+ onClick: (e) => dn("selectDatapoint", t)
1670
+ }, [
1671
+ S("path", {
1672
+ stroke: H.value.style.chart.color,
1673
+ "stroke-dasharray": "1",
1674
+ "stroke-width": "0.5",
1675
+ "stroke-linecap": "round",
1676
+ d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1677
+ }, null, 8, Bt),
1678
+ !t.fill.miniDonut || Z.value ? (O(), x("circle", {
1679
+ key: 0,
1680
+ cx: t.fill.sidePointer.x2,
1681
+ cy: t.fill.sidePointer.y,
1682
+ r: 2,
1683
+ fill: t.color,
1684
+ stroke: H.value.style.chart.backgroundColor
1685
+ }, null, 8, Vt)) : b("", !0),
1686
+ N(U) ? (O(), x("rect", {
1687
+ key: 1,
1688
+ x: t.fill.sidePointer.xText,
1689
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize / 2,
1690
+ width: q.value.width / 3,
1691
+ height: H.value.style.chart.legend.fontSize,
1692
+ fill: "#6A6A6A80",
1693
+ rx: "3"
1694
+ }, null, 8, Ht)) : b("", !0),
1695
+ N(U) ? b("", !0) : (O(), x("foreignObject", {
1696
+ key: 2,
1697
+ x: t.fill.sidePointer.xText,
1698
+ y: t.fill.sidePointer.y - H.value.style.chart.legend.fontSize,
1699
+ width: q.value.absoluteWidth / 3,
1700
+ height: H.value.style.chart.legend.fontSize * 2,
1701
+ style: {
1702
+ overflow: "visible",
1703
+ position: "relative"
1704
+ }
1705
+ }, [H.value.style.chart.legend.showDefault ? (O(), x("div", {
1706
+ key: 0,
1707
+ 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"}`)
1708
+ }, M(N(m)(H.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${N(l)({
1709
+ v: t.proportion * 100,
1710
+ s: "%",
1711
+ r: H.value.style.chart.legend.roundingPercentage
1712
+ })} (${N(l)({
1713
+ p: H.value.style.chart.legend.prefix,
1714
+ v: t.value,
1715
+ s: H.value.style.chart.legend.suffix,
1716
+ r: H.value.style.chart.legend.roundingValue
1717
+ })})`, {
1718
+ datapoint: t,
1719
+ seriesIndex: n,
1720
+ type: "barDatapoint"
1721
+ })), 5)) : b("", !0), j(e.$slots, "legend", Ee({ ref_for: !0 }, {
1722
+ datapoint: t,
1723
+ config: H.value,
1724
+ dataset: J.value
1725
+ }), void 0, !0)], 8, Ut)),
1726
+ t.fill.donut && Z.value === t.id ? (O(), x("g", Wt, [
1727
+ (O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Un(e, t.fill.donut, !0) > 6 ? (O(), x("path", {
1728
+ key: 0,
1729
+ d: N(p)(e, {
1730
+ x: e.cx,
1731
+ y: e.cy
1732
+ }, 0, 8, !1, !0, 10),
1733
+ stroke: e.color,
1734
+ class: "vue-ui-donut-arc-path",
1735
+ "stroke-width": "0.5",
1736
+ "stroke-linecap": "round",
1737
+ "stroke-linejoin": "round",
1738
+ fill: "none"
1739
+ }, null, 8, Gt)) : b("", !0)]))), 256)),
1740
+ (O(!0), x(_, null, A(t.fill.donut, (e, t) => (O(), x("path", {
1741
+ class: "vue-ui-donut-arc-path",
1742
+ d: e.arcSlice,
1743
+ fill: `${e.color}`,
1744
+ stroke: H.value.style.chart.backgroundColor,
1745
+ "stroke-width": 1
1746
+ }, null, 8, Kt))), 256)),
1747
+ (O(!0), x(_, null, A(t.fill.donut, (e, n) => (O(), x("g", null, [Un(e, t.fill.donut, !0) > 6 ? (O(), x("g", qt, [S("text", {
1748
+ "text-anchor": N(f)(e, !0, 0).anchor,
1749
+ x: N(f)(e, !0, 2).x,
1750
+ y: N(ne)(e, 12, 12),
1751
+ fill: H.value.style.chart.legend.color,
1752
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1753
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1754
+ }, M(N(m)(H.value.style.chart.dataLabel.formatter, e.value, `${Un(e, t.fill.donut)} (${N(l)({
1755
+ p: H.value.style.chart.legend.prefix,
1756
+ v: e.value,
1757
+ s: H.value.style.chart.legend.suffix,
1758
+ r: H.value.style.chart.legend.roundingValue
1759
+ })})`, {
1760
+ datapoint: e,
1761
+ seriesIndex: n,
1762
+ type: "donutDatapoint"
1763
+ })), 9, Jt), S("text", {
1764
+ "text-anchor": N(f)(e).anchor,
1765
+ x: N(f)(e, !0, 2).x,
1766
+ y: N(ne)(e, 12, 12) + H.value.style.chart.legend.fontSize / 1.5,
1767
+ fill: H.value.style.chart.legend.color,
1768
+ "font-size": H.value.style.chart.legend.fontSize / 1.5,
1769
+ "font-weight": H.value.style.chart.legend.bold ? "bold" : "normal"
1770
+ }, M(e.name), 9, Yt)])) : b("", !0)]))), 256))
1771
+ ])) : b("", !0),
1772
+ t.fill.miniDonut && !Z.value ? (O(), x("g", Xt, [(O(!0), x(_, null, A(t.fill.miniDonut, (e, t) => (O(), x("path", {
1773
+ class: "vue-ui-donut-arc-path",
1774
+ d: e.arcSlice,
1775
+ fill: `${e.color}`,
1776
+ stroke: H.value.style.chart.backgroundColor,
1777
+ "stroke-width": .5
1778
+ }, null, 8, Zt))), 256))])) : b("", !0)
1779
+ ], 12, zt))), 256))])) : b("", !0)])) : b("", !0),
1780
+ j(e.$slots, "svg", { svg: {
1781
+ ...q.value,
1782
+ isPrintingImg: N(An) || N(jn) || Sn.value,
1783
+ isPrintingSvg: xn.value
1784
+ } }, void 0, !0)
1785
+ ], 46, Be))]),
1786
+ e.$slots.watermark ? (O(), x("div", Qt, [j(e.$slots, "watermark", E(T({ isPrinting: N(An) || N(jn) || xn.value || Sn.value })), void 0, !0)])) : b("", !0),
1787
+ e.$slots.source ? (O(), x("div", {
1788
+ key: 5,
1789
+ ref_key: "source",
1790
+ ref: vn,
1791
+ dir: "auto"
1792
+ }, [j(e.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
1793
+ fn.value && K.value && H.value.userOptions.buttons.table ? (O(), y(Ae(tr.value.component), Ee({ key: 6 }, tr.value.props, {
1794
+ ref_key: "tableUnit",
1795
+ ref: yn,
1796
+ onClose: nr
1797
+ }), we({
1798
+ content: P(() => [(O(), y(N(nn), {
1799
+ key: `table_${mn.value}`,
1800
+ colNames: Xn.value.colNames,
1801
+ head: Xn.value.head,
1802
+ body: Xn.value.body,
1803
+ config: Xn.value.config,
1804
+ title: H.value.table.useDialog ? "" : tr.value.title,
1805
+ withCloseButton: !H.value.table.useDialog,
1806
+ isCursorPointer: Cn.value,
1807
+ onClose: nr
1808
+ }, {
1809
+ th: P(({ th: e }) => [S("div", {
1810
+ innerHTML: e,
1811
+ style: {
1812
+ display: "flex",
1813
+ "align-items": "center"
1814
+ }
1815
+ }, null, 8, $t)]),
1816
+ td: P(({ td: e }) => [Te(M(e.name || e), 1)]),
1817
+ _: 1
1818
+ }, 8, [
1819
+ "colNames",
1820
+ "head",
1821
+ "body",
1822
+ "config",
1823
+ "title",
1824
+ "withCloseButton",
1825
+ "isCursorPointer"
1826
+ ]))]),
1827
+ _: 2
1828
+ }, [H.value.table.useDialog ? {
1829
+ name: "title",
1830
+ fn: P(() => [Te(M(tr.value.title), 1)]),
1831
+ key: "0"
1832
+ } : void 0, H.value.table.useDialog ? {
1833
+ name: "actions",
1834
+ fn: P(() => [S("button", {
1835
+ tabindex: "0",
1836
+ class: "vue-ui-user-options-button",
1837
+ onClick: t[7] ||= (e) => Yn(H.value.userOptions.callbacks.csv)
1838
+ }, [C(N(en), {
1839
+ name: "fileCsv",
1840
+ stroke: tr.value.props.color
1841
+ }, null, 8, ["stroke"])])]),
1842
+ key: "1"
1843
+ } : void 0]), 1040)) : b("", !0),
1844
+ j(e.$slots, "skeleton", {}, () => [N(U) ? (O(), y(de, { key: 0 })) : b("", !0)], !0)
1845
+ ], 44, Ie));
1846
+ }
1847
+ }, [["__scopeId", "data-v-71046390"]]);
1848
+ //#endregion
1849
+ export { Fe as n, en as t };