vue-data-ui 3.22.9 → 3.22.10

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 (204) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  13. package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  89. package/dist/exposedLib-CZbtc2a6.js +25 -0
  90. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  91. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  92. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  93. package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
  94. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  95. package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/types/utils.d.ts +40 -0
  100. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  101. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  102. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  103. package/dist/utils.js +26 -24
  104. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  105. package/dist/vue-data-ui.js +77 -77
  106. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  107. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  108. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  109. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  110. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  111. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  112. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
  113. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  114. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  115. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  116. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
  117. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  118. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
  119. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  120. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
  121. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  122. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  123. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  124. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  125. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  126. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  127. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  128. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
  129. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  130. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
  131. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  132. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
  133. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  134. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  136. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  137. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
  138. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  139. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  141. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  142. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  143. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  144. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
  145. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  146. package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
  147. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  148. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  149. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
  150. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
  151. package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
  152. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
  153. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
  154. package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
  155. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
  156. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  157. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
  158. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  159. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
  160. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  161. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  162. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  163. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  164. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
  165. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  166. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
  167. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  168. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  169. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  170. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
  171. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
  172. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
  173. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  174. package/package.json +1 -1
  175. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  176. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  177. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  178. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  179. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  180. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  181. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  182. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  183. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  184. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  185. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  186. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  187. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  188. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  189. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  190. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  191. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  192. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  193. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  194. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  195. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  196. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  197. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  198. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  199. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  200. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  201. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  202. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  203. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  204. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -1,443 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, G as n, J as r, Kt as i, M as a, Rt as o, i as ee, kt as s, m as te, t as ne, v as c, wt as l } from "./lib-JqW18y5I.js";
3
- import { t as re } from "./useConfig-DYM3f6EI.js";
4
- import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
5
- import { t as u } from "./useNestedProp-DIuuzG1r.js";
6
- import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
7
- import { t as se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { c as ce } from "./canvas-lib-BOP_HS11.js";
9
- import { t as le } from "./useResponsive-BfnK0KxU.js";
10
- import { t as ue } from "./DefGrad-DVBqDjhO.js";
11
- import { t as de } from "./usePrefersMotion-BC-CsqR1.js";
12
- import { t as fe } from "./useFitSvgText-CT3nmlaS.js";
13
- import { t as pe } from "./vue_ui_spark_trend-DxVmpkmC.js";
14
- import { computed as d, createBlock as me, createCommentVNode as f, createElementBlock as p, createElementVNode as he, createVNode as m, defineAsyncComponent as ge, nextTick as h, normalizeStyle as _e, onMounted as ve, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, toRefs as ye, unref as b, watch as x } from "vue";
15
- //#region src/components/vue-ui-spark-trend.vue
16
- var be = /* @__PURE__ */ e({ default: () => S }), xe = ["id", "aria-describedby"], Se = ["id"], Ce = ["xmlns", "viewBox"], we = ["width", "height"], Te = { key: 1 }, Ee = ["d", "fill"], De = ["d", "fill"], Oe = [
17
- "d",
18
- "stroke",
19
- "stroke-width",
20
- "stroke-linecap",
21
- "stroke-linejoin"
22
- ], ke = [
23
- "d",
24
- "stroke",
25
- "stroke-width",
26
- "stroke-linecap",
27
- "stroke-linejoin"
28
- ], Ae = ["d"], je = ["fill", "d"], Me = [
29
- "x",
30
- "y",
31
- "width",
32
- "height"
33
- ], Ne = [
34
- "x",
35
- "y",
36
- "fill",
37
- "font-size",
38
- "font-weight"
39
- ], Pe = [
40
- "stroke",
41
- "cx",
42
- "cy",
43
- "fill"
44
- ], Fe = [
45
- "x",
46
- "y",
47
- "font-size",
48
- "fill",
49
- "font-weight"
50
- ], S = /*#__PURE__*/ se({
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 se = ge(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), { vue_ui_spark_trend: be } = re(), { isThemeValid: S, warnInvalidTheme: Ie } = oe(), C = de(), w = e, T = _(null), E = _(null), Le = _(null), D = _(null), O = _(null), k = _(!1), A = _(null), j = _(n()), M = _(I()), Re = d(() => i({
68
- defaultConfig: { style: {
69
- animation: { show: !1 },
70
- backgroundColor: "#99999930",
71
- line: {
72
- stroke: "#6A6A6A",
73
- useColorTrend: !1
74
- },
75
- dataLabel: {
76
- show: !1,
77
- useColorTrend: !1,
78
- color: "#6A6A6A"
79
- }
80
- } },
81
- userConfig: M.value.skeletonConfig ?? {}
82
- })), { loading: N, FINAL_DATASET: P, manualLoading: F } = ie({
83
- ...ye(w),
84
- FINAL_CONFIG: M,
85
- prepareConfig: I,
86
- skeletonDataset: w.config?.skeletonDataset ?? [
87
- 1,
88
- 2,
89
- 3,
90
- 5,
91
- 8,
92
- 13,
93
- 21,
94
- 34,
95
- 55,
96
- 89,
97
- 144,
98
- 233
99
- ],
100
- skeletonConfig: i({
101
- defaultConfig: M.value,
102
- userConfig: Re.value
103
- })
104
- });
105
- function I() {
106
- let e = u({
107
- userConfig: w.config,
108
- defaultConfig: be
109
- }), t = e.theme;
110
- if (!t) return e;
111
- if (!S.value(e)) return Ie(e), e;
112
- let n = u({
113
- userConfig: pe[t] || w.config,
114
- defaultConfig: e
115
- });
116
- return u({
117
- userConfig: w.config,
118
- defaultConfig: n
119
- });
120
- }
121
- let L = d(() => l({
122
- data: P.value,
123
- threshold: M.value.downsample.threshold
124
- }));
125
- x(() => w.config, (e) => {
126
- M.value = I(), V.value = M.value.style.width, H.value = M.value.style.height, Be();
127
- }, { deep: !0 });
128
- function R(e) {
129
- return e.map((e) => c(e));
130
- }
131
- let z = _(l({
132
- data: P.value,
133
- threshold: M.value.downsample.threshold
134
- }).map((e) => M.value.style.animation.show && !C.value || [
135
- void 0,
136
- Infinity,
137
- -Infinity,
138
- null,
139
- NaN
140
- ].includes(e) ? null : e));
141
- x(L, (e) => {
142
- A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !C.value ? z.value = Array(e.length).fill(null) : z.value = e.map((e) => ![
143
- void 0,
144
- Infinity,
145
- -Infinity,
146
- null
147
- ].includes(e) && !Number.isNaN(e) ? e : null), B(), h(() => Q(".vue-ui-sparktrend-progress-label", 6));
148
- }, {
149
- deep: !0,
150
- immediate: !0
151
- }), x(() => JSON.stringify(w.dataset), () => {
152
- A.value &&= (cancelAnimationFrame(A.value), null), F.value = s(w.dataset);
153
- let e = L.value;
154
- z.value = M.value.style.animation.show && !C.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), h(() => Q(".vue-ui-sparktrend-progress-label", 6));
155
- }, {
156
- deep: !1,
157
- immediate: !0
158
- });
159
- function B() {
160
- let e = 1e3 / M.value.style.animation.animationFrames, t = performance.now();
161
- if (!N.value && M.value.style.animation.show && !C.value && M.value.style.animation.animationFrames && P.value.length > 1) {
162
- z.value = [];
163
- let n = 0;
164
- function r() {
165
- k.value = !0;
166
- let i = performance.now(), a = i - t;
167
- 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, Q(".vue-ui-sparktrend-progress-label", 6))) : A.value = requestAnimationFrame(r);
168
- }
169
- r();
170
- }
171
- }
172
- ve(() => {
173
- Be();
174
- });
175
- let ze = d(() => M.value.debug);
176
- function Be() {
177
- if (s(w.dataset) && (t({
178
- componentName: "VueUiSparkTrend",
179
- type: "dataset",
180
- debug: ze.value
181
- }), F.value = !0), s(w.dataset) || (F.value = !1), M.value.responsive) {
182
- let e = ce(() => {
183
- let { width: e, height: t } = le({
184
- chart: T.value,
185
- source: Le.value
186
- });
187
- requestAnimationFrame(() => {
188
- V.value = e, H.value = t;
189
- });
190
- });
191
- D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value = T.value.parentNode, D.value.observe(O.value);
192
- }
193
- B(), Q(".vue-ui-sparktrend-progress-label", 6);
194
- }
195
- let V = _(M.value.style.width), H = _(M.value.style.height), U = d(() => ({
196
- height: H.value,
197
- width: V.value
198
- })), W = d(() => ({
199
- top: M.value.style.padding.top,
200
- left: M.value.style.padding.left,
201
- right: U.value.width - M.value.style.padding.right,
202
- bottom: U.value.height - M.value.style.padding.bottom,
203
- height: U.value.height - (M.value.style.padding.top + M.value.style.padding.bottom) - (M.value.style.dataLabel.show ? M.value.style.dataLabel.fontSize : 0),
204
- width: U.value.width - (M.value.style.padding.left + M.value.style.padding.right)
205
- })), G = d(() => {
206
- let e = R(L.value).filter(Number.isFinite);
207
- if (!e.length) return {
208
- max: 0,
209
- min: 0
210
- };
211
- let t = e[0], n = e[0];
212
- for (let r = 1; r < e.length; r++) {
213
- let i = e[r];
214
- i > t && (t = i), i < n && (n = i);
215
- }
216
- return {
217
- max: t,
218
- min: n
219
- };
220
- }), Ve = d(() => {
221
- let e = L.value, t = e.length ? e[e.length - 1] : "x";
222
- return [
223
- j.value,
224
- e.length,
225
- Number.isFinite(t) ? t : "x",
226
- M.value.downsample.threshold,
227
- M.value.style.line.smooth ? "s" : "l"
228
- ].join("-");
229
- }), K = d(() => {
230
- let e = G.value.min >= 0 ? 0 : G.value.min;
231
- return Math.abs(e);
232
- }), He = d(() => G.value.max + K.value);
233
- function Ue(e) {
234
- return e / He.value;
235
- }
236
- let We = d(() => L.value.length), q = d(() => z.value.map((e, t) => {
237
- let n = isNaN(e) || [
238
- void 0,
239
- null,
240
- "NaN",
241
- NaN,
242
- Infinity,
243
- -Infinity
244
- ].includes(e) ? 0 : e || 0;
245
- return {
246
- value: c(e),
247
- absoluteValue: c(n),
248
- plotValue: c(n + K.value),
249
- toMax: Ue(n + K.value),
250
- x: W.value.left + c(t * (W.value.width / (We.value - 1))) - M.value.style.padding.right,
251
- y: W.value.bottom - c(W.value.height * Ue(n + K.value))
252
- };
253
- })), J = d(() => {
254
- let e = R(L.value);
255
- return M.value.style.trendLabel.trendType === "global" ? te(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;
256
- }), Y = d(() => k.value || J.value === 0 ? "neutral" : J.value > 0 ? "positive" : "negative"), X = d(() => M.value.style.arrow.colors[Y.value]), Ge = d(() => {
257
- let e = {
258
- x: q.value[0].x,
259
- y: U.value.height - 6
260
- }, t = {
261
- x: q.value[q.value.length - 1].x,
262
- y: U.value.height - 6
263
- }, n = [];
264
- return q.value.forEach((e) => {
265
- n.push(`${e.x},${e.y} `);
266
- }), [
267
- e.x,
268
- e.y,
269
- ...n,
270
- t.x,
271
- t.y
272
- ].toString();
273
- }), Ke = d(() => {
274
- let e = [];
275
- return q.value.forEach((t) => {
276
- e.push(`${t.x},${t.y} `);
277
- }), `M ${e.toString()}`;
278
- }), Z = d(() => H.value / 2 - M.value.style.trendLabel.fontSize), { fitText: Q } = fe({
279
- svgRef: E,
280
- unitWidth: d(() => W.value.left * .8),
281
- fontSize: M.value.style.trendLabel.fontSize
282
- }), qe = d(() => {
283
- if (N.value || k.value) return "Trend chart loading";
284
- let e = q.value?.at(-1), t = e?.value, n = r({
285
- p: J.value > 0 ? "+" : "",
286
- v: J.value,
287
- s: "%",
288
- r: M.value.style.trendLabel.rounding
289
- }), i = t == null ? "not available" : ee(M.value.style.dataLabel.formatter, t, r({
290
- p: M.value.style.dataLabel.prefix,
291
- v: t,
292
- s: M.value.style.dataLabel.suffix,
293
- r: M.value.style.dataLabel.rounding
294
- }), { datapoint: e });
295
- return `Progression ${Y.value === "positive" ? `up ${n}` : Y.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${i}.`;
296
- }), $ = d(() => `sparktrend-a11y-${j.value}`);
297
- return (e, t) => (g(), p("div", {
298
- ref_key: "sparkTrendChart",
299
- ref: T,
300
- class: "vue-data-ui-component vue-ui-spark-trend",
301
- id: j.value,
302
- style: _e(`width:100%;font-family:${M.value.style.fontFamily};background:${M.value.style.backgroundColor}`),
303
- role: "img",
304
- "aria-describedby": $.value
305
- }, [
306
- he("p", {
307
- id: $.value,
308
- class: "sr-only",
309
- "aria-live": "polite"
310
- }, y(qe.value), 9, Se),
311
- (g(), p("svg", {
312
- key: Ve.value,
313
- ref_key: "svgRef",
314
- ref: E,
315
- xmlns: b(ne),
316
- viewBox: `0 0 ${U.value.width} ${U.value.height}`,
317
- style: "width:100%;background:transparent;overflow:visible",
318
- "aria-hidden": "true"
319
- }, [
320
- m(b(se)),
321
- e.$slots["chart-background"] ? (g(), p("foreignObject", {
322
- key: 0,
323
- x: 0,
324
- y: 0,
325
- width: U.value.width <= 0 ? 10 : U.value.width,
326
- height: U.value.height <= 0 ? 10 : U.value.height,
327
- style: { pointerEvents: "none" }
328
- }, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, we)) : f("", !0),
329
- he("defs", null, [m(ue, {
330
- t: "linear",
331
- x1: "0%",
332
- y1: "0%",
333
- x2: "0%",
334
- y2: "100%",
335
- id: `pill_gradient_${j.value}`,
336
- stops: [[
337
- "0%",
338
- b(o)(M.value.style.line.useColorTrend ? X.value : M.value.style.line.stroke, M.value.style.area.opacity),
339
- 1
340
- ], [
341
- "100%",
342
- M.value.style.backgroundColor,
343
- 1
344
- ]]
345
- }, null, 8, ["id", "stops"])]),
346
- M.value.style.area.show && q.value[0] ? (g(), p("g", Te, [M.value.style.line.smooth ? (g(), p("path", {
347
- key: 0,
348
- d: `M ${q.value[0].x},${W.value.bottom} ${b(a)(q.value)} L ${q.value.at(-1).x},${W.value.bottom} Z`,
349
- fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(o)(M.value.style.line.useColorTrend ? X.value : M.value.style.line.stroke, M.value.style.area.opacity),
350
- stroke: "none"
351
- }, null, 8, Ee)) : (g(), p("path", {
352
- key: 1,
353
- d: `M${Ge.value}Z`,
354
- fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(o)(M.value.style.line.useColorTrend ? X.value : M.value.style.line.stroke, M.value.style.area.opacity),
355
- stroke: "none"
356
- }, null, 8, De))])) : f("", !0),
357
- M.value.style.line.smooth && q.value.length ? (g(), p("path", {
358
- key: 2,
359
- d: `M ${b(a)(q.value)}`,
360
- stroke: M.value.style.line.useColorTrend ? X.value : M.value.style.line.stroke,
361
- fill: "none",
362
- "stroke-width": M.value.style.line.strokeWidth,
363
- "stroke-linecap": M.value.style.line.strokeLinecap,
364
- "stroke-linejoin": M.value.style.line.strokeLinejoin
365
- }, null, 8, Oe)) : f("", !0),
366
- !M.value.style.line.smooth && q.value.length ? (g(), p("path", {
367
- key: 3,
368
- d: Ke.value,
369
- stroke: M.value.style.line.useColorTrend ? X.value : M.value.style.line.stroke,
370
- fill: "none",
371
- "stroke-width": M.value.style.line.strokeWidth,
372
- "stroke-linecap": M.value.style.line.strokeLinecap,
373
- "stroke-linejoin": M.value.style.line.strokeLinejoin
374
- }, null, 8, ke)) : f("", !0),
375
- b(N) ? (g(), p("path", {
376
- key: 4,
377
- fill: "#6A6A6A",
378
- d: `M ${W.value.left / 2 + 6}, ${Z.value + 7} ${W.value.left / 2 - 7}, ${Z.value} ${W.value.left / 2 - 7}, ${Z.value + 14} Z`
379
- }, null, 8, Ae)) : (g(), p("path", {
380
- key: 5,
381
- fill: X.value,
382
- d: Y.value === "positive" ? `M ${W.value.left / 2}, ${Z.value} ${W.value.left / 2 - 7}, ${Z.value + 12} ${W.value.left / 2 + 7}, ${Z.value + 12} Z` : Y.value === "negative" ? `M ${W.value.left / 2}, ${Z.value + 12} ${W.value.left / 2 - 7}, ${Z.value} ${W.value.left / 2 + 7}, ${Z.value} Z` : `M ${W.value.left / 2 + 6}, ${Z.value + 7} ${W.value.left / 2 - 7}, ${Z.value} ${W.value.left / 2 - 7}, ${Z.value + 14} Z`
383
- }, null, 8, je)),
384
- b(N) ? (g(), p("rect", {
385
- key: 6,
386
- x: W.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
387
- y: H.value / 2 + M.value.style.trendLabel.fontSize - 2,
388
- width: M.value.style.trendLabel.fontSize * 2,
389
- height: M.value.style.trendLabel.fontSize,
390
- fill: "#6A6A6A80",
391
- rx: "3"
392
- }, null, 8, Me)) : f("", !0),
393
- !k.value && !b(N) ? (g(), p("text", {
394
- key: 7,
395
- class: "vue-ui-sparktrend-progress-label",
396
- x: W.value.left / 2,
397
- y: H.value / 2 + M.value.style.trendLabel.fontSize * 2,
398
- "text-anchor": "middle",
399
- fill: M.value.style.trendLabel.useColorTrend ? X.value : M.value.style.trendLabel.color,
400
- "font-size": M.value.style.trendLabel.fontSize,
401
- "font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
402
- }, y(b(r)({
403
- p: J.value > 0 ? "+" : "",
404
- v: J.value,
405
- s: "%",
406
- r: M.value.style.trendLabel.rounding
407
- })), 9, Ne)) : f("", !0),
408
- q.value.length && q.value.at(-1).x !== void 0 ? (g(), p("circle", {
409
- key: 8,
410
- stroke: M.value.style.backgroundColor,
411
- "stroke-width": 2,
412
- cx: q.value.at(-1).x,
413
- cy: q.value.at(-1).y,
414
- r: 4,
415
- fill: b(N) ? "#6A6A6A" : X.value
416
- }, null, 8, Pe)) : f("", !0),
417
- q.value.length && q.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (g(), p("text", {
418
- key: 9,
419
- "text-anchor": "middle",
420
- x: q.value.at(-1).x,
421
- y: q.value.at(-1).y - M.value.style.dataLabel.fontSize / 1.5,
422
- "font-size": M.value.style.dataLabel.fontSize,
423
- fill: M.value.style.dataLabel.useColorTrend ? X.value : M.value.style.dataLabel.color,
424
- "font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
425
- }, y(b(ee)(M.value.style.dataLabel.formatter, q.value.at(-1).value, b(r)({
426
- p: M.value.style.dataLabel.prefix,
427
- v: q.value.at(-1).value,
428
- s: M.value.style.dataLabel.suffix,
429
- r: M.value.style.dataLabel.rounding
430
- }), { datapoint: q.value.at(-1) })), 9, Fe)) : f("", !0)
431
- ], 8, Ce)),
432
- e.$slots.source ? (g(), p("div", {
433
- key: 0,
434
- ref_key: "source",
435
- ref: Le,
436
- dir: "auto"
437
- }, [v(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
438
- v(e.$slots, "skeleton", {}, () => [b(N) ? (g(), me(ae, { key: 0 })) : f("", !0)], !0)
439
- ], 12, xe));
440
- }
441
- }, [["__scopeId", "data-v-5fbf0886"]]);
442
- //#endregion
443
- export { be as n, S as t };