vue-data-ui 3.22.8 → 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 (169) hide show
  1. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
  2. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  3. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  4. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
  5. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
  6. package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
  7. package/dist/DefGrad-DVBqDjhO.js +48 -0
  8. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
  9. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
  10. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
  11. package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
  12. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
  13. package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
  82. package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
  83. package/dist/ssr/vue-ui-donut.js +1 -1
  84. package/dist/ssr/vue-ui-xy.js +1 -1
  85. package/dist/ssr.js +2 -2
  86. package/dist/style.css +1 -1
  87. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
  88. package/dist/vue-data-ui.js +67 -67
  89. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  90. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
  91. package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
  92. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
  93. package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
  94. package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
  95. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
  96. package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
  97. package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
  98. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
  99. package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
  100. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
  101. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
  102. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
  103. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
  104. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
  105. package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
  106. package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
  107. package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
  108. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
  109. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  110. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
  111. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  112. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
  113. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  114. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
  115. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
  116. package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
  117. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
  118. package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
  119. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
  120. package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
  121. package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
  122. package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
  123. package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
  124. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
  125. package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
  126. package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
  127. package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
  128. package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
  129. package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
  130. package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
  131. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
  132. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
  133. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
  134. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  135. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
  136. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  137. package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
  138. package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
  139. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
  140. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  141. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
  142. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
  143. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
  144. package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
  145. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  146. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
  147. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
  148. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
  149. package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
  150. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
  151. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
  152. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
  153. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
  154. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
  155. package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
  156. package/package.json +1 -1
  157. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  158. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  159. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  160. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  161. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  162. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  163. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  164. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
  165. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  166. package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
  167. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  168. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  169. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
@@ -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 };