vue-data-ui 3.22.7 → 3.22.9

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 (206) hide show
  1. package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
  2. package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
  3. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  4. package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  5. package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
  6. package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
  7. package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
  11. package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
  12. package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
  13. package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
  14. package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
  15. package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
  16. package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
  17. package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
  18. package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
  19. package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
  90. package/dist/exposedLib-VXFp3Z2c.js +19 -0
  91. package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
  92. package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
  93. package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
  94. package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
  95. package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
  96. package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
  97. package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/utils.d.ts +18 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
  104. package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
  105. package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
  106. package/dist/utils.js +24 -24
  107. package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
  108. package/dist/vue-data-ui.js +77 -77
  109. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  110. package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
  111. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
  112. package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
  113. package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
  114. package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
  115. package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
  116. package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
  117. package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
  118. package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
  119. package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
  120. package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
  121. package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
  122. package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
  123. package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
  124. package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
  125. package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
  126. package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
  127. package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
  128. package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
  129. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  130. package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
  131. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  132. package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
  133. package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  134. package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
  135. package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
  136. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
  137. package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
  138. package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
  139. package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
  140. package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
  141. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
  142. package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
  143. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
  144. package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
  145. package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
  146. package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
  147. package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
  148. package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
  149. package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
  150. package/dist/vue-ui-rings-J990vNbX.js +1252 -0
  151. package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
  152. package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
  153. package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
  154. package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
  155. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  156. package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
  157. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  158. package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
  159. package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
  160. package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
  161. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  162. package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
  163. package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
  164. package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
  165. package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
  166. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  167. package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
  168. package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
  169. package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
  170. package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
  171. package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
  172. package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
  173. package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
  174. package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
  175. package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
  176. package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
  177. package/package.json +1 -1
  178. package/dist/BaseIcon-_-BX7be3.js +0 -502
  179. package/dist/exposedLib-Be0ifkti.js +0 -19
  180. package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
  181. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
  182. package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
  183. package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
  184. package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
  185. package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
  186. package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
  187. package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
  188. package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
  189. package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
  190. package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
  191. package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
  192. package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
  193. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
  194. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
  195. package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
  196. package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
  197. package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
  198. package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
  199. package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
  200. package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
  201. package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
  202. package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
  203. package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
  204. package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
  205. package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
  206. package/dist/vue-ui-world-B7npRmTa.js +0 -14264
@@ -0,0 +1,443 @@
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 };