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