vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,1824 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, C as n, Dt as r, E as i, Gt as a, J as o, K as s, Nt as c, Ot as l, Q as u, Y as d, d as f, et as p, f as m, ft as h, i as g, m as ee, qt as te, t as ne, x as re, y as ie, zt as _ } from "./lib-CFm_J26b.js";
3
- import { t as ae } from "./useConfig-C0V0eG7L.js";
4
- import { t as oe } from "./usePrinter-BH-xle1O.js";
5
- import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as le } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as ue } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as de } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as fe } from "./img-Bikk1dGb.js";
10
- import { n as pe } from "./Title-BuPs74IB.js";
11
- import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
13
- import { t as v } from "./DefGrad-DVBqDjhO.js";
14
- import { t as _e } from "./A11yDataTable-DdRsVULz.js";
15
- import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as be } 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 xe, createTextVNode as Se, createVNode as T, defineAsyncComponent as E, guardReactiveProps as D, mergeProps as Ce, nextTick as we, normalizeClass as Te, normalizeProps as O, normalizeStyle as k, onMounted as Ee, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as De, toDisplayString as P, toRefs as Oe, unref as F, watch as ke, withCtx as I, withKeys as Ae, withModifiers as je } from "vue";
19
- //#region src/components/vue-ui-3d-bar.vue
20
- var Me = /* @__PURE__ */ e({ default: () => Zt }), 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 = { key: 1 }, Be = [
28
- "x",
29
- "y",
30
- "font-size",
31
- "font-weight",
32
- "fill"
33
- ], Ve = ["x", "y"], He = [
34
- "cx",
35
- "cy",
36
- "stroke",
37
- "opacity"
38
- ], Ue = ["d", "stroke"], We = ["d", "stroke"], Ge = { key: 4 }, Ke = { key: 0 }, qe = [
39
- "stroke-dasharray",
40
- "d",
41
- "stroke",
42
- "stroke-width"
43
- ], Je = [
44
- "stroke-dasharray",
45
- "d",
46
- "stroke",
47
- "stroke-width"
48
- ], Ye = [
49
- "stroke-dasharray",
50
- "d",
51
- "stroke",
52
- "stroke-width"
53
- ], Xe = [
54
- "stroke-dasharray",
55
- "d",
56
- "stroke",
57
- "stroke-width"
58
- ], Ze = { key: 1 }, Qe = [
59
- "d",
60
- "stroke",
61
- "stroke-width",
62
- "fill"
63
- ], $e = [
64
- "d",
65
- "stroke",
66
- "stroke-width",
67
- "fill"
68
- ], et = [
69
- "d",
70
- "stroke",
71
- "stroke-width",
72
- "fill"
73
- ], tt = { key: 2 }, nt = ["aria-label"], rt = [
74
- "d",
75
- "fill",
76
- "onMouseenter",
77
- "onClick",
78
- "onMouseout"
79
- ], it = [
80
- "d",
81
- "fill",
82
- "onMouseenter",
83
- "onClick",
84
- "onMouseout"
85
- ], at = [
86
- "d",
87
- "fill",
88
- "onMouseenter",
89
- "onClick",
90
- "onMouseout"
91
- ], ot = [
92
- "d",
93
- "onMouseenter",
94
- "onClick",
95
- "onMouseout"
96
- ], st = ["d"], ct = ["d", "stroke"], lt = ["onClick"], ut = ["stroke", "d"], dt = [
97
- "cx",
98
- "cy",
99
- "fill",
100
- "stroke"
101
- ], ft = [
102
- "x",
103
- "y",
104
- "width",
105
- "height"
106
- ], pt = [
107
- "x",
108
- "y",
109
- "width",
110
- "height"
111
- ], mt = { key: 3 }, ht = ["d", "stroke"], gt = [
112
- "d",
113
- "fill",
114
- "stroke"
115
- ], _t = { key: 0 }, vt = [
116
- "text-anchor",
117
- "x",
118
- "y",
119
- "fill",
120
- "font-size",
121
- "font-weight"
122
- ], yt = [
123
- "text-anchor",
124
- "x",
125
- "y",
126
- "fill",
127
- "font-size",
128
- "font-weight"
129
- ], bt = { key: 4 }, xt = [
130
- "d",
131
- "fill",
132
- "stroke"
133
- ], St = { key: 5 }, Ct = { key: 0 }, wt = [
134
- "stroke-dasharray",
135
- "d",
136
- "stroke",
137
- "stroke-width"
138
- ], Tt = [
139
- "stroke-dasharray",
140
- "d",
141
- "stroke",
142
- "stroke-width"
143
- ], Et = [
144
- "stroke-dasharray",
145
- "d",
146
- "stroke",
147
- "stroke-width"
148
- ], Dt = [
149
- "stroke-dasharray",
150
- "d",
151
- "stroke",
152
- "stroke-width"
153
- ], Ot = [
154
- "d",
155
- "stroke",
156
- "stroke-width",
157
- "fill"
158
- ], kt = [
159
- "d",
160
- "stroke",
161
- "stroke-width",
162
- "fill"
163
- ], At = ["d"], jt = { key: 1 }, Mt = ["aria-label"], Nt = [
164
- "onMouseenter",
165
- "onClick",
166
- "onMouseout",
167
- "d",
168
- "fill"
169
- ], Pt = [
170
- "onMouseenter",
171
- "onClick",
172
- "onMouseout",
173
- "d"
174
- ], Ft = [
175
- "onMouseenter",
176
- "onClick",
177
- "onMouseout",
178
- "d",
179
- "fill"
180
- ], It = ["onClick"], Lt = ["stroke", "d"], Rt = [
181
- "cx",
182
- "cy",
183
- "fill",
184
- "stroke"
185
- ], zt = [
186
- "x",
187
- "y",
188
- "width",
189
- "height"
190
- ], Bt = [
191
- "x",
192
- "y",
193
- "width",
194
- "height"
195
- ], Vt = { key: 3 }, Ht = ["d", "stroke"], Ut = [
196
- "d",
197
- "fill",
198
- "stroke"
199
- ], Wt = { key: 0 }, Gt = [
200
- "text-anchor",
201
- "x",
202
- "y",
203
- "fill",
204
- "font-size",
205
- "font-weight"
206
- ], Kt = [
207
- "text-anchor",
208
- "x",
209
- "y",
210
- "fill",
211
- "font-size",
212
- "font-weight"
213
- ], qt = { key: 4 }, Jt = [
214
- "d",
215
- "fill",
216
- "stroke"
217
- ], Yt = {
218
- key: 4,
219
- class: "vue-data-ui-watermark"
220
- }, Xt = ["innerHTML"], Zt = /*#__PURE__*/ me({
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: me, emit: Me }) {
238
- let Zt = E(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Qt = E(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), $t = E(() => import("./DataTable-DzPEVvSo.js")), en = E(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), tn = E(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), nn = E(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), rn = E(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_3d_bar: an } = ae(), { isThemeValid: on, warnInvalidTheme: sn } = de(), L = e, cn = Me, ln = b(() => !!L.dataset && Object.keys(L.dataset).length), R = j(s()), z = j(null), B = j(!1), un = j(0), dn = j(0), fn = j(null), pn = j(null), mn = j(null), hn = j(null), V = j(!1), gn = j(null), _n = j(null), vn = j(!1), yn = j(!1), H = j(null), U = j(""), W = j(Dn()), bn = b(() => W.value.userOptions.useCursorPointer), xn = b(() => te({
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: W.value.skeletonConfig ?? {}
258
- })), { loading: Sn, FINAL_DATASET: G } = se({
259
- ...Oe(L),
260
- FINAL_CONFIG: W,
261
- prepareConfig: Dn,
262
- callback: () => {
263
- Promise.resolve().then(async () => {
264
- await we(), In();
265
- });
266
- },
267
- skeletonDataset: L.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: te({
303
- defaultConfig: W.value,
304
- userConfig: xn.value
305
- })
306
- }), { userOptionsVisible: Cn, setUserOptionsVisibility: wn, keepUserOptionState: Tn } = ve({ config: W.value }), { svgRef: En } = ye({ config: W.value.style.chart.title });
307
- function Dn() {
308
- let e = ue({
309
- userConfig: L.config,
310
- defaultConfig: an
311
- }), t = e.theme;
312
- if (!t) return e;
313
- if (!on.value(e)) return sn(e), e;
314
- let n = ue({
315
- userConfig: be[t] || L.config,
316
- defaultConfig: e
317
- }), r = ue({
318
- userConfig: L.config,
319
- defaultConfig: n
320
- });
321
- return {
322
- ...r,
323
- customPalette: r.customPalette.length ? r.customPalette : a[t] || c
324
- };
325
- }
326
- ke(() => L.config, (e) => {
327
- Sn.value || (W.value = Dn()), Cn.value = !W.value.userOptions.showOnChartHover, Rn(), un.value += 1, dn.value += 1, K.value.showTable = W.value.table.show;
328
- }, { deep: !0 });
329
- let { isPrinting: On, isImaging: kn, generatePdf: An, generateImage: jn } = oe({
330
- elementId: `3d_bar_${R.value}`,
331
- fileName: W.value.style.chart.title.text || "vue-ui-3d-bar",
332
- options: W.value.userOptions.print
333
- }), Mn = b(() => n(W.value.customPalette)), K = j({ showTable: W.value.table.show });
334
- ke(W, () => {
335
- K.value = { showTable: W.value.table.show };
336
- }, { immediate: !0 });
337
- let q = b(() => G.value.series && G.value.series.length), Nn = j(W.value.style.chart.box.dimensions.width * (q.value ? 2 : 1)), Pn = j(W.value.style.chart.box.dimensions.height), J = b(() => ({
338
- height: Pn.value,
339
- width: Nn.value,
340
- absoluteWidth: Nn.value,
341
- top: W.value.style.chart.box.dimensions.top,
342
- bottom: W.value.style.chart.box.dimensions.bottom,
343
- left: W.value.style.chart.box.dimensions.left,
344
- right: W.value.style.chart.box.dimensions.right,
345
- perspective: W.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: s(),
352
- proportion: (t.value || 0) / e,
353
- color: re(t.color) || Mn.value[n] || c[n] || c[n % c.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: Bn(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
- }), Fn = j(W.value.style.chart.animation.use ? 0 : G.value.percentage);
376
- function In() {
377
- let e = 0, t = W.value.style.chart.animation.speed, n = .005 * W.value.style.chart.animation.acceleration;
378
- function r() {
379
- Fn.value += t + e, e += n, Fn.value < G.value.percentage ? requestAnimationFrame(r) : Fn.value = G.value.percentage;
380
- }
381
- W.value.style.chart.animation.use && (Fn.value = 0, r());
382
- }
383
- Ee(() => {
384
- Rn(), In();
385
- });
386
- let Ln = b(() => !!W.value.debug);
387
- function Rn() {
388
- if (t(L.dataset) ? p({
389
- componentName: "VueUi3dBar",
390
- type: "dataset",
391
- debug: Ln.value
392
- }) : L.dataset.series ? L.dataset.series.forEach((e, t) => {
393
- h({
394
- datasetObject: e,
395
- requiredAttributes: ["name", "value"]
396
- }).forEach((e) => {
397
- p({
398
- componentName: "VueUi3dBar",
399
- type: "datasetSerieAttribute",
400
- property: e,
401
- index: t,
402
- debug: Ln.value
403
- });
404
- }), e.breakdown && e.breakdown.forEach((e, n) => {
405
- h({
406
- datasetObject: e,
407
- requiredAttributes: ["name", "value"]
408
- }).forEach((e) => {
409
- p({
410
- componentName: "VueUi3dBar",
411
- type: "datasetSerieAttribute",
412
- property: e,
413
- index: `${t} - ${n}`,
414
- debug: Ln.value
415
- });
416
- });
417
- });
418
- }) : h({
419
- datasetObject: L.dataset,
420
- requiredAttributes: ["percentage"]
421
- }).forEach((e) => {
422
- p({
423
- componentName: "VueUi3dBar",
424
- type: "datasetAttribute",
425
- property: e,
426
- debug: Ln.value
427
- });
428
- }), W.value.responsive) {
429
- let e = he(() => {
430
- let { width: e, height: t } = ge({
431
- chart: z.value,
432
- title: W.value.style.chart.title.text ? fn.value : null,
433
- source: hn.value
434
- });
435
- requestAnimationFrame(() => {
436
- Pn.value = t - 12, Nn.value = e;
437
- });
438
- });
439
- pn.value && (mn.value && pn.value.unobserve(mn.value), pn.value.disconnect()), pn.value = new ResizeObserver(e), mn.value = z.value.parentNode, pn.value.observe(mn.value);
440
- }
441
- }
442
- let zn = b(() => J.value.width / 4);
443
- function Bn(e, t, n, i) {
444
- let a = J.value.height - J.value.bottom - J.value.top - J.value.perspective * 2, { width: o, height: s, bottom: c, right: u, left: d, perspective: f } = J.value, p = q.value ? o / 4 : o / 2, m = p * 2 + d, h = c + a * e, g = s - h - f - a * t / 2, ee = g > J.value.height / 2 ? "top" : "bottom", te = s * .25, ne = !!n, re = null, ie = null;
445
- return ne && (n = n.map((e, t) => ({
446
- ...e,
447
- value: e.value || 0,
448
- color: r(i, t / n.length)
449
- })), re = l({ series: n }, o / 2 + o / 5, ee === "top" ? g - te : g + te, o / 10, o / 10, 1.99999, 2, 1, 360, 105.25, o / 20), ie = l({ series: n }, o - m + o / 14, s - h - f - a * t / 2, o / 40, o / 40, 1.99999, 2, 1, 360, 105.25, o / 40)), {
450
- donut: re,
451
- miniDonut: ie,
452
- donutR: o / 20,
453
- CENTER_X: p,
454
- sidePointer: {
455
- x: o - m,
456
- x2: o - m + o / 14,
457
- xText: o - m + o / 9,
458
- y: s - h - f - a * t / 2,
459
- topY: s - h - f - a * t,
460
- height: a * t
461
- },
462
- apexBottom: {
463
- y: s - h,
464
- x: p
465
- },
466
- apexTop: {
467
- y: s - h - a * t,
468
- x: p
469
- },
470
- right: `M${p},${s - h} ${p},${s - h - a * t} ${o - m},${s - h - f - a * t} ${o - m},${s - h - f}Z`,
471
- left: `M${p},${s - h} ${p},${s - h - a * t} ${d}, ${s - h - f - a * t} ${d},${s - h - f}Z`,
472
- liningTop: `M${d},${s - h - f - a * t} ${p},${s - h - a * t} ${o - m},${s - h - f - a * t}`,
473
- liningTopShade: `M${d},${s - h - f - a * t - .5} ${p},${s - h - a * t - .5} ${o - m},${s - h - f - a * t - .5}`,
474
- top: `M${p},${s - h - a * t} ${d},${s - h - f - a * t} ${p},${s - h - f * 2 - a * t} ${o - m},${s - h - f - a * t} Z`,
475
- tubeTop: `M${d},${s - h - a * t - f} C ${d},${s - h - a * t - f * 2.5} ${o - m},${s - h - a * t - f * 2.5} ${o - m},${s - h - a * t - f} C ${o - m},${s - h - a * t + f / 2} ${d},${s - h - a * t + f / 2} ${d},${s - h - a * t - f}`,
476
- bottomTubeTop: `M ${o - m - .5},${s - h - f} C ${o - m - .5},${s - h + f / 2} ${d},${s - h + f / 2} ${d + .5},${s - h - f}`,
477
- tubeBody: `M
478
- ${d},${s - h - a * t - f}
479
- C ${d},${s - h - a * t + f / 2}
480
- ${o - m},${s - h - a * t + f / 2}
481
- ${o - m},${s - h - a * t - f}
482
- L${o - m},${s - h - f}
483
- C
484
- ${o - m},${s - h + f / 2}
485
- ${d},${s - h + f / 2}
486
- ${d},${s - h - f}Z`
487
- };
488
- }
489
- let Vn = b(() => {
490
- let e = ie(Fn.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 = j(null);
508
- function Q(e, t = !1) {
509
- W.value.events.datapointEnter && !t && W.value.events.datapointEnter({
510
- datapoint: e,
511
- seriesIndex: e.seriesIndex
512
- }), W.value.events.datapointClick && t && W.value.events.datapointClick({
513
- datapoint: e,
514
- seriesIndex: e.seriesIndex
515
- }), cn("selectDatapoint", e);
516
- let n = Y.value?.findIndex((t) => t.id === e.id) ?? null;
517
- n !== null && n !== -1 && (H.value = n, U.value = lr(e)), t || (Z.value = e.id), t && B.value && (B.value = !1), t && !B.value && (B.value = !0);
518
- }
519
- function $(e) {
520
- W.value.events.datapointLeave && W.value.events.datapointLeave({
521
- datapoint: e,
522
- seriesIndex: e.seriesIndex
523
- }), !B.value && (Z.value = null, H.value = null, U.value = "");
524
- }
525
- function Hn(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 / Un(t)) ? 0 : e.value / Un(t) * 100;
527
- return n ? a : i.toFixed(0) + "%";
528
- }
529
- function Un(e) {
530
- return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
531
- }
532
- let Wn = j(!1);
533
- function Gn(e) {
534
- Wn.value = e;
535
- }
536
- function Kn() {
537
- return q.value ? Y.value : G.value.percentage;
538
- }
539
- let qn = 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 Jn(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 = qn.value.head.map((e, n) => [
559
- [e.name],
560
- [qn.value.body[n]],
561
- [isNaN(qn.value.body[n] / t) ? "-" : qn.value.body[n] / t * 100]
562
- ]), r = i([
563
- [W.value.style.chart.title.text],
564
- [W.value.style.chart.title.subtitle.text],
565
- [
566
- [""],
567
- ["val"],
568
- ["%"]
569
- ]
570
- ].concat(n));
571
- e ? e(r) : u({
572
- csvContent: r,
573
- title: W.value.style.chart.title.text || "vue-ui-3d-bar"
574
- });
575
- });
576
- }
577
- let Yn = 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: W.value.table.th.backgroundColor,
586
- color: W.value.table.th.color,
587
- outline: W.value.table.th.outline
588
- },
589
- td: {
590
- backgroundColor: W.value.table.td.backgroundColor,
591
- color: W.value.table.td.color,
592
- outline: W.value.table.td.outline
593
- },
594
- breakpoint: W.value.table.responsiveBreakpoint,
595
- shape: W.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
- d({
601
- p: W.value.style.chart.legend.prefix,
602
- v: e,
603
- s: W.value.style.chart.legend.suffix,
604
- r: W.value.table.td.roundingValue
605
- }),
606
- "100%"
607
- ], n = qn.value.head.map((t, n) => {
608
- let r = qn.value.body[n];
609
- return [
610
- {
611
- color: t.color,
612
- name: t.name
613
- },
614
- d({
615
- p: W.value.style.chart.legend.prefix,
616
- v: r,
617
- s: W.value.style.chart.legend.suffix,
618
- r: W.value.table.td.roundingValue
619
- }),
620
- isNaN(r / e) ? "-" : d({
621
- v: r / e * 100,
622
- s: "%",
623
- r: W.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
- W.value.table.columnNames.series,
630
- W.value.table.columnNames.value,
631
- W.value.table.columnNames.percentage
632
- ],
633
- head: t,
634
- body: n,
635
- a11yBody: r,
636
- config: {
637
- th: {
638
- backgroundColor: W.value.table.th.backgroundColor,
639
- color: W.value.table.th.color,
640
- outline: W.value.table.th.outline
641
- },
642
- td: {
643
- backgroundColor: W.value.table.td.backgroundColor,
644
- color: W.value.table.td.color,
645
- outline: W.value.table.td.outline
646
- },
647
- breakpoint: W.value.table.responsiveBreakpoint,
648
- shape: W.value.style.shape === "tube" ? "circle" : "square"
649
- }
650
- };
651
- });
652
- function Xn() {
653
- K.value.showTable = !K.value.showTable;
654
- }
655
- let Zn = j(!1);
656
- function Qn() {
657
- Zn.value = !Zn.value;
658
- }
659
- async function $n({ scale: e = 2 } = {}) {
660
- if (!z.value) return;
661
- let { width: t, height: n } = z.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
662
- domElement: z.value,
663
- base64: !0,
664
- img: !0,
665
- scale: e
666
- });
667
- return {
668
- imageUri: i,
669
- base64: a,
670
- title: W.value.style.chart.title.text,
671
- width: t,
672
- height: n,
673
- aspectRatio: r
674
- };
675
- }
676
- let er = b(() => {
677
- let e = W.value.table.useDialog && !W.value.table.show, t = K.value.showTable;
678
- return {
679
- component: e ? rn : Qt,
680
- title: `${W.value.style.chart.title.text}${W.value.style.chart.title.subtitle.text ? `: ${W.value.style.chart.title.subtitle.text}` : ""}`,
681
- props: e ? {
682
- backgroundColor: W.value.table.th.backgroundColor,
683
- color: W.value.table.th.color,
684
- headerColor: W.value.table.th.color,
685
- headerBg: W.value.table.th.backgroundColor,
686
- isFullscreen: Wn.value,
687
- fullscreenParent: z.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: W.value.style.chart.backgroundColor,
696
- color: W.value.style.chart.color
697
- },
698
- head: {
699
- backgroundColor: W.value.style.chart.backgroundColor,
700
- color: W.value.style.chart.color
701
- }
702
- }
703
- }
704
- };
705
- });
706
- ke(() => K.value.showTable, (e) => {
707
- W.value.table.show || (e && W.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
708
- });
709
- function tr() {
710
- K.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
711
- }
712
- let nr = b(() => W.value.style.chart.backgroundColor), { exportSvg: rr, getSvg: ir } = le({
713
- svg: En,
714
- title: b(() => W.value.style.chart.title),
715
- backgroundColor: nr
716
- });
717
- async function ar({ isCb: e }) {
718
- vn.value = !0, await we();
719
- try {
720
- if (e) {
721
- let { blob: e, url: t, text: n, dataUrl: r } = await ir();
722
- await Promise.resolve(W.value.userOptions.callbacks.svg({
723
- blob: e,
724
- url: t,
725
- text: n,
726
- dataUrl: r
727
- }));
728
- } else await Promise.resolve(rr());
729
- } finally {
730
- vn.value = !1;
731
- }
732
- }
733
- function or(e) {
734
- if (e?.stage === "start") {
735
- yn.value = !0;
736
- return;
737
- }
738
- if (e?.stage === "end") {
739
- yn.value = !1;
740
- return;
741
- }
742
- jn();
743
- }
744
- async function sr() {
745
- if (cn("copyAlt", {
746
- config: W.value,
747
- dataset: G.value
748
- }), !W.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(W.value.userOptions.callbacks.altCopy({
753
- config: W.value,
754
- dataset: G.value
755
- }));
756
- }
757
- function cr() {
758
- H.value = null, U.value = "", B.value = !1, Z.value = null;
759
- }
760
- function lr(e) {
761
- if (!e) return "";
762
- let t = d({
763
- p: W.value.style.chart.legend.prefix,
764
- v: e.value,
765
- s: W.value.style.chart.legend.suffix,
766
- r: W.value.style.chart.legend.roundingValue
767
- }), n = d({
768
- v: e.proportion * 100,
769
- s: "%",
770
- r: W.value.style.chart.legend.roundingPercentage
771
- });
772
- return `${e.name}: ${t}, ${n}`;
773
- }
774
- function ur(e) {
775
- if (!q.value || !Y.value?.length) return;
776
- let t = Y.value[e];
777
- t && (H.value = e, Z.value = t.id, U.value = lr(t));
778
- }
779
- function dr() {
780
- V.value = !0, !(!q.value || !Y.value?.length) && H.value === null && ur(0);
781
- }
782
- function fr() {
783
- V.value = !1, B.value || (H.value = null, Z.value = null, U.value = "");
784
- }
785
- function pr(e) {
786
- if (!q.value || !Y.value?.length || !En.value || document.activeElement !== En.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
- cr();
791
- return;
792
- }
793
- if (r) {
794
- if (H.value === null) return;
795
- let e = Y.value[H.value];
796
- if (!e) return;
797
- Q(e, !0), U.value = `${lr(e)} selected`;
798
- return;
799
- }
800
- let a = H.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)), ur(a);
802
- }
803
- let mr = b(() => ({
804
- headers: Yn.value?.colNames ?? [],
805
- rows: Yn.value?.a11yBody ?? []
806
- }));
807
- return me({
808
- getImage: $n,
809
- generateCsv: Jn,
810
- generatePdf: An,
811
- generateImage: jn,
812
- generateSvg: ar,
813
- getData: Kn,
814
- toggleTable: Xn,
815
- toggleAnnotator: Qn,
816
- toggleFullscreen: Gn,
817
- copyAlt: sr
818
- }), (e, t) => (A(), C("div", {
819
- ref_key: "bar3dChart",
820
- ref: z,
821
- class: Te("vue-data-ui-component vue-ui-3d-bar"),
822
- style: k(`font-family:${W.value.style.fontFamily};width:100%; text-align:center;background:${W.value.style.chart.backgroundColor}`),
823
- id: `3d_bar_${R.value}`,
824
- onMouseenter: t[8] ||= () => F(wn)(!0),
825
- onMouseleave: t[9] ||= () => F(wn)(!1)
826
- }, [
827
- w("div", {
828
- id: `chart-instructions-${R.value}`,
829
- class: "sr-only"
830
- }, [w("p", null, P(W.value.a11y.translations.keyboardNavigation), 1)], 8, Pe),
831
- w("div", Fe, P(U.value), 1),
832
- mr.value?.rows?.length ? (A(), x(_e, {
833
- key: 0,
834
- uid: R.value,
835
- head: mr.value.headers,
836
- body: mr.value.rows,
837
- notice: W.value.a11y.translations.tableAvailable,
838
- caption: W.value.a11y.translations.tableCaption
839
- }, null, 8, [
840
- "uid",
841
- "head",
842
- "body",
843
- "notice",
844
- "caption"
845
- ])) : S("", !0),
846
- W.value.userOptions.buttons.annotator ? (A(), x(F(en), {
847
- key: 1,
848
- svgRef: F(En),
849
- backgroundColor: W.value.style.chart.backgroundColor,
850
- color: W.value.style.chart.color,
851
- active: Zn.value,
852
- isCursorPointer: bn.value,
853
- onClose: Qn
854
- }, {
855
- "annotator-action-close": I(() => [N(e.$slots, "annotator-action-close", {}, void 0, !0)]),
856
- "annotator-action-color": I(({ color: t }) => [N(e.$slots, "annotator-action-color", O(D({ color: t })), void 0, !0)]),
857
- "annotator-action-draw": I(({ mode: t }) => [N(e.$slots, "annotator-action-draw", O(D({ mode: t })), void 0, !0)]),
858
- "annotator-action-undo": I(({ disabled: t }) => [N(e.$slots, "annotator-action-undo", O(D({ disabled: t })), void 0, !0)]),
859
- "annotator-action-redo": I(({ disabled: t }) => [N(e.$slots, "annotator-action-redo", O(D({ disabled: t })), void 0, !0)]),
860
- "annotator-action-delete": I(({ disabled: t }) => [N(e.$slots, "annotator-action-delete", O(D({ disabled: t })), void 0, !0)]),
861
- _: 3
862
- }, 8, [
863
- "svgRef",
864
- "backgroundColor",
865
- "color",
866
- "active",
867
- "isCursorPointer"
868
- ])) : S("", !0),
869
- W.value.style.chart.title.text ? (A(), C("div", {
870
- key: 2,
871
- ref_key: "chartTitle",
872
- ref: fn,
873
- style: "width:100%;background:transparent"
874
- }, [(A(), x(pe, {
875
- key: `title_${un.value}`,
876
- config: {
877
- title: {
878
- cy: "3dBar-div-title",
879
- ...W.value.style.chart.title
880
- },
881
- subtitle: {
882
- cy: "3dBar-div-subtitle",
883
- ...W.value.style.chart.title.subtitle
884
- }
885
- }
886
- }, null, 8, ["config"]))], 512)) : S("", !0),
887
- W.value.userOptions.show && ln.value && (F(Tn) || F(Cn)) ? (A(), x(F(tn), {
888
- key: 3,
889
- ref_key: "userOptionsRef",
890
- ref: _n,
891
- backgroundColor: W.value.style.chart.backgroundColor,
892
- color: W.value.style.chart.color,
893
- isPrinting: F(On),
894
- isImaging: F(kn),
895
- uid: R.value,
896
- hasPdf: W.value.userOptions.buttons.pdf,
897
- hasTable: !!q.value && W.value.userOptions.buttons.table,
898
- hasXls: !!q.value && W.value.userOptions.buttons.csv,
899
- hasImg: W.value.userOptions.buttons.img,
900
- hasSvg: W.value.userOptions.buttons.svg,
901
- hasFullscreen: W.value.userOptions.buttons.fullscreen,
902
- hasAltCopy: W.value.userOptions.buttons.altCopy,
903
- titles: { ...W.value.userOptions.buttonTitles },
904
- chartElement: z.value,
905
- position: W.value.userOptions.position,
906
- hasAnnotator: W.value.userOptions.buttons.annotator,
907
- isAnnotation: Zn.value,
908
- callbacks: W.value.userOptions.callbacks,
909
- printScale: W.value.userOptions.print.scale,
910
- tableDialog: W.value.table.useDialog,
911
- isCursorPointer: bn.value,
912
- onToggleFullscreen: Gn,
913
- onGeneratePdf: F(An),
914
- onGenerateCsv: Jn,
915
- onGenerateImage: or,
916
- onGenerateSvg: ar,
917
- onToggleTable: Xn,
918
- onToggleAnnotator: Qn,
919
- onCopyAlt: sr,
920
- style: k({ visibility: F(Tn) ? F(Cn) ? "visible" : "hidden" : "visible" })
921
- }, xe({ _: 2 }, [
922
- e.$slots.menuIcon ? {
923
- name: "menuIcon",
924
- fn: I(({ isOpen: t, color: n }) => [N(e.$slots, "menuIcon", O(D({
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: I(() => [N(e.$slots, "optionPdf", {}, void 0, !0)]),
933
- key: "1"
934
- } : void 0,
935
- e.$slots.optionCsv ? {
936
- name: "optionCsv",
937
- fn: I(() => [N(e.$slots, "optionCsv", {}, void 0, !0)]),
938
- key: "2"
939
- } : void 0,
940
- e.$slots.optionImg ? {
941
- name: "optionImg",
942
- fn: I(() => [N(e.$slots, "optionImg", {}, void 0, !0)]),
943
- key: "3"
944
- } : void 0,
945
- e.$slots.optionSvg ? {
946
- name: "optionSvg",
947
- fn: I(() => [N(e.$slots, "optionSvg", {}, void 0, !0)]),
948
- key: "4"
949
- } : void 0,
950
- e.$slots.optionTable ? {
951
- name: "optionTable",
952
- fn: I(() => [N(e.$slots, "optionTable", {}, void 0, !0)]),
953
- key: "5"
954
- } : void 0,
955
- e.$slots.optionFullscreen ? {
956
- name: "optionFullscreen",
957
- fn: I(({ toggleFullscreen: t, isFullscreen: n }) => [N(e.$slots, "optionFullscreen", O(D({
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: I(({ toggleAnnotator: t, isAnnotator: n }) => [N(e.$slots, "optionAnnotator", O(D({
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: I(({ altCopy: t }) => [N(e.$slots, "optionAltCopy", O(D({ altCopy: t })), void 0, !0)]),
974
- key: "8"
975
- } : void 0,
976
- e.$slots["custom-menu-before"] ? {
977
- name: "custom-menu-before",
978
- fn: I(() => [N(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: I(() => [N(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, [(A(), C("svg", {
1012
- ref_key: "svgRef",
1013
- ref: En,
1014
- xmlns: F(ne),
1015
- class: Te({
1016
- "vue-data-ui-fullscreen--on": Wn.value,
1017
- "vue-data-ui-fulscreen--off": !Wn.value,
1018
- animated: W.value.useCssAnimation
1019
- }),
1020
- viewBox: `0 0 ${J.value.absoluteWidth} ${J.value.height}`,
1021
- style: k(`max-width:100%; overflow: visible; background:transparent;color:${W.value.style.chart.color}`),
1022
- tabindex: "0",
1023
- "aria-describedby": `chart-instructions-${R.value}`,
1024
- onFocus: dr,
1025
- onBlur: fr,
1026
- onKeydown: pr
1027
- }, [
1028
- T(F(nn)),
1029
- e.$slots["chart-background"] ? (A(), 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
- }, [N(e.$slots, "chart-background", {}, void 0, !0)], 8, Re)) : S("", !0),
1037
- w("defs", null, [
1038
- T(v, {
1039
- t: "radial",
1040
- id: `gradient_top${R.value}`,
1041
- stops: [[
1042
- "0%",
1043
- F(_)(W.value.style.chart.backgroundColor, 0),
1044
- 1
1045
- ], [
1046
- "100%",
1047
- W.value.style.chart.bar.color,
1048
- 1
1049
- ]]
1050
- }, null, 8, ["id", "stops"]),
1051
- T(v, {
1052
- t: "radial",
1053
- id: `gradient_tube_top${R.value}`,
1054
- stops: [[
1055
- "0%",
1056
- F(_)(F(r)(W.value.style.chart.bar.color, .5), 80),
1057
- 1
1058
- ], [
1059
- "100%",
1060
- F(_)(F(o)(W.value.style.chart.bar.color, .1), 80),
1061
- 1
1062
- ]]
1063
- }, null, 8, ["id", "stops"]),
1064
- T(v, {
1065
- t: "radial",
1066
- id: `gradient_left${R.value}`,
1067
- stops: [[
1068
- "0%",
1069
- F(_)(W.value.style.chart.backgroundColor, 0),
1070
- 1
1071
- ], [
1072
- "100%",
1073
- F(_)(W.value.style.chart.bar.color, 20),
1074
- 1
1075
- ]]
1076
- }, null, 8, ["id", "stops"]),
1077
- T(v, {
1078
- t: "radial",
1079
- id: `gradient_right${R.value}`,
1080
- stops: [[
1081
- "0%",
1082
- F(_)(W.value.style.chart.backgroundColor, 0),
1083
- 1
1084
- ], [
1085
- "100%",
1086
- F(_)(W.value.style.chart.bar.color, 20),
1087
- 1
1088
- ]]
1089
- }, null, 8, ["id", "stops"]),
1090
- T(v, {
1091
- t: "linear",
1092
- id: `gradient_tube_body${R.value}`,
1093
- x1: "0%",
1094
- y1: "0%",
1095
- x2: "100%",
1096
- y2: "0%",
1097
- stops: [
1098
- [
1099
- "0%",
1100
- W.value.style.chart.bar.color,
1101
- 1
1102
- ],
1103
- [
1104
- "10%",
1105
- F(_)(F(o)(W.value.style.chart.bar.color, .7), 100),
1106
- 1
1107
- ],
1108
- [
1109
- "25%",
1110
- F(_)(F(o)(W.value.style.chart.bar.color, .5), 100),
1111
- 1
1112
- ],
1113
- [
1114
- "75%",
1115
- F(_)(W.value.style.chart.bar.color, 80),
1116
- 1
1117
- ],
1118
- [
1119
- "100%",
1120
- F(_)(F(r)(W.value.style.chart.bar.color, .7), 100),
1121
- 1
1122
- ]
1123
- ]
1124
- }, null, 8, ["id", "stops"])
1125
- ]),
1126
- q.value ? (A(), C("defs", ze, [
1127
- (A(!0), C(y, null, M(Y.value, (e) => (A(), x(v, {
1128
- t: "radial",
1129
- id: `grad_top_${e.id}`,
1130
- key: `grad_top_${e.id}`,
1131
- stops: [[
1132
- "0%",
1133
- F(_)(F(r)(e.color, .5), 80),
1134
- 1
1135
- ], [
1136
- "100%",
1137
- e.color,
1138
- 1
1139
- ]]
1140
- }, null, 8, ["id", "stops"]))), 128)),
1141
- (A(!0), C(y, null, M(Y.value, (e) => (A(), x(v, {
1142
- t: "linear",
1143
- id: `grad_left_${e.id}`,
1144
- key: `grad_left_${e.id}`,
1145
- stops: [[
1146
- "0%",
1147
- F(_)(e.color, 80),
1148
- 1
1149
- ], [
1150
- "100%",
1151
- F(_)(F(o)(e.color, .5), 100),
1152
- 1
1153
- ]]
1154
- }, null, 8, ["id", "stops"]))), 128)),
1155
- (A(!0), C(y, null, M(Y.value, (e) => (A(), x(v, {
1156
- t: "linear",
1157
- id: `grad_right_${e.id}`,
1158
- key: `grad_right_${e.id}`,
1159
- stops: [[
1160
- "2%",
1161
- F(_)(F(r)(e.color, .5), 100),
1162
- 1
1163
- ], [
1164
- "100%",
1165
- F(_)(e.color, 80),
1166
- 1
1167
- ]]
1168
- }, null, 8, ["id", "stops"]))), 128)),
1169
- T(v, {
1170
- t: "linear",
1171
- x1: "0%",
1172
- y1: "0%",
1173
- x2: "0%",
1174
- y2: "100%",
1175
- id: `vertical_line_${R.value}`,
1176
- stops: [[
1177
- "0%",
1178
- "#FFFFFF",
1179
- 1
1180
- ], [
1181
- "100%",
1182
- "#FFFFFF33",
1183
- 1
1184
- ]]
1185
- }, null, 8, ["id"])
1186
- ])) : S("", !0),
1187
- W.value.style.chart.dataLabel.show && ![null, void 0].includes(F(G).percentage) && [null, void 0].includes(F(G).series) ? (A(), C("text", {
1188
- key: 2,
1189
- x: J.value.width / 2,
1190
- y: J.value.top - W.value.style.chart.dataLabel.fontSize / 2,
1191
- "font-size": W.value.style.chart.dataLabel.fontSize,
1192
- "font-weight": W.value.style.chart.dataLabel.bold ? "bold" : "normal",
1193
- fill: W.value.style.chart.dataLabel.color,
1194
- "text-anchor": "middle"
1195
- }, P(F(d)({
1196
- v: Fn.value,
1197
- s: "%",
1198
- r: W.value.style.chart.dataLabel.rounding
1199
- })), 9, Be)) : S("", !0),
1200
- B.value ? (A(), C("g", {
1201
- key: 3,
1202
- role: "button",
1203
- tabindex: "0",
1204
- "aria-label": "Clear selection",
1205
- onClick: t[0] ||= (e) => {
1206
- B.value = !1, Z.value = null;
1207
- },
1208
- onKeydown: [t[1] ||= Ae(je((e) => {
1209
- B.value = !1, Z.value = null;
1210
- }, ["prevent"]), ["enter"]), t[2] ||= Ae(je((e) => {
1211
- B.value = !1, Z.value = null;
1212
- }, ["prevent"]), ["space"])],
1213
- onFocus: t[3] ||= (e) => V.value = !0,
1214
- onBlur: t[4] ||= (e) => V.value = !1,
1215
- onMouseenter: t[5] ||= (e) => V.value = !0,
1216
- onMouseleave: t[6] ||= (e) => V.value = !1,
1217
- class: "svg-btn",
1218
- "data-dom-to-png-ignore": "",
1219
- style: k({
1220
- cursor: bn.value ? "pointer" : "default",
1221
- outline: "none"
1222
- })
1223
- }, [
1224
- t[10] ||= w("title", null, "Clear selection", -1),
1225
- w("rect", {
1226
- x: zn.value - 12,
1227
- y: J.value.top - 24,
1228
- width: 24,
1229
- height: 24,
1230
- fill: "transparent",
1231
- "pointer-events": "all"
1232
- }, null, 8, Ve),
1233
- w("circle", {
1234
- cx: zn.value,
1235
- cy: J.value.top - 12,
1236
- r: "10",
1237
- fill: "none",
1238
- stroke: W.value.style.chart.color,
1239
- "stroke-width": "2",
1240
- "vector-effect": "non-scaling-stroke",
1241
- opacity: V.value ? .5 : 0
1242
- }, null, 8, He),
1243
- w("path", {
1244
- d: `M${zn.value - 6},${J.value.top - 18} ${zn.value + 6},${J.value.top - 6}`,
1245
- stroke: W.value.style.chart.color,
1246
- "stroke-linecap": "round",
1247
- "stroke-width": "2",
1248
- "vector-effect": "non-scaling-stroke"
1249
- }, null, 8, Ue),
1250
- w("path", {
1251
- d: `M${zn.value + 6},${J.value.top - 18} ${zn.value - 6},${J.value.top - 6}`,
1252
- stroke: W.value.style.chart.color,
1253
- "stroke-linecap": "round",
1254
- "stroke-width": "2",
1255
- "vector-effect": "non-scaling-stroke"
1256
- }, null, 8, We)
1257
- ], 36)) : S("", !0),
1258
- !W.value.style.shape || W.value.style.shape === "bar" ? (A(), C("g", Ge, [
1259
- q.value ? S("", !0) : (A(), C("g", Ke, [
1260
- w("path", {
1261
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1262
- d: X.value.right,
1263
- stroke: W.value.style.chart.box.stroke,
1264
- "stroke-width": W.value.style.chart.box.strokeWidth,
1265
- "stroke-linejoin": "round",
1266
- "stroke-linecap": "round",
1267
- fill: "none"
1268
- }, null, 8, qe),
1269
- w("path", {
1270
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1271
- d: X.value.left,
1272
- stroke: W.value.style.chart.box.stroke,
1273
- "stroke-width": W.value.style.chart.box.strokeWidth,
1274
- "stroke-linejoin": "round",
1275
- "stroke-linecap": "round",
1276
- fill: "none"
1277
- }, null, 8, Je),
1278
- w("path", {
1279
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1280
- d: X.value.side,
1281
- stroke: W.value.style.chart.box.stroke,
1282
- "stroke-width": W.value.style.chart.box.strokeWidth,
1283
- "stroke-linejoin": "round",
1284
- "stroke-linecap": "round",
1285
- fill: "none"
1286
- }, null, 8, Ye),
1287
- w("path", {
1288
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1289
- d: X.value.topSides,
1290
- stroke: W.value.style.chart.box.stroke,
1291
- "stroke-width": W.value.style.chart.box.strokeWidth,
1292
- "stroke-linejoin": "round",
1293
- "stroke-linecap": "round",
1294
- fill: "none"
1295
- }, null, 8, Xe)
1296
- ])),
1297
- q.value ? S("", !0) : (A(), C("g", Ze, [
1298
- w("path", {
1299
- d: Vn.value.right,
1300
- stroke: W.value.style.chart.bar.stroke,
1301
- "stroke-width": W.value.style.chart.bar.strokeWidth,
1302
- "stroke-linejoin": "round",
1303
- "stroke-linecap": "round",
1304
- fill: `url(#gradient_right${R.value})`
1305
- }, null, 8, Qe),
1306
- w("path", {
1307
- d: Vn.value.left,
1308
- stroke: W.value.style.chart.bar.stroke,
1309
- "stroke-width": W.value.style.chart.bar.strokeWidth,
1310
- "stroke-linejoin": "round",
1311
- "stroke-linecap": "round",
1312
- fill: `url(#gradient_left${R.value})`
1313
- }, null, 8, $e),
1314
- w("path", {
1315
- d: Vn.value.top,
1316
- stroke: W.value.style.chart.bar.stroke,
1317
- "stroke-width": W.value.style.chart.bar.strokeWidth,
1318
- "stroke-linejoin": "round",
1319
- "stroke-linecap": "round",
1320
- fill: `url(#gradient_top${R.value})`
1321
- }, null, 8, et)
1322
- ])),
1323
- q.value ? (A(), C("g", tt, [
1324
- (A(!0), C(y, null, M(Y.value, (e, t) => (A(), C("g", {
1325
- style: k(`opacity:${Z.value ? Z.value === e.id ? 1 : .3 : 1}`),
1326
- class: "vue-ui-3d-bar-stack",
1327
- role: "img",
1328
- "aria-label": lr(e)
1329
- }, [
1330
- w("path", {
1331
- d: e.fill.right,
1332
- fill: `url(#grad_right_${e.id})`,
1333
- onMouseenter: (t) => Q(e),
1334
- onClick: (t) => Q(e, !0),
1335
- onMouseout: (t) => $(e)
1336
- }, null, 40, rt),
1337
- w("path", {
1338
- d: e.fill.left,
1339
- fill: `url(#grad_left_${e.id})`,
1340
- onMouseenter: (t) => Q(e),
1341
- onClick: (t) => Q(e, !0),
1342
- onMouseout: (t) => $(e)
1343
- }, null, 40, it),
1344
- w("path", {
1345
- d: e.fill.top,
1346
- fill: `url(#grad_top_${e.id})`,
1347
- onMouseenter: (t) => Q(e),
1348
- onClick: (t) => Q(e, !0),
1349
- onMouseout: (t) => $(e)
1350
- }, null, 40, at),
1351
- w("path", {
1352
- d: e.fill.liningTop,
1353
- stroke: "#FFFFFF",
1354
- "stroke-width": "0.5",
1355
- "stroke-linecap": "round",
1356
- fill: "none",
1357
- onMouseenter: (t) => Q(e),
1358
- onClick: (t) => Q(e, !0),
1359
- onMouseout: (t) => $(e)
1360
- }, null, 40, ot),
1361
- w("path", {
1362
- d: `M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,
1363
- stroke: "#FFFFFF",
1364
- "stroke-width": "0.5",
1365
- "stroke-linecap": "round"
1366
- }, null, 8, st)
1367
- ], 12, nt))), 256)),
1368
- (A(!0), C(y, null, M(Y.value, (e, t) => (A(), C("g", null, [t === Y.value.length - 1 ? S("", !0) : (A(), C("path", {
1369
- key: 0,
1370
- d: e.fill.liningTopShade,
1371
- stroke: W.value.style.chart.bar.shadeColor,
1372
- "stroke-width": "0.5",
1373
- "stroke-linecap": "round",
1374
- fill: "none",
1375
- style: { "pointer-events": "none" }
1376
- }, null, 8, ct))]))), 256)),
1377
- (A(!0), C(y, null, M(Y.value, (t, n) => (A(), C("g", {
1378
- style: k(`opacity:${Z.value ? +(Z.value === t.id) : +(t.proportion * 100 > W.value.style.chart.legend.hideUnderPercentage)}`),
1379
- onClick: (e) => cn("selectDatapoint", t)
1380
- }, [
1381
- w("path", {
1382
- stroke: W.value.style.chart.color,
1383
- "stroke-dasharray": "1",
1384
- "stroke-width": "0.5",
1385
- "stroke-linecap": "round",
1386
- d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1387
- }, null, 8, ut),
1388
- !t.fill.miniDonut || Z.value ? (A(), C("circle", {
1389
- key: 0,
1390
- cx: t.fill.sidePointer.x2,
1391
- cy: t.fill.sidePointer.y,
1392
- r: 2,
1393
- fill: t.color,
1394
- stroke: W.value.style.chart.backgroundColor
1395
- }, null, 8, dt)) : S("", !0),
1396
- F(Sn) ? (A(), C("rect", {
1397
- key: 1,
1398
- x: t.fill.sidePointer.xText,
1399
- y: t.fill.sidePointer.y - W.value.style.chart.legend.fontSize / 2,
1400
- width: J.value.width / 3,
1401
- height: W.value.style.chart.legend.fontSize,
1402
- fill: "#6A6A6A80",
1403
- rx: "3"
1404
- }, null, 8, ft)) : S("", !0),
1405
- F(Sn) ? S("", !0) : (A(), C("foreignObject", {
1406
- key: 2,
1407
- x: t.fill.sidePointer.xText,
1408
- y: t.fill.sidePointer.y - W.value.style.chart.legend.fontSize,
1409
- width: J.value.absoluteWidth / 3,
1410
- height: W.value.style.chart.legend.fontSize * 2,
1411
- style: {
1412
- overflow: "visible",
1413
- position: "relative"
1414
- }
1415
- }, [W.value.style.chart.legend.showDefault ? (A(), C("div", {
1416
- key: 0,
1417
- style: k(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${W.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${W.value.style.chart.legend.fontSize}px; color:${W.value.style.chart.legend.color}; font-weight:${W.value.style.chart.legend.bold ? "bold" : "normal"}`)
1418
- }, P(F(g)(W.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${F(d)({
1419
- v: t.proportion * 100,
1420
- s: "%",
1421
- r: W.value.style.chart.legend.roundingPercentage
1422
- })} (${F(d)({
1423
- p: W.value.style.chart.legend.prefix,
1424
- v: t.value,
1425
- s: W.value.style.chart.legend.suffix,
1426
- r: W.value.style.chart.legend.roundingValue
1427
- })})`, {
1428
- datapoint: t,
1429
- seriesIndex: n,
1430
- type: "barDatapoint"
1431
- })), 5)) : S("", !0), N(e.$slots, "legend", Ce({ ref_for: !0 }, {
1432
- datapoint: t,
1433
- config: W.value,
1434
- dataset: Y.value
1435
- }), void 0, !0)], 8, pt)),
1436
- t.fill.donut && Z.value === t.id ? (A(), C("g", mt, [
1437
- (A(!0), C(y, null, M(t.fill.donut, (e, n) => (A(), C("g", null, [Hn(e, t.fill.donut, !0) > 6 ? (A(), C("path", {
1438
- key: 0,
1439
- d: F(ee)(e, {
1440
- x: e.cx,
1441
- y: e.cy
1442
- }, 0, 8, !1, !0, 10),
1443
- stroke: e.color,
1444
- class: "vue-ui-donut-arc-path",
1445
- "stroke-width": "0.5",
1446
- "stroke-linecap": "round",
1447
- "stroke-linejoin": "round",
1448
- fill: "none"
1449
- }, null, 8, ht)) : S("", !0)]))), 256)),
1450
- (A(!0), C(y, null, M(t.fill.donut, (e, t) => (A(), C("path", {
1451
- class: "vue-ui-donut-arc-path",
1452
- d: e.arcSlice,
1453
- fill: `${e.color}`,
1454
- stroke: W.value.style.chart.backgroundColor,
1455
- "stroke-width": 1
1456
- }, null, 8, gt))), 256)),
1457
- (A(!0), C(y, null, M(t.fill.donut, (e, n) => (A(), C("g", null, [Hn(e, t.fill.donut, !0) > 6 ? (A(), C("g", _t, [w("text", {
1458
- "text-anchor": F(f)(e, !0, 0).anchor,
1459
- x: F(f)(e, !0, 2).x,
1460
- y: F(m)(e, 12, 12),
1461
- fill: W.value.style.chart.legend.color,
1462
- "font-size": W.value.style.chart.legend.fontSize / 1.5,
1463
- "font-weight": W.value.style.chart.legend.bold ? "bold" : "normal"
1464
- }, P(F(g)(W.value.style.chart.dataLabel.formatter, e.value, `${Hn(e, t.fill.donut)} (${F(d)({
1465
- p: W.value.style.chart.legend.prefix,
1466
- v: e.value,
1467
- s: W.value.style.chart.legend.suffix,
1468
- r: W.value.style.chart.legend.roundingValue
1469
- })})`, {
1470
- datapoint: e,
1471
- seriesIndex: n,
1472
- type: "donutDatapoint"
1473
- })), 9, vt), w("text", {
1474
- "text-anchor": F(f)(e).anchor,
1475
- x: F(f)(e, !0, 2).x,
1476
- y: F(m)(e, 12, 12) + W.value.style.chart.legend.fontSize / 1.5,
1477
- fill: W.value.style.chart.legend.color,
1478
- "font-size": W.value.style.chart.legend.fontSize / 1.5,
1479
- "font-weight": W.value.style.chart.legend.bold ? "bold" : "normal"
1480
- }, P(e.name), 9, yt)])) : S("", !0)]))), 256))
1481
- ])) : S("", !0),
1482
- t.fill.miniDonut && !Z.value ? (A(), C("g", bt, [(A(!0), C(y, null, M(t.fill.miniDonut, (e, t) => (A(), C("path", {
1483
- class: "vue-ui-donut-arc-path",
1484
- d: e.arcSlice,
1485
- fill: `${e.color}`,
1486
- stroke: W.value.style.chart.backgroundColor,
1487
- "stroke-width": .5
1488
- }, null, 8, xt))), 256))])) : S("", !0)
1489
- ], 12, lt))), 256))
1490
- ])) : S("", !0)
1491
- ])) : S("", !0),
1492
- W.value.style.shape === "tube" ? (A(), C("g", St, [q.value ? S("", !0) : (A(), C("g", Ct, [
1493
- w("path", {
1494
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1495
- d: X.value.tubeTop,
1496
- stroke: W.value.style.chart.box.stroke,
1497
- "stroke-width": W.value.style.chart.box.strokeWidth,
1498
- "stroke-linejoin": "round",
1499
- "stroke-linecap": "round",
1500
- fill: "none"
1501
- }, null, 8, wt),
1502
- w("path", {
1503
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1504
- d: X.value.tubeLeft,
1505
- stroke: W.value.style.chart.box.stroke,
1506
- "stroke-width": W.value.style.chart.box.strokeWidth,
1507
- "stroke-linejoin": "round",
1508
- "stroke-linecap": "round",
1509
- fill: "none"
1510
- }, null, 8, Tt),
1511
- w("path", {
1512
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1513
- d: X.value.tubeRight,
1514
- stroke: W.value.style.chart.box.stroke,
1515
- "stroke-width": W.value.style.chart.box.strokeWidth,
1516
- "stroke-linejoin": "round",
1517
- "stroke-linecap": "round",
1518
- fill: "none"
1519
- }, null, 8, Et),
1520
- w("path", {
1521
- "stroke-dasharray": W.value.style.chart.box.strokeDasharray,
1522
- d: X.value.tubeBottom,
1523
- stroke: W.value.style.chart.box.stroke,
1524
- "stroke-width": W.value.style.chart.box.strokeWidth,
1525
- "stroke-linejoin": "round",
1526
- "stroke-linecap": "round",
1527
- fill: "none"
1528
- }, null, 8, Dt),
1529
- w("path", {
1530
- d: Vn.value.tubeTop,
1531
- stroke: W.value.style.chart.bar.stroke,
1532
- "stroke-width": W.value.style.chart.bar.strokeWidth,
1533
- "stroke-linejoin": "round",
1534
- "stroke-linecap": "round",
1535
- fill: `url(#gradient_tube_top${R.value})`
1536
- }, null, 8, Ot),
1537
- w("path", {
1538
- d: Vn.value.tubeBody,
1539
- stroke: W.value.style.chart.bar.stroke,
1540
- "stroke-width": W.value.style.chart.bar.strokeWidth,
1541
- "stroke-linejoin": "round",
1542
- "stroke-linecap": "round",
1543
- fill: `url(#gradient_tube_body${R.value})`
1544
- }, null, 8, kt),
1545
- w("path", {
1546
- d: Vn.value.tubeTop,
1547
- stroke: "#FFFFFF",
1548
- "stroke-width": .5,
1549
- "stroke-linejoin": "round",
1550
- "stroke-linecap": "round",
1551
- fill: "none"
1552
- }, null, 8, At)
1553
- ])), q.value ? (A(), C("g", jt, [(A(!0), C(y, null, M(Y.value, (e, t) => (A(), C("g", {
1554
- style: k(`opacity:${Z.value ? Z.value === e.id ? 1 : .3 : 1}`),
1555
- class: "vue-ui-3d-bar-stack",
1556
- role: "img",
1557
- "aria-label": lr(e)
1558
- }, [
1559
- w("defs", null, [T(v, {
1560
- t: "radial",
1561
- id: `gradient_tube_top_${e.id}`,
1562
- fx: "10%",
1563
- cy: "55%",
1564
- stops: [[
1565
- "0%",
1566
- F(_)(F(r)(e.color, .5), 80),
1567
- 1
1568
- ], [
1569
- "100%",
1570
- F(_)(F(o)(e.color, .1), 80),
1571
- 1
1572
- ]]
1573
- }, null, 8, ["id", "stops"]), T(v, {
1574
- t: "linear",
1575
- id: `gradient_tube_body_${e.id}`,
1576
- x1: "0%",
1577
- y1: "0%",
1578
- x2: "100%",
1579
- y2: "0%",
1580
- stops: [
1581
- [
1582
- "0%",
1583
- e.color,
1584
- 1
1585
- ],
1586
- [
1587
- "10%",
1588
- F(_)(F(o)(e.color, .7), 100),
1589
- 1
1590
- ],
1591
- [
1592
- "25%",
1593
- F(_)(F(o)(e.color, .5), 100),
1594
- 1
1595
- ],
1596
- [
1597
- "75%",
1598
- F(_)(e.color, 80),
1599
- 1
1600
- ],
1601
- [
1602
- "100%",
1603
- F(_)(F(r)(e.color, .7), 100),
1604
- 1
1605
- ]
1606
- ]
1607
- }, null, 8, ["id", "stops"])]),
1608
- w("path", {
1609
- onMouseenter: (t) => Q(e),
1610
- onClick: (t) => Q(e, !0),
1611
- onMouseout: (t) => $(e),
1612
- d: e.fill.tubeBody,
1613
- stroke: "#FFFFFF",
1614
- "stroke-width": .5,
1615
- "stroke-linejoin": "round",
1616
- "stroke-linecap": "round",
1617
- fill: `url(#gradient_tube_body_${e.id})`
1618
- }, null, 40, Nt),
1619
- t > 0 ? (A(), C("path", {
1620
- key: 0,
1621
- onMouseenter: (t) => Q(e),
1622
- onClick: (t) => Q(e, !0),
1623
- onMouseout: (t) => $(e),
1624
- d: e.fill.bottomTubeTop,
1625
- stroke: "#000000",
1626
- "stroke-width": .5,
1627
- "stroke-linejoin": "round",
1628
- "stroke-linecap": "round",
1629
- fill: "none"
1630
- }, null, 40, Pt)) : S("", !0),
1631
- w("path", {
1632
- onMouseenter: (t) => Q(e),
1633
- onClick: (t) => Q(e, !0),
1634
- onMouseout: (t) => $(e),
1635
- d: e.fill.tubeTop,
1636
- stroke: "#FFFFFF",
1637
- "stroke-width": .5,
1638
- "stroke-linejoin": "round",
1639
- "stroke-linecap": "round",
1640
- fill: `url(#gradient_tube_top_${e.id})`
1641
- }, null, 40, Ft)
1642
- ], 12, Mt))), 256)), (A(!0), C(y, null, M(Y.value, (t, n) => (A(), C("g", {
1643
- style: k(`opacity:${Z.value ? +(Z.value === t.id) : +(t.proportion * 100 > W.value.style.chart.legend.hideUnderPercentage)}`),
1644
- onClick: (e) => cn("selectDatapoint", t)
1645
- }, [
1646
- w("path", {
1647
- stroke: W.value.style.chart.color,
1648
- "stroke-dasharray": "1",
1649
- "stroke-width": "0.5",
1650
- "stroke-linecap": "round",
1651
- d: `M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`
1652
- }, null, 8, Lt),
1653
- !t.fill.miniDonut || Z.value ? (A(), C("circle", {
1654
- key: 0,
1655
- cx: t.fill.sidePointer.x2,
1656
- cy: t.fill.sidePointer.y,
1657
- r: 2,
1658
- fill: t.color,
1659
- stroke: W.value.style.chart.backgroundColor
1660
- }, null, 8, Rt)) : S("", !0),
1661
- F(Sn) ? (A(), C("rect", {
1662
- key: 1,
1663
- x: t.fill.sidePointer.xText,
1664
- y: t.fill.sidePointer.y - W.value.style.chart.legend.fontSize / 2,
1665
- width: J.value.width / 3,
1666
- height: W.value.style.chart.legend.fontSize,
1667
- fill: "#6A6A6A80",
1668
- rx: "3"
1669
- }, null, 8, zt)) : S("", !0),
1670
- F(Sn) ? S("", !0) : (A(), C("foreignObject", {
1671
- key: 2,
1672
- x: t.fill.sidePointer.xText,
1673
- y: t.fill.sidePointer.y - W.value.style.chart.legend.fontSize,
1674
- width: J.value.absoluteWidth / 3,
1675
- height: W.value.style.chart.legend.fontSize * 2,
1676
- style: {
1677
- overflow: "visible",
1678
- position: "relative"
1679
- }
1680
- }, [W.value.style.chart.legend.showDefault ? (A(), C("div", {
1681
- key: 0,
1682
- style: k(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${W.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${W.value.style.chart.legend.fontSize}px; color:${W.value.style.chart.legend.color};font-weight:${W.value.style.chart.legend.bold ? "bold" : "normal"}`)
1683
- }, P(F(g)(W.value.style.chart.dataLabel.formatter, t.value, `${t.name}: ${F(d)({
1684
- v: t.proportion * 100,
1685
- s: "%",
1686
- r: W.value.style.chart.legend.roundingPercentage
1687
- })} (${F(d)({
1688
- p: W.value.style.chart.legend.prefix,
1689
- v: t.value,
1690
- s: W.value.style.chart.legend.suffix,
1691
- r: W.value.style.chart.legend.roundingValue
1692
- })})`, {
1693
- datapoint: t,
1694
- seriesIndex: n,
1695
- type: "barDatapoint"
1696
- })), 5)) : S("", !0), N(e.$slots, "legend", Ce({ ref_for: !0 }, {
1697
- datapoint: t,
1698
- config: W.value,
1699
- dataset: Y.value
1700
- }), void 0, !0)], 8, Bt)),
1701
- t.fill.donut && Z.value === t.id ? (A(), C("g", Vt, [
1702
- (A(!0), C(y, null, M(t.fill.donut, (e, n) => (A(), C("g", null, [Hn(e, t.fill.donut, !0) > 6 ? (A(), C("path", {
1703
- key: 0,
1704
- d: F(ee)(e, {
1705
- x: e.cx,
1706
- y: e.cy
1707
- }, 0, 8, !1, !0, 10),
1708
- stroke: e.color,
1709
- class: "vue-ui-donut-arc-path",
1710
- "stroke-width": "0.5",
1711
- "stroke-linecap": "round",
1712
- "stroke-linejoin": "round",
1713
- fill: "none"
1714
- }, null, 8, Ht)) : S("", !0)]))), 256)),
1715
- (A(!0), C(y, null, M(t.fill.donut, (e, t) => (A(), C("path", {
1716
- class: "vue-ui-donut-arc-path",
1717
- d: e.arcSlice,
1718
- fill: `${e.color}`,
1719
- stroke: W.value.style.chart.backgroundColor,
1720
- "stroke-width": 1
1721
- }, null, 8, Ut))), 256)),
1722
- (A(!0), C(y, null, M(t.fill.donut, (e, n) => (A(), C("g", null, [Hn(e, t.fill.donut, !0) > 6 ? (A(), C("g", Wt, [w("text", {
1723
- "text-anchor": F(f)(e, !0, 0).anchor,
1724
- x: F(f)(e, !0, 2).x,
1725
- y: F(m)(e, 12, 12),
1726
- fill: W.value.style.chart.legend.color,
1727
- "font-size": W.value.style.chart.legend.fontSize / 1.5,
1728
- "font-weight": W.value.style.chart.legend.bold ? "bold" : "normal"
1729
- }, P(F(g)(W.value.style.chart.dataLabel.formatter, e.value, `${Hn(e, t.fill.donut)} (${F(d)({
1730
- p: W.value.style.chart.legend.prefix,
1731
- v: e.value,
1732
- s: W.value.style.chart.legend.suffix,
1733
- r: W.value.style.chart.legend.roundingValue
1734
- })})`, {
1735
- datapoint: e,
1736
- seriesIndex: n,
1737
- type: "donutDatapoint"
1738
- })), 9, Gt), w("text", {
1739
- "text-anchor": F(f)(e).anchor,
1740
- x: F(f)(e, !0, 2).x,
1741
- y: F(m)(e, 12, 12) + W.value.style.chart.legend.fontSize / 1.5,
1742
- fill: W.value.style.chart.legend.color,
1743
- "font-size": W.value.style.chart.legend.fontSize / 1.5,
1744
- "font-weight": W.value.style.chart.legend.bold ? "bold" : "normal"
1745
- }, P(e.name), 9, Kt)])) : S("", !0)]))), 256))
1746
- ])) : S("", !0),
1747
- t.fill.miniDonut && !Z.value ? (A(), C("g", qt, [(A(!0), C(y, null, M(t.fill.miniDonut, (e, t) => (A(), C("path", {
1748
- class: "vue-ui-donut-arc-path",
1749
- d: e.arcSlice,
1750
- fill: `${e.color}`,
1751
- stroke: W.value.style.chart.backgroundColor,
1752
- "stroke-width": .5
1753
- }, null, 8, Jt))), 256))])) : S("", !0)
1754
- ], 12, It))), 256))])) : S("", !0)])) : S("", !0),
1755
- N(e.$slots, "svg", { svg: {
1756
- ...J.value,
1757
- isPrintingImg: F(On) || F(kn) || yn.value,
1758
- isPrintingSvg: vn.value
1759
- } }, void 0, !0)
1760
- ], 46, Le))]),
1761
- e.$slots.watermark ? (A(), C("div", Yt, [N(e.$slots, "watermark", O(D({ isPrinting: F(On) || F(kn) || vn.value || yn.value })), void 0, !0)])) : S("", !0),
1762
- e.$slots.source ? (A(), C("div", {
1763
- key: 5,
1764
- ref_key: "source",
1765
- ref: hn,
1766
- dir: "auto"
1767
- }, [N(e.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
1768
- ln.value && q.value && W.value.userOptions.buttons.table ? (A(), x(De(er.value.component), Ce({ key: 6 }, er.value.props, {
1769
- ref_key: "tableUnit",
1770
- ref: gn,
1771
- onClose: tr
1772
- }), xe({
1773
- content: I(() => [(A(), x(F($t), {
1774
- key: `table_${dn.value}`,
1775
- colNames: Yn.value.colNames,
1776
- head: Yn.value.head,
1777
- body: Yn.value.body,
1778
- config: Yn.value.config,
1779
- title: W.value.table.useDialog ? "" : er.value.title,
1780
- withCloseButton: !W.value.table.useDialog,
1781
- isCursorPointer: bn.value,
1782
- onClose: tr
1783
- }, {
1784
- th: I(({ th: e }) => [w("div", {
1785
- innerHTML: e,
1786
- style: {
1787
- display: "flex",
1788
- "align-items": "center"
1789
- }
1790
- }, null, 8, Xt)]),
1791
- td: I(({ td: e }) => [Se(P(e.name || e), 1)]),
1792
- _: 1
1793
- }, 8, [
1794
- "colNames",
1795
- "head",
1796
- "body",
1797
- "config",
1798
- "title",
1799
- "withCloseButton",
1800
- "isCursorPointer"
1801
- ]))]),
1802
- _: 2
1803
- }, [W.value.table.useDialog ? {
1804
- name: "title",
1805
- fn: I(() => [Se(P(er.value.title), 1)]),
1806
- key: "0"
1807
- } : void 0, W.value.table.useDialog ? {
1808
- name: "actions",
1809
- fn: I(() => [w("button", {
1810
- tabindex: "0",
1811
- class: "vue-ui-user-options-button",
1812
- onClick: t[7] ||= (e) => Jn(W.value.userOptions.callbacks.csv)
1813
- }, [T(F(Zt), {
1814
- name: "fileCsv",
1815
- stroke: er.value.props.color
1816
- }, null, 8, ["stroke"])])]),
1817
- key: "1"
1818
- } : void 0]), 1040)) : S("", !0),
1819
- N(e.$slots, "skeleton", {}, () => [F(Sn) ? (A(), x(ce, { key: 0 })) : S("", !0)], !0)
1820
- ], 44, Ne));
1821
- }
1822
- }, [["__scopeId", "data-v-319486f5"]]);
1823
- //#endregion
1824
- export { Me as n, Zt as t };