vue-data-ui 3.0.0-next.62 → 3.0.0-next.63

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 (93) hide show
  1. package/dist/{Arrow-vPQ5umgl.js → Arrow-BGKdsLII.js} +1 -1
  2. package/dist/{BaseDraggableDialog-rmweWafM.js → BaseDraggableDialog-gVVf8X_B.js} +2 -2
  3. package/dist/{BaseIcon-BdOuqa-n.js → BaseIcon-DNo7kjXj.js} +1 -1
  4. package/dist/{ColorPicker-BJYD-Akc.js → ColorPicker-vBh0CR5P.js} +2 -2
  5. package/dist/{DataTable-DKhkUltp.js → DataTable-DS3KWyd9.js} +2 -2
  6. package/dist/{Legend-DJVidRKZ.js → Legend-B6SFVKMo.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BO1MTyPj.js → NonSvgPenAndPaper-BS2khXRd.js} +3 -3
  8. package/dist/{PackageVersion-CvXTVTaQ.js → PackageVersion-DSFdazAW.js} +1 -1
  9. package/dist/{PenAndPaper-B_AMsItI.js → PenAndPaper-CB61YgV9.js} +3 -3
  10. package/dist/{Shape-CVE1tn78.js → Shape-4rbQQ_12.js} +1 -1
  11. package/dist/{Slicer-Bu8DjZuX.js → Slicer-BYPUhbns.js} +2 -2
  12. package/dist/{SparkTooltip-CZVDoHxg.js → SparkTooltip-CcYxnK-3.js} +1 -1
  13. package/dist/{Title-Cr_usVXc.js → Title-5i51sn5z.js} +1 -1
  14. package/dist/{Tooltip-7jDTalyv.js → Tooltip-Ccrc8V99.js} +1 -1
  15. package/dist/{UserOptions-UTvI0Q98.js → UserOptions-B3sujtRb.js} +2 -2
  16. package/dist/{dom-to-png-ONrUYTRb.js → dom-to-png-CBszweF6.js} +1 -1
  17. package/dist/{img-iMtnfYdI.js → img-DGl0_Nzz.js} +1 -1
  18. package/dist/{index-CwGyyfTA.js → index-jlnByA4k.js} +9 -1
  19. package/dist/{pdf-DiMYy8s9.js → pdf-BHzrjI_S.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +5 -0
  22. package/dist/types/vue-data-ui.d.ts +5 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CqI-y0RH.js → useAutoSizeLabelsInsideViewbox-Btmy72IJ.js} +1 -1
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/{useNestedProp-Dd5rDkqs.js → useNestedProp-69PJWTUX.js} +1 -1
  26. package/dist/{usePrinter-Ctvv8qBg.js → usePrinter-CJSwPpxV.js} +2 -2
  27. package/dist/{vue-data-ui-DwvF4C9M.js → vue-data-ui-5hHAwcR8.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/{vue-ui-3d-bar-zgyRNuSO.js → vue-ui-3d-bar-jcGPVz03.js} +6 -6
  30. package/dist/{vue-ui-accordion-5YUMPNG1.js → vue-ui-accordion-CtOEIleg.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-DW6p9iWS.js → vue-ui-age-pyramid-s246qBP8.js} +6 -6
  32. package/dist/{vue-ui-annotator-C2CMEveI.js → vue-ui-annotator-Bi3ndTdh.js} +2 -2
  33. package/dist/{vue-ui-bullet-I1UZAw0O.js → vue-ui-bullet-Ly8acZ65.js} +7 -7
  34. package/dist/{vue-ui-candlestick-N2rX18KX.js → vue-ui-candlestick-Dwy-2H2Q.js} +7 -7
  35. package/dist/{vue-ui-carousel-table-CXe6ghc3.js → vue-ui-carousel-table-ynesSu18.js} +4 -4
  36. package/dist/{vue-ui-chestnut-Dkeqv0lM.js → vue-ui-chestnut-DpXc1djY.js} +5 -5
  37. package/dist/{vue-ui-chord-Dp_n9sP9.js → vue-ui-chord-DXnK1f_K.js} +8 -8
  38. package/dist/{vue-ui-circle-pack-DrPM1UXc.js → vue-ui-circle-pack-BOt9llcy.js} +6 -6
  39. package/dist/{vue-ui-cursor-BcS6aiX1.js → vue-ui-cursor-DnJIyien.js} +2 -2
  40. package/dist/{vue-ui-dashboard-BcyCNmVV.js → vue-ui-dashboard-Cbz4dOIJ.js} +62 -62
  41. package/dist/{vue-ui-digits-BvNRrVgl.js → vue-ui-digits-CaiStt5K.js} +2 -2
  42. package/dist/{vue-ui-donut-Rvu6m-aE.js → vue-ui-donut-DzsorCa2.js} +8 -8
  43. package/dist/{vue-ui-donut-evolution-D2ZcgYhJ.js → vue-ui-donut-evolution-Cn-2v5OQ.js} +8 -8
  44. package/dist/{vue-ui-dumbbell-CvYVCA6I.js → vue-ui-dumbbell-LG-iNxUc.js} +7 -7
  45. package/dist/{vue-ui-flow-_6zAZMI6.js → vue-ui-flow-D4Mvh3N4.js} +7 -7
  46. package/dist/{vue-ui-funnel-CIEJVq4d.js → vue-ui-funnel-B9bd8Qdo.js} +6 -6
  47. package/dist/{vue-ui-galaxy-DcZ04iAF.js → vue-ui-galaxy-CFGFpWFJ.js} +5 -5
  48. package/dist/{vue-ui-gauge-C5j1wKcj.js → vue-ui-gauge-BoM3ea8S.js} +7 -7
  49. package/dist/{vue-ui-gizmo-BD9EY4bZ.js → vue-ui-gizmo-Bz1WJOzC.js} +3 -3
  50. package/dist/{vue-ui-heatmap-DDZ8g5dM.js → vue-ui-heatmap-DTlVM_Rg.js} +7 -7
  51. package/dist/{vue-ui-history-plot-C7ZRZHzl.js → vue-ui-history-plot-z-ycrjqs.js} +7 -7
  52. package/dist/{vue-ui-kpi-DZ5FITOL.js → vue-ui-kpi-CWGMNCQT.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-BaQpwyu-.js → vue-ui-mini-loader-D-YAgXQh.js} +2 -2
  54. package/dist/{vue-ui-molecule-B8Ob6p-h.js → vue-ui-molecule-C8RnofGI.js} +5 -5
  55. package/dist/{vue-ui-mood-radar-BrTY3gyR.js → vue-ui-mood-radar-CTTAiDCG.js} +7 -7
  56. package/dist/{vue-ui-nested-donuts-yN_txLmU.js → vue-ui-nested-donuts-BJ_MVOPC.js} +9 -9
  57. package/dist/{vue-ui-onion-C613Zf1i.js → vue-ui-onion-CHGIIpnQ.js} +8 -8
  58. package/dist/{vue-ui-parallel-coordinate-plot-B-aXg4S4.js → vue-ui-parallel-coordinate-plot-BZtohM97.js} +8 -8
  59. package/dist/{vue-ui-quadrant-C2AeZvmZ.js → vue-ui-quadrant-D3Voh1B3.js} +8 -8
  60. package/dist/{vue-ui-quick-chart-CkE6ybPo.js → vue-ui-quick-chart-BWf2yNU3.js} +6 -6
  61. package/dist/{vue-ui-radar-BbiqR92L.js → vue-ui-radar-DG2V_zsj.js} +7 -7
  62. package/dist/{vue-ui-rating-CbRUCAxl.js → vue-ui-rating-BX3DRGia.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-vWsjRm3W.js → vue-ui-relation-circle-XCU4OM_5.js} +6 -6
  64. package/dist/{vue-ui-ridgeline-CaiytuOs.js → vue-ui-ridgeline-b1zJ9JMy.js} +8 -8
  65. package/dist/{vue-ui-rings-AFUuMvpu.js → vue-ui-rings-DOyQUS4a.js} +8 -8
  66. package/dist/{vue-ui-scatter-Dcb9tLMu.js → vue-ui-scatter-D9LdWCZd.js} +8 -8
  67. package/dist/{vue-ui-skeleton-B1SFKW_l.js → vue-ui-skeleton-Cv6EVbCt.js} +3 -3
  68. package/dist/{vue-ui-smiley-Ba-ctrns.js → vue-ui-smiley-C2mnVQu-.js} +2 -2
  69. package/dist/vue-ui-spark-trend-gbAr_BYc.js +315 -0
  70. package/dist/{vue-ui-sparkbar-D8-HNaN_.js → vue-ui-sparkbar-BPU9JtvX.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-Dfnr6Bjc.js → vue-ui-sparkgauge-B1smUA41.js} +3 -3
  72. package/dist/vue-ui-sparkhistogram-CZTxCQgR.js +380 -0
  73. package/dist/{vue-ui-sparkline-BA_5ICer.js → vue-ui-sparkline-jChhbwmi.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BQkH5ltm.js → vue-ui-sparkstackbar-Dt7wTy19.js} +3 -3
  75. package/dist/{vue-ui-stackbar-C7iPaQOn.js → vue-ui-stackbar-CGgA6-n6.js} +9 -9
  76. package/dist/{vue-ui-strip-plot-CnfeJeRi.js → vue-ui-strip-plot-BtCiUFRZ.js} +7 -7
  77. package/dist/{vue-ui-table-Dz6RLYoS.js → vue-ui-table-DzWPHCpf.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-Cbgogx6N.js → vue-ui-table-heatmap-_FhnVCOZ.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-CLEfp8d2.js → vue-ui-table-sparkline-CYsSg1z9.js} +4 -4
  80. package/dist/{vue-ui-thermometer-CzNFOqrV.js → vue-ui-thermometer-dSqhossO.js} +7 -7
  81. package/dist/{vue-ui-timer-CI7VUX-B.js → vue-ui-timer-DyIsQAqp.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-C0QDwzEt.js → vue-ui-tiremarks-BEqXVq_9.js} +6 -6
  83. package/dist/{vue-ui-treemap-D-5MOqu3.js → vue-ui-treemap-khKWfnVU.js} +8 -8
  84. package/dist/{vue-ui-vertical-bar-sZjQranC.js → vue-ui-vertical-bar-CXZGkJh7.js} +9 -9
  85. package/dist/{vue-ui-waffle-6zNYC1rh.js → vue-ui-waffle-DrHd1WXy.js} +8 -8
  86. package/dist/{vue-ui-wheel-kx79XCaH.js → vue-ui-wheel-OqQd6Weo.js} +6 -6
  87. package/dist/{vue-ui-word-cloud-DI8bEQrN.js → vue-ui-word-cloud-CG4W1l66.js} +6 -6
  88. package/dist/{vue-ui-world-Ba2tdGRe.js → vue-ui-world-BBrwRZF-.js} +6 -6
  89. package/dist/{vue-ui-xy-TM3uzoN-.js → vue-ui-xy-CqeSePUr.js} +9 -9
  90. package/dist/{vue-ui-xy-canvas-DFqIhqzJ.js → vue-ui-xy-canvas-BZhZZQae.js} +8 -8
  91. package/package.json +1 -1
  92. package/dist/vue-ui-spark-trend-BshA2mRL.js +0 -291
  93. package/dist/vue-ui-sparkhistogram-BMtpx_0l.js +0 -444
@@ -0,0 +1,315 @@
1
+ import { defineAsyncComponent as de, ref as f, toRefs as fe, computed as u, watch as X, onMounted as ce, createElementBlock as o, openBlock as s, normalizeStyle as he, createCommentVNode as c, createBlock as ye, unref as r, createVNode as pe, createElementVNode as S, renderSlot as J, toDisplayString as K } from "vue";
2
+ import { u as ge, c as me, t as ke, b as be, a5 as D, o as Q, f as _e, h as y, a6 as we, X as $e, s as O, V as Y, i as ee, k as xe } from "./index-jlnByA4k.js";
3
+ import { t as Le, u as Ce } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ae, B as Te } from "./useLoading-Bt5Doa8m.js";
5
+ import { u as Se } from "./useFitSvgText-2crs6Fv5.js";
6
+ import { u as te } from "./useNestedProp-69PJWTUX.js";
7
+ import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const ze = ["id"], Me = ["xmlns", "viewBox"], Fe = ["width", "height"], Ie = ["id"], Ee = ["stop-color"], Ve = ["stop-color"], je = { key: 1 }, Be = ["d", "fill"], De = ["d", "fill"], Oe = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Ge = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Re = ["d"], Ze = ["fill", "d"], We = ["x", "y", "width", "height"], He = ["x", "y", "fill", "font-size", "font-weight"], Ue = ["stroke", "cx", "cy", "fill"], qe = ["x", "y", "font-size", "fill", "font-weight"], Pe = {
9
+ __name: "vue-ui-spark-trend",
10
+ props: {
11
+ config: {
12
+ type: Object,
13
+ default() {
14
+ return {};
15
+ }
16
+ },
17
+ dataset: {
18
+ type: Array,
19
+ default() {
20
+ return [];
21
+ }
22
+ }
23
+ },
24
+ setup(le) {
25
+ const ae = de(() => import("./PackageVersion-DSFdazAW.js")), { vue_ui_spark_trend: ne } = ge(), p = le, N = f(null), G = f(null), R = f(null), _ = f(null), x = f(null), L = f(me()), e = f(z()), { loading: g, FINAL_DATASET: w, manualLoading: Z } = Ae({
26
+ ...fe(p),
27
+ FINAL_CONFIG: e,
28
+ prepareConfig: z,
29
+ skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233],
30
+ skeletonConfig: ke({
31
+ defaultConfig: e.value,
32
+ userConfig: {
33
+ style: {
34
+ animation: { show: !1 },
35
+ backgroundColor: "#99999930",
36
+ line: {
37
+ stroke: "#6A6A6A",
38
+ useColorTrend: !1
39
+ },
40
+ dataLabel: { show: !1, useColorTrend: !1, color: "#6A6A6A" }
41
+ }
42
+ }
43
+ })
44
+ });
45
+ function z() {
46
+ const t = te({
47
+ userConfig: p.config,
48
+ defaultConfig: ne
49
+ });
50
+ return t.theme ? {
51
+ ...te({
52
+ userConfig: be.vue_ui_spark_trend[t.theme] || p.config,
53
+ defaultConfig: t
54
+ })
55
+ } : t;
56
+ }
57
+ const m = u(() => D({
58
+ data: w.value,
59
+ threshold: e.value.downsample.threshold
60
+ }));
61
+ X(() => p.config, (t) => {
62
+ e.value = z(), I.value = e.value.style.width, k.value = e.value.style.height, H();
63
+ }, { deep: !0 }), X(() => w.value, (t) => {
64
+ $.value = D({
65
+ data: w.value,
66
+ threshold: e.value.downsample.threshold
67
+ }).map((a) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(a) ? null : a), W(), j(".vue-ui-sparktrend-progress-label", 6);
68
+ }, { deep: !0 });
69
+ function M(t) {
70
+ return t.map((a) => y(a));
71
+ }
72
+ const $ = f(D({
73
+ data: w.value,
74
+ threshold: e.value.downsample.threshold
75
+ }).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), C = f(!1), F = f(null);
76
+ function W() {
77
+ let a = 1e3 / e.value.style.animation.animationFrames, d = performance.now();
78
+ if (!g.value && e.value.style.animation.show && e.value.style.animation.animationFrames && w.value.length > 1) {
79
+ let B = function() {
80
+ C.value = !0;
81
+ let q = performance.now(), P = q - d;
82
+ P > a ? (d = q - P % a, b < m.value.length ? ($.value.push(m.value[b]), b += 1, F.value = requestAnimationFrame(B)) : (cancelAnimationFrame(F.value), $.value = M(m.value), C.value = !1, j(".vue-ui-sparktrend-progress-label", 6))) : F.value = requestAnimationFrame(B);
83
+ };
84
+ $.value = [];
85
+ let b = 0;
86
+ B();
87
+ }
88
+ }
89
+ ce(() => {
90
+ H();
91
+ });
92
+ const ue = u(() => e.value.debug);
93
+ function H() {
94
+ if (Q(p.dataset) && (_e({
95
+ componentName: "VueUiSparkTrend",
96
+ type: "dataset",
97
+ debug: ue.value
98
+ }), Z.value = !0), Q(p.dataset) || (Z.value = !1), e.value.responsive) {
99
+ const t = Le(() => {
100
+ const { width: a, height: d } = Ce({
101
+ chart: N.value,
102
+ source: R.value
103
+ });
104
+ requestAnimationFrame(() => {
105
+ I.value = a, k.value = d;
106
+ });
107
+ });
108
+ _.value && (x.value && _.value.unobserve(x.value), _.value.disconnect()), _.value = new ResizeObserver(t), x.value = N.value.parentNode, _.value.observe(x.value);
109
+ }
110
+ W(), j(".vue-ui-sparktrend-progress-label", 6);
111
+ }
112
+ const I = f(e.value.style.width), k = f(e.value.style.height), i = u(() => ({
113
+ height: k.value,
114
+ width: I.value
115
+ })), n = u(() => ({
116
+ top: e.value.style.padding.top,
117
+ left: e.value.style.padding.left,
118
+ right: i.value.width - e.value.style.padding.right,
119
+ bottom: i.value.height - e.value.style.padding.bottom,
120
+ height: i.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
121
+ width: i.value.width - (e.value.style.padding.left + e.value.style.padding.right)
122
+ })), E = u(() => {
123
+ const t = M(m.value);
124
+ return {
125
+ max: Math.max(...t.map((a) => y(a))),
126
+ min: Math.min(...t.map((a) => y(a)))
127
+ };
128
+ }), A = u(() => {
129
+ const t = E.value.min >= 0 ? 0 : E.value.min;
130
+ return Math.abs(t);
131
+ }), se = u(() => E.value.max + A.value);
132
+ function U(t) {
133
+ return t / se.value;
134
+ }
135
+ const oe = u(() => m.value.length), l = u(() => $.value.map((t, a) => {
136
+ const d = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
137
+ return {
138
+ value: y(t),
139
+ absoluteValue: y(d),
140
+ plotValue: y(d + A.value),
141
+ toMax: U(d + A.value),
142
+ x: n.value.left + y(a * (n.value.width / (oe.value - 1))) - e.value.style.padding.right,
143
+ y: n.value.bottom - y(n.value.height * U(d + A.value))
144
+ };
145
+ })), T = u(() => {
146
+ const t = M(m.value);
147
+ return e.value.style.trendLabel.trendType === "global" ? we(t) : e.value.style.trendLabel.trendType === "n-1" && t.length > 1 ? (t.at(-1) / t.at(-2) - 1) * 100 : e.value.style.trendLabel.trendType === "lastToFirst" ? (t.at(-1) / t[0] - 1) * 100 : 0;
148
+ }), V = u(() => C.value || T.value === 0 ? "neutral" : T.value > 0 ? "positive" : "negative"), h = u(() => e.value.style.arrow.colors[V.value]), re = u(() => {
149
+ const t = { x: l.value[0].x, y: i.value.height - 6 }, a = { x: l.value[l.value.length - 1].x, y: i.value.height - 6 }, d = [];
150
+ return l.value.forEach((b) => {
151
+ d.push(`${b.x},${b.y} `);
152
+ }), [t.x, t.y, ...d, a.x, a.y].toString();
153
+ }), ie = u(() => {
154
+ let t = [];
155
+ return l.value.forEach((a) => {
156
+ t.push(`${a.x},${a.y} `);
157
+ }), `M ${t.toString()}`;
158
+ }), v = u(() => k.value / 2 - e.value.style.trendLabel.fontSize), ve = u(() => n.value.left * 0.8), { fitText: j } = Se({
159
+ svgRef: G,
160
+ unitWidth: ve,
161
+ fontSize: e.value.style.trendLabel.fontSize
162
+ });
163
+ return (t, a) => (s(), o("div", {
164
+ ref_key: "sparkTrendChart",
165
+ ref: N,
166
+ class: "vue-ui-spark-trend",
167
+ id: L.value,
168
+ style: he(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
169
+ }, [
170
+ (s(), o("svg", {
171
+ ref_key: "svgRef",
172
+ ref: G,
173
+ xmlns: r($e),
174
+ viewBox: `0 0 ${i.value.width} ${i.value.height}`,
175
+ style: "width:100%;background:transparent;overflow:visible"
176
+ }, [
177
+ pe(r(ae)),
178
+ t.$slots["chart-background"] ? (s(), o("foreignObject", {
179
+ key: 0,
180
+ x: 0,
181
+ y: 0,
182
+ width: i.value.width <= 0 ? 10 : i.value.width,
183
+ height: i.value.height <= 0 ? 10 : i.value.height,
184
+ style: {
185
+ pointerEvents: "none"
186
+ }
187
+ }, [
188
+ J(t.$slots, "chart-background", {}, void 0, !0)
189
+ ], 8, Fe)) : c("", !0),
190
+ S("defs", null, [
191
+ S("linearGradient", {
192
+ x1: "0%",
193
+ y1: "0%",
194
+ x2: "0%",
195
+ y2: "100%",
196
+ id: `pill_gradient_${L.value}`
197
+ }, [
198
+ S("stop", {
199
+ offset: "0%",
200
+ "stop-color": r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity)
201
+ }, null, 8, Ee),
202
+ S("stop", {
203
+ offset: "100%",
204
+ "stop-color": e.value.style.backgroundColor
205
+ }, null, 8, Ve)
206
+ ], 8, Ie)
207
+ ]),
208
+ e.value.style.area.show && l.value[0] ? (s(), o("g", je, [
209
+ e.value.style.line.smooth ? (s(), o("path", {
210
+ key: 0,
211
+ d: `M ${l.value[0].x},${n.value.bottom} ${r(Y)(l.value)} L ${l.value.at(-1).x},${n.value.bottom} Z`,
212
+ fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity),
213
+ stroke: "none"
214
+ }, null, 8, Be)) : (s(), o("path", {
215
+ key: 1,
216
+ d: `M${re.value}Z`,
217
+ fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity),
218
+ stroke: "none"
219
+ }, null, 8, De))
220
+ ])) : c("", !0),
221
+ e.value.style.line.smooth && l.value.length ? (s(), o("path", {
222
+ key: 2,
223
+ d: `M ${r(Y)(l.value)}`,
224
+ stroke: e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke,
225
+ fill: "none",
226
+ "stroke-width": e.value.style.line.strokeWidth,
227
+ "stroke-linecap": e.value.style.line.strokeLinecap,
228
+ "stroke-linejoin": e.value.style.line.strokeLinejoin
229
+ }, null, 8, Oe)) : c("", !0),
230
+ !e.value.style.line.smooth && l.value.length ? (s(), o("path", {
231
+ key: 3,
232
+ d: ie.value,
233
+ stroke: e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke,
234
+ fill: "none",
235
+ "stroke-width": e.value.style.line.strokeWidth,
236
+ "stroke-linecap": e.value.style.line.strokeLinecap,
237
+ "stroke-linejoin": e.value.style.line.strokeLinejoin
238
+ }, null, 8, Ge)) : c("", !0),
239
+ r(g) ? (s(), o("path", {
240
+ key: 4,
241
+ fill: "#6A6A6A",
242
+ d: `M ${n.value.left / 2 + 6}, ${v.value + 7} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 14} Z`
243
+ }, null, 8, Re)) : (s(), o("path", {
244
+ key: 5,
245
+ fill: h.value,
246
+ d: V.value === "positive" ? `M ${n.value.left / 2}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 12} ${n.value.left / 2 + 7}, ${v.value + 12} Z` : V.value === "negative" ? `M ${n.value.left / 2}, ${v.value + 12} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 + 7}, ${v.value} Z` : `M ${n.value.left / 2 + 6}, ${v.value + 7} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 14} Z`
247
+ }, null, 8, Ze)),
248
+ r(g) ? (s(), o("rect", {
249
+ key: 6,
250
+ x: n.value.left / 2 - e.value.style.trendLabel.fontSize - 2,
251
+ y: k.value / 2 + e.value.style.trendLabel.fontSize - 2,
252
+ width: e.value.style.trendLabel.fontSize * 2,
253
+ height: e.value.style.trendLabel.fontSize,
254
+ fill: "#6A6A6A80",
255
+ rx: "3"
256
+ }, null, 8, We)) : c("", !0),
257
+ !C.value && !r(g) ? (s(), o("text", {
258
+ key: 7,
259
+ class: "vue-ui-sparktrend-progress-label",
260
+ x: n.value.left / 2,
261
+ y: k.value / 2 + e.value.style.trendLabel.fontSize * 2,
262
+ "text-anchor": "middle",
263
+ fill: e.value.style.trendLabel.useColorTrend ? h.value : e.value.style.trendLabel.color,
264
+ "font-size": e.value.style.trendLabel.fontSize,
265
+ "font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
266
+ }, K(r(ee)({
267
+ p: T.value > 0 ? "+" : "",
268
+ v: T.value,
269
+ s: "%",
270
+ r: e.value.style.trendLabel.rounding
271
+ })), 9, He)) : c("", !0),
272
+ l.value.length && l.value.at(-1).x !== void 0 ? (s(), o("circle", {
273
+ key: 8,
274
+ stroke: e.value.style.backgroundColor,
275
+ "stroke-width": 2,
276
+ cx: l.value.at(-1).x,
277
+ cy: l.value.at(-1).y,
278
+ r: 4,
279
+ fill: r(g) ? "#6A6A6A" : h.value
280
+ }, null, 8, Ue)) : c("", !0),
281
+ l.value.length && l.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (s(), o("text", {
282
+ key: 9,
283
+ "text-anchor": "middle",
284
+ x: l.value.at(-1).x,
285
+ y: l.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
286
+ "font-size": e.value.style.dataLabel.fontSize,
287
+ fill: e.value.style.dataLabel.useColorTrend ? h.value : e.value.style.dataLabel.color,
288
+ "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
289
+ }, K(r(xe)(
290
+ e.value.style.dataLabel.formatter,
291
+ l.value.at(-1).value,
292
+ r(ee)({
293
+ p: e.value.style.dataLabel.prefix,
294
+ v: l.value.at(-1).value,
295
+ s: e.value.style.dataLabel.suffix,
296
+ r: e.value.style.dataLabel.rounding
297
+ }),
298
+ { datapoint: l.value.at(-1) }
299
+ )), 9, qe)) : c("", !0)
300
+ ], 8, Me)),
301
+ t.$slots.source ? (s(), o("div", {
302
+ key: 0,
303
+ ref_key: "source",
304
+ ref: R,
305
+ dir: "auto"
306
+ }, [
307
+ J(t.$slots, "source", {}, void 0, !0)
308
+ ], 512)) : c("", !0),
309
+ r(g) ? (s(), ye(Te, { key: 1 })) : c("", !0)
310
+ ], 12, ze));
311
+ }
312
+ }, lt = /* @__PURE__ */ Ne(Pe, [["__scopeId", "data-v-7034e800"]]);
313
+ export {
314
+ lt as default
315
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as Z, useSlots as ee, onMounted as B, ref as x, toRefs as te, computed as w, watch as E, nextTick as le, createElementBlock as i, openBlock as n, normalizeStyle as d, unref as o, renderSlot as D, createCommentVNode as c, createBlock as ae, normalizeProps as oe, mergeProps as M, createElementVNode as v, toDisplayString as y, Fragment as P, renderList as se, createVNode as ne } from "vue";
2
- import { u as ue, c as ie, t as re, a as ve, p as C, b as de, d as ce, o as pe, f as V, g as fe, e as ye, s as I, k as _, i as A, X as ge, x as me } from "./index-CwGyyfTA.js";
3
- import { u as O } from "./useNestedProp-Dd5rDkqs.js";
2
+ import { u as ue, c as ie, t as re, a as ve, p as C, b as de, d as ce, o as pe, f as V, g as fe, e as ye, s as I, k as _, i as A, X as ge, x as me } from "./index-jlnByA4k.js";
3
+ import { u as O } from "./useNestedProp-69PJWTUX.js";
4
4
  import { u as he, B as xe } from "./useLoading-Bt5Doa8m.js";
5
5
  const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["xmlns", "viewBox"], Ce = ["id"], _e = ["stop-color"], Ae = ["stop-color"], Se = ["height", "width", "fill", "rx"], $e = ["height", "width", "fill", "rx"], De = ["height", "width", "fill", "rx"], Ie = {
6
6
  key: 2,
@@ -31,7 +31,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
31
31
  },
32
32
  emits: ["selectDatapoint"],
33
33
  setup(S, { emit: j }) {
34
- const U = Z(() => import("./PackageVersion-CvXTVTaQ.js")), { vue_ui_sparkbar: R } = ue(), f = S, W = ee();
34
+ const U = Z(() => import("./PackageVersion-DSFdazAW.js")), { vue_ui_sparkbar: R } = ue(), f = S, W = ee();
35
35
  B(() => {
36
36
  W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
37
37
  });
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as P, ref as b, toRefs as T, onMounted as N, computed as s, watch as M, createElementBlock as r, openBlock as u, normalizeStyle as g, createCommentVNode as d, createBlock as U, toDisplayString as k, unref as i, createVNode as q, createElementVNode as y, renderSlot as F, normalizeClass as V } from "vue";
2
- import { u as B } from "./useNestedProp-Dd5rDkqs.js";
3
- import { u as X, c as Y, t as H, b as J, o as K, f as E, g as Q, P as W, X as Z, k as ee, h as x, i as te } from "./index-CwGyyfTA.js";
2
+ import { u as B } from "./useNestedProp-69PJWTUX.js";
3
+ import { u as X, c as Y, t as H, b as J, o as K, f as E, g as Q, P as W, X as Z, k as ee, h as x, i as te } from "./index-jlnByA4k.js";
4
4
  import { u as ae, B as le } from "./useLoading-Bt5Doa8m.js";
5
5
  import { u as oe } from "./useChartAccessibility-9icAAmYg.js";
6
6
  const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["stop-color"], re = ["stop-color"], ve = ["d", "stroke", "stroke-linecap"], ce = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], de = ["x", "y", "width", "height"], fe = ["x", "y", "font-size", "fill", "font-weight"], ye = {
@@ -24,7 +24,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
24
24
  }
25
25
  },
26
26
  setup(D) {
27
- const O = P(() => import("./PackageVersion-CvXTVTaQ.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = ae({
27
+ const O = P(() => import("./PackageVersion-DSFdazAW.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = ae({
28
28
  ...T(c),
29
29
  FINAL_CONFIG: e,
30
30
  prepareConfig: p,