vue-data-ui 3.24.0 → 3.25.0

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 (183) hide show
  1. package/dist/{Arrow-CJuuMivt.js → Arrow-cWEoIMbe.js} +1 -1
  2. package/dist/{BaseDraggableDialog-9RMU4zIz.js → BaseDraggableDialog-obpncsqR.js} +2 -2
  3. package/dist/{BaseIcon-U0y1Y7dC.js → BaseIcon-Dmgd8MfJ.js} +1 -1
  4. package/dist/{BaseLegendToggle-B_wibe7d.js → BaseLegendToggle-Dj1a_tSb.js} +1 -1
  5. package/dist/{BaseZoomControls-DXDTBATh.js → BaseZoomControls-CdYm4Qh4.js} +2 -2
  6. package/dist/{ColorPicker-Diee0Pe9.js → ColorPicker-B93_eq_J.js} +2 -2
  7. package/dist/{DataTable-1Lsn9w61.js → DataTable-D6vq6n14.js} +2 -2
  8. package/dist/{HillActions-DntqVj-0.js → HillActions-D0OMo0PZ.js} +1 -1
  9. package/dist/{Legend-Cg1jtWxv.js → Legend-Du6YK6gu.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-aCu8CNkj.js → NonSvgPenAndPaper-DbwjIxnE.js} +3 -3
  11. package/dist/{PackageVersion-CrLLZ567.js → PackageVersion-CU9Hflo-.js} +1 -1
  12. package/dist/{PenAndPaper-ktbpEc-t.js → PenAndPaper-CD5tlFYh.js} +3 -3
  13. package/dist/{Shape-BV_BCG2F.js → Shape-Dqpgbk7w.js} +1 -1
  14. package/dist/{SlicerPreview-CsFT236o.js → SlicerPreview-BSjcCjhA.js} +2 -2
  15. package/dist/{SparkTooltip-BqzJa3h2.js → SparkTooltip-Da4O7iOD.js} +1 -1
  16. package/dist/{Title-C5ytqOnj.js → Title-y2KUSK-I.js} +1 -1
  17. package/dist/{Tooltip-CTgk02J6.js → Tooltip-CLpW5URN.js} +1 -1
  18. package/dist/{UserOptions-DJt-e5q0.js → UserOptions-3Qr8es3g.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-hill.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-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-K9hvrmBm.js → dom-to-png-CQUIoewh.js} +1 -1
  91. package/dist/{exposedLib-CNHCqGuG.js → exposedLib-4fR8MXNd.js} +1 -1
  92. package/dist/{img-DRq3Equ5.js → img-D3Ck2d_T.js} +1 -1
  93. package/dist/{labelUtils-CSh956Gz.js → labelUtils-CJ6EaaYo.js} +1 -1
  94. package/dist/{lib-DfMn_3jf.js → lib-DurLxjMz.js} +21 -42
  95. package/dist/{package-DwX5gXIb.js → package-CawqE4gj.js} +1 -1
  96. package/dist/{pdf-CglSdC4O.js → pdf-2aQfvzB9.js} +1 -1
  97. package/dist/{render-common-DruozHP7.js → render-common-DrbN2WgW.js} +2 -2
  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/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-BtJSJ6AK.js → useConfig-CyCVHo81.js} +27 -17
  104. package/dist/{useNestedProp-CLEe1P5W.js → useNestedProp-B3XMQAL1.js} +1 -1
  105. package/dist/{useObjectBindings-CgRKOMSB.js → useObjectBindings-ByORl1rV.js} +1 -1
  106. package/dist/{usePrinter-Daqyj6c7.js → usePrinter-D53IAxB2.js} +2 -2
  107. package/dist/utils.js +3 -3
  108. package/dist/{vue-data-ui-C37q2rbt.js → vue-data-ui-DHA6rnQ7.js} +70 -70
  109. package/dist/vue-data-ui.js +74 -74
  110. package/dist/{vue-ui-3d-bar-B_z643_d.js → vue-ui-3d-bar-B3bLF2Fp.js} +7 -7
  111. package/dist/{vue-ui-accordion-BhOSscZB.js → vue-ui-accordion-D2W-dY3E.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CS1J-mHZ.js → vue-ui-age-pyramid-CvRi9Web.js} +7 -7
  113. package/dist/{vue-ui-annotator-DmTbmRrw.js → vue-ui-annotator-BTozB0Fb.js} +7 -7
  114. package/dist/{vue-ui-bullet-BUuF_-rE.js → vue-ui-bullet-BbCPpZ5k.js} +8 -8
  115. package/dist/{vue-ui-bump-Dt13LCR2.js → vue-ui-bump-FZIoCybJ.js} +100 -96
  116. package/dist/{vue-ui-candlestick-CgvK082R.js → vue-ui-candlestick-IlS8zO5O.js} +431 -416
  117. package/dist/{vue-ui-carousel-table-C6IZZLpG.js → vue-ui-carousel-table-DokjHbNr.js} +5 -5
  118. package/dist/{vue-ui-chestnut-B03dTYpe.js → vue-ui-chestnut-DoUFUSVm.js} +6 -6
  119. package/dist/{vue-ui-chord-R7YLYkOS.js → vue-ui-chord-6t-7dxVu.js} +9 -9
  120. package/dist/{vue-ui-circle-pack-CxIJbXSK.js → vue-ui-circle-pack-CexF2pcc.js} +7 -7
  121. package/dist/{vue-ui-cursor-Bqm8zbqD.js → vue-ui-cursor-YbgOW5z6.js} +4 -4
  122. package/dist/{vue-ui-dag-TqlqeLgZ.js → vue-ui-dag-B4RKzj4H.js} +8 -8
  123. package/dist/{vue-ui-dashboard-W0PV1gGV.js → vue-ui-dashboard-BUXA_h5X.js} +70 -70
  124. package/dist/{vue-ui-digits-D3VKW9O0.js → vue-ui-digits-C4eNwkQW.js} +4 -4
  125. package/dist/{vue-ui-donut-8W7ZV_hU.js → vue-ui-donut-BS9ICnxW.js} +3 -3
  126. package/dist/{vue-ui-donut-C_CUqRdv.js → vue-ui-donut-DBhaQARJ.js} +11 -11
  127. package/dist/{vue-ui-donut-evolution-CHQHSkpq.js → vue-ui-donut-evolution-B0v3uJNo.js} +10 -10
  128. package/dist/{vue-ui-dumbbell-D3G5uL-P.js → vue-ui-dumbbell-Dj-FFcXl.js} +8 -8
  129. package/dist/{vue-ui-flow-CjvO8Fsp.js → vue-ui-flow-CGjXnUTR.js} +8 -8
  130. package/dist/{vue-ui-funnel-eHR9hTpj.js → vue-ui-funnel-B8qoKSY6.js} +7 -7
  131. package/dist/{vue-ui-galaxy-DBarvxFP.js → vue-ui-galaxy-BOqqpg7g.js} +10 -10
  132. package/dist/{vue-ui-gauge-Cz6PC_H5.js → vue-ui-gauge-C6gbloYZ.js} +7 -7
  133. package/dist/{vue-ui-geo-BmjzP6NK.js → vue-ui-geo-BMRhXP7L.js} +8 -8
  134. package/dist/{vue-ui-gizmo-BChwImvX.js → vue-ui-gizmo-DjnW3oDO.js} +4 -4
  135. package/dist/{vue-ui-heatmap-h0_V5jv6.js → vue-ui-heatmap-DyxHJCSO.js} +8 -8
  136. package/dist/{vue-ui-hill-D_2DFdNy.js → vue-ui-hill-C4osOxU0.js} +7 -7
  137. package/dist/{vue-ui-history-plot-Bis3f9Ub.js → vue-ui-history-plot-Cwi7sVNg.js} +9 -9
  138. package/dist/{vue-ui-horizontal-bar-2AOgQ694.js → vue-ui-horizontal-bar-CrgP4Bm8.js} +11 -11
  139. package/dist/{vue-ui-kpi-k0yLSsqF.js → vue-ui-kpi-is2_nVkE.js} +4 -4
  140. package/dist/{vue-ui-label-aHnVFvfK.js → vue-ui-label-BbX73tEX.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-DUsSEO5b.js → vue-ui-mini-loader-DntLxOr0.js} +3 -3
  142. package/dist/{vue-ui-molecule--1J4__BY.js → vue-ui-molecule-CIY3r7HA.js} +6 -6
  143. package/dist/{vue-ui-mood-radar-BEruKK_i.js → vue-ui-mood-radar-CezYlJmD.js} +8 -8
  144. package/dist/{vue-ui-nested-donuts-MBeHoc-t.js → vue-ui-nested-donuts-CF7YdoRx.js} +10 -10
  145. package/dist/{vue-ui-onion-j0eEGvru.js → vue-ui-onion-Chk8CzSw.js} +10 -10
  146. package/dist/{vue-ui-parallel-coordinate-plot-BvuYSu3N.js → vue-ui-parallel-coordinate-plot-hKkob-cX.js} +10 -10
  147. package/dist/{vue-ui-quadrant-DWtwr7JT.js → vue-ui-quadrant-B3Wy4REJ.js} +10 -10
  148. package/dist/{vue-ui-quick-chart-vhICAvQe.js → vue-ui-quick-chart-rUvFKRs1.js} +8 -8
  149. package/dist/{vue-ui-radar-e9eoRxOC.js → vue-ui-radar-DA5EnHNt.js} +9 -9
  150. package/dist/{vue-ui-rating-WsMfVsJN.js → vue-ui-rating-DglGQ_DQ.js} +3 -3
  151. package/dist/{vue-ui-relation-circle-NgJ8121q.js → vue-ui-relation-circle-ta7aeXOK.js} +7 -7
  152. package/dist/{vue-ui-ridgeline-BZ1Czz8V.js → vue-ui-ridgeline-BDqNGJ20.js} +20 -13
  153. package/dist/{vue-ui-rings-grgJPuxE.js → vue-ui-rings-BbSBLvb4.js} +13 -13
  154. package/dist/{vue-ui-scatter-DuqZxbZD.js → vue-ui-scatter-DwgFHsYb.js} +10 -10
  155. package/dist/{vue-ui-skeleton-CnexlOV6.js → vue-ui-skeleton-UP0Bv65Q.js} +4 -4
  156. package/dist/{vue-ui-smiley-Bvs5RJtM.js → vue-ui-smiley-CmN35dmK.js} +3 -3
  157. package/dist/{vue-ui-spark-trend-C2knAS0F.js → vue-ui-spark-trend-BHC8GKeh.js} +4 -4
  158. package/dist/vue-ui-sparkbar-DG5Lx7L_.js +401 -0
  159. package/dist/{vue-ui-sparkgauge-CCkcq4Wh.js → vue-ui-sparkgauge-Budj4a8D.js} +4 -4
  160. package/dist/{vue-ui-sparkhistogram-B-fzheQo.js → vue-ui-sparkhistogram-EF6l_8DB.js} +5 -5
  161. package/dist/{vue-ui-sparkline-DVYlqELY.js → vue-ui-sparkline-Bt3WUBs7.js} +4 -4
  162. package/dist/vue-ui-sparkstackbar-zcc269TN.js +738 -0
  163. package/dist/{vue-ui-stackbar-CIUS0xkc.js → vue-ui-stackbar-RFBCfoIt.js} +612 -596
  164. package/dist/vue-ui-stackline-B2cHovb4.js +2463 -0
  165. package/dist/{vue-ui-strip-plot-Sshmlk9v.js → vue-ui-strip-plot-Cu-cVKCS.js} +8 -8
  166. package/dist/{vue-ui-table-DSUvcqI9.js → vue-ui-table-BukgLZ8K.js} +6 -6
  167. package/dist/{vue-ui-table-heatmap-btnDozZ-.js → vue-ui-table-heatmap-y9oWnS6t.js} +6 -6
  168. package/dist/{vue-ui-table-sparkline-C12IgrZG.js → vue-ui-table-sparkline-B4V_s9rK.js} +5 -5
  169. package/dist/{vue-ui-thermometer-3ZSPCE1q.js → vue-ui-thermometer-CqVDnPmF.js} +7 -7
  170. package/dist/{vue-ui-timer-Birf1RVz.js → vue-ui-timer-D2pn3RWL.js} +6 -6
  171. package/dist/{vue-ui-tiremarks-BuzKLW5l.js → vue-ui-tiremarks-BMIIhkaB.js} +7 -7
  172. package/dist/{vue-ui-treemap-DMwq5MYv.js → vue-ui-treemap-fFJPPf8-.js} +10 -10
  173. package/dist/{vue-ui-waffle-wjn4e1mz.js → vue-ui-waffle-B9TaBdel.js} +11 -11
  174. package/dist/{vue-ui-wheel-BS6f8xC-.js → vue-ui-wheel-BN-YBzNj.js} +7 -7
  175. package/dist/{vue-ui-word-cloud-BH1JB5hg.js → vue-ui-word-cloud-CZzUlZBc.js} +8 -8
  176. package/dist/{vue-ui-world-DtNML6Oz.js → vue-ui-world-C--4pHTs.js} +8 -8
  177. package/dist/{vue-ui-xy-DNvRGCN_.js → vue-ui-xy-16TcfetH.js} +47 -28
  178. package/dist/{vue-ui-xy-B9S7cAhC.js → vue-ui-xy-BTh5QolL.js} +31 -17
  179. package/dist/{vue-ui-xy-canvas-Hk0x8dd_.js → vue-ui-xy-canvas-BzbNRbft.js} +12 -12
  180. package/package.json +3 -3
  181. package/dist/vue-ui-sparkbar-Daxkni2h.js +0 -400
  182. package/dist/vue-ui-sparkstackbar-pip0BOeZ.js +0 -688
  183. package/dist/vue-ui-stackline-Dy4tIQwk.js +0 -2447
@@ -0,0 +1,401 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Ht as t, It as n, Jt as r, Nt as i, S as a, Ut as ee, X as o, Xt as s, i as c, mt as te, nt as l, q as ne, t as re, w as ie } from "./lib-DurLxjMz.js";
3
+ import { n as ae, t as oe } from "./useHints-Dq_w2E8B.js";
4
+ import { t as se } from "./useConfig-CyCVHo81.js";
5
+ import { n as u, t as ce } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as d } from "./useNestedProp-B3XMQAL1.js";
7
+ import { t as le } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as ue } from "./DefGrad-DVBqDjhO.js";
9
+ import { t as de } from "./usePrefersMotion-BC-CsqR1.js";
10
+ import { t as fe } 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 v, nextTick as y, normalizeProps as ge, normalizeStyle as b, onMounted as x, openBlock as S, ref as C, renderList as _e, renderSlot as w, toDisplayString as T, toRefs as E, unref as D, useSlots as O, watch as k } from "vue";
12
+ //#region src/components/vue-ui-sparkbar.vue
13
+ var A = /* @__PURE__ */ e({ default: () => L }), j = [
14
+ "onClick",
15
+ "onMouseenter",
16
+ "onMouseleave"
17
+ ], M = {
18
+ key: 1,
19
+ class: "vue-ui-sparkbar-datapoint-value"
20
+ }, N = ["xmlns", "viewBox"], P = [
21
+ "height",
22
+ "width",
23
+ "fill",
24
+ "rx"
25
+ ], F = [
26
+ "height",
27
+ "width",
28
+ "fill",
29
+ "rx"
30
+ ], I = [
31
+ "height",
32
+ "width",
33
+ "fill",
34
+ "rx"
35
+ ], ve = {
36
+ key: 2,
37
+ ref: "source",
38
+ dir: "auto"
39
+ }, L = {
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: A }) {
61
+ let L = me(() => import("./PackageVersion-CU9Hflo-.js").then((e) => e.t)), { vue_ui_sparkbar: ye } = se(), { isThemeValid: be, warnInvalidTheme: xe } = le(), R = de(), z = e, B = O(), V = C(ne()), H = C(K()), U = p(() => H.value.debug);
62
+ x(() => {
63
+ B["chart-background"] && U.value && console.warn("VueUiSparkbar does not support the #chart-background slot.");
64
+ }), ae({
65
+ config: () => H.value,
66
+ dataset: () => z.dataset,
67
+ component: "VueUiSparkbar",
68
+ rules: [oe.noHint]
69
+ });
70
+ let Se = p(() => s({
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: H.value.skeletonConfig ?? {}
82
+ })), { loading: W, FINAL_DATASET: G, manualLoading: Ce } = u({
83
+ ...E(z),
84
+ FINAL_CONFIG: H,
85
+ prepareConfig: K,
86
+ skeletonDataset: z.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: s({
107
+ defaultConfig: H.value,
108
+ userConfig: Se.value
109
+ })
110
+ });
111
+ function K() {
112
+ let e = d({
113
+ userConfig: z.config,
114
+ defaultConfig: ye
115
+ }), t = e.theme;
116
+ if (!t) return e;
117
+ if (!be.value(e)) return xe(e), e;
118
+ let i = d({
119
+ userConfig: fe[t] || z.config,
120
+ defaultConfig: e
121
+ }), a = d({
122
+ userConfig: z.config,
123
+ defaultConfig: i
124
+ });
125
+ return {
126
+ ...a,
127
+ customPalette: a.customPalette.length ? a.customPalette : r[t] || n
128
+ };
129
+ }
130
+ k(() => z.config, (e) => {
131
+ H.value = K();
132
+ }, { deep: !0 });
133
+ let we = p(() => ie(H.value.customPalette)), q = C(G.value.map((e) => ({
134
+ ...e,
135
+ value: H.value.style.animation.show ? 0 : e.value || 0,
136
+ formatter: e.formatter || null
137
+ }))), J = C(null);
138
+ x(async () => {
139
+ i(z.dataset) && l({
140
+ componentName: "VueUiSparkbar",
141
+ type: "dataset",
142
+ debug: U.value
143
+ }), Y();
144
+ });
145
+ function Y() {
146
+ if (H.value.style.animation.show && !R.value) {
147
+ let e = H.value.style.animation.animationFrames, t = G.value.map((t, n) => t.value / e), n = G.value.map((e) => e.value || 0).reduce((e, t) => e + t, 0), r = 0;
148
+ function i() {
149
+ r += n / e, r < n ? (q.value = q.value.map((e, n) => ({
150
+ ...e,
151
+ value: e.value += t[n]
152
+ })), J.value = requestAnimationFrame(i)) : q.value = G.value.map((e) => ({
153
+ ...e,
154
+ value: e.value || 0,
155
+ formatter: e.formatter || null
156
+ }));
157
+ }
158
+ i();
159
+ }
160
+ }
161
+ k(() => G.value, async (e) => {
162
+ cancelAnimationFrame(J.value), q.value = G.value.map((e) => ({
163
+ ...e,
164
+ value: H.value.style.animation.show && !R.value ? 0 : e.value || 0,
165
+ formatter: e.formatter || null
166
+ })), y(Y);
167
+ }, { deep: !0 });
168
+ let X = C({
169
+ width: 500,
170
+ height: 16
171
+ }), Te = p(() => Math.max(...G.value.map((e) => e.value))), Ee = p(() => (U.value && G.value.forEach((e, t) => {
172
+ te({
173
+ datasetObject: e,
174
+ requiredAttributes: ["name", "value"]
175
+ }).forEach((e) => {
176
+ l({
177
+ componentName: "VueUiSparkbar",
178
+ type: "datasetSerieAttribute",
179
+ property: e,
180
+ index: t
181
+ });
182
+ });
183
+ }), q.value.map((e, t) => ({
184
+ ...e,
185
+ value: e.value || 0,
186
+ color: a(e.color) || we.value[t] || n[t] || n[t % n.length]
187
+ }))));
188
+ function De(e) {
189
+ return e / Te.value;
190
+ }
191
+ function Z(e) {
192
+ return H.value.style.layout.independant ? e.target ? e.value / e.target : H.value.style.layout.percentage ? e.value > 100 ? 1 : e.value / 100 : H.value.style.layout.target === 0 ? 1 : e.value / H.value.style.layout.target : De(e.value);
193
+ }
194
+ function Q(e) {
195
+ return H.value.style.layout.independant && e.target || H.value.style.layout.target;
196
+ }
197
+ let Oe = A;
198
+ function ke(e, t) {
199
+ Oe("selectDatapoint", {
200
+ datapoint: e,
201
+ index: t
202
+ }), H.value.events.datapointClick && H.value.events.datapointClick({
203
+ datapoint: e,
204
+ seriesIndex: t
205
+ });
206
+ }
207
+ function Ae(e, t) {
208
+ H.value.events.datapointEnter && H.value.events.datapointEnter({
209
+ datapoint: e,
210
+ seriesIndex: t
211
+ });
212
+ }
213
+ function je(e, t) {
214
+ H.value.events.datapointLeave && H.value.events.datapointLeave({
215
+ datapoint: e,
216
+ seriesIndex: t
217
+ });
218
+ }
219
+ let $ = p(() => H.value.style.bar.borderRadius == null ? X.value.height / 2 : Math.min(X.value.height / 2, H.value.style.bar.borderRadius));
220
+ return (e, n) => (S(), h("div", {
221
+ class: "vue-data-ui-component vue-ui-sparkbar",
222
+ style: b({
223
+ width: "100%",
224
+ position: "relative",
225
+ fontFamily: H.value.style.fontFamily,
226
+ background: z.backgroundOpacity === null ? H.value.style.backgroundColor : D(t)(H.value.style.backgroundColor, z.backgroundOpacity)
227
+ })
228
+ }, [
229
+ e.$slots.title ? w(e.$slots, "title", ge(he({ title: {
230
+ ...e.title,
231
+ title: H.value.style.title.text,
232
+ subtitle: H.value.style.title.subtitle.text
233
+ } })), void 0, void 0, 0) : m("", !0),
234
+ !e.$slots.title && H.value.style.title.text ? (S(), h("div", {
235
+ key: 1,
236
+ class: "vue-ui-sparkbar-title-container",
237
+ style: b({
238
+ background: H.value.style.title.backgroundColor,
239
+ margin: H.value.style.title.margin,
240
+ textAlign: H.value.style.title.textAlign
241
+ })
242
+ }, [g("div", {
243
+ class: "vue-ui-sparkbar-title",
244
+ style: b({
245
+ fontSize: H.value.style.title.fontSize + "px",
246
+ color: H.value.style.title.color,
247
+ fontWeight: H.value.style.title.bold ? "bold" : "normal"
248
+ })
249
+ }, T(H.value.style.title.text), 5), H.value.style.title.subtitle.text ? (S(), h("div", {
250
+ key: 0,
251
+ class: "vue-ui-sparkbar-subtitle",
252
+ style: b({
253
+ fontSize: H.value.style.title.subtitle.fontSize + "px",
254
+ color: H.value.style.title.subtitle.color,
255
+ fontWeight: H.value.style.title.subtitle.bold ? "bold" : "normal"
256
+ })
257
+ }, T(H.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
258
+ (S(!0), h(f, null, _e(Ee.value, (n, r) => (S(), h("div", {
259
+ style: b(`display:flex !important;${["left", "right"].includes(H.value.style.labels.name.position) ? `flex-direction: ${H.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${H.value.style.gap}px !important;align-items:center;${D(G).length > 0 && r !== D(G).length - 1 ? "margin-bottom:6px" : ""}`),
260
+ onClick: (e) => ke(n, r),
261
+ onMouseenter: (e) => Ae(n, r),
262
+ onMouseleave: (e) => je(n, r)
263
+ }, [
264
+ D(W) ? m("", !0) : w(e.$slots, "data-label", v({ ref_for: !0 }, { bar: {
265
+ ...n,
266
+ target: Q(n),
267
+ valueLabel: D(c)(n.formatter, n.value, D(o)({
268
+ p: n.prefix || "",
269
+ v: n.value,
270
+ s: n.suffix || "",
271
+ r: n.rounding || 0
272
+ }), {
273
+ datapoint: n,
274
+ seriesIndex: r
275
+ }),
276
+ targetLabel: D(c)(n.formatter, Q(n), D(o)({
277
+ p: n.prefix || "",
278
+ v: Q(n),
279
+ s: n.suffix || "",
280
+ r: n.rounding || 0
281
+ }), {
282
+ datapoint: n,
283
+ seriesIndex: r
284
+ })
285
+ } }), void 0, void 0, 0),
286
+ !e.$slots["data-label"] || D(W) ? (S(), h("div", {
287
+ key: 1,
288
+ style: b({
289
+ display: "flex",
290
+ justifyContent: ["right", "top-right"].includes(H.value.style.labels.name.position) ? "flex-end" : ["top-center"].includes(H.value.style.labels.name.position) ? "center" : "flex-start",
291
+ alignItems: "center",
292
+ width: H.value.style.labels.name.width,
293
+ color: H.value.style.labels.name.color,
294
+ fontSize: H.value.style.labels.fontSize + "px",
295
+ fontWeight: H.value.style.labels.name.bold ? "bold" : "normal",
296
+ flexWrap: "wrap"
297
+ })
298
+ }, [D(W) ? (S(), h("div", {
299
+ key: 0,
300
+ class: "vue-ui-sparkbar-skeleton-name",
301
+ style: b({
302
+ width: "60px",
303
+ height: H.value.style.labels.fontSize + "px",
304
+ borderRadius: H.value.style.labels.fontSize / 4 + "px",
305
+ display: "flex",
306
+ alignItems: "center",
307
+ justifyContent: "space-between",
308
+ marginTop: "5px"
309
+ })
310
+ }, [g("div", { style: b({
311
+ height: "100%",
312
+ width: "40px",
313
+ borderRadius: H.value.style.labels.fontSize / 4 + "px",
314
+ backgroundColor: "#6A6A6A80"
315
+ }) }, null, 4), g("div", { style: b({
316
+ height: "100%",
317
+ width: "15px",
318
+ borderRadius: H.value.style.labels.fontSize / 4 + "px",
319
+ backgroundColor: "#6A6A6A80"
320
+ }) }, null, 4)], 4)) : (S(), h(f, { key: 1 }, [
321
+ g("span", null, T(n.name), 1),
322
+ H.value.style.labels.value.show ? (S(), h("span", {
323
+ key: 0,
324
+ style: b(`font-weight:${H.value.style.labels.value.bold ? "bold" : "normal"}`),
325
+ class: "vue-ui-sparkbar-datapoint-name"
326
+ }, ": " + T(D(c)(n.formatter, n.value, D(o)({
327
+ p: n.prefix || "",
328
+ v: n.value,
329
+ s: n.suffix || "",
330
+ r: n.rounding || 0
331
+ }), {
332
+ datapoint: n,
333
+ seriesIndex: r
334
+ })), 5)) : m("", !0),
335
+ H.value.style.layout.showTargetValue ? (S(), h("span", M, T(" " + H.value.style.layout.targetValueText) + " " + T(D(c)(n.formatter, Q(n), D(o)({
336
+ p: n.prefix || "",
337
+ v: Q(n),
338
+ s: n.suffix || "",
339
+ r: n.rounding || 0
340
+ }), {
341
+ datapoint: n,
342
+ seriesIndex: r
343
+ })), 1)) : m("", !0)
344
+ ], 64))], 4)) : m("", !0),
345
+ (S(), h("svg", {
346
+ role: "img",
347
+ xmlns: D(re),
348
+ viewBox: `0 0 ${X.value.width} ${X.value.height}`,
349
+ width: "100%"
350
+ }, [
351
+ _(D(L)),
352
+ g("defs", null, [_(ue, {
353
+ t: "linear",
354
+ x1: "0%",
355
+ y1: "0%",
356
+ x2: "100%",
357
+ y2: "0%",
358
+ id: `sparkbar_gradient_${r}_${V.value}`,
359
+ stops: [[
360
+ "0%",
361
+ D(t)(D(ee)(n.color, .03), 100 - H.value.style.bar.gradient.intensity),
362
+ 1
363
+ ], [
364
+ "100%",
365
+ n.color,
366
+ 1
367
+ ]]
368
+ }, null, 8, ["id", "stops"])]),
369
+ g("rect", {
370
+ height: X.value.height,
371
+ width: X.value.width,
372
+ x: 0,
373
+ y: 0,
374
+ fill: D(t)(H.value.style.gutter.backgroundColor, H.value.style.gutter.opacity),
375
+ rx: $.value
376
+ }, null, 8, P),
377
+ g("rect", {
378
+ height: X.value.height,
379
+ width: X.value.width * Z(n),
380
+ x: 0,
381
+ y: 0,
382
+ fill: H.value.style.bar.gradient.underlayerColor,
383
+ rx: $.value
384
+ }, null, 8, F),
385
+ g("rect", {
386
+ height: X.value.height,
387
+ width: X.value.width * Z(n),
388
+ x: 0,
389
+ y: 0,
390
+ fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${V.value})` : n.color,
391
+ rx: $.value
392
+ }, null, 8, I)
393
+ ], 8, N))
394
+ ], 44, j))), 256)),
395
+ e.$slots.source ? (S(), h("div", ve, [w(e.$slots, "source")], 512)) : m("", !0),
396
+ D(W) ? (S(), pe(ce, { key: 3 })) : m("", !0)
397
+ ], 4));
398
+ }
399
+ };
400
+ //#endregion
401
+ export { A as n, L as t };
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Nt as t, X as n, Xt as r, b as i, bt as ee, i as a, mt as te, nt as o, q as ne, t as re } from "./lib-DfMn_3jf.js";
2
+ import { Nt as t, X as n, Xt as r, b as i, bt as ee, i as a, mt as te, nt as o, q as ne, t as re } from "./lib-DurLxjMz.js";
3
3
  import { n as s, t as c } from "./useHints-Dq_w2E8B.js";
4
- import { t as ie } from "./useConfig-BtJSJ6AK.js";
4
+ import { t as ie } from "./useConfig-CyCVHo81.js";
5
5
  import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as l } from "./useNestedProp-CLEe1P5W.js";
6
+ import { t as l } from "./useNestedProp-B3XMQAL1.js";
7
7
  import { t as se } from "./useThemeCheck-C43Tcqmk.js";
8
8
  import { t as ce } from "./DefGrad-DVBqDjhO.js";
9
9
  import { t as le } from "./useChartAccessibility-DYqac8yF.js";
@@ -52,7 +52,7 @@ var T = /* @__PURE__ */ e({ default: () => j }), he = ["xmlns", "viewBox"], ge =
52
52
  }
53
53
  },
54
54
  setup(e) {
55
- let T = fe(() => import("./PackageVersion-CrLLZ567.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = ie(), { isThemeValid: M, warnInvalidTheme: N } = se(), P = u(), F = b(null), I = e, L = b(ne()), R = b(W());
55
+ let T = fe(() => import("./PackageVersion-CU9Hflo-.js").then((e) => e.t)), { vue_ui_sparkgauge: j } = ie(), { isThemeValid: M, warnInvalidTheme: N } = se(), P = u(), F = b(null), I = e, L = b(ne()), R = b(W());
56
56
  s({
57
57
  config: () => R.value,
58
58
  dataset: () => I.dataset,
@@ -1,11 +1,11 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Ht as t, Nt as n, Ut as r, X as i, Xt as a, i as o, mt as s, nt as c, q as l, t as ee } from "./lib-DfMn_3jf.js";
2
+ import { Ht as t, Nt as n, Ut as r, X as i, Xt as a, i as o, mt as s, nt as c, q as l, t as ee } from "./lib-DurLxjMz.js";
3
3
  import { n as u, t as d } from "./useHints-Dq_w2E8B.js";
4
- import { t as f } from "./useConfig-BtJSJ6AK.js";
4
+ import { t as f } from "./useConfig-CyCVHo81.js";
5
5
  import { n as p, t as te } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as m } from "./useNestedProp-CLEe1P5W.js";
6
+ import { t as m } from "./useNestedProp-B3XMQAL1.js";
7
7
  import { t as ne } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as re } from "./Shape-BV_BCG2F.js";
8
+ import { t as re } from "./Shape-Dqpgbk7w.js";
9
9
  import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
10
10
  import { l as ae, t as oe } from "./useResponsive-ZtArZtUf.js";
11
11
  import { t as h } from "./DefGrad-DVBqDjhO.js";
@@ -89,7 +89,7 @@ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, C
89
89
  emits: ["selectDatapoint"],
90
90
  setup(e, { emit: ie }) {
91
91
  be((e) => ({ v5034d9c8: Xe.value }));
92
- let A = pe(() => import("./PackageVersion-CrLLZ567.js").then((e) => e.t)), { vue_ui_sparkhistogram: j } = f(), { isThemeValid: Ie, warnInvalidTheme: Le } = ne(), M = e, N = w(l()), P = w(null), F = w(null), I = w(null), L = w(null), R = w(null), z = w(!1), B = w(null), V = w("pointer"), H = w(q());
92
+ let A = pe(() => import("./PackageVersion-CU9Hflo-.js").then((e) => e.t)), { vue_ui_sparkhistogram: j } = f(), { isThemeValid: Ie, warnInvalidTheme: Le } = ne(), M = e, N = w(l()), P = w(null), F = w(null), I = w(null), L = w(null), R = w(null), z = w(!1), B = w(null), V = w("pointer"), H = w(q());
93
93
  u({
94
94
  config: () => H.value,
95
95
  dataset: () => M.dataset,
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { A as t, H as n, Ht as r, I as i, L as a, N as o, Nt as s, Ot as c, P as l, S as u, U as d, Ut as f, V as p, Vt as ee, X as te, Xt as ne, at as re, d as ie, i as m, k as ae, m as oe, mt as se, nt as ce, q as le, st as ue, t as de, xt as fe } from "./lib-DfMn_3jf.js";
2
+ import { A as t, H as n, Ht as r, I as i, L as a, N as o, Nt as s, Ot as c, P as l, S as u, U as d, Ut as f, V as p, Vt as ee, X as te, Xt as ne, at as re, d as ie, i as m, k as ae, m as oe, mt as se, nt as ce, q as le, st as ue, t as de, xt as fe } from "./lib-DurLxjMz.js";
3
3
  import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
4
4
  import { t as h } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as he } from "./useConfig-BtJSJ6AK.js";
5
+ import { t as he } from "./useConfig-CyCVHo81.js";
6
6
  import { n as ge, t as _e } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as ve } from "./useNestedProp-CLEe1P5W.js";
7
+ import { t as ve } from "./useNestedProp-B3XMQAL1.js";
8
8
  import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
9
9
  import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
10
10
  import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
@@ -697,7 +697,7 @@ var gt = ["innerHTML"], _t = {
697
697
  },
698
698
  emits: ["hoverIndex", "selectDatapoint"],
699
699
  setup(e, { emit: be }) {
700
- let Ve = je(() => import("./PackageVersion-CrLLZ567.js").then((e) => e.t)), He = je(() => import("./SparkTooltip-BqzJa3h2.js")), { vue_ui_sparkline: Ue } = he(), { isThemeValid: We, warnInvalidTheme: Ge } = ye(), Ke = Ee(), k = e, qe = _(() => Array.isArray(k.dataset) && k.dataset.length > 0), A = w(le()), j = w(null), Ye = w(null), Xe = w(null), M = w(null), N = w(null), P = w(R());
700
+ let Ve = je(() => import("./PackageVersion-CU9Hflo-.js").then((e) => e.t)), He = je(() => import("./SparkTooltip-Da4O7iOD.js")), { vue_ui_sparkline: Ue } = he(), { isThemeValid: We, warnInvalidTheme: Ge } = ye(), Ke = Ee(), k = e, qe = _(() => Array.isArray(k.dataset) && k.dataset.length > 0), A = w(le()), j = w(null), Ye = w(null), Xe = w(null), M = w(null), N = w(null), P = w(R());
701
701
  pe({
702
702
  config: () => P.value,
703
703
  dataset: () => k.dataset,