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
@@ -1,393 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Gt as t, Lt as n, Ot as r, Q as i, Rt as a, S as ee, Ut as te, W as ne, b as o, i as s, jt as c, q as l, t as re, ut as ie } from "./lib-EAmk-PgA.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-D8XqxgOU.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-Dse0n05o.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(ne()), H = x(K()), xe = p(() => t({
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: t({
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] || c
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
- r(B.dataset) && i({
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, t) => {
165
- ie({
166
- datasetObject: e,
167
- requiredAttributes: ["name", "value"]
168
- }).forEach((e) => {
169
- i({
170
- componentName: "VueUiSparkbar",
171
- type: "datasetSerieAttribute",
172
- property: e,
173
- index: t,
174
- debug: G.value
175
- });
176
- });
177
- }), q.value.map((e, t) => ({
178
- ...e,
179
- value: e.value || 0,
180
- color: o(e.color) || Ce.value[t] || c[t] || c[t % c.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(n)(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, r) => (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 && r !== w(W).length - 1 ? "margin-bottom:6px" : ""}`),
253
- onClick: (e) => De(t, r),
254
- onMouseenter: (e) => Oe(t, r),
255
- onMouseleave: (e) => ke(t, r)
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(s)(t.formatter, t.value, w(l)({
264
- p: t.prefix || "",
265
- v: t.value,
266
- s: t.suffix || "",
267
- r: t.rounding || 0
268
- }), {
269
- datapoint: t,
270
- seriesIndex: r
271
- }),
272
- targetLabel: w(s)(t.formatter, $(t), w(l)({
273
- p: t.prefix || "",
274
- v: $(t),
275
- s: t.suffix || "",
276
- r: t.rounding || 0
277
- }), {
278
- datapoint: t,
279
- seriesIndex: r
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(s)(t.formatter, t.value, w(l)({
323
- p: t.prefix || "",
324
- v: t.value,
325
- s: t.suffix || "",
326
- r: t.rounding || 0
327
- }), {
328
- datapoint: t,
329
- seriesIndex: r
330
- })), 5)) : m("", !0),
331
- H.value.style.layout.showTargetValue ? (b(), h("span", k, C(" " + H.value.style.layout.targetValueText) + " " + C(w(s)(t.formatter, $(t), w(l)({
332
- p: t.prefix || "",
333
- v: $(t),
334
- s: t.suffix || "",
335
- r: t.rounding || 0
336
- }), {
337
- datapoint: t,
338
- seriesIndex: r
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_${r}_${V.value}`
354
- }, [g("stop", {
355
- offset: "0%",
356
- "stop-color": w(n)(w(a)(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(n)(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_${r}_${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 };