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
@@ -0,0 +1,401 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Lt as t, Pt as n, S as r, Ut as i, Wt as ee, X as a, Yt as te, Zt as o, ht as ne, i as s, nt as c, q as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
3
+ import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ce } from "./useConfig-CIQZ6_r7.js";
5
+ import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as l } from "./useNestedProp-Chvyfpl-.js";
7
+ import { t as de } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as fe } from "./DefGrad-DVBqDjhO.js";
9
+ import { t as u } from "./usePrefersMotion-BC-CsqR1.js";
10
+ import { t as d } from "./vue_ui_sparkbar-z6qO--Kf.js";
11
+ import { Fragment as f, computed as p, createBlock as pe, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineAsyncComponent as me, guardReactiveProps as he, mergeProps as ge, nextTick as _e, normalizeProps as ve, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as ye, renderSlot as S, toDisplayString as C, toRefs as be, unref as w, useSlots as T, watch as E } from "vue";
12
+ //#region src/components/vue-ui-sparkbar.vue
13
+ var D = /* @__PURE__ */ e({ default: () => P }), O = [
14
+ "onClick",
15
+ "onMouseenter",
16
+ "onMouseleave"
17
+ ], k = {
18
+ key: 1,
19
+ class: "vue-ui-sparkbar-datapoint-value"
20
+ }, A = ["xmlns", "viewBox"], j = [
21
+ "height",
22
+ "width",
23
+ "fill",
24
+ "rx"
25
+ ], M = [
26
+ "height",
27
+ "width",
28
+ "fill",
29
+ "rx"
30
+ ], N = [
31
+ "height",
32
+ "width",
33
+ "fill",
34
+ "rx"
35
+ ], xe = {
36
+ key: 2,
37
+ ref: "source",
38
+ dir: "auto"
39
+ }, P = {
40
+ __name: "vue-ui-sparkbar",
41
+ props: {
42
+ config: {
43
+ type: Object,
44
+ default() {
45
+ return {};
46
+ }
47
+ },
48
+ dataset: {
49
+ type: Array,
50
+ default() {
51
+ return [];
52
+ }
53
+ },
54
+ backgroundOpacity: {
55
+ type: Number,
56
+ default: null
57
+ }
58
+ },
59
+ emits: ["selectDatapoint"],
60
+ setup(e, { emit: D }) {
61
+ let P = me(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), { vue_ui_sparkbar: Se } = ce(), { isThemeValid: Ce, warnInvalidTheme: we } = de(), F = u(), I = e, Te = T(), L = x(re()), R = x(G()), z = p(() => R.value.style.bar), B = p(() => R.value.style.labels), V = p(() => R.value.style), H = p(() => R.value.debug);
62
+ y(() => {
63
+ Te["chart-background"] && H.value && console.warn("VueUiSparkbar does not support the #chart-background slot.");
64
+ }), oe({
65
+ config: () => R.value,
66
+ dataset: () => I.dataset,
67
+ component: "VueUiSparkbar",
68
+ rules: [se.noHint]
69
+ });
70
+ let Ee = p(() => o({
71
+ defaultConfig: { style: {
72
+ backgroundColor: "#99999930",
73
+ animation: { show: !1 },
74
+ layout: { independant: !0 },
75
+ gutter: {
76
+ backgroundColor: "#6A6A6A",
77
+ opacity: 50
78
+ },
79
+ bar: { gradient: { underlayerColor: "#6A6A6A" } }
80
+ } },
81
+ userConfig: R.value.skeletonConfig ?? {}
82
+ })), { loading: U, FINAL_DATASET: W, manualLoading: De } = le({
83
+ ...be(I),
84
+ FINAL_CONFIG: R,
85
+ prepareConfig: G,
86
+ skeletonDataset: I.config?.skeletonDataset ?? [
87
+ {
88
+ name: "_",
89
+ value: 21,
90
+ target: 25,
91
+ color: "#808080"
92
+ },
93
+ {
94
+ name: "_",
95
+ value: 13,
96
+ target: 25,
97
+ color: "#ADADAD"
98
+ },
99
+ {
100
+ name: "_",
101
+ value: 8,
102
+ target: 25,
103
+ color: "#DBDBDB"
104
+ }
105
+ ],
106
+ skeletonConfig: o({
107
+ defaultConfig: R.value,
108
+ userConfig: Ee.value
109
+ })
110
+ });
111
+ function G() {
112
+ let e = l({
113
+ userConfig: I.config,
114
+ defaultConfig: Se
115
+ }), n = e.theme;
116
+ if (!n) return e;
117
+ if (!Ce.value(e)) return we(e), e;
118
+ let r = l({
119
+ userConfig: d[n] || I.config,
120
+ defaultConfig: e
121
+ }), i = l({
122
+ userConfig: I.config,
123
+ defaultConfig: r
124
+ });
125
+ return {
126
+ ...i,
127
+ customPalette: i.customPalette.length ? i.customPalette : te[n] || t
128
+ };
129
+ }
130
+ E(() => I.config, (e) => {
131
+ R.value = G();
132
+ }, { deep: !0 });
133
+ let Oe = p(() => ae(R.value.customPalette)), K = x(W.value.map((e) => ({
134
+ ...e,
135
+ value: V.value.animation.show ? 0 : e.value || 0,
136
+ formatter: e.formatter || null
137
+ }))), q = x(null);
138
+ y(async () => {
139
+ n(I.dataset) && c({
140
+ componentName: "VueUiSparkbar",
141
+ type: "dataset",
142
+ debug: H.value
143
+ }), J();
144
+ });
145
+ function J() {
146
+ if (V.value.animation.show && !F.value) {
147
+ let e = V.value.animation.animationFrames, t = W.value.map((t, n) => t.value / e), n = W.value.map((e) => e.value || 0).reduce((e, t) => e + t, 0), r = 0;
148
+ function i() {
149
+ r += n / e, r < n ? (K.value = K.value.map((e, n) => ({
150
+ ...e,
151
+ value: e.value += t[n]
152
+ })), q.value = requestAnimationFrame(i)) : K.value = W.value.map((e) => ({
153
+ ...e,
154
+ value: e.value || 0,
155
+ formatter: e.formatter || null
156
+ }));
157
+ }
158
+ i();
159
+ }
160
+ }
161
+ E(() => W.value, async (e) => {
162
+ cancelAnimationFrame(q.value), K.value = W.value.map((e) => ({
163
+ ...e,
164
+ value: V.value.animation.show && !F.value ? 0 : e.value || 0,
165
+ formatter: e.formatter || null
166
+ })), _e(J);
167
+ }, { deep: !0 });
168
+ let Y = x({
169
+ width: 500,
170
+ height: 16
171
+ }), ke = p(() => Math.max(...W.value.map((e) => e.value))), Ae = p(() => (H.value && W.value.forEach((e, t) => {
172
+ ne({
173
+ datasetObject: e,
174
+ requiredAttributes: ["name", "value"]
175
+ }).forEach((e) => {
176
+ c({
177
+ componentName: "VueUiSparkbar",
178
+ type: "datasetSerieAttribute",
179
+ property: e,
180
+ index: t
181
+ });
182
+ });
183
+ }), K.value.map((e, n) => ({
184
+ ...e,
185
+ value: e.value || 0,
186
+ color: r(e.color) || Oe.value[n] || t[n] || t[n % t.length]
187
+ }))));
188
+ function je(e) {
189
+ return e / ke.value;
190
+ }
191
+ function X(e) {
192
+ return V.value.layout.independant ? e.target ? e.value / e.target : V.value.layout.percentage ? e.value > 100 ? 1 : e.value / 100 : V.value.layout.target === 0 ? 1 : e.value / V.value.layout.target : je(e.value);
193
+ }
194
+ function Z(e) {
195
+ return V.value.layout.independant && e.target || V.value.layout.target;
196
+ }
197
+ let Q = D;
198
+ function Me(e, t) {
199
+ Q("selectDatapoint", {
200
+ datapoint: e,
201
+ index: t
202
+ }), R.value.events.datapointClick && R.value.events.datapointClick({
203
+ datapoint: e,
204
+ seriesIndex: t
205
+ });
206
+ }
207
+ function Ne(e, t) {
208
+ R.value.events.datapointEnter && R.value.events.datapointEnter({
209
+ datapoint: e,
210
+ seriesIndex: t
211
+ });
212
+ }
213
+ function Pe(e, t) {
214
+ R.value.events.datapointLeave && R.value.events.datapointLeave({
215
+ datapoint: e,
216
+ seriesIndex: t
217
+ });
218
+ }
219
+ let $ = p(() => z.value.borderRadius == null ? Y.value.height / 2 : Math.min(Y.value.height / 2, z.value.borderRadius));
220
+ return (e, t) => (b(), h("div", {
221
+ class: "vue-data-ui-component vue-ui-sparkbar",
222
+ style: v({
223
+ width: "100%",
224
+ position: "relative",
225
+ fontFamily: V.value.fontFamily,
226
+ background: I.backgroundOpacity === null ? V.value.backgroundColor : w(i)(V.value.backgroundColor, I.backgroundOpacity)
227
+ })
228
+ }, [
229
+ e.$slots.title ? S(e.$slots, "title", ve(he({ title: {
230
+ ...e.title,
231
+ title: V.value.title.text,
232
+ subtitle: V.value.title.subtitle.text
233
+ } })), void 0, void 0, 0) : m("", !0),
234
+ !e.$slots.title && V.value.title.text ? (b(), h("div", {
235
+ key: 1,
236
+ class: "vue-ui-sparkbar-title-container",
237
+ style: v({
238
+ background: V.value.title.backgroundColor,
239
+ margin: V.value.title.margin,
240
+ textAlign: V.value.title.textAlign
241
+ })
242
+ }, [g("div", {
243
+ class: "vue-ui-sparkbar-title",
244
+ style: v({
245
+ fontSize: V.value.title.fontSize + "px",
246
+ color: V.value.title.color,
247
+ fontWeight: V.value.title.bold ? "bold" : "normal"
248
+ })
249
+ }, C(V.value.title.text), 5), V.value.title.subtitle.text ? (b(), h("div", {
250
+ key: 0,
251
+ class: "vue-ui-sparkbar-subtitle",
252
+ style: v({
253
+ fontSize: V.value.title.subtitle.fontSize + "px",
254
+ color: V.value.title.subtitle.color,
255
+ fontWeight: V.value.title.subtitle.bold ? "bold" : "normal"
256
+ })
257
+ }, C(V.value.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
258
+ (b(!0), h(f, null, ye(Ae.value, (t, n) => (b(), h("div", {
259
+ style: v(`display:flex !important;${["left", "right"].includes(B.value.name.position) ? `flex-direction: ${B.value.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${V.value.gap}px !important;align-items:center;${w(W).length > 0 && n !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
260
+ onClick: (e) => Me(t, n),
261
+ onMouseenter: (e) => Ne(t, n),
262
+ onMouseleave: (e) => Pe(t, n)
263
+ }, [
264
+ w(U) ? m("", !0) : S(e.$slots, "data-label", ge({ ref_for: !0 }, { bar: {
265
+ ...t,
266
+ target: Z(t),
267
+ valueLabel: w(s)(t.formatter, t.value, w(a)({
268
+ p: t.prefix || "",
269
+ v: t.value,
270
+ s: t.suffix || "",
271
+ r: t.rounding || 0
272
+ }), {
273
+ datapoint: t,
274
+ seriesIndex: n
275
+ }),
276
+ targetLabel: w(s)(t.formatter, Z(t), w(a)({
277
+ p: t.prefix || "",
278
+ v: Z(t),
279
+ s: t.suffix || "",
280
+ r: t.rounding || 0
281
+ }), {
282
+ datapoint: t,
283
+ seriesIndex: n
284
+ })
285
+ } }), void 0, void 0, 0),
286
+ !e.$slots["data-label"] || w(U) ? (b(), h("div", {
287
+ key: 1,
288
+ style: v({
289
+ display: "flex",
290
+ justifyContent: ["right", "top-right"].includes(B.value.name.position) ? "flex-end" : ["top-center"].includes(B.value.name.position) ? "center" : "flex-start",
291
+ alignItems: "center",
292
+ width: B.value.name.width,
293
+ color: B.value.name.color,
294
+ fontSize: B.value.fontSize + "px",
295
+ fontWeight: B.value.name.bold ? "bold" : "normal",
296
+ flexWrap: "wrap"
297
+ })
298
+ }, [w(U) ? (b(), h("div", {
299
+ key: 0,
300
+ class: "vue-ui-sparkbar-skeleton-name",
301
+ style: v({
302
+ width: "60px",
303
+ height: B.value.fontSize + "px",
304
+ borderRadius: B.value.fontSize / 4 + "px",
305
+ display: "flex",
306
+ alignItems: "center",
307
+ justifyContent: "space-between",
308
+ marginTop: "5px"
309
+ })
310
+ }, [g("div", { style: v({
311
+ height: "100%",
312
+ width: "40px",
313
+ borderRadius: B.value.fontSize / 4 + "px",
314
+ backgroundColor: "#6A6A6A80"
315
+ }) }, null, 4), g("div", { style: v({
316
+ height: "100%",
317
+ width: "15px",
318
+ borderRadius: B.value.fontSize / 4 + "px",
319
+ backgroundColor: "#6A6A6A80"
320
+ }) }, null, 4)], 4)) : (b(), h(f, { key: 1 }, [
321
+ g("span", null, C(t.name), 1),
322
+ B.value.value.show ? (b(), h("span", {
323
+ key: 0,
324
+ style: v(`font-weight:${B.value.value.bold ? "bold" : "normal"}`),
325
+ class: "vue-ui-sparkbar-datapoint-name"
326
+ }, ": " + C(w(s)(t.formatter, t.value, w(a)({
327
+ p: t.prefix || "",
328
+ v: t.value,
329
+ s: t.suffix || "",
330
+ r: t.rounding || 0
331
+ }), {
332
+ datapoint: t,
333
+ seriesIndex: n
334
+ })), 5)) : m("", !0),
335
+ V.value.layout.showTargetValue ? (b(), h("span", k, C(" " + V.value.layout.targetValueText) + " " + C(w(s)(t.formatter, Z(t), w(a)({
336
+ p: t.prefix || "",
337
+ v: Z(t),
338
+ s: t.suffix || "",
339
+ r: t.rounding || 0
340
+ }), {
341
+ datapoint: t,
342
+ seriesIndex: n
343
+ })), 1)) : m("", !0)
344
+ ], 64))], 4)) : m("", !0),
345
+ (b(), h("svg", {
346
+ role: "img",
347
+ xmlns: w(ie),
348
+ viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
349
+ width: "100%"
350
+ }, [
351
+ _(w(P)),
352
+ g("defs", null, [_(fe, {
353
+ t: "linear",
354
+ x1: "0%",
355
+ y1: "0%",
356
+ x2: "100%",
357
+ y2: "0%",
358
+ id: `sparkbar_gradient_${n}_${L.value}`,
359
+ stops: [[
360
+ "0%",
361
+ w(i)(w(ee)(t.color, .03), 100 - z.value.gradient.intensity),
362
+ 1
363
+ ], [
364
+ "100%",
365
+ t.color,
366
+ 1
367
+ ]]
368
+ }, null, 8, ["id", "stops"])]),
369
+ g("rect", {
370
+ height: Y.value.height,
371
+ width: Y.value.width,
372
+ x: 0,
373
+ y: 0,
374
+ fill: w(i)(V.value.gutter.backgroundColor, V.value.gutter.opacity),
375
+ rx: $.value
376
+ }, null, 8, j),
377
+ g("rect", {
378
+ height: Y.value.height,
379
+ width: Y.value.width * X(t),
380
+ x: 0,
381
+ y: 0,
382
+ fill: z.value.gradient.underlayerColor,
383
+ rx: $.value
384
+ }, null, 8, M),
385
+ g("rect", {
386
+ height: Y.value.height,
387
+ width: Y.value.width * X(t),
388
+ x: 0,
389
+ y: 0,
390
+ fill: z.value.gradient.show ? `url(#sparkbar_gradient_${n}_${L.value})` : t.color,
391
+ rx: $.value
392
+ }, null, 8, N)
393
+ ], 8, A))
394
+ ], 44, O))), 256)),
395
+ e.$slots.source ? (b(), h("div", xe, [S(e.$slots, "source")], 512)) : m("", !0),
396
+ w(U) ? (b(), pe(ue, { key: 3 })) : m("", !0)
397
+ ], 4));
398
+ }
399
+ };
400
+ //#endregion
401
+ export { D as n, P as t };
@@ -0,0 +1,268 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Pt as t, X as n, Zt as r, b as i, ht as ee, i as te, nt as a, q as ne, t as re, xt as o } from "./lib-Dql7cqyA.js";
3
+ import { n as ie, t as ae } from "./useHints-Dq_w2E8B.js";
4
+ import { t as oe } from "./useConfig-CIQZ6_r7.js";
5
+ import { n as s, t as c } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as l } from "./useNestedProp-Chvyfpl-.js";
7
+ import { t as se } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as ce } from "./DefGrad-DVBqDjhO.js";
9
+ import { t as le } from "./useChartAccessibility-DYqac8yF.js";
10
+ import { t as ue } from "./usePrefersMotion-BC-CsqR1.js";
11
+ import { t as de } from "./vue_ui_sparkgauge-BX1MS3bA.js";
12
+ import { computed as u, createBlock as fe, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineAsyncComponent as pe, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as me, onMounted as _, openBlock as v, ref as y, renderSlot as b, toDisplayString as x, toRefs as he, unref as S, watch as C } from "vue";
13
+ //#region src/components/vue-ui-sparkgauge.vue
14
+ var w = /* @__PURE__ */ e({ default: () => O }), ge = ["xmlns", "viewBox"], _e = ["width", "height"], ve = [
15
+ "d",
16
+ "stroke",
17
+ "stroke-linecap"
18
+ ], ye = [
19
+ "d",
20
+ "stroke",
21
+ "stroke-linecap",
22
+ "stroke-dashoffset"
23
+ ], T = [
24
+ "x",
25
+ "y",
26
+ "width",
27
+ "height"
28
+ ], E = [
29
+ "x",
30
+ "y",
31
+ "font-size",
32
+ "fill",
33
+ "font-weight"
34
+ ], D = {
35
+ key: 2,
36
+ ref: "source",
37
+ dir: "auto"
38
+ }, O = {
39
+ __name: "vue-ui-sparkgauge",
40
+ props: {
41
+ config: {
42
+ type: Object,
43
+ default() {
44
+ return {};
45
+ }
46
+ },
47
+ dataset: {
48
+ type: Object,
49
+ default() {
50
+ return {};
51
+ }
52
+ }
53
+ },
54
+ setup(e) {
55
+ let w = pe(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), { vue_ui_sparkgauge: O } = oe(), { isThemeValid: k, warnInvalidTheme: A } = se(), j = ue(), M = y(null), N = e, P = y(ne()), F = y(W()), I = u(() => F.value.style.dataLabel), L = u(() => F.value.style);
56
+ ie({
57
+ config: () => F.value,
58
+ dataset: () => N.dataset,
59
+ component: "VueUiSparkgauge",
60
+ rules: [ae.noHint]
61
+ });
62
+ let R = u(() => L.value.animation.show && !j.value), z = u(() => r({
63
+ defaultConfig: { style: {
64
+ animation: { show: !1 },
65
+ background: "#99999930",
66
+ colors: {
67
+ min: "#CACACA",
68
+ max: "#6A6A6A"
69
+ },
70
+ track: { autoColor: !0 },
71
+ gutter: { color: "#6A6A6A80" }
72
+ } },
73
+ userConfig: F.value.skeletonConfig ?? {}
74
+ })), { loading: B, FINAL_DATASET: V } = s({
75
+ ...he(N),
76
+ FINAL_CONFIG: F,
77
+ prepareConfig: W,
78
+ skeletonDataset: N.config?.skeletonDataset ?? {
79
+ value: 0,
80
+ min: -1,
81
+ max: 1,
82
+ title: ""
83
+ },
84
+ skeletonConfig: r({
85
+ defaultConfig: F.value,
86
+ userConfig: z.value
87
+ })
88
+ }), H = u(() => {
89
+ let e = V.value.min ?? 0, t = V.value.max ?? 0;
90
+ return {
91
+ min: e,
92
+ max: t,
93
+ diff: t - e
94
+ };
95
+ }), U = u(() => H.value.diff / L.value.animation.speedMs), { svgRef: be } = le({ config: { text: N.dataset?.title || "" } });
96
+ function W() {
97
+ let e = l({
98
+ userConfig: N.config,
99
+ defaultConfig: O
100
+ }), t = e.theme;
101
+ if (!t) return e;
102
+ if (!k.value(e)) return A(e), e;
103
+ let n = l({
104
+ userConfig: de[t] || N.config,
105
+ defaultConfig: e
106
+ });
107
+ return l({
108
+ userConfig: N.config,
109
+ defaultConfig: n
110
+ });
111
+ }
112
+ _(() => {
113
+ K();
114
+ });
115
+ let G = u(() => F.value.debug);
116
+ function K() {
117
+ t(N.dataset) ? a({
118
+ componentName: "VueUiSparkgauge",
119
+ type: "dataset",
120
+ debug: G.value
121
+ }) : ee({
122
+ datasetObject: N.dataset,
123
+ requiredAttributes: [
124
+ "value",
125
+ "min",
126
+ "max"
127
+ ]
128
+ }).forEach((e) => {
129
+ a({
130
+ componentName: "VueUiSparkgauge",
131
+ type: "datasetAttribute",
132
+ property: e,
133
+ debug: G.value
134
+ });
135
+ });
136
+ }
137
+ C(() => N.config, () => {
138
+ F.value = W(), J.value = R.value ? H.value.min : V.value.value, K();
139
+ }, { deep: !0 });
140
+ let q = u(() => ({
141
+ height: L.value.height,
142
+ width: 128,
143
+ base: L.value.basePosition
144
+ })), J = y(R.value ? H.value.min : V.value.value);
145
+ C([() => V.value.value, R], ([e, t]) => {
146
+ Y(e || 0, t);
147
+ }, { immediate: !0 });
148
+ let xe = u(() => J.value > H.value.max ? H.value.max : J.value < H.value.min ? H.value.min : J.value);
149
+ _(() => {
150
+ Y(V.value.value || 0);
151
+ });
152
+ function Y(e, t = R.value) {
153
+ if (M.value &&= (cancelAnimationFrame(M.value), null), !t) {
154
+ J.value = e;
155
+ return;
156
+ }
157
+ function n() {
158
+ J.value < e ? J.value = Math.min(J.value + U.value, e) : J.value > e && (J.value = Math.max(J.value - U.value, e)), J.value === e ? M.value = null : M.value = requestAnimationFrame(n);
159
+ }
160
+ n();
161
+ }
162
+ let X = u(() => V.value.title ?? ""), Z = u(() => {
163
+ let e = H.value.diff;
164
+ if (!isFinite(e) || e === 0) return 0;
165
+ let t = H.value.min, n = xe.value;
166
+ return n >= 0 ? (n - t) / e : (Math.abs(t) - Math.abs(n)) / e;
167
+ }), Q = u(() => o(L.value.colors.min, L.value.colors.max, H.value.min, H.value.max, J.value)), $ = u(() => I.value.autoColor ? Q.value : I.value.color), Se = u(() => L.value.track.autoColor ? Q.value : L.value.track.color);
168
+ return me(() => {
169
+ M.value && cancelAnimationFrame(M.value);
170
+ }), (e, t) => (v(), f("div", {
171
+ class: "vue-data-ui-component vue-ui-sparkgauge",
172
+ style: g(`font-family:${L.value.fontFamily};width: 100%; background:${L.value.background}`)
173
+ }, [
174
+ L.value.title.show && X.value && L.value.title.position === "top" ? (v(), f("div", {
175
+ key: 0,
176
+ class: "vue-data-ui-sparkgauge-label",
177
+ style: g(`font-size:${L.value.title.fontSize}px;text-align:${L.value.title.textAlign};font-weight:${L.value.title.bold ? "bold" : "normal"};color:${L.value.title.color}`)
178
+ }, x(X.value), 5)) : d("", !0),
179
+ (v(), f("svg", {
180
+ ref_key: "svgRef",
181
+ ref: be,
182
+ xmlns: S(re),
183
+ viewBox: `0 0 ${q.value.width} ${q.value.height}`,
184
+ style: "overflow: visible; background:transparent; width:100%;"
185
+ }, [
186
+ m(S(w)),
187
+ e.$slots["chart-background"] && !S(B) ? (v(), f("foreignObject", {
188
+ key: 0,
189
+ x: 0,
190
+ y: 0,
191
+ width: q.value.width,
192
+ height: q.value.height,
193
+ style: { pointerEvents: "none" }
194
+ }, [b(e.$slots, "chart-background")], 8, _e)) : d("", !0),
195
+ p("defs", null, [m(ce, {
196
+ t: "linear",
197
+ id: `gradient_${P.value}`,
198
+ x1: "-10%",
199
+ y1: "100%",
200
+ x2: "110%",
201
+ y2: "100%",
202
+ stops: [[
203
+ "0%",
204
+ L.value.colors.min,
205
+ 1
206
+ ], [
207
+ "100%",
208
+ L.value.colors.max,
209
+ 1
210
+ ]]
211
+ }, null, 8, ["id", "stops"])]),
212
+ p("path", {
213
+ d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
214
+ stroke: L.value.gutter.color,
215
+ "stroke-width": 8,
216
+ "stroke-linecap": L.value.gutter.strokeLinecap,
217
+ fill: "none"
218
+ }, null, 8, ve),
219
+ Z.value === 0 ? d("", !0) : (v(), f("path", {
220
+ key: 1,
221
+ d: `M10 ${q.value.base} A 1 1 0 1 1 118 ${q.value.base}`,
222
+ stroke: L.value.colors.showGradient ? `url(#gradient_${P.value})` : Se.value,
223
+ "stroke-width": 8,
224
+ "stroke-linecap": L.value.track.strokeLinecap,
225
+ fill: "none",
226
+ "stroke-dasharray": 169.5,
227
+ "stroke-dashoffset": 169.5 - 169.5 * Z.value,
228
+ class: h({ "vue-ui-sparkgauge-track": L.value.animation.show }),
229
+ style: g(L.value.animation.show ? `animation: vue-ui-sparkgauge-animation ${L.value.animation.speedMs}ms ease-in;` : "")
230
+ }, null, 14, ye)),
231
+ S(B) ? (v(), f("rect", {
232
+ key: 2,
233
+ x: q.value.width / 2 - I.value.fontSize / 2,
234
+ y: q.value.base + 6 + I.value.offsetY - I.value.fontSize,
235
+ width: I.value.fontSize,
236
+ height: I.value.fontSize,
237
+ fill: "#6A6A6A50",
238
+ rx: 3
239
+ }, null, 8, T)) : (v(), f("text", {
240
+ key: 3,
241
+ "text-anchor": "middle",
242
+ x: q.value.width / 2,
243
+ y: q.value.base + 6 + I.value.offsetY,
244
+ "font-size": I.value.fontSize,
245
+ fill: $.value,
246
+ "font-weight": I.value.bold ? "bold" : "normal"
247
+ }, x(S(te)(I.value.formatter, S(i)(J.value), S(n)({
248
+ p: I.value.prefix,
249
+ v: S(i)(J.value),
250
+ s: I.value.suffix,
251
+ r: I.value.rounding
252
+ }), {
253
+ datapoint: S(i)(J.value),
254
+ color: $.value
255
+ })), 9, E))
256
+ ], 8, ge)),
257
+ L.value.title.show && X.value && L.value.title.position === "bottom" ? (v(), f("div", {
258
+ key: 1,
259
+ class: "vue-data-ui-sparkgauge-label",
260
+ style: g(`font-size:${L.value.title.fontSize}px;text-align:${L.value.title.textAlign};font-weight:${L.value.title.bold ? "bold" : "normal"};font-weight:${L.value.title.bold ? "bold" : "normal"};color:${L.value.title.color}`)
261
+ }, x(X.value), 5)) : d("", !0),
262
+ e.$slots.source ? (v(), f("div", D, [b(e.$slots, "source")], 512)) : d("", !0),
263
+ b(e.$slots, "skeleton", {}, () => [S(B) ? (v(), fe(c, { key: 0 })) : d("", !0)])
264
+ ], 4));
265
+ }
266
+ };
267
+ //#endregion
268
+ export { w as n, O as t };