vue-data-ui 3.23.8 → 3.23.10

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