vue-data-ui 3.25.5 → 3.25.6

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,1831 +0,0 @@
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-C_mX5pOZ.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-DRf3NQyH.js").then((e) => e.n)), nn = T(() => import("./DataTable-COIO9gi4.js")), rn = T(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), an = T(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), on = T(() => import("./PackageVersion-M2Ws-VwJ.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
- palette: U.value.userOptions.annotatorPalette,
860
- onClose: $n
861
- }, {
862
- "annotator-action-close": F(() => [M(e.$slots, "annotator-action-close", {}, void 0, !0)]),
863
- "annotator-action-color": F(({ color: t }) => [M(e.$slots, "annotator-action-color", D(E({ color: t })), void 0, !0)]),
864
- "annotator-action-draw": F(({ mode: t }) => [M(e.$slots, "annotator-action-draw", D(E({ mode: t })), void 0, !0)]),
865
- "annotator-action-undo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-undo", D(E({ disabled: t })), void 0, !0)]),
866
- "annotator-action-redo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-redo", D(E({ disabled: t })), void 0, !0)]),
867
- "annotator-action-delete": F(({ disabled: t }) => [M(e.$slots, "annotator-action-delete", D(E({ disabled: t })), void 0, !0)]),
868
- _: 3
869
- }, 8, [
870
- "svgRef",
871
- "backgroundColor",
872
- "color",
873
- "active",
874
- "isCursorPointer",
875
- "palette"
876
- ])) : x("", !0),
877
- U.value.style.chart.title.text ? (k(), S("div", {
878
- key: 2,
879
- ref_key: "chartTitle",
880
- ref: hn,
881
- style: "width:100%;background:transparent"
882
- }, [(k(), b(he, {
883
- key: `title_${pn.value}`,
884
- config: {
885
- title: {
886
- cy: "3dBar-div-title",
887
- ...U.value.style.chart.title
888
- },
889
- subtitle: {
890
- cy: "3dBar-div-subtitle",
891
- ...U.value.style.chart.title.subtitle
892
- }
893
- }
894
- }, null, 8, ["config"]))], 512)) : x("", !0),
895
- U.value.userOptions.show && fn.value && (P(En) || P(wn)) ? (k(), b(P(an), {
896
- key: 3,
897
- ref_key: "userOptionsRef",
898
- ref: bn,
899
- backgroundColor: U.value.style.chart.backgroundColor,
900
- color: U.value.style.chart.color,
901
- isPrinting: P(kn),
902
- isImaging: P(An),
903
- uid: L.value,
904
- hasPdf: U.value.userOptions.buttons.pdf,
905
- hasTable: !!K.value && U.value.userOptions.buttons.table,
906
- hasXls: !!K.value && U.value.userOptions.buttons.csv,
907
- hasImg: U.value.userOptions.buttons.img,
908
- hasSvg: U.value.userOptions.buttons.svg,
909
- hasFullscreen: U.value.userOptions.buttons.fullscreen,
910
- hasAltCopy: U.value.userOptions.buttons.altCopy,
911
- titles: { ...U.value.userOptions.buttonTitles },
912
- chartElement: R.value,
913
- position: U.value.userOptions.position,
914
- hasAnnotator: U.value.userOptions.buttons.annotator,
915
- isAnnotation: Qn.value,
916
- callbacks: U.value.userOptions.callbacks,
917
- printScale: U.value.userOptions.print.scale,
918
- tableDialog: U.value.table.useDialog,
919
- isCursorPointer: xn.value,
920
- onToggleFullscreen: qn,
921
- onGeneratePdf: P(jn),
922
- onGenerateCsv: Xn,
923
- onGenerateImage: P(cr),
924
- onGenerateSvg: P(sr),
925
- onToggleTable: Zn,
926
- onToggleAnnotator: $n,
927
- onCopyAlt: lr,
928
- style: O({ visibility: P(En) ? P(wn) ? "visible" : "hidden" : "visible" })
929
- }, Ce({ _: 2 }, [
930
- e.$slots.menuIcon ? {
931
- name: "menuIcon",
932
- fn: F(({ isOpen: t, color: n }) => [M(e.$slots, "menuIcon", D(E({
933
- isOpen: t,
934
- color: n
935
- })), void 0, !0)]),
936
- key: "0"
937
- } : void 0,
938
- e.$slots.optionPdf ? {
939
- name: "optionPdf",
940
- fn: F(() => [M(e.$slots, "optionPdf", {}, void 0, !0)]),
941
- key: "1"
942
- } : void 0,
943
- e.$slots.optionCsv ? {
944
- name: "optionCsv",
945
- fn: F(() => [M(e.$slots, "optionCsv", {}, void 0, !0)]),
946
- key: "2"
947
- } : void 0,
948
- e.$slots.optionImg ? {
949
- name: "optionImg",
950
- fn: F(() => [M(e.$slots, "optionImg", {}, void 0, !0)]),
951
- key: "3"
952
- } : void 0,
953
- e.$slots.optionSvg ? {
954
- name: "optionSvg",
955
- fn: F(() => [M(e.$slots, "optionSvg", {}, void 0, !0)]),
956
- key: "4"
957
- } : void 0,
958
- e.$slots.optionTable ? {
959
- name: "optionTable",
960
- fn: F(() => [M(e.$slots, "optionTable", {}, void 0, !0)]),
961
- key: "5"
962
- } : void 0,
963
- e.$slots.optionFullscreen ? {
964
- name: "optionFullscreen",
965
- fn: F(({ toggleFullscreen: t, isFullscreen: n }) => [M(e.$slots, "optionFullscreen", D(E({
966
- toggleFullscreen: t,
967
- isFullscreen: n
968
- })), void 0, !0)]),
969
- key: "6"
970
- } : void 0,
971
- e.$slots.optionAnnotator ? {
972
- name: "optionAnnotator",
973
- fn: F(({ toggleAnnotator: t, isAnnotator: n }) => [M(e.$slots, "optionAnnotator", D(E({
974
- toggleAnnotator: t,
975
- isAnnotator: n
976
- })), void 0, !0)]),
977
- key: "7"
978
- } : void 0,
979
- e.$slots.optionAltCopy ? {
980
- name: "optionAltCopy",
981
- fn: F(({ altCopy: t }) => [M(e.$slots, "optionAltCopy", D(E({ altCopy: t })), void 0, !0)]),
982
- key: "8"
983
- } : void 0,
984
- e.$slots["custom-menu-before"] ? {
985
- name: "custom-menu-before",
986
- fn: F(() => [M(e.$slots, "custom-menu-before", {}, void 0, !0)]),
987
- key: "9"
988
- } : void 0,
989
- e.$slots["custom-menu-after"] ? {
990
- name: "custom-menu-after",
991
- fn: F(() => [M(e.$slots, "custom-menu-after", {}, void 0, !0)]),
992
- key: "10"
993
- } : void 0
994
- ]), 1032, [
995
- "backgroundColor",
996
- "color",
997
- "isPrinting",
998
- "isImaging",
999
- "uid",
1000
- "hasPdf",
1001
- "hasTable",
1002
- "hasXls",
1003
- "hasImg",
1004
- "hasSvg",
1005
- "hasFullscreen",
1006
- "hasAltCopy",
1007
- "titles",
1008
- "chartElement",
1009
- "position",
1010
- "hasAnnotator",
1011
- "isAnnotation",
1012
- "callbacks",
1013
- "printScale",
1014
- "tableDialog",
1015
- "isCursorPointer",
1016
- "onGeneratePdf",
1017
- "onGenerateImage",
1018
- "onGenerateSvg",
1019
- "style"
1020
- ])) : x("", !0),
1021
- C("div", Re, [(k(), S("svg", {
1022
- ref_key: "svgRef",
1023
- ref: Dn,
1024
- xmlns: P(ie),
1025
- class: De({
1026
- "vue-data-ui-fullscreen--on": Kn.value,
1027
- "vue-data-ui-fulscreen--off": !Kn.value
1028
- }),
1029
- viewBox: `0 0 ${q.value.absoluteWidth} ${q.value.height}`,
1030
- style: O(`max-width:100%; overflow: visible; background:transparent;color:${U.value.style.chart.color}`),
1031
- tabindex: "0",
1032
- "aria-describedby": `chart-instructions-${L.value}`,
1033
- onFocus: pr,
1034
- onBlur: mr,
1035
- onKeydown: hr
1036
- }, [
1037
- w(P(on)),
1038
- e.$slots["chart-background"] ? (k(), S("foreignObject", {
1039
- key: 0,
1040
- x: 0,
1041
- y: 0,
1042
- width: q.value.absoluteWidth,
1043
- height: q.value.height,
1044
- style: { pointerEvents: "none" }
1045
- }, [M(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : x("", !0),
1046
- C("defs", null, [
1047
- w(_, {
1048
- t: "radial",
1049
- id: `gradient_top${L.value}`,
1050
- stops: [[
1051
- "0%",
1052
- P(s)(U.value.style.chart.backgroundColor, 0),
1053
- 1
1054
- ], [
1055
- "100%",
1056
- U.value.style.chart.bar.color,
1057
- 1
1058
- ]]
1059
- }, null, 8, ["id", "stops"]),
1060
- w(_, {
1061
- t: "radial",
1062
- id: `gradient_tube_top${L.value}`,
1063
- stops: [[
1064
- "0%",
1065
- P(s)(P(g)(U.value.style.chart.bar.color, .5), 80),
1066
- 1
1067
- ], [
1068
- "100%",
1069
- P(s)(P(l)(U.value.style.chart.bar.color, .1), 80),
1070
- 1
1071
- ]]
1072
- }, null, 8, ["id", "stops"]),
1073
- w(_, {
1074
- t: "radial",
1075
- id: `gradient_left${L.value}`,
1076
- stops: [[
1077
- "0%",
1078
- P(s)(U.value.style.chart.backgroundColor, 0),
1079
- 1
1080
- ], [
1081
- "100%",
1082
- P(s)(U.value.style.chart.bar.color, 20),
1083
- 1
1084
- ]]
1085
- }, null, 8, ["id", "stops"]),
1086
- w(_, {
1087
- t: "radial",
1088
- id: `gradient_right${L.value}`,
1089
- stops: [[
1090
- "0%",
1091
- P(s)(U.value.style.chart.backgroundColor, 0),
1092
- 1
1093
- ], [
1094
- "100%",
1095
- P(s)(U.value.style.chart.bar.color, 20),
1096
- 1
1097
- ]]
1098
- }, null, 8, ["id", "stops"]),
1099
- w(_, {
1100
- t: "linear",
1101
- id: `gradient_tube_body${L.value}`,
1102
- x1: "0%",
1103
- y1: "0%",
1104
- x2: "100%",
1105
- y2: "0%",
1106
- stops: [
1107
- [
1108
- "0%",
1109
- U.value.style.chart.bar.color,
1110
- 1
1111
- ],
1112
- [
1113
- "10%",
1114
- P(s)(P(l)(U.value.style.chart.bar.color, .7), 100),
1115
- 1
1116
- ],
1117
- [
1118
- "25%",
1119
- P(s)(P(l)(U.value.style.chart.bar.color, .5), 100),
1120
- 1
1121
- ],
1122
- [
1123
- "75%",
1124
- P(s)(U.value.style.chart.bar.color, 80),
1125
- 1
1126
- ],
1127
- [
1128
- "100%",
1129
- P(s)(P(g)(U.value.style.chart.bar.color, .7), 100),
1130
- 1
1131
- ]
1132
- ]
1133
- }, null, 8, ["id", "stops"])
1134
- ]),
1135
- K.value ? (k(), S("defs", Ve, [
1136
- (k(!0), S(v, null, j(J.value, (e) => (k(), b(_, {
1137
- t: "radial",
1138
- id: `grad_top_${e.id}`,
1139
- key: `grad_top_${e.id}`,
1140
- stops: [[
1141
- "0%",
1142
- P(s)(P(g)(e.color, .5), 80),
1143
- 1
1144
- ], [
1145
- "100%",
1146
- e.color,
1147
- 1
1148
- ]]
1149
- }, null, 8, ["id", "stops"]))), 128)),
1150
- (k(!0), S(v, null, j(J.value, (e) => (k(), b(_, {
1151
- t: "linear",
1152
- id: `grad_left_${e.id}`,
1153
- key: `grad_left_${e.id}`,
1154
- stops: [[
1155
- "0%",
1156
- P(s)(e.color, 80),
1157
- 1
1158
- ], [
1159
- "100%",
1160
- P(s)(P(l)(e.color, .5), 100),
1161
- 1
1162
- ]]
1163
- }, null, 8, ["id", "stops"]))), 128)),
1164
- (k(!0), S(v, null, j(J.value, (e) => (k(), b(_, {
1165
- t: "linear",
1166
- id: `grad_right_${e.id}`,
1167
- key: `grad_right_${e.id}`,
1168
- stops: [[
1169
- "2%",
1170
- P(s)(P(g)(e.color, .5), 100),
1171
- 1
1172
- ], [
1173
- "100%",
1174
- P(s)(e.color, 80),
1175
- 1
1176
- ]]
1177
- }, null, 8, ["id", "stops"]))), 128)),
1178
- w(_, {
1179
- t: "linear",
1180
- x1: "0%",
1181
- y1: "0%",
1182
- x2: "0%",
1183
- y2: "100%",
1184
- id: `vertical_line_${L.value}`,
1185
- stops: [[
1186
- "0%",
1187
- "#FFFFFF",
1188
- 1
1189
- ], [
1190
- "100%",
1191
- "#FFFFFF33",
1192
- 1
1193
- ]]
1194
- }, null, 8, ["id"])
1195
- ])) : x("", !0),
1196
- U.value.style.chart.dataLabel.show && ![null, void 0].includes(P(W).percentage) && [null, void 0].includes(P(W).series) ? (k(), S("text", {
1197
- key: 2,
1198
- x: q.value.width / 2,
1199
- y: q.value.top - U.value.style.chart.dataLabel.fontSize / 2,
1200
- "font-size": U.value.style.chart.dataLabel.fontSize,
1201
- "font-weight": U.value.style.chart.dataLabel.bold ? "bold" : "normal",
1202
- fill: U.value.style.chart.dataLabel.color,
1203
- "text-anchor": "middle"
1204
- }, N(P(c)({
1205
- v: In.value,
1206
- s: "%",
1207
- r: U.value.style.chart.dataLabel.rounding
1208
- })), 9, He)) : x("", !0),
1209
- z.value ? (k(), S("g", {
1210
- key: 3,
1211
- role: "button",
1212
- tabindex: "0",
1213
- "aria-label": "Clear selection",
1214
- onClick: t[0] ||= (e) => {
1215
- z.value = !1, X.value = null;
1216
- },
1217
- onKeydown: [t[1] ||= Me(Ne((e) => {
1218
- z.value = !1, X.value = null;
1219
- }, ["prevent"]), ["enter"]), t[2] ||= Me(Ne((e) => {
1220
- z.value = !1, X.value = null;
1221
- }, ["prevent"]), ["space"])],
1222
- onFocus: t[3] ||= (e) => B.value = !0,
1223
- onBlur: t[4] ||= (e) => B.value = !1,
1224
- onMouseenter: t[5] ||= (e) => B.value = !0,
1225
- onMouseleave: t[6] ||= (e) => B.value = !1,
1226
- class: "svg-btn",
1227
- "data-dom-to-png-ignore": "",
1228
- style: O({
1229
- cursor: xn.value ? "pointer" : "default",
1230
- outline: "none"
1231
- })
1232
- }, [
1233
- t[10] ||= C("title", null, "Clear selection", -1),
1234
- C("rect", {
1235
- x: Vn.value - 12,
1236
- y: q.value.top - 24,
1237
- width: 24,
1238
- height: 24,
1239
- fill: "transparent",
1240
- "pointer-events": "all"
1241
- }, null, 8, Ue),
1242
- C("circle", {
1243
- cx: Vn.value,
1244
- cy: q.value.top - 12,
1245
- r: "10",
1246
- fill: "none",
1247
- stroke: U.value.style.chart.color,
1248
- "stroke-width": "2",
1249
- "vector-effect": "non-scaling-stroke",
1250
- opacity: B.value ? .5 : 0
1251
- }, null, 8, We),
1252
- C("path", {
1253
- d: `M${Vn.value - 6},${q.value.top - 18} ${Vn.value + 6},${q.value.top - 6}`,
1254
- stroke: U.value.style.chart.color,
1255
- "stroke-linecap": "round",
1256
- "stroke-width": "2",
1257
- "vector-effect": "non-scaling-stroke"
1258
- }, null, 8, Ge),
1259
- C("path", {
1260
- d: `M${Vn.value + 6},${q.value.top - 18} ${Vn.value - 6},${q.value.top - 6}`,
1261
- stroke: U.value.style.chart.color,
1262
- "stroke-linecap": "round",
1263
- "stroke-width": "2",
1264
- "vector-effect": "non-scaling-stroke"
1265
- }, null, 8, Ke)
1266
- ], 36)) : x("", !0),
1267
- !U.value.style.shape || U.value.style.shape === "bar" ? (k(), S("g", qe, [
1268
- K.value ? x("", !0) : (k(), S("g", Je, [
1269
- C("path", {
1270
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1271
- d: Y.value.right,
1272
- stroke: U.value.style.chart.box.stroke,
1273
- "stroke-width": U.value.style.chart.box.strokeWidth,
1274
- "stroke-linejoin": "round",
1275
- "stroke-linecap": "round",
1276
- fill: "none"
1277
- }, null, 8, Ye),
1278
- C("path", {
1279
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1280
- d: Y.value.left,
1281
- stroke: U.value.style.chart.box.stroke,
1282
- "stroke-width": U.value.style.chart.box.strokeWidth,
1283
- "stroke-linejoin": "round",
1284
- "stroke-linecap": "round",
1285
- fill: "none"
1286
- }, null, 8, Xe),
1287
- C("path", {
1288
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1289
- d: Y.value.side,
1290
- stroke: U.value.style.chart.box.stroke,
1291
- "stroke-width": U.value.style.chart.box.strokeWidth,
1292
- "stroke-linejoin": "round",
1293
- "stroke-linecap": "round",
1294
- fill: "none"
1295
- }, null, 8, Ze),
1296
- C("path", {
1297
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1298
- d: Y.value.topSides,
1299
- stroke: U.value.style.chart.box.stroke,
1300
- "stroke-width": U.value.style.chart.box.strokeWidth,
1301
- "stroke-linejoin": "round",
1302
- "stroke-linecap": "round",
1303
- fill: "none"
1304
- }, null, 8, Qe)
1305
- ])),
1306
- K.value ? x("", !0) : (k(), S("g", $e, [
1307
- C("path", {
1308
- d: Un.value.right,
1309
- stroke: U.value.style.chart.bar.stroke,
1310
- "stroke-width": U.value.style.chart.bar.strokeWidth,
1311
- "stroke-linejoin": "round",
1312
- "stroke-linecap": "round",
1313
- fill: `url(#gradient_right${L.value})`
1314
- }, null, 8, et),
1315
- C("path", {
1316
- d: Un.value.left,
1317
- stroke: U.value.style.chart.bar.stroke,
1318
- "stroke-width": U.value.style.chart.bar.strokeWidth,
1319
- "stroke-linejoin": "round",
1320
- "stroke-linecap": "round",
1321
- fill: `url(#gradient_left${L.value})`
1322
- }, null, 8, tt),
1323
- C("path", {
1324
- d: Un.value.top,
1325
- stroke: U.value.style.chart.bar.stroke,
1326
- "stroke-width": U.value.style.chart.bar.strokeWidth,
1327
- "stroke-linejoin": "round",
1328
- "stroke-linecap": "round",
1329
- fill: `url(#gradient_top${L.value})`
1330
- }, null, 8, nt)
1331
- ])),
1332
- K.value ? (k(), S("g", rt, [
1333
- (k(!0), S(v, null, j(J.value, (e, t) => (k(), S("g", {
1334
- style: O(`opacity:${X.value ? X.value === e.id ? 1 : .3 : 1}`),
1335
- class: "vue-ui-3d-bar-stack",
1336
- role: "img",
1337
- "aria-label": dr(e)
1338
- }, [
1339
- C("path", {
1340
- d: e.fill.right,
1341
- fill: `url(#grad_right_${e.id})`,
1342
- onMouseenter: (t) => Z(e),
1343
- onClick: (t) => Z(e, !0),
1344
- onMouseout: (t) => Q(e)
1345
- }, null, 40, at),
1346
- C("path", {
1347
- d: e.fill.left,
1348
- fill: `url(#grad_left_${e.id})`,
1349
- onMouseenter: (t) => Z(e),
1350
- onClick: (t) => Z(e, !0),
1351
- onMouseout: (t) => Q(e)
1352
- }, null, 40, ot),
1353
- C("path", {
1354
- d: e.fill.top,
1355
- fill: `url(#grad_top_${e.id})`,
1356
- onMouseenter: (t) => Z(e),
1357
- onClick: (t) => Z(e, !0),
1358
- onMouseout: (t) => Q(e)
1359
- }, null, 40, st),
1360
- C("path", {
1361
- d: e.fill.liningTop,
1362
- stroke: "#FFFFFF",
1363
- "stroke-width": "0.5",
1364
- "stroke-linecap": "round",
1365
- fill: "none",
1366
- onMouseenter: (t) => Z(e),
1367
- onClick: (t) => Z(e, !0),
1368
- onMouseout: (t) => Q(e)
1369
- }, null, 40, ct),
1370
- C("path", {
1371
- d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
1372
- stroke: "#FFFFFF",
1373
- "stroke-width": "0.5",
1374
- "stroke-linecap": "round"
1375
- }, null, 8, lt)
1376
- ], 12, it))), 256)),
1377
- (k(!0), S(v, null, j(J.value, (e, t) => (k(), S("g", null, [t === J.value.length - 1 ? x("", !0) : (k(), S("path", {
1378
- key: 0,
1379
- d: e.fill.liningTopShade,
1380
- stroke: U.value.style.chart.bar.shadeColor,
1381
- "stroke-width": "0.5",
1382
- "stroke-linecap": "round",
1383
- fill: "none",
1384
- style: { "pointer-events": "none" }
1385
- }, null, 8, ut))]))), 256)),
1386
- (k(!0), S(v, null, j(J.value, (t, n) => (k(), S("g", {
1387
- style: O(`opacity:${X.value ? +(X.value === t.id) : +(t.proportion * 100 > U.value.style.chart.legend.hideUnderPercentage)}`),
1388
- onClick: (e) => dn("selectDatapoint", t)
1389
- }, [
1390
- C("path", {
1391
- stroke: U.value.style.chart.color,
1392
- "stroke-dasharray": "1",
1393
- "stroke-width": "0.5",
1394
- "stroke-linecap": "round",
1395
- d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1396
- }, null, 8, ft),
1397
- !t.fill.miniDonut || X.value ? (k(), S("circle", {
1398
- key: 0,
1399
- cx: t.fill.sidePointer.x2,
1400
- cy: t.fill.sidePointer.y,
1401
- r: 2,
1402
- fill: t.color,
1403
- stroke: U.value.style.chart.backgroundColor
1404
- }, null, 8, pt)) : x("", !0),
1405
- P(Cn) ? (k(), S("rect", {
1406
- key: 1,
1407
- x: t.fill.sidePointer.xText,
1408
- y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize / 2,
1409
- width: q.value.width / 3,
1410
- height: U.value.style.chart.legend.fontSize,
1411
- fill: "#6A6A6A80",
1412
- rx: "3"
1413
- }, null, 8, mt)) : x("", !0),
1414
- P(Cn) ? x("", !0) : (k(), S("foreignObject", {
1415
- key: 2,
1416
- x: t.fill.sidePointer.xText,
1417
- y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize,
1418
- width: q.value.absoluteWidth / 3,
1419
- height: U.value.style.chart.legend.fontSize * 2,
1420
- style: {
1421
- overflow: "visible",
1422
- position: "relative"
1423
- }
1424
- }, [U.value.style.chart.legend.showDefault ? (k(), S("div", {
1425
- key: 0,
1426
- 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"}`)
1427
- }, N(P(ee)(U.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${P(c)({
1428
- v: t.proportion * 100,
1429
- s: "%",
1430
- r: U.value.style.chart.legend.roundingPercentage
1431
- })} (${P(c)({
1432
- p: U.value.style.chart.legend.prefix,
1433
- v: t.value,
1434
- s: U.value.style.chart.legend.suffix,
1435
- r: U.value.style.chart.legend.roundingValue
1436
- })})`, {
1437
- datapoint: t,
1438
- seriesIndex: n,
1439
- type: "barDatapoint"
1440
- })), 5)) : x("", !0), M(e.$slots, "legend", Te({ ref_for: !0 }, {
1441
- datapoint: t,
1442
- config: U.value,
1443
- dataset: J.value
1444
- }), void 0, !0)], 8, ht)),
1445
- t.fill.donut && X.value === t.id ? (k(), S("g", gt, [
1446
- (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", {
1447
- key: 0,
1448
- d: P(m)(e, {
1449
- x: e.cx,
1450
- y: e.cy
1451
- }, 0, 8, !1, !0, 10),
1452
- stroke: e.color,
1453
- class: "vue-ui-donut-arc-path",
1454
- "stroke-width": "0.5",
1455
- "stroke-linecap": "round",
1456
- "stroke-linejoin": "round",
1457
- fill: "none"
1458
- }, null, 8, _t)) : x("", !0)]))), 256)),
1459
- (k(!0), S(v, null, j(t.fill.donut, (e, t) => (k(), S("path", {
1460
- class: "vue-ui-donut-arc-path",
1461
- d: e.arcSlice,
1462
- fill: `${e.color}`,
1463
- stroke: U.value.style.chart.backgroundColor,
1464
- "stroke-width": 1
1465
- }, null, 8, vt))), 256)),
1466
- (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", {
1467
- "text-anchor": P(p)(e, !0, 0).anchor,
1468
- x: P(p)(e, !0, 2).x,
1469
- y: P(ne)(e, 12, 12),
1470
- fill: U.value.style.chart.legend.color,
1471
- "font-size": U.value.style.chart.legend.fontSize / 1.5,
1472
- "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1473
- }, N(P(ee)(U.value.style.chart.dataLabel.formatter, e.value, `${Wn(e, t.fill.donut)} (${P(c)({
1474
- p: U.value.style.chart.legend.prefix,
1475
- v: e.value,
1476
- s: U.value.style.chart.legend.suffix,
1477
- r: U.value.style.chart.legend.roundingValue
1478
- })})`, {
1479
- datapoint: e,
1480
- seriesIndex: n,
1481
- type: "donutDatapoint"
1482
- })), 9, bt), C("text", {
1483
- "text-anchor": P(p)(e).anchor,
1484
- x: P(p)(e, !0, 2).x,
1485
- y: P(ne)(e, 12, 12) + U.value.style.chart.legend.fontSize / 1.5,
1486
- fill: U.value.style.chart.legend.color,
1487
- "font-size": U.value.style.chart.legend.fontSize / 1.5,
1488
- "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1489
- }, N(e.name), 9, xt)])) : x("", !0)]))), 256))
1490
- ])) : x("", !0),
1491
- t.fill.miniDonut && !X.value ? (k(), S("g", St, [(k(!0), S(v, null, j(t.fill.miniDonut, (e, t) => (k(), S("path", {
1492
- class: "vue-ui-donut-arc-path",
1493
- d: e.arcSlice,
1494
- fill: `${e.color}`,
1495
- stroke: U.value.style.chart.backgroundColor,
1496
- "stroke-width": .5
1497
- }, null, 8, Ct))), 256))])) : x("", !0)
1498
- ], 12, dt))), 256))
1499
- ])) : x("", !0)
1500
- ])) : x("", !0),
1501
- U.value.style.shape === "tube" ? (k(), S("g", wt, [K.value ? x("", !0) : (k(), S("g", Tt, [
1502
- C("path", {
1503
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1504
- d: Y.value.tubeTop,
1505
- stroke: U.value.style.chart.box.stroke,
1506
- "stroke-width": U.value.style.chart.box.strokeWidth,
1507
- "stroke-linejoin": "round",
1508
- "stroke-linecap": "round",
1509
- fill: "none"
1510
- }, null, 8, Et),
1511
- C("path", {
1512
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1513
- d: Y.value.tubeLeft,
1514
- stroke: U.value.style.chart.box.stroke,
1515
- "stroke-width": U.value.style.chart.box.strokeWidth,
1516
- "stroke-linejoin": "round",
1517
- "stroke-linecap": "round",
1518
- fill: "none"
1519
- }, null, 8, Dt),
1520
- C("path", {
1521
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1522
- d: Y.value.tubeRight,
1523
- stroke: U.value.style.chart.box.stroke,
1524
- "stroke-width": U.value.style.chart.box.strokeWidth,
1525
- "stroke-linejoin": "round",
1526
- "stroke-linecap": "round",
1527
- fill: "none"
1528
- }, null, 8, Ot),
1529
- C("path", {
1530
- "stroke-dasharray": U.value.style.chart.box.strokeDasharray,
1531
- d: Y.value.tubeBottom,
1532
- stroke: U.value.style.chart.box.stroke,
1533
- "stroke-width": U.value.style.chart.box.strokeWidth,
1534
- "stroke-linejoin": "round",
1535
- "stroke-linecap": "round",
1536
- fill: "none"
1537
- }, null, 8, kt),
1538
- C("path", {
1539
- d: Un.value.tubeTop,
1540
- stroke: U.value.style.chart.bar.stroke,
1541
- "stroke-width": U.value.style.chart.bar.strokeWidth,
1542
- "stroke-linejoin": "round",
1543
- "stroke-linecap": "round",
1544
- fill: `url(#gradient_tube_top${L.value})`
1545
- }, null, 8, At),
1546
- C("path", {
1547
- d: Un.value.tubeBody,
1548
- stroke: U.value.style.chart.bar.stroke,
1549
- "stroke-width": U.value.style.chart.bar.strokeWidth,
1550
- "stroke-linejoin": "round",
1551
- "stroke-linecap": "round",
1552
- fill: `url(#gradient_tube_body${L.value})`
1553
- }, null, 8, jt),
1554
- C("path", {
1555
- d: Un.value.tubeTop,
1556
- stroke: "#FFFFFF",
1557
- "stroke-width": .5,
1558
- "stroke-linejoin": "round",
1559
- "stroke-linecap": "round",
1560
- fill: "none"
1561
- }, null, 8, Mt)
1562
- ])), K.value ? (k(), S("g", Nt, [(k(!0), S(v, null, j(J.value, (e, t) => (k(), S("g", {
1563
- style: O(`opacity:${X.value ? X.value === e.id ? 1 : .3 : 1}`),
1564
- class: "vue-ui-3d-bar-stack",
1565
- role: "img",
1566
- "aria-label": dr(e)
1567
- }, [
1568
- C("defs", null, [w(_, {
1569
- t: "radial",
1570
- id: `gradient_tube_top_${e.id}`,
1571
- fx: "10%",
1572
- cy: "55%",
1573
- stops: [[
1574
- "0%",
1575
- P(s)(P(g)(e.color, .5), 80),
1576
- 1
1577
- ], [
1578
- "100%",
1579
- P(s)(P(l)(e.color, .1), 80),
1580
- 1
1581
- ]]
1582
- }, null, 8, ["id", "stops"]), w(_, {
1583
- t: "linear",
1584
- id: `gradient_tube_body_${e.id}`,
1585
- x1: "0%",
1586
- y1: "0%",
1587
- x2: "100%",
1588
- y2: "0%",
1589
- stops: [
1590
- [
1591
- "0%",
1592
- e.color,
1593
- 1
1594
- ],
1595
- [
1596
- "10%",
1597
- P(s)(P(l)(e.color, .7), 100),
1598
- 1
1599
- ],
1600
- [
1601
- "25%",
1602
- P(s)(P(l)(e.color, .5), 100),
1603
- 1
1604
- ],
1605
- [
1606
- "75%",
1607
- P(s)(e.color, 80),
1608
- 1
1609
- ],
1610
- [
1611
- "100%",
1612
- P(s)(P(g)(e.color, .7), 100),
1613
- 1
1614
- ]
1615
- ]
1616
- }, null, 8, ["id", "stops"])]),
1617
- C("path", {
1618
- onMouseenter: (t) => Z(e),
1619
- onClick: (t) => Z(e, !0),
1620
- onMouseout: (t) => Q(e),
1621
- d: e.fill.tubeBody,
1622
- stroke: "#FFFFFF",
1623
- "stroke-width": .5,
1624
- "stroke-linejoin": "round",
1625
- "stroke-linecap": "round",
1626
- fill: `url(#gradient_tube_body_${e.id})`
1627
- }, null, 40, Ft),
1628
- t > 0 ? (k(), S("path", {
1629
- key: 0,
1630
- onMouseenter: (t) => Z(e),
1631
- onClick: (t) => Z(e, !0),
1632
- onMouseout: (t) => Q(e),
1633
- d: e.fill.bottomTubeTop,
1634
- stroke: "#000000",
1635
- "stroke-width": .5,
1636
- "stroke-linejoin": "round",
1637
- "stroke-linecap": "round",
1638
- fill: "none"
1639
- }, null, 40, It)) : x("", !0),
1640
- C("path", {
1641
- onMouseenter: (t) => Z(e),
1642
- onClick: (t) => Z(e, !0),
1643
- onMouseout: (t) => Q(e),
1644
- d: e.fill.tubeTop,
1645
- stroke: "#FFFFFF",
1646
- "stroke-width": .5,
1647
- "stroke-linejoin": "round",
1648
- "stroke-linecap": "round",
1649
- fill: `url(#gradient_tube_top_${e.id})`
1650
- }, null, 40, Lt)
1651
- ], 12, Pt))), 256)), (k(!0), S(v, null, j(J.value, (t, n) => (k(), S("g", {
1652
- style: O(`opacity:${X.value ? +(X.value === t.id) : +(t.proportion * 100 > U.value.style.chart.legend.hideUnderPercentage)}`),
1653
- onClick: (e) => dn("selectDatapoint", t)
1654
- }, [
1655
- C("path", {
1656
- stroke: U.value.style.chart.color,
1657
- "stroke-dasharray": "1",
1658
- "stroke-width": "0.5",
1659
- "stroke-linecap": "round",
1660
- d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1661
- }, null, 8, zt),
1662
- !t.fill.miniDonut || X.value ? (k(), S("circle", {
1663
- key: 0,
1664
- cx: t.fill.sidePointer.x2,
1665
- cy: t.fill.sidePointer.y,
1666
- r: 2,
1667
- fill: t.color,
1668
- stroke: U.value.style.chart.backgroundColor
1669
- }, null, 8, Bt)) : x("", !0),
1670
- P(Cn) ? (k(), S("rect", {
1671
- key: 1,
1672
- x: t.fill.sidePointer.xText,
1673
- y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize / 2,
1674
- width: q.value.width / 3,
1675
- height: U.value.style.chart.legend.fontSize,
1676
- fill: "#6A6A6A80",
1677
- rx: "3"
1678
- }, null, 8, Vt)) : x("", !0),
1679
- P(Cn) ? x("", !0) : (k(), S("foreignObject", {
1680
- key: 2,
1681
- x: t.fill.sidePointer.xText,
1682
- y: t.fill.sidePointer.y - U.value.style.chart.legend.fontSize,
1683
- width: q.value.absoluteWidth / 3,
1684
- height: U.value.style.chart.legend.fontSize * 2,
1685
- style: {
1686
- overflow: "visible",
1687
- position: "relative"
1688
- }
1689
- }, [U.value.style.chart.legend.showDefault ? (k(), S("div", {
1690
- key: 0,
1691
- 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"}`)
1692
- }, N(P(ee)(U.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${P(c)({
1693
- v: t.proportion * 100,
1694
- s: "%",
1695
- r: U.value.style.chart.legend.roundingPercentage
1696
- })} (${P(c)({
1697
- p: U.value.style.chart.legend.prefix,
1698
- v: t.value,
1699
- s: U.value.style.chart.legend.suffix,
1700
- r: U.value.style.chart.legend.roundingValue
1701
- })})`, {
1702
- datapoint: t,
1703
- seriesIndex: n,
1704
- type: "barDatapoint"
1705
- })), 5)) : x("", !0), M(e.$slots, "legend", Te({ ref_for: !0 }, {
1706
- datapoint: t,
1707
- config: U.value,
1708
- dataset: J.value
1709
- }), void 0, !0)], 8, Ht)),
1710
- t.fill.donut && X.value === t.id ? (k(), S("g", Ut, [
1711
- (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", {
1712
- key: 0,
1713
- d: P(m)(e, {
1714
- x: e.cx,
1715
- y: e.cy
1716
- }, 0, 8, !1, !0, 10),
1717
- stroke: e.color,
1718
- class: "vue-ui-donut-arc-path",
1719
- "stroke-width": "0.5",
1720
- "stroke-linecap": "round",
1721
- "stroke-linejoin": "round",
1722
- fill: "none"
1723
- }, null, 8, Wt)) : x("", !0)]))), 256)),
1724
- (k(!0), S(v, null, j(t.fill.donut, (e, t) => (k(), S("path", {
1725
- class: "vue-ui-donut-arc-path",
1726
- d: e.arcSlice,
1727
- fill: `${e.color}`,
1728
- stroke: U.value.style.chart.backgroundColor,
1729
- "stroke-width": 1
1730
- }, null, 8, Gt))), 256)),
1731
- (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", {
1732
- "text-anchor": P(p)(e, !0, 0).anchor,
1733
- x: P(p)(e, !0, 2).x,
1734
- y: P(ne)(e, 12, 12),
1735
- fill: U.value.style.chart.legend.color,
1736
- "font-size": U.value.style.chart.legend.fontSize / 1.5,
1737
- "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1738
- }, N(P(ee)(U.value.style.chart.dataLabel.formatter, e.value, `${Wn(e, t.fill.donut)} (${P(c)({
1739
- p: U.value.style.chart.legend.prefix,
1740
- v: e.value,
1741
- s: U.value.style.chart.legend.suffix,
1742
- r: U.value.style.chart.legend.roundingValue
1743
- })})`, {
1744
- datapoint: e,
1745
- seriesIndex: n,
1746
- type: "donutDatapoint"
1747
- })), 9, qt), C("text", {
1748
- "text-anchor": P(p)(e).anchor,
1749
- x: P(p)(e, !0, 2).x,
1750
- y: P(ne)(e, 12, 12) + U.value.style.chart.legend.fontSize / 1.5,
1751
- fill: U.value.style.chart.legend.color,
1752
- "font-size": U.value.style.chart.legend.fontSize / 1.5,
1753
- "font-weight": U.value.style.chart.legend.bold ? "bold" : "normal"
1754
- }, N(e.name), 9, Jt)])) : x("", !0)]))), 256))
1755
- ])) : x("", !0),
1756
- t.fill.miniDonut && !X.value ? (k(), S("g", Yt, [(k(!0), S(v, null, j(t.fill.miniDonut, (e, t) => (k(), S("path", {
1757
- class: "vue-ui-donut-arc-path",
1758
- d: e.arcSlice,
1759
- fill: `${e.color}`,
1760
- stroke: U.value.style.chart.backgroundColor,
1761
- "stroke-width": .5
1762
- }, null, 8, Xt))), 256))])) : x("", !0)
1763
- ], 12, Rt))), 256))])) : x("", !0)])) : x("", !0),
1764
- M(e.$slots, "svg", { svg: {
1765
- ...q.value,
1766
- isPrintingImg: P(kn) || P(An) || P(ar),
1767
- isPrintingSvg: P(or)
1768
- } }, void 0, !0)
1769
- ], 46, ze))]),
1770
- 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),
1771
- e.$slots.source ? (k(), S("div", {
1772
- key: 5,
1773
- ref_key: "source",
1774
- ref: vn,
1775
- dir: "auto"
1776
- }, [M(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
1777
- fn.value && K.value && U.value.userOptions.buttons.table ? (k(), b(ke(tr.value.component), Te({ key: 6 }, tr.value.props, {
1778
- ref_key: "tableUnit",
1779
- ref: yn,
1780
- onClose: nr
1781
- }), Ce({
1782
- content: F(() => [(k(), b(P(nn), {
1783
- key: `table_${mn.value}`,
1784
- colNames: $.value.colNames,
1785
- head: $.value.head,
1786
- body: $.value.body,
1787
- config: $.value.config,
1788
- title: U.value.table.useDialog ? "" : tr.value.title,
1789
- withCloseButton: !U.value.table.useDialog,
1790
- isCursorPointer: xn.value,
1791
- onClose: nr
1792
- }, {
1793
- th: F(({ th: e }) => [e === "__SUM__" ? (k(), S("div", Qt, [w(P(en), {
1794
- name: "sigma",
1795
- stroke: $.value.config.th.color,
1796
- size: 16
1797
- }, null, 8, ["stroke"])])) : (k(), S("div", $t, N(e), 1))]),
1798
- td: F(({ td: e }) => [we(N(e.name || e), 1)]),
1799
- _: 1
1800
- }, 8, [
1801
- "colNames",
1802
- "head",
1803
- "body",
1804
- "config",
1805
- "title",
1806
- "withCloseButton",
1807
- "isCursorPointer"
1808
- ]))]),
1809
- _: 2
1810
- }, [U.value.table.useDialog ? {
1811
- name: "title",
1812
- fn: F(() => [we(N(tr.value.title), 1)]),
1813
- key: "0"
1814
- } : void 0, U.value.table.useDialog ? {
1815
- name: "actions",
1816
- fn: F(() => [C("button", {
1817
- tabindex: "0",
1818
- class: "vue-ui-user-options-button",
1819
- onClick: t[7] ||= (e) => Xn(U.value.userOptions.callbacks.csv)
1820
- }, [w(P(en), {
1821
- name: "fileCsv",
1822
- stroke: tr.value.props.color
1823
- }, null, 8, ["stroke"])])]),
1824
- key: "1"
1825
- } : void 0]), 1040)) : x("", !0),
1826
- M(e.$slots, "skeleton", {}, () => [P(Cn) ? (k(), b(ue, { key: 0 })) : x("", !0)], !0)
1827
- ], 44, Fe));
1828
- }
1829
- }, [["__scopeId", "data-v-5d870803"]]);
1830
- //#endregion
1831
- export { Pe as n, en as t };