vue-data-ui 3.25.5 → 3.25.7

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
  101. package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
  103. package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
  104. package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
  105. package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
  110. package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
  112. package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
  113. package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
  114. package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
  115. package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
  116. package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
  117. package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
  120. package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
  122. package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
  130. package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
  132. package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
  134. package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
  137. package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
  138. package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
  139. package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
  143. package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
  144. package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
  148. package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
  149. package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
  150. package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
  151. package/dist/vue-ui-table-CiccGbRB.js +1352 -0
  152. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  153. package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
  156. package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
  157. package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
  158. package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
  159. package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
  160. package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
  162. package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,2469 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, Jt as i, Lt as a, M as o, P as s, Pt as c, S as l, Ut as u, V as d, X as f, Yt as p, Zt as m, _ as h, b as g, bt as _, c as ee, ft as te, ht as ne, i as v, jt as re, lt as ie, nt as ae, pt as oe, q as se, qt as ce, st as le, t as ue, v as de, w as fe, wt as pe, z as me } from "./lib-Dql7cqyA.js";
3
- import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
4
- import { n as _e, r as ve, t as ye } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as be } from "./useConfig-C_mX5pOZ.js";
6
- import { t as xe } from "./usePrinter-DISD7q5m.js";
7
- import { n as Se, t as Ce } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as we } from "./useNestedProp-Chvyfpl-.js";
9
- import { t as Te } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as Ee } from "./useChartExport-iwOqiIWX.js";
11
- import { t as De } from "./useTransitions-g_zBREk2.js";
12
- import { t as Oe } from "./useStableElementSize-C7KADDKj.js";
13
- import { t as ke } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
- import { t as Ae } from "./img-DhGApYG0.js";
15
- import { n as je } from "./Title-CPHi-evi.js";
16
- import { t as Me } from "./Shape-CIqU-p2F.js";
17
- import { t as Ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
- import { l as Pe, t as Fe } from "./useResponsive-ZtArZtUf.js";
19
- import { t as Ie } from "./DefGrad-DVBqDjhO.js";
20
- import { t as Le } from "./SlicerPreview-GvsdvE-h.js";
21
- import { t as Re } from "./BaseLegendToggle-__JnV08B.js";
22
- import { t as ze } from "./A11yDataTable-DdRsVULz.js";
23
- import { t as Be } from "./useUserOptionState-DK-_1ddE.js";
24
- import { t as Ve } from "./useChartAccessibility-DYqac8yF.js";
25
- import { t as He } from "./Legend-X4kF4PvW.js";
26
- import { t as Ue } from "./vue_ui_stackline-DQqKPA9z.js";
27
- import { Fragment as y, Teleport as We, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as T, mergeProps as Ye, nextTick as Xe, normalizeClass as Ze, normalizeProps as E, normalizeStyle as Qe, onBeforeUnmount as $e, onMounted as et, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as tt, shallowRef as nt, toDisplayString as j, toRefs as rt, unref as M, useSlots as it, watch as at, watchEffect as ot, withCtx as N } from "vue";
28
- //#region src/components/vue-ui-stackline.vue
29
- var st = /* @__PURE__ */ e({ default: () => Gt }), ct = ["id"], lt = ["id"], ut = ["id"], dt = { style: { position: "relative" } }, ft = [
30
- "aria-describedby",
31
- "xmlns",
32
- "viewBox"
33
- ], pt = { key: 0 }, mt = [
34
- "x",
35
- "y",
36
- "width",
37
- "height"
38
- ], ht = { key: 1 }, gt = [
39
- "x1",
40
- "x2",
41
- "y1",
42
- "y2",
43
- "stroke",
44
- "stroke-width",
45
- "stroke-dasharray"
46
- ], _t = [
47
- "x1",
48
- "x2",
49
- "y1",
50
- "y2",
51
- "stroke",
52
- "stroke-width",
53
- "stroke-dasharray"
54
- ], vt = [
55
- "x1",
56
- "x2",
57
- "y1",
58
- "y2",
59
- "stroke",
60
- "stroke-width"
61
- ], yt = [
62
- "x1",
63
- "x2",
64
- "y1",
65
- "y2",
66
- "stroke",
67
- "stroke-width"
68
- ], bt = [
69
- "x",
70
- "y",
71
- "font-size",
72
- "fill",
73
- "font-weight"
74
- ], xt = [
75
- "transform",
76
- "font-size",
77
- "fill",
78
- "font-weight"
79
- ], St = [
80
- "x",
81
- "y",
82
- "width",
83
- "height",
84
- "stroke",
85
- "stroke-width",
86
- "stroke-linecap",
87
- "stroke-linejoin",
88
- "stroke-dasharray"
89
- ], Ct = [
90
- "d",
91
- "fill",
92
- "opacity"
93
- ], wt = [
94
- "d",
95
- "stroke",
96
- "stroke-width"
97
- ], Tt = [
98
- "x1",
99
- "x2",
100
- "y1",
101
- "y2",
102
- "stroke"
103
- ], Et = [
104
- "transform",
105
- "font-size",
106
- "font-weight",
107
- "fill",
108
- "text-anchor"
109
- ], Dt = { key: 0 }, Ot = { key: 1 }, kt = [
110
- "text-anchor",
111
- "font-size",
112
- "font-weight",
113
- "fill",
114
- "stroke",
115
- "transform",
116
- "onClick"
117
- ], At = [
118
- "text-anchor",
119
- "font-size",
120
- "fill",
121
- "transform",
122
- "innerHTML",
123
- "onClick"
124
- ], jt = [
125
- "x",
126
- "y",
127
- "height",
128
- "width",
129
- "fill"
130
- ], Mt = { key: 0 }, Nt = [
131
- "x1",
132
- "x2",
133
- "y1",
134
- "y2",
135
- "stroke",
136
- "stroke-width",
137
- "stroke-dasharray"
138
- ], Pt = { key: 0 }, Ft = [
139
- "transform",
140
- "font-size",
141
- "fill",
142
- "font-weight"
143
- ], It = [
144
- "transform",
145
- "font-size",
146
- "font-weight",
147
- "fill"
148
- ], Lt = ["data-start", "data-end"], Rt = {
149
- key: 0,
150
- style: {
151
- position: "absolute",
152
- top: "100%",
153
- left: "0",
154
- width: "100%"
155
- },
156
- "data-dom-to-png-ignore": "",
157
- "aria-hidden": "true"
158
- }, zt = {
159
- key: 5,
160
- class: "vue-data-ui-watermark"
161
- }, Bt = ["onClick"], Vt = { key: 0 }, Ht = { key: 1 }, Ut = ["innerHTML"], Wt = ["id"], Gt = /*#__PURE__*/ Ne({
162
- __name: "vue-ui-stackline",
163
- props: {
164
- config: {
165
- type: Object,
166
- default() {
167
- return {};
168
- }
169
- },
170
- dataset: {
171
- type: Array,
172
- default() {
173
- return [];
174
- }
175
- },
176
- selectedXIndex: {
177
- type: Number,
178
- default: void 0
179
- }
180
- },
181
- emits: [
182
- "selectDatapoint",
183
- "selectLegend",
184
- "selectTimeLabel",
185
- "selectX",
186
- "copyAlt"
187
- ],
188
- setup(e, { expose: Ne, emit: st }) {
189
- let Gt = Je(() => import("./Tooltip-hhrkQ3Lk.js")), Kt = Je(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), qt = Je(() => import("./vue-ui-accordion-DRf3NQyH.js").then((e) => e.n)), Jt = Je(() => import("./DataTable-COIO9gi4.js")), Yt = Je(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), Xt = Je(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Zt = Je(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), Qt = Je(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_stackline: $t } = be(), { isThemeValid: en, warnInvalidTheme: tn } = Te(), nn = it(), P = e, rn = st, an = b({
190
- get() {
191
- return !!P.dataset && P.dataset.length;
192
- },
193
- set(e) {
194
- return e;
195
- }
196
- }), F = O(null), I = O(se()), on = O(!1), L = O([]), sn = O(0), cn = O(null), ln = O(null), un = O(null), dn = O(null), fn = O(null), pn = O(!1), mn = O(!1), hn = O(0), gn = O(0), _n = O(0), vn = O(!1), yn = O(null), bn = O(null), xn = O(!1), Sn = O(null), Cn = O(null), wn = O(null), Tn = O(null), En = O(null), Dn = nt(null), On = O(!1), kn = O(0), An = O(0), R = O(null), jn = O({
197
- x: 0,
198
- y: 0
199
- }), Mn = O("pointer"), Nn = Oe({
200
- elementRef: Dn,
201
- minimumWidth: 2,
202
- minimumHeight: 2,
203
- stableFramesRequired: 2,
204
- once: !1,
205
- onSizeAccepted: () => {
206
- In();
207
- }
208
- });
209
- function Pn() {
210
- Dn.value = F.value?.parentNode ?? null;
211
- }
212
- function Fn() {
213
- return new Promise((e) => {
214
- requestAnimationFrame(() => {
215
- requestAnimationFrame(e);
216
- });
217
- });
218
- }
219
- async function In() {
220
- let e = ++An.value;
221
- On.value = !1, await Xe(), await Fn(), await Fn(), e === An.value && (kn.value += 1, On.value = !0);
222
- }
223
- let Ln = O(null), Rn = O(!1);
224
- function zn() {
225
- Rn.value = !Rn.value;
226
- }
227
- et(() => {
228
- Pn(), Nn.start(), vn.value = !0, lr(), In();
229
- });
230
- let z = O(Xn());
231
- he({
232
- config: () => z.value,
233
- dataset: () => P.dataset,
234
- component: "VueUiStackline",
235
- rules: [
236
- ge.emptyArray,
237
- {
238
- test: (e) => e.some((e) => e.series.length > 200),
239
- message: [
240
- "👀 Some series have > 200 datapoints, which can impact performance. Consider:",
241
- "",
242
- "▶️ Aggregating data to larger time units, to reduce the number of datapoints.",
243
- "",
244
- "▶️ Using filters to constraint the data to a specific time range."
245
- ]
246
- },
247
- {
248
- test: (e) => e.length > 6,
249
- message: [
250
- "👀 The number of series > 6, which can make the chart hard to read. Consider:",
251
- "",
252
- "▶️ Grouping small values into an \"Other\" category.",
253
- "",
254
- "▶️ Using filters to let users choose a maximum number of series to display."
255
- ]
256
- }
257
- ]
258
- });
259
- let { transitionEnabled: Bn } = De({
260
- config: () => z.value.transitions,
261
- dataset: () => P.dataset
262
- }), B = b(() => z.value.userOptions.useCursorPointer), Vn = b(() => m({
263
- defaultConfig: {
264
- userOptions: { show: !1 },
265
- useCssAnimation: !1,
266
- table: { show: !1 },
267
- tooltip: { show: !1 },
268
- style: { chart: {
269
- backgroundColor: "#99999930",
270
- lines: {
271
- totalValues: { show: !1 },
272
- dataLabels: { show: !1 }
273
- },
274
- grid: {
275
- frame: { stroke: "#6A6A6A" },
276
- scale: {
277
- scaleMin: 0,
278
- scaleMax: 144
279
- },
280
- x: {
281
- axisColor: "#6A6A6A",
282
- linesColor: "#6A6A6A",
283
- axisName: { show: !1 },
284
- timeLabels: { show: !1 }
285
- },
286
- y: {
287
- axisColor: "#6A6A6A",
288
- linesColor: "#6A6A6A",
289
- axisName: { show: !1 },
290
- axisLabels: { show: !1 }
291
- }
292
- },
293
- legend: { backgroundColor: "transparent" },
294
- padding: {
295
- left: 24,
296
- right: 24,
297
- bottom: 12
298
- },
299
- zoom: {
300
- show: !1,
301
- startIndex: null,
302
- endIndex: null,
303
- keepState: !1
304
- }
305
- } }
306
- },
307
- userConfig: z.value.skeletonConfig ?? {}
308
- })), { loading: Hn, FINAL_DATASET: Un, manualLoading: Wn } = Se({
309
- ...rt(P),
310
- FINAL_CONFIG: z,
311
- prepareConfig: Xn,
312
- callback: () => {
313
- Promise.resolve().then(async () => {
314
- (!z.value.style.chart.zoom.keepState || !ti.value || q.value.start === 0 && q.value.end === 0) && await ri();
315
- });
316
- },
317
- skeletonDataset: P.config?.skeletonDataset ?? [{
318
- name: "",
319
- series: [
320
- 3,
321
- 2,
322
- 1,
323
- 5,
324
- 13,
325
- 21,
326
- 8,
327
- 89,
328
- 34,
329
- 55
330
- ],
331
- color: "#8A8A8A"
332
- }, {
333
- name: "",
334
- series: [
335
- 1,
336
- 2,
337
- 3,
338
- 5,
339
- 8,
340
- 13,
341
- 21,
342
- 34,
343
- 55,
344
- 89
345
- ],
346
- color: "#CACACA"
347
- }],
348
- skeletonConfig: m({
349
- defaultConfig: z.value,
350
- userConfig: Vn.value
351
- })
352
- }), { userOptionsVisible: Gn, setUserOptionsVisibility: Kn, keepUserOptionState: qn } = Be({ config: z.value }), { svgRef: V } = Ve({ config: z.value.style.chart.title });
353
- function Jn() {
354
- xn.value = !0, Kn(!0);
355
- }
356
- function Yn() {
357
- Kn(!1), xn.value = !1, R.value = null, Mn.value = "pointer", on.value = !1, $.value = null, rn("selectX", {
358
- index: null,
359
- indexLabel: null,
360
- dataset: null
361
- });
362
- }
363
- function Xn() {
364
- let e = we({
365
- userConfig: P.config,
366
- defaultConfig: $t
367
- }), t = {};
368
- P.config && _(P.config, "style.chart.grid.x.timeLabels.showFirstAndLast") && (e.style.chart.grid.x.timeLabels.showFirstAndLast = !!P.config.style.chart.grid.x.timeLabels.showFirstAndLast);
369
- let n = e.theme;
370
- if (n) {
371
- if (!en.value(e)) tn(e), t = e;
372
- else {
373
- let r = we({
374
- userConfig: Ue[n] || P.config,
375
- defaultConfig: e
376
- });
377
- t = {
378
- ...we({
379
- userConfig: P.config,
380
- defaultConfig: r
381
- }),
382
- customPalette: e.customPalette.length ? e.customPalette : p[n] || a
383
- };
384
- }
385
- } else t = e;
386
- return t;
387
- }
388
- let Zn = b(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Qn = b(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
389
- at(() => P.config, (e) => {
390
- Hn.value || (z.value = Xn()), Gn.value = !z.value.userOptions.showOnChartHover, lr({ resetSlicer: !z.value.style.chart.zoom.keepState }), hn.value += 1, gn.value += 1, _n.value += 1, H.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, U.value.width = z.value.style.chart.width, U.value.height = z.value.style.chart.height, U.value.paddingRatio = {
391
- top: z.value.style.chart.padding.top / z.value.style.chart.height,
392
- right: z.value.style.chart.padding.right / z.value.style.chart.width,
393
- bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
394
- left: z.value.style.chart.padding.left / z.value.style.chart.width
395
- }, Pn(), In(), !z.value.style.chart.zoom.keepState || !ti.value || q.value.start === 0 && q.value.end === 0 ? ri() : Tr();
396
- }, { deep: !0 }), at(() => P.dataset, (e) => {
397
- Array.isArray(e) && e.length > 0 && (Wn.value = !1), z.value.style.chart.zoom.keepState ? Tr() : Or(), Pn(), In();
398
- }, { deep: !0 });
399
- let H = O({
400
- dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
401
- showTable: z.value.table.show,
402
- showTooltip: z.value.style.chart.tooltip.show
403
- });
404
- at(z, () => {
405
- H.value = {
406
- dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
407
- showTable: z.value.table.show,
408
- showTooltip: z.value.style.chart.tooltip.show
409
- };
410
- }, { immediate: !0 });
411
- let { isPrinting: $n, isImaging: er, generatePdf: tr, generateImage: nr } = xe({
412
- elementId: `stackline_${I.value}`,
413
- fileName: z.value.style.chart.title.text || "vue-ui-stackline",
414
- options: z.value.userOptions.print
415
- }), rr = b(() => z.value.userOptions.show && !z.value.style.chart.title.text), U = O({
416
- width: z.value.style.chart.width,
417
- height: z.value.style.chart.height,
418
- paddingRatio: {
419
- top: z.value.style.chart.padding.top / z.value.style.chart.height,
420
- right: z.value.style.chart.padding.right / z.value.style.chart.width,
421
- bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
422
- left: z.value.style.chart.padding.left / z.value.style.chart.width
423
- }
424
- }), ir = b(() => fe(z.value.customPalette)), ar = nt(null), or = nt(null), sr = O(null), cr = b(() => z.value.debug);
425
- function lr({ resetSlicer: e = !0 } = {}) {
426
- if (c(P.dataset) ? (ae({
427
- componentName: "VueUiStackline",
428
- type: "dataset",
429
- debug: cr.value
430
- }), Wn.value = !0) : P.dataset.forEach((e, t) => {
431
- ne({
432
- datasetObject: e,
433
- requiredAttributes: ["name", "series"]
434
- }).forEach((e) => {
435
- an.value = !1, ae({
436
- componentName: "VueUiStackline",
437
- type: "datasetSerieAttribute",
438
- property: e,
439
- index: t,
440
- debug: cr.value
441
- }), Wn.value = !0;
442
- });
443
- }), c(P.dataset) || (Wn.value = z.value.loading), setTimeout(() => {
444
- mn.value = !0;
445
- }, 10), z.value.responsive) {
446
- let e = Pe(() => {
447
- mn.value = !1;
448
- let { width: e, height: t } = Fe({
449
- chart: F.value,
450
- noTitle: dn.value,
451
- title: z.value.style.chart.title.text ? cn.value : null,
452
- legend: z.value.style.chart.legend.show ? ln.value : null,
453
- slicer: z.value.style.chart.zoom.show && K.value > 6 ? un.value.$el : null,
454
- source: fn.value
455
- });
456
- requestAnimationFrame(() => {
457
- U.value.width = e, U.value.height = t - 12, clearTimeout(sr.value), sr.value = setTimeout(() => {
458
- mn.value = !0;
459
- }, 10);
460
- });
461
- });
462
- ar.value && (or.value && ar.value.unobserve(or.value), ar.value.disconnect()), ar.value = new ResizeObserver(e), or.value = F.value.parentNode, ar.value.observe(or.value);
463
- }
464
- e && ri();
465
- }
466
- $e(() => {
467
- Nn.stop(), ar.value && (or.value && ar.value.unobserve(or.value), ar.value.disconnect());
468
- });
469
- let ur = b(() => z.value.style.chart.grid.y.position === "right");
470
- function dr() {
471
- let e = 0;
472
- wn.value && (e = Array.from(wn.value.querySelectorAll("text")).reduce((e, t) => {
473
- let n = t.getComputedTextLength();
474
- return n > e ? n : e;
475
- }, 0));
476
- let t = Cn.value ? Cn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
477
- return {
478
- left: ur.value ? 0 : e + t,
479
- right: ur.value ? e + t : 0,
480
- scaleLabelsWidth: e,
481
- yAxisLabelWidth: t
482
- };
483
- }
484
- let fr = O(0), pr = O(0), mr = O(0);
485
- function hr() {
486
- let e = Tn.value;
487
- if (!e) {
488
- pr.value = 0;
489
- return;
490
- }
491
- try {
492
- let t = e.getBBox();
493
- pr.value = Number.isFinite(t?.height) ? t.height : 0;
494
- } catch {
495
- pr.value = 0;
496
- }
497
- }
498
- function gr() {
499
- mr.value && cancelAnimationFrame(mr.value), mr.value = requestAnimationFrame(() => {
500
- requestAnimationFrame(() => {
501
- hr();
502
- });
503
- });
504
- }
505
- $e(() => {
506
- mr.value && cancelAnimationFrame(mr.value), pr.value = 0, fr.value = 0;
507
- });
508
- let _r = b(() => {
509
- let e = 0;
510
- if (Sn.value) try {
511
- e = Sn.value.getBBox().height;
512
- } catch {
513
- e = 0;
514
- }
515
- let t = z.value.style.chart.grid.x.timeLabels.show ? pr.value : 0;
516
- return e + t;
517
- }), W = b(() => {
518
- kn.value;
519
- let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && P.dataset && P.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
520
- if (z.value.style.chart.grid.y.axisLabels.show) {
521
- let e = dr();
522
- i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
523
- }
524
- let c = z.value.style.chart.padding.top + r, l = t - t * n - fr.value - a, u = e - z.value.style.chart.padding.bottom - _r.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - fr.value - a, p = e - c - z.value.style.chart.padding.bottom - _r.value - r;
525
- return {
526
- chartHeight: Math.max(0, e),
527
- chartWidth: Math.max(0, t),
528
- top: c,
529
- right: Math.max(0, l),
530
- bottom: Math.max(0, u),
531
- left: Math.max(0, d),
532
- width: Math.max(0, f),
533
- height: Math.max(0, p),
534
- offsetLeftAxis: i,
535
- offsetRightAxis: a,
536
- scaleLabelsWidth: o,
537
- yAxisLabelWidth: s
538
- };
539
- }), vr = b(() => {
540
- let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
541
- fill: z.value.style.chart.zoom.preview.fill,
542
- stroke: z.value.style.chart.zoom.preview.stroke,
543
- "stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
544
- "stroke-dasharray": z.value.style.chart.zoom.preview.strokeDasharray,
545
- "stroke-linecap": "round",
546
- "stroke-linejoin": "round",
547
- style: {
548
- pointerEvents: "none",
549
- transition: "none !important",
550
- animation: "none !important"
551
- }
552
- }, d = n / o;
553
- return {
554
- x: e + s * d,
555
- y: t,
556
- width: l * d,
557
- height: r,
558
- ...u
559
- };
560
- }), G = b(() => Un.value.map((e, t) => {
561
- let n = se(), r = l(e.color) || ir.value[t] || a[t] || a[t % a.length];
562
- return {
563
- ...e,
564
- shape: e.shape || "circle",
565
- standalone: !!e.standalone,
566
- series: JSON.parse(JSON.stringify(e.series)).map((e) => z.value.style.chart.lines.distributed ? Math.abs(e) : e),
567
- seriesSource: e.series,
568
- signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
569
- absoluteIndex: t,
570
- id: n,
571
- color: r
572
- };
573
- })), yr = b(() => G.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), br = b(() => G.value.filter((e) => !L.value.includes(e.id) && e.standalone)), K = b(() => {
574
- let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
575
- return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
576
- });
577
- function xr(e) {
578
- Ln.value = e;
579
- }
580
- let q = O({
581
- start: 0,
582
- end: Math.max(...Un.value.map((e) => e.series.length))
583
- }), J = O({
584
- start: 0,
585
- end: Math.max(...Un.value.map((e) => e.series.length))
586
- });
587
- function Sr(e) {
588
- return (q.value.start ?? 0) + (e ?? 0);
589
- }
590
- let Cr = b(() => z.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
591
- function wr(e, t) {
592
- J.value[e] = t;
593
- }
594
- function Tr() {
595
- let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
596
- (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, un.value && (un.value.setStartValue(t), un.value.setEndValue(n));
597
- }
598
- let Er = O(null);
599
- function Dr() {
600
- return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
601
- }
602
- $e(() => {
603
- Er.value && cancelAnimationFrame(Er.value);
604
- });
605
- async function Or({ force: e = !1 } = {}) {
606
- if (z.value.style.chart.zoom.keepState && !e && ti.value && (q.value.start !== 0 || q.value.end !== 0)) {
607
- Tr();
608
- return;
609
- }
610
- ri(), await Xe(), Er.value && cancelAnimationFrame(Er.value), Er.value = requestAnimationFrame(async () => {
611
- await Dr(), ri();
612
- });
613
- }
614
- let kr = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Ar = b(() => ce(yr.value.map((e) => ({
615
- ...e,
616
- series: e.series.map((e) => e ?? 0)
617
- }))).slice(q.value.start, q.value.end)), jr = b(() => L.value.length === G.value.length), Mr = b(() => {
618
- if (!z.value.style.chart.zoom.minimap.show) return [];
619
- let e = G.value.filter((e) => jr.value ? !0 : !L.value.includes(e.id) && !e.standalone);
620
- if (e.length) return ce(e.map((e) => ({
621
- ...e,
622
- series: (e.series || []).map((e) => e ?? 0)
623
- })));
624
- let t = br.value;
625
- if (!t.length) return [];
626
- let n = Math.max(...t.map((e) => e.series.length || 0));
627
- return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
628
- }), Nr = b(() => {
629
- if (!z.value.style.chart.zoom.minimap.show) return [];
630
- let e = G.value.filter((e) => jr.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = br.value, n = e.length ? [{
631
- name: "",
632
- series: Mr.value,
633
- color: "#000000",
634
- isVisible: !0
635
- }] : [], r = t.map((e) => ({
636
- name: e.name || "",
637
- series: (e.series || []).map((e) => e ?? 0),
638
- color: e.color,
639
- isVisible: !0
640
- }));
641
- return n.concat(r);
642
- }), Pr = b(() => ce(yr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
643
- ...e,
644
- series: e.series.map((t, n) => {
645
- let r = t ?? 0;
646
- return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
647
- })
648
- }))).slice(q.value.start, q.value.end)), Fr = b(() => {
649
- let e = yr.value.filter((e) => !L.value.includes(e.id));
650
- return {
651
- positive: ce(e.map((e) => ({
652
- ...e,
653
- series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
654
- }))),
655
- negative: ce(e.map((e) => ({
656
- ...e,
657
- series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
658
- })))
659
- };
660
- }), Ir = b(() => {
661
- let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
662
- return br.value.forEach((r) => {
663
- for (let i = 0; i < e; i += 1) {
664
- let e = r.series[q.value.start + i] ?? 0;
665
- e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
666
- }
667
- }), {
668
- positive: t,
669
- negative: n
670
- };
671
- }), Lr = b(() => Pr.value.map((e, t) => ({
672
- value: e,
673
- sign: e >= 0 ? 1 : -1
674
- })));
675
- function Rr() {
676
- return { y0: Br.value?.[0]?.zero ?? W.value.bottom };
677
- }
678
- function zr(e) {
679
- let { y0: t } = Rr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
680
- if ((Lr.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
681
- let n = Infinity;
682
- for (let t of Y.value || []) {
683
- let r = t?.series?.[e], i = t?.topY?.[e];
684
- (r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
685
- }
686
- return i((Number.isFinite(n) ? n : t) - r - z.value.style.chart.lines.totalValues.offsetY);
687
- }
688
- {
689
- let a = -Infinity;
690
- for (let t of Y.value || []) {
691
- let n = t?.series?.[e], r = t?.topY?.[e];
692
- (n ?? 0) < 0 && Number.isFinite(r) && r > a && (a = r);
693
- }
694
- return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + z.value.style.chart.lines.totalValues.offsetY);
695
- }
696
- }
697
- let Br = b(() => {
698
- let e = Math.max(...Fr.value.positive, 0), t = Math.min(...Fr.value.negative, 0), n = Math.max(...Ir.value.positive, 0), r = Math.min(...Ir.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
699
- -Infinity,
700
- Infinity,
701
- NaN,
702
- void 0,
703
- null
704
- ].includes(a) ? 0 : a, s = z.value.style.chart.grid.scale.scaleMin, c = z.value.style.chart.grid.scale.scaleMax, l = !z.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !z.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !z.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? de(u, d, z.value.style.chart.grid.scale.ticks) : h(u, d, z.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, g = m === 0 || !Number.isFinite(m) ? 1 : m, _ = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], ee = W.value.bottom - W.value.height * (p / g);
705
- return _.map((e) => {
706
- let t = Number(e) || 0, n = W.value.bottom - W.value.height * ((t + p) / g);
707
- return {
708
- zero: ee,
709
- y: n,
710
- x: ur.value ? X.value.right + 8 : X.value.left - 8,
711
- value: t
712
- };
713
- });
714
- }), Vr = O([]), Hr = O([]), Ur = 0;
715
- ot(() => {
716
- let e = ++Ur;
717
- (async () => {
718
- let t = await ye({
719
- values: z.value.style.chart.grid.x.timeLabels.values,
720
- maxDatapoints: K.value,
721
- formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
722
- start: q.value.start,
723
- end: q.value.end
724
- });
725
- e === Ur && (Vr.value = t);
726
- })();
727
- });
728
- let Wr = 0;
729
- ot(() => {
730
- let e = ++Wr;
731
- (async () => {
732
- let t = await ye({
733
- values: z.value.style.chart.grid.x.timeLabels.values,
734
- maxDatapoints: K.value,
735
- formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
736
- start: 0,
737
- end: K.value
738
- });
739
- e === Wr && (Hr.value = t);
740
- })();
741
- });
742
- let Gr = b(() => {
743
- let e = Math.max(1, Math.floor(Number(z.value.style.chart.grid.x.timeLabels.modulo) || 1)), t = (Vr.value || []).map((e) => e?.text ?? ""), n = (Hr.value || []).map((e) => e?.text ?? ""), r = q.value.start ?? 0, i = r > 0 || t.length < n.length;
744
- return te({
745
- configuredModulo: e,
746
- visibleTexts: t,
747
- allTexts: n,
748
- startAbs: r,
749
- isZoomed: i
750
- });
751
- }), Kr = b(() => {
752
- let e = z.value.style.chart.grid.x.timeLabels, t = Vr.value || [], n = Hr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? ""), c = ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Gr.value, o, s, r, i, a);
753
- if (!e.showFirstAndLast || e.showOnlyFirstAndLast || !c.length) return c;
754
- let l = c.length - 1;
755
- return c.map((e, t) => t !== 0 && t !== l ? e : {
756
- ...e,
757
- text: o[t] ?? ""
758
- });
759
- });
760
- ot(() => {
761
- z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Kr.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Tn.value, Sn.value, gr();
762
- }, { flush: "post" });
763
- let qr = O({
764
- months: [],
765
- shortMonths: [],
766
- days: [],
767
- shortDays: []
768
- }), Jr = 0;
769
- ot(() => {
770
- let e = ++Jr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
771
- (async () => {
772
- let n = await ve(t.locale).catch(() => ve("en"));
773
- e === Jr && (qr.value = n.data);
774
- })();
775
- });
776
- let Yr = b(() => {
777
- let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = _e({
778
- useUTC: e.useUTC,
779
- locale: qr.value,
780
- januaryAsYear: e.januaryAsYear
781
- });
782
- return (e, n) => {
783
- let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
784
- return r == null ? "" : t.formatDate(new Date(r), n);
785
- };
786
- }), Xr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
787
- text: Yr.value(t, z.value.style.chart.zoom.timeFormat),
788
- absoluteIndex: t
789
- }))), Zr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
790
- text: Yr.value(t, z.value.style.chart.tooltip.timeFormat),
791
- absoluteIndex: t
792
- }))), Qr = b(() => {
793
- if (!an.value && !Hn.value) return [];
794
- let e = W.value.height, t = Br.value[0] ? Br.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Fr.value.positive, 0), o = Math.min(...Fr.value.negative, 0), s = Math.max(...Ir.value.positive, 0), c = Math.min(...Ir.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : h(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), g = Array(i).fill(0), _ = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
795
- return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
796
- let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
797
- for (let u = 0; u < i; u += 1) {
798
- let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], h = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? h / p : z.value.style.chart.lines.distributed ? h / (Ar.value[u] || 1) : h / p;
799
- if (h >= 0) {
800
- let n = e * Math.abs(_);
801
- if (r.standalone) c[u] = t, l[u] = t - n;
802
- else {
803
- let e = m[u], r = e + n;
804
- c[u] = t - e, l[u] = t - r, m[u] = r;
805
- }
806
- } else {
807
- let n = e * Math.abs(_);
808
- if (r.standalone) c[u] = t, l[u] = t + n;
809
- else {
810
- let e = g[u], r = e + n;
811
- c[u] = t + e, l[u] = t + r, g[u] = r;
812
- }
813
- }
814
- a.push(u), o.push(h), s.push(f ?? (h >= 0 ? 1 : -1));
815
- }
816
- let u = a.map((e) => ({
817
- x: _(e),
818
- y: l[e]
819
- })), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), h = f === 0 ? 1 : f, ee = o.map((e, t) => {
820
- if (z.value.style.chart.lines.distributed && !r.standalone) {
821
- let n = a[t], r = Ar.value[n] || 1;
822
- return (e || 0) / r;
823
- }
824
- return (e || 0) / h;
825
- });
826
- return {
827
- ...r,
828
- x: d,
829
- points: u,
830
- baseY: a.map((e) => c[e]),
831
- topY: a.map((e) => l[e]),
832
- series: o,
833
- signedSeries: s,
834
- proportions: ee,
835
- rel: a,
836
- fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
837
- };
838
- });
839
- }), Y = b(() => {
840
- let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Fr.value.positive, 0), n = Math.min(...Fr.value.negative, 0), r = Math.max(...Ir.value.positive, 0), i = Math.min(...Ir.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), c = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : h(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), l = Number(c.min) || 0, u = Number(c.max) || 0, f = Math.abs(l), p = u + f || 1, m = (e) => {
841
- if (z.value.style.chart.lines.distributed) {
842
- let t = Math.max(0, Math.min(1, e));
843
- return minimapH - minimapH * t;
844
- }
845
- return clampY(minimapH - minimapH * (((e ?? 0) + f) / p));
846
- };
847
- return Qr.value.map((t) => {
848
- let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
849
- let n = r.length;
850
- return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
851
- }, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => m(t || 0, e)), o = ({ minimapH: e }) => {
852
- if (!Number.isFinite(e) || e <= 0) return [];
853
- let t = m(0, e);
854
- return r.map(() => t);
855
- };
856
- if (n === 0) return {
857
- ...t,
858
- points: [],
859
- smoothPath: "",
860
- straightPath: "",
861
- smoothArea: "",
862
- straightArea: "",
863
- xMinimap: i,
864
- yMinimap: a,
865
- yMinimapBase: o
866
- };
867
- let c = t.x.map((e, n) => ({
868
- x: e,
869
- y: t.topY[n]
870
- })), l = t.x.map((e, n) => ({
871
- x: e,
872
- y: t.baseY[n]
873
- })), u = n >= 2 ? s(c) : `M${c[0].x},${c[0].y}`, f = n >= 2 ? d(c) : `M${c[0].x},${c[0].y}`, p = n >= 2 ? `M${e(u)}` : u, h = n >= 2 ? `M${e(f)}` : f, g = "", _ = "";
874
- if (z.value.style.chart.lines.useArea && n >= 2) {
875
- let t = s([...l].reverse()), n = d([...l].reverse()), r = l[l.length - 1];
876
- g = `M${c[0].x},${c[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, _ = `M${c[0].x},${c[0].y} ${e(f)} L${r.x},${r.y} ${e(n)} Z`;
877
- }
878
- return {
879
- ...t,
880
- points: c,
881
- smoothPath: p,
882
- straightPath: h,
883
- smoothArea: g,
884
- straightArea: _,
885
- xMinimap: i,
886
- yMinimap: a,
887
- yMinimapBase: o
888
- };
889
- });
890
- }), $r = b(() => $.value === null || $.value === void 0 ? null : {
891
- timeLabel: bi($.value),
892
- absoluteIndex: $.value + q.value.start,
893
- seriesIndex: $.value,
894
- datapoint: yi.value,
895
- series: Y.value,
896
- config: z.value
897
- }), ei = O(!1), ti = O(!1);
898
- function ni(e) {
899
- let t = K.value;
900
- return e > t ? t : e < 0 || e < q.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
901
- }
902
- function ri() {
903
- if (!ei.value) {
904
- ei.value = !0;
905
- try {
906
- let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
907
- if (n && r <= 0) return;
908
- let i = e ?? 0, a = t == null ? r : Math.min(ni(t + 1), r);
909
- si.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Tr(), ti.value = !0;
910
- } finally {
911
- queueMicrotask(() => {
912
- si.value = !1;
913
- }), ei.value = !1;
914
- }
915
- }
916
- }
917
- function ii(e) {
918
- ei.value || si.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Tr());
919
- }
920
- function ai(e) {
921
- if (ei.value || si.value) return;
922
- let t = ni(e);
923
- t !== q.value.end && (q.value.end = t, J.value.end = t, Tr());
924
- }
925
- let X = b(() => ({
926
- left: W.value.left,
927
- right: W.value.right,
928
- width: W.value.width
929
- })), oi = b(() => {
930
- let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.lines.dataLabels;
931
- return Br.value.map((r) => String(v(e.formatter, r.value, f({
932
- p: t,
933
- v: r.value,
934
- s: n,
935
- r: e.rounding
936
- }), { datapoint: r }) ?? "")).join("|");
937
- });
938
- at([
939
- oi,
940
- () => z.value.style.chart.grid.y.axisLabels.show,
941
- () => z.value.style.chart.grid.y.axisLabels.fontSize,
942
- () => z.value.style.chart.grid.y.axisLabels.bold,
943
- () => z.value.style.chart.grid.y.position
944
- ], () => {
945
- z.value.style.chart.grid.y.axisLabels.show && In();
946
- }, { flush: "post" });
947
- let si = O(!1), ci = b(() => U.value.width), li = b(() => U.value.height);
948
- ke({
949
- timeLabelsEls: Tn,
950
- timeLabels: Vr,
951
- slicer: q,
952
- configRef: z,
953
- rotationPath: [
954
- "style",
955
- "chart",
956
- "grid",
957
- "x",
958
- "timeLabels",
959
- "rotation"
960
- ],
961
- autoRotatePath: [
962
- "style",
963
- "chart",
964
- "grid",
965
- "x",
966
- "timeLabels",
967
- "autoRotate",
968
- "enable"
969
- ],
970
- isAutoSize: !1,
971
- width: ci,
972
- height: li,
973
- rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
974
- });
975
- let ui = O(null);
976
- function di(e) {
977
- let t = V.value;
978
- if (!t) return null;
979
- if (t.createSVGPoint && t.getScreenCTM) {
980
- let n = t.createSVGPoint();
981
- n.x = e.clientX, n.y = e.clientY;
982
- let r = t.getScreenCTM();
983
- if (r) {
984
- let e = n.matrixTransform(r.inverse());
985
- return {
986
- x: e.x,
987
- y: e.y,
988
- ok: !0
989
- };
990
- }
991
- }
992
- let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
993
- x: 0,
994
- y: 0,
995
- width: n.width,
996
- height: n.height
997
- }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
998
- return {
999
- x: (e.clientX - n.left - s) / i + r.x,
1000
- y: (e.clientY - n.top - c) / i + r.y,
1001
- ok: !0
1002
- };
1003
- }
1004
- let fi = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), pi = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
1005
- function Q(e) {
1006
- return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * pi.value;
1007
- }
1008
- function mi(e) {
1009
- if (Z.value <= 1) return {
1010
- x: W.value.left,
1011
- width: W.value.width
1012
- };
1013
- let t = e === 0 ? W.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? W.value.left + W.value.width : (Q(e) + Q(e + 1)) / 2;
1014
- return {
1015
- x: t,
1016
- width: Math.max(0, n - t)
1017
- };
1018
- }
1019
- function hi(e) {
1020
- Rn.value || (fi && cancelAnimationFrame(fi), fi = requestAnimationFrame(() => {
1021
- fi = 0;
1022
- let t = di(e);
1023
- if (!t || !V.value) {
1024
- vi();
1025
- return;
1026
- }
1027
- let { left: n, right: r, top: i, bottom: a } = W.value;
1028
- if (t.x < n || t.x > r || t.y < i || t.y > a) {
1029
- vi();
1030
- return;
1031
- }
1032
- let o = 0;
1033
- if (Z.value > 1) {
1034
- let e = (t.x - n) / pi.value;
1035
- o = Math.round(e);
1036
- } else o = 0;
1037
- o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ui.value !== o && (ui.value = o, Si(!0, o));
1038
- }));
1039
- }
1040
- function gi(e) {
1041
- let t = di(e);
1042
- if (!t || !V.value) return;
1043
- let { left: n, right: r, top: i, bottom: a } = W.value;
1044
- if (t.x < n || t.x > r || t.y < i || t.y > a) return;
1045
- let o = 0;
1046
- if (Z.value > 1) {
1047
- let e = (t.x - n) / pi.value;
1048
- o = Math.round(e);
1049
- } else o = 0;
1050
- o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ra({
1051
- seriesIndex: o,
1052
- datapoint: Yi(o)
1053
- }), _i(o);
1054
- }
1055
- function _i(e) {
1056
- let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
1057
- name: t.name,
1058
- value: t.series[e] === 0 ? 0 : t.series[e] || null,
1059
- proportion: t.proportions[e] || null,
1060
- color: t.color,
1061
- id: t.id
1062
- }));
1063
- z.value.events.datapointClick && z.value.events.datapointClick({
1064
- datapoint: t,
1065
- seriesIndex: e + q.value.start
1066
- }), rn("selectDatapoint", {
1067
- datapoint: t,
1068
- period: Vr.value[e]
1069
- });
1070
- }
1071
- at(() => [
1072
- q.value.start,
1073
- q.value.end,
1074
- Y.value.length
1075
- ], () => {
1076
- let e = Z.value;
1077
- if ($.value != null) {
1078
- if (e <= 0) {
1079
- $.value = null;
1080
- return;
1081
- }
1082
- $.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
1083
- }
1084
- });
1085
- function vi() {
1086
- fi &&= (cancelAnimationFrame(fi), 0), ui.value = null, Si(!1, null);
1087
- }
1088
- let $ = O(null), yi = b(() => {
1089
- let e = $.value, t = e == null ? null : Sr(e);
1090
- return Y.value.map((n) => ({
1091
- slotAbsoluteIndex: n.absoluteIndex,
1092
- shape: n.shape || "circle",
1093
- name: n.name,
1094
- color: n.color,
1095
- value: e == null ? null : n.series.find((t, n) => n === e),
1096
- sourceValue: t == null ? null : n.seriesSource?.[t],
1097
- comments: n.comments || [],
1098
- id: n.id,
1099
- standalone: !!n.standalone
1100
- }));
1101
- });
1102
- function bi(e) {
1103
- if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
1104
- let t = Vr.value?.[e]?.text || null, n = Zr.value?.[e]?.text || null, r = Hr.value?.[e]?.text || null;
1105
- return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1106
- }
1107
- let xi = b(() => {
1108
- let e = z.value.style.chart.tooltip.customFormat, t = [...yi.value].reverse(), r = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = r.map((e) => e.value).filter((e) => pe(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
1109
- if (n(e) && ie(() => e({
1110
- absoluteIndex: $.value + q.value.start,
1111
- seriesIndex: $.value,
1112
- datapoint: yi.value,
1113
- series: G.value,
1114
- config: z.value
1115
- }))) return e({
1116
- absoluteIndex: $.value + q.value.start,
1117
- seriesIndex: $.value,
1118
- datapoint: yi.value,
1119
- series: G.value,
1120
- config: z.value
1121
- });
1122
- let { showValue: s, showTotal: c, totalTranslation: l, showPercentage: u, borderColor: d, roundingValue: p, roundingPercentage: m } = z.value.style.chart.tooltip, h = (e) => !e.shape || ![
1123
- "star",
1124
- "triangle",
1125
- "square",
1126
- "diamond",
1127
- "pentagon",
1128
- "hexagon"
1129
- ].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${me({
1130
- plot: {
1131
- x: 6,
1132
- y: 6
1133
- },
1134
- radius: 5
1135
- })}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1136
- plot: {
1137
- x: 6,
1138
- y: 6
1139
- },
1140
- radius: 6,
1141
- sides: 3,
1142
- rotation: .52
1143
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${o({
1144
- plot: {
1145
- x: 6,
1146
- y: 6
1147
- },
1148
- radius: 6,
1149
- sides: 4,
1150
- rotation: .8
1151
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1152
- plot: {
1153
- x: 6,
1154
- y: 6
1155
- },
1156
- radius: 5,
1157
- sides: 4,
1158
- rotation: 0
1159
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1160
- plot: {
1161
- x: 6,
1162
- y: 6
1163
- },
1164
- radius: 5,
1165
- sides: 5,
1166
- rotation: .95
1167
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${o({
1168
- plot: {
1169
- x: 6,
1170
- y: 6
1171
- },
1172
- radius: 5,
1173
- sides: 6,
1174
- rotation: 0
1175
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, g = (e, t) => {
1176
- let n = t ? f({
1177
- v: isNaN((e.value ?? 0) / (a || 1)) ? 0 : Math.abs(e.value ?? 0) / (a || 1) * 100,
1178
- s: "%",
1179
- r: m
1180
- }) : "", r = s && t ? "(" : "", i = s && t ? ")" : "";
1181
- return `
1182
- <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1183
- <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${h(e)}</div>
1184
- ${e.name}${s || t ? ":" : ""}
1185
- ${s ? v(z.value.style.chart.lines.dataLabels.formatter, e.sourceValue, f({
1186
- p: z.value.style.chart.lines.dataLabels.prefix,
1187
- v: e.sourceValue,
1188
- s: z.value.style.chart.lines.dataLabels.suffix,
1189
- r: p
1190
- }, { datapoint: e })) : ""} ${r}${n}${i}
1191
- </div>
1192
- `;
1193
- }, _ = "", ee = bi($.value);
1194
- return ee && (_ += `<div style="width:100%;text-align:center;border-bottom:1px solid ${d};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), c && r.length > 1 && (_ += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1195
- <span>${l}:</span>
1196
- <span>${v(z.value.style.chart.lines.dataLabels.formatter, le(a), f({
1197
- p: z.value.style.chart.lines.dataLabels.prefix,
1198
- v: le(a),
1199
- s: z.value.style.chart.lines.dataLabels.suffix,
1200
- r: p
1201
- }), { datapoint: {
1202
- name: l,
1203
- value: le(a)
1204
- } })}</span>
1205
- </div>`), r.forEach((e) => {
1206
- _ += g(e, u);
1207
- }), i.length && (_ += `<div style="border-top:1px solid ${yr.value.length ? d : "transparent"}; margin:${yr.value.length ? "6px 0" : "0"};"></div>`, i.forEach((e) => {
1208
- _ += g(e, !1);
1209
- })), `<div>${_}</div>`;
1210
- });
1211
- function Si(e, t = null, n = "pointer") {
1212
- if (jr.value) return;
1213
- Mn.value = n, on.value = e;
1214
- let r = Y.value.map((e) => ({
1215
- name: e.name,
1216
- value: [
1217
- null,
1218
- void 0,
1219
- NaN
1220
- ].includes(e.series[t]) ? null : e.series[t],
1221
- color: e.color
1222
- }));
1223
- e ? (R.value = t, $.value = t, ra({
1224
- seriesIndex: t,
1225
- datapoint: r
1226
- }), z.value.events.datapointEnter && z.value.events.datapointEnter({
1227
- datapoint: r,
1228
- seriesIndex: t + q.value.start
1229
- })) : (R.value = null, $.value = null, rn("selectX", {
1230
- index: null,
1231
- indexLabel: null,
1232
- dataset: null
1233
- }), z.value.events.datapointLeave && z.value.events.datapointLeave({
1234
- datapoint: r,
1235
- seriesIndex: t + q.value.start
1236
- }));
1237
- }
1238
- function Ci(e, t) {
1239
- let n = JSON.parse(JSON.stringify(Y.value)).map((e) => ({
1240
- name: e.name,
1241
- value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
1242
- proportion: e.proportions[t] || null,
1243
- color: e.color,
1244
- id: e.id
1245
- }));
1246
- rn("selectTimeLabel", {
1247
- datapoint: n,
1248
- absoluteIndex: e.absoluteIndex,
1249
- label: e.text
1250
- });
1251
- }
1252
- function wi() {
1253
- L.value.length ? L.value = [] : Ei.value.forEach((e) => {
1254
- L.value.push(e.id);
1255
- }), rn("selectLegend", Y.value);
1256
- }
1257
- function Ti(e) {
1258
- if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
1259
- else {
1260
- if (L.value.length === G.value.length - 1) return;
1261
- L.value.push(e.id);
1262
- }
1263
- rn("selectLegend", Y.value);
1264
- }
1265
- let Ei = b(() => G.value.map((e) => ({
1266
- ...e,
1267
- opacity: L.value.includes(e.id) ? .5 : 1,
1268
- segregate: () => Ti(e),
1269
- isSegregated: L.value.includes(e.id)
1270
- }))), Di = b(() => ({
1271
- cy: "stackline-legend",
1272
- backgroundColor: z.value.style.chart.legend.backgroundColor,
1273
- color: z.value.style.chart.legend.color,
1274
- fontSize: z.value.style.chart.legend.fontSize,
1275
- paddingBottom: 12,
1276
- fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
1277
- }));
1278
- function Oi(e) {
1279
- return G.value.length ? G.value.find((t) => t.name === e) || (cr.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (cr.value && console.warn("VueUiStackline - There are no series to show."), null);
1280
- }
1281
- function ki(e) {
1282
- let t = Oi(e);
1283
- t !== null && L.value.includes(t.id) && Ti({ id: t.id });
1284
- }
1285
- function Ai(e) {
1286
- let t = Oi(e);
1287
- t !== null && (L.value.includes(t.id) || Ti({ id: t.id }));
1288
- }
1289
- let ji = b(() => {
1290
- if (Y.value.length === 0) return {
1291
- head: [],
1292
- body: [],
1293
- config: {},
1294
- columnNames: []
1295
- };
1296
- let e = Y.value.map(({ name: e, color: t }) => ({
1297
- label: e,
1298
- color: t
1299
- })), t = [];
1300
- return Kr.value.forEach((e) => {
1301
- let n = e.absoluteIndex, r = [z.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
1302
- G.value.forEach((e) => {
1303
- let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
1304
- r.push(i);
1305
- }), t.push(r);
1306
- }), {
1307
- head: e,
1308
- body: t
1309
- };
1310
- });
1311
- function Mi(e = null) {
1312
- let n = [
1313
- [z.value.style.chart.title.text],
1314
- [z.value.style.chart.title.subtitle.text],
1315
- [""]
1316
- ], i = ["", ...ji.value.head.map((e) => e.label)], a = ji.value.body, o = n.concat([i]).concat(a), s = r(o);
1317
- e ? e(s) : t({
1318
- csvContent: s,
1319
- title: z.value.style.chart.title.text || "vue-ui-stackline"
1320
- });
1321
- }
1322
- let Ni = b(() => {
1323
- let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [], n = Math.max(0, q.value.end - q.value.start);
1324
- for (let e = 0; e < n; e += 1) {
1325
- let n = Sr(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? Vr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
1326
- let n = t.series?.[e] ?? 0;
1327
- return Number(n.toFixed(z.value.table.td.roundingValue));
1328
- }), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
1329
- t.push([r].concat(i, Number(a.toFixed(z.value.table.td.roundingValue))));
1330
- }
1331
- return {
1332
- head: e,
1333
- body: t,
1334
- config: {
1335
- th: {
1336
- backgroundColor: z.value.table.th.backgroundColor,
1337
- color: z.value.table.th.color,
1338
- outline: z.value.table.th.outline
1339
- },
1340
- td: {
1341
- backgroundColor: z.value.table.td.backgroundColor,
1342
- color: z.value.table.td.color,
1343
- outline: z.value.table.td.outline
1344
- },
1345
- breakpoint: z.value.table.responsiveBreakpoint
1346
- },
1347
- colNames: [z.value.table.columnNames.period].concat(Y.value.map((e) => e.name), z.value.table.columnNames.total)
1348
- };
1349
- }), Pi = b(() => z.value.style.chart.backgroundColor), Fi = b(() => z.value.style.chart.legend), Ii = b(() => z.value.style.chart.title), { isCallbackImaging: Li, isCallbackSvg: Ri, generateSvg: zi, onGenerateImage: Bi } = Ee({
1350
- svg: V,
1351
- title: Ii,
1352
- legend: Fi,
1353
- legendItems: Ei,
1354
- backgroundColor: Pi,
1355
- getSvgCallback: () => z.value.userOptions.callbacks.svg,
1356
- generateImage: nr
1357
- });
1358
- async function Vi({ scale: e = 2 } = {}) {
1359
- if (!F.value) return;
1360
- let { imageUri: t, base64: n } = await Ae({
1361
- domElement: F.value,
1362
- base64: !0,
1363
- img: !0,
1364
- scale: e
1365
- }), r = F.value.getBoundingClientRect(), i = {
1366
- width: r.width,
1367
- height: r.height,
1368
- aspectRatio: r.height ? r.width / r.height : 0
1369
- }, a = await oe(t, e) ?? i;
1370
- return {
1371
- imageUri: t,
1372
- base64: n,
1373
- title: z.value.style.chart.title.text,
1374
- ...a
1375
- };
1376
- }
1377
- let Hi = b(() => {
1378
- let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
1379
- return {
1380
- component: e ? Qt : qt,
1381
- title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
1382
- props: e ? {
1383
- backgroundColor: z.value.table.th.backgroundColor,
1384
- color: z.value.table.th.color,
1385
- headerColor: z.value.table.th.color,
1386
- headerBg: z.value.table.th.backgroundColor,
1387
- isFullscreen: pn.value,
1388
- fullscreenParent: F.value,
1389
- forcedWidth: Math.min(800, window.innerWidth * .8),
1390
- isCursorPointer: B.value
1391
- } : {
1392
- hideDetails: !0,
1393
- config: {
1394
- open: t,
1395
- maxHeight: 1e4,
1396
- body: {
1397
- backgroundColor: z.value.style.chart.backgroundColor,
1398
- color: z.value.style.chart.color
1399
- },
1400
- head: {
1401
- backgroundColor: z.value.style.chart.backgroundColor,
1402
- color: z.value.style.chart.color
1403
- }
1404
- }
1405
- }
1406
- };
1407
- });
1408
- at(() => H.value.showTable, (e) => {
1409
- z.value.table.show || (e && z.value.table.useDialog && yn.value ? yn.value.open() : "close" in yn.value && yn.value.close());
1410
- });
1411
- function Ui() {
1412
- H.value.showTable = !1, bn.value && bn.value.setTableIconState(!1);
1413
- }
1414
- function Wi(e) {
1415
- pn.value = e, sn.value += 1;
1416
- }
1417
- function Gi() {
1418
- H.value.showTable = !H.value.showTable;
1419
- }
1420
- function Ki() {
1421
- H.value.dataLabels.show = !H.value.dataLabels.show;
1422
- }
1423
- function qi() {
1424
- H.value.showTooltip = !H.value.showTooltip;
1425
- }
1426
- function Ji() {
1427
- return Y.value;
1428
- }
1429
- function Yi(e) {
1430
- let t = e ?? 0, n = Sr(t);
1431
- return JSON.parse(JSON.stringify(Y.value)).map((e) => {
1432
- let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
1433
- return {
1434
- name: e.name,
1435
- absoluteIndex: e.absoluteIndex,
1436
- value: a,
1437
- proportion: e.proportions?.[t] || null,
1438
- color: e.color,
1439
- id: e.id,
1440
- timeLabel: Hr.value?.[n] || null
1441
- };
1442
- });
1443
- }
1444
- let Xi = b(() => Array(K.value).fill(0).map((e, t) => Yi(t)));
1445
- at(() => P.selectedXIndex, (e) => {
1446
- if ([null, void 0].includes(P.selectedXIndex)) {
1447
- $.value = null;
1448
- return;
1449
- }
1450
- let t = e - q.value.start;
1451
- t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
1452
- }, { immediate: !0 });
1453
- let Zi = b(() => {
1454
- if (z.value.style.chart.lines.distributed) return {
1455
- min: -1,
1456
- max: 1
1457
- };
1458
- let e = yr.value, t = br.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
1459
- e.forEach((e) => {
1460
- for (let t = 0; t < n; t += 1) {
1461
- let n = e.series[t] ?? 0;
1462
- n >= 0 ? r[t] += n : i[t] += n;
1463
- }
1464
- });
1465
- let a = Array(n).fill(0), o = Array(n).fill(0);
1466
- t.forEach((e) => {
1467
- for (let t = 0; t < n; t += 1) {
1468
- let n = e.series[t] ?? 0;
1469
- n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
1470
- }
1471
- });
1472
- let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.style.chart.grid.scale.scaleMin, u = z.value.style.chart.grid.scale.scaleMax, d = z.value.style.chart.grid.scale.ticks, f = !z.value.style.chart.lines.distributed && (l !== null || u !== null) ? de(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : h(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
1473
- return {
1474
- min: Number(f.min) || 0,
1475
- max: Number(f.max) || 0
1476
- };
1477
- });
1478
- function Qi({ minimapH: e, unitW: t }) {
1479
- let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1480
- if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
1481
- let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), a = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
1482
- if (a <= 0) return "";
1483
- let o = a === 1 ? [t * .5] : Array.from({ length: a }, (e, n) => n * t);
1484
- if (z.value.style.chart.lines.distributed) {
1485
- let t = Array.from({ length: a }, (e, t) => {
1486
- let n = 0;
1487
- return r.forEach((e) => {
1488
- let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
1489
- r != null && !Number.isNaN(r) && (n += Math.abs(r));
1490
- }), n || 1;
1491
- }), c = (t) => e - e * Math.max(0, Math.min(1, t || 0)), l = [], u = Array(a).fill(0);
1492
- return r.forEach((e) => {
1493
- let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), f = Array(a);
1494
- for (let e = 0; e < a; e += 1) {
1495
- let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
1496
- f[e] = u[e], u[e] += a, i[e] = u[e];
1497
- }
1498
- let p = i.map(c), m = f.map(c), h = o.map((e, t) => ({
1499
- x: e,
1500
- y: p[t]
1501
- })), g = o.map((e, t) => ({
1502
- x: e,
1503
- y: m[t]
1504
- })), _ = s(h), ee = s([...g].reverse()), te = d(h), ne = d([...g].reverse()), v = g[g.length - 1];
1505
- if (z.value.style.chart.lines.useArea) {
1506
- let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${h[0].x},${h[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
1507
- l.push(`<path d="${t}"
1508
- fill="${nn.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
1509
- opacity="${z.value.style.chart.lines.areaOpacity}"
1510
- stroke="none" />`);
1511
- }
1512
- let re = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)}` : `M${h[0].x},${h[0].y} ${n(te)}`;
1513
- l.push(`<path d="${re}"
1514
- fill="none"
1515
- stroke="${e.color}"
1516
- stroke-width="${z.value.style.chart.lines.strokeWidth}"
1517
- stroke-linecap="round" />`);
1518
- }), i.length && i.forEach((e) => {
1519
- let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => c(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
1520
- x: e,
1521
- y: i[t]
1522
- })), f = s(u), p = d(u), m = z.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(f)}` : `M${u[0].x},${u[0].y} ${n(p)}`;
1523
- l.push(`<path d="${m}"
1524
- fill="none"
1525
- stroke="${e.color}"
1526
- stroke-width="${z.value.style.chart.lines.strokeWidth}"
1527
- stroke-linecap="round" />`);
1528
- }), l.join("");
1529
- }
1530
- let c = Zi.value.min, l = Zi.value.max, u = Math.abs(c), f = l + u || 1, p = (t) => Math.max(0, Math.min(e, t)), m = (t) => p(e - e * (((t ?? 0) + u) / f)), h = [];
1531
- if (r.length) {
1532
- let e = Array(a).fill(0), t = Array(a).fill(0);
1533
- r.forEach((r) => {
1534
- let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series, c = Array(a), l = Array(a);
1535
- for (let n = 0; n < a; n += 1) {
1536
- let r = i?.[n] ?? 0;
1537
- r >= 0 ? (l[n] = e[n], e[n] += r, c[n] = e[n]) : (l[n] = t[n], t[n] += r, c[n] = t[n]);
1538
- }
1539
- let u = c.map(m), f = l.map(m), p = o.map((e, t) => ({
1540
- x: e,
1541
- y: u[t]
1542
- })), g = o.map((e, t) => ({
1543
- x: e,
1544
- y: f[t]
1545
- })), _ = s(p), ee = s([...g].reverse()), te = d(p), ne = d([...g].reverse()), v = g[g.length - 1];
1546
- if (z.value.style.chart.lines.useArea) {
1547
- let e = z.value.style.chart.lines.smooth ? `M${p[0].x},${p[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${p[0].x},${p[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
1548
- h.push(`<path d="${e}"
1549
- fill="${nn.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
1550
- opacity="${z.value.style.chart.lines.areaOpacity}"
1551
- stroke="none" />`);
1552
- }
1553
- let re = z.value.style.chart.lines.smooth ? `M${p[0].x},${p[0].y} ${n(_)}` : `M${p[0].x},${p[0].y} ${n(te)}`;
1554
- h.push(`<path d="${re}"
1555
- fill="none"
1556
- stroke="${r.color}"
1557
- stroke-width="${z.value.style.chart.lines.strokeWidth}"
1558
- stroke-linecap="round" />`);
1559
- });
1560
- }
1561
- return i.length && i.forEach((e) => {
1562
- let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(m), r = o.map((e, n) => ({
1563
- x: e,
1564
- y: t[n]
1565
- })), i = s(r), a = d(r), c = z.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
1566
- h.push(`<path d="${c}"
1567
- fill="none"
1568
- stroke="${e.color}"
1569
- stroke-width="${z.value.style.chart.lines.strokeWidth}"
1570
- stroke-linecap="round" />`);
1571
- }), h.join("");
1572
- }
1573
- function $i(e, t) {
1574
- let n = z.value.style.chart.lines, r = n.dataLabels;
1575
- return n.showDistributedPercentage && n.distributed ? Qn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Qn.value ? (Zn.value && cr.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > ea.value * r.hideUnderPercentage / 100) : Zn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
1576
- }
1577
- let ea = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
1578
- function ta(e, t, n, r, i) {
1579
- let a = i === -1 && e >= 0 ? -e : e;
1580
- return v(z.value.style.chart.lines.dataLabels.formatter, a, f({
1581
- p: z.value.style.chart.lines.dataLabels.prefix,
1582
- v: a,
1583
- s: z.value.style.chart.lines.dataLabels.suffix,
1584
- r: z.value.style.chart.lines.dataLabels.rounding
1585
- }), {
1586
- datapoint: t,
1587
- seriesIndex: n,
1588
- datapointIndex: r
1589
- });
1590
- }
1591
- function na(e, t, n, r) {
1592
- return v(z.value.style.chart.lines.dataLabels.formatter, e, f({
1593
- v: isNaN(e) ? 0 : e,
1594
- s: "%",
1595
- r: z.value.style.chart.lines.dataLabels.rounding
1596
- }), {
1597
- datapoint: t,
1598
- seriesIndex: n,
1599
- datapointIndex: r
1600
- });
1601
- }
1602
- function ra({ seriesIndex: e, datapoint: t }) {
1603
- let n = q.value.start + e;
1604
- rn("selectX", {
1605
- dataset: t,
1606
- index: n,
1607
- indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
1608
- });
1609
- }
1610
- async function ia() {
1611
- if (rn("copyAlt", {
1612
- config: z.value,
1613
- dataset: Y.value
1614
- }), !z.value.userOptions.callbacks.altCopy) {
1615
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1616
- return;
1617
- }
1618
- await Promise.resolve(z.value.userOptions.callbacks.altCopy({
1619
- config: z.value,
1620
- dataset: Y.value
1621
- }));
1622
- }
1623
- let aa = O(!1);
1624
- function oa() {
1625
- R.value = null, aa.value = !0;
1626
- }
1627
- function sa() {
1628
- R.value = null, Mn.value = "pointer", on.value = !1, $.value = null, rn("selectX", {
1629
- index: null,
1630
- indexLabel: null,
1631
- dataset: null
1632
- }), aa.value = !1;
1633
- }
1634
- function ca(e) {
1635
- if (!V.value || Rn.value || document.activeElement !== V.value || jr.value || !Z.value) return;
1636
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1637
- if (!t && !n && !r && !i) return;
1638
- if (e.preventDefault(), e.stopPropagation(), i) {
1639
- R.value = null, Mn.value = "pointer", on.value = !1, $.value = null, rn("selectX", {
1640
- index: null,
1641
- indexLabel: null,
1642
- dataset: null
1643
- });
1644
- return;
1645
- }
1646
- if (r) {
1647
- if (R.value === null) return;
1648
- _i(R.value);
1649
- return;
1650
- }
1651
- let a = R.value, o = ui.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
1652
- s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a, la(a), Si(!0, a, "keyboard");
1653
- }
1654
- function la(e) {
1655
- if (!Number.isFinite(e) || !V.value) return;
1656
- let t = W.value.left + e * pi.value, n = W.value.top + W.value.height / 2, r = i(t, n, V.value);
1657
- r && (jn.value = r);
1658
- }
1659
- let ua = b(() => ({
1660
- headers: Ni.value?.colNames ?? [],
1661
- rows: Ni.value?.body ?? []
1662
- }));
1663
- return Ne({
1664
- getData: Ji,
1665
- getImage: Vi,
1666
- generatePdf: tr,
1667
- generateCsv: Mi,
1668
- generateImage: nr,
1669
- generateSvg: zi,
1670
- hideSeries: Ai,
1671
- showSeries: ki,
1672
- toggleTable: Gi,
1673
- toggleLabels: Ki,
1674
- toggleTooltip: qi,
1675
- toggleAnnotator: zn,
1676
- toggleFullscreen: Wi,
1677
- copyAlt: ia
1678
- }), (t, n) => (D(), C("div", {
1679
- id: `stackline_${I.value}`,
1680
- ref_key: "stacklineChart",
1681
- ref: F,
1682
- class: Ze({
1683
- "vue-data-ui-component": !0,
1684
- "vue-ui-stackline": !0,
1685
- "vue-data-ui-wrapper-fullscreen": pn.value
1686
- }),
1687
- style: Qe(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
1688
- onMouseenter: Jn,
1689
- onMouseleave: Yn
1690
- }, [
1691
- w("div", {
1692
- id: `chart-instructions-${I.value}`,
1693
- class: "sr-only"
1694
- }, [w("p", null, j(z.value.a11y.translations.keyboardNavigation), 1)], 8, lt),
1695
- ua.value?.rows?.length ? (D(), x(ze, {
1696
- key: 0,
1697
- uid: I.value,
1698
- head: ua.value.headers,
1699
- body: ua.value.rows,
1700
- notice: z.value.a11y.translations.tableAvailable,
1701
- caption: z.value.a11y.translations.tableCaption
1702
- }, null, 8, [
1703
- "uid",
1704
- "head",
1705
- "body",
1706
- "notice",
1707
- "caption"
1708
- ])) : S("", !0),
1709
- z.value.userOptions.buttons.annotator ? (D(), x(M(Yt), {
1710
- key: 1,
1711
- svgRef: M(V),
1712
- backgroundColor: z.value.style.chart.backgroundColor,
1713
- color: z.value.style.chart.color,
1714
- active: Rn.value,
1715
- isCursorPointer: B.value,
1716
- palette: z.value.userOptions.annotatorPalette,
1717
- onClose: zn
1718
- }, {
1719
- "annotator-action-close": N(() => [A(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1720
- "annotator-action-color": N(({ color: e }) => [A(t.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
1721
- "annotator-action-draw": N(({ mode: e }) => [A(t.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
1722
- "annotator-action-undo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
1723
- "annotator-action-redo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
1724
- "annotator-action-delete": N(({ disabled: e }) => [A(t.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
1725
- _: 3
1726
- }, 8, [
1727
- "svgRef",
1728
- "backgroundColor",
1729
- "color",
1730
- "active",
1731
- "isCursorPointer",
1732
- "palette"
1733
- ])) : S("", !0),
1734
- A(t.$slots, "userConfig", {}, void 0, !0),
1735
- rr.value ? (D(), C("div", {
1736
- key: 2,
1737
- ref_key: "noTitle",
1738
- ref: dn,
1739
- class: "vue-data-ui-no-title-space",
1740
- style: "height:36px; width: 100%;background:transparent"
1741
- }, null, 512)) : S("", !0),
1742
- z.value.style.chart.title.text ? (D(), C("div", {
1743
- key: 3,
1744
- ref_key: "chartTitle",
1745
- ref: cn,
1746
- style: "width:100%;background:transparent;"
1747
- }, [(D(), x(je, {
1748
- key: `title_${hn.value}`,
1749
- config: {
1750
- title: {
1751
- cy: "stackline-title",
1752
- ...z.value.style.chart.title
1753
- },
1754
- subtitle: {
1755
- cy: "stackline-subtitle",
1756
- ...z.value.style.chart.title.subtitle
1757
- }
1758
- }
1759
- }, null, 8, ["config"]))], 512)) : S("", !0),
1760
- w("div", { id: `legend-top-${I.value}` }, null, 8, ut),
1761
- z.value.userOptions.show && an.value && (M(qn) || M(Gn)) ? (D(), x(M(Xt), {
1762
- ref_key: "userOptionsRef",
1763
- ref: bn,
1764
- key: `user_option_${sn.value}`,
1765
- backgroundColor: z.value.style.chart.backgroundColor,
1766
- color: z.value.style.chart.color,
1767
- isPrinting: M($n),
1768
- isImaging: M(er),
1769
- uid: I.value,
1770
- hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
1771
- hasPdf: z.value.userOptions.buttons.pdf,
1772
- hasImg: z.value.userOptions.buttons.img,
1773
- hasSvg: z.value.userOptions.buttons.svg,
1774
- hasXls: z.value.userOptions.buttons.csv,
1775
- hasTable: z.value.userOptions.buttons.table,
1776
- hasLabel: z.value.userOptions.buttons.labels,
1777
- hasFullscreen: z.value.userOptions.buttons.fullscreen,
1778
- hasAltCopy: z.value.userOptions.buttons.altCopy,
1779
- isFullscreen: pn.value,
1780
- chartElement: F.value,
1781
- position: z.value.userOptions.position,
1782
- isTooltip: H.value.showTooltip,
1783
- titles: { ...z.value.userOptions.buttonTitles },
1784
- hasAnnotator: z.value.userOptions.buttons.annotator,
1785
- isAnnotation: Rn.value,
1786
- callbacks: z.value.userOptions.callbacks,
1787
- printScale: z.value.userOptions.print.scale,
1788
- tableDialog: z.value.table.useDialog,
1789
- isCursorPointer: B.value,
1790
- onToggleFullscreen: Wi,
1791
- onGeneratePdf: M(tr),
1792
- onGenerateCsv: Mi,
1793
- onGenerateImage: M(Bi),
1794
- onGenerateSvg: M(zi),
1795
- onToggleTable: Gi,
1796
- onToggleLabels: Ki,
1797
- onToggleTooltip: qi,
1798
- onToggleAnnotator: zn,
1799
- onCopyAlt: ia,
1800
- style: Qe({ visibility: M(qn) ? M(Gn) ? "visible" : "hidden" : "visible" })
1801
- }, Ge({ _: 2 }, [
1802
- t.$slots.menuIcon ? {
1803
- name: "menuIcon",
1804
- fn: N(({ isOpen: e, color: n }) => [A(t.$slots, "menuIcon", E(T({
1805
- isOpen: e,
1806
- color: n
1807
- })), void 0, !0)]),
1808
- key: "0"
1809
- } : void 0,
1810
- t.$slots.optionTooltip ? {
1811
- name: "optionTooltip",
1812
- fn: N(() => [A(t.$slots, "optionTooltip", {}, void 0, !0)]),
1813
- key: "1"
1814
- } : void 0,
1815
- t.$slots.optionPdf ? {
1816
- name: "optionPdf",
1817
- fn: N(() => [A(t.$slots, "optionPdf", {}, void 0, !0)]),
1818
- key: "2"
1819
- } : void 0,
1820
- t.$slots.optionCsv ? {
1821
- name: "optionCsv",
1822
- fn: N(() => [A(t.$slots, "optionCsv", {}, void 0, !0)]),
1823
- key: "3"
1824
- } : void 0,
1825
- t.$slots.optionImg ? {
1826
- name: "optionImg",
1827
- fn: N(() => [A(t.$slots, "optionImg", {}, void 0, !0)]),
1828
- key: "4"
1829
- } : void 0,
1830
- t.$slots.optionSvg ? {
1831
- name: "optionSvg",
1832
- fn: N(() => [A(t.$slots, "optionSvg", {}, void 0, !0)]),
1833
- key: "5"
1834
- } : void 0,
1835
- t.$slots.optionTable ? {
1836
- name: "optionTable",
1837
- fn: N(() => [A(t.$slots, "optionTable", {}, void 0, !0)]),
1838
- key: "6"
1839
- } : void 0,
1840
- t.$slots.optionLabels ? {
1841
- name: "optionLabels",
1842
- fn: N(() => [A(t.$slots, "optionLabels", {}, void 0, !0)]),
1843
- key: "7"
1844
- } : void 0,
1845
- t.$slots.optionFullscreen ? {
1846
- name: "optionFullscreen",
1847
- fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [A(t.$slots, "optionFullscreen", E(T({
1848
- toggleFullscreen: e,
1849
- isFullscreen: n
1850
- })), void 0, !0)]),
1851
- key: "8"
1852
- } : void 0,
1853
- t.$slots.optionAnnotator ? {
1854
- name: "optionAnnotator",
1855
- fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [A(t.$slots, "optionAnnotator", E(T({
1856
- toggleAnnotator: e,
1857
- isAnnotator: n
1858
- })), void 0, !0)]),
1859
- key: "9"
1860
- } : void 0,
1861
- t.$slots.optionAltCopy ? {
1862
- name: "optionAltCopy",
1863
- fn: N(({ altCopy: e }) => [A(t.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
1864
- key: "10"
1865
- } : void 0,
1866
- t.$slots["custom-menu-before"] ? {
1867
- name: "custom-menu-before",
1868
- fn: N(() => [A(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1869
- key: "11"
1870
- } : void 0,
1871
- t.$slots["custom-menu-after"] ? {
1872
- name: "custom-menu-after",
1873
- fn: N(() => [A(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1874
- key: "12"
1875
- } : void 0
1876
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : S("", !0),
1877
- w("div", dt, [(D(), C("svg", {
1878
- ref_key: "svgRef",
1879
- ref: V,
1880
- "aria-describedby": `chart-instructions-${I.value}`,
1881
- xmlns: M(ue),
1882
- viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
1883
- class: Ze({
1884
- "vue-data-ui-loading": M(Hn),
1885
- "vue-data-ui-fullscreen--on": pn.value,
1886
- "vue-data-ui-fulscreen--off": !pn.value,
1887
- "vue-data-ui-no-transition": !M(Bn)
1888
- }),
1889
- style: Qe(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
1890
- role: "img",
1891
- "aria-live": "polite",
1892
- tabindex: "0",
1893
- preserveAspectRatio: "xMidYMid",
1894
- onMousemove: hi,
1895
- onMouseleave: vi,
1896
- onClick: gi,
1897
- onFocus: oa,
1898
- onBlur: sa,
1899
- onKeydown: ca
1900
- }, [
1901
- qe(M(Zt)),
1902
- (D(!0), C(y, null, k(yr.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs", pt, [A(t.$slots, "pattern", Ye({ ref_for: !0 }, {
1903
- seriesIndex: e.absoluteIndex,
1904
- patternId: `pattern_${I.value}_${e.absoluteIndex}`
1905
- }), void 0, !0)])) : S("", !0)], 64))), 256)),
1906
- t.$slots["chart-background"] ? (D(), C("foreignObject", {
1907
- key: 0,
1908
- x: X.value.left,
1909
- y: W.value.top,
1910
- width: X.value.width,
1911
- height: W.value.height,
1912
- style: { pointerEvents: "none" }
1913
- }, [A(t.$slots, "chart-background", {}, void 0, !0)], 8, mt)) : S("", !0),
1914
- z.value.style.chart.lines.gradient.show ? (D(), C("defs", ht, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), x(Ie, {
1915
- t: "linear",
1916
- id: `gradient_${e.id}`,
1917
- key: `gradient_${e.id}_${t}`,
1918
- x1: "0%",
1919
- y1: "0%",
1920
- x2: "0%",
1921
- y2: "100%",
1922
- stops: [[
1923
- "0%",
1924
- e.color,
1925
- 1
1926
- ], [
1927
- "100%",
1928
- M(re)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
1929
- 1
1930
- ]]
1931
- }, null, 8, ["id", "stops"]))), 128))])) : S("", !0),
1932
- z.value.style.chart.grid.x.showHorizontalLines ? (D(!0), C(y, { key: 2 }, k(Br.value, (e, t) => (D(), C("line", {
1933
- x1: X.value.left,
1934
- x2: X.value.right,
1935
- y1: e.y,
1936
- y2: e.y,
1937
- stroke: z.value.style.chart.grid.x.linesColor,
1938
- "stroke-width": z.value.style.chart.grid.x.linesThickness,
1939
- "stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
1940
- "stroke-linecap": "round"
1941
- }, null, 8, gt))), 256)) : S("", !0),
1942
- z.value.style.chart.grid.y.showVerticalLines ? (D(!0), C(y, { key: 3 }, k(q.value.end - q.value.start, (e, t) => (D(), C("line", {
1943
- x1: Q(t),
1944
- x2: Q(t),
1945
- y1: W.value.top,
1946
- y2: W.value.bottom,
1947
- stroke: z.value.style.chart.grid.y.linesColor,
1948
- "stroke-width": z.value.style.chart.grid.y.linesThickness,
1949
- "stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
1950
- "stroke-linecap": "round"
1951
- }, null, 8, _t))), 256)) : S("", !0),
1952
- z.value.style.chart.grid.x.showAxis ? (D(), C("line", {
1953
- key: 4,
1954
- x1: X.value.left,
1955
- x2: X.value.right,
1956
- y1: W.value.bottom,
1957
- y2: W.value.bottom,
1958
- stroke: z.value.style.chart.grid.x.axisColor,
1959
- "stroke-width": z.value.style.chart.grid.x.axisThickness,
1960
- "stroke-linecap": "round",
1961
- "stroke-linejoin": "round"
1962
- }, null, 8, vt)) : S("", !0),
1963
- z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (D(), C("line", {
1964
- key: 5,
1965
- x1: ur.value ? X.value.right : X.value.left,
1966
- x2: ur.value ? X.value.right : X.value.left,
1967
- y1: W.value.top,
1968
- y2: W.value.bottom,
1969
- stroke: z.value.style.chart.grid.y.axisColor,
1970
- "stroke-width": z.value.style.chart.grid.y.axisThickness,
1971
- "stroke-linecap": "round",
1972
- "stroke-linejoin": "round"
1973
- }, null, 8, yt)) : S("", !0),
1974
- z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (D(), C("text", {
1975
- key: 6,
1976
- ref_key: "xAxisLabel",
1977
- ref: Sn,
1978
- x: W.value.left + W.value.width / 2,
1979
- y: W.value.chartHeight - 3,
1980
- "font-size": z.value.style.chart.grid.x.axisName.fontSize,
1981
- fill: z.value.style.chart.grid.x.axisName.color,
1982
- "font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1983
- "text-anchor": "middle"
1984
- }, j(z.value.style.chart.grid.x.axisName.text), 9, bt)) : S("", !0),
1985
- z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (D(), C("text", {
1986
- key: 7,
1987
- ref_key: "yAxisLabel",
1988
- ref: Cn,
1989
- transform: `translate(${ur.value ? W.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1990
- "font-size": z.value.style.chart.grid.y.axisName.fontSize,
1991
- fill: z.value.style.chart.grid.y.axisName.color,
1992
- "font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1993
- "text-anchor": "middle"
1994
- }, j(z.value.style.chart.grid.y.axisName.text), 9, xt)) : S("", !0),
1995
- z.value.style.chart.grid.frame.show ? (D(), C("rect", {
1996
- key: 8,
1997
- style: {
1998
- pointerEvents: "none",
1999
- transition: "none",
2000
- animation: "none !important"
2001
- },
2002
- x: X.value.left,
2003
- y: W.value.top,
2004
- width: X.value.width,
2005
- height: W.value.height,
2006
- fill: "transparent",
2007
- stroke: z.value.style.chart.grid.frame.stroke,
2008
- "stroke-width": z.value.style.chart.grid.frame.strokeWidth,
2009
- "stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
2010
- "stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
2011
- "stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
2012
- }, null, 8, St)) : S("", !0),
2013
- (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [z.value.style.chart.lines.useArea && !e.standalone ? (D(), C("path", {
2014
- key: 0,
2015
- d: z.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
2016
- fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : z.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
2017
- opacity: z.value.style.chart.lines.areaOpacity,
2018
- class: Ze({ "vue-data-ui-transition": M(Bn) })
2019
- }, null, 10, Ct)) : S("", !0)], 64))), 256)),
2020
- (D(!0), C(y, null, k(Y.value, (e) => (D(), C("path", {
2021
- d: z.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
2022
- stroke: z.value.style.chart.lines.path.useSerieColor ? e.color : z.value.style.chart.lines.path.stroke,
2023
- "stroke-width": z.value.style.chart.lines.strokeWidth,
2024
- fill: "none",
2025
- "stroke-linecap": "round",
2026
- class: Ze({ "vue-data-ui-transition": M(Bn) })
2027
- }, null, 10, wt))), 256)),
2028
- z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (D(), C("g", {
2029
- key: 9,
2030
- ref_key: "scaleLabels",
2031
- ref: wn
2032
- }, [(D(!0), C(y, null, k(Br.value, (e, t) => (D(), C("line", {
2033
- key: `ytick_${t}`,
2034
- class: Ze({ "vue-data-ui-transition": M(Bn) }),
2035
- x1: ur.value ? X.value.right : X.value.left,
2036
- x2: ur.value ? X.value.right + 6 : X.value.left - 6,
2037
- y1: e.y,
2038
- y2: e.y,
2039
- stroke: z.value.style.chart.grid.x.axisColor,
2040
- "stroke-width": 1
2041
- }, null, 10, Tt))), 128)), (D(!0), C(y, null, k(Br.value, (e, t) => (D(), C("text", {
2042
- class: Ze({ "vue-data-ui-transition": M(Bn) }),
2043
- transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
2044
- "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
2045
- "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2046
- fill: z.value.style.chart.grid.y.axisLabels.color,
2047
- "text-anchor": ur.value ? "start" : "end"
2048
- }, j(M(v)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, M(f)({
2049
- p: z.value.style.chart.lines.dataLabels.prefix,
2050
- v: e.value,
2051
- s: z.value.style.chart.lines.dataLabels.suffix,
2052
- r: z.value.style.chart.grid.y.axisLabels.rounding
2053
- }), { datapoint: e })), 11, Et))), 256))], 512)) : S("", !0),
2054
- z.value.style.chart.grid.x.timeLabels.show ? (D(), C("g", {
2055
- key: 10,
2056
- ref_key: "timeLabelsEls",
2057
- ref: Tn
2058
- }, [t.$slots["time-label"] ? (D(), C("g", Dt, [(D(!0), C(y, null, k(Kr.value, (e, n) => (D(), C("g", null, [A(t.$slots, "time-label", Ye({ ref_for: !0 }, {
2059
- x: W.value.left + kr.value * n + kr.value / 2,
2060
- y: W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
2061
- fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
2062
- fill: z.value.style.chart.grid.x.timeLabels.color,
2063
- transform: `translate(${W.value.left + kr.value * n + kr.value / 2}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2064
- absoluteIndex: e.absoluteIndex,
2065
- content: e.text,
2066
- textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2067
- show: !0
2068
- }), void 0, !0)]))), 256))])) : (D(), C("g", Ot, [(D(!0), C(y, null, k(Kr.value, (e, n) => (D(), C("g", null, [String(e.text).includes("\n") ? (D(), C("text", {
2069
- key: n + "-multi",
2070
- "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2071
- "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
2072
- fill: z.value.style.chart.grid.x.timeLabels.color,
2073
- transform: `
2074
- translate(
2075
- ${Q(n)},
2076
- ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
2077
- ),
2078
- rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
2079
- `,
2080
- style: Qe({ cursor: B.value ? "pointer" : "default" }),
2081
- innerHTML: t.createTSpansFromLineBreaksOnX({
2082
- content: String(e.text),
2083
- fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
2084
- fill: z.value.style.chart.grid.x.timeLabels.color,
2085
- stroke: z.value.style.chart.backgroundColor,
2086
- x: 0,
2087
- y: 0
2088
- }),
2089
- onClick: () => Ci(e, n)
2090
- }, null, 12, At)) : (D(), C("text", {
2091
- class: "vue-data-ui-time-label",
2092
- key: n,
2093
- "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2094
- "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
2095
- "font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
2096
- fill: z.value.style.chart.grid.x.timeLabels.color,
2097
- stroke: z.value.style.chart.backgroundColor,
2098
- "stroke-width": "3",
2099
- "stroke-linecap": "round",
2100
- "stroke-linejoin": "round",
2101
- "paint-order": "stroke fill",
2102
- transform: `translate(${Q(n)}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2103
- style: Qe({ cursor: B.value ? "pointer" : "default" }),
2104
- onClick: () => Ci(e, n)
2105
- }, j(e.text), 13, kt))]))), 256))]))], 512)) : S("", !0),
2106
- (xn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (D(!0), C(y, { key: 11 }, k(q.value.end - q.value.start, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2107
- x: mi(t).x,
2108
- y: W.value.top,
2109
- height: W.value.height,
2110
- width: mi(t).width,
2111
- fill: [Ln.value, $.value].includes(t) ? M(u)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
2112
- style: {
2113
- transition: "none !important",
2114
- animation: "none !important"
2115
- }
2116
- }, null, 8, jt)]))), 128)) : S("", !0),
2117
- (xn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (D(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Ln.value) ? (D(), C("g", Mt, [w("line", {
2118
- x1: Q(($.value ?? Ln.value) || 0),
2119
- x2: Q(($.value ?? Ln.value) || 0),
2120
- y1: M(le)(W.value.top),
2121
- y2: M(le)(W.value.bottom),
2122
- stroke: z.value.style.chart.highlighter.color,
2123
- "stroke-width": z.value.style.chart.highlighter.lineWidth,
2124
- "stroke-dasharray": z.value.style.chart.highlighter.lineDasharray,
2125
- "stroke-linecap": "round",
2126
- style: {
2127
- transition: "none !important",
2128
- animation: "none !important",
2129
- "pointer-events": "none"
2130
- }
2131
- }, null, 8, Nt)])) : S("", !0)], 64)) : S("", !0),
2132
- (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, { key: `shp_sel_${e.id}` }, [xn.value && q.value.end - q.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(), C("g", Pt, [$.value == null ? S("", !0) : (D(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (D(), x(Me, {
2133
- key: 0,
2134
- shape: [
2135
- "triangle",
2136
- "square",
2137
- "diamond",
2138
- "pentagon",
2139
- "hexagon",
2140
- "star"
2141
- ].includes(e.shape) ? e.shape : "circle",
2142
- color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
2143
- plot: {
2144
- x: M(g)(e.points[e.rel.indexOf($.value)].x),
2145
- y: M(g)(e.points[e.rel.indexOf($.value)].y)
2146
- },
2147
- radius: z.value.style.chart.lines.dot.radius * 1.3,
2148
- stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
2149
- strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
2150
- still: M(Hn),
2151
- class: Ze({ "vue-data-ui-transition": M(Bn) })
2152
- }, null, 8, [
2153
- "shape",
2154
- "color",
2155
- "plot",
2156
- "radius",
2157
- "stroke",
2158
- "strokeWidth",
2159
- "still",
2160
- "class"
2161
- ])) : S("", !0)], 64))])) : S("", !0)], 64))), 128)),
2162
- (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, { key: `shp_${e.id}` }, [q.value.end - q.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(!0), C(y, { key: 0 }, k(e.points, (t, n) => (D(), C("g", { key: `shp_${e.id}_${q.value.start + n}` }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (D(), x(Me, {
2163
- key: 0,
2164
- shape: [
2165
- "triangle",
2166
- "square",
2167
- "diamond",
2168
- "pentagon",
2169
- "hexagon",
2170
- "star"
2171
- ].includes(e.shape) ? e.shape : "circle",
2172
- color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
2173
- plot: {
2174
- x: t.x,
2175
- y: t.y
2176
- },
2177
- radius: xn.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
2178
- stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
2179
- strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
2180
- still: M(Hn),
2181
- class: Ze({ "vue-data-ui-transition": M(Bn) })
2182
- }, null, 8, [
2183
- "shape",
2184
- "color",
2185
- "plot",
2186
- "radius",
2187
- "stroke",
2188
- "strokeWidth",
2189
- "still",
2190
- "class"
2191
- ])) : S("", !0)]))), 128)) : S("", !0)], 64))), 128)),
2192
- H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (D(), C(y, { key: 13 }, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("g", { key: `dl_${e.id}` }, [(D(!0), C(y, null, k(e.points, (n, r) => (D(), C(y, { key: `dp_${e.id}_${q.value.start + r}` }, [$i(e.series[r], e.proportions[r]) ? (D(), C("text", {
2193
- key: 0,
2194
- class: Ze({ "vue-data-ui-transition": M(Bn) }),
2195
- transform: `translate(${n.x}, ${n.y + (e.series[r] >= 0 ? -z.value.style.chart.lines.dataLabels.fontSize / 2 + z.value.style.chart.lines.dataLabels.offsetY : z.value.style.chart.lines.dataLabels.fontSize * 1.2 - z.value.style.chart.lines.dataLabels.offsetY)})`,
2196
- "font-size": z.value.style.chart.lines.dataLabels.fontSize,
2197
- fill: z.value.style.chart.lines.dataLabels.color,
2198
- "font-weight": z.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
2199
- "text-anchor": "middle"
2200
- }, j(z.value.style.chart.lines.showDistributedPercentage && z.value.style.chart.lines.distributed ? na(e.proportions[r] * 100, e, t, e.rel[r]) : ta(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Ft)) : S("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (D(), C("g", {
2201
- key: 0,
2202
- ref_key: "sumTop",
2203
- ref: En
2204
- }, [(D(!0), C(y, null, k(Lr.value, (e, t) => (D(), C(y, { key: `total_l_${t + q.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (D(), C("text", {
2205
- key: 0,
2206
- class: Ze({ "vue-data-ui-transition": M(Bn) }),
2207
- transform: `translate(${Q(t)}, ${zr(t)})`,
2208
- "text-anchor": "middle",
2209
- "font-size": z.value.style.chart.lines.totalValues.fontSize,
2210
- "font-weight": z.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
2211
- fill: z.value.style.chart.lines.totalValues.color
2212
- }, j(ta(e.value, e, t, t, e.sign)), 11, It)) : S("", !0)], 64))), 128))], 512)) : S("", !0)], 64)) : S("", !0),
2213
- Cr.value ? (D(), C("rect", Ye({ key: 14 }, vr.value, {
2214
- "data-start": q.value.start,
2215
- "data-end": q.value.end
2216
- }), null, 16, Lt)) : S("", !0),
2217
- A(t.$slots, "svg", { svg: {
2218
- drawingArea: W.value,
2219
- data: Y.value,
2220
- isPrintingImg: M($n) || M(er) || M(Li),
2221
- isPrintingSvg: M(Ri)
2222
- } }, void 0, !0)
2223
- ], 46, ft)), t.$slots.hint ? (D(), C("div", Rt, [A(t.$slots, "hint", E(T({
2224
- hint: z.value.a11y.translations.keyboardNavigation,
2225
- isVisible: aa.value
2226
- })), void 0, !0)])) : S("", !0)]),
2227
- t.$slots.watermark ? (D(), C("div", zt, [A(t.$slots, "watermark", E(T({ isPrinting: M($n) || M(er) || M(Li) || M(Ri) })), void 0, !0)])) : S("", !0),
2228
- vn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (D(), x(We, {
2229
- key: 6,
2230
- to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
2231
- }, [w("div", {
2232
- ref_key: "chartLegend",
2233
- ref: ln
2234
- }, [A(t.$slots, "legend", { legend: Ei.value }, () => [z.value.style.chart.legend.show ? (D(), x(He, {
2235
- key: 0,
2236
- legendSet: Ei.value,
2237
- config: Di.value,
2238
- isCursorPointer: B.value,
2239
- onClickMarker: n[0] ||= ({ legend: e }) => e.segregate()
2240
- }, Ge({
2241
- item: N(({ legend: e }) => [M(Hn) ? S("", !0) : (D(), C("div", {
2242
- key: 0,
2243
- onClick: (t) => e.segregate(),
2244
- style: Qe(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
2245
- }, j(e.name), 13, Bt))]),
2246
- legendToggle: N(() => [Ei.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !M(Hn) ? (D(), x(Re, {
2247
- key: 0,
2248
- backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
2249
- color: z.value.style.chart.legend.selectAllToggle.color,
2250
- fontSize: z.value.style.chart.legend.fontSize,
2251
- checked: L.value.length > 0,
2252
- isCursorPointer: B.value,
2253
- onToggle: wi
2254
- }, null, 8, [
2255
- "backgroundColor",
2256
- "color",
2257
- "fontSize",
2258
- "checked",
2259
- "isCursorPointer"
2260
- ])) : S("", !0)]),
2261
- _: 2
2262
- }, [t.$slots.pattern ? {
2263
- name: "legend-pattern",
2264
- fn: N(({ legend: e, index: t }) => [qe(Me, {
2265
- shape: e.shape,
2266
- radius: 30,
2267
- stroke: "none",
2268
- plot: {
2269
- x: 30,
2270
- y: 30
2271
- },
2272
- fill: `url(#pattern_${I.value}_${t})`
2273
- }, null, 8, ["shape", "fill"])]),
2274
- key: "0"
2275
- } : void 0]), 1032, [
2276
- "legendSet",
2277
- "config",
2278
- "isCursorPointer"
2279
- ])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
2280
- an.value && z.value.userOptions.buttons.table ? (D(), x(tt(Hi.value.component), Ye({ key: 7 }, Hi.value.props, {
2281
- ref_key: "tableUnit",
2282
- ref: yn,
2283
- onClose: Ui
2284
- }), Ge({
2285
- content: N(() => [qe(M(Jt), {
2286
- colNames: Ni.value.colNames,
2287
- head: Ni.value.head,
2288
- body: Ni.value.body,
2289
- config: Ni.value.config,
2290
- title: z.value.table.useDialog ? "" : Hi.value.title,
2291
- withCloseButton: !z.value.table.useDialog,
2292
- isCursorPointer: B.value,
2293
- onClose: Ui
2294
- }, {
2295
- th: N(({ th: e }) => [e === "__SUM__" ? (D(), C("div", Vt, [qe(M(Kt), {
2296
- name: "sigma",
2297
- stroke: Ni.value.config.th.color,
2298
- size: 16
2299
- }, null, 8, ["stroke"])])) : (D(), C("div", Ht, j(e), 1))]),
2300
- td: N(({ td: e }) => [Ke(j(isNaN(Number(e)) ? e : M(f)({
2301
- p: z.value.style.chart.lines.dataLabels.prefix,
2302
- v: e,
2303
- s: z.value.style.chart.lines.dataLabels.suffix,
2304
- r: z.value.table.td.roundingValue
2305
- })), 1)]),
2306
- _: 1
2307
- }, 8, [
2308
- "colNames",
2309
- "head",
2310
- "body",
2311
- "config",
2312
- "title",
2313
- "withCloseButton",
2314
- "isCursorPointer"
2315
- ])]),
2316
- _: 2
2317
- }, [z.value.table.useDialog ? {
2318
- name: "title",
2319
- fn: N(() => [Ke(j(Hi.value.title), 1)]),
2320
- key: "0"
2321
- } : void 0, z.value.table.useDialog ? {
2322
- name: "actions",
2323
- fn: N(() => [w("button", {
2324
- tabindex: "0",
2325
- class: "vue-ui-user-options-button",
2326
- onClick: n[1] ||= (e) => Mi(z.value.userOptions.callbacks.csv),
2327
- style: Qe({ cursor: B.value ? "pointer" : "default" })
2328
- }, [qe(M(Kt), {
2329
- name: "fileCsv",
2330
- stroke: Hi.value.props.color
2331
- }, null, 8, ["stroke"])], 4)]),
2332
- key: "1"
2333
- } : void 0]), 1040)) : S("", !0),
2334
- z.value.style.chart.zoom.show && an.value && ti.value && K.value > 6 ? (D(), x(Le, {
2335
- key: 8,
2336
- ref_key: "chartSlicer",
2337
- ref: un,
2338
- "data-dom-to-png-ignore-layout": "",
2339
- allMinimaps: Nr.value,
2340
- background: z.value.style.chart.zoom.color,
2341
- borderColor: z.value.style.chart.backgroundColor,
2342
- customFormat: z.value.style.chart.zoom.customFormat,
2343
- cutNullValues: !1,
2344
- enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
2345
- enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
2346
- end: q.value.end,
2347
- focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
2348
- focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
2349
- fontSize: z.value.style.chart.zoom.fontSize,
2350
- immediate: !z.value.style.chart.zoom.preview.enable,
2351
- inputColor: z.value.style.chart.zoom.color,
2352
- isPreview: Cr.value,
2353
- labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Vr.value?.[0]?.text ?? "" : "",
2354
- labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Vr.value?.at(-1)?.text ?? "" : "",
2355
- max: Math.max(...e.dataset.map((e) => e.series.length)),
2356
- min: 0,
2357
- minimap: Mr.value,
2358
- minimapCompact: z.value.style.chart.zoom.minimap.compact,
2359
- minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
2360
- minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
2361
- minimapMerged: !1,
2362
- minimapSelectedColor: z.value.style.chart.zoom.minimap.selectedColor,
2363
- minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
2364
- minimapSelectedIndex: $.value,
2365
- minimapSelectionRadius: 1,
2366
- preciseLabels: Xr.value.length ? Xr.value : Hr.value,
2367
- refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
2368
- refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
2369
- selectColor: z.value.style.chart.zoom.highlightColor,
2370
- selectedSeries: Xi.value,
2371
- smoothMinimap: !1,
2372
- start: q.value.start,
2373
- textColor: z.value.style.chart.color,
2374
- timeLabels: Hr.value,
2375
- usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
2376
- valueEnd: q.value.end,
2377
- valueStart: q.value.start,
2378
- verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
2379
- maxWidth: z.value.style.chart.zoom.maxWidth,
2380
- minimapLeftInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? W.value.left / W.value.chartWidth : null,
2381
- minimapRightInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? (W.value.chartWidth - W.value.right) / W.value.chartWidth : null,
2382
- isCursorPointer: B.value,
2383
- additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
2384
- handleType: z.value.style.chart.zoom.minimap.handleType,
2385
- handleIconColor: z.value.style.chart.zoom.minimap.handleIconColor,
2386
- handleBorderWidth: z.value.style.chart.zoom.minimap.handleBorderWidth,
2387
- handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
2388
- handleFill: z.value.style.chart.zoom.minimap.handleFill,
2389
- handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
2390
- "onUpdate:end": ai,
2391
- "onUpdate:start": ii,
2392
- onTrapMouse: xr,
2393
- onReset: n[2] ||= () => Or({ force: !0 }),
2394
- onFutureEnd: n[3] ||= (e) => wr("end", e),
2395
- onFutureStart: n[4] ||= (e) => wr("start", e)
2396
- }, {
2397
- "reset-action": N(({ reset: e }) => [A(t.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
2398
- slotMap: N(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Qi({
2399
- minimapW: e,
2400
- minimapH: t,
2401
- unitW: n
2402
- }) }, null, 8, Ut)]),
2403
- _: 3
2404
- }, 8, /* @__PURE__ */ "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.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
2405
- w("div", { id: `legend-bottom-${I.value}` }, null, 8, Wt),
2406
- qe(M(Gt), {
2407
- teleportTo: z.value.style.chart.tooltip.teleportTo,
2408
- show: H.value.showTooltip && on.value,
2409
- backgroundColor: z.value.style.chart.tooltip.backgroundColor,
2410
- color: z.value.style.chart.tooltip.color,
2411
- fontSize: z.value.style.chart.tooltip.fontSize,
2412
- borderRadius: z.value.style.chart.tooltip.borderRadius,
2413
- borderColor: z.value.style.chart.tooltip.borderColor,
2414
- borderWidth: z.value.style.chart.tooltip.borderWidth,
2415
- backgroundOpacity: z.value.style.chart.tooltip.backgroundOpacity,
2416
- position: z.value.style.chart.tooltip.position,
2417
- offsetX: z.value.style.chart.tooltip.offsetX,
2418
- offsetY: z.value.style.chart.tooltip.offsetY,
2419
- parent: F.value,
2420
- content: xi.value,
2421
- isFullscreen: pn.value,
2422
- isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
2423
- smooth: z.value.style.chart.tooltip.smooth,
2424
- backdropFilter: z.value.style.chart.tooltip.backdropFilter,
2425
- smoothForce: z.value.style.chart.tooltip.smoothForce,
2426
- smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
2427
- isA11yMode: Mn.value === "keyboard",
2428
- a11yPosition: jn.value
2429
- }, {
2430
- "tooltip-before": N(() => [A(t.$slots, "tooltip-before", E(T({ ...$r.value })), void 0, !0)]),
2431
- tooltip: N(() => [A(t.$slots, "tooltip", E(T({ ...$r.value })), void 0, !0)]),
2432
- "tooltip-after": N(() => [A(t.$slots, "tooltip-after", E(T({ ...$r.value })), void 0, !0)]),
2433
- _: 3
2434
- }, 8, [
2435
- "teleportTo",
2436
- "show",
2437
- "backgroundColor",
2438
- "color",
2439
- "fontSize",
2440
- "borderRadius",
2441
- "borderColor",
2442
- "borderWidth",
2443
- "backgroundOpacity",
2444
- "position",
2445
- "offsetX",
2446
- "offsetY",
2447
- "parent",
2448
- "content",
2449
- "isFullscreen",
2450
- "isCustom",
2451
- "smooth",
2452
- "backdropFilter",
2453
- "smoothForce",
2454
- "smoothSnapThreshold",
2455
- "isA11yMode",
2456
- "a11yPosition"
2457
- ]),
2458
- t.$slots.source ? (D(), C("div", {
2459
- key: 9,
2460
- ref_key: "source",
2461
- ref: fn,
2462
- dir: "auto"
2463
- }, [A(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
2464
- A(t.$slots, "skeleton", {}, () => [M(Hn) ? (D(), x(Ce, { key: 0 })) : S("", !0)], !0)
2465
- ], 46, ct));
2466
- }
2467
- }, [["__scopeId", "data-v-7970ea05"]]);
2468
- //#endregion
2469
- export { st as n, Gt as t };