vue-data-ui 3.22.8 → 3.22.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/BaseIcon-CDTIUIKV.js +483 -0
  4. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  11. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
  12. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
  13. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  14. package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
  15. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
  16. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  17. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  18. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  19. package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  90. package/dist/exposedLib-CZbtc2a6.js +25 -0
  91. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  94. package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  96. package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  103. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  104. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  105. package/dist/utils.js +26 -24
  106. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  109. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  111. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  112. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  113. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  114. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
  115. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  116. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  117. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  118. package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
  119. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  120. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
  121. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  122. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
  123. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  124. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  125. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  126. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  127. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  128. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  129. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  130. package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
  131. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  132. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
  133. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  134. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
  135. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  136. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  138. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  139. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
  140. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  141. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  142. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  143. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  144. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  145. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  146. package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
  147. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  148. package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
  149. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  150. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  151. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
  152. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
  153. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
  154. package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
  155. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
  156. package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
  157. package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
  158. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  159. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
  160. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  161. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
  162. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  163. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  164. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  165. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  166. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
  167. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  168. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
  169. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  170. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  171. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  172. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
  173. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
  174. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
  175. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  176. package/package.json +1 -1
  177. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  178. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  179. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
  181. package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
  182. package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
  183. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
  184. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  185. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  186. package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
  187. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  188. package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
  189. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  190. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  191. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
  192. package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
  193. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
  194. package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
  195. package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
  196. package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
  197. package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
  198. package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
  199. package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
  200. package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
  201. package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
  202. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  203. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  204. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
  205. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  206. package/dist/vue-ui-table-Q3brrivC.js +0 -1338
  207. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
  208. package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
  209. package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
@@ -1,393 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, G as n, J as r, Kt as i, Mt as a, Rt as o, S as ee, Wt as te, b as s, dt as c, i as l, kt as ne, t as re, zt as ie } from "./lib-JqW18y5I.js";
3
- import { t as ae } from "./useConfig-DYM3f6EI.js";
4
- import { n as oe, t as se } from "./BaseScanner-DZvpgOjM.js";
5
- import { t as u } from "./useNestedProp-DIuuzG1r.js";
6
- import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
7
- import { t as le } from "./usePrefersMotion-BC-CsqR1.js";
8
- import { t as d } from "./vue_ui_sparkbar-z6qO--Kf.js";
9
- import { Fragment as f, computed as p, createBlock as ue, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as de, defineAsyncComponent as fe, mergeProps as _, nextTick as pe, normalizeProps as me, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as he, renderSlot as S, toDisplayString as C, toRefs as ge, unref as w, useSlots as T, watch as E } from "vue";
10
- //#region src/components/vue-ui-sparkbar.vue
11
- var D = /* @__PURE__ */ e({ default: () => R }), O = [
12
- "onClick",
13
- "onMouseenter",
14
- "onMouseleave"
15
- ], k = {
16
- key: 1,
17
- class: "vue-ui-sparkbar-datapoint-value"
18
- }, A = ["xmlns", "viewBox"], j = ["id"], M = ["stop-color"], N = ["stop-color"], P = [
19
- "height",
20
- "width",
21
- "fill",
22
- "rx"
23
- ], F = [
24
- "height",
25
- "width",
26
- "fill",
27
- "rx"
28
- ], I = [
29
- "height",
30
- "width",
31
- "fill",
32
- "rx"
33
- ], L = {
34
- key: 2,
35
- ref: "source",
36
- dir: "auto"
37
- }, R = {
38
- __name: "vue-ui-sparkbar",
39
- props: {
40
- config: {
41
- type: Object,
42
- default() {
43
- return {};
44
- }
45
- },
46
- dataset: {
47
- type: Array,
48
- default() {
49
- return [];
50
- }
51
- },
52
- backgroundOpacity: {
53
- type: Number,
54
- default: null
55
- }
56
- },
57
- emits: ["selectDatapoint"],
58
- setup(e, { emit: D }) {
59
- let R = fe(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_sparkbar: _e } = ae(), { isThemeValid: ve, warnInvalidTheme: ye } = ce(), z = le(), B = e, be = T();
60
- y(() => {
61
- be["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
62
- });
63
- let V = x(n()), H = x(K()), xe = p(() => i({
64
- defaultConfig: { style: {
65
- backgroundColor: "#99999930",
66
- animation: { show: !1 },
67
- layout: { independant: !0 },
68
- gutter: {
69
- backgroundColor: "#6A6A6A",
70
- opacity: 50
71
- },
72
- bar: { gradient: { underlayerColor: "#6A6A6A" } }
73
- } },
74
- userConfig: H.value.skeletonConfig ?? {}
75
- })), { loading: U, FINAL_DATASET: W, manualLoading: Se } = oe({
76
- ...ge(B),
77
- FINAL_CONFIG: H,
78
- prepareConfig: K,
79
- skeletonDataset: B.config?.skeletonDataset ?? [
80
- {
81
- name: "_",
82
- value: 21,
83
- target: 25,
84
- color: "#808080"
85
- },
86
- {
87
- name: "_",
88
- value: 13,
89
- target: 25,
90
- color: "#ADADAD"
91
- },
92
- {
93
- name: "_",
94
- value: 8,
95
- target: 25,
96
- color: "#DBDBDB"
97
- }
98
- ],
99
- skeletonConfig: i({
100
- defaultConfig: H.value,
101
- userConfig: xe.value
102
- })
103
- }), G = p(() => !!H.value.debug);
104
- function K() {
105
- let e = u({
106
- userConfig: B.config,
107
- defaultConfig: _e
108
- }), t = e.theme;
109
- if (!t) return e;
110
- if (!ve.value(e)) return ye(e), e;
111
- let n = u({
112
- userConfig: d[t] || B.config,
113
- defaultConfig: e
114
- }), r = u({
115
- userConfig: B.config,
116
- defaultConfig: n
117
- });
118
- return {
119
- ...r,
120
- customPalette: r.customPalette.length ? r.customPalette : te[t] || a
121
- };
122
- }
123
- E(() => B.config, (e) => {
124
- H.value = K();
125
- }, { deep: !0 });
126
- let Ce = p(() => ee(H.value.customPalette)), q = x(W.value.map((e) => ({
127
- ...e,
128
- value: H.value.style.animation.show ? 0 : e.value || 0,
129
- formatter: e.formatter || null
130
- }))), J = x(null);
131
- y(async () => {
132
- ne(B.dataset) && t({
133
- componentName: "VueUiSparkbar",
134
- type: "dataset",
135
- debug: G.value
136
- }), Y();
137
- });
138
- function Y() {
139
- if (H.value.style.animation.show && !z.value) {
140
- let e = H.value.style.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;
141
- function i() {
142
- r += n / e, r < n ? (q.value = q.value.map((e, n) => ({
143
- ...e,
144
- value: e.value += t[n]
145
- })), J.value = requestAnimationFrame(i)) : q.value = W.value.map((e) => ({
146
- ...e,
147
- value: e.value || 0,
148
- formatter: e.formatter || null
149
- }));
150
- }
151
- i();
152
- }
153
- }
154
- E(() => W.value, async (e) => {
155
- cancelAnimationFrame(J.value), q.value = W.value.map((e) => ({
156
- ...e,
157
- value: H.value.style.animation.show && !z.value ? 0 : e.value || 0,
158
- formatter: e.formatter || null
159
- })), pe(Y);
160
- }, { deep: !0 });
161
- let X = x({
162
- width: 500,
163
- height: 16
164
- }), we = p(() => Math.max(...W.value.map((e) => e.value))), Te = p(() => (W.value.forEach((e, n) => {
165
- c({
166
- datasetObject: e,
167
- requiredAttributes: ["name", "value"]
168
- }).forEach((e) => {
169
- t({
170
- componentName: "VueUiSparkbar",
171
- type: "datasetSerieAttribute",
172
- property: e,
173
- index: n,
174
- debug: G.value
175
- });
176
- });
177
- }), q.value.map((e, t) => ({
178
- ...e,
179
- value: e.value || 0,
180
- color: s(e.color) || Ce.value[t] || a[t] || a[t % a.length]
181
- }))));
182
- function Z(e) {
183
- return e / we.value;
184
- }
185
- function Q(e) {
186
- 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 : Z(e.value);
187
- }
188
- function $(e) {
189
- return H.value.style.layout.independant && e.target || H.value.style.layout.target;
190
- }
191
- let Ee = D;
192
- function De(e, t) {
193
- Ee("selectDatapoint", {
194
- datapoint: e,
195
- index: t
196
- }), H.value.events.datapointClick && H.value.events.datapointClick({
197
- datapoint: e,
198
- seriesIndex: t
199
- });
200
- }
201
- function Oe(e, t) {
202
- H.value.events.datapointEnter && H.value.events.datapointEnter({
203
- datapoint: e,
204
- seriesIndex: t
205
- });
206
- }
207
- function ke(e, t) {
208
- H.value.events.datapointLeave && H.value.events.datapointLeave({
209
- datapoint: e,
210
- seriesIndex: t
211
- });
212
- }
213
- return (e, t) => (b(), h("div", {
214
- class: "vue-data-ui-component vue-ui-sparkbar",
215
- style: v({
216
- width: "100%",
217
- position: "relative",
218
- fontFamily: H.value.style.fontFamily,
219
- background: B.backgroundOpacity === null ? H.value.style.backgroundColor : w(o)(H.value.style.backgroundColor, B.backgroundOpacity)
220
- })
221
- }, [
222
- e.$slots.title ? S(e.$slots, "title", me(_({ key: 0 }, { title: {
223
- ...e.title,
224
- title: H.value.style.title.text,
225
- subtitle: H.value.style.title.subtitle.text
226
- } }))) : m("", !0),
227
- !e.$slots.title && H.value.style.title.text ? (b(), h("div", {
228
- key: 1,
229
- class: "vue-ui-sparkbar-title-container",
230
- style: v({
231
- background: H.value.style.title.backgroundColor,
232
- margin: H.value.style.title.margin,
233
- textAlign: H.value.style.title.textAlign
234
- })
235
- }, [g("div", {
236
- class: "vue-ui-sparkbar-title",
237
- style: v({
238
- fontSize: H.value.style.title.fontSize + "px",
239
- color: H.value.style.title.color,
240
- fontWeight: H.value.style.title.bold ? "bold" : "normal"
241
- })
242
- }, C(H.value.style.title.text), 5), H.value.style.title.subtitle.text ? (b(), h("div", {
243
- key: 0,
244
- class: "vue-ui-sparkbar-subtitle",
245
- style: v({
246
- fontSize: H.value.style.title.subtitle.fontSize + "px",
247
- color: H.value.style.title.subtitle.color,
248
- fontWeight: H.value.style.title.subtitle.bold ? "bold" : "normal"
249
- })
250
- }, C(H.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
251
- (b(!0), h(f, null, he(Te.value, (t, n) => (b(), h("div", {
252
- style: v(`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;${w(W).length > 0 && n !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
253
- onClick: (e) => De(t, n),
254
- onMouseenter: (e) => Oe(t, n),
255
- onMouseleave: (e) => ke(t, n)
256
- }, [
257
- w(U) ? m("", !0) : S(e.$slots, "data-label", _({
258
- key: 0,
259
- ref_for: !0
260
- }, { bar: {
261
- ...t,
262
- target: $(t),
263
- valueLabel: w(l)(t.formatter, t.value, w(r)({
264
- p: t.prefix || "",
265
- v: t.value,
266
- s: t.suffix || "",
267
- r: t.rounding || 0
268
- }), {
269
- datapoint: t,
270
- seriesIndex: n
271
- }),
272
- targetLabel: w(l)(t.formatter, $(t), w(r)({
273
- p: t.prefix || "",
274
- v: $(t),
275
- s: t.suffix || "",
276
- r: t.rounding || 0
277
- }), {
278
- datapoint: t,
279
- seriesIndex: n
280
- })
281
- } })),
282
- !e.$slots["data-label"] || w(U) ? (b(), h("div", {
283
- key: 1,
284
- style: v({
285
- display: "flex",
286
- 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",
287
- alignItems: "center",
288
- width: H.value.style.labels.name.width,
289
- color: H.value.style.labels.name.color,
290
- fontSize: H.value.style.labels.fontSize + "px",
291
- fontWeight: H.value.style.labels.name.bold ? "bold" : "normal",
292
- flexWrap: "wrap"
293
- })
294
- }, [w(U) ? (b(), h("div", {
295
- key: 0,
296
- class: "vue-ui-sparkbar-skeleton-name",
297
- style: v({
298
- width: "60px",
299
- height: H.value.style.labels.fontSize + "px",
300
- borderRadius: H.value.style.labels.fontSize / 4 + "px",
301
- display: "flex",
302
- alignItems: "center",
303
- justifyContent: "space-between",
304
- marginTop: "5px"
305
- })
306
- }, [g("div", { style: v({
307
- height: "100%",
308
- width: "40px",
309
- borderRadius: H.value.style.labels.fontSize / 4 + "px",
310
- backgroundColor: "#6A6A6A80"
311
- }) }, null, 4), g("div", { style: v({
312
- height: "100%",
313
- width: "15px",
314
- borderRadius: H.value.style.labels.fontSize / 4 + "px",
315
- backgroundColor: "#6A6A6A80"
316
- }) }, null, 4)], 4)) : (b(), h(f, { key: 1 }, [
317
- g("span", null, C(t.name), 1),
318
- H.value.style.labels.value.show ? (b(), h("span", {
319
- key: 0,
320
- style: v(`font-weight:${H.value.style.labels.value.bold ? "bold" : "normal"}`),
321
- class: "vue-ui-sparkbar-datapoint-name"
322
- }, ": " + C(w(l)(t.formatter, t.value, w(r)({
323
- p: t.prefix || "",
324
- v: t.value,
325
- s: t.suffix || "",
326
- r: t.rounding || 0
327
- }), {
328
- datapoint: t,
329
- seriesIndex: n
330
- })), 5)) : m("", !0),
331
- H.value.style.layout.showTargetValue ? (b(), h("span", k, C(" " + H.value.style.layout.targetValueText) + " " + C(w(l)(t.formatter, $(t), w(r)({
332
- p: t.prefix || "",
333
- v: $(t),
334
- s: t.suffix || "",
335
- r: t.rounding || 0
336
- }), {
337
- datapoint: t,
338
- seriesIndex: n
339
- })), 1)) : m("", !0)
340
- ], 64))], 4)) : m("", !0),
341
- (b(), h("svg", {
342
- role: "img",
343
- xmlns: w(re),
344
- viewBox: `0 0 ${X.value.width} ${X.value.height}`,
345
- width: "100%"
346
- }, [
347
- de(w(R)),
348
- g("defs", null, [g("linearGradient", {
349
- x1: "0%",
350
- y1: "0%",
351
- x2: "100%",
352
- y2: "0%",
353
- id: `sparkbar_gradient_${n}_${V.value}`
354
- }, [g("stop", {
355
- offset: "0%",
356
- "stop-color": w(o)(w(ie)(t.color, .03), 100 - H.value.style.bar.gradient.intensity)
357
- }, null, 8, M), g("stop", {
358
- offset: "100%",
359
- "stop-color": t.color
360
- }, null, 8, N)], 8, j)]),
361
- g("rect", {
362
- height: X.value.height,
363
- width: X.value.width,
364
- x: 0,
365
- y: 0,
366
- fill: w(o)(H.value.style.gutter.backgroundColor, H.value.style.gutter.opacity),
367
- rx: X.value.height / 2
368
- }, null, 8, P),
369
- g("rect", {
370
- height: X.value.height,
371
- width: X.value.width * Q(t),
372
- x: 0,
373
- y: 0,
374
- fill: H.value.style.bar.gradient.underlayerColor,
375
- rx: X.value.height / 2
376
- }, null, 8, F),
377
- g("rect", {
378
- height: X.value.height,
379
- width: X.value.width * Q(t),
380
- x: 0,
381
- y: 0,
382
- fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${n}_${V.value})` : t.color,
383
- rx: X.value.height / 2
384
- }, null, 8, I)
385
- ], 8, A))
386
- ], 44, O))), 256)),
387
- e.$slots.source ? (b(), h("div", L, [S(e.$slots, "source")], 512)) : m("", !0),
388
- w(U) ? (b(), ue(se, { key: 3 })) : m("", !0)
389
- ], 4));
390
- }
391
- };
392
- //#endregion
393
- export { D as n, R as t };