vue-data-ui 3.25.5 → 3.25.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
  101. package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
  103. package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
  104. package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
  105. package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
  110. package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
  112. package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
  113. package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
  114. package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
  115. package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
  116. package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
  117. package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
  120. package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
  122. package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
  130. package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
  132. package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
  134. package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
  137. package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
  138. package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
  139. package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
  143. package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
  144. package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
  148. package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
  149. package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
  150. package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
  151. package/dist/vue-ui-table-CiccGbRB.js +1352 -0
  152. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  153. package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
  156. package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
  157. package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
  158. package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
  159. package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
  160. package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
  162. package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,457 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Ot as t, P as n, Pt as r, Ut as i, X as a, Zt as o, b as s, g as ee, i as c, nt as te, q as ne, t as re } from "./lib-Dql7cqyA.js";
3
- import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
4
- import { t as oe } from "./useConfig-C_mX5pOZ.js";
5
- import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as l } from "./useNestedProp-Chvyfpl-.js";
7
- import { t as le } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as u } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
- import { l as ue, t as de } from "./useResponsive-ZtArZtUf.js";
10
- import { t as fe } from "./DefGrad-DVBqDjhO.js";
11
- import { t as pe } from "./usePrefersMotion-BC-CsqR1.js";
12
- import { t as me } from "./useFitSvgText-CXTzBplU.js";
13
- import { t as he } from "./vue_ui_spark_trend-DxVmpkmC.js";
14
- import { computed as d, createBlock as ge, createCommentVNode as f, createElementBlock as p, createElementVNode as _e, createVNode as m, defineAsyncComponent as ve, nextTick as h, normalizeStyle as ye, onMounted as be, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, toRefs as xe, unref as b, watch as x } from "vue";
15
- //#region src/components/vue-ui-spark-trend.vue
16
- var S = /* @__PURE__ */ e({ default: () => C }), Se = ["id", "aria-describedby"], Ce = ["id"], we = ["xmlns", "viewBox"], Te = ["width", "height"], Ee = { key: 1 }, De = ["d", "fill"], Oe = ["d", "fill"], ke = [
17
- "d",
18
- "stroke",
19
- "stroke-width",
20
- "stroke-linecap",
21
- "stroke-linejoin"
22
- ], Ae = [
23
- "d",
24
- "stroke",
25
- "stroke-width",
26
- "stroke-linecap",
27
- "stroke-linejoin"
28
- ], je = ["d"], Me = ["fill", "d"], Ne = [
29
- "x",
30
- "y",
31
- "width",
32
- "height"
33
- ], Pe = [
34
- "x",
35
- "y",
36
- "fill",
37
- "font-size",
38
- "font-weight"
39
- ], Fe = [
40
- "stroke",
41
- "cx",
42
- "cy",
43
- "fill"
44
- ], Ie = [
45
- "x",
46
- "y",
47
- "font-size",
48
- "fill",
49
- "font-weight"
50
- ], C = /*#__PURE__*/ u({
51
- __name: "vue-ui-spark-trend",
52
- props: {
53
- config: {
54
- type: Object,
55
- default() {
56
- return {};
57
- }
58
- },
59
- dataset: {
60
- type: Array,
61
- default() {
62
- return [];
63
- }
64
- }
65
- },
66
- setup(e) {
67
- let u = ve(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), { vue_ui_spark_trend: S } = oe(), { isThemeValid: C, warnInvalidTheme: Le } = le(), w = pe(), T = e, E = _(null), Re = _(null), ze = _(null), D = _(null), O = _(null), k = _(!1), A = _(null), j = _(ne()), M = _(I());
68
- ie({
69
- config: () => M.value,
70
- dataset: () => T.dataset,
71
- component: "VueUiSparkTrend",
72
- rules: [ae.emptyArray, {
73
- test: (e) => e.length > 1095,
74
- message: [
75
- "👀 The dataset has > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.",
76
- "",
77
- "▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted."
78
- ]
79
- }]
80
- });
81
- let Be = d(() => o({
82
- defaultConfig: { style: {
83
- animation: { show: !1 },
84
- backgroundColor: "#99999930",
85
- line: {
86
- stroke: "#6A6A6A",
87
- useColorTrend: !1
88
- },
89
- dataLabel: {
90
- show: !1,
91
- useColorTrend: !1,
92
- color: "#6A6A6A"
93
- }
94
- } },
95
- userConfig: M.value.skeletonConfig ?? {}
96
- })), { loading: N, FINAL_DATASET: P, manualLoading: F } = se({
97
- ...xe(T),
98
- FINAL_CONFIG: M,
99
- prepareConfig: I,
100
- skeletonDataset: T.config?.skeletonDataset ?? [
101
- 1,
102
- 2,
103
- 3,
104
- 5,
105
- 8,
106
- 13,
107
- 21,
108
- 34,
109
- 55,
110
- 89,
111
- 144,
112
- 233
113
- ],
114
- skeletonConfig: o({
115
- defaultConfig: M.value,
116
- userConfig: Be.value
117
- })
118
- });
119
- function I() {
120
- let e = l({
121
- userConfig: T.config,
122
- defaultConfig: S
123
- }), t = e.theme;
124
- if (!t) return e;
125
- if (!C.value(e)) return Le(e), e;
126
- let n = l({
127
- userConfig: he[t] || T.config,
128
- defaultConfig: e
129
- });
130
- return l({
131
- userConfig: T.config,
132
- defaultConfig: n
133
- });
134
- }
135
- let L = d(() => t({
136
- data: P.value,
137
- threshold: M.value.downsample.threshold
138
- }));
139
- x(() => T.config, (e) => {
140
- M.value = I(), H.value = M.value.style.width, U.value = M.value.style.height, V();
141
- }, { deep: !0 });
142
- function R(e) {
143
- return e.map((e) => s(e));
144
- }
145
- let z = _(t({
146
- data: P.value,
147
- threshold: M.value.downsample.threshold
148
- }).map((e) => M.value.style.animation.show && !w.value || [
149
- void 0,
150
- Infinity,
151
- -Infinity,
152
- null,
153
- NaN
154
- ].includes(e) ? null : e));
155
- x(L, (e) => {
156
- A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !w.value ? z.value = Array(e.length).fill(null) : z.value = e.map((e) => ![
157
- void 0,
158
- Infinity,
159
- -Infinity,
160
- null
161
- ].includes(e) && !Number.isNaN(e) ? e : null), B(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
162
- }, {
163
- deep: !0,
164
- immediate: !0
165
- }), x(() => JSON.stringify(T.dataset), () => {
166
- A.value &&= (cancelAnimationFrame(A.value), null), F.value = r(T.dataset);
167
- let e = L.value;
168
- z.value = M.value.style.animation.show && !w.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
169
- }, {
170
- deep: !1,
171
- immediate: !0
172
- });
173
- function B() {
174
- let e = 1e3 / M.value.style.animation.animationFrames, t = performance.now();
175
- if (!N.value && M.value.style.animation.show && !w.value && M.value.style.animation.animationFrames && P.value.length > 1) {
176
- z.value = [];
177
- let n = 0;
178
- function r() {
179
- k.value = !0;
180
- let i = performance.now(), a = i - t;
181
- a > e ? (t = i - a % e, n < L.value.length ? (z.value.push(L.value[n]), n += 1, A.value = requestAnimationFrame(r)) : (cancelAnimationFrame(A.value), z.value = R(L.value), k.value = !1, $(".vue-ui-sparktrend-progress-label", 6))) : A.value = requestAnimationFrame(r);
182
- }
183
- r();
184
- }
185
- }
186
- be(() => {
187
- V();
188
- });
189
- let Ve = d(() => M.value.debug);
190
- function V() {
191
- if (r(T.dataset) && (te({
192
- componentName: "VueUiSparkTrend",
193
- type: "dataset",
194
- debug: Ve.value
195
- }), F.value = !0), r(T.dataset) || (F.value = !1), M.value.responsive) {
196
- let e = ue(() => {
197
- let { width: e, height: t } = de({
198
- chart: E.value,
199
- source: ze.value
200
- });
201
- requestAnimationFrame(() => {
202
- H.value = e, U.value = t;
203
- });
204
- });
205
- D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value = E.value.parentNode, D.value.observe(O.value);
206
- }
207
- B(), $(".vue-ui-sparktrend-progress-label", 6);
208
- }
209
- let H = _(M.value.style.width), U = _(M.value.style.height), W = d(() => ({
210
- height: U.value,
211
- width: H.value
212
- })), G = d(() => ({
213
- top: M.value.style.padding.top,
214
- left: M.value.style.padding.left,
215
- right: W.value.width - M.value.style.padding.right,
216
- bottom: W.value.height - M.value.style.padding.bottom,
217
- height: W.value.height - (M.value.style.padding.top + M.value.style.padding.bottom) - (M.value.style.dataLabel.show ? M.value.style.dataLabel.fontSize : 0),
218
- width: W.value.width - (M.value.style.padding.left + M.value.style.padding.right)
219
- })), K = d(() => {
220
- let e = R(L.value).filter(Number.isFinite);
221
- if (!e.length) return {
222
- max: 0,
223
- min: 0
224
- };
225
- let t = e[0], n = e[0];
226
- for (let r = 1; r < e.length; r++) {
227
- let i = e[r];
228
- i > t && (t = i), i < n && (n = i);
229
- }
230
- return {
231
- max: t,
232
- min: n
233
- };
234
- }), He = d(() => {
235
- let e = L.value, t = e.length ? e[e.length - 1] : "x";
236
- return [
237
- j.value,
238
- e.length,
239
- Number.isFinite(t) ? t : "x",
240
- M.value.downsample.threshold,
241
- M.value.style.line.smooth ? "s" : "l"
242
- ].join("-");
243
- }), q = d(() => {
244
- let e = K.value.min >= 0 ? 0 : K.value.min;
245
- return Math.abs(e);
246
- }), Ue = d(() => K.value.max + q.value);
247
- function We(e) {
248
- return e / Ue.value;
249
- }
250
- let Ge = d(() => L.value.length), J = d(() => z.value.map((e, t) => {
251
- let n = isNaN(e) || [
252
- void 0,
253
- null,
254
- "NaN",
255
- NaN,
256
- Infinity,
257
- -Infinity
258
- ].includes(e) ? 0 : e || 0;
259
- return {
260
- value: s(e),
261
- absoluteValue: s(n),
262
- plotValue: s(n + q.value),
263
- toMax: We(n + q.value),
264
- x: G.value.left + s(t * (G.value.width / (Ge.value - 1))) - M.value.style.padding.right,
265
- y: G.value.bottom - s(G.value.height * We(n + q.value))
266
- };
267
- })), Y = d(() => {
268
- let e = R(L.value);
269
- return M.value.style.trendLabel.trendType === "global" ? ee(e) : M.value.style.trendLabel.trendType === "n-1" && e.length > 1 ? (e.at(-1) / e.at(-2) - 1) * 100 : M.value.style.trendLabel.trendType === "lastToFirst" ? (e.at(-1) / e[0] - 1) * 100 : 0;
270
- }), X = d(() => k.value || Y.value === 0 ? "neutral" : Y.value > 0 ? "positive" : "negative"), Z = d(() => M.value.style.arrow.colors[X.value]), Ke = d(() => {
271
- let e = {
272
- x: J.value[0].x,
273
- y: W.value.height - 6
274
- }, t = {
275
- x: J.value[J.value.length - 1].x,
276
- y: W.value.height - 6
277
- }, n = [];
278
- return J.value.forEach((e) => {
279
- n.push(`${e.x},${e.y} `);
280
- }), [
281
- e.x,
282
- e.y,
283
- ...n,
284
- t.x,
285
- t.y
286
- ].toString();
287
- }), qe = d(() => {
288
- let e = [];
289
- return J.value.forEach((t) => {
290
- e.push(`${t.x},${t.y} `);
291
- }), `M ${e.toString()}`;
292
- }), Q = d(() => U.value / 2 - M.value.style.trendLabel.fontSize), Je = d(() => G.value.left * .8), { fitText: $ } = me({
293
- svgRef: Re,
294
- unitWidth: Je,
295
- fontSize: M.value.style.trendLabel.fontSize
296
- }), Ye = d(() => {
297
- if (N.value || k.value) return "Trend chart loading";
298
- let e = J.value?.at(-1), t = e?.value, n = a({
299
- p: Y.value > 0 ? "+" : "",
300
- v: Y.value,
301
- s: "%",
302
- r: M.value.style.trendLabel.rounding
303
- }), r = t == null ? "not available" : c(M.value.style.dataLabel.formatter, t, a({
304
- p: M.value.style.dataLabel.prefix,
305
- v: t,
306
- s: M.value.style.dataLabel.suffix,
307
- r: M.value.style.dataLabel.rounding
308
- }), { datapoint: e });
309
- return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${r}.`;
310
- }), Xe = d(() => `sparktrend-a11y-${j.value}`);
311
- return (e, t) => (g(), p("div", {
312
- ref_key: "sparkTrendChart",
313
- ref: E,
314
- class: "vue-data-ui-component vue-ui-spark-trend",
315
- id: j.value,
316
- style: ye(`width:100%;font-family:${M.value.style.fontFamily};background:${M.value.style.backgroundColor}`),
317
- role: "img",
318
- "aria-describedby": Xe.value
319
- }, [
320
- _e("p", {
321
- id: Xe.value,
322
- class: "sr-only",
323
- "aria-live": "polite"
324
- }, y(Ye.value), 9, Ce),
325
- (g(), p("svg", {
326
- key: He.value,
327
- ref_key: "svgRef",
328
- ref: Re,
329
- xmlns: b(re),
330
- viewBox: `0 0 ${W.value.width} ${W.value.height}`,
331
- style: "width:100%;background:transparent;overflow:visible",
332
- "aria-hidden": "true"
333
- }, [
334
- m(b(u)),
335
- e.$slots["chart-background"] ? (g(), p("foreignObject", {
336
- key: 0,
337
- x: 0,
338
- y: 0,
339
- width: W.value.width <= 0 ? 10 : W.value.width,
340
- height: W.value.height <= 0 ? 10 : W.value.height,
341
- style: { pointerEvents: "none" }
342
- }, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, Te)) : f("", !0),
343
- _e("defs", null, [m(fe, {
344
- t: "linear",
345
- x1: "0%",
346
- y1: "0%",
347
- x2: "0%",
348
- y2: "100%",
349
- id: `pill_gradient_${j.value}`,
350
- stops: [[
351
- "0%",
352
- b(i)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
353
- 1
354
- ], [
355
- "100%",
356
- M.value.style.backgroundColor,
357
- 1
358
- ]]
359
- }, null, 8, ["id", "stops"])]),
360
- M.value.style.area.show && J.value[0] ? (g(), p("g", Ee, [M.value.style.line.smooth ? (g(), p("path", {
361
- key: 0,
362
- d: `M ${J.value[0].x},${G.value.bottom} ${b(n)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,
363
- fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(i)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
364
- stroke: "none"
365
- }, null, 8, De)) : (g(), p("path", {
366
- key: 1,
367
- d: `M${Ke.value}Z`,
368
- fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(i)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
369
- stroke: "none"
370
- }, null, 8, Oe))])) : f("", !0),
371
- M.value.style.line.smooth && J.value.length ? (g(), p("path", {
372
- key: 2,
373
- d: `M ${b(n)(J.value)}`,
374
- stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
375
- fill: "none",
376
- "stroke-width": M.value.style.line.strokeWidth,
377
- "stroke-linecap": M.value.style.line.strokeLinecap,
378
- "stroke-linejoin": M.value.style.line.strokeLinejoin
379
- }, null, 8, ke)) : f("", !0),
380
- !M.value.style.line.smooth && J.value.length ? (g(), p("path", {
381
- key: 3,
382
- d: qe.value,
383
- stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
384
- fill: "none",
385
- "stroke-width": M.value.style.line.strokeWidth,
386
- "stroke-linecap": M.value.style.line.strokeLinecap,
387
- "stroke-linejoin": M.value.style.line.strokeLinejoin
388
- }, null, 8, Ae)) : f("", !0),
389
- b(N) ? (g(), p("path", {
390
- key: 4,
391
- fill: "#6A6A6A",
392
- d: `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
393
- }, null, 8, je)) : (g(), p("path", {
394
- key: 5,
395
- fill: Z.value,
396
- d: X.value === "positive" ? `M ${G.value.left / 2}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 12} ${G.value.left / 2 + 7}, ${Q.value + 12} Z` : X.value === "negative" ? `M ${G.value.left / 2}, ${Q.value + 12} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 + 7}, ${Q.value} Z` : `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
397
- }, null, 8, Me)),
398
- b(N) ? (g(), p("rect", {
399
- key: 6,
400
- x: G.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
401
- y: U.value / 2 + M.value.style.trendLabel.fontSize - 2,
402
- width: M.value.style.trendLabel.fontSize * 2,
403
- height: M.value.style.trendLabel.fontSize,
404
- fill: "#6A6A6A80",
405
- rx: "3"
406
- }, null, 8, Ne)) : f("", !0),
407
- !k.value && !b(N) ? (g(), p("text", {
408
- key: 7,
409
- class: "vue-ui-sparktrend-progress-label",
410
- x: G.value.left / 2,
411
- y: U.value / 2 + M.value.style.trendLabel.fontSize * 2,
412
- "text-anchor": "middle",
413
- fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
414
- "font-size": M.value.style.trendLabel.fontSize,
415
- "font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
416
- }, y(b(a)({
417
- p: Y.value > 0 ? "+" : "",
418
- v: Y.value,
419
- s: "%",
420
- r: M.value.style.trendLabel.rounding
421
- })), 9, Pe)) : f("", !0),
422
- J.value.length && J.value.at(-1).x !== void 0 ? (g(), p("circle", {
423
- key: 8,
424
- stroke: M.value.style.backgroundColor,
425
- "stroke-width": 2,
426
- cx: J.value.at(-1).x,
427
- cy: J.value.at(-1).y,
428
- r: 4,
429
- fill: b(N) ? "#6A6A6A" : Z.value
430
- }, null, 8, Fe)) : f("", !0),
431
- J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (g(), p("text", {
432
- key: 9,
433
- "text-anchor": "middle",
434
- x: J.value.at(-1).x,
435
- y: J.value.at(-1).y - M.value.style.dataLabel.fontSize / 1.5,
436
- "font-size": M.value.style.dataLabel.fontSize,
437
- fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
438
- "font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
439
- }, y(b(c)(M.value.style.dataLabel.formatter, J.value.at(-1).value, b(a)({
440
- p: M.value.style.dataLabel.prefix,
441
- v: J.value.at(-1).value,
442
- s: M.value.style.dataLabel.suffix,
443
- r: M.value.style.dataLabel.rounding
444
- }), { datapoint: J.value.at(-1) })), 9, Ie)) : f("", !0)
445
- ], 8, we)),
446
- e.$slots.source ? (g(), p("div", {
447
- key: 0,
448
- ref_key: "source",
449
- ref: ze,
450
- dir: "auto"
451
- }, [v(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
452
- v(e.$slots, "skeleton", {}, () => [b(N) ? (g(), ge(ce, { key: 0 })) : f("", !0)], !0)
453
- ], 12, Se));
454
- }
455
- }, [["__scopeId", "data-v-5bd4919c"]]);
456
- //#endregion
457
- export { S as n, C as t };