vue-data-ui 3.22.5 → 3.22.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/{Arrow-CgzmXCW_.js → Arrow-DaGI9u-b.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
  3. package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-_-BX7be3.js} +1 -1
  4. package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-CHnlKalt.js} +1 -1
  5. package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-C9bdZSCj.js} +2 -2
  6. package/dist/{ColorPicker-Usv7badH.js → ColorPicker-TB3KhY3j.js} +2 -2
  7. package/dist/{DataTable-PidUPOit.js → DataTable-CVF7DoZn.js} +2 -2
  8. package/dist/{Legend-DXOzbXb-.js → Legend-kAr7Vqqu.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-CEiv7_gM.js} +3 -3
  10. package/dist/{PackageVersion-CqE8ssFu.js → PackageVersion-Dse0n05o.js} +1 -1
  11. package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-gaV1QPpP.js} +3 -3
  12. package/dist/{Shape-BnF9aMPX.js → Shape-CiQIxyyT.js} +1 -1
  13. package/dist/{Slicer-hEvKOLw3.js → Slicer-6FOtg9py.js} +2 -2
  14. package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-DUywypFu.js} +2 -2
  15. package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-B-qsPj68.js} +1 -1
  16. package/dist/{Title-DDEEO-Nr.js → Title-PiTKr6sp.js} +1 -1
  17. package/dist/{Tooltip-BhKov422.js → Tooltip-B8yYfISA.js} +1 -1
  18. package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BL9VlHop.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-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-ZOysoMwu.js → dom-to-png-BZjYWNEg.js} +1 -1
  89. package/dist/{exposedLib-C2U48XK7.js → exposedLib-Be0ifkti.js} +1 -1
  90. package/dist/{img-B29J8tV5.js → img-B_abIg0o.js} +1 -1
  91. package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CTDRZdP1.js} +1 -1
  92. package/dist/{lib-CuwHGt1j.js → lib-EAmk-PgA.js} +19 -9
  93. package/dist/{package-YOcaZtwF.js → package-DeMimPej.js} +1 -1
  94. package/dist/{pdf-ymYt9Lee.js → pdf-B6qrdEqB.js} +1 -1
  95. package/dist/{render-common-B80rr2N_.js → render-common-DMai0gHB.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +13 -0
  101. package/dist/types/vue-ui-treemap.d.ts +3 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
  103. package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
  104. package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-D8XqxgOU.js} +1 -1
  105. package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
  106. package/dist/{usePrinter-C0wAS8yc.js → usePrinter-DnGzpp6Q.js} +2 -2
  107. package/dist/utils.js +10 -10
  108. package/dist/{vue-data-ui-mqURXOql.js → vue-data-ui-D6qVWloL.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/{vue-ui-3d-bar-BZ1Slxfu.js → vue-ui-3d-bar-CjNuWXoA.js} +7 -7
  111. package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-Dzz8XhX3.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +1238 -0
  113. package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-DXZumSP8.js} +7 -7
  114. package/dist/{vue-ui-bullet-RGCGF_cO.js → vue-ui-bullet-Dde6FhbR.js} +8 -8
  115. package/dist/{vue-ui-bump-CiUmHi6k.js → vue-ui-bump-C5pni1JV.js} +7 -7
  116. package/dist/{vue-ui-candlestick-BJUk5fMm.js → vue-ui-candlestick-Ctw65O4_.js} +444 -441
  117. package/dist/{vue-ui-carousel-table-BksIDurC.js → vue-ui-carousel-table-BEUvhUH0.js} +5 -5
  118. package/dist/{vue-ui-chestnut-B3OHA5rg.js → vue-ui-chestnut-C3IbAdkQ.js} +6 -6
  119. package/dist/{vue-ui-chord-DETV2viY.js → vue-ui-chord-5eCWG4br.js} +9 -9
  120. package/dist/{vue-ui-circle-pack-DddaioRm.js → vue-ui-circle-pack-Cq4lkmee.js} +7 -7
  121. package/dist/{vue-ui-cursor-D2-hWt_G.js → vue-ui-cursor-DLJcFwRZ.js} +4 -4
  122. package/dist/{vue-ui-dag-Dp7pV6Ps.js → vue-ui-dag-DemsIecS.js} +8 -8
  123. package/dist/{vue-ui-dashboard-D91C5cXo.js → vue-ui-dashboard-DWHD_wNN.js} +70 -70
  124. package/dist/{vue-ui-digits-CMA3U4ZS.js → vue-ui-digits-sIKc85vS.js} +4 -4
  125. package/dist/vue-ui-donut-CLheJPcO.js +2410 -0
  126. package/dist/{vue-ui-donut-DpiS28CQ.js → vue-ui-donut-Dp6GW0dw.js} +91 -91
  127. package/dist/{vue-ui-donut-evolution-2B61hvv2.js → vue-ui-donut-evolution-zmRPpJLj.js} +10 -10
  128. package/dist/{vue-ui-dumbbell-Cmr65TNE.js → vue-ui-dumbbell-bSbgHd0U.js} +8 -8
  129. package/dist/{vue-ui-flow-7Yfsu6AY.js → vue-ui-flow-q_M7O1BK.js} +8 -8
  130. package/dist/{vue-ui-funnel-BLRBDW1a.js → vue-ui-funnel-BEZUEuuh.js} +7 -7
  131. package/dist/vue-ui-galaxy-DCCWmIyH.js +1077 -0
  132. package/dist/{vue-ui-gauge-yo4G5HMt.js → vue-ui-gauge-B1ljgfE1.js} +8 -8
  133. package/dist/{vue-ui-geo-BOHI6oMZ.js → vue-ui-geo-CM59rpnj.js} +8 -8
  134. package/dist/{vue-ui-gizmo-DI-35oK-.js → vue-ui-gizmo-D2RL6IVp.js} +4 -4
  135. package/dist/{vue-ui-heatmap-DBVM90VE.js → vue-ui-heatmap-BX6PQxML.js} +23 -23
  136. package/dist/{vue-ui-history-plot-BiWpOHKE.js → vue-ui-history-plot-DaHAeQph.js} +9 -9
  137. package/dist/{vue-ui-horizontal-bar-XBrvSxtJ.js → vue-ui-horizontal-bar-CTW6l4n3.js} +20 -20
  138. package/dist/{vue-ui-kpi-55wwhSBh.js → vue-ui-kpi-DLbP7lJR.js} +4 -4
  139. package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-DPHzHsM7.js} +3 -3
  140. package/dist/{vue-ui-molecule-DB3rmTw1.js → vue-ui-molecule-aD0SMTiX.js} +8 -8
  141. package/dist/{vue-ui-mood-radar-izcbwGOc.js → vue-ui-mood-radar-CCWaPr0P.js} +8 -8
  142. package/dist/{vue-ui-nested-donuts-DRJ1QT2n.js → vue-ui-nested-donuts--BCPWkl7.js} +21 -21
  143. package/dist/{vue-ui-onion-xTZOmmtb.js → vue-ui-onion-s4iMCGAP.js} +17 -17
  144. package/dist/{vue-ui-parallel-coordinate-plot-BxQ7D2_o.js → vue-ui-parallel-coordinate-plot-CfgvpyoC.js} +17 -17
  145. package/dist/{vue-ui-quadrant-BvAmtyAE.js → vue-ui-quadrant-T_UmRAAy.js} +15 -15
  146. package/dist/{vue-ui-quick-chart-CJ1xQgYc.js → vue-ui-quick-chart-D1OWBgQJ.js} +446 -446
  147. package/dist/{vue-ui-radar-C26C6p7e.js → vue-ui-radar-CHjeGOMC.js} +34 -34
  148. package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-Bek8Tgr-.js} +3 -3
  149. package/dist/{vue-ui-relation-circle-Dl1aWFAI.js → vue-ui-relation-circle-DRZGQ_UX.js} +8 -8
  150. package/dist/{vue-ui-ridgeline-BbJa5C-d.js → vue-ui-ridgeline-DIODGiu8.js} +10 -10
  151. package/dist/{vue-ui-rings-CyrvskTi.js → vue-ui-rings-CcdUSXGG.js} +17 -17
  152. package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
  153. package/dist/{vue-ui-skeleton-C4D0i9ho.js → vue-ui-skeleton-Fmue6DAG.js} +4 -4
  154. package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-BVMI5vUy.js} +3 -3
  155. package/dist/{vue-ui-spark-trend-CMb7UI2t.js → vue-ui-spark-trend-DfZeLiWA.js} +4 -4
  156. package/dist/{vue-ui-sparkbar-DEawjWhg.js → vue-ui-sparkbar-Cl1e49sw.js} +4 -4
  157. package/dist/{vue-ui-sparkgauge-mubHGQF_.js → vue-ui-sparkgauge-DDNNBIdf.js} +4 -4
  158. package/dist/{vue-ui-sparkhistogram-D8N-jNBt.js → vue-ui-sparkhistogram-ny_liYa6.js} +5 -5
  159. package/dist/{vue-ui-sparkline-D4p0PS3-.js → vue-ui-sparkline-BNxdO-Bx.js} +44 -44
  160. package/dist/{vue-ui-sparkstackbar-DnrZkIIc.js → vue-ui-sparkstackbar-BfF5-Wg2.js} +5 -5
  161. package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
  162. package/dist/vue-ui-stackline-CdvVPQUM.js +2419 -0
  163. package/dist/{vue-ui-strip-plot-pPiVqFYo.js → vue-ui-strip-plot-CRXPXA5V.js} +16 -16
  164. package/dist/{vue-ui-table-BzqQKuL-.js → vue-ui-table-Dr1dK3d_.js} +6 -6
  165. package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-D-Qrm3oX.js} +6 -6
  166. package/dist/{vue-ui-table-sparkline-BnavmY2R.js → vue-ui-table-sparkline-C31Q32My.js} +5 -5
  167. package/dist/{vue-ui-thermometer-ePIxpTuE.js → vue-ui-thermometer-BUrtIfuo.js} +8 -8
  168. package/dist/{vue-ui-timer-BQZxD91f.js → vue-ui-timer-B5bkNNHS.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-CDOlCWS8.js → vue-ui-tiremarks-Bn8b-ZSz.js} +7 -7
  170. package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
  171. package/dist/{vue-ui-waffle-BpZrFfUb.js → vue-ui-waffle-B_L3gkky.js} +275 -275
  172. package/dist/{vue-ui-wheel-DRfyK9q9.js → vue-ui-wheel-CeVwXtEX.js} +7 -7
  173. package/dist/{vue-ui-word-cloud-D0JUA9I9.js → vue-ui-word-cloud-D81-qJLw.js} +8 -8
  174. package/dist/{vue-ui-world-Dx-41fUM.js → vue-ui-world-B7npRmTa.js} +8 -8
  175. package/dist/{vue-ui-xy-BLSGO4Lm.js → vue-ui-xy-C2p9H2IX.js} +1498 -1496
  176. package/dist/{vue-ui-xy-DpRqQ09J.js → vue-ui-xy-OhwS0kcZ.js} +86 -86
  177. package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DLKDdH35.js} +411 -408
  178. package/package.json +1 -1
  179. package/dist/vue-ui-age-pyramid-uUVFZo8M.js +0 -1238
  180. package/dist/vue-ui-donut-DObpw5zP.js +0 -2410
  181. package/dist/vue-ui-galaxy-B9cxOcoE.js +0 -1077
  182. package/dist/vue-ui-scatter-D9Iw5xlb.js +0 -2413
  183. package/dist/vue-ui-stackbar-BzHSHKqe.js +0 -2329
  184. package/dist/vue-ui-stackline-CWSvsW1n.js +0 -2416
  185. package/dist/vue-ui-treemap-DrZlX_7n.js +0 -1587
@@ -1,40 +1,40 @@
1
- import { A as e, B as t, D as n, E as r, Gt as i, H as a, It as o, L as s, Lt as c, N as l, P as u, R as d, Rt as f, Ut as p, W as m, a as h, b as g, c as _, et as v, g as y, h as b, ht as x, i as S, j as ee, jt as C, q as w, s as te, t as T, z as E } from "./lib-CuwHGt1j.js";
1
+ import { $ as e, A as t, B as n, D as r, E as i, Gt as a, H as o, It as s, L as c, Lt as l, N as u, P as d, R as f, Rt as p, Ut as m, W as h, a as g, b as _, c as v, g as y, h as b, ht as x, i as S, j as ee, jt as C, q as w, s as te, t as T, z as E } from "./lib-EAmk-PgA.js";
2
2
  import { t as D } from "./useTimeLabels-BmBRv27Y.js";
3
- import { t as O } from "./useConfig-pVLia3dt.js";
3
+ import { t as O } from "./useConfig-DYM3f6EI.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-B80rr2N_.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-DMai0gHB.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 ?? {}, r = i({
9
+ let n = e ?? {}, r = a({
10
10
  userConfig: n,
11
11
  defaultConfig: z
12
12
  });
13
- x(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? r.chart.highlightArea = n.chart.highlightArea.map((e) => i({
13
+ x(n, "chart.highlightArea") && (Array.isArray(n.chart.highlightArea) ? r.chart.highlightArea = n.chart.highlightArea.map((e) => a({
14
14
  defaultConfig: z.chart.highlightArea,
15
15
  userConfig: e
16
- })) : r.chart.highlightArea = [i({
16
+ })) : r.chart.highlightArea = [a({
17
17
  defaultConfig: z.chart.highlightArea,
18
18
  userConfig: n.chart.highlightArea
19
- })]), x(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? r.chart.annotations = n.chart.annotations.map((e) => i({
19
+ })]), x(n, "chart.annotations") && Array.isArray(n.chart.annotations) && n.chart.annotations.length ? r.chart.annotations = n.chart.annotations.map((e) => a({
20
20
  defaultConfig: z.chart.annotations[0],
21
21
  userConfig: e
22
22
  })) : r.chart.annotations = [], x(n, "chart.grid.position") && n.chart.grid.position === "start" && t.some((e) => e.type === "bar") && (r.chart.grid.position = "middle");
23
- let a = r.theme;
24
- if (!a) return {
23
+ let i = r.theme;
24
+ if (!i) return {
25
25
  ...r,
26
26
  customPalette: r.customPalette?.length ? r.customPalette : C
27
27
  };
28
- let o = i({
28
+ let o = a({
29
29
  userConfig: n,
30
- defaultConfig: i({
31
- userConfig: ne[a] || {},
30
+ defaultConfig: a({
31
+ userConfig: ne[i] || {},
32
32
  defaultConfig: r
33
33
  })
34
34
  });
35
35
  return {
36
36
  ...o,
37
- customPalette: o.customPalette?.length ? o.customPalette : p[a] || C
37
+ customPalette: o.customPalette?.length ? o.customPalette : m[i] || C
38
38
  };
39
39
  }
40
40
  function B(e) {
@@ -79,7 +79,7 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
79
79
  xScale: f,
80
80
  drawingArea: c,
81
81
  config: s
82
- }) : null : m(t), _ = (e) => {
82
+ }) : null : m(t), g = (e) => {
83
83
  let t = (Number(e) - u.min) / (u.max - u.min || 1);
84
84
  return c.bottom - t * c.height;
85
85
  }, v = Array.isArray(s.customPalette) ? s.customPalette : [], y = v.length ? v : C;
@@ -94,11 +94,11 @@ function ce({ dataset: e = [], config: t = {}, width: n = 1e3, height: r = 600,
94
94
  xScale: f,
95
95
  isContinuous: d,
96
96
  series: e.map((e, t) => {
97
- let n = (e.color ? g(e.color) : "") || y[t % y.length], r = (e.series || []).map((e, t) => {
97
+ let n = (e.color ? _(e.color) : "") || y[t % y.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
100
  x: h(e, t),
101
- y: n === null || !Number.isFinite(Number(n)) ? null : _(n),
101
+ y: n === null || !Number.isFinite(Number(n)) ? null : g(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 = m();
186
+ var ve = h();
187
187
  function W(e) {
188
188
  return ve;
189
189
  }
@@ -208,7 +208,7 @@ function Ce(e, t, n) {
208
208
  }
209
209
  function we(e, t, n) {
210
210
  let { config: r } = e;
211
- return I(r, "line.area.useGradient", !1) ? `url(#${rt(e, n)})` : c(t.color, k(I(r, "line.area.opacity", 30), 30));
211
+ return I(r, "line.area.useGradient", !1) ? `url(#${rt(e, n)})` : l(t.color, k(I(r, "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;
@@ -223,15 +223,15 @@ function Te(e, t) {
223
223
  }, [
224
224
  A("stop", {
225
225
  offset: "0%",
226
- "stop-color": g(t.color)
226
+ "stop-color": _(t.color)
227
227
  }),
228
228
  A("stop", {
229
229
  offset: "62%",
230
- "stop-color": f(g(t.color), .02)
230
+ "stop-color": p(_(t.color), .02)
231
231
  }),
232
232
  A("stop", {
233
233
  offset: "100%",
234
- "stop-color": f(g(t.color), .05)
234
+ "stop-color": p(_(t.color), .05)
235
235
  })
236
236
  ].join(""))), r.push(L("linearGradient", {
237
237
  id: G(e, n, "neg"),
@@ -240,15 +240,15 @@ function Te(e, t) {
240
240
  }, [
241
241
  A("stop", {
242
242
  offset: "0%",
243
- "stop-color": f(g(t.color), .05)
243
+ "stop-color": p(_(t.color), .05)
244
244
  }),
245
245
  A("stop", {
246
246
  offset: "38%",
247
- "stop-color": f(g(t.color), .02)
247
+ "stop-color": p(_(t.color), .02)
248
248
  }),
249
249
  A("stop", {
250
250
  offset: "100%",
251
- "stop-color": g(t.color)
251
+ "stop-color": _(t.color)
252
252
  })
253
253
  ].join("")));
254
254
  }), t.filter((e) => e.type === "line").forEach((t, i) => {
@@ -261,16 +261,16 @@ function Te(e, t) {
261
261
  fy: "50%"
262
262
  }, [A("stop", {
263
263
  offset: "0%",
264
- "stop-color": f(g(t.color), .05)
264
+ "stop-color": p(_(t.color), .05)
265
265
  }), A("stop", {
266
266
  offset: "100%",
267
- "stop-color": g(t.color)
267
+ "stop-color": _(t.color)
268
268
  })].join(""))), t.temperatureColors && !t.isFlatTemperatureLine && r.push(L("linearGradient", {
269
269
  id: be(e, i),
270
270
  gradientTransform: "rotate(90)"
271
271
  }, t.temperatureColors.map((e, n) => A("stop", {
272
- offset: o(n, t.temperatureColors.length),
273
- "stop-color": g(e)
272
+ offset: s(n, t.temperatureColors.length),
273
+ "stop-color": _(e)
274
274
  })).join("")));
275
275
  }), t.filter((e) => e.type === "plot").forEach((t, i) => {
276
276
  I(n, "plot.useGradient", !1) && r.push(L("radialGradient", {
@@ -282,10 +282,10 @@ function Te(e, t) {
282
282
  fy: "50%"
283
283
  }, [A("stop", {
284
284
  offset: "0%",
285
- "stop-color": f(g(t.color), .05)
285
+ "stop-color": p(_(t.color), .05)
286
286
  }), A("stop", {
287
287
  offset: "100%",
288
- "stop-color": g(t.color)
288
+ "stop-color": _(t.color)
289
289
  })].join("")));
290
290
  }), r.length ? L("defs", { "data-layer": "gradients" }, r.join("")) : "";
291
291
  }
@@ -361,10 +361,10 @@ 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, g = (p ? o.yAxis * 1.5 : 0) + m + o.xAxis, _ = 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, w = s.right, te = i - C - w - 6 - x - y, T = {
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, _ = 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, w = s.right, te = i - C - w - 6 - x - y, T = {
365
365
  top: v + _ + d,
366
366
  right: C + (J(n) ? 0 : ee) + x + te,
367
- bottom: a - g - b - S - f,
367
+ bottom: a - h - b - S - f,
368
368
  left: C + (J(n) ? 0 : ee) + x,
369
369
  width: Math.max(1, te),
370
370
  height: 1,
@@ -375,7 +375,7 @@ function je(e, t) {
375
375
  individualOffsetX: 36
376
376
  };
377
377
  T.height = Math.max(1, T.bottom - T.top);
378
- let E = Y(n), D = E ? h(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 ? g(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);
@@ -767,7 +767,7 @@ async function Qe(e, t) {
767
767
  let { config: n, drawingArea: r } = e;
768
768
  if (!t[0] || !I(n, "chart.grid.labels.xAxisLabels.show", !0)) return "";
769
769
  I(n, "chart.grid.labels.xAxisLabels", {});
770
- let i = 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";
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")), s = Ze(e), c = Math.max(1, t[0].plots.length), l = await Ye(e, t), u = s > 0 ? "start" : s < 0 ? "end" : "middle";
771
771
  return L("g", { "data-layer": "x-axis-labels" }, l.map((t, n) => {
772
772
  let l = typeof t == "string" ? t : t?.text;
773
773
  if (!l) return "";
@@ -777,12 +777,12 @@ async function Qe(e, t) {
777
777
  "data-cy": "time-label",
778
778
  "text-anchor": u,
779
779
  "font-size": i,
780
- fill: o,
780
+ fill: a,
781
781
  transform: d
782
- }, a({
782
+ }, o({
783
783
  content: String(l),
784
784
  fontSize: i,
785
- fill: o,
785
+ fill: a,
786
786
  x: 0,
787
787
  y: 0
788
788
  })) : R(l, {
@@ -790,7 +790,7 @@ async function Qe(e, t) {
790
790
  "data-cy": "time-label",
791
791
  "text-anchor": u,
792
792
  "font-size": i,
793
- fill: o,
793
+ fill: a,
794
794
  transform: d
795
795
  });
796
796
  }).join(""));
@@ -895,7 +895,7 @@ function it(e, t) {
895
895
  y2: "100%"
896
896
  }, [A("stop", {
897
897
  offset: "0%",
898
- "stop-color": c(f(g(t.color), .03), r),
898
+ "stop-color": l(p(_(t.color), .03), r),
899
899
  "stop-opacity": 1
900
900
  }), A("stop", {
901
901
  offset: "100%",
@@ -904,15 +904,15 @@ function it(e, t) {
904
904
  })].join(""))).join("");
905
905
  return i ? L("defs", {}, i) : "";
906
906
  }
907
- function at(t, i) {
908
- let { config: a } = t, o = !!I(a, "line.cutNullValues", !1), c = [];
909
- return i.filter((e) => e.type === "line" && e.useArea).forEach((i, a) => {
910
- let l = M(i.plots), u = l.filter((e) => e && e.value !== null);
907
+ function at(e, n) {
908
+ let { config: a } = e, o = !!I(a, "line.cutNullValues", !1), s = [];
909
+ return n.filter((e) => e.type === "line" && e.useArea).forEach((n, a) => {
910
+ let l = M(n.plots), u = l.filter((e) => e && e.value !== null);
911
911
  if (u.length < 2) return;
912
- let d = Number.isFinite(Number(i.__zeroY)) ? Number(i.__zeroY) : U(t), f = we(t, i, a);
913
- if (i.smooth && !i.useStepper) {
914
- e(o ? l : u, d, o).forEach((e) => {
915
- e && c.push(A("path", {
912
+ let d = Number.isFinite(Number(n.__zeroY)) ? Number(n.__zeroY) : U(e), f = we(e, n, a);
913
+ if (n.smooth && !n.useStepper) {
914
+ t(o ? l : u, d, o).forEach((e) => {
915
+ e && s.push(A("path", {
916
916
  d: e,
917
917
  fill: f,
918
918
  "data-cy": "datapoint-line-area-smooth"
@@ -920,14 +920,14 @@ function at(t, i) {
920
920
  });
921
921
  return;
922
922
  }
923
- (i.useStepper ? s(o ? l : u, d) : o ? n(l, d) : r(u, d)).split(";").filter(Boolean).forEach((e) => {
924
- c.push(A("path", {
923
+ (n.useStepper ? c(o ? l : u, d) : o ? r(l, d) : i(u, d)).split(";").filter(Boolean).forEach((e) => {
924
+ s.push(A("path", {
925
925
  d: `M${e}Z`,
926
926
  fill: f,
927
927
  "data-cy": "datapoint-line-area-straight"
928
928
  }));
929
929
  });
930
- }), L("g", { "data-layer": "line-areas" }, c.join(""));
930
+ }), L("g", { "data-layer": "line-areas" }, s.join(""));
931
931
  }
932
932
  function ot(e, t) {
933
933
  let n = k(t.slotStartIndex ?? t.startAbs, 0);
@@ -945,20 +945,20 @@ function st(e, t, n, r, i) {
945
945
  "stroke-dasharray": i ? o * 2 : 0
946
946
  });
947
947
  }
948
- function ct(e, n) {
949
- let { config: r } = e, i = n.filter((e) => e.type === "line"), a = !!I(r, "line.cutNullValues", !1), o = [];
950
- return i.forEach((n, i) => {
951
- let c = a ? M(n.plots) : M(n.plots).filter((e) => e.value !== null), f = c.filter((e) => e.value !== null);
952
- if (!(f.length < 2)) {
953
- if (M(n.dashIndices).length > 0 && !n.useStepper) {
954
- let a = ot(n, e);
955
- (n.smooth || I(r, "line.smooth", !1) ? u(c, a) : t(c, a)).forEach((t) => {
956
- t?.path && o.push(st(e, n, i, t.path, !!t.dashed));
948
+ function ct(e, t) {
949
+ let { config: r } = e, i = t.filter((e) => e.type === "line"), a = !!I(r, "line.cutNullValues", !1), o = [];
950
+ return i.forEach((t, i) => {
951
+ let s = a ? M(t.plots) : M(t.plots).filter((e) => e.value !== null), l = s.filter((e) => e.value !== null);
952
+ if (!(l.length < 2)) {
953
+ if (M(t.dashIndices).length > 0 && !t.useStepper) {
954
+ let a = ot(t, e);
955
+ (t.smooth || I(r, "line.smooth", !1) ? d(s, a) : n(s, a)).forEach((n) => {
956
+ n?.path && o.push(st(e, t, i, n.path, !!n.dashed));
957
957
  });
958
958
  return;
959
959
  }
960
- (n.useStepper ? s(c).split(";").filter(Boolean) : [n.smooth || I(r, "line.smooth", !1) ? a ? l(c) : ee(f) : a ? E(c) : d(f, !1, !0)]).forEach((t) => {
961
- t && o.push(st(e, n, i, t, !!n.dashed));
960
+ (t.useStepper ? c(s).split(";").filter(Boolean) : [t.smooth || I(r, "line.smooth", !1) ? a ? u(s) : ee(l) : a ? E(s) : f(l, !1, !0)]).forEach((n) => {
961
+ n && o.push(st(e, t, i, n, !!t.dashed));
962
962
  });
963
963
  }
964
964
  }), L("g", { "data-layer": "lines" }, o.join(""));
@@ -1038,7 +1038,7 @@ function ht(e, t) {
1038
1038
  let i = o.find((e) => e.name === n), u = o.find((e) => e.name === r);
1039
1039
  if (!i || !u) return;
1040
1040
  let d = a?.[t]?.[0] ?? i.color, f = a?.[t]?.[1] ?? u.color;
1041
- _({
1041
+ v({
1042
1042
  lineA: M(i.plots),
1043
1043
  lineB: M(u.plots),
1044
1044
  smoothA: !!i.smooth,
@@ -1095,13 +1095,13 @@ function yt(e, t, n, r, i) {
1095
1095
  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
1096
  }
1097
1097
  function bt(e, t, n, r) {
1098
- let { config: i } = e, o = k(I(i, `${r}.labels.fontSize`, I(i, "chart.labels.fontSize", 12)), 12), s = I(i, `${r}.labels.color`, I(i, "chart.color", "#2A2A2A")), c = w({
1098
+ let { config: i } = e, a = k(I(i, `${r}.labels.fontSize`, I(i, "chart.labels.fontSize", 12)), 12), s = I(i, `${r}.labels.color`, I(i, "chart.color", "#2A2A2A")), c = w({
1099
1099
  p: t.prefix || I(i, "chart.labels.prefix", ""),
1100
1100
  v: n.value,
1101
1101
  s: t.suffix || I(i, "chart.labels.suffix", ""),
1102
1102
  r: I(i, `${r}.labels.rounding`, 0)
1103
1103
  });
1104
- return a({
1104
+ return o({
1105
1105
  content: Z(e) && Number.isFinite(Number(n.x)) ? `x: ${w({
1106
1106
  v: n.x,
1107
1107
  r: I(i, "chart.grid.labels.xAxis.rounding", 0)
@@ -1109,7 +1109,7 @@ function bt(e, t, n, r) {
1109
1109
  datapoint: n,
1110
1110
  serie: t
1111
1111
  }),
1112
- fontSize: o,
1112
+ fontSize: a,
1113
1113
  fill: s,
1114
1114
  x: 0,
1115
1115
  y: 0
@@ -1166,33 +1166,33 @@ function Ot(e, t, n) {
1166
1166
  function kt(e, t) {
1167
1167
  return Dt(e, t);
1168
1168
  }
1169
- function At(e, t, n, r, i, a) {
1170
- let { drawingArea: o } = e, s = t.caption ?? {};
1171
- if (!s.text) return "";
1172
- let c = kt(e, a) * i, l = s.width === "auto" ? c : k(s.width, c), u = Ot(e, r, a) - (s.width === "auto" ? 0 : l / 2 - c / 2), d = o.top + k(s.offsetY, 0);
1169
+ function At(t, n, r, i, a, o) {
1170
+ let { drawingArea: s } = t, c = n.caption ?? {};
1171
+ if (!c.text) return "";
1172
+ let l = kt(t, o) * a, u = c.width === "auto" ? l : k(c.width, l), d = Ot(t, i, o) - (c.width === "auto" ? 0 : u / 2 - l / 2), f = s.top + k(c.offsetY, 0);
1173
1173
  return L("foreignObject", {
1174
- "data-key": `highlight_area_caption_${n}`,
1175
- x: u,
1176
- y: d,
1177
- width: l,
1174
+ "data-key": `highlight_area_caption_${r}`,
1175
+ x: d,
1176
+ y: f,
1177
+ width: u,
1178
1178
  height: 1,
1179
1179
  overflow: "visible"
1180
1180
  }, L("div", {
1181
1181
  xmlns: "http://www.w3.org/1999/xhtml",
1182
1182
  "data-cy": "highlight-area-caption",
1183
1183
  style: [
1184
- `padding:${k(s.padding, 0)}px`,
1185
- `text-align:${s.textAlign || "center"}`,
1186
- `font-size:${k(s.fontSize, 12)}px`,
1187
- `color:${s.color || "#2A2A2A"}`,
1188
- `font-weight:${s.bold ? "bold" : "normal"}`
1184
+ `padding:${k(c.padding, 0)}px`,
1185
+ `text-align:${c.textAlign || "center"}`,
1186
+ `font-size:${k(c.fontSize, 12)}px`,
1187
+ `color:${c.color || "#2A2A2A"}`,
1188
+ `font-weight:${c.bold ? "bold" : "normal"}`
1189
1189
  ].join(";")
1190
- }, v(s.text)));
1190
+ }, e(c.text)));
1191
1191
  }
1192
1192
  function jt(e, t) {
1193
1193
  let { config: n, drawingArea: r } = e, i = M(I(n, "chart.highlightArea", []));
1194
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), l = [];
1195
+ let a = Math.max(1, ...t.map((e) => M(e.plots).length)), o = Tt(e), s = Et(e, t), c = [];
1196
1196
  return i.forEach((t, n) => {
1197
1197
  if (!t?.show) return;
1198
1198
  let i = k(t.from, 0), u = Math.min(k(t.to, i), a - 1);
@@ -1200,20 +1200,20 @@ function jt(e, t) {
1200
1200
  for (let d = i; d <= u; d += 1) {
1201
1201
  if (d < o || d > s - 1) continue;
1202
1202
  let i = d - o;
1203
- l.push(A("rect", {
1203
+ c.push(A("rect", {
1204
1204
  "data-cy": "highlight-area",
1205
1205
  "data-key": `highlight_area_${n}_${d}`,
1206
1206
  x: Ot(e, i, a),
1207
1207
  y: r.top,
1208
1208
  width: kt(e, a),
1209
1209
  height: Math.max(1, r.height),
1210
- fill: c(t.color, k(t.opacity, 20)),
1210
+ fill: l(t.color, k(t.opacity, 20)),
1211
1211
  "pointer-events": "none"
1212
1212
  }));
1213
1213
  }
1214
1214
  let d = Math.max(i, o);
1215
- d <= Math.min(u, s - 1) && l.push(At(e, t, n, d - o, u - i + 1, a));
1216
- }), l.length ? L("g", { "data-layer": "highlight-areas" }, l.join("")) : "";
1215
+ d <= Math.min(u, s - 1) && c.push(At(e, t, n, d - o, u - i + 1, a));
1216
+ }), c.length ? L("g", { "data-layer": "highlight-areas" }, c.join("")) : "";
1217
1217
  }
1218
1218
  function Mt(e, t) {
1219
1219
  if (t == null) return null;
@@ -1244,7 +1244,7 @@ function Ft(e) {
1244
1244
  if (!r.length) return "";
1245
1245
  let i = [];
1246
1246
  return r.forEach((t, r) => {
1247
- let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, l = a.area ?? {}, u = a.yTop, d = a.yBottom, f = u != null && d != null && u !== d, p = Mt(e, u), m = Mt(e, d), h = Number.isFinite(p), g = Number.isFinite(m);
1247
+ let a = t.yAxis ?? {}, o = a.label ?? {}, s = a.line ?? {}, c = a.area ?? {}, u = a.yTop, d = a.yBottom, f = u != null && d != null && u !== d, p = Mt(e, u), m = Mt(e, d), h = Number.isFinite(p), g = Number.isFinite(m);
1248
1248
  if (!h && !g) return;
1249
1249
  let _ = [];
1250
1250
  if (h && _.push(A("line", {
@@ -1272,7 +1272,7 @@ function Ft(e) {
1272
1272
  y: Math.min(p, m),
1273
1273
  width: n.width,
1274
1274
  height: Math.abs(p - m),
1275
- fill: c(l.fill, k(l.opacity, 20)),
1275
+ fill: l(c.fill, k(c.opacity, 20)),
1276
1276
  "data-cy": "xy-annotation-y-area",
1277
1277
  "pointer-events": "none"
1278
1278
  })), o.text) {