vue-data-ui 3.13.0 → 3.13.2

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 (167) hide show
  1. package/dist/{Arrow-DWr41GRU.js → Arrow-DCauiw0a.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BOGgrHTy.js → BaseDraggableDialog-DC6U5583.js} +2 -2
  3. package/dist/{BaseIcon-BwSqZoOr.js → BaseIcon-CJ7mD4nD.js} +1 -1
  4. package/dist/{BaseLegendToggle-B4-hdikk.js → BaseLegendToggle-BMdGBKCs.js} +1 -1
  5. package/dist/{BaseZoomControls-D3gTxbvm.js → BaseZoomControls-Dp4YHvIN.js} +2 -2
  6. package/dist/{ColorPicker-CeEDMD2O.js → ColorPicker-BdPM3Q99.js} +2 -2
  7. package/dist/{DataTable-B2a7qHZw.js → DataTable-C2E28XF-.js} +2 -2
  8. package/dist/{Legend-DUESGUtH.js → Legend-DDvnrFfr.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper--EzGcPXp.js → NonSvgPenAndPaper-dznYxXaY.js} +3 -3
  10. package/dist/{PackageVersion-BUiZH7T6.js → PackageVersion-CdPbb2sr.js} +1 -1
  11. package/dist/{PenAndPaper-D7T0cXZC.js → PenAndPaper-CDju85X_.js} +3 -3
  12. package/dist/{Shape-PzdCMGsP.js → Shape-CDT71WC7.js} +1 -1
  13. package/dist/{Slicer-52xjYM7P.js → Slicer-D6ACafGp.js} +2 -2
  14. package/dist/{SlicerPreview-CX3vw034.js → SlicerPreview-BEkr4ELo.js} +2 -2
  15. package/dist/{SparkTooltip-BLTVhvm2.js → SparkTooltip-DObYB3vB.js} +1 -1
  16. package/dist/{Title-B2qhu8Lw.js → Title-CeMocAxM.js} +1 -1
  17. package/dist/{Tooltip-B6qvABDL.js → Tooltip-jUEeS8VT.js} +1 -1
  18. package/dist/{UserOptions-BaGfWcXF.js → UserOptions-DV6hYCK6.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-CzjUUVZt.js → dom-to-png-CmUF0dXb.js} +1 -1
  89. package/dist/{img-6fNF_rG0.js → img-BMMrBrFA.js} +1 -1
  90. package/dist/{labelUtils-D6Y-n7cD.js → labelUtils-BurkE07s.js} +1 -1
  91. package/dist/{lib-CVHM9FhP.js → lib-BrVUf7jz.js} +10 -10
  92. package/dist/{pdf-Dd_6HF9L.js → pdf-B7kkygOv.js} +1 -1
  93. package/dist/style.css +1 -1
  94. package/dist/types/vue-data-ui.d.ts +15 -0
  95. package/dist/{useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js → useAutoSizeLabelsInsideViewbox-CjxrbFED.js} +1 -1
  96. package/dist/{useNestedProp-DBDAPWcu.js → useNestedProp-Bamwa7TH.js} +16 -2
  97. package/dist/{usePrinter-1NmjuP-i.js → usePrinter-DKjCimma.js} +2 -2
  98. package/dist/{vue-data-ui-D1E4251H.js → vue-data-ui-C_fGFzEp.js} +68 -68
  99. package/dist/vue-data-ui.js +73 -73
  100. package/dist/{vue-ui-3d-bar-CgVGpnCt.js → vue-ui-3d-bar-DP7IdUbR.js} +6 -6
  101. package/dist/{vue-ui-accordion-C_mCy0GO.js → vue-ui-accordion-d_mYq_ty.js} +3 -3
  102. package/dist/{vue-ui-age-pyramid-BhjTT3DC.js → vue-ui-age-pyramid-NXkGU5ye.js} +6 -6
  103. package/dist/{vue-ui-annotator-CKgbFmUs.js → vue-ui-annotator-K9tPH67i.js} +7 -7
  104. package/dist/{vue-ui-bullet-BnWagfaA.js → vue-ui-bullet-BGuwKETO.js} +7 -7
  105. package/dist/{vue-ui-bump-foFhlwgZ.js → vue-ui-bump-DEOPNx5y.js} +6 -6
  106. package/dist/{vue-ui-candlestick-Dwkufbjr.js → vue-ui-candlestick-BWq1wKcM.js} +7 -7
  107. package/dist/{vue-ui-carousel-table-ChdrJL5m.js → vue-ui-carousel-table-CZxffzDF.js} +4 -4
  108. package/dist/{vue-ui-chestnut-Bwksaice.js → vue-ui-chestnut-50SNPqfM.js} +5 -5
  109. package/dist/{vue-ui-chord-DkZoA24X.js → vue-ui-chord-DlrZM-bY.js} +8 -8
  110. package/dist/{vue-ui-circle-pack-CJsFhaDz.js → vue-ui-circle-pack-tbs6FbUJ.js} +6 -6
  111. package/dist/{vue-ui-cursor-mqVe7Y-a.js → vue-ui-cursor-CeX4EQK5.js} +3 -3
  112. package/dist/{vue-ui-dag-WnGENAa3.js → vue-ui-dag-kSTQu200.js} +7 -7
  113. package/dist/{vue-ui-dashboard-By8oB-nX.js → vue-ui-dashboard-CVIihTvt.js} +68 -68
  114. package/dist/{vue-ui-digits-Bx-satCl.js → vue-ui-digits-C8-MaCF9.js} +2 -2
  115. package/dist/{vue-ui-donut-D5nqwNxn.js → vue-ui-donut-CvgJGvr8.js} +62 -62
  116. package/dist/{vue-ui-donut-evolution-CCdXzG-K.js → vue-ui-donut-evolution-8t3VpFBM.js} +9 -9
  117. package/dist/{vue-ui-dumbbell-u4NWq7EA.js → vue-ui-dumbbell-DhsqhBMZ.js} +7 -7
  118. package/dist/{vue-ui-flow-Cli9mh5R.js → vue-ui-flow-40_lIp68.js} +7 -7
  119. package/dist/{vue-ui-funnel-x_oyMv-g.js → vue-ui-funnel-B2ORn05E.js} +6 -6
  120. package/dist/{vue-ui-galaxy-KU8sE9yj.js → vue-ui-galaxy--TlNs2Sg.js} +9 -9
  121. package/dist/{vue-ui-gauge-DOCwekQw.js → vue-ui-gauge-DeY4BNFp.js} +7 -7
  122. package/dist/{vue-ui-geo-BSm_rlXS.js → vue-ui-geo-aGn1sexm.js} +7 -7
  123. package/dist/{vue-ui-gizmo-7srxIV-o.js → vue-ui-gizmo-CRFCxxhM.js} +3 -3
  124. package/dist/{vue-ui-heatmap-O--_H-gU.js → vue-ui-heatmap-CL4ljUus.js} +7 -7
  125. package/dist/{vue-ui-history-plot-DALdrNCs.js → vue-ui-history-plot-DLxBpK70.js} +8 -8
  126. package/dist/{vue-ui-horizontal-bar-DCdgJsYP.js → vue-ui-horizontal-bar-BZk6t1_d.js} +10 -10
  127. package/dist/{vue-ui-kpi-BSrmWF6e.js → vue-ui-kpi-C_1ELuRv.js} +3 -3
  128. package/dist/{vue-ui-mini-loader-CjNAgIP7.js → vue-ui-mini-loader-BZTxux3w.js} +2 -2
  129. package/dist/{vue-ui-molecule-BOaaDa_f.js → vue-ui-molecule-BpcyfHpM.js} +5 -5
  130. package/dist/{vue-ui-mood-radar-oFwautms.js → vue-ui-mood-radar-B6LV7jqY.js} +7 -7
  131. package/dist/{vue-ui-nested-donuts-DTpIOMky.js → vue-ui-nested-donuts-e_22lyMT.js} +9 -9
  132. package/dist/{vue-ui-onion-BSHdcu3D.js → vue-ui-onion-BzOC2siQ.js} +10 -10
  133. package/dist/{vue-ui-parallel-coordinate-plot-DCBvtKH5.js → vue-ui-parallel-coordinate-plot-BVHkiOKh.js} +9 -9
  134. package/dist/{vue-ui-quadrant-CBTQAM5C.js → vue-ui-quadrant-DGVkfAF_.js} +9 -9
  135. package/dist/{vue-ui-quick-chart-D8d9mCp5.js → vue-ui-quick-chart-BsCVVyys.js} +7 -7
  136. package/dist/{vue-ui-radar-fyynw3kX.js → vue-ui-radar-C6lj2GXI.js} +9 -9
  137. package/dist/{vue-ui-rating-CoeJ4nzT.js → vue-ui-rating-CFH0jY6v.js} +2 -2
  138. package/dist/{vue-ui-relation-circle-CHLL7fWj.js → vue-ui-relation-circle-D1sMLtFh.js} +7 -7
  139. package/dist/{vue-ui-ridgeline-BescV_9j.js → vue-ui-ridgeline-Migykkg5.js} +9 -9
  140. package/dist/{vue-ui-rings-BLzeGlw1.js → vue-ui-rings-C_BzwPOl.js} +10 -10
  141. package/dist/{vue-ui-scatter-Lkdahppt.js → vue-ui-scatter-0N2N7p2u.js} +9 -9
  142. package/dist/{vue-ui-skeleton-DN0ow_rk.js → vue-ui-skeleton-B2I-tk1Z.js} +3 -3
  143. package/dist/{vue-ui-smiley-BjeNTXgB.js → vue-ui-smiley-CXzhTaY2.js} +2 -2
  144. package/dist/{vue-ui-spark-trend-ByQy54yB.js → vue-ui-spark-trend-b7A0JJM8.js} +3 -3
  145. package/dist/{vue-ui-sparkbar-ZdaJfCgv.js → vue-ui-sparkbar-Dvrm3-uj.js} +3 -3
  146. package/dist/{vue-ui-sparkgauge-C-XRI2le.js → vue-ui-sparkgauge-DxgBvphO.js} +3 -3
  147. package/dist/{vue-ui-sparkhistogram-C0NBzDcp.js → vue-ui-sparkhistogram-ukOI-h6-.js} +4 -4
  148. package/dist/vue-ui-sparkline-Drbps9xL.js +739 -0
  149. package/dist/{vue-ui-sparkstackbar-CKaAwbIG.js → vue-ui-sparkstackbar-JIdKUFx1.js} +4 -4
  150. package/dist/{vue-ui-stackbar-ByubXFXF.js → vue-ui-stackbar-CXvQ4Bm_.js} +10 -10
  151. package/dist/{vue-ui-stackline-CMlqSvYs.js → vue-ui-stackline-CWRoLOhP.js} +10 -10
  152. package/dist/{vue-ui-strip-plot-WAZfJJd5.js → vue-ui-strip-plot-BANUvymx.js} +7 -7
  153. package/dist/{vue-ui-table-heatmap-DBpu7fd2.js → vue-ui-table-heatmap-BMAWjTp_.js} +5 -5
  154. package/dist/{vue-ui-table-CfXnjcKM.js → vue-ui-table-kCir7kax.js} +5 -5
  155. package/dist/{vue-ui-table-sparkline-BrJnSxMg.js → vue-ui-table-sparkline-brPOHGmn.js} +4 -4
  156. package/dist/{vue-ui-thermometer-1AQdrnVB.js → vue-ui-thermometer-C6v-w70_.js} +7 -7
  157. package/dist/{vue-ui-timer-B8nLTytW.js → vue-ui-timer-DQ5yKVhX.js} +5 -5
  158. package/dist/{vue-ui-tiremarks-Ba584V8X.js → vue-ui-tiremarks-DdE7O4Ur.js} +6 -6
  159. package/dist/{vue-ui-treemap-hqPz1RVy.js → vue-ui-treemap-VzO40faB.js} +9 -9
  160. package/dist/{vue-ui-waffle-Bi8zpeBL.js → vue-ui-waffle-CnzdJgOz.js} +10 -10
  161. package/dist/{vue-ui-wheel-B7x9Ykpj.js → vue-ui-wheel-Cq_Iy__D.js} +6 -6
  162. package/dist/{vue-ui-word-cloud-KobAg3dS.js → vue-ui-word-cloud-BH3iu9jm.js} +7 -7
  163. package/dist/{vue-ui-world-De0_sYDb.js → vue-ui-world-92UxudT5.js} +7 -7
  164. package/dist/{vue-ui-xy-c_ghrhFh.js → vue-ui-xy-CYKmyeYg.js} +10 -10
  165. package/dist/{vue-ui-xy-canvas-CdDD57ea.js → vue-ui-xy-canvas-BH6gw0g-.js} +11 -11
  166. package/package.json +1 -1
  167. package/dist/vue-ui-sparkline-C7ZDbt2b.js +0 -559
@@ -0,0 +1,739 @@
1
+ import { ref as g, onMounted as me, onBeforeUnmount as ke, defineAsyncComponent as Te, computed as i, toRefs as it, watch as U, shallowRef as ze, nextTick as ve, createElementBlock as v, openBlock as d, normalizeStyle as X, renderSlot as V, createCommentVNode as p, createBlock as De, normalizeProps as Ee, guardReactiveProps as Be, createElementVNode as n, toDisplayString as Y, unref as r, createVNode as dt, Fragment as ce, renderList as he, withCtx as vt, createTextVNode as ct } from "vue";
2
+ import { c as ht, t as ft, av as fe, o as Pe, g as Re, l as yt, h as q, n as pt, an as gt, X as bt, s as K, A as ye, C as Ve, Q as Oe, a as pe, d as ge, aw as mt } from "./lib-BrVUf7jz.js";
3
+ import { t as kt, u as Ct } from "./useResponsive-DfdjqQps.js";
4
+ import { u as _t, a as be } from "./useNestedProp-Bamwa7TH.js";
5
+ import { u as At, B as xt } from "./BaseScanner-BMpwQAfz.js";
6
+ import { u as wt } from "./useThemeCheck-D1ZYXUwG.js";
7
+ import { u as Lt } from "./useTimeLabels-DKoynYae.js";
8
+ import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
9
+ import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, bar: { color: "#2A2929" } } }, je = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, line: { color: "#65698E" }, area: { color: "#8D99AE" }, bar: { color: "#65698E" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, Ge = { style: { backgroundColor: "#1A1A1A", zeroLine: { color: "#5A5A5A" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#8A8A8A" }, dataLabel: { color: "#CCCCCC" }, title: { color: "#CCCCCC" }, tooltip: { color: "#CCCCCC", backgroundColor: "#1A1A1A", borderColor: "#5A5A5A", backgroundOpacity: 70 } } }, Ue = { style: { backgroundColor: "#FFF8E1", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#FFF8E1" }, verticalIndicator: { color: "#FF9800" }, dataLabel: { color: "#424242" }, title: { color: "#424242" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, Xe = { style: { backgroundColor: "#1E1E1E", line: { color: "#D32F2F" }, bar: { color: "#D32F2F", borderRadius: 0 }, zeroLine: { color: "#5D4037" }, plot: { stroke: "#1E1E1E" }, verticalIndicator: { color: "#B71C1C" }, dataLabel: { color: "#BDBDBD" }, title: { color: "#BDBDBD" }, area: { color: "#E64A19" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, Ye = { style: { backgroundColor: "#1A1A1A", line: { color: "#66CC66" }, bar: { color: "#66CC66", borderRadius: 0 }, zeroLine: { color: "#5F6A5F" }, plot: { stroke: "#1A1A1A" }, verticalIndicator: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, title: { color: "#66CC66" }, area: { color: "#66CC66" }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, qe = { style: { backgroundColor: "#fbfafa", line: { color: "#B9B99D", smooth: !0 }, bar: { color: "#B9B99D", borderRadius: 3 }, zeroLine: { strokeWidth: 0 }, plot: { stroke: "#fbfafa" }, verticalIndicator: { color: "#B9B99D" }, dataLabel: { color: "#A0AC94" }, title: { color: "#8A9892" }, area: { color: "#B9B99D" }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, Ke = { style: { backgroundColor: "#f6f6fb", line: { color: "#4A6A75" }, bar: { color: "#4A6A75", borderRadius: 0 }, zeroLine: { color: "#9FA9BE" }, plot: { stroke: "#f6f6fb" }, verticalIndicator: { color: "#4A6A75" }, dataLabel: { color: "#61747E" }, title: { color: "#50606C" }, area: { color: "#4A6A75" }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Ze = {
11
+ default: {},
12
+ minimal: We,
13
+ minimalDark: je,
14
+ dark: Ge,
15
+ celebration: Ue,
16
+ celebrationNight: Xe,
17
+ hack: Ye,
18
+ zen: qe,
19
+ concrete: Ke
20
+ }, xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21
+ __proto__: null,
22
+ celebration: Ue,
23
+ celebrationNight: Xe,
24
+ concrete: Ke,
25
+ dark: Ge,
26
+ default: Ze,
27
+ hack: Ye,
28
+ minimal: We,
29
+ minimalDark: je,
30
+ zen: qe
31
+ }, Symbol.toStringTag, { value: "Module" }));
32
+ function Nt() {
33
+ const _ = g(!1);
34
+ return me(() => {
35
+ const T = window.matchMedia("(prefers-reduced-motion: reduce)"), z = () => {
36
+ _.value = T.matches;
37
+ };
38
+ z(), T.addEventListener("change", z), ke(() => {
39
+ T.removeEventListener("change", z);
40
+ });
41
+ }), _;
42
+ }
43
+ const Ft = ["id"], It = ["xmlns", "viewBox"], St = ["width", "height"], Tt = ["id"], zt = ["stop-color"], Dt = ["stop-color"], Et = ["id"], Bt = ["stop-color"], Pt = ["stop-color"], Rt = ["id"], Vt = ["stop-color"], Ot = ["stop-color"], Wt = ["id"], jt = { key: 1 }, Gt = ["d", "fill"], Ut = ["d", "fill"], Xt = ["id", "d", "stroke", "stroke-width"], Yt = ["id", "d", "stroke", "stroke-width"], qt = {
44
+ key: 4,
45
+ style: { "pointer-events": "none" }
46
+ }, Kt = ["d", "stroke", "stroke-width", "stroke-dasharray"], Zt = ["begin", "dur", "repeatCount", "fill", "calcMode", "keySplines", "keyTimes", "from", "to"], Qt = ["begin", "dur", "repeatCount", "fill", "values", "keyTimes"], Ht = {
47
+ key: 5,
48
+ style: { "pointer-events": "none" }
49
+ }, Jt = ["r", "fill", "filter"], ea = ["begin", "dur", "repeatCount", "fill", "calcMode", "keySplines", "keyTimes", "keyPoints"], ta = ["href"], aa = ["dur", "repeatCount", "fill"], la = ["r", "fill"], oa = ["begin", "dur", "repeatCount", "calcMode", "keySplines", "keyTimes", "keyPoints"], ua = ["href"], ra = ["dur", "repeatCount"], na = ["x", "y", "width", "height", "fill", "rx"], sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], da = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], va = ["x", "y", "font-size", "font-weight", "fill"], ca = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], ha = {
50
+ __name: "vue-ui-sparkline",
51
+ props: {
52
+ config: {
53
+ type: Object,
54
+ default() {
55
+ return {};
56
+ }
57
+ },
58
+ dataset: {
59
+ type: Array,
60
+ default() {
61
+ return [];
62
+ }
63
+ },
64
+ showInfo: {
65
+ type: Boolean,
66
+ default: !0
67
+ },
68
+ selectedIndex: {
69
+ type: Number,
70
+ default: void 0
71
+ },
72
+ heightRatio: {
73
+ type: Number,
74
+ default: 1
75
+ },
76
+ forcedPadding: {
77
+ type: Number,
78
+ default: 30
79
+ }
80
+ },
81
+ emits: ["hoverIndex", "selectDatapoint"],
82
+ setup(_, { emit: T }) {
83
+ const z = Te(() => import("./PackageVersion-CdPbb2sr.js")), Qe = Te(() => import("./SparkTooltip-DObYB3vB.js")), { vue_ui_sparkline: He } = _t(), { isThemeValid: Je, warnInvalidTheme: et } = wt(), Ce = Nt(), f = _, _e = i(() => Array.isArray(f.dataset) && f.dataset.length > 0), b = g(ht()), Z = g(null), Ae = g(null), xe = g(null), e = g(ee());
84
+ function tt(t) {
85
+ return mt(t).map((a) => ({ period: "-", value: a }));
86
+ }
87
+ const { loading: Q, FINAL_DATASET: D, manualLoading: H } = At({
88
+ ...it(f),
89
+ FINAL_CONFIG: e,
90
+ prepareConfig: ee,
91
+ callback: () => {
92
+ Promise.resolve().then(async () => {
93
+ await ve(), ue();
94
+ });
95
+ },
96
+ skeletonDataset: tt(12),
97
+ skeletonConfig: ft({
98
+ defaultConfig: e.value,
99
+ userConfig: {
100
+ style: {
101
+ backgroundColor: "#99999930",
102
+ scaleMin: 0,
103
+ scaleMax: null,
104
+ animation: { show: !1 },
105
+ line: { color: "#AAAAAA", pulse: { show: !1 } },
106
+ bar: { color: "#AAAAAA" },
107
+ area: { color: "#CACACA" },
108
+ zeroLine: { color: "#6A6A6A" },
109
+ dataLabel: { show: !1 },
110
+ tooltip: { show: !1 }
111
+ }
112
+ }
113
+ })
114
+ }), { svgRef: J } = Mt({ config: e.value.style.title });
115
+ function ee() {
116
+ const t = be({
117
+ userConfig: f.config,
118
+ defaultConfig: He
119
+ });
120
+ let a = {};
121
+ const l = t.theme;
122
+ if (l)
123
+ if (!Je.value(t))
124
+ et(t), a = t;
125
+ else {
126
+ const o = be({
127
+ userConfig: Ze[l] || f.config,
128
+ defaultConfig: t
129
+ });
130
+ a = {
131
+ ...be({
132
+ userConfig: f.config,
133
+ defaultConfig: o
134
+ })
135
+ };
136
+ }
137
+ else
138
+ a = t;
139
+ return a;
140
+ }
141
+ const y = i(() => e.value?.style?.line.pulse || {}), E = i(() => `sparkline_line_path_${b.value}`), L = i(() => `${Math.max(200, Number(y.value.durationMs) || 4e3) / 1e3}s`), B = g(0), O = i(() => y.value?.begin || "0s"), we = g("0;1"), M = i(() => y.value?.loop === !1 ? "1" : "indefinite"), W = i(() => y.value?.loop === !1 ? "freeze" : void 0), Le = i(() => {
142
+ const t = Math.max(2, (m.value.width || 0) * 0.75);
143
+ return (m.value.lengthPx || 0) + t;
144
+ });
145
+ function Me() {
146
+ const t = J.value?.querySelector?.(`#${E.value}`);
147
+ if (t && typeof t.getTotalLength == "function") {
148
+ const a = t.getTotalLength();
149
+ B.value = Number.isFinite(a) ? a : 0;
150
+ } else
151
+ B.value = 0;
152
+ }
153
+ const k = i(() => {
154
+ const t = y.value?.easing || "ease-in-out", a = {
155
+ ease: [0.25, 0.1, 0.25, 1],
156
+ "ease-in": [0.42, 0, 1, 1],
157
+ "ease-out": [0, 0, 0.58, 1],
158
+ "ease-in-out": [0.42, 0, 0.58, 1]
159
+ };
160
+ return t === "linear" ? {
161
+ calcMode: "linear",
162
+ keySplines: null,
163
+ keyTimes: "0;1"
164
+ } : t === "steps" ? {
165
+ calcMode: "discrete",
166
+ keySplines: null,
167
+ keyTimes: "0;1"
168
+ } : {
169
+ calcMode: "spline",
170
+ keySplines: (t === "cubic-bezier" ? Array.isArray(y.value?.cubicBezier) && y.value.cubicBezier.length === 4 ? y.value.cubicBezier : [0.4, 0, 0.2, 1] : a[t] || a["ease-in-out"]).join(" "),
171
+ keyTimes: "0;1"
172
+ };
173
+ }), m = i(() => {
174
+ const t = y.value?.trail || {}, a = e.value.style.line.strokeWidth || 1;
175
+ return {
176
+ show: t.show !== !1,
177
+ lengthPx: Math.max(8, Number(t.length) || 32),
178
+ width: Math.max(1, Number(t.strokeWidth) || a * 2.2),
179
+ opacity: Math.min(1, Math.max(0, Number(t.opacity) ?? 0.6)),
180
+ fadeIn: 0.5,
181
+ fadeOut: 0.2
182
+ };
183
+ }), $ = i(() => fe({
184
+ data: D.value,
185
+ threshold: e.value.downsample.threshold
186
+ }));
187
+ U(() => f.config, (t) => {
188
+ Q.value || (e.value = ee()), Ne(), u.value.chartWidth = e.value.style.chartWidth;
189
+ }, { deep: !0 }), U(() => f.dataset, (t) => {
190
+ Array.isArray(t) && t.length > 0 && (H.value = !1), C.value = fe({
191
+ data: D.value.map((a) => ({
192
+ ...a,
193
+ value: [void 0].includes(a.value) ? null : a.value
194
+ })),
195
+ threshold: e.value.downsample.threshold
196
+ });
197
+ }, { deep: !0 });
198
+ const C = g(at());
199
+ function at() {
200
+ return fe({
201
+ data: D.value.map((t) => e.value.style.animation.show && D.value.length > 1 ? {
202
+ ...t,
203
+ value: null
204
+ } : {
205
+ ...t,
206
+ value: [void 0].includes(t.value) ? null : t.value
207
+ }),
208
+ threshold: e.value.downsample.threshold
209
+ });
210
+ }
211
+ const A = ze(null), N = ze(null), te = g(!1), P = g(0), ae = g([]), le = g(""), oe = i(() => {
212
+ const a = ($.value || []).map((o) => `${o.period}::${Number.isFinite(o.value) ? o.value : 0}`).join("|"), l = e.value?.style?.animation || {};
213
+ return `${a}#${!!l.show}#${l.animationFrames || 0}`;
214
+ });
215
+ function j() {
216
+ P.value && (cancelAnimationFrame(P.value), P.value = 0), ae.value.forEach((t) => clearTimeout(t)), ae.value = [], te.value = !1;
217
+ }
218
+ function ue() {
219
+ const t = e.value?.style?.animation || {}, a = $.value || [], l = oe.value;
220
+ if (l && l === le.value && (te.value || C.value.length === a.length))
221
+ return;
222
+ if (j(), !t.show || Q.value || a.length <= 1) {
223
+ C.value = a, le.value = l;
224
+ return;
225
+ }
226
+ te.value = !0, le.value = l, C.value = [];
227
+ const o = Math.max(1, Number(t.animationFrames) || 1), ie = Math.max(1, Math.floor(o / a.length));
228
+ let de = 0;
229
+ const Se = () => {
230
+ if (l !== oe.value) {
231
+ j();
232
+ return;
233
+ }
234
+ if (de < a.length) {
235
+ C.value.push(a[de]);
236
+ const st = setTimeout(() => {
237
+ P.value = requestAnimationFrame(Se);
238
+ }, ie);
239
+ ae.value.push(st), de += 1;
240
+ } else
241
+ C.value = a, j();
242
+ };
243
+ P.value = requestAnimationFrame(Se);
244
+ }
245
+ U(oe, () => {
246
+ ue();
247
+ }), me(() => {
248
+ Ne(), ue();
249
+ }), ke(() => {
250
+ j();
251
+ });
252
+ const $e = i(() => !!e.value.debug);
253
+ function Ne() {
254
+ if (Pe(f.dataset) ? (Re({
255
+ componentName: "VueUiSparkline",
256
+ type: "dataset",
257
+ debug: $e.value
258
+ }), H.value = !0) : f.dataset.forEach((t, a) => {
259
+ yt({
260
+ datasetObject: t,
261
+ requiredAttributes: ["period", "value"]
262
+ }).forEach((l) => {
263
+ Re({
264
+ componentName: "VueUiSparkline",
265
+ type: "datasetSerieAttribute",
266
+ property: l,
267
+ index: a,
268
+ debug: $e.value
269
+ });
270
+ });
271
+ }), Pe(f.dataset) || (H.value = e.value.loading), e.value.responsive) {
272
+ const t = kt(() => {
273
+ const { width: a, height: l } = Ct({
274
+ chart: Z.value,
275
+ title: e.value.style.title.show && f.showInfo ? Ae.value : null,
276
+ source: xe.value
277
+ });
278
+ requestAnimationFrame(() => {
279
+ u.value.width = a, u.value.height = l, u.value.chartWidth = e.value.style.chartWidth / 500 * a, u.value.padding = f.forcedPadding / 500 * a;
280
+ });
281
+ });
282
+ A.value && (N.value && A.value.unobserve(N.value), A.value.disconnect()), A.value = new ResizeObserver(t), N.value = Z.value.parentNode, A.value.observe(N.value);
283
+ }
284
+ }
285
+ ke(() => {
286
+ A.value && (N.value && A.value.unobserve(N.value), A.value.disconnect());
287
+ });
288
+ const u = g({
289
+ height: 80 * f.heightRatio,
290
+ width: 500,
291
+ chartWidth: e.value.style.chartWidth,
292
+ padding: f.forcedPadding
293
+ }), re = T, c = i(() => {
294
+ const { top: t, right: a, bottom: l, left: o } = e.value.style.padding;
295
+ return {
296
+ top: t,
297
+ left: o,
298
+ right: u.value.width - a,
299
+ bottom: u.value.height - l,
300
+ start: f.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? u.value.width - u.value.chartWidth + o : u.value.padding + o,
301
+ width: f.showInfo && e.value.style.dataLabel.show ? u.value.chartWidth - o - a : u.value.width - u.value.padding - o - a,
302
+ height: u.value.height - t - l
303
+ };
304
+ }), ne = i(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...C.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), lt = i(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...C.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), R = i(() => {
305
+ const t = ne.value >= 0 ? 0 : ne.value;
306
+ return Math.abs(t);
307
+ }), Fe = i(() => lt.value + R.value), F = i(() => c.value.bottom - c.value.height * se(R.value));
308
+ function se(t) {
309
+ return isNaN(t / Fe.value) ? 0 : t / Fe.value;
310
+ }
311
+ const I = i(() => $.value.length - 1 || 1), G = i(() => Lt({
312
+ values: $.value.map((t) => t.period),
313
+ maxDatapoints: $.value.length,
314
+ formatter: e.value.style.dataLabel.datetimeFormatter,
315
+ start: 0,
316
+ end: $.value.length
317
+ })), s = i(() => C.value.map((t, a) => {
318
+ const l = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, o = c.value.width / I.value;
319
+ return {
320
+ absoluteValue: l,
321
+ period: G.value && G.value[a] && G.value[a].text ? G.value[a].text : t.period,
322
+ plotValue: l + R.value,
323
+ toMax: se(l + R.value),
324
+ x: c.value.start + a * o,
325
+ y: c.value.bottom - c.value.height * se(l + R.value),
326
+ id: `plot_${b.value}_${a}`,
327
+ color: w.value ? e.value.style.bar.color : e.value.style.area.useGradient ? q(e.value.style.line.color, 0.05 * (1 - a / I.value)) : e.value.style.line.color,
328
+ width: o
329
+ };
330
+ })), ot = i(() => {
331
+ const t = { x: s.value[0].x || 0, y: (u.value.height || 0) - 6 }, a = { x: s.value[s.value.length - 1].x || 0, y: (u.value.height || 0) - 6 }, l = [];
332
+ return s.value.forEach((o) => {
333
+ l.push(`${o.x || 0},${o.y || 0} `);
334
+ }), [t.x, t.y, ...l, a.x, a.y].toString();
335
+ }), h = g(void 0), S = g(void 0);
336
+ function ut(t, a) {
337
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), h.value = t, S.value || (S.value = t), re("hoverIndex", { index: a });
338
+ }
339
+ function rt(t, a) {
340
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), S.value = h.value, h.value = void 0, re("hoverIndex", { index: void 0 });
341
+ }
342
+ const x = i(() => {
343
+ if (_e.value) {
344
+ const t = s.value.map((l) => l.absoluteValue), a = t.reduce((l, o) => l + o, 0);
345
+ return {
346
+ latest: s.value[s.value.length - 1] ? s.value[s.value.length - 1].absoluteValue : 0,
347
+ sum: a,
348
+ average: a / s.value.length,
349
+ median: gt(t),
350
+ trend: pt(s.value.map(({ x: l, y: o, absoluteValue: ie }) => ({
351
+ x: l,
352
+ y: o,
353
+ value: ie
354
+ }))).trend
355
+ };
356
+ } else
357
+ return {
358
+ latest: null,
359
+ sum: null,
360
+ average: null,
361
+ median: null,
362
+ trend: null
363
+ };
364
+ }), Ie = i(() => _e.value ? e.value.style.dataLabel.valueType === "latest" ? x.value.latest : e.value.style.dataLabel.valueType === "sum" ? x.value.sum : e.value.style.dataLabel.valueType === "average" ? x.value.average : 0 : 0), w = i(() => e.value.type && e.value.type === "bar");
365
+ function nt(t, a) {
366
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), re("selectDatapoint", { datapoint: t, index: a });
367
+ }
368
+ return U(
369
+ () => [s.value.length, u.value.width, u.value.height, e.value?.style?.line?.smooth],
370
+ async () => {
371
+ await ve(), Me();
372
+ },
373
+ { immediate: !0 }
374
+ ), me(async () => {
375
+ await ve(), Me();
376
+ }), (t, a) => (d(), v("div", {
377
+ ref_key: "sparklineChart",
378
+ ref: Z,
379
+ class: "vue-data-ui-component vue-ui-sparkline",
380
+ id: b.value,
381
+ style: X(`width:100%;font-family:${e.value.style.fontFamily};`)
382
+ }, [
383
+ V(t.$slots, "before", Ee(Be({
384
+ selected: h.value,
385
+ latest: x.value.latest,
386
+ sum: x.value.sum,
387
+ average: x.value.average,
388
+ median: x.value.median,
389
+ trend: x.value.trend
390
+ })), void 0, !0),
391
+ e.value.style.title.show && _.showInfo ? (d(), v("div", {
392
+ key: 0,
393
+ ref_key: "chartTitle",
394
+ ref: Ae,
395
+ class: "vue-ui-sparkline-title",
396
+ style: X(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
397
+ }, [
398
+ n("span", {
399
+ style: X(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
400
+ }, Y(h.value ? h.value.period : e.value.style.title.text), 5)
401
+ ], 4)) : p("", !0),
402
+ (d(), v("svg", {
403
+ ref_key: "svgRef",
404
+ ref: J,
405
+ xmlns: r(bt),
406
+ viewBox: `0 0 ${u.value.width} ${u.value.height}`,
407
+ style: X(`background:${e.value.style.backgroundColor};overflow:visible`),
408
+ onMouseleave: a[0] || (a[0] = (l) => S.value = void 0)
409
+ }, [
410
+ dt(r(z)),
411
+ t.$slots["chart-background"] ? (d(), v("foreignObject", {
412
+ key: 0,
413
+ x: 0,
414
+ y: 0,
415
+ width: u.value.width <= 0 ? 10 : u.value.width,
416
+ height: u.value.height <= 0 ? 10 : u.value.height,
417
+ style: {
418
+ pointerEvents: "none"
419
+ }
420
+ }, [
421
+ V(t.$slots, "chart-background", {}, void 0, !0)
422
+ ], 8, St)) : p("", !0),
423
+ n("defs", null, [
424
+ n("linearGradient", {
425
+ x1: "0%",
426
+ y1: "0%",
427
+ x2: "100%",
428
+ y2: "0%",
429
+ id: `sparkline_gradient_${b.value}`
430
+ }, [
431
+ n("stop", {
432
+ offset: "0%",
433
+ "stop-color": r(K)(r(q)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
434
+ }, null, 8, zt),
435
+ n("stop", {
436
+ offset: "100%",
437
+ "stop-color": r(K)(e.value.style.area.color, e.value.style.area.opacity)
438
+ }, null, 8, Dt)
439
+ ], 8, Tt),
440
+ n("linearGradient", {
441
+ x2: "0%",
442
+ y2: "100%",
443
+ id: `sparkline_bar_gradient_pos_${b.value}`
444
+ }, [
445
+ n("stop", {
446
+ offset: "0%",
447
+ "stop-color": e.value.style.bar.color
448
+ }, null, 8, Bt),
449
+ n("stop", {
450
+ offset: "100%",
451
+ "stop-color": r(q)(e.value.style.bar.color, 0.05)
452
+ }, null, 8, Pt)
453
+ ], 8, Et),
454
+ n("linearGradient", {
455
+ x2: "0%",
456
+ y2: "100%",
457
+ id: `sparkline_bar_gradient_neg_${b.value}`
458
+ }, [
459
+ n("stop", {
460
+ offset: "0%",
461
+ "stop-color": r(q)(e.value.style.bar.color, 0.05)
462
+ }, null, 8, Vt),
463
+ n("stop", {
464
+ offset: "100%",
465
+ "stop-color": e.value.style.bar.color
466
+ }, null, 8, Ot)
467
+ ], 8, Rt),
468
+ n("filter", {
469
+ id: `sparkline_pulse_glow_${b.value}`,
470
+ x: "-50%",
471
+ y: "-50%",
472
+ width: "200%",
473
+ height: "200%"
474
+ }, [...a[1] || (a[1] = [
475
+ n("feGaussianBlur", {
476
+ stdDeviation: "5",
477
+ result: "blur"
478
+ }, null, -1),
479
+ n("feMerge", null, [
480
+ n("feMergeNode", { in: "blur" }),
481
+ n("feMergeNode", { in: "SourceGraphic" })
482
+ ], -1)
483
+ ])], 8, Wt)
484
+ ]),
485
+ e.value.style.area.show && !w.value && s.value[0] && s.value.length > 1 ? (d(), v("g", jt, [
486
+ e.value.style.line.smooth ? (d(), v("path", {
487
+ key: 0,
488
+ d: `M ${s.value[0].x},${c.value.bottom} ${r(ye)(s.value)} L ${s.value.at(-1).x},${c.value.bottom} Z`,
489
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${b.value})` : r(K)(e.value.style.area.color, e.value.style.area.opacity),
490
+ "stroke-linecap": "round",
491
+ "stroke-linejoin": "round"
492
+ }, null, 8, Gt)) : (d(), v("path", {
493
+ key: 1,
494
+ d: `M${ot.value}Z`,
495
+ fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${b.value})` : r(K)(e.value.style.area.color, e.value.style.area.opacity),
496
+ "stroke-linecap": "round",
497
+ "stroke-linejoin": "round"
498
+ }, null, 8, Ut))
499
+ ])) : p("", !0),
500
+ e.value.style.line.smooth && !w.value ? (d(), v("path", {
501
+ key: 2,
502
+ id: E.value,
503
+ d: `M ${r(ye)(s.value) || "0,0"}`,
504
+ stroke: e.value.style.line.color,
505
+ fill: "none",
506
+ "stroke-width": e.value.style.line.strokeWidth,
507
+ "stroke-linecap": "round",
508
+ "stroke-linejoin": "round"
509
+ }, null, 8, Xt)) : p("", !0),
510
+ !e.value.style.line.smooth && !w.value ? (d(), v("path", {
511
+ key: 3,
512
+ id: E.value,
513
+ d: `M ${r(Ve)(s.value) || "0,0"}`,
514
+ stroke: e.value.style.line.color,
515
+ fill: "none",
516
+ "stroke-width": e.value.style.line.strokeWidth,
517
+ "stroke-linecap": "round",
518
+ "stroke-linejoin": "round"
519
+ }, null, 8, Yt)) : p("", !0),
520
+ y.value.show && m.value.show && !w.value && s.value.length > 1 && B.value > 0 && !r(Ce) ? (d(), v("g", qt, [
521
+ n("path", {
522
+ d: e.value.style.line.smooth ? `M ${r(ye)(s.value) || "0,0"}` : `M ${r(Ve)(s.value) || "0,0"}`,
523
+ stroke: y.value.color,
524
+ fill: "none",
525
+ "stroke-linecap": "round",
526
+ "stroke-linejoin": "round",
527
+ "stroke-width": m.value.width,
528
+ opacity: "0",
529
+ "stroke-dasharray": `${m.value.lengthPx} ${Math.max(1, B.value - m.value.lengthPx)}`
530
+ }, [
531
+ n("animate", {
532
+ attributeName: "stroke-dashoffset",
533
+ begin: O.value,
534
+ dur: L.value,
535
+ repeatCount: M.value,
536
+ fill: W.value,
537
+ calcMode: k.value.calcMode,
538
+ keySplines: k.value.keySplines || void 0,
539
+ keyTimes: k.value.keyTimes || void 0,
540
+ from: B.value + Le.value,
541
+ to: Le.value
542
+ }, null, 8, Zt),
543
+ n("animate", {
544
+ attributeName: "opacity",
545
+ begin: O.value,
546
+ dur: L.value,
547
+ repeatCount: M.value,
548
+ fill: W.value,
549
+ values: `0;${m.value.opacity};${m.value.opacity};0`,
550
+ keyTimes: `0;${m.value.fadeIn};${1 - m.value.fadeOut};1`
551
+ }, null, 8, Qt)
552
+ ], 8, Kt)
553
+ ])) : p("", !0),
554
+ y.value.show && !w.value && s.value.length > 1 && !r(Ce) ? (d(), v("g", Ht, [
555
+ n("circle", {
556
+ r: y.value.radius,
557
+ fill: y.value.color,
558
+ filter: `url(#sparkline_pulse_glow_${b.value})`,
559
+ opacity: "0"
560
+ }, [
561
+ n("animateMotion", {
562
+ begin: O.value,
563
+ dur: L.value,
564
+ repeatCount: M.value,
565
+ fill: W.value,
566
+ calcMode: k.value.calcMode,
567
+ keySplines: k.value.keySplines || void 0,
568
+ keyTimes: k.value.keyTimes || void 0,
569
+ keyPoints: we.value,
570
+ rotate: "auto"
571
+ }, [
572
+ n("mpath", {
573
+ href: `#${E.value}`
574
+ }, null, 8, ta)
575
+ ], 8, ea),
576
+ n("animate", {
577
+ attributeName: "opacity",
578
+ dur: L.value,
579
+ repeatCount: M.value,
580
+ fill: W.value,
581
+ values: "0;1;1;0",
582
+ keyTimes: "0;0.1;0.9;1"
583
+ }, null, 8, aa)
584
+ ], 8, Jt),
585
+ n("circle", {
586
+ r: Math.max(y.value.radius * 1.3),
587
+ fill: y.value.color,
588
+ opacity: "0"
589
+ }, [
590
+ n("animateMotion", {
591
+ begin: O.value,
592
+ dur: L.value,
593
+ repeatCount: M.value,
594
+ calcMode: k.value.calcMode,
595
+ keySplines: k.value.keySplines || void 0,
596
+ keyTimes: k.value.keyTimes || void 0,
597
+ keyPoints: we.value,
598
+ keyPointsKeyTimes: "0;1",
599
+ rotate: "auto"
600
+ }, [
601
+ n("mpath", {
602
+ href: `#${E.value}`
603
+ }, null, 8, ua)
604
+ ], 8, oa),
605
+ n("animate", {
606
+ attributeName: "opacity",
607
+ values: "0;0.35;0.35;0",
608
+ keyTimes: "0;0.15;0.85;1",
609
+ dur: L.value,
610
+ repeatCount: M.value
611
+ }, null, 8, ra)
612
+ ], 8, la)
613
+ ])) : p("", !0),
614
+ (d(!0), v(ce, null, he(s.value, (l, o) => (d(), v("g", null, [
615
+ w.value ? (d(), v("rect", {
616
+ key: 0,
617
+ x: l.x - l.width / 2,
618
+ y: isNaN(l.absoluteValue > 0 ? l.y : F.value) ? 0 : l.absoluteValue > 0 ? l.y : F.value,
619
+ width: l.width,
620
+ height: isNaN(Math.abs(l.y - F.value)) ? 0 : Math.abs(l.y - F.value),
621
+ fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${b.value})` : `url(#sparkline_bar_gradient_neg_${b.value})`,
622
+ rx: e.value.style.bar.borderRadius
623
+ }, null, 8, na)) : p("", !0),
624
+ e.value.style.verticalIndicator.show && (h.value && l.id === h.value.id || _.selectedIndex === o) ? (d(), v("line", {
625
+ key: 1,
626
+ x1: l.x,
627
+ x2: l.x,
628
+ y1: c.value.top - 6,
629
+ y2: c.value.bottom,
630
+ stroke: e.value.style.verticalIndicator.color || l.color,
631
+ "stroke-width": e.value.style.verticalIndicator.strokeWidth,
632
+ "stroke-linecap": "round",
633
+ "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
634
+ }, null, 8, sa)) : p("", !0)
635
+ ]))), 256)),
636
+ ne.value < 0 ? (d(), v("line", {
637
+ key: 6,
638
+ x1: c.value.start,
639
+ x2: c.value.start + c.value.width,
640
+ y1: r(Oe)(F.value, c.value.bottom),
641
+ y2: r(Oe)(F.value, c.value.bottom),
642
+ stroke: e.value.style.zeroLine.color,
643
+ "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
644
+ "stroke-width": e.value.style.zeroLine.strokeWidth,
645
+ "stroke-linecap": "round"
646
+ }, null, 8, ia)) : p("", !0),
647
+ e.value.style.plot.show ? (d(!0), v(ce, { key: 7 }, he(s.value, (l, o) => (d(), v("g", null, [
648
+ h.value && l.id === h.value.id || _.selectedIndex === o || r(D).length === 1 ? (d(), v("circle", {
649
+ key: 0,
650
+ cx: l.x,
651
+ cy: l.y,
652
+ r: e.value.style.plot.radius,
653
+ fill: l.color,
654
+ stroke: e.value.style.plot.stroke,
655
+ "stroke-width": e.value.style.plot.strokeWidth
656
+ }, null, 8, da)) : p("", !0)
657
+ ]))), 256)) : p("", !0),
658
+ _.showInfo && e.value.style.dataLabel.show ? (d(), v("text", {
659
+ key: 8,
660
+ x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : c.value.width + 12 + e.value.style.dataLabel.offsetX,
661
+ y: u.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
662
+ "font-size": e.value.style.dataLabel.fontSize,
663
+ "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
664
+ fill: e.value.style.dataLabel.color
665
+ }, Y(h.value ? r(pe)(
666
+ e.value.style.dataLabel.formatter,
667
+ h.value.absoluteValue,
668
+ r(ge)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
669
+ { datapoint: h.value }
670
+ ) : r(pe)(
671
+ e.value.style.dataLabel.formatter,
672
+ Ie.value,
673
+ r(ge)({ p: e.value.style.dataLabel.prefix, v: Ie.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
674
+ )), 9, va)) : p("", !0),
675
+ (d(!0), v(ce, null, he(s.value, (l, o) => (d(), v("rect", {
676
+ x: l.x - (c.value.width / (I.value + 1) > u.value.padding ? u.value.padding : c.value.width / (I.value + 1)) / 2,
677
+ y: c.value.top - 6,
678
+ height: c.value.height + 6,
679
+ width: c.value.width / (I.value + 1) > u.value.padding ? u.value.padding : c.value.width / (I.value + 1),
680
+ fill: "transparent",
681
+ onMouseenter: () => ut(l, o),
682
+ onMouseleave: () => rt(l, o),
683
+ onClick: () => nt(l, o)
684
+ }, null, 40, ca))), 256)),
685
+ V(t.$slots, "svg", { svg: u.value }, void 0, !0)
686
+ ], 44, It)),
687
+ h.value && e.value.style.tooltip.show ? (d(), De(r(Qe), {
688
+ key: 1,
689
+ x: h.value.x,
690
+ y: h.value.y,
691
+ prevX: S.value.x,
692
+ prevY: S.value.y,
693
+ offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
694
+ svgRef: r(J),
695
+ background: e.value.style.tooltip.backgroundColor,
696
+ color: e.value.style.tooltip.color,
697
+ fontSize: e.value.style.tooltip.fontSize,
698
+ borderWidth: e.value.style.tooltip.borderWidth,
699
+ borderColor: e.value.style.tooltip.borderColor,
700
+ borderRadius: e.value.style.tooltip.borderRadius,
701
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity
702
+ }, {
703
+ default: vt(() => [
704
+ V(t.$slots, "tooltip", Ee(Be({ ...h.value })), () => [
705
+ ct(Y(h.value.period) + ": " + Y(r(pe)(
706
+ e.value.style.dataLabel.formatter,
707
+ h.value.absoluteValue,
708
+ r(ge)({
709
+ p: e.value.style.dataLabel.prefix,
710
+ v: h.value.absoluteValue,
711
+ s: e.value.style.dataLabel.suffix,
712
+ r: e.value.style.dataLabel.roundingValue
713
+ }),
714
+ { datapoint: h.value }
715
+ )), 1)
716
+ ], !0)
717
+ ]),
718
+ _: 3
719
+ }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : p("", !0),
720
+ t.$slots.source ? (d(), v("div", {
721
+ key: 2,
722
+ ref_key: "source",
723
+ ref: xe,
724
+ dir: "auto"
725
+ }, [
726
+ V(t.$slots, "source", {}, void 0, !0)
727
+ ], 512)) : p("", !0),
728
+ r(Q) ? (d(), De(xt, { key: 3 })) : p("", !0)
729
+ ], 12, Ft));
730
+ }
731
+ }, fa = /* @__PURE__ */ $t(ha, [["__scopeId", "data-v-df366775"]]), wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
732
+ __proto__: null,
733
+ default: fa
734
+ }, Symbol.toStringTag, { value: "Module" }));
735
+ export {
736
+ xa as a,
737
+ wa as b,
738
+ fa as v
739
+ };