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