vue-data-ui 3.6.0 → 3.7.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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +1 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  105. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  106. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  113. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  114. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  115. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  116. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  119. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  123. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  124. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  125. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  129. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  132. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  133. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  134. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  138. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  139. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  141. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  143. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  144. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  149. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  151. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  152. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  155. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  156. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
  158. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,1832 +0,0 @@
1
- import { defineAsyncComponent as j, useSlots as Cl, computed as g, ref as d, onMounted as na, toRefs as Ml, watch as Me, shallowRef as ia, onBeforeUnmount as yt, watchEffect as ua, nextTick as _l, createElementBlock as n, openBlock as o, normalizeStyle as ne, normalizeClass as he, createBlock as ee, createCommentVNode as f, renderSlot as w, createElementVNode as te, createVNode as _e, unref as m, withCtx as S, normalizeProps as B, guardReactiveProps as H, createSlots as gt, Fragment as x, renderList as L, mergeProps as Te, toDisplayString as E, Teleport as Tl, resolveDynamicComponent as $l, createTextVNode as ca } from "vue";
2
- import { u as Al, a as va } from "./useNestedProp-CIoDlpHu.js";
3
- import { c as ha, t as Pl, b as Nl, p as He, O as de, e as Ol, o as da, f as ya, g as Rl, h as Il, aj as $e, n as ga, m as fa, v as Fl, X as Dl, S as Vl, r as ie, J as ba, a as ye, d as ae, M as El, $ as Ul, G as ma, P as Bl, Q as Hl, H as Xl } from "./lib-C_mNZmhD.js";
4
- import { t as ft, u as Yl } from "./useResponsive-DfdjqQps.js";
5
- import { u as Wl } from "./usePrinter-DTzqpYKF.js";
6
- import { u as Gl, B as ql } from "./BaseScanner-BgWxam9d.js";
7
- import { u as pa, a as Jl, l as Zl } from "./useTimeLabels-BGFjWgrv.js";
8
- import { u as Ql } from "./useSvgExport-DrjCWun4.js";
9
- import { u as Kl } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as jl } from "./useChartAccessibility-9icAAmYg.js";
11
- import { u as er } from "./useTimeLabelCollider-CIsgDrl9.js";
12
- import tr from "./img-BecE5qXd.js";
13
- import ar from "./Title-Bb1VWCtR.js";
14
- import { _ as lr } from "./Shape-CNXKB8O0.js";
15
- import { t as rr } from "./themes-DH-N_ePR.js";
16
- import sr from "./Legend-D9ZTJKjh.js";
17
- import { S as or } from "./SlicerPreview-wXjV4LWO.js";
18
- import { _ as nr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
19
- const ir = ["id"], ur = ["id"], cr = ["xmlns", "viewBox"], vr = ["x", "y", "width", "height"], hr = { key: 1 }, dr = ["id"], yr = ["stop-color"], gr = ["stop-color"], fr = ["stop-color"], br = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], mr = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pr = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], xr = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], kr = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], wr = { key: 0 }, Lr = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Sr = { key: 0 }, zr = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Cr = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Mr = { key: 0 }, _r = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Tr = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $r = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ar = ["x", "y", "font-size", "fill", "font-weight"], Pr = ["transform", "font-size", "fill", "font-weight"], Nr = ["x", "y", "font-size", "fill", "font-weight"], Or = ["x", "y", "font-size", "font-weight", "fill"], Rr = ["x", "y", "font-size", "fill", "font-weight"], Ir = ["x", "y", "font-size", "font-weight", "fill"], Fr = ["x1", "x2", "y1", "y2", "stroke"], Dr = ["x", "y", "font-size", "font-weight", "fill"], Vr = ["x1", "x2", "y1", "y2", "stroke"], Er = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ur = { key: 0 }, Br = { key: 1 }, Hr = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Xr = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Yr = { key: 0 }, Wr = { key: 1 }, Gr = ["font-size", "font-weight", "fill", "x", "y", "onClick"], qr = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Jr = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Zr = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Qr = ["data-start", "data-end"], Kr = {
20
- key: 3,
21
- class: "vue-data-ui-watermark"
22
- }, jr = ["x", "y", "height", "width", "fill", "stroke"], es = ["id"], ts = ["onClick"], as = ["innerHTML"], ls = {
23
- __name: "vue-ui-stackbar",
24
- props: {
25
- config: {
26
- type: Object,
27
- default() {
28
- return {};
29
- }
30
- },
31
- dataset: {
32
- type: Array,
33
- default() {
34
- return [];
35
- }
36
- },
37
- selectedXIndex: {
38
- type: Number,
39
- default: void 0
40
- }
41
- },
42
- emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX"],
43
- setup(Xe, { expose: xa, emit: ka }) {
44
- const wa = j(() => import("./Tooltip-oWCO1HKy.js")), La = j(() => import("./BaseIcon-DLFL0M4-.js")), Sa = j(() => import("./vue-ui-accordion-SSLXLlNz.js")), za = j(() => import("./DataTable-UCyd_BQI.js")), Ca = j(() => import("./PenAndPaper-BJSMejV9.js")), Ma = j(() => import("./UserOptions-BqmUW9Kp.js")), _a = j(() => import("./PackageVersion-D_4Hr4S4.js")), Ta = j(() => import("./BaseDraggableDialog-DhKIof09.js")), { vue_ui_stackbar: $a } = Al(), Aa = Cl(), k = Xe, ge = ka, fe = g({
45
- get() {
46
- return !!k.dataset && k.dataset.length;
47
- },
48
- set(a) {
49
- return a;
50
- }
51
- }), J = d(null), U = d(ha()), Ye = d(!1), We = d(null), Ge = d(""), P = d([]), bt = d(0), mt = d(null), pt = d(null), be = d(null), xt = d(null), me = d(!1), q = d(null), le = d(!1), kt = d(0), Pa = d(0), Na = d(0), wt = d(!1), pe = d(null), qe = d(null), Je = d(null), Ze = d(null), re = d(null), se = d(null), Oa = d(null), Qe = d(null), Ke = d(null);
52
- na(() => {
53
- wt.value = !0, rt();
54
- });
55
- const e = d(at()), { loading: xe, FINAL_DATASET: je, manualLoading: Ae } = Gl({
56
- ...Ml(k),
57
- FINAL_CONFIG: e,
58
- prepareConfig: at,
59
- callback: () => {
60
- Promise.resolve().then(async () => {
61
- await Ee();
62
- });
63
- },
64
- skeletonDataset: [
65
- {
66
- name: "",
67
- series: [2, 3, 5, 8, 13, 21],
68
- color: "#BABABA"
69
- },
70
- {
71
- name: "",
72
- series: [1, 2, 3, 5, 8, 13],
73
- color: "#CACACA"
74
- }
75
- ],
76
- skeletonConfig: Pl({
77
- defaultConfig: e.value,
78
- userConfig: {
79
- userOptions: { show: !1 },
80
- useCssAnimation: !1,
81
- table: { show: !1 },
82
- tooltip: { show: !1 },
83
- style: {
84
- chart: {
85
- backgroundColor: "#99999930",
86
- bars: {
87
- totalValues: { show: !1 },
88
- dataLabels: { show: !1 }
89
- },
90
- grid: {
91
- frame: {
92
- stroke: "#6A6A6A"
93
- },
94
- scale: {
95
- scaleMin: 0,
96
- scaleMax: 40
97
- },
98
- x: {
99
- axisColor: "#6A6A6A",
100
- linesColor: "#6A6A6A",
101
- axisName: { show: !1 },
102
- timeLabels: { show: !1 }
103
- },
104
- y: {
105
- axisColor: "#6A6A6A",
106
- linesColor: "#6A6A6A",
107
- axisName: { show: !1 },
108
- axisLabels: { show: !1 }
109
- }
110
- },
111
- legend: {
112
- backgroundColor: "transparent"
113
- },
114
- padding: {
115
- left: 24,
116
- right: 24,
117
- bottom: 12
118
- },
119
- zoom: {
120
- show: !1,
121
- startIndex: null,
122
- endIndex: null
123
- }
124
- }
125
- }
126
- }
127
- })
128
- }), { userOptionsVisible: et, setUserOptionsVisibility: Lt, keepUserOptionState: St } = Kl({ config: e.value }), { svgRef: tt } = jl({ config: e.value.style.chart.title });
129
- function Ra() {
130
- Lt(!0);
131
- }
132
- function Ia() {
133
- Lt(!1), ge("selectX", { seriesIndex: null, datapoint: null }), q.value = null;
134
- }
135
- function at() {
136
- const a = va({
137
- userConfig: k.config,
138
- defaultConfig: $a
139
- });
140
- let l = {};
141
- return a.theme ? l = {
142
- ...va({
143
- userConfig: rr.vue_ui_stackbar[a.theme] || k.config,
144
- defaultConfig: a
145
- }),
146
- customPalette: Nl[a.theme] || He
147
- } : l = a, k.config && de(k.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = k.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, k.config && de(k.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = k.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, k.config && de(k.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = k.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, k.config && de(k.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = k.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, k.config && de(k.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = k.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, k.config && de(k.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = k.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
148
- }
149
- const zt = g(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), Ct = g(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
150
- Me(() => k.config, (a) => {
151
- xe.value || (e.value = at()), et.value = !e.value.userOptions.showOnChartHover, rt(), kt.value += 1, Pa.value += 1, Na.value += 1, $.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, $.value.showTable = e.value.table.show, $.value.showTooltip = e.value.style.chart.tooltip.show, Oe();
152
- }, { deep: !0 }), Me(() => k.dataset, (a) => {
153
- Array.isArray(a) && a.length > 0 && (Ae.value = !1), Rt();
154
- }, { deep: !0 });
155
- const $ = d({
156
- dataLabels: {
157
- show: e.value.style.chart.bars.dataLabels.show
158
- },
159
- showTable: e.value.table.show,
160
- showTooltip: e.value.style.chart.tooltip.show
161
- });
162
- Me(e, () => {
163
- $.value = {
164
- dataLabels: {
165
- show: e.value.style.chart.bars.dataLabels.show
166
- },
167
- showTable: e.value.table.show,
168
- showTooltip: e.value.style.chart.tooltip.show
169
- };
170
- }, { immediate: !0 });
171
- const { isPrinting: Mt, isImaging: _t, generatePdf: Tt, generateImage: $t } = Wl({
172
- elementId: `stackbar_${U.value}`,
173
- fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
174
- options: e.value.userOptions.print
175
- }), ue = d({
176
- width: e.value.style.chart.width,
177
- height: e.value.style.chart.height,
178
- paddingRatio: {
179
- top: e.value.style.chart.padding.top / e.value.style.chart.height,
180
- right: e.value.style.chart.padding.right / e.value.style.chart.width,
181
- bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
182
- left: e.value.style.chart.padding.left / e.value.style.chart.width
183
- }
184
- }), Fa = g(() => Ol(e.value.customPalette)), Q = ia(null), ce = ia(null), At = d(null);
185
- na(() => {
186
- rt();
187
- });
188
- const lt = g(() => !!e.value.debug);
189
- function rt() {
190
- if (da(k.dataset) ? (ya({
191
- componentName: "VueUiStackbar",
192
- type: "dataset",
193
- debug: lt.value
194
- }), Ae.value = !0) : k.dataset.forEach((a, l) => {
195
- Rl({
196
- datasetObject: a,
197
- requiredAttributes: ["name", "series"]
198
- }).forEach((t) => {
199
- fe.value = !1, ya({
200
- componentName: "VueUiStackbar",
201
- type: "datasetSerieAttribute",
202
- property: t,
203
- index: l,
204
- debug: lt.value
205
- }), Ae.value = !0;
206
- });
207
- }), da(k.dataset) || (Ae.value = e.value.loading), setTimeout(() => {
208
- le.value = !0;
209
- }, 10), e.value.responsive) {
210
- const a = ft(() => {
211
- le.value = !1;
212
- const { width: l, height: t } = Yl({
213
- chart: J.value,
214
- title: e.value.style.chart.title.text ? mt.value : null,
215
- legend: e.value.style.chart.legend.show ? pt.value : null,
216
- slicer: e.value.style.chart.zoom.show && N.value > 6 ? be.value.$el : null,
217
- source: xt.value
218
- });
219
- requestAnimationFrame(() => {
220
- ue.value.width = l, ue.value.height = t - 12, clearTimeout(At.value), At.value = setTimeout(() => {
221
- le.value = !0;
222
- }, 10);
223
- });
224
- });
225
- Q.value && (ce.value && Q.value.unobserve(ce.value), Q.value.disconnect()), Q.value = new ResizeObserver(a), ce.value = J.value.parentNode, Q.value.observe(ce.value);
226
- }
227
- Ee();
228
- }
229
- yt(() => {
230
- Q.value && (ce.value && Q.value.unobserve(ce.value), Q.value.disconnect());
231
- });
232
- function Da() {
233
- let a = 0;
234
- e.value.orientation === "vertical" && re.value && (a = Array.from(re.value.querySelectorAll("text")).reduce((r, c) => {
235
- const s = c.getComputedTextLength();
236
- return s > r ? s : r;
237
- }, 0)), e.value.orientation === "horizontal" && se.value && (a = Array.from(se.value.querySelectorAll("text")).reduce((r, c) => {
238
- const s = c.getComputedTextLength();
239
- return s > r ? s : r;
240
- }, 0));
241
- const l = Ze.value ? Ze.value.getBoundingClientRect().width : 0;
242
- return a + l + (l ? 24 : 0);
243
- }
244
- const Pe = d(0), Ne = d(0), Va = ft((a) => {
245
- Pe.value = a;
246
- }, 100);
247
- ua((a) => {
248
- const l = e.value.orientation === "vertical" ? se.value : re.value;
249
- if (!l) return;
250
- const t = new ResizeObserver((r) => {
251
- Va(r[0].contentRect.height);
252
- });
253
- t.observe(l), a(() => t.disconnect());
254
- });
255
- const Ea = ft((a) => {
256
- Ne.value = a + e.value.style.chart.bars.totalValues.fontSize;
257
- }, 100);
258
- function Ua() {
259
- if (e.value.orientation !== "horizontal") return 0;
260
- const a = Qe.value;
261
- if (!a) return 0;
262
- const l = Array.from(a.querySelectorAll("text"));
263
- if (!l.length) return 0;
264
- let t = -1 / 0;
265
- for (const c of l)
266
- try {
267
- const s = c.getBBox(), b = s.x + s.width;
268
- b > t && (t = b);
269
- } catch {
270
- }
271
- return Math.max(0, t - (u.value?.right ?? 0));
272
- }
273
- ua((a) => {
274
- if (e.value.orientation !== "horizontal") return;
275
- const l = Qe.value;
276
- if (!l) return;
277
- const t = () => {
278
- const s = Ua();
279
- Ea(s);
280
- };
281
- t();
282
- const r = new ResizeObserver(t);
283
- r.observe(l);
284
- const c = new MutationObserver(t);
285
- c.observe(l, { childList: !0, subtree: !0, characterData: !0 }), a(() => {
286
- r.disconnect(), c.disconnect();
287
- });
288
- }), yt(() => {
289
- Pe.value = 0, Ne.value = 0;
290
- });
291
- const Pt = g(() => {
292
- let a = 0;
293
- Je.value && (a = Je.value.getBBox().height);
294
- let l = 0;
295
- return e.value.orientation === "vertical" && se.value && (l = Pe.value), e.value.orientation === "horizontal" && re.value && (l = Pe.value), a + l;
296
- }), u = g(() => {
297
- const { height: a, width: l } = ue.value, { right: t } = ue.value.paddingRatio;
298
- let r = e.value.style.chart.bars.totalValues.show && k.dataset && k.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
299
- e.value.style.chart.grid.y.axisLabels.show && (c = Da());
300
- const s = e.value.style.chart.padding.top + r, b = l - l * t - Ne.value, z = a - e.value.style.chart.padding.bottom - Pt.value - r, T = e.value.style.chart.padding.left + c, O = l - T - l * t - Ne.value, A = a - s - e.value.style.chart.padding.bottom - Pt.value - r;
301
- return {
302
- chartHeight: a,
303
- chartWidth: l,
304
- top: s,
305
- right: b,
306
- bottom: z,
307
- left: T,
308
- width: Math.max(0, O),
309
- height: Math.max(0, A)
310
- };
311
- }), Ba = g(() => {
312
- const { left: a, top: l, width: t, height: r } = u.value, c = v.value.start, s = v.value.end, b = Math.max(1, s - c), z = Math.max(0, Math.min(b, (D.value.start ?? c) - c)), T = Math.max(0, Math.min(b, (D.value.end ?? s) - c)), O = Math.max(0, T - z), A = {
313
- fill: e.value.style.chart.zoom.preview.fill,
314
- stroke: e.value.style.chart.zoom.preview.stroke,
315
- "stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
316
- "stroke-dasharray": e.value.style.chart.zoom.preview.strokeDasharray,
317
- "stroke-linecap": "round",
318
- "stroke-linejoin": "round",
319
- style: {
320
- pointerEvents: "none",
321
- transition: "none !important",
322
- animation: "none !important"
323
- }
324
- };
325
- if (e.value.orientation === "horizontal") {
326
- const F = r / b;
327
- return {
328
- x: a,
329
- y: l + z * F,
330
- width: t,
331
- height: O * F,
332
- ...A
333
- };
334
- } else {
335
- const F = t / b;
336
- return {
337
- x: a + z * F,
338
- y: l,
339
- width: O * F,
340
- height: r,
341
- ...A
342
- };
343
- }
344
- }), X = g(() => je.value.map((a, l) => {
345
- const t = Il(a.color) || Fa.value[l] || He[l] || He[l % He.length];
346
- return {
347
- ...a,
348
- // In distributed mode, all values are converted to positive
349
- series: JSON.parse(JSON.stringify(a.series)).map((r) => e.value.style.chart.bars.distributed ? Math.abs(r) : r),
350
- // Store signs to manage display of neg values in distributed mode
351
- signedSeries: a.series.map((r) => r >= 0 ? 1 : -1),
352
- absoluteIndex: l,
353
- id: ha(),
354
- color: t
355
- };
356
- })), N = g(() => Math.max(...X.value.filter((a) => !P.value.includes(a.id)).map((a) => a.series.length)));
357
- function Ha(a) {
358
- Ke.value = a;
359
- }
360
- const v = d({
361
- start: 0,
362
- end: Math.max(...je.value.map((a) => a.series.length))
363
- }), D = d({ start: 0, end: Math.max(...je.value.map((a) => a.series.length)) }), Nt = g(() => e.value.style.chart.zoom.preview.enable && (D.value.start !== v.value.start || D.value.end !== v.value.end));
364
- function Ot(a, l) {
365
- D.value[a] = l;
366
- }
367
- function Oe() {
368
- const a = N.value;
369
- let l = Math.max(0, Math.min(v.value.start ?? 0, a - 1)), t = Math.max(l + 1, Math.min(v.value.end ?? a, a));
370
- (!Number.isFinite(l) || !Number.isFinite(t) || t <= l) && (l = 0, t = a), v.value.start = l, v.value.end = t, D.value.start = l, D.value.end = t, be.value && (be.value.setStartValue(l), be.value.setEndValue(t));
371
- }
372
- const ke = d(null);
373
- function Xa() {
374
- return new Promise((a) => requestAnimationFrame(
375
- () => requestAnimationFrame(() => a())
376
- ));
377
- }
378
- yt(() => {
379
- ke.value && cancelAnimationFrame(ke.value);
380
- });
381
- async function Rt() {
382
- Ee(), await _l(), ke.value && cancelAnimationFrame(ke.value), ke.value = requestAnimationFrame(async () => {
383
- await Xa(), Ee();
384
- });
385
- }
386
- const p = g(() => {
387
- let a;
388
- return e.value.orientation === "vertical" ? a = u.value.width / (v.value.end - v.value.start) : a = u.value.height / (v.value.end - v.value.start), a <= 0 ? 0 : a;
389
- }), we = g(() => $e(X.value.filter((a) => !P.value.includes(a.id))).slice(v.value.start, v.value.end)), oe = g(() => e.value.style.chart.zoom.minimap.show ? $e(X.value.map((a) => ({
390
- ...a,
391
- series: a.series.map((l) => l ?? 0)
392
- })).filter((a) => !P.value.includes(a.id))) : []), Ya = g(() => e.value.style.chart.zoom.minimap.show ? [{
393
- name: "",
394
- series: oe.value,
395
- color: "#000000",
396
- isVisible: !0
397
- }] : []), Wa = g(() => $e(X.value.filter((a) => !P.value.includes(a.id)).map((a) => ({
398
- ...a,
399
- series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
400
- }))).slice(v.value.start, v.value.end)), Re = g(() => {
401
- const a = X.value.filter((l) => !P.value.includes(l.id));
402
- return {
403
- positive: $e(a.map((l) => ({
404
- ...l,
405
- series: l.series.slice(v.value.start, v.value.end).map((t) => t >= 0 ? t : 0)
406
- }))),
407
- negative: $e(a.map((l) => ({
408
- ...l,
409
- series: l.series.slice(v.value.start, v.value.end).map((t) => t < 0 ? t : 0)
410
- })))
411
- };
412
- }), Y = g(() => {
413
- const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...Re.value.positive), l = Math.min(...Re.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, r = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ga(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : fa(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
414
- return r.ticks.map((c) => ({
415
- zero: u.value.bottom - u.value.height * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
416
- y: u.value.bottom - u.value.height * ((c + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
417
- x: u.value.left - 8,
418
- horizontal_zero: u.value.left + u.value.width * (Math.abs(r.min) / (r.max + Math.abs(r.min))),
419
- horizontal_x: u.value.left + u.value.width * ((c + Math.abs(r.min)) / (r.max + Math.abs(r.min))),
420
- horizontal_y: u.value.bottom - 8,
421
- value: c
422
- }));
423
- }), I = g(() => pa({
424
- values: e.value.style.chart.grid.x.timeLabels.values,
425
- maxDatapoints: N.value,
426
- formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
427
- start: v.value.start,
428
- end: v.value.end
429
- })), Le = g(() => pa({
430
- values: e.value.style.chart.grid.x.timeLabels.values,
431
- maxDatapoints: N.value,
432
- formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
433
- start: 0,
434
- end: N.value
435
- })), Ga = g(() => {
436
- const a = e.value.style.chart.grid.x.timeLabels.modulo;
437
- return I.value.length ? Math.min(a, [...new Set(I.value.map((l) => l.text))].length) : a;
438
- }), It = g(() => {
439
- const a = e.value.style.chart.grid.x.timeLabels, l = I.value || [], t = Le.value || [], r = v.value.start ?? 0, c = q.value, s = N.value, b = l.map((T) => T?.text ?? ""), z = t.map((T) => T?.text ?? "");
440
- return Fl(
441
- !!a.showOnlyFirstAndLast,
442
- !!a.showOnlyAtModulo,
443
- Math.max(1, Ga.value || 1),
444
- b,
445
- z,
446
- r,
447
- c,
448
- s
449
- );
450
- }), Ft = g(() => {
451
- const a = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = Jl({
452
- useUTC: a.useUTC,
453
- locale: Zl[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
454
- januaryAsYear: a.januaryAsYear
455
- });
456
- return (t, r) => {
457
- const s = e.value.style.chart.grid.x.timeLabels.values?.[t];
458
- return s == null ? "" : (l.formatDate(new Date(s), r), l.formatDate(new Date(s), r));
459
- };
460
- }), Dt = g(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
461
- text: Ft.value(t, e.value.style.chart.zoom.timeFormat),
462
- absoluteIndex: t
463
- }))), st = g(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
464
- text: Ft.value(t, e.value.style.chart.tooltip.timeFormat),
465
- absoluteIndex: t
466
- }))), C = g(() => {
467
- if (!fe.value && !xe.value) return [];
468
- let a = Array(N.value).fill(0), l = Array(N.value).fill(0), t = Array(N.value).fill(0), r = Array(N.value).fill(0);
469
- const c = Math.max(...Re.value.positive) || 0, s = Math.min(...Re.value.negative), b = [-1 / 0, 1 / 0, NaN, void 0, null].includes(s) ? 0 : s, z = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ga(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : b > 0 ? 0 : b, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : fa(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : b > 0 ? 0 : b, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: T, max: O } = z, A = O + (T >= 0 ? 0 : Math.abs(T)) || 1, F = u.value.height, V = u.value.width, Ce = Y.value[0] ? Y.value[0].zero : u.value.bottom, W = Y.value[0] ? Y.value[0].horizontal_zero : u.value.left;
470
- let aa = Array(oe.value.length).fill(0), la = Array(oe.value.length).fill(0);
471
- return X.value.filter((ve) => !P.value.includes(ve.id)).map((ve) => {
472
- const K = ve.series.slice(), ra = K.map((h, y) => aa[y]), dl = K.map((h, y) => la[y]);
473
- K.forEach((h, y) => {
474
- (Number(h) || 0) >= 0 ? aa[y] += Number(h) || 0 : la[y] += Math.abs(Number(h) || 0);
475
- });
476
- const Z = ve.series.slice(v.value.start, v.value.end), yl = ve.signedSeries.slice(v.value.start, v.value.end), gl = Z.map((h, y) => u.value.left + p.value * y + p.value * e.value.style.chart.bars.gapRatio / 4), Be = (oe.value || []).filter(Number.isFinite), vt = Be.length ? Math.max(...Be) : 0, ht = Be.length ? Math.min(...Be) : 0;
477
- function sa({ minimapH: h }) {
478
- const M = vt > 0, R = ht < 0;
479
- if (M && R) {
480
- const G = Math.max(vt, Math.abs(ht)) || 1e-9;
481
- return {
482
- pxPerUnit: h / 2 / G,
483
- zero: h / 2
484
- };
485
- }
486
- if (M) {
487
- const G = Math.max(1e-9, vt);
488
- return {
489
- pxPerUnit: h / G,
490
- zero: h
491
- };
492
- }
493
- const _ = Math.max(1e-9, Math.abs(ht));
494
- return {
495
- pxPerUnit: h / _,
496
- zero: 0
497
- };
498
- }
499
- const fl = ({ left: h, unitW: y }) => {
500
- const M = y * (e.value.style.chart.bars.gapRatio / 4);
501
- return K.map((R, _) => h + y * _ + M);
502
- }, bl = Z.map((h, y) => u.value.top + p.value * y + p.value * e.value.style.chart.bars.gapRatio / 4), ml = Z.map((h, y) => {
503
- const M = e.value.style.chart.bars.distributed ? (h || 0) / we.value[y] : (h || 0) / A;
504
- let R, _;
505
- return h > 0 ? (_ = F * M, R = Ce - _ - a[y], a[y] += _) : (_ = F * M, R = Ce + t[y], t[y] += Math.abs(_)), R;
506
- }), pl = ({ minimapH: h }) => {
507
- if (e.value.style.chart.bars.distributed)
508
- return K.map((_, G) => {
509
- const dt = Math.abs(Number(_) || 0), oa = Math.abs(oe.value?.[G] || 0) || 1e-9, zl = (ra[G] + dt) / oa;
510
- return h - zl * h;
511
- });
512
- const { pxPerUnit: y, zero: M } = sa({ minimapH: h });
513
- return K.map((R, _) => {
514
- const G = Number(R) || 0;
515
- return G >= 0 ? M - (ra[_] + G) * y : M + dl[_] * y;
516
- });
517
- }, xl = Z.map((h, y) => {
518
- const M = e.value.style.chart.bars.distributed ? (h || 0) / we.value[y] : (h || 0) / A;
519
- let R, _;
520
- return h > 0 ? (_ = V * M, R = W + l[y], l[y] += _) : (_ = V * M, R = W - Math.abs(_) - r[y], r[y] += Math.abs(_)), R;
521
- }), kl = Z.map((h, y) => {
522
- const M = e.value.style.chart.bars.distributed ? (h || 0) / we.value[y] : (h || 0) / A;
523
- return h > 0 ? F * M : F * Math.abs(M);
524
- }), wl = ({ minimapH: h }) => {
525
- if (e.value.style.chart.bars.distributed)
526
- return K.map((R, _) => {
527
- const G = Math.abs(Number(R) || 0), dt = Math.abs(oe.value?.[_] || 0) || 1e-9;
528
- return G / dt * h;
529
- });
530
- const { pxPerUnit: y } = sa({ minimapH: h });
531
- return K.map((M) => Math.abs(Number(M) || 0) * y);
532
- }, Ll = Z.map((h, y) => {
533
- const M = e.value.style.chart.bars.distributed ? (h || 0) / we.value[y] : (h || 0) / A;
534
- return h > 0 ? V * M : V * Math.abs(M);
535
- }), Sl = Z.map((h) => Math.abs(h)).reduce((h, y) => h + y, 0);
536
- return {
537
- ...ve,
538
- proportions: Z.map((h, y) => e.value.style.chart.bars.distributed ? (h || 0) / we.value[y] : (h || 0) / Sl),
539
- series: Z,
540
- signedSeries: yl,
541
- x: gl,
542
- y: ml,
543
- height: kl,
544
- horizontal_width: Ll,
545
- horizontal_y: bl,
546
- horizontal_x: xl,
547
- xMinimap: fl,
548
- yMinimap: pl,
549
- heightMinimap: wl
550
- };
551
- });
552
- }), Vt = g(() => Wa.value.map((a, l) => ({
553
- value: a,
554
- sign: a >= 0 ? 1 : -1
555
- })));
556
- function Ie(a, l, t, r, c) {
557
- const s = c === -1 && a >= 0 ? -a : a;
558
- return ye(
559
- e.value.style.chart.bars.dataLabels.formatter,
560
- s,
561
- ae({
562
- p: e.value.style.chart.bars.dataLabels.prefix,
563
- v: s,
564
- s: e.value.style.chart.bars.dataLabels.suffix,
565
- r: e.value.style.chart.bars.dataLabels.rounding
566
- }),
567
- { datapoint: l, seriesIndex: t, datapointIndex: r }
568
- );
569
- }
570
- function Et(a, l, t, r) {
571
- return ye(
572
- e.value.style.chart.bars.dataLabels.formatter,
573
- a,
574
- ae({
575
- v: isNaN(a) ? 0 : a,
576
- s: "%",
577
- r: e.value.style.chart.bars.dataLabels.rounding
578
- }),
579
- { datapoint: l, seriesIndex: t, datapointIndex: r }
580
- );
581
- }
582
- function Ut(a) {
583
- const l = JSON.parse(JSON.stringify(C.value)).map((t) => ({
584
- name: t.name,
585
- value: t.series[a] === 0 ? 0 : t.series[a] || null,
586
- proportion: t.proportions[a] || null,
587
- color: t.color,
588
- id: t.id
589
- }));
590
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + v.value.start }), ge("selectDatapoint", { datapoint: l, period: I.value[a] });
591
- }
592
- function ot(a) {
593
- return JSON.parse(JSON.stringify(C.value)).map((l) => ({
594
- name: l.name,
595
- absoluteIndex: l.absoluteIndex,
596
- value: l.series[a] === 0 ? 0 : (l.signedSeries[a] === -1 && l.series[a] >= 0 ? -l.series[a] : l.series[a]) || null,
597
- proportion: l.proportions[a] || null,
598
- color: l.color,
599
- id: l.id,
600
- timeLabel: Le.value[a]
601
- }));
602
- }
603
- function Bt(a) {
604
- if (e.value.events.datapointLeave) {
605
- const l = ot(a);
606
- e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + v.value.start });
607
- }
608
- Ye.value = null, q.value = null;
609
- }
610
- const qa = g(() => Array(N.value).fill(0).map((a, l) => ot(l)));
611
- Me(() => k.selectedXIndex, (a) => {
612
- if ([null, void 0].includes(k.selectedXIndex)) {
613
- q.value = null;
614
- return;
615
- }
616
- const l = a - v.value.start;
617
- l < 0 || a >= v.value.end ? q.value = null : q.value = l ?? null;
618
- }, { immediate: !0 });
619
- function Ht(a) {
620
- q.value = a, Ye.value = !0;
621
- const l = e.value.style.chart.tooltip.customFormat, t = ot(a);
622
- cl({ seriesIndex: a, datapoint: t }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + v.value.start }), We.value = {
623
- datapoint: t,
624
- seriesIndex: a,
625
- config: e.value,
626
- series: C.value
627
- };
628
- const r = t.map((s) => Math.abs(s.value)).reduce((s, b) => s + b, 0), c = t.map((s) => ie(s.value)).reduce((s, b) => s + b, 0);
629
- if (ma(l) && Xl(() => l({
630
- seriesIndex: a,
631
- datapoint: t,
632
- series: C.value,
633
- config: e.value
634
- })))
635
- Ge.value = l({
636
- seriesIndex: a,
637
- datapoint: t,
638
- series: C.value,
639
- config: e.value
640
- });
641
- else {
642
- const {
643
- showValue: s,
644
- showTotal: b,
645
- totalTranslation: z,
646
- showPercentage: T,
647
- borderColor: O,
648
- roundingValue: A,
649
- roundingPercentage: F
650
- } = e.value.style.chart.tooltip;
651
- let V = "";
652
- (I.value[a] && I.value[a].text || st.value[a] && st.value[a].text && e.value.style.chart.tooltip.showTimeLabel) && (V += `<div style="width:100%;text-align:center;border-bottom:1px solid ${O};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? I.value[a]?.text : st.value[a]?.text || Le.value[a]?.text || ""}</div>`), b && (V += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
653
- <span>${z}:</span>
654
- <span>
655
- ${ye(
656
- e.value.style.chart.bars.dataLabels.formatter,
657
- c,
658
- ae({
659
- p: e.value.style.chart.bars.dataLabels.prefix,
660
- v: c,
661
- s: e.value.style.chart.bars.dataLabels.suffix,
662
- r: A
663
- }),
664
- { datapoint: { name: z, value: c } }
665
- )}
666
- </span>
667
- </div>`);
668
- const Ce = [
669
- s && T ? "(" : "",
670
- s && T ? ")" : ""
671
- ];
672
- t.reverse().forEach((W) => {
673
- V += `
674
- <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
675
- <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${W.id})` : W.color}"/>${Aa.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${U.value}_${W.absoluteIndex})"/>` : ""}</svg>
676
- ${W.name}${s || T ? ":" : ""} ${s ? ye(
677
- e.value.style.chart.bars.dataLabels.formatter,
678
- W.value,
679
- ae({
680
- p: e.value.style.chart.bars.dataLabels.prefix,
681
- v: W.value,
682
- s: e.value.style.chart.bars.dataLabels.suffix,
683
- r: A
684
- })
685
- ) : ""} ${Ce[0]}${T ? ae({
686
- v: isNaN(W.value / r) ? 0 : Math.abs(W.value) / r * 100,
687
- // Negs are absed to show relative proportion to absolute total. It's opinionated.
688
- s: "%",
689
- r: F
690
- }) : ""}${Ce[1]}
691
- </div>
692
- `;
693
- }), Ge.value = `<div>${V}</div>`;
694
- }
695
- }
696
- const Ja = g(() => ue.value.width), Za = g(() => ue.value.height);
697
- er({
698
- timeLabelsEls: e.value.orientation === "vertical" ? se : re,
699
- timeLabels: I,
700
- slicer: v,
701
- configRef: e,
702
- rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
703
- autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
704
- isAutoSize: !1,
705
- width: Ja,
706
- height: Za,
707
- rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
708
- });
709
- function Xt(a) {
710
- me.value = a, bt.value += 1;
711
- }
712
- function Yt() {
713
- $.value.showTable = !$.value.showTable;
714
- }
715
- function Wt() {
716
- $.value.dataLabels.show = !$.value.dataLabels.show;
717
- }
718
- function Gt() {
719
- $.value.showTooltip = !$.value.showTooltip;
720
- }
721
- function Qa() {
722
- return C.value;
723
- }
724
- const qt = g(() => {
725
- if (C.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
726
- const a = C.value.map(({ name: t, color: r }) => ({
727
- label: t,
728
- color: r
729
- })), l = [];
730
- return I.value.forEach((t) => {
731
- const r = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
732
- X.value.forEach((c) => {
733
- r.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
734
- }), l.push(r);
735
- }), { head: a, body: l };
736
- });
737
- function nt(a = null) {
738
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...qt.value.head.map((b) => b.label)], r = qt.value.body, c = l.concat([t]).concat(r), s = Bl(c);
739
- a ? a(s) : Hl({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
740
- }
741
- const Fe = g(() => {
742
- const a = [""].concat(C.value.map((c) => c.name)).concat(' <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>');
743
- let l = [];
744
- for (let c = 0; c < N.value; c += 1) {
745
- const s = C.value.map((b) => b.series[c] ?? 0).reduce((b, z) => b + z, 0);
746
- l.push([e.value.style.chart.grid.x.timeLabels.values.slice(v.value.start, v.value.end)[c] ? I.value[c].text : c + 1].concat(C.value.map((b) => (b.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((s ?? 0).toFixed(e.value.table.td.roundingValue)));
747
- }
748
- const t = {
749
- th: {
750
- backgroundColor: e.value.table.th.backgroundColor,
751
- color: e.value.table.th.color,
752
- outline: e.value.table.th.outline
753
- },
754
- td: {
755
- backgroundColor: e.value.table.td.backgroundColor,
756
- color: e.value.table.td.color,
757
- outline: e.value.table.td.outline
758
- },
759
- breakpoint: e.value.table.responsiveBreakpoint
760
- }, r = [e.value.table.columnNames.period].concat(C.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
761
- return { head: a, body: l.slice(0, v.value.end - v.value.start), config: t, colNames: r };
762
- });
763
- function it(a) {
764
- if (P.value.includes(a.id))
765
- P.value = P.value.filter((l) => l !== a.id);
766
- else {
767
- if (P.value.length === X.value.length - 1) return;
768
- P.value.push(a.id);
769
- }
770
- ge("selectLegend", C.value);
771
- }
772
- function Jt(a) {
773
- if (!X.value.length)
774
- return e.value.debug && console.warn("VueUiStackbar - There are no series to show."), null;
775
- const l = X.value.find((t) => t.name === a);
776
- return l || (e.value.debug && console.warn(`VueUiStackbar - Series name not found "${a}"`), null);
777
- }
778
- function Ka(a) {
779
- const l = Jt(a);
780
- l !== null && P.value.includes(l.id) && it({ id: l.id });
781
- }
782
- function ja(a) {
783
- const l = Jt(a);
784
- l !== null && (P.value.includes(l.id) || it({ id: l.id }));
785
- }
786
- const ut = g(() => X.value.map((a, l) => ({
787
- ...a,
788
- shape: "square"
789
- })).map((a) => ({
790
- ...a,
791
- opacity: P.value.includes(a.id) ? 0.5 : 1,
792
- segregate: () => it(a),
793
- isSegregated: P.value.includes(a.id)
794
- }))), el = g(() => ({
795
- cy: "stackbar-legend",
796
- backgroundColor: e.value.style.chart.legend.backgroundColor,
797
- color: e.value.style.chart.legend.color,
798
- fontSize: e.value.style.chart.legend.fontSize,
799
- paddingBottom: 12,
800
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
801
- })), De = d(!1);
802
- function ct() {
803
- De.value = !De.value;
804
- }
805
- function Ve(a, l) {
806
- const t = JSON.parse(JSON.stringify(C.value)).map((r) => ({
807
- name: r.name,
808
- value: r.series[l] === 0 ? 0 : (r.signedSeries[l] === -1 && r.series[l] >= 0 ? -r.series[l] : r.series[l]) || null,
809
- proportion: r.proportions[l] || null,
810
- color: r.color,
811
- id: r.id
812
- }));
813
- ge("selectTimeLabel", {
814
- datapoint: t,
815
- absoluteIndex: a.absoluteIndex,
816
- label: a.text
817
- });
818
- }
819
- const tl = g(() => Math.max(...C.value.flatMap((a) => a.series)));
820
- function Zt(a, l) {
821
- return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Ct.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : Ct.value ? (zt.value && lt.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > tl.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : zt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
822
- }
823
- async function al({ scale: a = 2 } = {}) {
824
- if (!J.value) return;
825
- const { width: l, height: t } = J.value.getBoundingClientRect(), r = l / t, { imageUri: c, base64: s } = await tr({ domElement: J.value, base64: !0, img: !0, scale: a });
826
- return {
827
- imageUri: c,
828
- base64: s,
829
- title: e.value.style.chart.title.text,
830
- width: l,
831
- height: t,
832
- aspectRatio: r
833
- };
834
- }
835
- const Se = g(() => {
836
- const a = e.value.table.useDialog && !e.value.table.show, l = $.value.showTable;
837
- return {
838
- component: a ? Ta : Sa,
839
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
840
- props: a ? {
841
- backgroundColor: e.value.table.th.backgroundColor,
842
- color: e.value.table.th.color,
843
- headerColor: e.value.table.th.color,
844
- headerBg: e.value.table.th.backgroundColor,
845
- isFullscreen: me.value,
846
- fullscreenParent: J.value,
847
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
848
- } : {
849
- hideDetails: !0,
850
- config: {
851
- open: l,
852
- maxHeight: 1e4,
853
- body: {
854
- backgroundColor: e.value.style.chart.backgroundColor,
855
- color: e.value.style.chart.color
856
- },
857
- head: {
858
- backgroundColor: e.value.style.chart.backgroundColor,
859
- color: e.value.style.chart.color
860
- }
861
- }
862
- }
863
- };
864
- });
865
- Me(() => $.value.showTable, (a) => {
866
- e.value.table.show || (a && e.value.table.useDialog && pe.value ? pe.value.open() : "close" in pe.value && pe.value.close());
867
- });
868
- function Qt() {
869
- $.value.showTable = !1, qe.value && qe.value.setTableIconState(!1);
870
- }
871
- const ll = g(() => e.value.style.chart.backgroundColor), rl = g(() => e.value.style.chart.legend), sl = g(() => e.value.style.chart.title), { exportSvg: ol, getSvg: nl } = Ql({
872
- svg: tt,
873
- title: sl,
874
- legend: rl,
875
- legendItems: ut,
876
- backgroundColor: ll
877
- });
878
- async function Kt({ isCb: a }) {
879
- if (a) {
880
- const { blob: l, url: t, text: r, dataUrl: c } = await nl();
881
- e.value.userOptions.callbacks.svg({ blob: l, url: t, text: r, dataUrl: c });
882
- } else
883
- ol();
884
- }
885
- function jt(a) {
886
- const l = N.value;
887
- return a > l ? l : a < 0 || a < v.value.start ? e.value.style.chart.zoom.startIndex !== null ? v.value.start + 1 : 1 : a;
888
- }
889
- const ze = d(!1), ea = d(!1);
890
- function Ee() {
891
- if (!ze.value) {
892
- ze.value = !0;
893
- try {
894
- const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = N.value, r = a ?? 0, c = l != null ? Math.min(jt(l + 1), t) : t;
895
- Ue.value = !0, v.value.start = r, v.value.end = c, D.value.start = r, D.value.end = c, Oe(), ea.value = !0;
896
- } finally {
897
- queueMicrotask(() => {
898
- Ue.value = !1;
899
- }), ze.value = !1;
900
- }
901
- }
902
- }
903
- const Ue = d(!1);
904
- function il(a) {
905
- ze.value || Ue.value || a !== v.value.start && (v.value.start = a, D.value.start = a, Oe());
906
- }
907
- function ul(a) {
908
- if (ze.value || Ue.value) return;
909
- const l = jt(a);
910
- l !== v.value.end && (v.value.end = l, D.value.end = l, Oe());
911
- }
912
- function cl({ seriesIndex: a, datapoint: l }) {
913
- const t = v.value.start + a;
914
- ge("selectX", {
915
- dataset: l,
916
- index: t,
917
- indexLabel: e.value.style.chart.grid.x.timeLabels.values[t]
918
- });
919
- }
920
- function ta() {
921
- return { y0: Y.value?.[0]?.zero ?? u.value.bottom };
922
- }
923
- function vl(a) {
924
- const { y0: l } = ta(), t = e.value.style.chart.bars.totalValues, r = Math.max(2, t.fontSize * 0.3 + t.offsetY);
925
- let c = 1 / 0, s = !1;
926
- for (const O of C.value || []) {
927
- const A = O?.series?.[a] ?? 0, F = O?.height?.[a] ?? 0, V = O?.y?.[a];
928
- A > 0 && F > 0 && Number.isFinite(V) && (s = !0, V < c && (c = V));
929
- }
930
- const z = (s && Number.isFinite(c) ? c : l) - r;
931
- return Math.min(
932
- Math.max(z, 0),
933
- u.value.bottom
934
- );
935
- }
936
- function hl(a) {
937
- const { x0: l } = ta(), t = Math.max(2, e.value.style.chart.bars.totalValues.fontSize * 0.3 + e.value.style.chart.bars.totalValues.offsetX);
938
- let r = -1 / 0, c = !1;
939
- for (const b of C.value || []) {
940
- const z = b?.series?.[a] ?? 0, T = b?.horizontal_x?.[a], O = b?.horizontal_width?.[a], A = Number.isFinite(O) ? Math.max(0, O) : 0;
941
- Number.isFinite(T) && z > 0 && A > 0 && (c = !0, r = Math.max(r, T + A));
942
- }
943
- return (c && Number.isFinite(r) ? r : l) + t;
944
- }
945
- return xa({
946
- getData: Qa,
947
- getImage: al,
948
- generatePdf: Tt,
949
- generateCsv: nt,
950
- generateImage: $t,
951
- generateSvg: Kt,
952
- hideSeries: ja,
953
- showSeries: Ka,
954
- toggleTable: Yt,
955
- toggleLabels: Wt,
956
- toggleTooltip: Gt,
957
- toggleAnnotator: ct,
958
- toggleFullscreen: Xt
959
- }), (a, l) => (o(), n("div", {
960
- id: `stackbar_${U.value}`,
961
- ref_key: "stackbarChart",
962
- ref: J,
963
- class: he({ "vue-data-ui-component": !0, "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": me.value }),
964
- style: ne(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
965
- onMouseenter: Ra,
966
- onMouseleave: Ia
967
- }, [
968
- e.value.userOptions.buttons.annotator ? (o(), ee(m(Ca), {
969
- key: 0,
970
- svgRef: m(tt),
971
- backgroundColor: e.value.style.chart.backgroundColor,
972
- color: e.value.style.chart.color,
973
- active: De.value,
974
- onClose: ct
975
- }, {
976
- "annotator-action-close": S(() => [
977
- w(a.$slots, "annotator-action-close", {}, void 0, !0)
978
- ]),
979
- "annotator-action-color": S(({ color: t }) => [
980
- w(a.$slots, "annotator-action-color", B(H({ color: t })), void 0, !0)
981
- ]),
982
- "annotator-action-draw": S(({ mode: t }) => [
983
- w(a.$slots, "annotator-action-draw", B(H({ mode: t })), void 0, !0)
984
- ]),
985
- "annotator-action-undo": S(({ disabled: t }) => [
986
- w(a.$slots, "annotator-action-undo", B(H({ disabled: t })), void 0, !0)
987
- ]),
988
- "annotator-action-redo": S(({ disabled: t }) => [
989
- w(a.$slots, "annotator-action-redo", B(H({ disabled: t })), void 0, !0)
990
- ]),
991
- "annotator-action-delete": S(({ disabled: t }) => [
992
- w(a.$slots, "annotator-action-delete", B(H({ disabled: t })), void 0, !0)
993
- ]),
994
- _: 3
995
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
996
- w(a.$slots, "userConfig", {}, void 0, !0),
997
- e.value.style.chart.title.text ? (o(), n("div", {
998
- key: 1,
999
- ref_key: "chartTitle",
1000
- ref: mt,
1001
- style: "width:100%;background:transparent;padding-bottom:24px"
1002
- }, [
1003
- (o(), ee(ar, {
1004
- key: `title_${kt.value}`,
1005
- config: {
1006
- title: {
1007
- cy: "stackbar-title",
1008
- ...e.value.style.chart.title
1009
- },
1010
- subtitle: {
1011
- cy: "stackbar-subtitle",
1012
- ...e.value.style.chart.title.subtitle
1013
- }
1014
- }
1015
- }, null, 8, ["config"]))
1016
- ], 512)) : f("", !0),
1017
- te("div", {
1018
- id: `legend-top-${U.value}`
1019
- }, null, 8, ur),
1020
- e.value.userOptions.show && fe.value && (m(St) || m(et)) ? (o(), ee(m(Ma), {
1021
- ref_key: "userOptionsRef",
1022
- ref: qe,
1023
- key: `user_option_${bt.value}`,
1024
- backgroundColor: e.value.style.chart.backgroundColor,
1025
- color: e.value.style.chart.color,
1026
- isPrinting: m(Mt),
1027
- isImaging: m(_t),
1028
- uid: U.value,
1029
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
1030
- hasPdf: e.value.userOptions.buttons.pdf,
1031
- hasImg: e.value.userOptions.buttons.img,
1032
- hasSvg: e.value.userOptions.buttons.svg,
1033
- hasXls: e.value.userOptions.buttons.csv,
1034
- hasTable: e.value.userOptions.buttons.table,
1035
- hasLabel: e.value.userOptions.buttons.labels,
1036
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
1037
- isFullscreen: me.value,
1038
- chartElement: J.value,
1039
- position: e.value.userOptions.position,
1040
- isTooltip: $.value.showTooltip,
1041
- titles: { ...e.value.userOptions.buttonTitles },
1042
- hasAnnotator: e.value.userOptions.buttons.annotator,
1043
- isAnnotation: De.value,
1044
- callbacks: e.value.userOptions.callbacks,
1045
- printScale: e.value.userOptions.print.scale,
1046
- tableDialog: e.value.table.useDialog,
1047
- onToggleFullscreen: Xt,
1048
- onGeneratePdf: m(Tt),
1049
- onGenerateCsv: nt,
1050
- onGenerateImage: m($t),
1051
- onGenerateSvg: Kt,
1052
- onToggleTable: Yt,
1053
- onToggleLabels: Wt,
1054
- onToggleTooltip: Gt,
1055
- onToggleAnnotator: ct,
1056
- style: ne({
1057
- visibility: m(St) ? m(et) ? "visible" : "hidden" : "visible"
1058
- })
1059
- }, gt({ _: 2 }, [
1060
- a.$slots.menuIcon ? {
1061
- name: "menuIcon",
1062
- fn: S(({ isOpen: t, color: r }) => [
1063
- w(a.$slots, "menuIcon", B(H({ isOpen: t, color: r })), void 0, !0)
1064
- ]),
1065
- key: "0"
1066
- } : void 0,
1067
- a.$slots.optionTooltip ? {
1068
- name: "optionTooltip",
1069
- fn: S(() => [
1070
- w(a.$slots, "optionTooltip", {}, void 0, !0)
1071
- ]),
1072
- key: "1"
1073
- } : void 0,
1074
- a.$slots.optionPdf ? {
1075
- name: "optionPdf",
1076
- fn: S(() => [
1077
- w(a.$slots, "optionPdf", {}, void 0, !0)
1078
- ]),
1079
- key: "2"
1080
- } : void 0,
1081
- a.$slots.optionCsv ? {
1082
- name: "optionCsv",
1083
- fn: S(() => [
1084
- w(a.$slots, "optionCsv", {}, void 0, !0)
1085
- ]),
1086
- key: "3"
1087
- } : void 0,
1088
- a.$slots.optionImg ? {
1089
- name: "optionImg",
1090
- fn: S(() => [
1091
- w(a.$slots, "optionImg", {}, void 0, !0)
1092
- ]),
1093
- key: "4"
1094
- } : void 0,
1095
- a.$slots.optionSvg ? {
1096
- name: "optionSvg",
1097
- fn: S(() => [
1098
- w(a.$slots, "optionSvg", {}, void 0, !0)
1099
- ]),
1100
- key: "5"
1101
- } : void 0,
1102
- a.$slots.optionTable ? {
1103
- name: "optionTable",
1104
- fn: S(() => [
1105
- w(a.$slots, "optionTable", {}, void 0, !0)
1106
- ]),
1107
- key: "6"
1108
- } : void 0,
1109
- a.$slots.optionLabels ? {
1110
- name: "optionLabels",
1111
- fn: S(() => [
1112
- w(a.$slots, "optionLabels", {}, void 0, !0)
1113
- ]),
1114
- key: "7"
1115
- } : void 0,
1116
- a.$slots.optionFullscreen ? {
1117
- name: "optionFullscreen",
1118
- fn: S(({ toggleFullscreen: t, isFullscreen: r }) => [
1119
- w(a.$slots, "optionFullscreen", B(H({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
1120
- ]),
1121
- key: "8"
1122
- } : void 0,
1123
- a.$slots.optionAnnotator ? {
1124
- name: "optionAnnotator",
1125
- fn: S(({ toggleAnnotator: t, isAnnotator: r }) => [
1126
- w(a.$slots, "optionAnnotator", B(H({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
1127
- ]),
1128
- key: "9"
1129
- } : void 0
1130
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
1131
- (o(), n("svg", {
1132
- ref_key: "svgRef",
1133
- ref: tt,
1134
- xmlns: m(Dl),
1135
- viewBox: `0 0 ${u.value.chartWidth <= 0 ? 10 : u.value.chartWidth} ${u.value.chartHeight <= 0 ? 10 : u.value.chartHeight}`,
1136
- class: he({ "vue-data-ui-loading": m(xe) }),
1137
- style: ne(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
1138
- }, [
1139
- _e(m(_a)),
1140
- a.$slots["chart-background"] ? (o(), n("foreignObject", {
1141
- key: 0,
1142
- x: u.value.left,
1143
- y: u.value.top,
1144
- width: u.value.width <= 0 ? 10 : u.value.width,
1145
- height: u.value.height <= 0 ? 10 : u.value.height,
1146
- style: {
1147
- pointerEvents: "none"
1148
- }
1149
- }, [
1150
- w(a.$slots, "chart-background", {}, void 0, !0)
1151
- ], 8, vr)) : f("", !0),
1152
- e.value.style.chart.bars.gradient.show ? (o(), n("defs", hr, [
1153
- (o(!0), n(x, null, L(C.value, (t, r) => (o(), n("linearGradient", {
1154
- id: `gradient_${t.id}`,
1155
- x1: "0%",
1156
- y1: "0%",
1157
- x2: "0%",
1158
- y2: "100%"
1159
- }, [
1160
- te("stop", {
1161
- offset: "0%",
1162
- "stop-color": t.color
1163
- }, null, 8, yr),
1164
- te("stop", {
1165
- offset: "61.8%",
1166
- "stop-color": m(Vl)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
1167
- }, null, 8, gr),
1168
- te("stop", {
1169
- offset: "100%",
1170
- "stop-color": t.color
1171
- }, null, 8, fr)
1172
- ], 8, dr))), 256))
1173
- ])) : f("", !0),
1174
- e.value.style.chart.grid.frame.show ? (o(), n("rect", {
1175
- key: 2,
1176
- style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1177
- x: Math.max(0, u.value.left),
1178
- y: Math.max(0, u.value.top),
1179
- width: Math.max(0, u.value.width),
1180
- height: Math.max(0, u.value.height),
1181
- fill: "transparent",
1182
- stroke: e.value.style.chart.grid.frame.stroke,
1183
- "stroke-width": e.value.style.chart.grid.frame.strokeWidth,
1184
- "stroke-linecap": e.value.style.chart.grid.frame.strokeLinecap,
1185
- "stroke-linejoin": e.value.style.chart.grid.frame.strokeLinejoin,
1186
- "stroke-dasharray": e.value.style.chart.grid.frame.strokeDasharray
1187
- }, null, 8, br)) : f("", !0),
1188
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (o(!0), n(x, { key: 3 }, L(Y.value, (t, r) => (o(), n("line", {
1189
- x1: u.value.left,
1190
- x2: u.value.right,
1191
- y1: t.y,
1192
- y2: t.y,
1193
- stroke: e.value.style.chart.grid.x.linesColor,
1194
- "stroke-width": e.value.style.chart.grid.x.linesThickness,
1195
- "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
1196
- "stroke-linecap": "round"
1197
- }, null, 8, mr))), 256)) : f("", !0),
1198
- e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (o(!0), n(x, { key: 4 }, L(v.value.end - v.value.start + 1, (t, r) => (o(), n("line", {
1199
- x1: u.value.left,
1200
- x2: u.value.right,
1201
- y1: u.value.top + p.value * r,
1202
- y2: u.value.top + p.value * r,
1203
- stroke: e.value.style.chart.grid.x.linesColor,
1204
- "stroke-width": e.value.style.chart.grid.x.linesThickness,
1205
- "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
1206
- "stroke-linecap": "round"
1207
- }, null, 8, pr))), 256)) : f("", !0),
1208
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (o(!0), n(x, { key: 5 }, L(v.value.end - v.value.start + 1, (t, r) => (o(), n("line", {
1209
- x1: u.value.left + p.value * r,
1210
- x2: u.value.left + p.value * r,
1211
- y1: u.value.top,
1212
- y2: u.value.bottom,
1213
- stroke: e.value.style.chart.grid.y.linesColor,
1214
- "stroke-width": e.value.style.chart.grid.y.linesThickness,
1215
- "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
1216
- "stroke-linecap": "round"
1217
- }, null, 8, xr))), 256)) : f("", !0),
1218
- e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (o(!0), n(x, { key: 6 }, L(Y.value, (t, r) => (o(), n("line", {
1219
- x1: t.horizontal_x,
1220
- x2: t.horizontal_x,
1221
- y1: u.value.top,
1222
- y2: u.value.bottom,
1223
- stroke: e.value.style.chart.grid.y.linesColor,
1224
- "stroke-width": e.value.style.chart.grid.y.linesThickness,
1225
- "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
1226
- "stroke-linecap": "round"
1227
- }, null, 8, kr))), 256)) : f("", !0),
1228
- (o(!0), n(x, null, L(C.value, (t, r) => (o(), n("g", null, [
1229
- a.$slots.pattern ? (o(), n("defs", wr, [
1230
- w(a.$slots, "pattern", Te({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${U.value}_${t.absoluteIndex}` }), void 0, !0)
1231
- ])) : f("", !0),
1232
- e.value.orientation === "vertical" ? (o(), n(x, { key: 1 }, [
1233
- (o(!0), n(x, null, L(t.x, (c, s) => (o(), n("rect", {
1234
- x: c,
1235
- y: m(ie)(t.y[s]),
1236
- height: t.height[s] < 0 ? 1e-4 : t.height[s] || 0,
1237
- rx: e.value.style.chart.bars.borderRadius > t.height[s] / 2 ? (t.height[s] < 0 ? 0 : t.height[s]) / 2 : e.value.style.chart.bars.borderRadius,
1238
- width: p.value * (1 - e.value.style.chart.bars.gapRatio / 2),
1239
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
1240
- stroke: e.value.style.chart.backgroundColor,
1241
- "stroke-width": e.value.style.chart.bars.strokeWidth,
1242
- "stroke-linecap": "round",
1243
- "stroke-linejoin": "round",
1244
- class: he({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
1245
- }, null, 10, Lr))), 256)),
1246
- a.$slots.pattern ? (o(), n("g", Sr, [
1247
- (o(!0), n(x, null, L(t.x, (c, s) => (o(), n("rect", {
1248
- x: c,
1249
- y: m(ie)(t.y[s]),
1250
- height: t.height[s] < 0 ? 1e-4 : t.height[s] || 0,
1251
- rx: e.value.style.chart.bars.borderRadius > t.height[s] / 2 ? (t.height[s] < 0 ? 0 : t.height[s]) / 2 : e.value.style.chart.bars.borderRadius,
1252
- width: p.value * (1 - e.value.style.chart.bars.gapRatio / 2),
1253
- fill: `url(#pattern_${U.value}_${t.absoluteIndex})`,
1254
- stroke: e.value.style.chart.backgroundColor,
1255
- "stroke-width": e.value.style.chart.bars.strokeWidth,
1256
- "stroke-linecap": "round",
1257
- "stroke-linejoin": "round",
1258
- class: he({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
1259
- }, null, 10, zr))), 256))
1260
- ])) : f("", !0)
1261
- ], 64)) : (o(), n(x, { key: 2 }, [
1262
- (o(!0), n(x, null, L(t.horizontal_x, (c, s) => (o(), n("rect", {
1263
- x: m(ie)(c, u.value.left),
1264
- y: t.horizontal_y[s] < 0 ? 0 : t.horizontal_y[s],
1265
- width: m(ie)(t.horizontal_width[s] < 0 ? 1e-4 : t.horizontal_width[s]),
1266
- rx: e.value.style.chart.bars.borderRadius > t.height[s] / 2 ? (t.height[s] < 0 ? 0 : t.height[s]) / 2 : e.value.style.chart.bars.borderRadius,
1267
- height: p.value * (1 - e.value.style.chart.bars.gapRatio / 2),
1268
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
1269
- stroke: e.value.style.chart.backgroundColor,
1270
- "stroke-width": e.value.style.chart.bars.strokeWidth,
1271
- "stroke-linecap": "round",
1272
- "stroke-linejoin": "round",
1273
- class: he({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
1274
- }, null, 10, Cr))), 256)),
1275
- a.$slots.pattern ? (o(), n("g", Mr, [
1276
- (o(!0), n(x, null, L(t.horizontal_x, (c, s) => (o(), n("rect", {
1277
- x: m(ie)(c, u.value.left),
1278
- y: t.horizontal_y[s] < 0 ? 0 : t.horizontal_y[s],
1279
- width: m(ie)(t.horizontal_width[s] < 0 ? 1e-4 : t.horizontal_width[s]),
1280
- rx: e.value.style.chart.bars.borderRadius > t.height[s] / 2 ? (t.height[s] < 0 ? 0 : t.height[s]) / 2 : e.value.style.chart.bars.borderRadius,
1281
- height: p.value * (1 - e.value.style.chart.bars.gapRatio / 2),
1282
- fill: `url(#pattern_${U.value}_${t.absoluteIndex})`,
1283
- stroke: e.value.style.chart.backgroundColor,
1284
- "stroke-width": e.value.style.chart.bars.strokeWidth,
1285
- "stroke-linecap": "round",
1286
- "stroke-linejoin": "round",
1287
- class: he({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": le.value })
1288
- }, null, 10, _r))), 256))
1289
- ])) : f("", !0)
1290
- ], 64))
1291
- ]))), 256)),
1292
- e.value.style.chart.grid.x.showAxis ? (o(), n("line", {
1293
- key: 7,
1294
- x1: u.value.left,
1295
- x2: u.value.right,
1296
- y1: u.value.bottom,
1297
- y2: u.value.bottom,
1298
- stroke: e.value.style.chart.grid.x.axisColor,
1299
- "stroke-width": e.value.style.chart.grid.x.axisThickness,
1300
- "stroke-linecap": "round",
1301
- "stroke-linejoin": "round"
1302
- }, null, 8, Tr)) : f("", !0),
1303
- e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (o(), n("line", {
1304
- key: 8,
1305
- x1: u.value.left,
1306
- x2: u.value.left,
1307
- y1: u.value.top,
1308
- y2: u.value.bottom,
1309
- stroke: e.value.style.chart.grid.y.axisColor,
1310
- "stroke-width": e.value.style.chart.grid.y.axisThickness,
1311
- "stroke-linecap": "round",
1312
- "stroke-linejoin": "round"
1313
- }, null, 8, $r)) : f("", !0),
1314
- e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (o(), n("text", {
1315
- key: 9,
1316
- ref_key: "xAxisLabel",
1317
- ref: Je,
1318
- x: u.value.left + u.value.width / 2,
1319
- y: u.value.chartHeight - 3,
1320
- "font-size": e.value.style.chart.grid.x.axisName.fontSize,
1321
- fill: e.value.style.chart.grid.x.axisName.color,
1322
- "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1323
- "text-anchor": "middle"
1324
- }, E(e.value.style.chart.grid.x.axisName.text), 9, Ar)) : f("", !0),
1325
- e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (o(), n("text", {
1326
- key: 10,
1327
- ref_key: "yAxisLabel",
1328
- ref: Ze,
1329
- transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${u.value.top + u.value.height / 2}) rotate(-90)`,
1330
- "font-size": e.value.style.chart.grid.y.axisName.fontSize,
1331
- fill: e.value.style.chart.grid.y.axisName.color,
1332
- "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1333
- "text-anchor": "middle"
1334
- }, E(e.value.style.chart.grid.y.axisName.text), 9, Pr)) : f("", !0),
1335
- $.value.dataLabels.show && e.value.orientation === "vertical" ? (o(), n(x, { key: 11 }, [
1336
- (o(!0), n(x, null, L(C.value, (t, r) => (o(), n("g", null, [
1337
- (o(!0), n(x, null, L(t.x, (c, s) => (o(), n(x, null, [
1338
- Zt(t.series[s], t.proportions[s]) ? (o(), n("text", {
1339
- key: 0,
1340
- x: c + p.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
1341
- y: t.y[s] + t.height[s] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
1342
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
1343
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(ba)(t.color) : e.value.style.chart.bars.dataLabels.color,
1344
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1345
- "text-anchor": "middle"
1346
- }, E(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Et(t.proportions[s] * 100, t, r, s) : Ie(t.series[s], t, r, s, t.signedSeries[s])), 9, Nr)) : f("", !0)
1347
- ], 64))), 256))
1348
- ]))), 256)),
1349
- e.value.style.chart.bars.totalValues.show && C.value.length > 1 ? (o(), n("g", {
1350
- key: 0,
1351
- ref_key: "sumTop",
1352
- ref: Oa
1353
- }, [
1354
- (o(!0), n(x, null, L(Vt.value, (t, r) => (o(), n(x, null, [
1355
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
1356
- key: 0,
1357
- x: u.value.left + p.value * r + p.value / 2,
1358
- y: vl(r),
1359
- "text-anchor": "middle",
1360
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
1361
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1362
- fill: e.value.style.chart.bars.totalValues.color
1363
- }, E(Ie(t.value, t, r, t.sign)), 9, Or)) : f("", !0)
1364
- ], 64))), 256))
1365
- ], 512)) : f("", !0)
1366
- ], 64)) : f("", !0),
1367
- $.value.dataLabels.show && e.value.orientation === "horizontal" ? (o(), n(x, { key: 12 }, [
1368
- (o(!0), n(x, null, L(C.value, (t, r) => (o(), n("g", null, [
1369
- (o(!0), n(x, null, L(t.horizontal_x, (c, s) => (o(), n(x, null, [
1370
- Zt(t.series[s], t.proportions[s]) ? (o(), n("text", {
1371
- key: 0,
1372
- x: c + (t.horizontal_width[s] < 0 ? 1e-4 : t.horizontal_width[s]) / 2,
1373
- y: t.horizontal_y[s] + p.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
1374
- "font-size": e.value.style.chart.bars.dataLabels.fontSize,
1375
- fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? m(ba)(t.color) : e.value.style.chart.bars.dataLabels.color,
1376
- "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1377
- "text-anchor": "middle"
1378
- }, E(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Et(t.proportions[s] * 100, t, r, s) : Ie(t.series[s], t, r, s, t.signedSeries[s])), 9, Rr)) : f("", !0)
1379
- ], 64))), 256))
1380
- ]))), 256)),
1381
- e.value.style.chart.bars.totalValues.show && C.value.length > 1 ? (o(), n("g", {
1382
- key: 0,
1383
- ref_key: "sumRight",
1384
- ref: Qe
1385
- }, [
1386
- (o(!0), n(x, null, L(Vt.value, (t, r) => (o(), n(x, null, [
1387
- !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), n("text", {
1388
- key: 0,
1389
- x: hl(r),
1390
- y: u.value.top + p.value * r + p.value / 2 + e.value.style.chart.bars.totalValues.fontSize / 3,
1391
- "text-anchor": "start",
1392
- "font-size": e.value.style.chart.bars.totalValues.fontSize,
1393
- "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1394
- fill: e.value.style.chart.bars.totalValues.color
1395
- }, E(Ie(t.value, t, r, t.sign)), 9, Ir)) : f("", !0)
1396
- ], 64))), 256))
1397
- ], 512)) : f("", !0)
1398
- ], 64)) : f("", !0),
1399
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (o(), n("g", {
1400
- key: 13,
1401
- ref_key: "scaleLabels",
1402
- ref: re
1403
- }, [
1404
- (o(!0), n(x, null, L(Y.value, (t, r) => (o(), n("line", {
1405
- x1: u.value.left,
1406
- x2: u.value.left - 6,
1407
- y1: t.y,
1408
- y2: t.y,
1409
- stroke: e.value.style.chart.grid.x.axisColor,
1410
- "stroke-width": 1
1411
- }, null, 8, Fr))), 256)),
1412
- (o(!0), n(x, null, L(Y.value, (t, r) => (o(), n("text", {
1413
- x: t.x,
1414
- y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1415
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1416
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1417
- fill: e.value.style.chart.grid.y.axisLabels.color,
1418
- "text-anchor": "end"
1419
- }, E(m(ye)(
1420
- e.value.style.chart.grid.y.axisLabels.formatter,
1421
- t.value,
1422
- m(ae)({
1423
- p: e.value.style.chart.bars.dataLabels.prefix,
1424
- v: t.value,
1425
- s: e.value.style.chart.bars.dataLabels.suffix,
1426
- r: e.value.style.chart.grid.y.axisLabels.rounding
1427
- }),
1428
- { datapoint: t }
1429
- )), 9, Dr))), 256))
1430
- ], 512)) : f("", !0),
1431
- e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), n("g", {
1432
- key: 14,
1433
- ref_key: "scaleLabels",
1434
- ref: re
1435
- }, [
1436
- (o(!0), n(x, null, L(Y.value, (t, r) => (o(), n("line", {
1437
- x1: t.horizontal_x,
1438
- x2: t.horizontal_x,
1439
- y1: u.value.bottom,
1440
- y2: u.value.bottom + 6,
1441
- stroke: e.value.style.chart.grid.x.axisColor,
1442
- "stroke-width": 1,
1443
- "stroke-linecap": "round"
1444
- }, null, 8, Vr))), 256)),
1445
- (o(!0), n(x, null, L(Y.value, (t, r) => (o(), n("text", {
1446
- class: "vue-data-ui-time-label",
1447
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1448
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1449
- fill: e.value.style.chart.grid.y.axisLabels.color,
1450
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1451
- transform: `translate(${t.horizontal_x}, ${u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
1452
- }, E(m(ye)(
1453
- e.value.style.chart.grid.y.axisLabels.formatter,
1454
- t.value,
1455
- m(ae)({
1456
- p: e.value.style.chart.bars.dataLabels.prefix,
1457
- v: t.value,
1458
- s: e.value.style.chart.bars.dataLabels.suffix,
1459
- r: e.value.style.chart.grid.y.axisLabels.rounding
1460
- }),
1461
- { datapoint: t }
1462
- )), 9, Er))), 256))
1463
- ], 512)) : f("", !0),
1464
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), n("g", {
1465
- key: 15,
1466
- ref_key: "timeLabelsEls",
1467
- ref: se
1468
- }, [
1469
- a.$slots["time-label"] ? (o(), n("g", Ur, [
1470
- (o(!0), n(x, null, L(It.value, (t, r) => (o(), n("g", null, [
1471
- w(a.$slots, "time-label", Te({ ref_for: !0 }, {
1472
- x: u.value.left + p.value * r + p.value / 2,
1473
- y: u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1474
- fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1475
- fill: e.value.style.chart.grid.x.timeLabels.color,
1476
- transform: `translate(${u.value.left + p.value * r + p.value / 2}, ${u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1477
- absoluteIndex: t.absoluteIndex,
1478
- content: t.text,
1479
- textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1480
- show: !0
1481
- }), void 0, !0)
1482
- ]))), 256))
1483
- ])) : (o(), n("g", Br, [
1484
- (o(!0), n(x, null, L(It.value, (t, r) => (o(), n("g", null, [
1485
- String(t.text).includes(`
1486
- `) ? (o(), n("text", {
1487
- key: r + "-multi",
1488
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1489
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1490
- fill: e.value.style.chart.grid.x.timeLabels.color,
1491
- transform: `
1492
- translate(
1493
- ${u.value.left + p.value * r + p.value / 2},
1494
- ${u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1495
- ),
1496
- rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1497
- `,
1498
- style: { cursor: "pointer" },
1499
- innerHTML: m(El)({
1500
- content: String(t.text),
1501
- fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1502
- fill: e.value.style.chart.grid.x.timeLabels.color,
1503
- x: 0,
1504
- y: 0
1505
- }),
1506
- onClick: () => Ve(t, r)
1507
- }, null, 8, Xr)) : (o(), n("text", {
1508
- class: "vue-data-ui-time-label",
1509
- key: r,
1510
- "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1511
- "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1512
- "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1513
- fill: e.value.style.chart.grid.x.timeLabels.color,
1514
- transform: `translate(${u.value.left + p.value * r + p.value / 2}, ${u.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1515
- style: { cursor: "pointer" },
1516
- onClick: () => Ve(t, r)
1517
- }, E(t.text), 9, Hr))
1518
- ]))), 256))
1519
- ]))
1520
- ], 512)) : f("", !0),
1521
- e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), n("g", {
1522
- key: 16,
1523
- ref_key: "timeLabelsEls",
1524
- ref: se
1525
- }, [
1526
- a.$slots["time-label"] ? (o(), n("g", Yr, [
1527
- (o(!0), n(x, null, L(I.value, (t, r) => (o(), n("g", null, [
1528
- w(a.$slots, "time-label", Te({ ref_for: !0 }, {
1529
- x: u.value.left - 8,
1530
- y: u.value.top + p.value * r + p.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1531
- fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1532
- fill: e.value.style.chart.grid.x.timeLabels.color,
1533
- transform: null,
1534
- absoluteIndex: t.absoluteIndex,
1535
- content: t.text,
1536
- textAnchor: "end",
1537
- show: !0
1538
- }), void 0, !0)
1539
- ]))), 256))
1540
- ])) : (o(), n("g", Wr, [
1541
- (o(!0), n(x, null, L(I.value, (t, r) => (o(), n("g", null, [
1542
- String(t.text).includes(`
1543
- `) ? (o(), n("text", {
1544
- key: 1,
1545
- "text-anchor": "end",
1546
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1547
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1548
- fill: e.value.style.chart.grid.y.axisLabels.color,
1549
- x: u.value.left - 8,
1550
- y: u.value.top + p.value * r + p.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1551
- style: { cursor: "pointer" },
1552
- onClick: () => Ve(t, r),
1553
- innerHTML: m(Ul)({
1554
- content: String(t.text),
1555
- fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1556
- fill: e.value.style.chart.grid.y.axisLabels.color,
1557
- x: u.value.left - 8,
1558
- y: 0
1559
- })
1560
- }, null, 8, qr)) : (o(), n("text", {
1561
- key: 0,
1562
- "text-anchor": "end",
1563
- "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1564
- "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1565
- fill: e.value.style.chart.grid.y.axisLabels.color,
1566
- x: u.value.left - 8,
1567
- y: u.value.top + p.value * r + p.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1568
- style: {
1569
- cursor: "pointer"
1570
- },
1571
- onClick: () => Ve(t, r)
1572
- }, E(t.text), 9, Gr))
1573
- ]))), 256))
1574
- ]))
1575
- ], 512)) : f("", !0),
1576
- $.value.showTooltip && e.value.orientation === "vertical" ? (o(!0), n(x, { key: 17 }, L(v.value.end - v.value.start, (t, r) => (o(), n("rect", {
1577
- x: u.value.left + r * p.value,
1578
- y: u.value.top,
1579
- width: p.value,
1580
- height: u.value.height < 0 ? 0 : u.value.height,
1581
- onClick: () => Ut(r),
1582
- onMouseenter: () => Ht(r),
1583
- onMouseleave: () => Bt(r),
1584
- fill: r === q.value || r === Ke.value ? e.value.style.chart.highlighter.color : "transparent",
1585
- style: ne({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1586
- }, null, 44, Jr))), 256)) : f("", !0),
1587
- $.value.showTooltip && e.value.orientation === "horizontal" ? (o(!0), n(x, { key: 18 }, L(v.value.end - v.value.start, (t, r) => (o(), n("rect", {
1588
- x: u.value.left,
1589
- y: u.value.top + r * p.value,
1590
- width: u.value.width < 0 ? 0 : u.value.width,
1591
- height: p.value,
1592
- onClick: () => Ut(r),
1593
- onMouseenter: () => Ht(r),
1594
- onMouseleave: () => Bt(r),
1595
- fill: r === q.value || r === Ke.value ? e.value.style.chart.highlighter.color : "transparent",
1596
- style: ne({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1597
- }, null, 44, Zr))), 256)) : f("", !0),
1598
- Nt.value ? (o(), n("rect", Te({ key: 19 }, Ba.value, {
1599
- "data-start": v.value.start,
1600
- "data-end": v.value.end
1601
- }), null, 16, Qr)) : f("", !0),
1602
- w(a.$slots, "svg", {
1603
- svg: {
1604
- drawingArea: u.value,
1605
- data: C.value
1606
- }
1607
- }, void 0, !0)
1608
- ], 14, cr)),
1609
- a.$slots.watermark ? (o(), n("div", Kr, [
1610
- w(a.$slots, "watermark", B(H({ isPrinting: m(Mt) || m(_t) })), void 0, !0)
1611
- ])) : f("", !0),
1612
- e.value.style.chart.zoom.show && N.value > 6 && fe.value && ea.value ? (o(), ee(or, {
1613
- key: 4,
1614
- ref_key: "chartSlicer",
1615
- ref: be,
1616
- allMinimaps: Ya.value,
1617
- background: e.value.style.chart.zoom.color,
1618
- borderColor: e.value.style.chart.backgroundColor,
1619
- customFormat: e.value.style.chart.zoom.customFormat,
1620
- cutNullValues: !1,
1621
- enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1622
- enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1623
- end: v.value.end,
1624
- focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
1625
- focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
1626
- fontSize: e.value.style.chart.zoom.fontSize,
1627
- immediate: !e.value.style.chart.zoom.preview.enable,
1628
- inputColor: e.value.style.chart.zoom.color,
1629
- isPreview: Nt.value,
1630
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[v.value.start] ? I.value[0].text : "",
1631
- labelRight: e.value.style.chart.grid.x.timeLabels.values[v.value.end - 1] ? I.value.at(-1).text : "",
1632
- max: Math.max(...Xe.dataset.map((t) => t.series.length)),
1633
- min: 0,
1634
- minimap: oe.value,
1635
- minimapCompact: e.value.style.chart.zoom.minimap.compact,
1636
- minimapFrameColor: e.value.style.chart.zoom.minimap.frameColor,
1637
- minimapIndicatorColor: e.value.style.chart.zoom.minimap.indicatorColor,
1638
- minimapMerged: !1,
1639
- minimapSelectedColor: e.value.style.chart.zoom.minimap.selectedColor,
1640
- minimapSelectedColorOpacity: e.value.style.chart.zoom.minimap.selectedColorOpacity,
1641
- minimapSelectedIndex: q.value,
1642
- minimapSelectionRadius: 1,
1643
- preciseLabels: Dt.value.length ? Dt.value : Le.value,
1644
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Xe.dataset.map((t) => t.series.length)),
1645
- refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1646
- selectColor: e.value.style.chart.zoom.highlightColor,
1647
- selectedSeries: qa.value,
1648
- smoothMinimap: !1,
1649
- start: v.value.start,
1650
- textColor: e.value.style.chart.color,
1651
- timeLabels: Le.value,
1652
- usePreciseLabels: e.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !e.value.style.chart.zoom.useDefaultFormat,
1653
- valueEnd: v.value.end,
1654
- valueStart: v.value.start,
1655
- verticalHandles: e.value.style.chart.zoom.minimap.verticalHandles,
1656
- "onUpdate:end": ul,
1657
- "onUpdate:start": il,
1658
- onTrapMouse: Ha,
1659
- onReset: Rt,
1660
- onFutureEnd: l[0] || (l[0] = (t) => Ot("end", t)),
1661
- onFutureStart: l[1] || (l[1] = (t) => Ot("start", t))
1662
- }, {
1663
- "reset-action": S(({ reset: t }) => [
1664
- w(a.$slots, "reset-action", B(H({ reset: t })), void 0, !0)
1665
- ]),
1666
- slotMap: S(({ width: t, height: r, unitW: c }) => [
1667
- (o(!0), n(x, null, L(C.value, (s) => (o(), n("g", {
1668
- key: s.id
1669
- }, [
1670
- (o(!0), n(x, null, L(s.xMinimap({ left: 0, unitW: c }), (b, z) => (o(), n("rect", {
1671
- key: z,
1672
- x: z === 0 ? b - c * (e.value.style.chart.bars.gapRatio / 4) : b - c / 2,
1673
- y: Math.max(0, Math.min(r, s.yMinimap({ minimapH: r })[z])),
1674
- height: s.heightMinimap({ minimapH: r })[z],
1675
- width: [0, N.value - 1].includes(z) ? c * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 : c * (1 - e.value.style.chart.bars.gapRatio / 2),
1676
- fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${s.id})` : s.color,
1677
- stroke: e.value.style.chart.backgroundColor,
1678
- "stroke-width": 0.5,
1679
- rx: "0",
1680
- "stroke-linecap": "round",
1681
- "stroke-linejoin": "round",
1682
- style: ne({
1683
- opacity: z >= D.value.start && z <= D.value.end ? 1 : 0.62
1684
- })
1685
- }, null, 12, jr))), 128))
1686
- ]))), 128))
1687
- ]),
1688
- _: 3
1689
- }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : f("", !0),
1690
- _e(m(wa), {
1691
- show: $.value.showTooltip && Ye.value,
1692
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1693
- color: e.value.style.chart.tooltip.color,
1694
- fontSize: e.value.style.chart.tooltip.fontSize,
1695
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1696
- borderColor: e.value.style.chart.tooltip.borderColor,
1697
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1698
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1699
- position: e.value.style.chart.tooltip.position,
1700
- offsetY: e.value.style.chart.tooltip.offsetY,
1701
- parent: J.value,
1702
- content: Ge.value,
1703
- isFullscreen: me.value,
1704
- isCustom: m(ma)(e.value.style.chart.tooltip.customFormat),
1705
- smooth: e.value.style.chart.tooltip.smooth,
1706
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1707
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1708
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1709
- }, {
1710
- "tooltip-before": S(() => [
1711
- w(a.$slots, "tooltip-before", B(H({ ...We.value })), void 0, !0)
1712
- ]),
1713
- "tooltip-after": S(() => [
1714
- w(a.$slots, "tooltip-after", B(H({ ...We.value })), void 0, !0)
1715
- ]),
1716
- _: 3
1717
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1718
- te("div", {
1719
- id: `legend-bottom-${U.value}`
1720
- }, null, 8, es),
1721
- wt.value ? (o(), ee(Tl, {
1722
- key: 5,
1723
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${U.value}` : `#legend-bottom-${U.value}`
1724
- }, [
1725
- te("div", {
1726
- ref_key: "chartLegend",
1727
- ref: pt
1728
- }, [
1729
- e.value.style.chart.legend.show ? (o(), ee(sr, {
1730
- key: 0,
1731
- legendSet: ut.value,
1732
- config: el.value,
1733
- onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1734
- }, gt({
1735
- item: S(({ legend: t }) => [
1736
- m(xe) ? f("", !0) : (o(), n("div", {
1737
- key: 0,
1738
- onClick: (r) => t.segregate(),
1739
- style: ne(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
1740
- }, E(t.name), 13, ts))
1741
- ]),
1742
- _: 2
1743
- }, [
1744
- a.$slots.pattern ? {
1745
- name: "legend-pattern",
1746
- fn: S(({ legend: t, index: r }) => [
1747
- _e(lr, {
1748
- shape: t.shape,
1749
- radius: 30,
1750
- stroke: "none",
1751
- plot: { x: 30, y: 30 },
1752
- fill: `url(#pattern_${U.value}_${r})`
1753
- }, null, 8, ["shape", "fill"])
1754
- ]),
1755
- key: "0"
1756
- } : void 0
1757
- ]), 1032, ["legendSet", "config"])) : w(a.$slots, "legend", {
1758
- key: 1,
1759
- legend: ut.value
1760
- }, void 0, !0)
1761
- ], 512)
1762
- ], 8, ["to"])) : f("", !0),
1763
- a.$slots.source ? (o(), n("div", {
1764
- key: 6,
1765
- ref_key: "source",
1766
- ref: xt,
1767
- dir: "auto"
1768
- }, [
1769
- w(a.$slots, "source", {}, void 0, !0)
1770
- ], 512)) : f("", !0),
1771
- fe.value && e.value.userOptions.buttons.table ? (o(), ee($l(Se.value.component), Te({ key: 7 }, Se.value.props, {
1772
- ref_key: "tableUnit",
1773
- ref: pe,
1774
- onClose: Qt
1775
- }), gt({
1776
- content: S(() => [
1777
- _e(m(za), {
1778
- colNames: Fe.value.colNames,
1779
- head: Fe.value.head,
1780
- body: Fe.value.body,
1781
- config: Fe.value.config,
1782
- title: e.value.table.useDialog ? "" : Se.value.title,
1783
- withCloseButton: !e.value.table.useDialog,
1784
- onClose: Qt
1785
- }, {
1786
- th: S(({ th: t }) => [
1787
- te("div", { innerHTML: t }, null, 8, as)
1788
- ]),
1789
- td: S(({ td: t }) => [
1790
- ca(E(isNaN(Number(t)) ? t : m(ae)({
1791
- p: e.value.style.chart.bars.dataLabels.prefix,
1792
- v: t,
1793
- s: e.value.style.chart.bars.dataLabels.suffix,
1794
- r: e.value.table.td.roundingValue
1795
- })), 1)
1796
- ]),
1797
- _: 1
1798
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
1799
- ]),
1800
- _: 2
1801
- }, [
1802
- e.value.table.useDialog ? {
1803
- name: "title",
1804
- fn: S(() => [
1805
- ca(E(Se.value.title), 1)
1806
- ]),
1807
- key: "0"
1808
- } : void 0,
1809
- e.value.table.useDialog ? {
1810
- name: "actions",
1811
- fn: S(() => [
1812
- te("button", {
1813
- tabindex: "0",
1814
- class: "vue-ui-user-options-button",
1815
- onClick: l[3] || (l[3] = (t) => nt(e.value.userOptions.callbacks.csv))
1816
- }, [
1817
- _e(m(La), {
1818
- name: "excel",
1819
- stroke: Se.value.props.color
1820
- }, null, 8, ["stroke"])
1821
- ])
1822
- ]),
1823
- key: "1"
1824
- } : void 0
1825
- ]), 1040)) : f("", !0),
1826
- m(xe) ? (o(), ee(ql, { key: 8 })) : f("", !0)
1827
- ], 46, ir));
1828
- }
1829
- }, Ls = /* @__PURE__ */ nr(ls, [["__scopeId", "data-v-dc5fe0a8"]]);
1830
- export {
1831
- Ls as default
1832
- };