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