vue-data-ui 3.25.2 → 3.25.4

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 (194) hide show
  1. package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.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-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
  95. package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
  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/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
  179. package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
  180. package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
  181. package/dist/vue-ui-donut-BfehCl28.js +0 -2413
  182. package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
  183. package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
  184. package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
  186. package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
  187. package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
  188. package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
  190. package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
  191. package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
  192. package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
  193. package/dist/vue-ui-table-CftOhYTO.js +0 -1352
  194. package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
@@ -0,0 +1,1829 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, Lt as r, Mt as i, Pt as a, S as o, Ut as s, X as c, Y as l, Yt as u, Zt as d, b as f, f as p, h as m, ht as h, i as ee, jt as g, nt as te, p as ne, q as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
3
+ import { n as oe } from "./useHints-Dq_w2E8B.js";
4
+ import { t as se } from "./useConfig-CyCVHo81.js";
5
+ import { t as ce } from "./usePrinter-DISD7q5m.js";
6
+ import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as de } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as me } from "./img-DhGApYG0.js";
11
+ import { n as he } from "./Title-CPHi-evi.js";
12
+ import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as _ } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as ye } from "./A11yDataTable-DdRsVULz.js";
16
+ import { t as be } from "./useUserOptionState-DK-_1ddE.js";
17
+ import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
18
+ import { t as Se } from "./vue_ui_3d_bar-C4R7o-yX.js";
19
+ import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Ce, createTextVNode as we, createVNode as w, defineAsyncComponent as T, guardReactiveProps as E, mergeProps as Te, nextTick as Ee, normalizeClass as De, normalizeProps as D, normalizeStyle as O, onMounted as Oe, openBlock as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as ke, toDisplayString as N, toRefs as Ae, unref as P, watch as je, withCtx as F, withKeys as Me, withModifiers as Ne } from "vue";
20
+ //#region src/components/vue-ui-3d-bar.vue
21
+ var Pe = /* @__PURE__ */ e({ default: () => en }), Fe = ["id"], Ie = ["id"], Le = {
22
+ "aria-live": "polite",
23
+ class: "sr-only"
24
+ }, Re = { style: { position: "relative" } }, ze = [
25
+ "xmlns",
26
+ "viewBox",
27
+ "aria-describedby"
28
+ ], Be = ["width", "height"], Ve = { key: 1 }, He = [
29
+ "x",
30
+ "y",
31
+ "font-size",
32
+ "font-weight",
33
+ "fill"
34
+ ], Ue = ["x", "y"], We = [
35
+ "cx",
36
+ "cy",
37
+ "stroke",
38
+ "opacity"
39
+ ], Ge = ["d", "stroke"], Ke = ["d", "stroke"], qe = { key: 4 }, Je = { key: 0 }, Ye = [
40
+ "stroke-dasharray",
41
+ "d",
42
+ "stroke",
43
+ "stroke-width"
44
+ ], Xe = [
45
+ "stroke-dasharray",
46
+ "d",
47
+ "stroke",
48
+ "stroke-width"
49
+ ], Ze = [
50
+ "stroke-dasharray",
51
+ "d",
52
+ "stroke",
53
+ "stroke-width"
54
+ ], Qe = [
55
+ "stroke-dasharray",
56
+ "d",
57
+ "stroke",
58
+ "stroke-width"
59
+ ], $e = { key: 1 }, et = [
60
+ "d",
61
+ "stroke",
62
+ "stroke-width",
63
+ "fill"
64
+ ], tt = [
65
+ "d",
66
+ "stroke",
67
+ "stroke-width",
68
+ "fill"
69
+ ], nt = [
70
+ "d",
71
+ "stroke",
72
+ "stroke-width",
73
+ "fill"
74
+ ], rt = { key: 2 }, it = ["aria-label"], at = [
75
+ "d",
76
+ "fill",
77
+ "onMouseenter",
78
+ "onClick",
79
+ "onMouseout"
80
+ ], ot = [
81
+ "d",
82
+ "fill",
83
+ "onMouseenter",
84
+ "onClick",
85
+ "onMouseout"
86
+ ], st = [
87
+ "d",
88
+ "fill",
89
+ "onMouseenter",
90
+ "onClick",
91
+ "onMouseout"
92
+ ], ct = [
93
+ "d",
94
+ "onMouseenter",
95
+ "onClick",
96
+ "onMouseout"
97
+ ], lt = ["d"], ut = ["d", "stroke"], dt = ["onClick"], ft = ["stroke", "d"], pt = [
98
+ "cx",
99
+ "cy",
100
+ "fill",
101
+ "stroke"
102
+ ], mt = [
103
+ "x",
104
+ "y",
105
+ "width",
106
+ "height"
107
+ ], ht = [
108
+ "x",
109
+ "y",
110
+ "width",
111
+ "height"
112
+ ], gt = { key: 3 }, _t = ["d", "stroke"], vt = [
113
+ "d",
114
+ "fill",
115
+ "stroke"
116
+ ], yt = { key: 0 }, bt = [
117
+ "text-anchor",
118
+ "x",
119
+ "y",
120
+ "fill",
121
+ "font-size",
122
+ "font-weight"
123
+ ], xt = [
124
+ "text-anchor",
125
+ "x",
126
+ "y",
127
+ "fill",
128
+ "font-size",
129
+ "font-weight"
130
+ ], St = { key: 4 }, Ct = [
131
+ "d",
132
+ "fill",
133
+ "stroke"
134
+ ], wt = { key: 5 }, Tt = { key: 0 }, Et = [
135
+ "stroke-dasharray",
136
+ "d",
137
+ "stroke",
138
+ "stroke-width"
139
+ ], Dt = [
140
+ "stroke-dasharray",
141
+ "d",
142
+ "stroke",
143
+ "stroke-width"
144
+ ], Ot = [
145
+ "stroke-dasharray",
146
+ "d",
147
+ "stroke",
148
+ "stroke-width"
149
+ ], kt = [
150
+ "stroke-dasharray",
151
+ "d",
152
+ "stroke",
153
+ "stroke-width"
154
+ ], At = [
155
+ "d",
156
+ "stroke",
157
+ "stroke-width",
158
+ "fill"
159
+ ], jt = [
160
+ "d",
161
+ "stroke",
162
+ "stroke-width",
163
+ "fill"
164
+ ], Mt = ["d"], Nt = { key: 1 }, Pt = ["aria-label"], Ft = [
165
+ "onMouseenter",
166
+ "onClick",
167
+ "onMouseout",
168
+ "d",
169
+ "fill"
170
+ ], It = [
171
+ "onMouseenter",
172
+ "onClick",
173
+ "onMouseout",
174
+ "d"
175
+ ], Lt = [
176
+ "onMouseenter",
177
+ "onClick",
178
+ "onMouseout",
179
+ "d",
180
+ "fill"
181
+ ], Rt = ["onClick"], zt = ["stroke", "d"], Bt = [
182
+ "cx",
183
+ "cy",
184
+ "fill",
185
+ "stroke"
186
+ ], Vt = [
187
+ "x",
188
+ "y",
189
+ "width",
190
+ "height"
191
+ ], Ht = [
192
+ "x",
193
+ "y",
194
+ "width",
195
+ "height"
196
+ ], Ut = { key: 3 }, Wt = ["d", "stroke"], Gt = [
197
+ "d",
198
+ "fill",
199
+ "stroke"
200
+ ], Kt = { key: 0 }, qt = [
201
+ "text-anchor",
202
+ "x",
203
+ "y",
204
+ "fill",
205
+ "font-size",
206
+ "font-weight"
207
+ ], Jt = [
208
+ "text-anchor",
209
+ "x",
210
+ "y",
211
+ "fill",
212
+ "font-size",
213
+ "font-weight"
214
+ ], Yt = { key: 4 }, Xt = [
215
+ "d",
216
+ "fill",
217
+ "stroke"
218
+ ], Zt = {
219
+ key: 4,
220
+ class: "vue-data-ui-watermark"
221
+ }, Qt = { key: 0 }, $t = { key: 1 }, en = /*#__PURE__*/ ge({
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: ge, emit: Pe }) {
239
+ let en = T(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), tn = T(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), nn = T(() => import("./DataTable-COIO9gi4.js")), rn = T(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), an = T(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), on = T(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), sn = T(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_3d_bar: cn } = se(), { isThemeValid: ln, warnInvalidTheme: un } = fe(), I = e, dn = Pe, fn = y(() => !!I.dataset && Object.keys(I.dataset).length), L = A(re()), R = A(null), z = A(!1), pn = A(0), mn = A(0), hn = A(null), gn = A(null), _n = A(null), vn = A(null), B = A(!1), yn = A(null), bn = A(null), V = A(null), H = A(""), U = A(On());
240
+ oe({
241
+ config: () => U.value,
242
+ dataset: () => I.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 xn = y(() => U.value.userOptions.useCursorPointer), Sn = y(() => d({
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: U.value.skeletonConfig ?? {}
284
+ })), { loading: Cn, FINAL_DATASET: W } = le({
285
+ ...Ae(I),
286
+ FINAL_CONFIG: U,
287
+ prepareConfig: On,
288
+ callback: () => {
289
+ Promise.resolve().then(async () => {
290
+ await Ee(), Ln();
291
+ });
292
+ },
293
+ skeletonDataset: I.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: d({
329
+ defaultConfig: U.value,
330
+ userConfig: Sn.value
331
+ })
332
+ }), { userOptionsVisible: wn, setUserOptionsVisibility: Tn, keepUserOptionState: En } = be({ config: U.value }), { svgRef: Dn } = xe({ config: U.value.style.chart.title });
333
+ function On() {
334
+ let e = de({
335
+ userConfig: I.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 = de({
341
+ userConfig: Se[t] || I.config,
342
+ defaultConfig: e
343
+ }), i = de({
344
+ userConfig: I.config,
345
+ defaultConfig: n
346
+ });
347
+ return {
348
+ ...i,
349
+ customPalette: i.customPalette.length ? i.customPalette : u[t] || r
350
+ };
351
+ }
352
+ je(() => I.config, (e) => {
353
+ Cn.value || (U.value = On()), wn.value = !U.value.userOptions.showOnChartHover, Bn(), pn.value += 1, mn.value += 1, G.value.showTable = U.value.table.show;
354
+ }, { deep: !0 });
355
+ let { isPrinting: kn, isImaging: An, generatePdf: jn, generateImage: Mn } = ce({
356
+ elementId: `3d_bar_${L.value}`,
357
+ fileName: U.value.style.chart.title.text || "vue-ui-3d-bar",
358
+ options: U.value.userOptions.print
359
+ }), Nn = y(() => ae(U.value.customPalette)), G = A({ showTable: U.value.table.show });
360
+ je(U, () => {
361
+ G.value = { showTable: U.value.table.show };
362
+ }, { immediate: !0 });
363
+ let K = y(() => W.value.series && W.value.series.length), Pn = A(U.value.style.chart.box.dimensions.width * (K.value ? 2 : 1)), Fn = A(U.value.style.chart.box.dimensions.height), q = y(() => ({
364
+ height: Fn.value,
365
+ width: Pn.value,
366
+ absoluteWidth: Pn.value,
367
+ top: U.value.style.chart.box.dimensions.top,
368
+ bottom: U.value.style.chart.box.dimensions.bottom,
369
+ left: U.value.style.chart.box.dimensions.left,
370
+ right: U.value.style.chart.box.dimensions.right,
371
+ perspective: U.value.style.chart.box.dimensions.perspective
372
+ })), J = y(() => {
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: re(),
378
+ proportion: (t.value || 0) / e,
379
+ color: o(t.color) || Nn.value[n] || r[n] || r[n % r.length],
380
+ breakdown: t.breakdown ? t.breakdown.sort((e, t) => t.value - e.value) : null
381
+ })).sort((e, t) => t.value - e.value), n = [], i = 0;
382
+ for (let e = 0; e < t.length; e += 1) n.push({
383
+ ...t[e],
384
+ fill: Hn(i, t[e].proportion, t[e].breakdown, t[e].color)
385
+ }), i += t[e].proportion;
386
+ return n;
387
+ }
388
+ return null;
389
+ }), Y = y(() => {
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
+ }), In = A(U.value.style.chart.animation.use ? 0 : W.value.percentage);
402
+ function Ln() {
403
+ let e = 0, t = U.value.style.chart.animation.speed, n = .005 * U.value.style.chart.animation.acceleration;
404
+ function r() {
405
+ In.value += t + e, e += n, In.value < W.value.percentage ? requestAnimationFrame(r) : In.value = W.value.percentage;
406
+ }
407
+ U.value.style.chart.animation.use && (In.value = 0, r());
408
+ }
409
+ Oe(() => {
410
+ Bn(), Ln();
411
+ });
412
+ let Rn = y(() => U.value.debug);
413
+ function zn() {
414
+ Rn.value && (a(I.dataset) ? te({
415
+ componentName: "VueUi3dBar",
416
+ type: "dataset",
417
+ debug: Rn.value
418
+ }) : I.dataset.series ? I.dataset.series.forEach((e, t) => {
419
+ h({
420
+ datasetObject: e,
421
+ requiredAttributes: ["name", "value"]
422
+ }).forEach((e) => {
423
+ te({
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
+ h({
432
+ datasetObject: e,
433
+ requiredAttributes: ["name", "value"]
434
+ }).forEach((e) => {
435
+ te({
436
+ componentName: "VueUi3dBar",
437
+ type: "datasetSerieAttribute",
438
+ property: e,
439
+ index: `${t} - ${n}`,
440
+ debug: Rn.value
441
+ });
442
+ });
443
+ });
444
+ }) : h({
445
+ datasetObject: I.dataset,
446
+ requiredAttributes: ["percentage"]
447
+ }).forEach((e) => {
448
+ te({
449
+ componentName: "VueUi3dBar",
450
+ type: "datasetAttribute",
451
+ property: e,
452
+ debug: Rn.value
453
+ });
454
+ }));
455
+ }
456
+ function Bn() {
457
+ if (zn(), U.value.responsive) {
458
+ let e = _e(() => {
459
+ let { width: e, height: t } = ve({
460
+ chart: R.value,
461
+ title: U.value.style.chart.title.text ? hn.value : null,
462
+ source: vn.value
463
+ });
464
+ requestAnimationFrame(() => {
465
+ Fn.value = t - 12, Pn.value = e;
466
+ });
467
+ });
468
+ gn.value && (_n.value && gn.value.unobserve(_n.value), gn.value.disconnect()), gn.value = new ResizeObserver(e), _n.value = R.value.parentNode, gn.value.observe(_n.value);
469
+ }
470
+ }
471
+ let Vn = y(() => q.value.width / 4);
472
+ function Hn(e, t, n, r) {
473
+ let a = q.value.height - q.value.bottom - q.value.top - q.value.perspective * 2, { width: o, height: s, bottom: c, right: l, left: u, perspective: d } = q.value, f = K.value ? o / 4 : o / 2, p = f * 2 + u, m = c + a * e, h = s - m - d - a * t / 2, ee = h > q.value.height / 2 ? "top" : "bottom", te = s * .25, ne = !!n, re = null, ie = null;
474
+ return ne && (n = n.map((e, t) => ({
475
+ ...e,
476
+ value: e.value || 0,
477
+ color: g(r, t / n.length)
478
+ })), re = i({ series: n }, o / 2 + o / 5, ee === "top" ? h - te : h + te, o / 10, o / 10, 1.99999, 2, 1, 360, 105.25, o / 20), ie = i({ series: n }, 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: re,
480
+ miniDonut: ie,
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 Un = y(() => {
519
+ let e = f(In.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;
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
+ }), X = A(null);
537
+ function Z(e, t = !1) {
538
+ U.value.events.datapointEnter && !t && U.value.events.datapointEnter({
539
+ datapoint: e,
540
+ seriesIndex: e.seriesIndex
541
+ }), U.value.events.datapointClick && t && U.value.events.datapointClick({
542
+ datapoint: e,
543
+ seriesIndex: e.seriesIndex
544
+ }), dn("selectDatapoint", e);
545
+ let n = J.value?.findIndex((t) => t.id === e.id) ?? null;
546
+ n !== null && n !== -1 && (V.value = n, H.value = dr(e)), t || (X.value = e.id), t && z.value && (z.value = !1), t && !z.value && (z.value = !0);
547
+ }
548
+ function Q(e) {
549
+ U.value.events.datapointLeave && U.value.events.datapointLeave({
550
+ datapoint: e,
551
+ seriesIndex: e.seriesIndex
552
+ }), !z.value && (X.value = null, V.value = null, H.value = "");
553
+ }
554
+ function Wn(e, t, n = !1) {
555
+ 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 / 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 = A(!1);
562
+ function qn(e) {
563
+ Kn.value = e;
564
+ }
565
+ function Jn() {
566
+ return K.value ? J.value : W.value.percentage;
567
+ }
568
+ let Yn = y(() => K.value ? {
569
+ head: J.value.flatMap((e) => e.breakdown && e.breakdown.length ? [{
570
+ name: e.name,
571
+ color: e.color
572
+ }, ...e.breakdown.map((t, n) => ({
573
+ name: t.name,
574
+ color: g(e.color, n / e.breakdown.length)
575
+ }))] : {
576
+ name: e.name,
577
+ color: e.color
578
+ }),
579
+ body: J.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 (!K.value) {
583
+ console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");
584
+ return;
585
+ }
586
+ Ee(() => {
587
+ let r = J.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] / r) ? "-" : Yn.value.body[t] / r * 100]
591
+ ]), a = [
592
+ [U.value.style.chart.title.text],
593
+ [U.value.style.chart.title.subtitle.text],
594
+ [
595
+ [""],
596
+ ["val"],
597
+ ["%"]
598
+ ]
599
+ ].concat(i), o = n(a);
600
+ e ? e(o) : t({
601
+ csvContent: o,
602
+ title: U.value.style.chart.title.text || "vue-ui-3d-bar"
603
+ });
604
+ });
605
+ }
606
+ let $ = y(() => {
607
+ if (!K.value || !Array.isArray(J.value) || !J.value.length) return {
608
+ colNames: [],
609
+ head: [],
610
+ body: [],
611
+ a11yBody: [],
612
+ config: {
613
+ th: {
614
+ backgroundColor: U.value.table.th.backgroundColor,
615
+ color: U.value.table.th.color,
616
+ outline: U.value.table.th.outline
617
+ },
618
+ td: {
619
+ backgroundColor: U.value.table.td.backgroundColor,
620
+ color: U.value.table.td.color,
621
+ outline: U.value.table.td.outline
622
+ },
623
+ breakpoint: U.value.table.responsiveBreakpoint,
624
+ shape: U.value.style.shape === "tube" ? "circle" : "square"
625
+ }
626
+ };
627
+ let e = J.value.reduce((e, t) => e + t.value, 0), t = [
628
+ "__SUM__",
629
+ c({
630
+ p: U.value.style.chart.legend.prefix,
631
+ v: e,
632
+ s: U.value.style.chart.legend.suffix,
633
+ r: U.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
+ c({
644
+ p: U.value.style.chart.legend.prefix,
645
+ v: r,
646
+ s: U.value.style.chart.legend.suffix,
647
+ r: U.value.table.td.roundingValue
648
+ }),
649
+ isNaN(r / e) ? "-" : c({
650
+ v: r / e * 100,
651
+ s: "%",
652
+ r: U.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
+ U.value.table.columnNames.series,
659
+ U.value.table.columnNames.value,
660
+ U.value.table.columnNames.percentage
661
+ ],
662
+ head: t,
663
+ body: n,
664
+ a11yBody: r,
665
+ config: {
666
+ th: {
667
+ backgroundColor: U.value.table.th.backgroundColor,
668
+ color: U.value.table.th.color,
669
+ outline: U.value.table.th.outline
670
+ },
671
+ td: {
672
+ backgroundColor: U.value.table.td.backgroundColor,
673
+ color: U.value.table.td.color,
674
+ outline: U.value.table.td.outline
675
+ },
676
+ breakpoint: U.value.table.responsiveBreakpoint,
677
+ shape: U.value.style.shape === "tube" ? "circle" : "square"
678
+ }
679
+ };
680
+ });
681
+ function Zn() {
682
+ G.value.showTable = !G.value.showTable;
683
+ }
684
+ let Qn = A(!1);
685
+ function $n() {
686
+ Qn.value = !Qn.value;
687
+ }
688
+ async function er({ scale: e = 2 } = {}) {
689
+ if (!R.value) return;
690
+ let { width: t, height: n } = R.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
691
+ domElement: R.value,
692
+ base64: !0,
693
+ img: !0,
694
+ scale: e
695
+ });
696
+ return {
697
+ imageUri: i,
698
+ base64: a,
699
+ title: U.value.style.chart.title.text,
700
+ width: t,
701
+ height: n,
702
+ aspectRatio: r
703
+ };
704
+ }
705
+ let tr = y(() => {
706
+ let e = U.value.table.useDialog && !U.value.table.show, t = G.value.showTable;
707
+ return {
708
+ component: e ? sn : tn,
709
+ title: `${U.value.style.chart.title.text}${U.value.style.chart.title.subtitle.text ? `: ${U.value.style.chart.title.subtitle.text}` : ""}`,
710
+ props: e ? {
711
+ backgroundColor: U.value.table.th.backgroundColor,
712
+ color: U.value.table.th.color,
713
+ headerColor: U.value.table.th.color,
714
+ headerBg: U.value.table.th.backgroundColor,
715
+ isFullscreen: Kn.value,
716
+ fullscreenParent: R.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: U.value.style.chart.backgroundColor,
725
+ color: U.value.style.chart.color
726
+ },
727
+ head: {
728
+ backgroundColor: U.value.style.chart.backgroundColor,
729
+ color: U.value.style.chart.color
730
+ }
731
+ }
732
+ }
733
+ };
734
+ });
735
+ je(() => G.value.showTable, (e) => {
736
+ U.value.table.show || (e && U.value.table.useDialog && yn.value ? yn.value.open() : "close" in yn.value && yn.value.close());
737
+ });
738
+ function nr() {
739
+ G.value.showTable = !1, bn.value && bn.value.setTableIconState(!1);
740
+ }
741
+ let rr = y(() => U.value.style.chart.backgroundColor), ir = y(() => U.value.style.chart.title), { isCallbackImaging: ar, isCallbackSvg: or, generateSvg: sr, onGenerateImage: cr } = pe({
742
+ svg: Dn,
743
+ title: ir,
744
+ legend: null,
745
+ legendItems: null,
746
+ backgroundColor: rr,
747
+ getSvgCallback: () => U.value.userOptions.callbacks.svg,
748
+ generateImage: Mn
749
+ });
750
+ async function lr() {
751
+ if (dn("copyAlt", {
752
+ config: U.value,
753
+ dataset: W.value
754
+ }), !U.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(U.value.userOptions.callbacks.altCopy({
759
+ config: U.value,
760
+ dataset: W.value
761
+ }));
762
+ }
763
+ function ur() {
764
+ V.value = null, H.value = "", z.value = !1, X.value = null;
765
+ }
766
+ function dr(e) {
767
+ if (!e) return "";
768
+ let t = c({
769
+ p: U.value.style.chart.legend.prefix,
770
+ v: e.value,
771
+ s: U.value.style.chart.legend.suffix,
772
+ r: U.value.style.chart.legend.roundingValue
773
+ }), n = c({
774
+ v: e.proportion * 100,
775
+ s: "%",
776
+ r: U.value.style.chart.legend.roundingPercentage
777
+ });
778
+ return `${e.name}: ${t}, ${n}`;
779
+ }
780
+ function fr(e) {
781
+ if (!K.value || !J.value?.length) return;
782
+ let t = J.value[e];
783
+ t && (V.value = e, X.value = t.id, H.value = dr(t));
784
+ }
785
+ function pr() {
786
+ B.value = !0, !(!K.value || !J.value?.length) && V.value === null && fr(0);
787
+ }
788
+ function mr() {
789
+ B.value = !1, z.value || (V.value = null, X.value = null, H.value = "");
790
+ }
791
+ function hr(e) {
792
+ if (!K.value || !J.value?.length || !Dn.value || document.activeElement !== Dn.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 (V.value === null) return;
801
+ let e = J.value[V.value];
802
+ if (!e) return;
803
+ Z(e, !0), H.value = `${dr(e)} selected`;
804
+ return;
805
+ }
806
+ let a = V.value;
807
+ 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)), fr(a);
808
+ }
809
+ let gr = y(() => ({
810
+ headers: $.value?.colNames ?? [],
811
+ rows: $.value?.a11yBody ?? []
812
+ }));
813
+ return ge({
814
+ getImage: er,
815
+ generateCsv: Xn,
816
+ generatePdf: jn,
817
+ generateImage: Mn,
818
+ generateSvg: sr,
819
+ getData: Jn,
820
+ toggleTable: Zn,
821
+ toggleAnnotator: $n,
822
+ toggleFullscreen: qn,
823
+ copyAlt: lr
824
+ }), (e, t) => (k(), S("div", {
825
+ ref_key: "bar3dChart",
826
+ ref: R,
827
+ class: De("vue-data-ui-component vue-ui-3d-bar"),
828
+ style: O(`font-family:${U.value.style.fontFamily};width:100%; text-align:center;background:${U.value.style.chart.backgroundColor}`),
829
+ id: `3d_bar_${L.value}`,
830
+ onMouseenter: t[8] ||= () => P(Tn)(!0),
831
+ onMouseleave: t[9] ||= () => P(Tn)(!1)
832
+ }, [
833
+ C("div", {
834
+ id: `chart-instructions-${L.value}`,
835
+ class: "sr-only"
836
+ }, [C("p", null, N(U.value.a11y.translations.keyboardNavigation), 1)], 8, Ie),
837
+ C("div", Le, N(H.value), 1),
838
+ gr.value?.rows?.length ? (k(), b(ye, {
839
+ key: 0,
840
+ uid: L.value,
841
+ head: gr.value.headers,
842
+ body: gr.value.rows,
843
+ notice: U.value.a11y.translations.tableAvailable,
844
+ caption: U.value.a11y.translations.tableCaption
845
+ }, null, 8, [
846
+ "uid",
847
+ "head",
848
+ "body",
849
+ "notice",
850
+ "caption"
851
+ ])) : x("", !0),
852
+ U.value.userOptions.buttons.annotator ? (k(), b(P(rn), {
853
+ key: 1,
854
+ svgRef: P(Dn),
855
+ backgroundColor: U.value.style.chart.backgroundColor,
856
+ color: U.value.style.chart.color,
857
+ active: Qn.value,
858
+ isCursorPointer: xn.value,
859
+ onClose: $n
860
+ }, {
861
+ "annotator-action-close": F(() => [M(e.$slots, "annotator-action-close", {}, void 0, !0)]),
862
+ "annotator-action-color": F(({ color: t }) => [M(e.$slots, "annotator-action-color", D(E({ color: t })), void 0, !0)]),
863
+ "annotator-action-draw": F(({ mode: t }) => [M(e.$slots, "annotator-action-draw", D(E({ mode: t })), void 0, !0)]),
864
+ "annotator-action-undo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-undo", D(E({ disabled: t })), void 0, !0)]),
865
+ "annotator-action-redo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-redo", D(E({ disabled: t })), void 0, !0)]),
866
+ "annotator-action-delete": F(({ disabled: t }) => [M(e.$slots, "annotator-action-delete", D(E({ disabled: t })), void 0, !0)]),
867
+ _: 3
868
+ }, 8, [
869
+ "svgRef",
870
+ "backgroundColor",
871
+ "color",
872
+ "active",
873
+ "isCursorPointer"
874
+ ])) : x("", !0),
875
+ U.value.style.chart.title.text ? (k(), S("div", {
876
+ key: 2,
877
+ ref_key: "chartTitle",
878
+ ref: hn,
879
+ style: "width:100%;background:transparent"
880
+ }, [(k(), b(he, {
881
+ key: `title_${pn.value}`,
882
+ config: {
883
+ title: {
884
+ cy: "3dBar-div-title",
885
+ ...U.value.style.chart.title
886
+ },
887
+ subtitle: {
888
+ cy: "3dBar-div-subtitle",
889
+ ...U.value.style.chart.title.subtitle
890
+ }
891
+ }
892
+ }, null, 8, ["config"]))], 512)) : x("", !0),
893
+ U.value.userOptions.show && fn.value && (P(En) || P(wn)) ? (k(), b(P(an), {
894
+ key: 3,
895
+ ref_key: "userOptionsRef",
896
+ ref: bn,
897
+ backgroundColor: U.value.style.chart.backgroundColor,
898
+ color: U.value.style.chart.color,
899
+ isPrinting: P(kn),
900
+ isImaging: P(An),
901
+ uid: L.value,
902
+ hasPdf: U.value.userOptions.buttons.pdf,
903
+ hasTable: !!K.value && U.value.userOptions.buttons.table,
904
+ hasXls: !!K.value && U.value.userOptions.buttons.csv,
905
+ hasImg: U.value.userOptions.buttons.img,
906
+ hasSvg: U.value.userOptions.buttons.svg,
907
+ hasFullscreen: U.value.userOptions.buttons.fullscreen,
908
+ hasAltCopy: U.value.userOptions.buttons.altCopy,
909
+ titles: { ...U.value.userOptions.buttonTitles },
910
+ chartElement: R.value,
911
+ position: U.value.userOptions.position,
912
+ hasAnnotator: U.value.userOptions.buttons.annotator,
913
+ isAnnotation: Qn.value,
914
+ callbacks: U.value.userOptions.callbacks,
915
+ printScale: U.value.userOptions.print.scale,
916
+ tableDialog: U.value.table.useDialog,
917
+ isCursorPointer: xn.value,
918
+ onToggleFullscreen: qn,
919
+ onGeneratePdf: P(jn),
920
+ onGenerateCsv: Xn,
921
+ onGenerateImage: P(cr),
922
+ onGenerateSvg: P(sr),
923
+ onToggleTable: Zn,
924
+ onToggleAnnotator: $n,
925
+ onCopyAlt: lr,
926
+ style: O({ visibility: P(En) ? P(wn) ? "visible" : "hidden" : "visible" })
927
+ }, Ce({ _: 2 }, [
928
+ e.$slots.menuIcon ? {
929
+ name: "menuIcon",
930
+ fn: F(({ isOpen: t, color: n }) => [M(e.$slots, "menuIcon", D(E({
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: F(() => [M(e.$slots, "optionPdf", {}, void 0, !0)]),
939
+ key: "1"
940
+ } : void 0,
941
+ e.$slots.optionCsv ? {
942
+ name: "optionCsv",
943
+ fn: F(() => [M(e.$slots, "optionCsv", {}, void 0, !0)]),
944
+ key: "2"
945
+ } : void 0,
946
+ e.$slots.optionImg ? {
947
+ name: "optionImg",
948
+ fn: F(() => [M(e.$slots, "optionImg", {}, void 0, !0)]),
949
+ key: "3"
950
+ } : void 0,
951
+ e.$slots.optionSvg ? {
952
+ name: "optionSvg",
953
+ fn: F(() => [M(e.$slots, "optionSvg", {}, void 0, !0)]),
954
+ key: "4"
955
+ } : void 0,
956
+ e.$slots.optionTable ? {
957
+ name: "optionTable",
958
+ fn: F(() => [M(e.$slots, "optionTable", {}, void 0, !0)]),
959
+ key: "5"
960
+ } : void 0,
961
+ e.$slots.optionFullscreen ? {
962
+ name: "optionFullscreen",
963
+ fn: F(({ toggleFullscreen: t, isFullscreen: n }) => [M(e.$slots, "optionFullscreen", D(E({
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: F(({ toggleAnnotator: t, isAnnotator: n }) => [M(e.$slots, "optionAnnotator", D(E({
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: F(({ altCopy: t }) => [M(e.$slots, "optionAltCopy", D(E({ altCopy: t })), void 0, !0)]),
980
+ key: "8"
981
+ } : void 0,
982
+ e.$slots["custom-menu-before"] ? {
983
+ name: "custom-menu-before",
984
+ fn: F(() => [M(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: F(() => [M(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
+ ])) : x("", !0),
1019
+ C("div", Re, [(k(), S("svg", {
1020
+ ref_key: "svgRef",
1021
+ ref: Dn,
1022
+ xmlns: P(ie),
1023
+ class: De({
1024
+ "vue-data-ui-fullscreen--on": Kn.value,
1025
+ "vue-data-ui-fulscreen--off": !Kn.value
1026
+ }),
1027
+ viewBox: `0 0 ${q.value.absoluteWidth} ${q.value.height}`,
1028
+ style: O(`max-width:100%; overflow: visible; background:transparent;color:${U.value.style.chart.color}`),
1029
+ tabindex: "0",
1030
+ "aria-describedby": `chart-instructions-${L.value}`,
1031
+ onFocus: pr,
1032
+ onBlur: mr,
1033
+ onKeydown: hr
1034
+ }, [
1035
+ w(P(on)),
1036
+ e.$slots["chart-background"] ? (k(), S("foreignObject", {
1037
+ key: 0,
1038
+ x: 0,
1039
+ y: 0,
1040
+ width: q.value.absoluteWidth,
1041
+ height: q.value.height,
1042
+ style: { pointerEvents: "none" }
1043
+ }, [M(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : x("", !0),
1044
+ C("defs", null, [
1045
+ w(_, {
1046
+ t: "radial",
1047
+ id: `gradient_top${L.value}`,
1048
+ stops: [[
1049
+ "0%",
1050
+ P(s)(U.value.style.chart.backgroundColor, 0),
1051
+ 1
1052
+ ], [
1053
+ "100%",
1054
+ U.value.style.chart.bar.color,
1055
+ 1
1056
+ ]]
1057
+ }, null, 8, ["id", "stops"]),
1058
+ w(_, {
1059
+ t: "radial",
1060
+ id: `gradient_tube_top${L.value}`,
1061
+ stops: [[
1062
+ "0%",
1063
+ P(s)(P(g)(U.value.style.chart.bar.color, .5), 80),
1064
+ 1
1065
+ ], [
1066
+ "100%",
1067
+ P(s)(P(l)(U.value.style.chart.bar.color, .1), 80),
1068
+ 1
1069
+ ]]
1070
+ }, null, 8, ["id", "stops"]),
1071
+ w(_, {
1072
+ t: "radial",
1073
+ id: `gradient_left${L.value}`,
1074
+ stops: [[
1075
+ "0%",
1076
+ P(s)(U.value.style.chart.backgroundColor, 0),
1077
+ 1
1078
+ ], [
1079
+ "100%",
1080
+ P(s)(U.value.style.chart.bar.color, 20),
1081
+ 1
1082
+ ]]
1083
+ }, null, 8, ["id", "stops"]),
1084
+ w(_, {
1085
+ t: "radial",
1086
+ id: `gradient_right${L.value}`,
1087
+ stops: [[
1088
+ "0%",
1089
+ P(s)(U.value.style.chart.backgroundColor, 0),
1090
+ 1
1091
+ ], [
1092
+ "100%",
1093
+ P(s)(U.value.style.chart.bar.color, 20),
1094
+ 1
1095
+ ]]
1096
+ }, null, 8, ["id", "stops"]),
1097
+ w(_, {
1098
+ t: "linear",
1099
+ id: `gradient_tube_body${L.value}`,
1100
+ x1: "0%",
1101
+ y1: "0%",
1102
+ x2: "100%",
1103
+ y2: "0%",
1104
+ stops: [
1105
+ [
1106
+ "0%",
1107
+ U.value.style.chart.bar.color,
1108
+ 1
1109
+ ],
1110
+ [
1111
+ "10%",
1112
+ P(s)(P(l)(U.value.style.chart.bar.color, .7), 100),
1113
+ 1
1114
+ ],
1115
+ [
1116
+ "25%",
1117
+ P(s)(P(l)(U.value.style.chart.bar.color, .5), 100),
1118
+ 1
1119
+ ],
1120
+ [
1121
+ "75%",
1122
+ P(s)(U.value.style.chart.bar.color, 80),
1123
+ 1
1124
+ ],
1125
+ [
1126
+ "100%",
1127
+ P(s)(P(g)(U.value.style.chart.bar.color, .7), 100),
1128
+ 1
1129
+ ]
1130
+ ]
1131
+ }, null, 8, ["id", "stops"])
1132
+ ]),
1133
+ K.value ? (k(), S("defs", Ve, [
1134
+ (k(!0), S(v, null, j(J.value, (e) => (k(), b(_, {
1135
+ t: "radial",
1136
+ id: `grad_top_${e.id}`,
1137
+ key: `grad_top_${e.id}`,
1138
+ stops: [[
1139
+ "0%",
1140
+ P(s)(P(g)(e.color, .5), 80),
1141
+ 1
1142
+ ], [
1143
+ "100%",
1144
+ e.color,
1145
+ 1
1146
+ ]]
1147
+ }, null, 8, ["id", "stops"]))), 128)),
1148
+ (k(!0), S(v, null, j(J.value, (e) => (k(), b(_, {
1149
+ t: "linear",
1150
+ id: `grad_left_${e.id}`,
1151
+ key: `grad_left_${e.id}`,
1152
+ stops: [[
1153
+ "0%",
1154
+ P(s)(e.color, 80),
1155
+ 1
1156
+ ], [
1157
+ "100%",
1158
+ P(s)(P(l)(e.color, .5), 100),
1159
+ 1
1160
+ ]]
1161
+ }, null, 8, ["id", "stops"]))), 128)),
1162
+ (k(!0), S(v, null, j(J.value, (e) => (k(), b(_, {
1163
+ t: "linear",
1164
+ id: `grad_right_${e.id}`,
1165
+ key: `grad_right_${e.id}`,
1166
+ stops: [[
1167
+ "2%",
1168
+ P(s)(P(g)(e.color, .5), 100),
1169
+ 1
1170
+ ], [
1171
+ "100%",
1172
+ P(s)(e.color, 80),
1173
+ 1
1174
+ ]]
1175
+ }, null, 8, ["id", "stops"]))), 128)),
1176
+ w(_, {
1177
+ t: "linear",
1178
+ x1: "0%",
1179
+ y1: "0%",
1180
+ x2: "0%",
1181
+ y2: "100%",
1182
+ id: `vertical_line_${L.value}`,
1183
+ stops: [[
1184
+ "0%",
1185
+ "#FFFFFF",
1186
+ 1
1187
+ ], [
1188
+ "100%",
1189
+ "#FFFFFF33",
1190
+ 1
1191
+ ]]
1192
+ }, null, 8, ["id"])
1193
+ ])) : x("", !0),
1194
+ U.value.style.chart.dataLabel.show && ![null, void 0].includes(P(W).percentage) && [null, void 0].includes(P(W).series) ? (k(), S("text", {
1195
+ key: 2,
1196
+ x: q.value.width / 2,
1197
+ y: q.value.top - U.value.style.chart.dataLabel.fontSize / 2,
1198
+ "font-size": U.value.style.chart.dataLabel.fontSize,
1199
+ "font-weight": U.value.style.chart.dataLabel.bold ? "bold" : "normal",
1200
+ fill: U.value.style.chart.dataLabel.color,
1201
+ "text-anchor": "middle"
1202
+ }, N(P(c)({
1203
+ v: In.value,
1204
+ s: "%",
1205
+ r: U.value.style.chart.dataLabel.rounding
1206
+ })), 9, He)) : x("", !0),
1207
+ z.value ? (k(), S("g", {
1208
+ key: 3,
1209
+ role: "button",
1210
+ tabindex: "0",
1211
+ "aria-label": "Clear selection",
1212
+ onClick: t[0] ||= (e) => {
1213
+ z.value = !1, X.value = null;
1214
+ },
1215
+ onKeydown: [t[1] ||= Me(Ne((e) => {
1216
+ z.value = !1, X.value = null;
1217
+ }, ["prevent"]), ["enter"]), t[2] ||= Me(Ne((e) => {
1218
+ z.value = !1, X.value = null;
1219
+ }, ["prevent"]), ["space"])],
1220
+ onFocus: t[3] ||= (e) => B.value = !0,
1221
+ onBlur: t[4] ||= (e) => B.value = !1,
1222
+ onMouseenter: t[5] ||= (e) => B.value = !0,
1223
+ onMouseleave: t[6] ||= (e) => B.value = !1,
1224
+ class: "svg-btn",
1225
+ "data-dom-to-png-ignore": "",
1226
+ style: O({
1227
+ cursor: xn.value ? "pointer" : "default",
1228
+ outline: "none"
1229
+ })
1230
+ }, [
1231
+ t[10] ||= C("title", null, "Clear selection", -1),
1232
+ C("rect", {
1233
+ x: Vn.value - 12,
1234
+ y: q.value.top - 24,
1235
+ width: 24,
1236
+ height: 24,
1237
+ fill: "transparent",
1238
+ "pointer-events": "all"
1239
+ }, null, 8, Ue),
1240
+ C("circle", {
1241
+ cx: Vn.value,
1242
+ cy: q.value.top - 12,
1243
+ r: "10",
1244
+ fill: "none",
1245
+ stroke: U.value.style.chart.color,
1246
+ "stroke-width": "2",
1247
+ "vector-effect": "non-scaling-stroke",
1248
+ opacity: B.value ? .5 : 0
1249
+ }, null, 8, We),
1250
+ C("path", {
1251
+ d: `M${Vn.value - 6},${q.value.top - 18} ${Vn.value + 6},${q.value.top - 6}`,
1252
+ stroke: U.value.style.chart.color,
1253
+ "stroke-linecap": "round",
1254
+ "stroke-width": "2",
1255
+ "vector-effect": "non-scaling-stroke"
1256
+ }, null, 8, Ge),
1257
+ C("path", {
1258
+ d: `M${Vn.value + 6},${q.value.top - 18} ${Vn.value - 6},${q.value.top - 6}`,
1259
+ stroke: U.value.style.chart.color,
1260
+ "stroke-linecap": "round",
1261
+ "stroke-width": "2",
1262
+ "vector-effect": "non-scaling-stroke"
1263
+ }, null, 8, Ke)
1264
+ ], 36)) : x("", !0),
1265
+ !U.value.style.shape || U.value.style.shape === "bar" ? (k(), S("g", qe, [
1266
+ K.value ? x("", !0) : (k(), S("g", Je, [
1267
+ C("path", {
1268
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1269
+ d: Y.value.right,
1270
+ stroke: U.value.style.chart.box.stroke,
1271
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1272
+ "stroke-linejoin": "round",
1273
+ "stroke-linecap": "round",
1274
+ fill: "none"
1275
+ }, null, 8, Ye),
1276
+ C("path", {
1277
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1278
+ d: Y.value.left,
1279
+ stroke: U.value.style.chart.box.stroke,
1280
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1281
+ "stroke-linejoin": "round",
1282
+ "stroke-linecap": "round",
1283
+ fill: "none"
1284
+ }, null, 8, Xe),
1285
+ C("path", {
1286
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1287
+ d: Y.value.side,
1288
+ stroke: U.value.style.chart.box.stroke,
1289
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1290
+ "stroke-linejoin": "round",
1291
+ "stroke-linecap": "round",
1292
+ fill: "none"
1293
+ }, null, 8, Ze),
1294
+ C("path", {
1295
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1296
+ d: Y.value.topSides,
1297
+ stroke: U.value.style.chart.box.stroke,
1298
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1299
+ "stroke-linejoin": "round",
1300
+ "stroke-linecap": "round",
1301
+ fill: "none"
1302
+ }, null, 8, Qe)
1303
+ ])),
1304
+ K.value ? x("", !0) : (k(), S("g", $e, [
1305
+ C("path", {
1306
+ d: Un.value.right,
1307
+ stroke: U.value.style.chart.bar.stroke,
1308
+ "stroke-width": U.value.style.chart.bar.strokeWidth,
1309
+ "stroke-linejoin": "round",
1310
+ "stroke-linecap": "round",
1311
+ fill: `url(#gradient_right${L.value})`
1312
+ }, null, 8, et),
1313
+ C("path", {
1314
+ d: Un.value.left,
1315
+ stroke: U.value.style.chart.bar.stroke,
1316
+ "stroke-width": U.value.style.chart.bar.strokeWidth,
1317
+ "stroke-linejoin": "round",
1318
+ "stroke-linecap": "round",
1319
+ fill: `url(#gradient_left${L.value})`
1320
+ }, null, 8, tt),
1321
+ C("path", {
1322
+ d: Un.value.top,
1323
+ stroke: U.value.style.chart.bar.stroke,
1324
+ "stroke-width": U.value.style.chart.bar.strokeWidth,
1325
+ "stroke-linejoin": "round",
1326
+ "stroke-linecap": "round",
1327
+ fill: `url(#gradient_top${L.value})`
1328
+ }, null, 8, nt)
1329
+ ])),
1330
+ K.value ? (k(), S("g", rt, [
1331
+ (k(!0), S(v, null, j(J.value, (e, t) => (k(), S("g", {
1332
+ style: O(`opacity:${X.value ? X.value === e.id ? 1 : .3 : 1}`),
1333
+ class: "vue-ui-3d-bar-stack",
1334
+ role: "img",
1335
+ "aria-label": dr(e)
1336
+ }, [
1337
+ C("path", {
1338
+ d: e.fill.right,
1339
+ fill: `url(#grad_right_${e.id})`,
1340
+ onMouseenter: (t) => Z(e),
1341
+ onClick: (t) => Z(e, !0),
1342
+ onMouseout: (t) => Q(e)
1343
+ }, null, 40, at),
1344
+ C("path", {
1345
+ d: e.fill.left,
1346
+ fill: `url(#grad_left_${e.id})`,
1347
+ onMouseenter: (t) => Z(e),
1348
+ onClick: (t) => Z(e, !0),
1349
+ onMouseout: (t) => Q(e)
1350
+ }, null, 40, ot),
1351
+ C("path", {
1352
+ d: e.fill.top,
1353
+ fill: `url(#grad_top_${e.id})`,
1354
+ onMouseenter: (t) => Z(e),
1355
+ onClick: (t) => Z(e, !0),
1356
+ onMouseout: (t) => Q(e)
1357
+ }, null, 40, st),
1358
+ C("path", {
1359
+ d: e.fill.liningTop,
1360
+ stroke: "#FFFFFF",
1361
+ "stroke-width": "0.5",
1362
+ "stroke-linecap": "round",
1363
+ fill: "none",
1364
+ onMouseenter: (t) => Z(e),
1365
+ onClick: (t) => Z(e, !0),
1366
+ onMouseout: (t) => Q(e)
1367
+ }, null, 40, ct),
1368
+ C("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, lt)
1374
+ ], 12, it))), 256)),
1375
+ (k(!0), S(v, null, j(J.value, (e, t) => (k(), S("g", null, [t === J.value.length - 1 ? x("", !0) : (k(), S("path", {
1376
+ key: 0,
1377
+ d: e.fill.liningTopShade,
1378
+ stroke: U.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, ut))]))), 256)),
1384
+ (k(!0), S(v, null, j(J.value, (t, n) => (k(), S("g", {
1385
+ style: O(`opacity:${X.value ? +(X.value === t.id) : +(t.proportion * 100 > U.value.style.chart.legend.hideUnderPercentage)}`),
1386
+ onClick: (e) => dn("selectDatapoint", t)
1387
+ }, [
1388
+ C("path", {
1389
+ stroke: U.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, ft),
1395
+ !t.fill.miniDonut || X.value ? (k(), S("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: U.value.style.chart.backgroundColor
1402
+ }, null, 8, pt)) : x("", !0),
1403
+ P(Cn) ? (k(), S("rect", {
1404
+ key: 1,
1405
+ x: t.fill.sidePointer.xText,
1406
+ y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize / 2,
1407
+ width: q.value.width / 3,
1408
+ height: U.value.style.chart.legend.fontSize,
1409
+ fill: "#6A6A6A80",
1410
+ rx: "3"
1411
+ }, null, 8, mt)) : x("", !0),
1412
+ P(Cn) ? x("", !0) : (k(), S("foreignObject", {
1413
+ key: 2,
1414
+ x: t.fill.sidePointer.xText,
1415
+ y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize,
1416
+ width: q.value.absoluteWidth / 3,
1417
+ height: U.value.style.chart.legend.fontSize * 2,
1418
+ style: {
1419
+ overflow: "visible",
1420
+ position: "relative"
1421
+ }
1422
+ }, [U.value.style.chart.legend.showDefault ? (k(), S("div", {
1423
+ key: 0,
1424
+ style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${U.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${U.value.style.chart.legend.fontSize}px; color:${U.value.style.chart.legend.color}; font-weight:${U.value.style.chart.legend.bold ? "bold" : "normal"}`)
1425
+ }, N(P(ee)(U.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${P(c)({
1426
+ v: t.proportion * 100,
1427
+ s: "%",
1428
+ r: U.value.style.chart.legend.roundingPercentage
1429
+ })} (${P(c)({
1430
+ p: U.value.style.chart.legend.prefix,
1431
+ v: t.value,
1432
+ s: U.value.style.chart.legend.suffix,
1433
+ r: U.value.style.chart.legend.roundingValue
1434
+ })})`, {
1435
+ datapoint: t,
1436
+ seriesIndex: n,
1437
+ type: "barDatapoint"
1438
+ })), 5)) : x("", !0), M(e.$slots, "legend", Te({ ref_for: !0 }, {
1439
+ datapoint: t,
1440
+ config: U.value,
1441
+ dataset: J.value
1442
+ }), void 0, !0)], 8, ht)),
1443
+ t.fill.donut && X.value === t.id ? (k(), S("g", gt, [
1444
+ (k(!0), S(v, null, j(t.fill.donut, (e, n) => (k(), S("g", null, [Wn(e, t.fill.donut, !0) > 6 ? (k(), S("path", {
1445
+ key: 0,
1446
+ d: P(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, _t)) : x("", !0)]))), 256)),
1457
+ (k(!0), S(v, null, j(t.fill.donut, (e, t) => (k(), S("path", {
1458
+ class: "vue-ui-donut-arc-path",
1459
+ d: e.arcSlice,
1460
+ fill: `${e.color}`,
1461
+ stroke: U.value.style.chart.backgroundColor,
1462
+ "stroke-width": 1
1463
+ }, null, 8, vt))), 256)),
1464
+ (k(!0), S(v, null, j(t.fill.donut, (e, n) => (k(), S("g", null, [Wn(e, t.fill.donut, !0) > 6 ? (k(), S("g", yt, [C("text", {
1465
+ "text-anchor": P(p)(e, !0, 0).anchor,
1466
+ x: P(p)(e, !0, 2).x,
1467
+ y: P(ne)(e, 12, 12),
1468
+ fill: U.value.style.chart.legend.color,
1469
+ "font-size": U.value.style.chart.legend.fontSize / 1.5,
1470
+ "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1471
+ }, N(P(ee)(U.value.style.chart.dataLabel.formatter, e.value, `${Wn(e, t.fill.donut)} (${P(c)({
1472
+ p: U.value.style.chart.legend.prefix,
1473
+ v: e.value,
1474
+ s: U.value.style.chart.legend.suffix,
1475
+ r: U.value.style.chart.legend.roundingValue
1476
+ })})`, {
1477
+ datapoint: e,
1478
+ seriesIndex: n,
1479
+ type: "donutDatapoint"
1480
+ })), 9, bt), C("text", {
1481
+ "text-anchor": P(p)(e).anchor,
1482
+ x: P(p)(e, !0, 2).x,
1483
+ y: P(ne)(e, 12, 12) + U.value.style.chart.legend.fontSize / 1.5,
1484
+ fill: U.value.style.chart.legend.color,
1485
+ "font-size": U.value.style.chart.legend.fontSize / 1.5,
1486
+ "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1487
+ }, N(e.name), 9, xt)])) : x("", !0)]))), 256))
1488
+ ])) : x("", !0),
1489
+ t.fill.miniDonut && !X.value ? (k(), S("g", St, [(k(!0), S(v, null, j(t.fill.miniDonut, (e, t) => (k(), S("path", {
1490
+ class: "vue-ui-donut-arc-path",
1491
+ d: e.arcSlice,
1492
+ fill: `${e.color}`,
1493
+ stroke: U.value.style.chart.backgroundColor,
1494
+ "stroke-width": .5
1495
+ }, null, 8, Ct))), 256))])) : x("", !0)
1496
+ ], 12, dt))), 256))
1497
+ ])) : x("", !0)
1498
+ ])) : x("", !0),
1499
+ U.value.style.shape === "tube" ? (k(), S("g", wt, [K.value ? x("", !0) : (k(), S("g", Tt, [
1500
+ C("path", {
1501
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1502
+ d: Y.value.tubeTop,
1503
+ stroke: U.value.style.chart.box.stroke,
1504
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1505
+ "stroke-linejoin": "round",
1506
+ "stroke-linecap": "round",
1507
+ fill: "none"
1508
+ }, null, 8, Et),
1509
+ C("path", {
1510
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1511
+ d: Y.value.tubeLeft,
1512
+ stroke: U.value.style.chart.box.stroke,
1513
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1514
+ "stroke-linejoin": "round",
1515
+ "stroke-linecap": "round",
1516
+ fill: "none"
1517
+ }, null, 8, Dt),
1518
+ C("path", {
1519
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1520
+ d: Y.value.tubeRight,
1521
+ stroke: U.value.style.chart.box.stroke,
1522
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1523
+ "stroke-linejoin": "round",
1524
+ "stroke-linecap": "round",
1525
+ fill: "none"
1526
+ }, null, 8, Ot),
1527
+ C("path", {
1528
+ "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1529
+ d: Y.value.tubeBottom,
1530
+ stroke: U.value.style.chart.box.stroke,
1531
+ "stroke-width": U.value.style.chart.box.strokeWidth,
1532
+ "stroke-linejoin": "round",
1533
+ "stroke-linecap": "round",
1534
+ fill: "none"
1535
+ }, null, 8, kt),
1536
+ C("path", {
1537
+ d: Un.value.tubeTop,
1538
+ stroke: U.value.style.chart.bar.stroke,
1539
+ "stroke-width": U.value.style.chart.bar.strokeWidth,
1540
+ "stroke-linejoin": "round",
1541
+ "stroke-linecap": "round",
1542
+ fill: `url(#gradient_tube_top${L.value})`
1543
+ }, null, 8, At),
1544
+ C("path", {
1545
+ d: Un.value.tubeBody,
1546
+ stroke: U.value.style.chart.bar.stroke,
1547
+ "stroke-width": U.value.style.chart.bar.strokeWidth,
1548
+ "stroke-linejoin": "round",
1549
+ "stroke-linecap": "round",
1550
+ fill: `url(#gradient_tube_body${L.value})`
1551
+ }, null, 8, jt),
1552
+ C("path", {
1553
+ d: Un.value.tubeTop,
1554
+ stroke: "#FFFFFF",
1555
+ "stroke-width": .5,
1556
+ "stroke-linejoin": "round",
1557
+ "stroke-linecap": "round",
1558
+ fill: "none"
1559
+ }, null, 8, Mt)
1560
+ ])), K.value ? (k(), S("g", Nt, [(k(!0), S(v, null, j(J.value, (e, t) => (k(), S("g", {
1561
+ style: O(`opacity:${X.value ? X.value === e.id ? 1 : .3 : 1}`),
1562
+ class: "vue-ui-3d-bar-stack",
1563
+ role: "img",
1564
+ "aria-label": dr(e)
1565
+ }, [
1566
+ C("defs", null, [w(_, {
1567
+ t: "radial",
1568
+ id: `gradient_tube_top_${e.id}`,
1569
+ fx: "10%",
1570
+ cy: "55%",
1571
+ stops: [[
1572
+ "0%",
1573
+ P(s)(P(g)(e.color, .5), 80),
1574
+ 1
1575
+ ], [
1576
+ "100%",
1577
+ P(s)(P(l)(e.color, .1), 80),
1578
+ 1
1579
+ ]]
1580
+ }, null, 8, ["id", "stops"]), w(_, {
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
+ P(s)(P(l)(e.color, .7), 100),
1596
+ 1
1597
+ ],
1598
+ [
1599
+ "25%",
1600
+ P(s)(P(l)(e.color, .5), 100),
1601
+ 1
1602
+ ],
1603
+ [
1604
+ "75%",
1605
+ P(s)(e.color, 80),
1606
+ 1
1607
+ ],
1608
+ [
1609
+ "100%",
1610
+ P(s)(P(g)(e.color, .7), 100),
1611
+ 1
1612
+ ]
1613
+ ]
1614
+ }, null, 8, ["id", "stops"])]),
1615
+ C("path", {
1616
+ onMouseenter: (t) => Z(e),
1617
+ onClick: (t) => Z(e, !0),
1618
+ onMouseout: (t) => Q(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, Ft),
1626
+ t > 0 ? (k(), S("path", {
1627
+ key: 0,
1628
+ onMouseenter: (t) => Z(e),
1629
+ onClick: (t) => Z(e, !0),
1630
+ onMouseout: (t) => Q(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, It)) : x("", !0),
1638
+ C("path", {
1639
+ onMouseenter: (t) => Z(e),
1640
+ onClick: (t) => Z(e, !0),
1641
+ onMouseout: (t) => Q(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, Lt)
1649
+ ], 12, Pt))), 256)), (k(!0), S(v, null, j(J.value, (t, n) => (k(), S("g", {
1650
+ style: O(`opacity:${X.value ? +(X.value === t.id) : +(t.proportion * 100 > U.value.style.chart.legend.hideUnderPercentage)}`),
1651
+ onClick: (e) => dn("selectDatapoint", t)
1652
+ }, [
1653
+ C("path", {
1654
+ stroke: U.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, zt),
1660
+ !t.fill.miniDonut || X.value ? (k(), S("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: U.value.style.chart.backgroundColor
1667
+ }, null, 8, Bt)) : x("", !0),
1668
+ P(Cn) ? (k(), S("rect", {
1669
+ key: 1,
1670
+ x: t.fill.sidePointer.xText,
1671
+ y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize / 2,
1672
+ width: q.value.width / 3,
1673
+ height: U.value.style.chart.legend.fontSize,
1674
+ fill: "#6A6A6A80",
1675
+ rx: "3"
1676
+ }, null, 8, Vt)) : x("", !0),
1677
+ P(Cn) ? x("", !0) : (k(), S("foreignObject", {
1678
+ key: 2,
1679
+ x: t.fill.sidePointer.xText,
1680
+ y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize,
1681
+ width: q.value.absoluteWidth / 3,
1682
+ height: U.value.style.chart.legend.fontSize * 2,
1683
+ style: {
1684
+ overflow: "visible",
1685
+ position: "relative"
1686
+ }
1687
+ }, [U.value.style.chart.legend.showDefault ? (k(), S("div", {
1688
+ key: 0,
1689
+ style: O(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${U.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${U.value.style.chart.legend.fontSize}px; color:${U.value.style.chart.legend.color};font-weight:${U.value.style.chart.legend.bold ? "bold" : "normal"}`)
1690
+ }, N(P(ee)(U.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${P(c)({
1691
+ v: t.proportion * 100,
1692
+ s: "%",
1693
+ r: U.value.style.chart.legend.roundingPercentage
1694
+ })} (${P(c)({
1695
+ p: U.value.style.chart.legend.prefix,
1696
+ v: t.value,
1697
+ s: U.value.style.chart.legend.suffix,
1698
+ r: U.value.style.chart.legend.roundingValue
1699
+ })})`, {
1700
+ datapoint: t,
1701
+ seriesIndex: n,
1702
+ type: "barDatapoint"
1703
+ })), 5)) : x("", !0), M(e.$slots, "legend", Te({ ref_for: !0 }, {
1704
+ datapoint: t,
1705
+ config: U.value,
1706
+ dataset: J.value
1707
+ }), void 0, !0)], 8, Ht)),
1708
+ t.fill.donut && X.value === t.id ? (k(), S("g", Ut, [
1709
+ (k(!0), S(v, null, j(t.fill.donut, (e, n) => (k(), S("g", null, [Wn(e, t.fill.donut, !0) > 6 ? (k(), S("path", {
1710
+ key: 0,
1711
+ d: P(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, Wt)) : x("", !0)]))), 256)),
1722
+ (k(!0), S(v, null, j(t.fill.donut, (e, t) => (k(), S("path", {
1723
+ class: "vue-ui-donut-arc-path",
1724
+ d: e.arcSlice,
1725
+ fill: `${e.color}`,
1726
+ stroke: U.value.style.chart.backgroundColor,
1727
+ "stroke-width": 1
1728
+ }, null, 8, Gt))), 256)),
1729
+ (k(!0), S(v, null, j(t.fill.donut, (e, n) => (k(), S("g", null, [Wn(e, t.fill.donut, !0) > 6 ? (k(), S("g", Kt, [C("text", {
1730
+ "text-anchor": P(p)(e, !0, 0).anchor,
1731
+ x: P(p)(e, !0, 2).x,
1732
+ y: P(ne)(e, 12, 12),
1733
+ fill: U.value.style.chart.legend.color,
1734
+ "font-size": U.value.style.chart.legend.fontSize / 1.5,
1735
+ "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1736
+ }, N(P(ee)(U.value.style.chart.dataLabel.formatter, e.value, `${Wn(e, t.fill.donut)} (${P(c)({
1737
+ p: U.value.style.chart.legend.prefix,
1738
+ v: e.value,
1739
+ s: U.value.style.chart.legend.suffix,
1740
+ r: U.value.style.chart.legend.roundingValue
1741
+ })})`, {
1742
+ datapoint: e,
1743
+ seriesIndex: n,
1744
+ type: "donutDatapoint"
1745
+ })), 9, qt), C("text", {
1746
+ "text-anchor": P(p)(e).anchor,
1747
+ x: P(p)(e, !0, 2).x,
1748
+ y: P(ne)(e, 12, 12) + U.value.style.chart.legend.fontSize / 1.5,
1749
+ fill: U.value.style.chart.legend.color,
1750
+ "font-size": U.value.style.chart.legend.fontSize / 1.5,
1751
+ "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1752
+ }, N(e.name), 9, Jt)])) : x("", !0)]))), 256))
1753
+ ])) : x("", !0),
1754
+ t.fill.miniDonut && !X.value ? (k(), S("g", Yt, [(k(!0), S(v, null, j(t.fill.miniDonut, (e, t) => (k(), S("path", {
1755
+ class: "vue-ui-donut-arc-path",
1756
+ d: e.arcSlice,
1757
+ fill: `${e.color}`,
1758
+ stroke: U.value.style.chart.backgroundColor,
1759
+ "stroke-width": .5
1760
+ }, null, 8, Xt))), 256))])) : x("", !0)
1761
+ ], 12, Rt))), 256))])) : x("", !0)])) : x("", !0),
1762
+ M(e.$slots, "svg", { svg: {
1763
+ ...q.value,
1764
+ isPrintingImg: P(kn) || P(An) || P(ar),
1765
+ isPrintingSvg: P(or)
1766
+ } }, void 0, !0)
1767
+ ], 46, ze))]),
1768
+ e.$slots.watermark ? (k(), S("div", Zt, [M(e.$slots, "watermark", D(E({ isPrinting: P(kn) || P(An) || P(or) || P(ar) })), void 0, !0)])) : x("", !0),
1769
+ e.$slots.source ? (k(), S("div", {
1770
+ key: 5,
1771
+ ref_key: "source",
1772
+ ref: vn,
1773
+ dir: "auto"
1774
+ }, [M(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
1775
+ fn.value && K.value && U.value.userOptions.buttons.table ? (k(), b(ke(tr.value.component), Te({ key: 6 }, tr.value.props, {
1776
+ ref_key: "tableUnit",
1777
+ ref: yn,
1778
+ onClose: nr
1779
+ }), Ce({
1780
+ content: F(() => [(k(), b(P(nn), {
1781
+ key: `table_${mn.value}`,
1782
+ colNames: $.value.colNames,
1783
+ head: $.value.head,
1784
+ body: $.value.body,
1785
+ config: $.value.config,
1786
+ title: U.value.table.useDialog ? "" : tr.value.title,
1787
+ withCloseButton: !U.value.table.useDialog,
1788
+ isCursorPointer: xn.value,
1789
+ onClose: nr
1790
+ }, {
1791
+ th: F(({ th: e }) => [e === "__SUM__" ? (k(), S("div", Qt, [w(P(en), {
1792
+ name: "sigma",
1793
+ stroke: $.value.config.th.color,
1794
+ size: 16
1795
+ }, null, 8, ["stroke"])])) : (k(), S("div", $t, N(e), 1))]),
1796
+ td: F(({ td: e }) => [we(N(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
+ }, [U.value.table.useDialog ? {
1809
+ name: "title",
1810
+ fn: F(() => [we(N(tr.value.title), 1)]),
1811
+ key: "0"
1812
+ } : void 0, U.value.table.useDialog ? {
1813
+ name: "actions",
1814
+ fn: F(() => [C("button", {
1815
+ tabindex: "0",
1816
+ class: "vue-ui-user-options-button",
1817
+ onClick: t[7] ||= (e) => Xn(U.value.userOptions.callbacks.csv)
1818
+ }, [w(P(en), {
1819
+ name: "fileCsv",
1820
+ stroke: tr.value.props.color
1821
+ }, null, 8, ["stroke"])])]),
1822
+ key: "1"
1823
+ } : void 0]), 1040)) : x("", !0),
1824
+ M(e.$slots, "skeleton", {}, () => [P(Cn) ? (k(), b(ue, { key: 0 })) : x("", !0)], !0)
1825
+ ], 44, Fe));
1826
+ }
1827
+ }, [["__scopeId", "data-v-0936c7c0"]]);
1828
+ //#endregion
1829
+ export { Pe as n, en as t };