vue-data-ui 3.15.2 → 3.15.3

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-BlksSfiH.js → Arrow-Dng9G5hr.js} +1 -1
  2. package/dist/{BaseDraggableDialog-E33gMvkf.js → BaseDraggableDialog-BXIITt8m.js} +2 -2
  3. package/dist/{BaseIcon-UMhVxbLi.js → BaseIcon-COEWBdOr.js} +1 -1
  4. package/dist/{BaseLegendToggle-C7HjMSKe.js → BaseLegendToggle-aDygzw7d.js} +1 -1
  5. package/dist/{BaseZoomControls-BSKhy9Em.js → BaseZoomControls-DkJaGyAv.js} +2 -2
  6. package/dist/{ColorPicker-BlmZVMy-.js → ColorPicker-B-5UbA1C.js} +2 -2
  7. package/dist/{DataTable-CetPvrxa.js → DataTable-C-gJ3cD_.js} +2 -2
  8. package/dist/{Legend-BmSuOSGO.js → Legend-9T2e7Hm_.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-CxAAQbRx.js → NonSvgPenAndPaper-CfTb5Sfu.js} +3 -3
  10. package/dist/{PackageVersion-B6IEJQ5U.js → PackageVersion-D4g_IquI.js} +1 -1
  11. package/dist/{PenAndPaper-NY4eJxOT.js → PenAndPaper-faw-s7Iq.js} +3 -3
  12. package/dist/{Shape-BJqALJx8.js → Shape-DkzPeTe-.js} +1 -1
  13. package/dist/{Slicer-Dpw8jgzq.js → Slicer-CuuGle3L.js} +2 -2
  14. package/dist/{SlicerPreview-CmCzvLqB.js → SlicerPreview-YFFNdBJ2.js} +2 -2
  15. package/dist/{SparkTooltip-0RaBXTYZ.js → SparkTooltip-BYr36r63.js} +1 -1
  16. package/dist/{Title-CPGrE3wX.js → Title-BeDyPVX2.js} +1 -1
  17. package/dist/{Tooltip-CEm9BzOh.js → Tooltip-CIAWAT6H.js} +1 -1
  18. package/dist/{UserOptions-zrLwMf40.js → UserOptions-DwAVLo4U.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-D6oiYaax.js → dom-to-png-CcSQTrWW.js} +1 -1
  89. package/dist/{img-B3Q1YZJp.js → img-atDFcrvY.js} +1 -1
  90. package/dist/{labelUtils-BhtETZBR.js → labelUtils-BLs1JiJ2.js} +1 -1
  91. package/dist/{lib-swBj76n5.js → lib-BLeQNY56.js} +3 -3
  92. package/dist/{pdf-C4seG1qk.js → pdf-CGjQTspF.js} +1 -1
  93. package/dist/style.css +1 -1
  94. package/dist/types/vue-data-ui.d.ts +8 -0
  95. package/dist/{useAutoSizeLabelsInsideViewbox-Bb2gcOS8.js → useAutoSizeLabelsInsideViewbox-BKJ0MI0P.js} +1 -1
  96. package/dist/{useNestedProp-C4DkSVBD.js → useNestedProp-VrHe63vz.js} +73 -65
  97. package/dist/{usePrinter-QiKp5Ju-.js → usePrinter-2GkN2e42.js} +2 -2
  98. package/dist/{vue-data-ui-BDNyFPFq.js → vue-data-ui-DkeOB9mM.js} +68 -68
  99. package/dist/vue-data-ui.js +73 -73
  100. package/dist/{vue-ui-3d-bar-DUzNF952.js → vue-ui-3d-bar-C0TcvC9o.js} +6 -6
  101. package/dist/{vue-ui-accordion-BThBDDTd.js → vue-ui-accordion-usMGjw6s.js} +3 -3
  102. package/dist/{vue-ui-age-pyramid-r-KmE7L4.js → vue-ui-age-pyramid-C8_yYbNZ.js} +6 -6
  103. package/dist/{vue-ui-annotator-DDQwL0bi.js → vue-ui-annotator-BCQCra1E.js} +7 -7
  104. package/dist/{vue-ui-bullet-DAVzj8Zi.js → vue-ui-bullet-DJ6vIjdU.js} +7 -7
  105. package/dist/{vue-ui-bump-B9E1erCP.js → vue-ui-bump-XbrL_bBd.js} +6 -6
  106. package/dist/{vue-ui-candlestick-CPxzel3w.js → vue-ui-candlestick-C833ORoI.js} +7 -7
  107. package/dist/{vue-ui-carousel-table-GDTvdXbd.js → vue-ui-carousel-table-BALTo2Z7.js} +4 -4
  108. package/dist/{vue-ui-chestnut-iD_E54CN.js → vue-ui-chestnut-DGbH1-Ga.js} +5 -5
  109. package/dist/{vue-ui-chord-BC4tguYt.js → vue-ui-chord-DB6y88Sg.js} +8 -8
  110. package/dist/{vue-ui-circle-pack-B-CPGgdt.js → vue-ui-circle-pack-YawRN0q8.js} +6 -6
  111. package/dist/{vue-ui-cursor-IT1xvbk2.js → vue-ui-cursor-LMMcULMs.js} +3 -3
  112. package/dist/{vue-ui-dag-DCdotQVD.js → vue-ui-dag-BNZGhTGM.js} +7 -7
  113. package/dist/{vue-ui-dashboard-Cq-7-wma.js → vue-ui-dashboard-BL8Uh0Qy.js} +69 -69
  114. package/dist/{vue-ui-digits-dKBfRE21.js → vue-ui-digits-Bm7Gi-y7.js} +2 -2
  115. package/dist/{vue-ui-donut-DZEkSIQ1.js → vue-ui-donut-BMmxBiNv.js} +10 -10
  116. package/dist/{vue-ui-donut-evolution-CcrcrKF2.js → vue-ui-donut-evolution-l8LHismR.js} +9 -9
  117. package/dist/{vue-ui-dumbbell-D6rsNu3I.js → vue-ui-dumbbell-Fa9k4qOC.js} +7 -7
  118. package/dist/{vue-ui-flow-CfEK1WcS.js → vue-ui-flow-CVqmmkWX.js} +7 -7
  119. package/dist/{vue-ui-funnel-Cdh7YjHo.js → vue-ui-funnel-BOJaYUeH.js} +6 -6
  120. package/dist/{vue-ui-galaxy-BV20Wouf.js → vue-ui-galaxy-GqCJprpj.js} +9 -9
  121. package/dist/{vue-ui-gauge-CmV6TYbP.js → vue-ui-gauge-DHvhoWf2.js} +7 -7
  122. package/dist/{vue-ui-geo-Cx8Kl369.js → vue-ui-geo-B3bUuv05.js} +7 -7
  123. package/dist/{vue-ui-gizmo-DjW_Zk-I.js → vue-ui-gizmo-D00rKRGe.js} +3 -3
  124. package/dist/{vue-ui-heatmap-CmYavjF_.js → vue-ui-heatmap-qX84lW7F.js} +7 -7
  125. package/dist/{vue-ui-history-plot-B6RR5_Pr.js → vue-ui-history-plot-DhhNYSSG.js} +8 -8
  126. package/dist/{vue-ui-horizontal-bar-YurxCHIZ.js → vue-ui-horizontal-bar-DosR6PqD.js} +10 -10
  127. package/dist/{vue-ui-kpi-FS4ErjR6.js → vue-ui-kpi-BEQcRj0e.js} +3 -3
  128. package/dist/{vue-ui-mini-loader-BJF-5BUy.js → vue-ui-mini-loader-D8JsHpPb.js} +2 -2
  129. package/dist/{vue-ui-molecule-USv-Zjga.js → vue-ui-molecule-1HPy1EzW.js} +5 -5
  130. package/dist/{vue-ui-mood-radar-CH7gUd3S.js → vue-ui-mood-radar-BmbH778F.js} +7 -7
  131. package/dist/{vue-ui-nested-donuts-FJhK_VCm.js → vue-ui-nested-donuts-D_JqvcIN.js} +9 -9
  132. package/dist/{vue-ui-onion-BkB7pI6J.js → vue-ui-onion-DrzdWiyM.js} +10 -10
  133. package/dist/{vue-ui-parallel-coordinate-plot-BcKuTS5G.js → vue-ui-parallel-coordinate-plot-B_QUbkNH.js} +9 -9
  134. package/dist/{vue-ui-quadrant-Fa0Ql-oe.js → vue-ui-quadrant-unMxfMdL.js} +9 -9
  135. package/dist/{vue-ui-quick-chart-BoZswYC4.js → vue-ui-quick-chart-CVYTqhqB.js} +7 -7
  136. package/dist/{vue-ui-radar-BVQtbLQl.js → vue-ui-radar-BmWRXE90.js} +9 -9
  137. package/dist/{vue-ui-rating-C_53Yh-e.js → vue-ui-rating-BSJ9y_nW.js} +2 -2
  138. package/dist/{vue-ui-relation-circle-BKCKaCiY.js → vue-ui-relation-circle-EBQ2E0PS.js} +7 -7
  139. package/dist/{vue-ui-ridgeline-DGVeoRL_.js → vue-ui-ridgeline-DWmoCq84.js} +9 -9
  140. package/dist/{vue-ui-rings-CzohTeZg.js → vue-ui-rings-DKJTb5E2.js} +10 -10
  141. package/dist/{vue-ui-scatter-Be9GWl3l.js → vue-ui-scatter-vmbmfTpn.js} +9 -9
  142. package/dist/{vue-ui-skeleton-smOfSmjU.js → vue-ui-skeleton-ByLmde-M.js} +3 -3
  143. package/dist/{vue-ui-smiley-BfleoYld.js → vue-ui-smiley-CP9iisPH.js} +2 -2
  144. package/dist/{vue-ui-spark-trend-_3ELEmlz.js → vue-ui-spark-trend-BdbKTdDf.js} +3 -3
  145. package/dist/{vue-ui-sparkbar-COFbNvl8.js → vue-ui-sparkbar-YHQ4p8kR.js} +3 -3
  146. package/dist/{vue-ui-sparkgauge-BVj5aBtN.js → vue-ui-sparkgauge-Dj8V5lP-.js} +3 -3
  147. package/dist/{vue-ui-sparkhistogram-BpIUtNbm.js → vue-ui-sparkhistogram-CayH9KXh.js} +4 -4
  148. package/dist/vue-ui-sparkline-fH5RHCuU.js +1285 -0
  149. package/dist/{vue-ui-sparkstackbar-Di1Z6CpX.js → vue-ui-sparkstackbar-BRrXZ3HD.js} +4 -4
  150. package/dist/{vue-ui-stackbar-DfpvPPd1.js → vue-ui-stackbar-Cr4rjhgI.js} +10 -10
  151. package/dist/{vue-ui-stackline-pnbcfPu2.js → vue-ui-stackline-BMWGoqHH.js} +10 -10
  152. package/dist/{vue-ui-strip-plot-CO47pgaw.js → vue-ui-strip-plot-BT9wTw3K.js} +7 -7
  153. package/dist/{vue-ui-table-DuVmmM6H.js → vue-ui-table-CDSrL5c3.js} +5 -5
  154. package/dist/{vue-ui-table-heatmap-DbXrKnjX.js → vue-ui-table-heatmap-ZwN9ddMi.js} +5 -5
  155. package/dist/{vue-ui-table-sparkline-CuJ7Zsve.js → vue-ui-table-sparkline-C-Z-j9eE.js} +4 -4
  156. package/dist/{vue-ui-thermometer-BRcNwZEw.js → vue-ui-thermometer-Bj3Ohkoi.js} +7 -7
  157. package/dist/{vue-ui-timer-D7msujhO.js → vue-ui-timer-BIbxNB8x.js} +5 -5
  158. package/dist/{vue-ui-tiremarks-hx9IfotL.js → vue-ui-tiremarks-C9YPABM6.js} +6 -6
  159. package/dist/{vue-ui-treemap-DWMchmZj.js → vue-ui-treemap-DLteVJzt.js} +9 -9
  160. package/dist/{vue-ui-waffle-MXpJ2_j4.js → vue-ui-waffle-DKX02YVy.js} +10 -10
  161. package/dist/{vue-ui-wheel-rw2QWGiJ.js → vue-ui-wheel-DAQnwoZW.js} +6 -6
  162. package/dist/{vue-ui-word-cloud-COBNp3Nn.js → vue-ui-word-cloud-3dO7FOUK.js} +7 -7
  163. package/dist/{vue-ui-world-D3B9gr4m.js → vue-ui-world-PReATjuv.js} +7 -7
  164. package/dist/{vue-ui-xy-CnJ3_k9V.js → vue-ui-xy-Bpoi_CZC.js} +10 -10
  165. package/dist/{vue-ui-xy-canvas-By2yRWCx.js → vue-ui-xy-canvas-BlY9IPhZ.js} +11 -11
  166. package/package.json +4 -3
  167. package/dist/vue-ui-sparkline-CgYlQI65.js +0 -856
@@ -1,856 +0,0 @@
1
- import { ref as g, onMounted as Le, onBeforeUnmount as le, computed as i, watch as x, nextTick as M, createElementBlock as c, createCommentVNode as m, openBlock as d, Fragment as K, renderList as te, createElementVNode as p, defineAsyncComponent as De, toRefs as pt, shallowRef as Be, watchEffect as yt, normalizeStyle as N, renderSlot as z, createBlock as ke, normalizeProps as Re, guardReactiveProps as Ee, toDisplayString as Q, unref as r, createVNode as gt, withCtx as bt, createTextVNode as mt } from "vue";
2
- import { c as kt, t as ze, aA as Ce, o as Oe, g as Ve, l as Ct, h as J, n as At, ap as wt, X as xt, s as ee, A as qe, C as Lt, Q as je, a as Ae, d as we, aB as Mt } from "./lib-swBj76n5.js";
3
- import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
4
- import { u as Nt, a as xe } from "./useNestedProp-C4DkSVBD.js";
5
- import { u as It, B as St } from "./BaseScanner-BMpwQAfz.js";
6
- import { u as Ft } from "./useThemeCheck-D1ZYXUwG.js";
7
- import { u as Tt } from "./useTimeLabels-C-A2uZKi.js";
8
- import { u as Pt } from "./useChartAccessibility-9icAAmYg.js";
9
- import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const We = { style: { line: { color: "#2A2929" }, area: { color: "#65698E" }, bar: { color: "#2A2929" } } }, Ge = { 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" } } }, Ke = { 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" } } }, Ze = { 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" } } }, He = { 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" } } }, Qe = {
11
- default: {},
12
- minimal: We,
13
- minimalDark: Ge,
14
- dark: Ke,
15
- celebration: Ue,
16
- celebrationNight: Xe,
17
- hack: Ye,
18
- zen: Ze,
19
- concrete: He
20
- }, $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21
- __proto__: null,
22
- celebration: Ue,
23
- celebrationNight: Xe,
24
- concrete: He,
25
- dark: Ke,
26
- default: Qe,
27
- hack: Ye,
28
- minimal: We,
29
- minimalDark: Ge,
30
- zen: Ze
31
- }, Symbol.toStringTag, { value: "Module" }));
32
- function Bt() {
33
- const n = g(!1);
34
- return Le(() => {
35
- const b = window.matchMedia("(prefers-reduced-motion: reduce)"), w = () => {
36
- n.value = b.matches;
37
- };
38
- w(), b.addEventListener("change", w), le(() => {
39
- b.removeEventListener("change", w);
40
- });
41
- }), n;
42
- }
43
- const Rt = {
44
- key: 0,
45
- style: { "pointer-events": "none" }
46
- }, Et = ["r", "fill", "filter"], zt = ["begin", "dur", "repeatCount", "fill", "calcMode", "keySplines", "keyTimes", "keyPoints"], Ot = ["href"], Vt = ["dur", "repeatCount", "fill", "values"], qt = ["r", "fill"], jt = ["begin", "dur", "repeatCount", "calcMode", "keySplines", "keyTimes", "keyPoints"], Wt = ["href"], Gt = ["dur", "repeatCount"], Kt = {
47
- __name: "SparklinePulse",
48
- props: {
49
- uid: { type: String, required: !0 },
50
- svgRef: { type: Object, default: null },
51
- pulsePathId: { type: String, required: !0 },
52
- pulsePathLength: { type: Number, required: !0 },
53
- pulseDur: { type: String, required: !0 },
54
- pulseBegin: { type: String, required: !0 },
55
- pulseRepeatCount: { type: String, required: !0 },
56
- pulseFillMode: { type: String, default: void 0 },
57
- pulseKeyPoints: { type: String, required: !0 },
58
- pulseMotion: { type: Object, required: !0 },
59
- pulse: { type: Object, required: !0 },
60
- pulseTrail: { type: Object, required: !0 },
61
- pulseTrailLength: { type: Number, required: !0 },
62
- prefersReducedMotion: { type: Boolean, required: !0 },
63
- loading: { type: Boolean, required: !0 },
64
- isBar: { type: Boolean, required: !0 }
65
- },
66
- setup(n) {
67
- const b = n, w = i(() => Math.min(b.pulseTrailLength, 45)), ae = i(() => !!b.pulse?.show && !b.isBar && !b.prefersReducedMotion && !b.loading && Number(b.pulsePathLength) > 0);
68
- function T() {
69
- const o = b.svgRef?.value;
70
- o && (typeof o.pauseAnimations == "function" && o.pauseAnimations(), typeof o.setCurrentTime == "function" && o.setCurrentTime(0), typeof o.unpauseAnimations == "function" && o.unpauseAnimations());
71
- }
72
- function oe(o, I) {
73
- if (typeof o != "string") return o;
74
- const y = o.trim().match(/^([\d.]+)\s*(ms|s)$/);
75
- if (!y) return o;
76
- const k = Number(y[1]), X = y[2];
77
- return Number.isNaN(k) ? o : `${k + I}${X}`;
78
- }
79
- function ue(o) {
80
- return (w.value - o) / w.value * b.pulse.radius;
81
- }
82
- function U(o) {
83
- const I = b.pulse.trail.opacity, y = (w.value - o) / w.value, k = o === 0 ? 1 : y * I;
84
- return `0;${k};${k};0`;
85
- }
86
- return x(
87
- () => b.loading,
88
- async (o) => {
89
- if (o) {
90
- T();
91
- return;
92
- }
93
- await M(), T();
94
- }
95
- ), x(
96
- () => b.pulsePathId,
97
- async () => {
98
- await M(), T();
99
- }
100
- ), le(() => {
101
- T();
102
- }), (o, I) => ae.value ? (d(), c("g", Rt, [
103
- (d(!0), c(K, null, te(w.value, (y, k) => (d(), c(K, null, [
104
- k % 3 === 0 ? (d(), c("circle", {
105
- key: `sparkline_dot_${k}_${n.pulsePathId}`,
106
- r: ue(k),
107
- fill: n.pulse.color,
108
- filter: `url(#sparkline_pulse_glow_${n.uid})`,
109
- opacity: "0"
110
- }, [
111
- p("animateMotion", {
112
- begin: oe(n.pulseBegin, k * 10),
113
- dur: n.pulseDur,
114
- repeatCount: n.pulseRepeatCount,
115
- fill: n.pulseFillMode,
116
- calcMode: n.pulseMotion.calcMode,
117
- keySplines: n.pulseMotion.keySplines || void 0,
118
- keyTimes: n.pulseMotion.keyTimes || void 0,
119
- keyPoints: n.pulseKeyPoints,
120
- rotate: "auto"
121
- }, [
122
- p("mpath", {
123
- href: `#${n.pulsePathId}`
124
- }, null, 8, Ot)
125
- ], 8, zt),
126
- p("animate", {
127
- attributeName: "opacity",
128
- dur: n.pulseDur,
129
- repeatCount: n.pulseRepeatCount,
130
- fill: n.pulseFillMode,
131
- values: U(k),
132
- keyTimes: "0;0.1;0.9;1"
133
- }, null, 8, Vt)
134
- ], 8, Et)) : m("", !0)
135
- ], 64))), 256)),
136
- (d(), c("circle", {
137
- key: `sparkline_halo_${n.pulsePathId}`,
138
- r: Math.max(n.pulse.radius * 1.3),
139
- fill: n.pulse.color,
140
- opacity: "0"
141
- }, [
142
- p("animateMotion", {
143
- begin: n.pulseBegin,
144
- dur: n.pulseDur,
145
- repeatCount: n.pulseRepeatCount,
146
- calcMode: n.pulseMotion.calcMode,
147
- keySplines: n.pulseMotion.keySplines || void 0,
148
- keyTimes: n.pulseMotion.keyTimes || void 0,
149
- keyPoints: n.pulseKeyPoints,
150
- rotate: "auto"
151
- }, [
152
- p("mpath", {
153
- href: `#${n.pulsePathId}`
154
- }, null, 8, Wt)
155
- ], 8, jt),
156
- p("animate", {
157
- attributeName: "opacity",
158
- values: "0;0.35;0.35;0",
159
- keyTimes: "0;0.15;0.85;1",
160
- dur: n.pulseDur,
161
- repeatCount: n.pulseRepeatCount
162
- }, null, 8, Gt)
163
- ], 8, qt))
164
- ])) : m("", !0);
165
- }
166
- }, Ut = ["id"], Xt = ["xmlns", "viewBox"], Yt = ["width", "height"], Zt = ["id"], Ht = ["stop-color"], Qt = ["stop-color"], Jt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["id"], al = ["stop-color"], ol = ["stop-color"], ul = ["id"], nl = { key: 1 }, rl = ["d", "fill"], sl = ["d", "fill"], il = ["id", "d", "stroke", "stroke-width"], dl = ["id", "d", "stroke", "stroke-width"], cl = ["x", "y", "width", "height", "fill", "rx"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "font-weight", "fill"], yl = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], gl = {
167
- __name: "vue-ui-sparkline",
168
- props: {
169
- config: {
170
- type: Object,
171
- default() {
172
- return {};
173
- }
174
- },
175
- dataset: {
176
- type: Array,
177
- default() {
178
- return [];
179
- }
180
- },
181
- showInfo: {
182
- type: Boolean,
183
- default: !0
184
- },
185
- selectedIndex: {
186
- type: Number,
187
- default: void 0
188
- },
189
- heightRatio: {
190
- type: Number,
191
- default: 1
192
- },
193
- forcedPadding: {
194
- type: Number,
195
- default: 30
196
- }
197
- },
198
- emits: ["hoverIndex", "selectDatapoint"],
199
- setup(n, { emit: b }) {
200
- const w = De(() => import("./PackageVersion-B6IEJQ5U.js")), ae = De(() => import("./SparkTooltip-0RaBXTYZ.js")), { vue_ui_sparkline: T } = Nt(), { isThemeValid: oe, warnInvalidTheme: ue } = Ft(), U = Bt(), o = n, I = i(() => Array.isArray(o.dataset) && o.dataset.length > 0), y = g(kt()), k = g(null), X = g(null), ne = g(null), e = g(se());
201
- function Je(t) {
202
- return o.config?.skeletonDataset && Array.isArray(o.config.skeletonDataset) ? o.config.skeletonDataset.map((l) => ({ period: "-", value: l })) : Mt(t).map((l) => ({ period: "-", value: l }));
203
- }
204
- const et = i(() => ze({
205
- defaultConfig: {
206
- style: {
207
- backgroundColor: "#99999930",
208
- scaleMin: 0,
209
- scaleMax: null,
210
- animation: { show: !1 },
211
- line: { color: "#AAAAAA", pulse: { show: !1 } },
212
- bar: { color: "#AAAAAA" },
213
- area: { color: "#CACACA" },
214
- zeroLine: { color: "#6A6A6A" },
215
- dataLabel: { show: !1 },
216
- tooltip: { show: !1 }
217
- }
218
- },
219
- userConfig: e.value.skeletonConfig ?? {}
220
- })), { loading: C, FINAL_DATASET: O, manualLoading: re } = It({
221
- ...pt(o),
222
- FINAL_CONFIG: e,
223
- prepareConfig: se,
224
- callback: () => {
225
- Promise.resolve().then(async () => {
226
- await M(), he();
227
- });
228
- },
229
- skeletonDataset: Je(12),
230
- skeletonConfig: ze({
231
- defaultConfig: e.value,
232
- userConfig: et.value
233
- })
234
- }), { svgRef: Y } = Pt({ config: e.value.style.title });
235
- function se() {
236
- const t = xe({
237
- userConfig: o.config,
238
- defaultConfig: T
239
- });
240
- let l = {};
241
- const a = t.theme;
242
- if (a)
243
- if (!oe.value(t))
244
- ue(t), l = t;
245
- else {
246
- const u = xe({
247
- userConfig: Qe[a] || o.config,
248
- defaultConfig: t
249
- });
250
- l = {
251
- ...xe({
252
- userConfig: o.config,
253
- defaultConfig: u
254
- })
255
- };
256
- }
257
- else
258
- l = t;
259
- return l;
260
- }
261
- const A = i(() => e.value?.style?.line.pulse || {}), tt = i(() => `${Math.max(200, Number(A.value.durationMs) || 4e3) / 1e3}s`), Z = g(0), lt = i(() => A.value?.begin || "0ms"), at = g("0;1"), ot = i(() => A.value?.loop === !1 ? "1" : "indefinite"), ut = i(() => A.value?.loop === !1 ? "freeze" : void 0), nt = i(() => A.value.trail.show && Me.value.lengthPx || 1), ie = i(() => !!A.value?.show && !S.value && !U.value && !C.value && (v.value?.length || 0) > 1);
262
- function de() {
263
- if (!ie.value) {
264
- Z.value = 0;
265
- return;
266
- }
267
- const t = Y.value;
268
- if (!t) return;
269
- const l = `#${j.value}`, a = t.querySelector?.(l);
270
- if (a && typeof a.getTotalLength == "function") {
271
- const u = a.getTotalLength();
272
- Number.isFinite(u) && u > 0 && (Z.value = u);
273
- return;
274
- }
275
- requestAnimationFrame(() => {
276
- const u = t.querySelector?.(l);
277
- if (u && typeof u.getTotalLength == "function") {
278
- const F = u.getTotalLength();
279
- Number.isFinite(F) && F > 0 && (Z.value = F);
280
- }
281
- });
282
- }
283
- const rt = i(() => {
284
- const t = A.value?.easing || "ease-in-out", l = {
285
- ease: [0.25, 0.1, 0.25, 1],
286
- "ease-in": [0.42, 0, 1, 1],
287
- "ease-out": [0, 0, 0.58, 1],
288
- "ease-in-out": [0.42, 0, 0.58, 1]
289
- };
290
- return t === "linear" ? {
291
- calcMode: "linear",
292
- keySplines: null,
293
- keyTimes: "0;1"
294
- } : t === "steps" ? {
295
- calcMode: "discrete",
296
- keySplines: null,
297
- keyTimes: "0;1"
298
- } : {
299
- calcMode: "spline",
300
- keySplines: (t === "cubic-bezier" ? Array.isArray(A.value?.cubicBezier) && A.value.cubicBezier.length === 4 ? A.value.cubicBezier : [0.4, 0, 0.2, 1] : l[t] || l["ease-in-out"]).join(" "),
301
- keyTimes: "0;1"
302
- };
303
- }), Me = i(() => {
304
- const t = A.value?.trail || {}, l = e.value.style.line.strokeWidth || 1;
305
- return {
306
- show: t.show !== !1,
307
- lengthPx: t.length,
308
- width: Math.max(1, Number(t.strokeWidth) || l * 2.2),
309
- opacity: Math.min(1, Math.max(0, Number(t.opacity) ?? 0.6)),
310
- fadeIn: 0.5,
311
- fadeOut: 0.2
312
- };
313
- }), P = i(() => Ce({
314
- data: O.value,
315
- threshold: e.value.downsample.threshold
316
- }));
317
- x(() => o.config, (t) => {
318
- C.value || (e.value = se()), Ie(), s.value.chartWidth = e.value.style.chartWidth;
319
- }, { deep: !0 }), x(() => o.dataset, (t) => {
320
- Array.isArray(t) && t.length > 0 && (re.value = !1), L.value = Ce({
321
- data: O.value.map((l) => ({
322
- ...l,
323
- value: [void 0].includes(l.value) ? null : l.value
324
- })),
325
- threshold: e.value.downsample.threshold
326
- });
327
- }, { deep: !0 });
328
- const L = g(st());
329
- function st() {
330
- return Ce({
331
- data: O.value.map((t) => e.value.style.animation.show && O.value.length > 1 ? {
332
- ...t,
333
- value: null
334
- } : {
335
- ...t,
336
- value: [void 0].includes(t.value) ? null : t.value
337
- }),
338
- threshold: e.value.downsample.threshold
339
- });
340
- }
341
- const _ = Be(null), D = Be(null), V = g(!1), q = g(0), ce = g([]), ve = g(""), fe = i(() => {
342
- const l = (P.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), a = e.value?.style?.animation || {};
343
- return `${l}#${!!a.show}#${a.animationFrames || 0}`;
344
- });
345
- function H() {
346
- q.value && (cancelAnimationFrame(q.value), q.value = 0), ce.value.forEach((t) => clearTimeout(t)), ce.value = [], V.value = !1;
347
- }
348
- function he() {
349
- const t = e.value?.style?.animation || {}, l = P.value || [], a = fe.value;
350
- if (a && a === ve.value && (V.value || L.value.length === l.length))
351
- return;
352
- if (H(), !t.show || C.value || l.length <= 1) {
353
- L.value = l, ve.value = a;
354
- return;
355
- }
356
- V.value = !0, ve.value = a, L.value = [];
357
- const u = Math.max(1, Number(t.animationFrames) || 1), F = Math.max(1, Math.floor(u / l.length));
358
- let me = 0;
359
- const Pe = () => {
360
- if (a !== fe.value) {
361
- H();
362
- return;
363
- }
364
- if (me < l.length) {
365
- L.value.push(l[me]);
366
- const ht = setTimeout(() => {
367
- q.value = requestAnimationFrame(Pe);
368
- }, F);
369
- ce.value.push(ht), me += 1;
370
- } else
371
- L.value = l, H();
372
- };
373
- q.value = requestAnimationFrame(Pe);
374
- }
375
- x(fe, () => {
376
- he();
377
- }), Le(() => {
378
- Ie(), he();
379
- }), le(() => {
380
- H();
381
- });
382
- const _e = g(0);
383
- x(
384
- () => C.value,
385
- async (t) => {
386
- t || (await M(), _e.value += 1);
387
- }
388
- ), x(
389
- () => V.value,
390
- async (t) => {
391
- t || C.value || (await M(), _e.value += 1);
392
- }
393
- );
394
- const j = i(() => `sparkline_line_path_${y.value}`), pe = g(!0);
395
- async function $e() {
396
- pe.value = !1, await M(), pe.value = !0, await M(), de();
397
- }
398
- const Ne = i(() => !!e.value.debug);
399
- function Ie() {
400
- if (Oe(o.dataset) ? (Ve({
401
- componentName: "VueUiSparkline",
402
- type: "dataset",
403
- debug: Ne.value
404
- }), re.value = !0) : o.dataset.forEach((t, l) => {
405
- Ct({
406
- datasetObject: t,
407
- requiredAttributes: ["period", "value"]
408
- }).forEach((a) => {
409
- Ve({
410
- componentName: "VueUiSparkline",
411
- type: "datasetSerieAttribute",
412
- property: a,
413
- index: l,
414
- debug: Ne.value
415
- });
416
- });
417
- }), Oe(o.dataset) || (re.value = e.value.loading), e.value.responsive) {
418
- const t = _t(() => {
419
- const { width: l, height: a } = $t({
420
- chart: k.value,
421
- title: e.value.style.title.show && o.showInfo ? X.value : null,
422
- source: ne.value
423
- });
424
- requestAnimationFrame(() => {
425
- s.value.width = l, s.value.height = a, s.value.chartWidth = e.value.style.chartWidth / 500 * l, s.value.padding = o.forcedPadding / 500 * l;
426
- });
427
- });
428
- _.value && (D.value && _.value.unobserve(D.value), _.value.disconnect()), _.value = new ResizeObserver(t), D.value = k.value.parentNode, _.value.observe(D.value);
429
- }
430
- }
431
- le(() => {
432
- _.value && (D.value && _.value.unobserve(D.value), _.value.disconnect());
433
- });
434
- const s = g({
435
- height: 80 * o.heightRatio,
436
- width: 500,
437
- chartWidth: e.value.style.chartWidth,
438
- padding: o.forcedPadding
439
- }), ye = b, f = i(() => {
440
- const { top: t, right: l, bottom: a, left: u } = e.value.style.padding;
441
- return {
442
- top: t,
443
- left: u,
444
- right: s.value.width - l,
445
- bottom: s.value.height - a,
446
- start: o.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? s.value.width - s.value.chartWidth + u : s.value.padding + u,
447
- width: o.showInfo && e.value.style.dataLabel.show ? s.value.chartWidth - u - l : s.value.width - s.value.padding - u - l,
448
- height: s.value.height - t - a
449
- };
450
- }), ge = i(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...L.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), it = i(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...L.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), W = i(() => {
451
- const t = ge.value >= 0 ? 0 : ge.value;
452
- return Math.abs(t);
453
- }), Se = i(() => it.value + W.value), B = i(() => f.value.bottom - f.value.height * be(W.value));
454
- function be(t) {
455
- return isNaN(t / Se.value) ? 0 : t / Se.value;
456
- }
457
- const R = i(() => P.value.length - 1 || 1), G = g([]);
458
- let Fe = 0;
459
- yt(() => {
460
- const t = ++Fe;
461
- (async () => {
462
- const l = await Tt({
463
- values: P.value.map((a) => a.period),
464
- maxDatapoints: P.value.length,
465
- formatter: e.value.style.dataLabel.datetimeFormatter,
466
- start: 0,
467
- end: P.value.length
468
- });
469
- t === Fe && (G.value = l);
470
- })();
471
- });
472
- const v = i(() => L.value.map((t, l) => {
473
- const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u = f.value.width / R.value;
474
- return {
475
- absoluteValue: a,
476
- period: G.value && G.value[l] && G.value[l].text ? G.value[l].text : t.period,
477
- plotValue: a + W.value,
478
- toMax: be(a + W.value),
479
- x: f.value.start + l * u,
480
- y: f.value.bottom - f.value.height * be(a + W.value),
481
- id: `plot_${y.value}_${l}`,
482
- color: S.value ? e.value.style.bar.color : e.value.style.area.useGradient ? J(e.value.style.line.color, 0.05 * (1 - l / R.value)) : e.value.style.line.color,
483
- width: u
484
- };
485
- })), dt = i(() => {
486
- const t = { x: v.value[0].x || 0, y: (s.value.height || 0) - 6 }, l = { x: v.value[v.value.length - 1].x || 0, y: (s.value.height || 0) - 6 }, a = [];
487
- return v.value.forEach((u) => {
488
- a.push(`${u.x || 0},${u.y || 0} `);
489
- }), [t.x, t.y, ...a, l.x, l.y].toString();
490
- }), h = g(void 0), E = g(void 0);
491
- function ct(t, l) {
492
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), h.value = t, E.value || (E.value = t), ye("hoverIndex", { index: l });
493
- }
494
- function vt(t, l) {
495
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), E.value = h.value, h.value = void 0, ye("hoverIndex", { index: void 0 });
496
- }
497
- const $ = i(() => {
498
- if (I.value) {
499
- const t = v.value.map((a) => a.absoluteValue), l = t.reduce((a, u) => a + u, 0);
500
- return {
501
- latest: v.value[v.value.length - 1] ? v.value[v.value.length - 1].absoluteValue : 0,
502
- sum: l,
503
- average: l / v.value.length,
504
- median: wt(t),
505
- trend: At(v.value.map(({ x: a, y: u, absoluteValue: F }) => ({
506
- x: a,
507
- y: u,
508
- value: F
509
- }))).trend
510
- };
511
- } else
512
- return {
513
- latest: null,
514
- sum: null,
515
- average: null,
516
- median: null,
517
- trend: null
518
- };
519
- }), Te = i(() => I.value ? e.value.style.dataLabel.valueType === "latest" ? $.value.latest : e.value.style.dataLabel.valueType === "sum" ? $.value.sum : e.value.style.dataLabel.valueType === "average" ? $.value.average : 0 : 0), S = i(() => e.value.type && e.value.type === "bar");
520
- function ft(t, l) {
521
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l }), ye("selectDatapoint", { datapoint: t, index: l });
522
- }
523
- return x(
524
- () => [
525
- ie.value,
526
- j.value,
527
- v.value.length,
528
- s.value.width,
529
- s.value.height,
530
- e.value?.style?.line?.smooth
531
- ],
532
- async () => {
533
- await M(), de();
534
- },
535
- { immediate: !0 }
536
- ), Le(async () => {
537
- await M(), de();
538
- }), x(
539
- () => C.value,
540
- async (t) => {
541
- t || await $e();
542
- }
543
- ), x(
544
- () => V.value,
545
- async (t) => {
546
- t || C.value || await $e();
547
- }
548
- ), (t, l) => (d(), c("div", {
549
- ref_key: "sparklineChart",
550
- ref: k,
551
- class: "vue-data-ui-component vue-ui-sparkline",
552
- id: y.value,
553
- style: N(`width:100%;font-family:${e.value.style.fontFamily};`)
554
- }, [
555
- z(t.$slots, "before", Re(Ee({
556
- selected: h.value,
557
- latest: $.value.latest,
558
- sum: $.value.sum,
559
- average: $.value.average,
560
- median: $.value.median,
561
- trend: $.value.trend
562
- })), void 0, !0),
563
- e.value.style.title.show && n.showInfo ? (d(), c("div", {
564
- key: 0,
565
- ref_key: "chartTitle",
566
- ref: X,
567
- class: "vue-ui-sparkline-title",
568
- style: N(`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"};`)
569
- }, [
570
- p("span", {
571
- style: N(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
572
- }, Q(h.value ? h.value.period : e.value.style.title.text), 5)
573
- ], 4)) : m("", !0),
574
- (d(), c("svg", {
575
- ref_key: "svgRef",
576
- ref: Y,
577
- xmlns: r(xt),
578
- viewBox: `0 0 ${s.value.width} ${s.value.height}`,
579
- style: N(`background:${e.value.style.backgroundColor};overflow:visible`),
580
- onMouseleave: l[0] || (l[0] = (a) => E.value = void 0)
581
- }, [
582
- gt(r(w)),
583
- t.$slots["chart-background"] ? (d(), c("foreignObject", {
584
- key: 0,
585
- x: 0,
586
- y: 0,
587
- width: s.value.width <= 0 ? 10 : s.value.width,
588
- height: s.value.height <= 0 ? 10 : s.value.height,
589
- style: {
590
- pointerEvents: "none"
591
- }
592
- }, [
593
- z(t.$slots, "chart-background", {}, void 0, !0)
594
- ], 8, Yt)) : m("", !0),
595
- p("defs", null, [
596
- p("linearGradient", {
597
- x1: "0%",
598
- y1: "0%",
599
- x2: "100%",
600
- y2: "0%",
601
- id: `sparkline_gradient_${y.value}`
602
- }, [
603
- p("stop", {
604
- offset: "0%",
605
- "stop-color": r(ee)(r(J)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
606
- }, null, 8, Ht),
607
- p("stop", {
608
- offset: "100%",
609
- "stop-color": r(ee)(e.value.style.area.color, e.value.style.area.opacity)
610
- }, null, 8, Qt)
611
- ], 8, Zt),
612
- p("linearGradient", {
613
- x2: "0%",
614
- y2: "100%",
615
- id: `sparkline_bar_gradient_pos_${y.value}`
616
- }, [
617
- p("stop", {
618
- offset: "0%",
619
- "stop-color": e.value.style.bar.color
620
- }, null, 8, el),
621
- p("stop", {
622
- offset: "100%",
623
- "stop-color": r(J)(e.value.style.bar.color, 0.05)
624
- }, null, 8, tl)
625
- ], 8, Jt),
626
- p("linearGradient", {
627
- x2: "0%",
628
- y2: "100%",
629
- id: `sparkline_bar_gradient_neg_${y.value}`
630
- }, [
631
- p("stop", {
632
- offset: "0%",
633
- "stop-color": r(J)(e.value.style.bar.color, 0.05)
634
- }, null, 8, al),
635
- p("stop", {
636
- offset: "100%",
637
- "stop-color": e.value.style.bar.color
638
- }, null, 8, ol)
639
- ], 8, ll),
640
- p("filter", {
641
- id: `sparkline_pulse_glow_${y.value}`,
642
- filterUnits: "userSpaceOnUse",
643
- x: "-50",
644
- y: "-50",
645
- width: "100",
646
- height: "100"
647
- }, [...l[1] || (l[1] = [
648
- p("feGaussianBlur", {
649
- in: "SourceGraphic",
650
- stdDeviation: "3",
651
- result: "blur"
652
- }, null, -1),
653
- p("feMerge", null, [
654
- p("feMergeNode", { in: "blur" }),
655
- p("feMergeNode", { in: "SourceGraphic" })
656
- ], -1)
657
- ])], 8, ul)
658
- ]),
659
- e.value.style.area.show && !S.value && v.value[0] && v.value.length > 1 ? (d(), c("g", nl, [
660
- e.value.style.line.smooth ? (d(), c("path", {
661
- key: 0,
662
- class: "vue-ui-sparkline-area",
663
- d: `M ${v.value[0].x},${f.value.bottom} ${r(qe)(v.value)} L ${v.value.at(-1).x},${f.value.bottom} Z`,
664
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${y.value})` : r(ee)(e.value.style.area.color, e.value.style.area.opacity),
665
- "stroke-linecap": "round",
666
- "stroke-linejoin": "round",
667
- style: N({
668
- transition: r(C) ? void 0 : "all 0.2s"
669
- })
670
- }, null, 12, rl)) : (d(), c("path", {
671
- key: 1,
672
- class: "vue-ui-sparkline-area",
673
- d: `M${dt.value}Z`,
674
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${y.value})` : r(ee)(e.value.style.area.color, e.value.style.area.opacity),
675
- "stroke-linecap": "round",
676
- "stroke-linejoin": "round",
677
- style: N({
678
- transition: r(C) ? void 0 : "all 0.2s"
679
- })
680
- }, null, 12, sl))
681
- ])) : m("", !0),
682
- e.value.style.line.smooth && !S.value ? (d(), c("path", {
683
- key: 2,
684
- class: "vue-ui-sparkline-path",
685
- id: j.value,
686
- d: `M ${r(qe)(v.value) || "0,0"}`,
687
- stroke: e.value.style.line.color,
688
- fill: "none",
689
- "stroke-width": e.value.style.line.strokeWidth,
690
- "stroke-linecap": "round",
691
- "stroke-linejoin": "round",
692
- style: N({
693
- transition: r(C) ? void 0 : "all 0.2s"
694
- })
695
- }, null, 12, il)) : m("", !0),
696
- !e.value.style.line.smooth && !S.value ? (d(), c("path", {
697
- key: 3,
698
- class: "vue-ui-sparkline-path",
699
- id: j.value,
700
- d: `M ${r(Lt)(v.value) || "0,0"}`,
701
- stroke: e.value.style.line.color,
702
- fill: "none",
703
- "stroke-width": e.value.style.line.strokeWidth,
704
- "stroke-linecap": "round",
705
- "stroke-linejoin": "round",
706
- style: N({
707
- transition: r(C) ? void 0 : "all 0.2s"
708
- })
709
- }, null, 12, dl)) : m("", !0),
710
- pe.value && ie.value ? (d(), ke(Kt, {
711
- key: 4,
712
- uid: y.value,
713
- svgRef: r(Y),
714
- pulsePathId: j.value,
715
- pulsePathLength: Z.value,
716
- pulseDur: tt.value,
717
- pulseBegin: lt.value,
718
- pulseRepeatCount: ot.value,
719
- pulseFillMode: ut.value,
720
- pulseKeyPoints: at.value,
721
- pulseMotion: rt.value,
722
- pulse: A.value,
723
- pulseTrail: Me.value,
724
- pulseTrailLength: nt.value,
725
- prefersReducedMotion: r(U),
726
- loading: r(C),
727
- isBar: S.value
728
- }, null, 8, ["uid", "svgRef", "pulsePathId", "pulsePathLength", "pulseDur", "pulseBegin", "pulseRepeatCount", "pulseFillMode", "pulseKeyPoints", "pulseMotion", "pulse", "pulseTrail", "pulseTrailLength", "prefersReducedMotion", "loading", "isBar"])) : m("", !0),
729
- (d(!0), c(K, null, te(v.value, (a, u) => (d(), c("g", null, [
730
- S.value ? (d(), c("rect", {
731
- key: 0,
732
- x: a.x - a.width / 2,
733
- y: isNaN(a.absoluteValue > 0 ? a.y : B.value) ? 0 : a.absoluteValue > 0 ? a.y : B.value,
734
- width: a.width,
735
- height: isNaN(Math.abs(a.y - B.value)) ? 0 : Math.abs(a.y - B.value),
736
- fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${y.value})` : `url(#sparkline_bar_gradient_neg_${y.value})`,
737
- rx: e.value.style.bar.borderRadius
738
- }, null, 8, cl)) : m("", !0),
739
- e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id || n.selectedIndex === u) ? (d(), c("line", {
740
- key: 1,
741
- x1: a.x,
742
- x2: a.x,
743
- y1: f.value.top - 6,
744
- y2: f.value.bottom,
745
- stroke: e.value.style.verticalIndicator.color || a.color,
746
- "stroke-width": e.value.style.verticalIndicator.strokeWidth,
747
- "stroke-linecap": "round",
748
- "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
749
- }, null, 8, vl)) : m("", !0)
750
- ]))), 256)),
751
- ge.value < 0 ? (d(), c("line", {
752
- key: 5,
753
- x1: f.value.start,
754
- x2: f.value.start + f.value.width,
755
- y1: r(je)(B.value, f.value.bottom),
756
- y2: r(je)(B.value, f.value.bottom),
757
- stroke: e.value.style.zeroLine.color,
758
- "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
759
- "stroke-width": e.value.style.zeroLine.strokeWidth,
760
- "stroke-linecap": "round"
761
- }, null, 8, fl)) : m("", !0),
762
- e.value.style.plot.show ? (d(!0), c(K, { key: 6 }, te(v.value, (a, u) => (d(), c("g", null, [
763
- h.value && a.id === h.value.id || n.selectedIndex === u || r(O).length === 1 ? (d(), c("circle", {
764
- key: 0,
765
- cx: a.x,
766
- cy: a.y,
767
- r: e.value.style.plot.radius,
768
- fill: a.color,
769
- stroke: e.value.style.plot.stroke,
770
- "stroke-width": e.value.style.plot.strokeWidth
771
- }, null, 8, hl)) : m("", !0)
772
- ]))), 256)) : m("", !0),
773
- n.showInfo && e.value.style.dataLabel.show ? (d(), c("text", {
774
- key: 7,
775
- x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : f.value.width + 12 + e.value.style.dataLabel.offsetX,
776
- y: s.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
777
- "font-size": e.value.style.dataLabel.fontSize,
778
- "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
779
- fill: e.value.style.dataLabel.color
780
- }, Q(h.value ? r(Ae)(
781
- e.value.style.dataLabel.formatter,
782
- h.value.absoluteValue,
783
- r(we)({ p: e.value.style.dataLabel.prefix, v: h.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
784
- { datapoint: h.value }
785
- ) : r(Ae)(
786
- e.value.style.dataLabel.formatter,
787
- Te.value,
788
- r(we)({ p: e.value.style.dataLabel.prefix, v: Te.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
789
- )), 9, pl)) : m("", !0),
790
- (d(!0), c(K, null, te(v.value, (a, u) => (d(), c("rect", {
791
- x: a.x - (f.value.width / (R.value + 1) > s.value.padding ? s.value.padding : f.value.width / (R.value + 1)) / 2,
792
- y: f.value.top - 6,
793
- height: f.value.height + 6,
794
- width: f.value.width / (R.value + 1) > s.value.padding ? s.value.padding : f.value.width / (R.value + 1),
795
- fill: "transparent",
796
- onMouseenter: () => ct(a, u),
797
- onMouseleave: () => vt(a, u),
798
- onClick: () => ft(a, u)
799
- }, null, 40, yl))), 256)),
800
- z(t.$slots, "svg", { svg: s.value }, void 0, !0)
801
- ], 44, Xt)),
802
- h.value && e.value.style.tooltip.show ? (d(), ke(r(ae), {
803
- key: 1,
804
- x: h.value.x,
805
- y: h.value.y,
806
- prevX: E.value.x,
807
- prevY: E.value.y,
808
- offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
809
- svgRef: r(Y),
810
- background: e.value.style.tooltip.backgroundColor,
811
- color: e.value.style.tooltip.color,
812
- fontSize: e.value.style.tooltip.fontSize,
813
- borderWidth: e.value.style.tooltip.borderWidth,
814
- borderColor: e.value.style.tooltip.borderColor,
815
- borderRadius: e.value.style.tooltip.borderRadius,
816
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity
817
- }, {
818
- default: bt(() => [
819
- z(t.$slots, "tooltip", Re(Ee({ ...h.value })), () => [
820
- mt(Q(h.value.period) + ": " + Q(r(Ae)(
821
- e.value.style.dataLabel.formatter,
822
- h.value.absoluteValue,
823
- r(we)({
824
- p: e.value.style.dataLabel.prefix,
825
- v: h.value.absoluteValue,
826
- s: e.value.style.dataLabel.suffix,
827
- r: e.value.style.dataLabel.roundingValue
828
- }),
829
- { datapoint: h.value }
830
- )), 1)
831
- ], !0)
832
- ]),
833
- _: 3
834
- }, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : m("", !0),
835
- t.$slots.source ? (d(), c("div", {
836
- key: 2,
837
- ref_key: "source",
838
- ref: ne,
839
- dir: "auto"
840
- }, [
841
- z(t.$slots, "source", {}, void 0, !0)
842
- ], 512)) : m("", !0),
843
- z(t.$slots, "skeleton", {}, () => [
844
- r(C) ? (d(), ke(St, { key: 0 })) : m("", !0)
845
- ], !0)
846
- ], 12, Ut));
847
- }
848
- }, bl = /* @__PURE__ */ Dt(gl, [["__scopeId", "data-v-fe99dd90"]]), Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
849
- __proto__: null,
850
- default: bl
851
- }, Symbol.toStringTag, { value: "Module" }));
852
- export {
853
- $l as a,
854
- Nl as b,
855
- bl as v
856
- };