vue-data-ui 3.22.13 → 3.23.0

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