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