vue-data-ui 2.3.43 → 2.3.44

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 (146) hide show
  1. package/README.md +1 -1
  2. package/dist/{Arrow-BX4nehl3.cjs → Arrow-lVmaBZkc.cjs} +1 -1
  3. package/dist/{Arrow-CWpE_zpe.js → Arrow-nNje1ulZ.js} +1 -1
  4. package/dist/{BaseIcon-CvUiZjEX.js → BaseIcon-CKfFgKNf.js} +1 -1
  5. package/dist/{BaseIcon-DExFkY_J.cjs → BaseIcon-DVZfZ-bL.cjs} +1 -1
  6. package/dist/{DataTable-DxcXjsBO.js → DataTable-BRBTZQqC.js} +2 -2
  7. package/dist/{DataTable-BwXjoB6L.cjs → DataTable-C1-LQ9kU.cjs} +1 -1
  8. package/dist/{Legend-WlisJgNx.js → Legend-CBclUqQE.js} +1 -1
  9. package/dist/{Legend-CsoM5Opb.cjs → Legend-Wzo5EwiV.cjs} +1 -1
  10. package/dist/{Shape-BFjPrzUQ.cjs → Shape-B0yFykoL.cjs} +1 -1
  11. package/dist/{Shape-KaYj09DC.js → Shape-COYrBpTA.js} +1 -1
  12. package/dist/{Slicer-CdefiSuP.js → Slicer-DeKlCzs9.js} +1 -1
  13. package/dist/{Slicer-CMyTqI-E.cjs → Slicer-fdCI8qWb.cjs} +1 -1
  14. package/dist/{Title-BtxIcOzw.js → Title-BNmjrAmy.js} +1 -1
  15. package/dist/{Title-CO92NMAL.cjs → Title-ac0Tzobx.cjs} +1 -1
  16. package/dist/{Tooltip-CAVFRdaz.cjs → Tooltip-CUSoSjeD.cjs} +1 -1
  17. package/dist/{Tooltip-LICk5YoE.js → Tooltip-kARe11oF.js} +1 -1
  18. package/dist/index-CWGchQHo.cjs +4 -0
  19. package/dist/{index-Bbk73zTN.js → index-RX-sax8u.js} +197 -196
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +1 -0
  22. package/dist/types/vue-data-ui.d.ts +1 -0
  23. package/dist/{useNestedProp-UmsAOi8p.cjs → useNestedProp-ZSgzlkKZ.cjs} +1 -1
  24. package/dist/{useNestedProp-DyRlubve.js → useNestedProp-wLyS1qg3.js} +1 -1
  25. package/dist/{usePrinter-C98FQ0-q.cjs → usePrinter-Dz8P4PrQ.cjs} +1 -1
  26. package/dist/{usePrinter-BmgVJQqN.js → usePrinter-pEo9G4KY.js} +1 -1
  27. package/dist/{vue-data-ui-CBnsql5A.js → vue-data-ui-DoqWcxpg.js} +57 -57
  28. package/dist/{vue-data-ui-CU0iVEcI.cjs → vue-data-ui-PIOw96xJ.cjs} +1 -1
  29. package/dist/vue-data-ui.cjs +1 -1
  30. package/dist/vue-data-ui.js +1 -1
  31. package/dist/{vue-ui-3d-bar-DjO8gk8_.js → vue-ui-3d-bar-B4kbEKT8.js} +7 -7
  32. package/dist/{vue-ui-3d-bar-D7Hgh9_L.cjs → vue-ui-3d-bar-D4ugNLFv.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-CM5vg9Tx.cjs → vue-ui-accordion-BQfkZ2Fd.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-CL_FobK9.js → vue-ui-accordion-SU0hvMyf.js} +3 -3
  35. package/dist/{vue-ui-age-pyramid-CAJyYi0a.js → vue-ui-age-pyramid-B2B2jipH.js} +8 -8
  36. package/dist/{vue-ui-age-pyramid-RYNu3tHb.cjs → vue-ui-age-pyramid-Dj3CbYws.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-DFadnHMB.js → vue-ui-annotator-B38AOspl.js} +1 -1
  38. package/dist/{vue-ui-annotator-Cm1zAF7m.cjs → vue-ui-annotator-B4WY-W96.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-DxKxcHMq.js → vue-ui-candlestick-BX28jnUA.js} +9 -9
  40. package/dist/{vue-ui-candlestick-DG4ZvO5e.cjs → vue-ui-candlestick-C_85JG6p.cjs} +1 -1
  41. package/dist/{vue-ui-carousel-table-Blb5YFEv.js → vue-ui-carousel-table-BKPkc33T.js} +4 -4
  42. package/dist/{vue-ui-carousel-table-BVkgLC3s.cjs → vue-ui-carousel-table-CiDmXd8Y.cjs} +1 -1
  43. package/dist/{vue-ui-chestnut-B8Hz3FYZ.js → vue-ui-chestnut-2K97h81h.js} +6 -6
  44. package/dist/{vue-ui-chestnut-DWApH23R.cjs → vue-ui-chestnut-CGFb3yM2.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-BxcQpwOY.js → vue-ui-cursor-DN6xr3nT.js} +2 -2
  46. package/dist/{vue-ui-cursor-D9asBQMh.cjs → vue-ui-cursor-DOIIfQfX.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-DgcdkN2P.js → vue-ui-dashboard-CFJfMnW1.js} +2 -2
  48. package/dist/{vue-ui-dashboard-CEvxFYWL.cjs → vue-ui-dashboard-D_H43fxs.cjs} +1 -1
  49. package/dist/{vue-ui-digits-CQyz7F1E.js → vue-ui-digits-D1sBPU-b.js} +2 -2
  50. package/dist/{vue-ui-digits-B6mHBfpO.cjs → vue-ui-digits-DoFQJ6ye.cjs} +1 -1
  51. package/dist/{vue-ui-donut-MAqy-4_Q.js → vue-ui-donut-BOkeHJmg.js} +9 -9
  52. package/dist/{vue-ui-donut-Bk9ZauPi.cjs → vue-ui-donut-DCKJRNhh.cjs} +1 -1
  53. package/dist/{vue-ui-donut-evolution-D8rLY20T.cjs → vue-ui-donut-evolution-BVfgqCAa.cjs} +1 -1
  54. package/dist/{vue-ui-donut-evolution-LwQMywJy.js → vue-ui-donut-evolution-CVChdWDx.js} +9 -9
  55. package/dist/{vue-ui-dumbbell-B82B7yyh.js → vue-ui-dumbbell-B_nLz9mF.js} +8 -8
  56. package/dist/{vue-ui-dumbbell-DeIwE9rZ.cjs → vue-ui-dumbbell-CAqglrag.cjs} +1 -1
  57. package/dist/{vue-ui-flow-MAa_-OBP.cjs → vue-ui-flow-AK4gWqNd.cjs} +1 -1
  58. package/dist/{vue-ui-flow-hFsm0I_o.js → vue-ui-flow-DAy7OWc2.js} +7 -7
  59. package/dist/{vue-ui-galaxy-DGCAtMPJ.cjs → vue-ui-galaxy-CN1h5FZm.cjs} +1 -1
  60. package/dist/{vue-ui-galaxy-CA4vT6T9.js → vue-ui-galaxy-dYrRlxj0.js} +9 -9
  61. package/dist/{vue-ui-gauge-adb9MqKU.cjs → vue-ui-gauge-BQwOev1K.cjs} +1 -1
  62. package/dist/{vue-ui-gauge-DnoClf1q.js → vue-ui-gauge-vH_nn0vx.js} +5 -5
  63. package/dist/{vue-ui-gizmo-tANH2jdv.cjs → vue-ui-gizmo-BaMtgUef.cjs} +1 -1
  64. package/dist/{vue-ui-gizmo-CM2rrjW-.js → vue-ui-gizmo-eS4XXOgq.js} +2 -2
  65. package/dist/{vue-ui-heatmap-B1s4zxvm.js → vue-ui-heatmap-CfQqnd1M.js} +8 -8
  66. package/dist/{vue-ui-heatmap-CBlqLxiH.cjs → vue-ui-heatmap-DOLn5piI.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-DqKvoNCy.js → vue-ui-kpi-CvCoN7CE.js} +3 -3
  68. package/dist/{vue-ui-kpi-BFTk7ZU3.cjs → vue-ui-kpi-l2MRy6h9.cjs} +1 -1
  69. package/dist/{vue-ui-mini-loader-D-AqqkAZ.js → vue-ui-mini-loader-CuRlbUQF.js} +2 -2
  70. package/dist/{vue-ui-mini-loader-BXwRtFgE.cjs → vue-ui-mini-loader-ac_hCdZA.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-DzHocdro.js → vue-ui-molecule-BgW25jqW.js} +9 -9
  72. package/dist/{vue-ui-molecule-h4UuWEAW.cjs → vue-ui-molecule-Bv-v4WBT.cjs} +1 -1
  73. package/dist/{vue-ui-mood-radar-1Tlf6aw2.js → vue-ui-mood-radar-Dp_CgtVn.js} +9 -9
  74. package/dist/{vue-ui-mood-radar-CS7QJHs3.cjs → vue-ui-mood-radar-rk3wrRpE.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-BeCVjHuA.cjs → vue-ui-nested-donuts--JGjV59I.cjs} +1 -1
  76. package/dist/{vue-ui-nested-donuts-Du7HPk1D.js → vue-ui-nested-donuts-D41M6d-5.js} +9 -9
  77. package/dist/{vue-ui-onion-D6mP-ozX.js → vue-ui-onion-BaazweOI.js} +9 -9
  78. package/dist/{vue-ui-onion-CKIprro6.cjs → vue-ui-onion-Dzuhw8Y3.cjs} +1 -1
  79. package/dist/{vue-ui-parallel-coordinate-plot-rOpV6LMo.cjs → vue-ui-parallel-coordinate-plot-BSaqSFVM.cjs} +1 -1
  80. package/dist/{vue-ui-parallel-coordinate-plot-4duj4p9w.js → vue-ui-parallel-coordinate-plot-Dec8TPLy.js} +10 -10
  81. package/dist/{vue-ui-quadrant-BucLsuLe.js → vue-ui-quadrant-BDLc3Gxw.js} +10 -10
  82. package/dist/{vue-ui-quadrant-t8JYBTSb.cjs → vue-ui-quadrant-BqNSzKPZ.cjs} +1 -1
  83. package/dist/{vue-ui-quick-chart-QV_7Fkz8.js → vue-ui-quick-chart-CmWcXqKE.js} +6 -6
  84. package/dist/{vue-ui-quick-chart-iWzK1xOC.cjs → vue-ui-quick-chart-CpNYfh1z.cjs} +1 -1
  85. package/dist/{vue-ui-radar-BqDGkijn.cjs → vue-ui-radar-CCHVebWS.cjs} +1 -1
  86. package/dist/{vue-ui-radar-BjHAeK_r.js → vue-ui-radar-eOuJE8zH.js} +10 -10
  87. package/dist/{vue-ui-rating-Urv4VkCQ.cjs → vue-ui-rating-ChR7JmUp.cjs} +1 -1
  88. package/dist/{vue-ui-rating-DCBbo_zw.js → vue-ui-rating-Qjyodf8S.js} +2 -2
  89. package/dist/{vue-ui-relation-circle-Dqus5AEv.js → vue-ui-relation-circle-B3hL2PT7.js} +5 -5
  90. package/dist/{vue-ui-relation-circle-D5mWVeOH.cjs → vue-ui-relation-circle-BO5RERci.cjs} +1 -1
  91. package/dist/{vue-ui-rings-CenKPWLm.js → vue-ui-rings-CXfZ9XhE.js} +9 -9
  92. package/dist/{vue-ui-rings-BASFY1MR.cjs → vue-ui-rings-Cd_STL36.cjs} +1 -1
  93. package/dist/{vue-ui-scatter-C7_wKZgM.cjs → vue-ui-scatter-BwN3h_43.cjs} +1 -1
  94. package/dist/{vue-ui-scatter-DKVRfyEx.js → vue-ui-scatter-DjREew2O.js} +10 -10
  95. package/dist/{vue-ui-screenshot-BPVBFgZc.cjs → vue-ui-screenshot-Cnc7zmf5.cjs} +1 -1
  96. package/dist/{vue-ui-screenshot-BbsapvVI.js → vue-ui-screenshot-DSczef-u.js} +1 -1
  97. package/dist/{vue-ui-skeleton-0RSYEYO5.cjs → vue-ui-skeleton-B3I4L51F.cjs} +1 -1
  98. package/dist/{vue-ui-skeleton-B5cqEJh5.js → vue-ui-skeleton-CFx7wegx.js} +2 -2
  99. package/dist/{vue-ui-smiley-BVh_PrQG.cjs → vue-ui-smiley-Bpb_RAXE.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-c3WVJntN.js → vue-ui-smiley-CFPh7_gg.js} +2 -2
  101. package/dist/{vue-ui-spark-trend-k-2KrIOw.js → vue-ui-spark-trend-C5Q_XOKH.js} +4 -4
  102. package/dist/{vue-ui-spark-trend-CXxzIkgB.cjs → vue-ui-spark-trend-poSc_8OY.cjs} +1 -1
  103. package/dist/{vue-ui-sparkbar-BHmNelWN.cjs → vue-ui-sparkbar-CNy_3RJN.cjs} +1 -1
  104. package/dist/{vue-ui-sparkbar-CfMBd1i2.js → vue-ui-sparkbar-skWyToQg.js} +3 -3
  105. package/dist/{vue-ui-sparkgauge-C4EZKUcd.js → vue-ui-sparkgauge-CZpfBAP4.js} +3 -3
  106. package/dist/{vue-ui-sparkgauge-C8Yzul1-.cjs → vue-ui-sparkgauge-d-LTd2S_.cjs} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-CYCMk0Nn.js → vue-ui-sparkhistogram-0htrwNwY.js} +4 -4
  108. package/dist/{vue-ui-sparkhistogram-HUZeHvwQ.cjs → vue-ui-sparkhistogram-BkfhKPi2.cjs} +1 -1
  109. package/dist/vue-ui-sparkline-BBlg_5SH.js +359 -0
  110. package/dist/vue-ui-sparkline-ORHsW_3h.cjs +1 -0
  111. package/dist/{vue-ui-sparkstackbar-yntdZ_U1.js → vue-ui-sparkstackbar-B0hc7a5Y.js} +3 -3
  112. package/dist/{vue-ui-sparkstackbar-DtE-w92H.cjs → vue-ui-sparkstackbar-kWvsyt_R.cjs} +1 -1
  113. package/dist/{vue-ui-stackbar-7wKRXzJb.js → vue-ui-stackbar-CBB0xhoF.js} +10 -10
  114. package/dist/{vue-ui-stackbar-7edtVj-o.cjs → vue-ui-stackbar-n7e_yhY9.cjs} +1 -1
  115. package/dist/{vue-ui-strip-plot-B7RNUPFq.js → vue-ui-strip-plot-BxpUOCtS.js} +9 -9
  116. package/dist/{vue-ui-strip-plot-DnwkdcDH.cjs → vue-ui-strip-plot-ChempVMX.cjs} +1 -1
  117. package/dist/{vue-ui-table-D9nv-3WZ.js → vue-ui-table-6LeE9-Di.js} +1 -1
  118. package/dist/{vue-ui-table-CVZTOrVv.cjs → vue-ui-table-CiJxG7DF.cjs} +1 -1
  119. package/dist/{vue-ui-table-heatmap-CyoJgm-p.js → vue-ui-table-heatmap-BwFAqdF5.js} +4 -4
  120. package/dist/{vue-ui-table-heatmap-Ciq5iK60.cjs → vue-ui-table-heatmap-rO8vNnId.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-DMHBrCHg.cjs → vue-ui-table-sparkline-CkdPJpBy.cjs} +1 -1
  122. package/dist/{vue-ui-table-sparkline-BzBBbPlM.js → vue-ui-table-sparkline-D467Jh1F.js} +5 -5
  123. package/dist/{vue-ui-thermometer-CMwBVDKP.cjs → vue-ui-thermometer-BnmPU3GD.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-B7GO1JVB.js → vue-ui-thermometer-CvEudPLx.js} +5 -5
  125. package/dist/{vue-ui-timer-DOhULfFA.js → vue-ui-timer-BeBR3Quk.js} +4 -4
  126. package/dist/{vue-ui-timer-DL-jbhys.cjs → vue-ui-timer-CHIVe58Y.cjs} +1 -1
  127. package/dist/{vue-ui-tiremarks-CdSz4A3e.js → vue-ui-tiremarks-CAuwXXbq.js} +5 -5
  128. package/dist/{vue-ui-tiremarks-CKSWZEz6.cjs → vue-ui-tiremarks-lOirAxZ6.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-Bnf6Dwud.js → vue-ui-treemap-CUiOr_h_.js} +9 -9
  130. package/dist/{vue-ui-treemap-DuidfPhy.cjs → vue-ui-treemap-DHxxbiun.cjs} +1 -1
  131. package/dist/{vue-ui-vertical-bar-MKgSL3sf.cjs → vue-ui-vertical-bar--pPasMmy.cjs} +1 -1
  132. package/dist/{vue-ui-vertical-bar-CanIt-Gp.js → vue-ui-vertical-bar-ZWnyojw_.js} +9 -9
  133. package/dist/{vue-ui-waffle-BTqxJCqj.js → vue-ui-waffle-CSfAfoYA.js} +9 -9
  134. package/dist/{vue-ui-waffle-CaOODGGV.cjs → vue-ui-waffle-o3Ma4Ps3.cjs} +1 -1
  135. package/dist/{vue-ui-wheel-CGeoj8Je.js → vue-ui-wheel-BD-PZ7Oh.js} +5 -5
  136. package/dist/{vue-ui-wheel-CFwuHnTA.cjs → vue-ui-wheel-BxEO4n2n.cjs} +1 -1
  137. package/dist/{vue-ui-word-cloud-jTnL4pfH.js → vue-ui-word-cloud-B1AUYOjb.js} +7 -7
  138. package/dist/{vue-ui-word-cloud-aGr6Wv6n.cjs → vue-ui-word-cloud-CeSKTtaT.cjs} +1 -1
  139. package/dist/{vue-ui-xy-Oy6S6E9Z.js → vue-ui-xy-DK2WkNdd.js} +12 -12
  140. package/dist/{vue-ui-xy-DpqPRTcU.cjs → vue-ui-xy-DeEUEySp.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-D9QelGDC.js → vue-ui-xy-canvas-BBoqHWnZ.js} +10 -10
  142. package/dist/{vue-ui-xy-canvas--KPN7UHp.cjs → vue-ui-xy-canvas-BTMotEgF.cjs} +1 -1
  143. package/package.json +1 -1
  144. package/dist/index-CSbGUkq2.cjs +0 -4
  145. package/dist/vue-ui-sparkline-BDrgcGQT.cjs +0 -1
  146. package/dist/vue-ui-sparkline-CqaXadBL.js +0 -342
@@ -1,342 +0,0 @@
1
- import { computed as d, ref as w, onMounted as J, openBlock as s, createElementBlock as n, normalizeStyle as N, renderSlot as F, normalizeProps as K, guardReactiveProps as Q, createElementVNode as f, toDisplayString as G, createCommentVNode as y, unref as v, Fragment as P, renderList as z, createBlock as ee } from "vue";
2
- import { u as te, c as ae, t as le, o as ue, e as W, g as oe, s as I, R as se, S as ne, X as re, v as C, M as B, i as E, f as T } from "./index-Bbk73zTN.js";
3
- import { u as j } from "./useNestedProp-DyRlubve.js";
4
- import ie from "./vue-ui-skeleton-B5cqEJh5.js";
5
- import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const ve = ["id"], ce = ["xmlns", "viewBox"], ye = ["id"], he = ["stop-color"], fe = ["stop-color"], pe = ["id"], ge = ["stop-color"], me = ["stop-color"], ke = ["id"], be = ["stop-color"], xe = ["stop-color"], _e = { key: 0 }, we = ["d", "fill"], $e = ["d", "fill"], Le = ["d", "stroke", "stroke-width"], Ne = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ie = ["x", "y", "width", "height", "fill", "rx"], Ce = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Me = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Se = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ve = ["x", "y", "font-size", "font-weight", "fill"], Pe = ["x", "y", "height", "width", "onMouseenter", "onClick"], ze = {
7
- __name: "vue-ui-sparkline",
8
- props: {
9
- config: {
10
- type: Object,
11
- default() {
12
- return {};
13
- }
14
- },
15
- dataset: {
16
- type: Array,
17
- default() {
18
- return [];
19
- }
20
- },
21
- showInfo: {
22
- type: Boolean,
23
- default: !0
24
- },
25
- selectedIndex: {
26
- type: Number,
27
- default: void 0
28
- }
29
- },
30
- emits: ["hoverIndex", "selectDatapoint"],
31
- setup(b, { emit: M }) {
32
- const i = b, { vue_ui_sparkline: O } = te(), $ = d(() => !!i.dataset && i.dataset.length), p = w(ae()), e = d(() => {
33
- const t = j({
34
- userConfig: i.config,
35
- defaultConfig: O
36
- });
37
- return t.theme ? {
38
- ...j({
39
- userConfig: le.vue_ui_sparkline[t.theme] || i.config,
40
- defaultConfig: t
41
- })
42
- } : t;
43
- }), k = w(i.dataset.map((t) => e.value.style.animation.show ? {
44
- ...t,
45
- value: null
46
- } : {
47
- ...t,
48
- value: [void 0].includes(t.value) ? null : t.value
49
- }));
50
- J(() => {
51
- if (ue(i.dataset) ? W({
52
- componentName: "VueUiSparkline",
53
- type: "dataset"
54
- }) : i.dataset.forEach((t, o) => {
55
- oe({
56
- datasetObject: t,
57
- requiredAttributes: ["period", "value"]
58
- }).forEach((a) => {
59
- W({
60
- componentName: "VueUiSparkline",
61
- type: "datasetSerieAttribute",
62
- property: a,
63
- index: o
64
- });
65
- });
66
- }), e.value.style.animation.show && i.dataset.length > 1) {
67
- let a = function() {
68
- o < i.dataset.length ? (k.value.push(i.dataset[o]), setTimeout(() => {
69
- requestAnimationFrame(a);
70
- }, t)) : k.value = i.dataset, o += 1;
71
- };
72
- k.value = [];
73
- const t = e.value.style.animation.animationFrames / i.dataset.length;
74
- let o = 0;
75
- a();
76
- }
77
- });
78
- const h = w({
79
- height: 80,
80
- width: 500
81
- }), U = w(6), l = d(() => ({
82
- top: 12,
83
- left: 0,
84
- right: h.value.width,
85
- bottom: h.value.height - 3,
86
- start: i.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? h.value.width - e.value.style.chartWidth : 30,
87
- width: i.showInfo && e.value.style.dataLabel.show ? e.value.style.chartWidth : h.value.width - 30,
88
- height: h.value.height - 12
89
- })), S = d(() => Math.min(...k.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), X = d(() => Math.max(...k.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), x = d(() => {
90
- const t = S.value >= 0 ? 0 : S.value;
91
- return Math.abs(t);
92
- }), R = d(() => X.value + x.value + U.value), L = d(() => l.value.bottom - l.value.height * V(x.value));
93
- function V(t) {
94
- return t / R.value;
95
- }
96
- const g = d(() => i.dataset.length - 1), u = d(() => k.value.map((t, o) => {
97
- const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
98
- return {
99
- absoluteValue: a,
100
- period: t.period,
101
- plotValue: a + x.value,
102
- toMax: V(a + x.value),
103
- x: l.value.start + o * (l.value.width / (g.value + 1) > 30 ? 30 : l.value.width / (g.value + 1)),
104
- y: l.value.bottom - l.value.height * V(a + x.value),
105
- id: `plot_${p.value}_${o}`,
106
- color: _.value ? e.value.style.bar.color : e.value.style.area.useGradient ? I(e.value.style.line.color, 0.05 * (1 - o / g.value)) : e.value.style.line.color,
107
- width: l.value.width / (g.value + 1) > 30 ? 30 : l.value.width / (g.value + 1)
108
- };
109
- })), Z = d(() => {
110
- const t = { x: u.value[0].x, y: h.value.height - 6 }, o = { x: u.value[u.value.length - 1].x, y: h.value.height - 6 }, a = [];
111
- return u.value.forEach((r) => {
112
- a.push(`${r.x},${r.y} `);
113
- }), [t.x, t.y, ...a, o.x, o.y].toString();
114
- }), c = w(void 0);
115
- function q(t, o) {
116
- c.value = t, M("hoverIndex", { index: o });
117
- }
118
- function H() {
119
- c.value = void 0, M("hoverIndex", { index: void 0 });
120
- }
121
- const m = d(() => {
122
- if ($.value) {
123
- const t = u.value.map((a) => a.absoluteValue), o = t.reduce((a, r) => a + r, 0);
124
- return {
125
- latest: u.value[u.value.length - 1].absoluteValue,
126
- sum: o,
127
- average: o / u.value.length,
128
- median: se(t),
129
- trend: ne(u.value.map(({ x: a, y: r, absoluteValue: D }) => ({
130
- x: a,
131
- y: r,
132
- value: D
133
- }))).trend
134
- };
135
- } else
136
- return {
137
- latest: null,
138
- sum: null,
139
- average: null,
140
- median: null,
141
- trend: null
142
- };
143
- }), A = d(() => $.value ? e.value.style.dataLabel.valueType === "latest" ? m.value.latest : e.value.style.dataLabel.valueType === "sum" ? m.value.sum : e.value.style.dataLabel.valueType === "average" ? m.value.average : 0 : 0), _ = d(() => e.value.type && e.value.type === "bar");
144
- function Y(t, o) {
145
- M("selectDatapoint", { datapoint: t, index: o });
146
- }
147
- return (t, o) => (s(), n("div", {
148
- class: "vue-ui-sparkline",
149
- id: p.value,
150
- style: N(`width:100%;font-family:${e.value.style.fontFamily}`)
151
- }, [
152
- F(t.$slots, "before", K(Q({
153
- selected: c.value,
154
- latest: m.value.latest,
155
- sum: m.value.sum,
156
- average: m.value.average,
157
- median: m.value.median,
158
- trend: m.value.trend
159
- })), void 0, !0),
160
- e.value.style.title.show && b.showInfo ? (s(), n("div", {
161
- key: 0,
162
- class: "vue-ui-sparkline-title",
163
- 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"};`)
164
- }, [
165
- f("span", {
166
- style: N(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
167
- }, G(c.value ? c.value.period : e.value.style.title.text), 5)
168
- ], 4)) : y("", !0),
169
- $.value ? (s(), n("svg", {
170
- key: 1,
171
- xmlns: v(re),
172
- viewBox: `0 0 ${h.value.width} ${h.value.height}`,
173
- style: N(`background:${e.value.style.backgroundColor};overflow:visible`)
174
- }, [
175
- f("defs", null, [
176
- f("linearGradient", {
177
- x1: "0%",
178
- y1: "0%",
179
- x2: "100%",
180
- y2: "0%",
181
- id: `sparkline_gradient_${p.value}`
182
- }, [
183
- f("stop", {
184
- offset: "0%",
185
- "stop-color": `${v(I)(e.value.style.area.color, 0.05)}${v(C)[e.value.style.area.opacity]}`
186
- }, null, 8, he),
187
- f("stop", {
188
- offset: "100%",
189
- "stop-color": e.value.style.area.color + v(C)[e.value.style.area.opacity]
190
- }, null, 8, fe)
191
- ], 8, ye),
192
- f("linearGradient", {
193
- x2: "0%",
194
- y2: "100%",
195
- id: `sparkline_bar_gradient_pos_${p.value}`
196
- }, [
197
- f("stop", {
198
- offset: "0%",
199
- "stop-color": e.value.style.bar.color
200
- }, null, 8, ge),
201
- f("stop", {
202
- offset: "100%",
203
- "stop-color": `${v(I)(e.value.style.bar.color, 0.05)}`
204
- }, null, 8, me)
205
- ], 8, pe),
206
- f("linearGradient", {
207
- x2: "0%",
208
- y2: "100%",
209
- id: `sparkline_bar_gradient_neg_${p.value}`
210
- }, [
211
- f("stop", {
212
- offset: "0%",
213
- "stop-color": `${v(I)(e.value.style.bar.color, 0.05)}`
214
- }, null, 8, be),
215
- f("stop", {
216
- offset: "100%",
217
- "stop-color": e.value.style.bar.color
218
- }, null, 8, xe)
219
- ], 8, ke)
220
- ]),
221
- e.value.style.area.show && !_.value && u.value[0] ? (s(), n("g", _e, [
222
- e.value.style.line.smooth ? (s(), n("path", {
223
- key: 0,
224
- d: `M ${u.value[0].x},${l.value.bottom} ${v(B)(u.value)} L ${u.value.at(-1).x},${l.value.bottom} Z`,
225
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : `${e.value.style.area.color}${v(C)[e.value.style.area.opacity]}`
226
- }, null, 8, we)) : (s(), n("path", {
227
- key: 1,
228
- d: `M${Z.value}Z`,
229
- fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : `${e.value.style.area.color}${v(C)[e.value.style.area.opacity]}`
230
- }, null, 8, $e))
231
- ])) : y("", !0),
232
- e.value.style.line.smooth && !_.value ? (s(), n("path", {
233
- key: 1,
234
- d: `M ${v(B)(u.value)}`,
235
- stroke: e.value.style.line.color,
236
- fill: "none",
237
- "stroke-width": e.value.style.line.strokeWidth,
238
- "stroke-linecap": "round"
239
- }, null, 8, Le)) : y("", !0),
240
- (s(!0), n(P, null, z(u.value, (a, r) => (s(), n("g", null, [
241
- r < u.value.length - 1 && !e.value.style.line.smooth && !_.value ? (s(), n("line", {
242
- key: 0,
243
- x1: a.x,
244
- x2: u.value[r + 1].x,
245
- y1: a.y,
246
- y2: u.value[r + 1].y,
247
- stroke: a.color,
248
- "stroke-width": e.value.style.line.strokeWidth,
249
- "stroke-linecap": "round",
250
- "stroke-linejoin": "round",
251
- "shape-rendering": "geometricPrecision"
252
- }, null, 8, Ne)) : y("", !0),
253
- _.value ? (s(), n("rect", {
254
- key: 1,
255
- x: a.x - a.width / 2,
256
- y: a.absoluteValue > 0 ? a.y : L.value,
257
- width: a.width,
258
- height: Math.abs(a.y - L.value),
259
- fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
260
- rx: e.value.style.bar.borderRadius
261
- }, null, 8, Ie)) : y("", !0),
262
- e.value.style.verticalIndicator.show && (c.value && a.id === c.value.id || b.selectedIndex === r) ? (s(), n("line", {
263
- key: 2,
264
- x1: a.x,
265
- x2: a.x,
266
- y1: l.value.top - 6,
267
- y2: l.value.bottom,
268
- stroke: e.value.style.verticalIndicator.color || a.color,
269
- "stroke-width": e.value.style.verticalIndicator.strokeWidth,
270
- "stroke-linecap": "round",
271
- "stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
272
- }, null, 8, Ce)) : y("", !0)
273
- ]))), 256)),
274
- S.value < 0 ? (s(), n("line", {
275
- key: 2,
276
- x1: l.value.start,
277
- x2: l.value.start + l.value.width - 16,
278
- y1: L.value,
279
- y2: L.value,
280
- stroke: e.value.style.zeroLine.color,
281
- "stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
282
- "stroke-width": e.value.style.zeroLine.strokeWidth,
283
- "stroke-linecap": "round"
284
- }, null, 8, Me)) : y("", !0),
285
- e.value.style.plot.show ? (s(!0), n(P, { key: 3 }, z(u.value, (a, r) => (s(), n("g", null, [
286
- c.value && a.id === c.value.id || b.selectedIndex === r ? (s(), n("circle", {
287
- key: 0,
288
- cx: a.x,
289
- cy: a.y,
290
- r: e.value.style.plot.radius,
291
- fill: a.color,
292
- stroke: e.value.style.plot.stroke,
293
- "stroke-width": e.value.style.plot.strokeWidth
294
- }, null, 8, Se)) : y("", !0)
295
- ]))), 256)) : y("", !0),
296
- b.showInfo && e.value.style.dataLabel.show ? (s(), n("text", {
297
- key: 4,
298
- x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : l.value.width + 12 + e.value.style.dataLabel.offsetX,
299
- y: h.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
300
- "font-size": e.value.style.dataLabel.fontSize,
301
- "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
302
- fill: e.value.style.dataLabel.color
303
- }, G(c.value ? v(E)(
304
- e.value.style.dataLabel.formatter,
305
- c.value.absoluteValue,
306
- v(T)({ p: e.value.style.dataLabel.prefix, v: c.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
307
- { datapoint: c.value }
308
- ) : v(E)(
309
- e.value.style.dataLabel.formatter,
310
- A.value,
311
- v(T)({ p: e.value.style.dataLabel.prefix, v: A.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
312
- )), 9, Ve)) : y("", !0),
313
- (s(!0), n(P, null, z(u.value, (a, r) => (s(), n("rect", {
314
- x: a.x - (l.value.width / (g.value + 1) > 30 ? 30 : l.value.width / (g.value + 1)) / 2,
315
- y: l.value.top - 6,
316
- height: l.value.height + 6,
317
- width: l.value.width / (g.value + 1) > 30 ? 30 : l.value.width / (g.value + 1),
318
- fill: "transparent",
319
- onMouseenter: (D) => q(a, r),
320
- onMouseleave: H,
321
- onClick: () => Y(a, r)
322
- }, null, 40, Pe))), 256)),
323
- F(t.$slots, "svg", { svg: h.value }, void 0, !0)
324
- ], 12, ce)) : y("", !0),
325
- $.value ? y("", !0) : (s(), ee(ie, {
326
- key: 2,
327
- config: {
328
- type: "sparkline",
329
- style: {
330
- backgroundColor: e.value.style.backgroundColor,
331
- sparkline: {
332
- color: "#CCCCCC"
333
- }
334
- }
335
- }
336
- }, null, 8, ["config"]))
337
- ], 12, ve));
338
- }
339
- }, Be = /* @__PURE__ */ de(ze, [["__scopeId", "data-v-71dd1d7d"]]);
340
- export {
341
- Be as default
342
- };