vue-data-ui 3.22.14 → 3.23.1

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 (229) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
  4. package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  5. package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
  6. package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  7. package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  8. package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
  9. package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
  10. package/dist/HillActions-BD9j_sOU.js +187 -0
  11. package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
  13. package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
  14. package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
  15. package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
  16. package/dist/Slicer-CIk57nL4.js +1163 -0
  17. package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
  18. package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
  19. package/dist/Title-BE3qg9xl.js +87 -0
  20. package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
  21. package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/composables.js +1 -1
  93. package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
  94. package/dist/exposedLib-C0DPCgFj.js +28 -0
  95. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  96. package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
  97. package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
  98. package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
  99. package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
  100. package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
  101. package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
  102. package/dist/ssr/vue-ui-donut.js +1 -1
  103. package/dist/ssr/vue-ui-xy.js +1 -1
  104. package/dist/ssr.js +2 -2
  105. package/dist/style.css +1 -1
  106. package/dist/types/vue-data-ui.d.ts +496 -0
  107. package/dist/types/vue-ui-hill.d.ts +90 -0
  108. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  109. package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
  110. package/dist/useHints-Dq_w2E8B.js +66 -0
  111. package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
  112. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
  113. package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
  114. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  115. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  116. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  117. package/dist/useTransitions-g_zBREk2.js +39 -0
  118. package/dist/utils.js +14 -14
  119. package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
  120. package/dist/vue-data-ui.js +77 -76
  121. package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
  122. package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
  123. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
  124. package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
  125. package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
  126. package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
  127. package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
  128. package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
  129. package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
  130. package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
  131. package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
  132. package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
  133. package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
  134. package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
  135. package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
  136. package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
  137. package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
  138. package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
  139. package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
  140. package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
  141. package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
  142. package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
  143. package/dist/vue-ui-gauge-ByE_txav.js +953 -0
  144. package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
  145. package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
  146. package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
  147. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  148. package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
  149. package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
  150. package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
  151. package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
  152. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  153. package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
  154. package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
  155. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  156. package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
  157. package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
  158. package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
  159. package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
  160. package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
  161. package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
  162. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  163. package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
  164. package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
  165. package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
  166. package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
  167. package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
  168. package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
  169. package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
  170. package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
  171. package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
  172. package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
  173. package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
  174. package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
  175. package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
  176. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  177. package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
  178. package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
  179. package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
  180. package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
  181. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  182. package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
  183. package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
  184. package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
  185. package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
  186. package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
  187. package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
  188. package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
  189. package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
  190. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  191. package/package.json +4 -4
  192. package/dist/Slicer-JdCzBeYM.js +0 -1149
  193. package/dist/Title-Thf71-8D.js +0 -87
  194. package/dist/exposedLib-CfZhN94x.js +0 -25
  195. package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
  196. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  197. package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
  198. package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
  199. package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
  200. package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
  201. package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
  202. package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
  203. package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
  204. package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
  205. package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
  206. package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
  207. package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
  208. package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
  209. package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
  210. package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
  211. package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
  212. package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
  213. package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
  214. package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
  215. package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
  216. package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
  217. package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
  218. package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
  219. package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
  220. package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
  221. package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
  222. package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
  223. package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
  224. package/dist/vue-ui-table-DEhy61ln.js +0 -1339
  225. package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
  226. package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
  227. package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
  228. package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
  229. package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
@@ -1,40 +1,40 @@
1
- import { B as e, Bt as t, F as n, Gt as r, H as i, I as a, K as o, M as s, N as c, Nt as l, O as u, Rt as d, V as f, W as p, Y as m, _ as h, _t as g, a as _, c as v, g as y, i as b, k as x, qt as S, s as ee, t as C, tt as te, x as w, z as T, zt as E } from "./lib-C-QGo8GG.js";
2
- import { t as D } from "./useTimeLabels-B9CEuiLZ.js";
3
- import { t as O } from "./useConfig-C0V0eG7L.js";
1
+ import { A as e, B as t, Bt as n, G as r, H as i, I as a, Jt as o, Kt as s, L as c, N as l, P as u, Pt as d, S as f, U as p, V as m, Vt as h, X as g, _, c as v, i as y, k as b, l as x, nt as S, o as ee, q as C, t as w, v as te, vt as T, zt as E } from "./lib-Bttd6u5E.js";
2
+ import { t as D } from "./useTimeLabels-d2f-W1L4.js";
3
+ import { t as O } from "./useConfig-D3scuR88.js";
4
4
  import { t as ne } from "./vue_ui_xy-BA3-_LCx.js";
5
- import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-DasqIYp9.js";
5
+ import { _ as k, d as A, f as j, g as M, h as N, l as P, m as F, p as I, u as L, v as R } from "./render-common-oDYGTc5P.js";
6
6
  //#region src/svg/vue-ui-xy/create.js
7
7
  var { vue_ui_xy: z } = O();
8
8
  function re({ config: e = {}, dataset: t = [] } = {}) {
9
- let n = e ?? {}, i = S({
9
+ let n = e ?? {}, r = o({
10
10
  userConfig: n,
11
11
  defaultConfig: z
12
12
  });
13
- g(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? i.chart.highlightArea = n.chart.highlightArea.map((e) => S({
13
+ T(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? r.chart.highlightArea = n.chart.highlightArea.map((e) => o({
14
14
  defaultConfig: z.chart.highlightArea,
15
15
  userConfig: e
16
- })) : i.chart.highlightArea = [S({
16
+ })) : r.chart.highlightArea = [o({
17
17
  defaultConfig: z.chart.highlightArea,
18
18
  userConfig: n.chart.highlightArea
19
- })]), g(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? i.chart.annotations = n.chart.annotations.map((e) => S({
19
+ })]), T(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? r.chart.annotations = n.chart.annotations.map((e) => o({
20
20
  defaultConfig: z.chart.annotations[0],
21
21
  userConfig: e
22
- })) : i.chart.annotations = [], g(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (i.chart.grid.position = "middle");
23
- let a = i.theme;
24
- if (!a) return {
25
- ...i,
26
- customPalette: i.customPalette?.length ? i.customPalette : l
22
+ })) : r.chart.annotations = [], T(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (r.chart.grid.position = "middle");
23
+ let i = r.theme;
24
+ if (!i) return {
25
+ ...r,
26
+ customPalette: r.customPalette?.length ? r.customPalette : d
27
27
  };
28
- let o = S({
28
+ let a = o({
29
+ userConfig: ne[i] || {},
30
+ defaultConfig: r
31
+ }), c = o({
29
32
  userConfig: n,
30
- defaultConfig: S({
31
- userConfig: ne[a] || {},
32
- defaultConfig: i
33
- })
33
+ defaultConfig: a
34
34
  });
35
35
  return {
36
- ...o,
37
- customPalette: o.customPalette?.length ? o.customPalette : r[a] || l
36
+ ...c,
37
+ customPalette: c.customPalette?.length ? c.customPalette : s[i] || d
38
38
  };
39
39
  }
40
40
  function B(e) {
@@ -53,8 +53,8 @@ function oe({ dataset: e, config: t }) {
53
53
  max: 1,
54
54
  ticks: [0, 1]
55
55
  };
56
- let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ie(r) ? Number(r) : Math.min(...n), o = ie(i) ? Number(i) : Math.max(...n);
57
- return y(a === o ? a - 1 : a, a === o ? o + 1 : o, Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6);
56
+ let r = t?.chart?.grid?.labels?.xAxis?.scaleMin, i = t?.chart?.grid?.labels?.xAxis?.scaleMax, a = ie(r) ? Number(r) : Math.min(...n), o = ie(i) ? Number(i) : Math.max(...n), s = a === o ? a - 1 : a, c = a === o ? o + 1 : o, l = Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps)) ? Number(t.chart.grid.labels.xAxis.scaleSteps) : 6;
57
+ return _(s, c, l);
58
58
  }
59
59
  function se({ xValue: e, xScale: t, drawingArea: n, config: r }) {
60
60
  let i = (Number(e) - t.min) / (t.max - t.min || 1), a = r?.chart?.grid?.labels?.xAxis?.reverse ? 1 - i : i;
@@ -71,18 +71,18 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
71
71
  bottom: r - s.chart.padding.bottom
72
72
  };
73
73
  c.width = c.right - c.left, c.height = c.bottom - c.top;
74
- let u = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), d = y(Math.min(0, ...u), Math.max(1, ...u), 6), f = e.some((e) => Array.isArray(e.series) ? e.series.some(B) : !1), p = f ? oe({
74
+ let l = e.flatMap((e) => Array.isArray(e.series) ? e.series.map((e) => Number(typeof e == "object" && e ? e.y : e)) : []).filter(Number.isFinite), u = Math.min(0, ...l), p = Math.max(1, ...l), m = _(u, p, 6), h = e.some((e) => Array.isArray(e.series) ? e.series.some(B) : !1), g = h ? oe({
75
75
  dataset: e,
76
76
  config: s
77
- }) : null, m = Math.max(0, ...e.map((e) => e.series?.length || 0)), h = (e) => m <= 1 ? c.left + c.width / 2 : c.left + e / (m - 1) * c.width, g = (e, t) => f ? B(e) ? se({
77
+ }) : null, v = Math.max(0, ...e.map((e) => e.series?.length || 0)), y = (e) => v <= 1 ? c.left + c.width / 2 : c.left + e / (v - 1) * c.width, b = (e, t) => h ? B(e) ? se({
78
78
  xValue: e.x,
79
- xScale: p,
79
+ xScale: g,
80
80
  drawingArea: c,
81
81
  config: s
82
- }) : null : h(t), _ = (e) => {
83
- let t = (Number(e) - d.min) / (d.max - d.min || 1);
82
+ }) : null : y(t), x = (e) => {
83
+ let t = (Number(e) - m.min) / (m.max - m.min || 1);
84
84
  return c.bottom - t * c.height;
85
- }, v = Array.isArray(s.customPalette) ? s.customPalette : [], b = v.length ? v : l;
85
+ }, S = Array.isArray(s.customPalette) ? s.customPalette : [], ee = S.length ? S : d;
86
86
  return {
87
87
  width: n,
88
88
  height: r,
@@ -90,15 +90,15 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
90
90
  dataset: e,
91
91
  config: s,
92
92
  drawingArea: c,
93
- scale: d,
94
- xScale: p,
95
- isContinuous: f,
93
+ scale: m,
94
+ xScale: g,
95
+ isContinuous: h,
96
96
  series: e.map((e, t) => {
97
- let n = (e.color ? w(e.color) : "") || b[t % b.length], r = (e.series || []).map((e, t) => {
97
+ let n = (e.color ? f(e.color) : "") || ee[t % ee.length], r = (e.series || []).map((e, t) => {
98
98
  let n = e == null ? null : typeof e == "object" ? e.y ?? null : Number(e);
99
99
  return {
100
- x: g(e, t),
101
- y: n === null || !Number.isFinite(Number(n)) ? null : _(n),
100
+ x: b(e, t),
101
+ y: n === null || !Number.isFinite(Number(n)) ? null : x(n),
102
102
  value: n,
103
103
  index: t,
104
104
  rawX: B(e) ? Number(e.x) : null,
@@ -183,7 +183,7 @@ function U(e) {
183
183
  let { drawingArea: t, scale: n } = e, r = (0 - n.min) / (n.max - n.min || 1);
184
184
  return t.bottom - r * t.height;
185
185
  }
186
- var ve = o();
186
+ var ve = C();
187
187
  function W(e) {
188
188
  return ve;
189
189
  }
@@ -206,54 +206,54 @@ function Ce(e, t, n) {
206
206
  let { config: r } = e;
207
207
  return I(r, "line.useGradient", !1) ? `url(#${ye(e, n)})` : I(r, "line.dot.useSerieColor", !0) ? t.color : I(r, "line.dot.fill", "#FFFFFF");
208
208
  }
209
- function we(e, t, n) {
210
- let { config: r } = e;
211
- return I(r, "line.area.useGradient", !1) ? `url(#${rt(e, n)})` : E(t.color, k(I(r, "line.area.opacity", 30), 30));
209
+ function we(e, t, r) {
210
+ let { config: i } = e;
211
+ return I(i, "line.area.useGradient", !1) ? `url(#${rt(e, r)})` : n(t.color, k(I(i, "line.area.opacity", 30), 30));
212
212
  }
213
213
  function K(e, t, n, r) {
214
214
  return I(e.config, "bar.useGradient", !1) ? r >= 0 ? `url(#${G(e, n, "pos")})` : `url(#${G(e, n, "neg")})` : t.color;
215
215
  }
216
- function Te(e, n) {
217
- let { config: r } = e, i = [];
218
- return I(r, "bar.useGradient", !1) && n.filter((e) => e.type === "bar").forEach((n, r) => {
219
- i.push(L("linearGradient", {
220
- id: G(e, r, "pos"),
216
+ function Te(e, t) {
217
+ let { config: n } = e, r = [];
218
+ return I(n, "bar.useGradient", !1) && t.filter((e) => e.type === "bar").forEach((t, n) => {
219
+ r.push(L("linearGradient", {
220
+ id: G(e, n, "pos"),
221
221
  x2: "0%",
222
222
  y2: "100%"
223
223
  }, [
224
224
  A("stop", {
225
225
  offset: "0%",
226
- "stop-color": w(n.color)
226
+ "stop-color": f(t.color)
227
227
  }),
228
228
  A("stop", {
229
229
  offset: "62%",
230
- "stop-color": t(w(n.color), .02)
230
+ "stop-color": h(f(t.color), .02)
231
231
  }),
232
232
  A("stop", {
233
233
  offset: "100%",
234
- "stop-color": t(w(n.color), .05)
234
+ "stop-color": h(f(t.color), .05)
235
235
  })
236
- ].join(""))), i.push(L("linearGradient", {
237
- id: G(e, r, "neg"),
236
+ ].join(""))), r.push(L("linearGradient", {
237
+ id: G(e, n, "neg"),
238
238
  x2: "0%",
239
239
  y2: "100%"
240
240
  }, [
241
241
  A("stop", {
242
242
  offset: "0%",
243
- "stop-color": t(w(n.color), .05)
243
+ "stop-color": h(f(t.color), .05)
244
244
  }),
245
245
  A("stop", {
246
246
  offset: "38%",
247
- "stop-color": t(w(n.color), .02)
247
+ "stop-color": h(f(t.color), .02)
248
248
  }),
249
249
  A("stop", {
250
250
  offset: "100%",
251
- "stop-color": w(n.color)
251
+ "stop-color": f(t.color)
252
252
  })
253
253
  ].join("")));
254
- }), n.filter((e) => e.type === "line").forEach((n, a) => {
255
- I(r, "line.useGradient", !1) && i.push(L("radialGradient", {
256
- id: ye(e, a),
254
+ }), t.filter((e) => e.type === "line").forEach((t, i) => {
255
+ I(n, "line.useGradient", !1) && r.push(L("radialGradient", {
256
+ id: ye(e, i),
257
257
  cx: "50%",
258
258
  cy: "50%",
259
259
  r: "50%",
@@ -261,20 +261,20 @@ function Te(e, n) {
261
261
  fy: "50%"
262
262
  }, [A("stop", {
263
263
  offset: "0%",
264
- "stop-color": t(w(n.color), .05)
264
+ "stop-color": h(f(t.color), .05)
265
265
  }), A("stop", {
266
266
  offset: "100%",
267
- "stop-color": w(n.color)
268
- })].join(""))), n.temperatureColors && !n.isFlatTemperatureLine && i.push(L("linearGradient", {
269
- id: be(e, a),
267
+ "stop-color": f(t.color)
268
+ })].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(L("linearGradient", {
269
+ id: be(e, i),
270
270
  gradientTransform: "rotate(90)"
271
- }, n.temperatureColors.map((e, t) => A("stop", {
272
- offset: d(t, n.temperatureColors.length),
273
- "stop-color": w(e)
271
+ }, t.temperatureColors.map((e, n) => A("stop", {
272
+ offset: E(n, t.temperatureColors.length),
273
+ "stop-color": f(e)
274
274
  })).join("")));
275
- }), n.filter((e) => e.type === "plot").forEach((n, a) => {
276
- I(r, "plot.useGradient", !1) && i.push(L("radialGradient", {
277
- id: Se(e, a),
275
+ }), t.filter((e) => e.type === "plot").forEach((t, i) => {
276
+ I(n, "plot.useGradient", !1) && r.push(L("radialGradient", {
277
+ id: Se(e, i),
278
278
  cx: "50%",
279
279
  cy: "50%",
280
280
  r: "50%",
@@ -282,12 +282,12 @@ function Te(e, n) {
282
282
  fy: "50%"
283
283
  }, [A("stop", {
284
284
  offset: "0%",
285
- "stop-color": t(w(n.color), .05)
285
+ "stop-color": h(f(t.color), .05)
286
286
  }), A("stop", {
287
287
  offset: "100%",
288
- "stop-color": w(n.color)
288
+ "stop-color": f(t.color)
289
289
  })].join("")));
290
- }), i.length ? L("defs", { "data-layer": "gradients" }, i.join("")) : "";
290
+ }), r.length ? L("defs", { "data-layer": "gradients" }, r.join("")) : "";
291
291
  }
292
292
  function Ee(e) {
293
293
  let t = I(e.config, "chart.backgroundColor", "#FFFFFF");
@@ -308,13 +308,13 @@ function J(e) {
308
308
  return I(e, "chart.grid.labels.yAxis.position", "left") === "right";
309
309
  }
310
310
  function De(e, t) {
311
- let n = m({
311
+ let n = g({
312
312
  p: I(t, "chart.labels.prefix", ""),
313
313
  v: e,
314
314
  s: I(t, "chart.labels.suffix", ""),
315
315
  r: I(t, "chart.grid.labels.yAxis.rounding", 0)
316
316
  });
317
- return b(I(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
317
+ return y(I(t, "chart.grid.labels.yAxis.formatter", null), e, n, t);
318
318
  }
319
319
  function Y(e) {
320
320
  return !!I(e, "chart.grid.labels.yAxis.stacked", !1);
@@ -323,7 +323,7 @@ function X(e) {
323
323
  return e != null && Number.isFinite(Number(e));
324
324
  }
325
325
  function Oe(e, t, n, r) {
326
- return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? y(t, n, r) : h(t, n, r);
326
+ return I(e, "chart.grid.labels.yAxis.useNiceScale", !0) ? _(t, n, r) : te(t, n, r);
327
327
  }
328
328
  function ke(e, t) {
329
329
  let n = M(t.plots).map((e) => Number(e.value)).filter(Number.isFinite), r = I(e, "chart.grid.labels.yAxis.scaleMin", null), i = I(e, "chart.grid.labels.yAxis.scaleMax", null), a = X(r) ? Number(r) : X(t.scaleMin) ? Number(t.scaleMin) : Math.min(0, ...n), o = X(i) ? Number(i) : X(t.scaleMax) ? Number(t.scaleMax) : Math.max(1, ...n);
@@ -361,21 +361,21 @@ function je(e, t) {
361
361
  ...e,
362
362
  width: i,
363
363
  height: a
364
- }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, v = k(I(n, "chart.padding.top", 12), 12), y = k(I(n, "chart.padding.right", 12), 12), b = k(I(n, "chart.padding.bottom", 12), 12), x = k(I(n, "chart.padding.left", 12), 12), S = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), ee = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, te = s.right, w = i - C - te - 6 - x - y, T = {
365
- top: v + g + d,
366
- right: C + (J(n) ? 0 : ee) + x + w,
367
- bottom: a - h - b - S - f,
368
- left: C + (J(n) ? 0 : ee) + x,
369
- width: Math.max(1, w),
364
+ }, t) : { height: 0 }, d = l && c === "top" ? u.height : 0, f = l && c !== "top" ? u.height : 0, p = I(n, "chart.grid.labels.axis.xLabel", ""), m = I(n, "chart.grid.labels.xAxisLabels.show", !0) ? o.xAxis * 2 : 0, h = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, g = gt(n) + k(I(n, "chart.labels.fontSize", 12), 12) * 1.1, _ = k(I(n, "chart.padding.top", 12), 12), v = k(I(n, "chart.padding.right", 12), 12), y = k(I(n, "chart.padding.bottom", 12), 12), b = k(I(n, "chart.padding.left", 12), 12), x = k(I(n, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), S = k(I(n, "chart.grid.labels.yAxis.crosshairSize", 0), 0), C = s.left, w = s.right, te = i - C - w - 6 - b - v, T = {
365
+ top: _ + g + d,
366
+ right: C + (J(n) ? 0 : S) + b + te,
367
+ bottom: a - h - y - x - f,
368
+ left: C + (J(n) ? 0 : S) + b,
369
+ width: Math.max(1, te),
370
370
  height: 1,
371
371
  scaleLabelX: C,
372
- rightScaleLabelX: te,
372
+ rightScaleLabelX: w,
373
373
  scaleLabelsOffset: s.scaleLabelsOffset,
374
374
  yAxisLabelWidth: s.yAxisLabelWidth,
375
375
  individualOffsetX: 36
376
376
  };
377
377
  T.height = Math.max(1, T.bottom - T.top);
378
- let E = Y(n), D = E ? _(t) : t, O = Math.max(1, D.length), ne = E ? k(I(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, A = ne * Math.max(0, O - 1), j = Math.max(1, T.height - A), N = V(n), P = me(n, t), F = Math.max(1, ...t.map((e) => M(e.plots).length));
378
+ let E = Y(n), D = E ? ee(t) : t, O = Math.max(1, D.length), ne = E ? k(I(n, "chart.grid.labels.yAxis.gap", 12), 12) : 0, A = ne * Math.max(0, O - 1), j = Math.max(1, T.height - A), N = V(n), P = me(n, t), F = Math.max(1, ...t.map((e) => M(e.plots).length));
379
379
  function L(t, n) {
380
380
  if (Z(e)) {
381
381
  let n = Number(t.rawX);
@@ -708,13 +708,13 @@ function We(e, t) {
708
708
  return n.left + n.width * o;
709
709
  }
710
710
  function Ge(e, t, n) {
711
- let { config: r } = e, i = m({
711
+ let { config: r } = e, i = g({
712
712
  v: t,
713
713
  p: I(r, "chart.labels.prefix", ""),
714
714
  s: I(r, "chart.labels.suffix", ""),
715
715
  r: I(r, "chart.grid.labels.xAxis.rounding", 0)
716
716
  });
717
- return b(I(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
717
+ return y(I(r, "chart.grid.labels.xAxis.formatter", null), t, i, {
718
718
  datapoint: t,
719
719
  seriesIndex: null
720
720
  });
@@ -752,7 +752,7 @@ async function Je(e, t) {
752
752
  start: 0,
753
753
  end: i
754
754
  }), s = a.map((e) => e?.text ?? ""), c = o.map((e) => e?.text ?? ""), l = Math.min(k(r.modulo, 1), Math.max(1, new Set(s).size));
755
- return ee(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, k(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
755
+ return v(!!r.showOnlyFirstAndLast, !!r.showOnlyAtModulo, Math.max(1, l || 1), s, c, k(e.slotStartIndex ?? e.startAbs, 0), e.selectedXIndex ?? null, i);
756
756
  }
757
757
  async function Ye(e, t) {
758
758
  return Z(e) ? Ke(e) : await Je(e, t);
@@ -761,39 +761,40 @@ function Xe(e, t, n, r) {
761
761
  return Z(e) ? t.x : Q(e, n, r);
762
762
  }
763
763
  function Ze(e) {
764
- return g(e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {}, "chart.grid.labels.xAxisLabels.rotation") ? k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
764
+ let t = e.userConfig ?? e.sourceConfig ?? e.props?.config ?? {};
765
+ return T(t, "chart.grid.labels.xAxisLabels.rotation") ? k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0) : I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.enable", !1) ? k(I(e.config, "chart.grid.labels.xAxisLabels.autoRotate.angle", 0), 0) : k(I(e.config, "chart.grid.labels.xAxisLabels.rotation", 0), 0);
765
766
  }
766
767
  async function Qe(e, t) {
767
- let { config: n, drawingArea: r } = e;
768
+ let { config: n, drawingArea: i } = e;
768
769
  if (!t[0] || !I(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
769
770
  I(n, "chart.grid.labels.xAxisLabels", {});
770
- let i = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), a = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")), o = Ze(e), s = Math.max(1, t[0].plots.length), c = await Ye(e, t), l = o > 0 ? "start" : o < 0 ? "end" : "middle";
771
- return L("g", { "data-layer": "x-axis-labels" }, c.map((t, n) => {
772
- let c = typeof t == "string" ? t : t?.text;
773
- if (!c) return "";
774
- let u = `translate(${Xe(e, t, n, s)}, ${r.bottom + i * 1.5}), rotate(${o})`;
775
- return String(c).includes("\n") ? L("text", {
771
+ let a = k(I(n, "chart.grid.labels.xAxisLabels.fontSize", 12), 12), o = I(n, "chart.grid.labels.xAxisLabels.color", I(n, "chart.grid.labels.color", "#2A2A2A")), s = Ze(e), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle", d = l.map((t, n) => {
772
+ let l = typeof t == "string" ? t : t?.text;
773
+ if (!l) return "";
774
+ let d = `translate(${Xe(e, t, n, c)}, ${i.bottom + a * 1.5}), rotate(${s})`;
775
+ return String(l).includes("\n") ? L("text", {
776
776
  class: "vue-data-ui-time-label",
777
777
  "data-cy": "time-label",
778
- "text-anchor": l,
779
- "font-size": i,
780
- fill: a,
781
- transform: u
782
- }, p({
783
- content: String(c),
784
- fontSize: i,
785
- fill: a,
778
+ "text-anchor": u,
779
+ "font-size": a,
780
+ fill: o,
781
+ transform: d
782
+ }, r({
783
+ content: String(l),
784
+ fontSize: a,
785
+ fill: o,
786
786
  x: 0,
787
787
  y: 0
788
- })) : R(c, {
788
+ })) : R(l, {
789
789
  class: "vue-data-ui-time-label",
790
790
  "data-cy": "time-label",
791
- "text-anchor": l,
792
- "font-size": i,
793
- fill: a,
794
- transform: u
791
+ "text-anchor": u,
792
+ "font-size": a,
793
+ fill: o,
794
+ transform: d
795
795
  });
796
- }).join(""));
796
+ }).join("");
797
+ return L("g", { "data-layer": "x-axis-labels" }, d);
797
798
  }
798
799
  function $e(e) {
799
800
  let { config: t, drawingArea: n, height: r } = e, i = q(t), a = I(t, "chart.grid.labels.axis.xLabel", ""), o = I(t, "chart.grid.labels.axis.yLabel", ""), s = I(t, "chart.grid.labels.axis.color", I(t, "chart.grid.labels.color", "#2A2A2A")), c = k(I(t, "chart.grid.labels.axis.yLabelOffsetX", 0), 0), l = k(I(t, "chart.grid.labels.axis.xLabelOffsetY", 0), 0), u = k(I(t, "chart.grid.labels.yAxis.crosshairSize", 0), 0), d = k(I(t, "chart.grid.labels.yAxis.scaleValueOffsetX", 0), 0), f = k(I(t, "chart.grid.labels.yAxis.labelWidth", 0), 0), p = J(t), m = [];
@@ -884,10 +885,10 @@ function nt(e, t) {
884
885
  function rt(e, t) {
885
886
  return `areaGradient_${t}_${W()}`;
886
887
  }
887
- function it(e, n) {
888
+ function it(e, t) {
888
889
  let { config: r } = e;
889
890
  if (!I(r, "line.area.useGradient", !1)) return "";
890
- let i = k(I(r, "line.area.opacity", 30), 30), a = n.filter((e) => e.type === "line" && e.useArea).map((n, r) => L("linearGradient", {
891
+ let i = k(I(r, "line.area.opacity", 30), 30), a = t.filter((e) => e.type === "line" && e.useArea).map((t, r) => L("linearGradient", {
891
892
  id: rt(e, r),
892
893
  x1: "0%",
893
894
  x2: "0%",
@@ -895,39 +896,39 @@ function it(e, n) {
895
896
  y2: "100%"
896
897
  }, [A("stop", {
897
898
  offset: "0%",
898
- "stop-color": E(t(w(n.color), .03), i),
899
+ "stop-color": n(h(f(t.color), .03), i),
899
900
  "stop-opacity": 1
900
901
  }), A("stop", {
901
902
  offset: "100%",
902
- "stop-color": n.color,
903
+ "stop-color": t.color,
903
904
  "stop-opacity": 0
904
905
  })].join(""))).join("");
905
906
  return a ? L("defs", {}, a) : "";
906
907
  }
907
- function at(e, t) {
908
- let { config: n } = e, r = !!I(n, "line.cutNullValues", !1), i = [];
909
- return t.filter((e) => e.type === "line" && e.useArea).forEach((t, n) => {
910
- let a = M(t.plots), o = a.filter((e) => e && e.value !== null);
911
- if (o.length < 2) return;
912
- let c = Number.isFinite(Number(t.__zeroY)) ? Number(t.__zeroY) : U(e), l = we(e, t, n);
913
- if (t.smooth && !t.useStepper) {
914
- s(r ? a : o, c, r).forEach((e) => {
915
- e && i.push(A("path", {
908
+ function at(n, r) {
909
+ let { config: i } = n, a = !!I(i, "line.cutNullValues", !1), o = [];
910
+ return r.filter((e) => e.type === "line" && e.useArea).forEach((r, i) => {
911
+ let s = M(r.plots), c = s.filter((e) => e && e.value !== null);
912
+ if (c.length < 2) return;
913
+ let u = Number.isFinite(Number(r.__zeroY)) ? Number(r.__zeroY) : U(n), d = we(n, r, i);
914
+ if (r.smooth && !r.useStepper) {
915
+ l(a ? s : c, u, a).forEach((e) => {
916
+ e && o.push(A("path", {
916
917
  d: e,
917
- fill: l,
918
+ fill: d,
918
919
  "data-cy": "datapoint-line-area-smooth"
919
920
  }));
920
921
  });
921
922
  return;
922
923
  }
923
- (t.useStepper ? T(r ? a : o, c) : r ? x(a, c) : u(o, c)).split(";").filter(Boolean).forEach((e) => {
924
- i.push(A("path", {
924
+ (r.useStepper ? t(a ? s : c, u) : a ? e(s, u) : b(c, u)).split(";").filter(Boolean).forEach((e) => {
925
+ o.push(A("path", {
925
926
  d: `M${e}Z`,
926
- fill: l,
927
+ fill: d,
927
928
  "data-cy": "datapoint-line-area-straight"
928
929
  }));
929
930
  });
930
- }), L("g", { "data-layer": "line-areas" }, i.join(""));
931
+ }), L("g", { "data-layer": "line-areas" }, o.join(""));
931
932
  }
932
933
  function ot(e, t) {
933
934
  let n = k(t.slotStartIndex ?? t.startAbs, 0);
@@ -945,23 +946,23 @@ function st(e, t, n, r, i) {
945
946
  "stroke-dasharray": i ? o * 2 : 0
946
947
  });
947
948
  }
948
- function ct(t, r) {
949
- let { config: o } = t, s = r.filter((e) => e.type === "line"), l = !!I(o, "line.cutNullValues", !1), u = [];
950
- return s.forEach((r, s) => {
951
- let d = l ? M(r.plots) : M(r.plots).filter((e) => e.value !== null), p = d.filter((e) => e.value !== null);
952
- if (!(p.length < 2)) {
953
- if (M(r.dashIndices).length > 0 && !r.useStepper) {
954
- let e = ot(r, t);
955
- (r.smooth || I(o, "line.smooth", !1) ? a(d, e) : i(d, e)).forEach((e) => {
956
- e?.path && u.push(st(t, r, s, e.path, !!e.dashed));
949
+ function ct(e, n) {
950
+ let { config: r } = e, o = n.filter((e) => e.type === "line"), s = !!I(r, "line.cutNullValues", !1), l = [];
951
+ return o.forEach((n, o) => {
952
+ let d = s ? M(n.plots) : M(n.plots).filter((e) => e.value !== null), f = d.filter((e) => e.value !== null);
953
+ if (!(f.length < 2)) {
954
+ if (M(n.dashIndices).length > 0 && !n.useStepper) {
955
+ let t = ot(n, e);
956
+ (n.smooth || I(r, "line.smooth", !1) ? c(d, t) : p(d, t)).forEach((t) => {
957
+ t?.path && l.push(st(e, n, o, t.path, !!t.dashed));
957
958
  });
958
959
  return;
959
960
  }
960
- (r.useStepper ? T(d).split(";").filter(Boolean) : [r.smooth || I(o, "line.smooth", !1) ? l ? n(d) : c(p) : l ? f(d) : e(p, !1, !0)]).forEach((e) => {
961
- e && u.push(st(t, r, s, e, !!r.dashed));
961
+ (n.useStepper ? t(d).split(";").filter(Boolean) : [n.smooth || I(r, "line.smooth", !1) ? s ? a(d) : u(f) : s ? i(d) : m(f, !1, !0)]).forEach((t) => {
962
+ t && l.push(st(e, n, o, t, !!n.dashed));
962
963
  });
963
964
  }
964
- }), L("g", { "data-layer": "lines" }, u.join(""));
965
+ }), L("g", { "data-layer": "lines" }, l.join(""));
965
966
  }
966
967
  function lt(e, t, n) {
967
968
  let { config: r } = e;
@@ -1038,7 +1039,7 @@ function ht(e, t) {
1038
1039
  let i = o.find((e) => e.name === n), u = o.find((e) => e.name === r);
1039
1040
  if (!i || !u) return;
1040
1041
  let d = a?.[t]?.[0] ?? i.color, f = a?.[t]?.[1] ?? u.color;
1041
- v({
1042
+ x({
1042
1043
  lineA: M(i.plots),
1043
1044
  lineB: M(u.plots),
1044
1045
  smoothA: !!i.smooth,
@@ -1089,28 +1090,30 @@ function _t(e) {
1089
1090
  })), L("g", { "data-layer": "title" }, d.join(""));
1090
1091
  }
1091
1092
  function vt(e) {
1092
- return e.svgTitle ? L("desc", { "aria-hidden": "true" }, [e.svgTitle].join("")) : "";
1093
+ if (!e.svgTitle) return "";
1094
+ let t = [e.svgTitle];
1095
+ return L("desc", { "aria-hidden": "true" }, t.join(""));
1093
1096
  }
1094
1097
  function yt(e, t, n, r, i) {
1095
1098
  return !n || n.value === null || n.value === void 0 || !Number.isFinite(Number(n.value)) || !I(e.config, "dataLabels.show", !0) || !I(e.config, `${i}.labels.show`, !1) ? !1 : !Object.hasOwn(t, "dataLabels") || t.dataLabels === !0 || e.selectedSerieIndex === r || e.selectedMinimapIndex === r;
1096
1099
  }
1097
- function bt(e, t, n, r) {
1098
- let { config: i } = e, a = k(I(i, `${r}.labels.fontSize`, I(i, "chart.labels.fontSize", 12)), 12), o = I(i, `${r}.labels.color`, I(i, "chart.color", "#2A2A2A")), s = m({
1099
- p: t.prefix || I(i, "chart.labels.prefix", ""),
1100
+ function bt(e, t, n, i) {
1101
+ let { config: a } = e, o = k(I(a, `${i}.labels.fontSize`, I(a, "chart.labels.fontSize", 12)), 12), s = I(a, `${i}.labels.color`, I(a, "chart.color", "#2A2A2A")), c = g({
1102
+ p: t.prefix || I(a, "chart.labels.prefix", ""),
1100
1103
  v: n.value,
1101
- s: t.suffix || I(i, "chart.labels.suffix", ""),
1102
- r: I(i, `${r}.labels.rounding`, 0)
1104
+ s: t.suffix || I(a, "chart.labels.suffix", ""),
1105
+ r: I(a, `${i}.labels.rounding`, 0)
1106
+ }), l = Z(e) && Number.isFinite(Number(n.x)) ? `x: ${g({
1107
+ v: n.x,
1108
+ r: I(a, "chart.grid.labels.xAxis.rounding", 0)
1109
+ })}\ny: ${c}` : y(I(a, `${i}.labels.formatter`, null), n.value, c, {
1110
+ datapoint: n,
1111
+ serie: t
1103
1112
  });
1104
- return p({
1105
- content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${m({
1106
- v: n.x,
1107
- r: I(i, "chart.grid.labels.xAxis.rounding", 0)
1108
- })}\ny: ${s}` : b(I(i, `${r}.labels.formatter`, null), n.value, s, {
1109
- datapoint: n,
1110
- serie: t
1111
- }),
1112
- fontSize: a,
1113
- fill: o,
1113
+ return r({
1114
+ content: l,
1115
+ fontSize: o,
1116
+ fill: s,
1114
1117
  x: 0,
1115
1118
  y: 0
1116
1119
  });
@@ -1187,33 +1190,33 @@ function At(e, t, n, r, i, a) {
1187
1190
  `color:${s.color || "#2A2A2A"}`,
1188
1191
  `font-weight:${s.bold ? "bold" : "normal"}`
1189
1192
  ].join(";")
1190
- }, te(s.text)));
1193
+ }, S(s.text)));
1191
1194
  }
1192
1195
  function jt(e, t) {
1193
- let { config: n, drawingArea: r } = e, i = M(I(n, "chart.highlightArea", []));
1194
- if (!i.length) return "";
1195
- let a = Math.max(1, ...t.map((e) => M(e.plots).length)), o = Tt(e), s = Et(e, t), c = [];
1196
- return i.forEach((t, n) => {
1196
+ let { config: r, drawingArea: i } = e, a = M(I(r, "chart.highlightArea", []));
1197
+ if (!a.length) return "";
1198
+ let o = Math.max(1, ...t.map((e) => M(e.plots).length)), s = Tt(e), c = Et(e, t), l = [];
1199
+ return a.forEach((t, r) => {
1197
1200
  if (!t?.show) return;
1198
- let i = k(t.from, 0), l = Math.min(k(t.to, i), a - 1);
1199
- if (l < i) return;
1200
- for (let u = i; u <= l; u += 1) {
1201
- if (u < o || u > s - 1) continue;
1202
- let i = u - o;
1203
- c.push(A("rect", {
1201
+ let a = k(t.from, 0), u = Math.min(k(t.to, a), o - 1);
1202
+ if (u < a) return;
1203
+ for (let d = a; d <= u; d += 1) {
1204
+ if (d < s || d > c - 1) continue;
1205
+ let a = d - s;
1206
+ l.push(A("rect", {
1204
1207
  "data-cy": "highlight-area",
1205
- "data-key": `highlight_area_${n}_${u}`,
1206
- x: Ot(e, i, a),
1207
- y: r.top,
1208
- width: kt(e, a),
1209
- height: Math.max(1, r.height),
1210
- fill: E(t.color, k(t.opacity, 20)),
1208
+ "data-key": `highlight_area_${r}_${d}`,
1209
+ x: Ot(e, a, o),
1210
+ y: i.top,
1211
+ width: kt(e, o),
1212
+ height: Math.max(1, i.height),
1213
+ fill: n(t.color, k(t.opacity, 20)),
1211
1214
  "pointer-events": "none"
1212
1215
  }));
1213
1216
  }
1214
- let u = Math.max(i, o);
1215
- u <= Math.min(l, s - 1) && c.push(At(e, t, n, u - o, l - i + 1, a));
1216
- }), c.length ? L("g", { "data-layer": "highlight-areas" }, c.join("")) : "";
1217
+ let d = Math.max(a, s);
1218
+ d <= Math.min(u, c - 1) && l.push(At(e, t, r, d - s, u - a + 1, o));
1219
+ }), l.length ? L("g", { "data-layer": "highlight-areas" }, l.join("")) : "";
1217
1220
  }
1218
1221
  function Mt(e, t) {
1219
1222
  if (t == null) return null;
@@ -1238,64 +1241,64 @@ function Pt(e, t, n) {
1238
1241
  };
1239
1242
  }
1240
1243
  function Ft(e) {
1241
- let { config: t, drawingArea: n } = e;
1244
+ let { config: t, drawingArea: r } = e;
1242
1245
  if (Y(t)) return "";
1243
- let r = M(I(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
1244
- if (!r.length) return "";
1245
- let i = [];
1246
- return r.forEach((t, r) => {
1247
- let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, l = a.yTop, u = a.yBottom, d = l != null && u != null && l !== u, f = Mt(e, l), p = Mt(e, u), m = Number.isFinite(f), h = Number.isFinite(p);
1248
- if (!m && !h) return;
1249
- let g = [];
1250
- if (m && g.push(A("line", {
1251
- x1: n.left,
1252
- y1: f,
1253
- x2: n.right,
1254
- y2: f,
1255
- stroke: s.stroke,
1256
- "stroke-width": s.strokeWidth,
1257
- "stroke-dasharray": s.strokeDasharray,
1258
- "stroke-linecap": "round",
1259
- "data-cy": "xy-annotation-y-top-line"
1260
- })), h && g.push(A("line", {
1261
- x1: n.left,
1246
+ let i = M(I(t, "chart.annotations", [])).filter((e) => e?.show && (e.yAxis?.yTop !== null || e.yAxis?.yBottom !== null) && (e.yAxis?.yTop !== void 0 || e.yAxis?.yBottom !== void 0));
1247
+ if (!i.length) return "";
1248
+ let a = [];
1249
+ return i.forEach((t, i) => {
1250
+ let o = t.yAxis ?? {}, s = o.label ?? {}, c = o.line ?? {}, l = o.area ?? {}, u = o.yTop, d = o.yBottom, f = u != null && d != null && u !== d, p = Mt(e, u), m = Mt(e, d), h = Number.isFinite(p), g = Number.isFinite(m);
1251
+ if (!h && !g) return;
1252
+ let _ = [];
1253
+ if (h && _.push(A("line", {
1254
+ x1: r.left,
1262
1255
  y1: p,
1263
- x2: n.right,
1256
+ x2: r.right,
1264
1257
  y2: p,
1265
- stroke: s.stroke,
1266
- "stroke-width": s.strokeWidth,
1267
- "stroke-dasharray": s.strokeDasharray,
1258
+ stroke: c.stroke,
1259
+ "stroke-width": c.strokeWidth,
1260
+ "stroke-dasharray": c.strokeDasharray,
1261
+ "stroke-linecap": "round",
1262
+ "data-cy": "xy-annotation-y-top-line"
1263
+ })), g && _.push(A("line", {
1264
+ x1: r.left,
1265
+ y1: m,
1266
+ x2: r.right,
1267
+ y2: m,
1268
+ stroke: c.stroke,
1269
+ "stroke-width": c.strokeWidth,
1270
+ "stroke-dasharray": c.strokeDasharray,
1268
1271
  "stroke-linecap": "round",
1269
1272
  "data-cy": "xy-annotation-y-bottom-line"
1270
- })), d && m && h && g.push(A("rect", {
1271
- x: n.left,
1272
- y: Math.min(f, p),
1273
- width: n.width,
1274
- height: Math.abs(f - p),
1275
- fill: E(c.fill, k(c.opacity, 20)),
1273
+ })), f && h && g && _.push(A("rect", {
1274
+ x: r.left,
1275
+ y: Math.min(p, m),
1276
+ width: r.width,
1277
+ height: Math.abs(p - m),
1278
+ fill: n(l.fill, k(l.opacity, 20)),
1276
1279
  "data-cy": "xy-annotation-y-area",
1277
1280
  "pointer-events": "none"
1278
- })), o.text) {
1279
- let e = o.padding ?? {}, t = m && h ? Math.min(f, p) : m ? f : p, r = (o.position === "start" ? n.left + k(e.left, 0) : n.right - k(e.right, 0)) + k(o.offsetX, 0), i = t - k(o.fontSize, 12) / 3 + k(o.offsetY, 0) - k(e.top, 0), a = Pt(o, r, i);
1280
- Number.isFinite(a.y) && Number.isFinite(i) && (g.push(A("rect", {
1281
+ })), s.text) {
1282
+ let e = s.padding ?? {}, t = h && g ? Math.min(p, m) : h ? p : m, n = (s.position === "start" ? r.left + k(e.left, 0) : r.right - k(e.right, 0)) + k(s.offsetX, 0), i = t - k(s.fontSize, 12) / 3 + k(s.offsetY, 0) - k(e.top, 0), a = Pt(s, n, i);
1283
+ Number.isFinite(a.y) && Number.isFinite(i) && (_.push(A("rect", {
1281
1284
  class: "vue-ui-xy-annotation-label-box",
1282
1285
  ...a,
1283
1286
  "data-cy": "xy-annotation-label-box"
1284
- })), g.push(R(o.text, {
1287
+ })), _.push(R(s.text, {
1285
1288
  class: "vue-ui-xy-annotation-label",
1286
- x: r,
1289
+ x: n,
1287
1290
  y: i,
1288
- "font-size": o.fontSize,
1289
- fill: o.color,
1290
- "text-anchor": o.textAnchor,
1291
+ "font-size": s.fontSize,
1292
+ fill: s.color,
1293
+ "text-anchor": s.textAnchor,
1291
1294
  "data-cy": "xy-annotation-label"
1292
1295
  })));
1293
1296
  }
1294
- i.push(L("g", {
1297
+ a.push(L("g", {
1295
1298
  "data-layer": "annotation",
1296
- "data-key": `annotation_y_${r}`
1297
- }, g.join("")));
1298
- }), i.length ? L("g", { "data-layer": "annotations" }, i.join("")) : "";
1299
+ "data-key": `annotation_y_${i}`
1300
+ }, _.join("")));
1301
+ }), a.length ? L("g", { "data-layer": "annotations" }, a.join("")) : "";
1299
1302
  }
1300
1303
  function It(e, t) {
1301
1304
  let n = e.additionalSvgContent;
@@ -1326,7 +1329,7 @@ async function Lt(e) {
1326
1329
  }, i), o = a.series;
1327
1330
  return `
1328
1331
  <svg
1329
- xmlns="${C}"
1332
+ xmlns="${w}"
1330
1333
  width="100%"
1331
1334
  viewBox="0 0 ${n} ${r}"
1332
1335
  role="img"