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
@@ -0,0 +1,576 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, G as n, J as r, Kt as i, Rt as a, dt as o, i as s, kt as c, t as l, zt as u } from "./lib-JqW18y5I.js";
3
+ import { t as d } from "./useConfig-DYM3f6EI.js";
4
+ import { n as ee, t as f } from "./BaseScanner-DZvpgOjM.js";
5
+ import { t as p } from "./useNestedProp-DIuuzG1r.js";
6
+ import { t as m } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as te } from "./Shape-UpH0a4Ur.js";
8
+ import { t as ne } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
+ import { c as re } from "./canvas-lib-BOP_HS11.js";
10
+ import { t as ie } from "./useResponsive-BfnK0KxU.js";
11
+ import { t as h } from "./DefGrad-DVBqDjhO.js";
12
+ import { t as ae } from "./A11yDataTable-DdRsVULz.js";
13
+ import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
14
+ import { t as se } from "./useFitSvgText-CT3nmlaS.js";
15
+ import { t as ce } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
16
+ import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as le, createVNode as ue, defineAsyncComponent as de, guardReactiveProps as fe, nextTick as S, normalizeClass as C, normalizeProps as pe, normalizeStyle as w, onMounted as me, openBlock as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, toRefs as he, unref as A, useCssVars as ge, watch as j } from "vue";
17
+ //#region src/components/vue-ui-sparkhistogram.vue
18
+ var _e = /* @__PURE__ */ e({ default: () => M }), ve = ["id"], ye = { key: 0 }, be = { key: 1 }, xe = { style: { position: "relative" } }, Se = [
19
+ "xmlns",
20
+ "viewBox",
21
+ "aria-describedby"
22
+ ], Ce = ["width", "height"], we = [
23
+ "height",
24
+ "width",
25
+ "fill",
26
+ "x",
27
+ "stroke",
28
+ "stroke-width",
29
+ "rx",
30
+ "stroke-dasharray"
31
+ ], Te = { key: 1 }, Ee = [
32
+ "x",
33
+ "y",
34
+ "height",
35
+ "width",
36
+ "fill",
37
+ "stroke",
38
+ "stroke-width",
39
+ "rx"
40
+ ], De = { key: 2 }, Oe = [
41
+ "x",
42
+ "y",
43
+ "font-size",
44
+ "font-weight",
45
+ "fill"
46
+ ], ke = [
47
+ "x",
48
+ "y",
49
+ "font-size",
50
+ "fill"
51
+ ], Ae = [
52
+ "x",
53
+ "y",
54
+ "font-size",
55
+ "fill"
56
+ ], je = [
57
+ "height",
58
+ "width",
59
+ "x",
60
+ "onMouseover",
61
+ "onMouseleave",
62
+ "onClick"
63
+ ], Me = {
64
+ key: 0,
65
+ style: {
66
+ position: "absolute",
67
+ top: "100%",
68
+ left: "0",
69
+ width: "100%"
70
+ },
71
+ "data-dom-to-png-ignore": "",
72
+ "aria-hidden": "true"
73
+ }, M = /*#__PURE__*/ ne({
74
+ __name: "vue-ui-sparkhistogram",
75
+ props: {
76
+ config: {
77
+ type: Object,
78
+ default() {
79
+ return {};
80
+ }
81
+ },
82
+ dataset: {
83
+ type: Array,
84
+ default() {
85
+ return [];
86
+ }
87
+ }
88
+ },
89
+ emits: ["selectDatapoint"],
90
+ setup(e, { emit: ne }) {
91
+ ge((e) => ({ v7441ed7f: Je.value }));
92
+ let _e = de(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), { vue_ui_sparkhistogram: M } = d(), { isThemeValid: Ne, warnInvalidTheme: Pe } = m(), N = e, P = E(n()), Fe = E(null), F = E(null), I = E(null), L = E(null), R = E(null), z = E(!1), B = E(null), V = E("pointer"), H = E(J()), Ie = _(() => i({
93
+ defaultConfig: { style: {
94
+ animation: { show: !1 },
95
+ backgroundColor: "#99999930"
96
+ } },
97
+ userConfig: H.value.skeletonConfig ?? {}
98
+ })), { loading: U, FINAL_DATASET: W, manualLoading: Le } = ee({
99
+ ...he(N),
100
+ FINAL_CONFIG: H,
101
+ prepareConfig: J,
102
+ skeletonDataset: N.config?.skeletonDataset ?? [
103
+ {
104
+ value: 1,
105
+ intensity: .2,
106
+ color: "#CACACA"
107
+ },
108
+ {
109
+ value: 2,
110
+ intensity: .3,
111
+ color: "#CACACA"
112
+ },
113
+ {
114
+ value: 3,
115
+ intensity: .5,
116
+ color: "#CACACA"
117
+ },
118
+ {
119
+ value: 5,
120
+ intensity: .7,
121
+ color: "#CACACA"
122
+ },
123
+ {
124
+ value: 8,
125
+ intensity: .9,
126
+ color: "#CACACA"
127
+ },
128
+ {
129
+ value: 13,
130
+ intensity: .95,
131
+ color: "#CACACA"
132
+ },
133
+ {
134
+ value: 21,
135
+ intensity: 1,
136
+ color: "#CACACA"
137
+ },
138
+ {
139
+ value: 13,
140
+ intensity: .95,
141
+ color: "#CACACA"
142
+ },
143
+ {
144
+ value: 8,
145
+ intensity: .9,
146
+ color: "#CACACA"
147
+ },
148
+ {
149
+ value: 5,
150
+ intensity: .7,
151
+ color: "#CACACA"
152
+ },
153
+ {
154
+ value: 3,
155
+ intensity: .5,
156
+ color: "#CACACA"
157
+ },
158
+ {
159
+ value: 2,
160
+ intensity: .3,
161
+ color: "#CACACA"
162
+ },
163
+ {
164
+ value: 1,
165
+ intensity: .2,
166
+ color: "#CACACA"
167
+ }
168
+ ],
169
+ skeletonConfig: i({
170
+ defaultConfig: H.value,
171
+ userConfig: Ie.value
172
+ })
173
+ }), G = E(H.value.style.layout.width), K = E(H.value.style.layout.height), { svgRef: q } = oe({ config: H.value.style.title });
174
+ function J() {
175
+ let e = p({
176
+ userConfig: N.config,
177
+ defaultConfig: M
178
+ }), t = e.theme;
179
+ if (!t) return e;
180
+ if (!Ne.value(e)) return Pe(e), e;
181
+ let n = p({
182
+ userConfig: ce[t] || N.config,
183
+ defaultConfig: e
184
+ });
185
+ return p({
186
+ userConfig: N.config,
187
+ defaultConfig: n
188
+ });
189
+ }
190
+ me(() => {
191
+ ze();
192
+ });
193
+ let Re = _(() => !!H.value.debug);
194
+ function ze() {
195
+ if (c(N.dataset) ? t({
196
+ componentName: "VueUiSparkHistogram",
197
+ type: "dataset",
198
+ debug: Re.value
199
+ }) : N.dataset.forEach((e, n) => {
200
+ o({
201
+ datasetObject: e,
202
+ requiredAttributes: ["value"]
203
+ }).forEach((e) => {
204
+ t({
205
+ componentName: "VueUiSparkHistogram",
206
+ type: "datasetSerieAttribute",
207
+ property: e,
208
+ index: n,
209
+ debug: Re.value
210
+ });
211
+ });
212
+ }), H.value.responsive) {
213
+ let e = re(() => {
214
+ let { width: e, height: t } = ie({
215
+ chart: I.value,
216
+ title: H.value.style.title.text ? F.value : null,
217
+ source: Fe.value
218
+ }), n = H.value.style.labels.timeLabel.show ? H.value.style.labels.timeLabel.fontSize * 2 : 0, r = H.value.style.labels.valueLabel.show ? H.value.style.labels.valueLabel.fontSize * 2 : 0;
219
+ requestAnimationFrame(() => {
220
+ G.value = Math.max(10, e), K.value = Math.max(10, t - 12 - n - r);
221
+ });
222
+ });
223
+ L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = I.value.parentNode, L.value.observe(R.value);
224
+ }
225
+ }
226
+ j(() => N.config, (e) => {
227
+ H.value = J(), ze();
228
+ }, { deep: !0 });
229
+ let Y = _(() => {
230
+ let e = H.value.style.labels.timeLabel.show ? H.value.style.labels.timeLabel.fontSize * 2 : 0, t = H.value.style.labels.valueLabel.show ? H.value.style.labels.valueLabel.fontSize * 2 : 0, n = K.value + e + t, r = G.value, i = H.value.style.layout.padding.top, a = n - H.value.style.layout.padding.bottom, o = H.value.style.layout.padding.left, s = r - H.value.style.layout.padding.right;
231
+ return {
232
+ bottom: a,
233
+ centerY: i + (n - i - H.value.style.layout.padding.bottom) / 2,
234
+ drawingHeight: n - H.value.style.layout.padding.top - H.value.style.layout.padding.bottom - e - t,
235
+ drawingWidth: r - H.value.style.layout.padding.left - H.value.style.layout.padding.right,
236
+ height: n,
237
+ left: o,
238
+ right: s,
239
+ top: i,
240
+ width: r
241
+ };
242
+ }), Be = _(() => Math.max(...W.value.map((e) => Math.abs(e.value || 0))));
243
+ function Ve(e) {
244
+ return Math.abs(e) / Be.value;
245
+ }
246
+ let X = _(() => W.value.map((e, t) => {
247
+ let n = Ve(e.value || 0), r = Y.value.drawingHeight * n, i = Y.value.drawingWidth / W.value.length, o = i * (H.value.style.bars.gap / 100), s = i - o, c = Y.value.centerY - r / 2, l = Y.value.left + (o / 2 + t * i), u = Y.value.left + t * i, d = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), ee = e.color ? e.color : e.value >= 0 ? a(H.value.style.bars.colors.positive, d) : a(H.value.style.bars.colors.negative, d), f = e.color ? e.color : e.value >= 0 ? H.value.style.bars.colors.positive : H.value.style.bars.colors.negative, p = e.color ? `url(#gradient_datapoint_${t}_${P.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${P.value})` : `url(#gradient_negative_${t}_${P.value})`, m = l + s / 2;
248
+ return {
249
+ ...e,
250
+ color: ee,
251
+ gradient: p,
252
+ height: r,
253
+ intensity: d,
254
+ proportion: n,
255
+ stroke: f,
256
+ textAnchor: m,
257
+ trapX: u,
258
+ unitWidth: i,
259
+ width: s,
260
+ x: l,
261
+ y: c
262
+ };
263
+ }));
264
+ function He(e, t) {
265
+ return s(H.value.style.labels.value.formatter, e.value, r({
266
+ p: H.value.style.labels.value.prefix,
267
+ v: e.value,
268
+ s: H.value.style.labels.value.suffix,
269
+ r: H.value.style.labels.value.rounding
270
+ }), {
271
+ datapoint: e,
272
+ seriesIndex: t
273
+ });
274
+ }
275
+ let Z = E(null), Ue = ne;
276
+ function We(e, t) {
277
+ Ue("selectDatapoint", {
278
+ datapoint: e,
279
+ index: t
280
+ }), H.value.events.datapointClick && H.value.events.datapointClick({
281
+ datapoint: e,
282
+ seriesIndex: t
283
+ });
284
+ }
285
+ function Ge(e, t) {
286
+ V.value = "pointer", B.value = t, Z.value = t, H.value.events.datapointEnter && H.value.events.datapointEnter({
287
+ datapoint: e,
288
+ seriesIndex: t
289
+ });
290
+ }
291
+ function Ke(e, t) {
292
+ V.value !== "keyboard" && (Z.value = null, B.value = null, H.value.events.datapointLeave && H.value.events.datapointLeave({
293
+ datapoint: e,
294
+ seriesIndex: t
295
+ }));
296
+ }
297
+ function qe() {
298
+ V.value !== "keyboard" && (Z.value = null, B.value = null);
299
+ }
300
+ let Je = _(() => `${H.value.style.animation.speedMs}ms`), { fitText: Q } = se({
301
+ svgRef: q,
302
+ unitWidth: _(() => Y.value.drawingWidth / W.value.length * .9)
303
+ });
304
+ me(async () => {
305
+ await S(), Q(".vue-ui-sparkhistogram-top-label", H.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", H.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", H.value.style.labels.timeLabel.minFontSize);
306
+ }), j([
307
+ G,
308
+ K,
309
+ () => W.value
310
+ ], async () => {
311
+ await S(), Q(".vue-ui-sparkhistogram-top-label", H.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", H.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", H.value.style.labels.timeLabel.minFontSize);
312
+ });
313
+ function Ye() {
314
+ z.value = !0;
315
+ }
316
+ function Xe() {
317
+ z.value = !1, B.value = null, V.value = "pointer", Z.value = null;
318
+ }
319
+ function Ze(e) {
320
+ if (!q.value || document.activeElement !== q.value || !X.value.length) return;
321
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
322
+ if (!t && !n && !r && !i) return;
323
+ if (e.preventDefault(), e.stopPropagation(), i) {
324
+ B.value = null, Z.value = null, V.value = "pointer";
325
+ return;
326
+ }
327
+ if (r) {
328
+ if (Z.value === null) return;
329
+ let e = X.value[Z.value];
330
+ if (!e) return;
331
+ We(e, Z.value);
332
+ return;
333
+ }
334
+ V.value = "keyboard";
335
+ let a = B.value;
336
+ a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)), B.value = a, Z.value = a;
337
+ let o = X.value[a];
338
+ H.value.events.datapointEnter && H.value.events.datapointEnter({
339
+ datapoint: o,
340
+ seriesIndex: a
341
+ });
342
+ }
343
+ let $ = _(() => ({
344
+ headers: [
345
+ H.value.a11y?.translations?.series ?? "Series",
346
+ H.value.a11y?.translations?.time ?? "Time",
347
+ H.value.a11y?.translations?.value ?? "Value",
348
+ H.value.a11y?.translations?.valueLabel ?? "Label"
349
+ ],
350
+ rows: X.value.map((e, t) => [
351
+ t + 1,
352
+ e.timeLabel ?? "",
353
+ e.value ?? "",
354
+ e.valueLabel ?? ""
355
+ ])
356
+ }));
357
+ return (e, t) => (T(), b("div", {
358
+ class: "vue-data-ui-component vue-ui-spark-histogram",
359
+ ref_key: "histogramChart",
360
+ ref: I,
361
+ style: w(`width:100%;background:${H.value.style.backgroundColor};font-family:${H.value.style.fontFamily}`),
362
+ onMouseleave: qe
363
+ }, [
364
+ x("div", {
365
+ id: `chart-instructions-${P.value}`,
366
+ class: "sr-only"
367
+ }, [x("p", null, k(H.value.a11y.translations.keyboardNavigation), 1)], 8, ve),
368
+ $.value?.rows?.length ? (T(), v(ae, {
369
+ key: 0,
370
+ uid: P.value,
371
+ head: $.value.headers,
372
+ body: $.value.rows,
373
+ notice: H.value.a11y.translations.tableAvailable,
374
+ caption: H.value.a11y.translations.tableCaption
375
+ }, null, 8, [
376
+ "uid",
377
+ "head",
378
+ "body",
379
+ "notice",
380
+ "caption"
381
+ ])) : y("", !0),
382
+ H.value.style.title.text ? (T(), b("div", {
383
+ key: 1,
384
+ ref_key: "chartTitle",
385
+ ref: F,
386
+ style: w(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${H.value.style.title.margin};padding: 0 6px;text-align:${H.value.style.title.textAlign}`)
387
+ }, [x("div", { style: w(`font-size:${H.value.style.title.fontSize}px;color:${H.value.style.title.color};font-weight:${H.value.style.title.bold ? "bold" : "normal"}`) }, [
388
+ le(k(H.value.style.title.text) + " ", 1),
389
+ Z.value === null ? y("", !0) : (T(), b("span", ye, "- " + k(X.value[Z.value].timeLabel || "") + " " + k(A(s)(H.value.style.labels.value.formatter, X.value[Z.value].value, A(r)({
390
+ p: H.value.style.labels.value.prefix,
391
+ v: X.value[Z.value].value,
392
+ s: H.value.style.labels.value.suffix,
393
+ r: H.value.style.labels.value.rounding
394
+ }), {
395
+ datapoint: X.value[Z.value],
396
+ seriesIndex: Z.value
397
+ })), 1)),
398
+ ![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (T(), b("span", be, k(` (${X.value[Z.value].valueLabel || 0})`), 1)) : y("", !0)
399
+ ], 4), H.value.style.title.subtitle.text ? (T(), b("div", {
400
+ key: 0,
401
+ style: w(`font-size:${H.value.style.title.subtitle.fontSize}px;color:${H.value.style.title.subtitle.color};font-weight:${H.value.style.title.subtitle.bold ? "bold" : "normal"}`)
402
+ }, k(H.value.style.title.subtitle.text), 5)) : y("", !0)], 4)) : y("", !0),
403
+ x("div", xe, [(T(), b("svg", {
404
+ ref_key: "svgRef",
405
+ ref: q,
406
+ xmlns: A(l),
407
+ viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
408
+ style: { overflow: "visible" },
409
+ "aria-describedby": `chart-instructions-${P.value}`,
410
+ tabindex: "0",
411
+ onFocus: Ye,
412
+ onBlur: Xe,
413
+ onKeydown: Ze
414
+ }, [
415
+ ue(A(_e)),
416
+ e.$slots["chart-background"] ? (T(), b("foreignObject", {
417
+ key: 0,
418
+ x: 0,
419
+ y: 0,
420
+ width: Y.value.width,
421
+ height: Y.value.height,
422
+ style: { pointerEvents: "none" }
423
+ }, [O(e.$slots, "chart-background", {}, void 0, !0)], 8, Ce)) : y("", !0),
424
+ x("defs", null, [
425
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), v(h, {
426
+ t: "radial",
427
+ id: `gradient_positive_${t}_${P.value}`,
428
+ key: `gradient_positive_${t}_${P.value}`,
429
+ cy: "50%",
430
+ cx: "50%",
431
+ r: "50%",
432
+ fx: "50%",
433
+ fy: "50%",
434
+ stops: [[
435
+ "0%",
436
+ A(a)(A(u)(H.value.style.bars.colors.positive, .05), e.intensity),
437
+ 1
438
+ ], [
439
+ "100%",
440
+ A(a)(H.value.style.bars.colors.positive, e.intensity),
441
+ 1
442
+ ]]
443
+ }, null, 8, ["id", "stops"]))), 128)),
444
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), v(h, {
445
+ t: "radial",
446
+ id: `gradient_negative_${t}_${P.value}`,
447
+ key: `gradient_negative_${t}_${P.value}`,
448
+ cy: "50%",
449
+ cx: "50%",
450
+ r: "50%",
451
+ fx: "50%",
452
+ fy: "50%",
453
+ stops: [[
454
+ "0%",
455
+ A(a)(A(u)(H.value.style.bars.colors.negative, .05), e.intensity),
456
+ 1
457
+ ], [
458
+ "100%",
459
+ A(a)(H.value.style.bars.colors.negative, e.intensity),
460
+ 1
461
+ ]]
462
+ }, null, 8, ["id", "stops"]))), 128)),
463
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), v(h, {
464
+ t: "radial",
465
+ id: `gradient_datapoint_${t}_${P.value}`,
466
+ key: `gradient_datapoint_${t}_${P.value}`,
467
+ cy: "50%",
468
+ cx: "50%",
469
+ r: "50%",
470
+ fx: "50%",
471
+ fy: "50%",
472
+ stops: [[
473
+ "0%",
474
+ A(a)(A(u)(e.color, .05), e.intensity),
475
+ 1
476
+ ], [
477
+ "100%",
478
+ A(a)(e.color, e.intensity),
479
+ 1
480
+ ]]
481
+ }, null, 8, ["id", "stops"]))), 128))
482
+ ]),
483
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [Z.value !== null && Z.value === t ? (T(), b("rect", {
484
+ key: 0,
485
+ height: Y.value.height,
486
+ width: e.unitWidth,
487
+ fill: H.value.style.selector.fill,
488
+ x: e.trapX,
489
+ y: 0,
490
+ stroke: H.value.style.selector.stroke,
491
+ "stroke-width": H.value.style.selector.strokeWidth,
492
+ rx: H.value.style.selector.borderRadius,
493
+ "stroke-dasharray": H.value.style.selector.strokeDasharray
494
+ }, null, 8, we)) : y("", !0)]))), 256)),
495
+ !H.value.style.bars.shape || H.value.style.bars.shape === "square" ? (T(), b("g", Te, [(T(!0), b(g, null, D(X.value, (e, t) => (T(), b("rect", {
496
+ x: e.x,
497
+ y: e.y,
498
+ height: e.height,
499
+ width: e.width,
500
+ fill: H.value.style.bars.colors.gradient.show ? e.gradient : e.color,
501
+ stroke: e.stroke,
502
+ "stroke-width": H.value.style.bars.strokeWidth,
503
+ rx: `${H.value.style.bars.borderRadius * e.proportion / 12}%`,
504
+ class: C({ "vue-ui-sparkhistogram-shape": H.value.style.animation.show })
505
+ }, null, 10, Ee))), 256))])) : (T(), b("g", De, [(T(!0), b(g, null, D(X.value, (e, t) => (T(), v(te, {
506
+ plot: {
507
+ x: e.x + e.width / 2,
508
+ y: e.y + e.height / 2
509
+ },
510
+ color: H.value.style.bars.colors.gradient.show ? e.gradient : e.color,
511
+ shape: H.value.style.bars.shape,
512
+ radius: Math.min(e.height * .4, e.width * .4),
513
+ class: C({ "vue-ui-sparkhistogram-shape": H.value.style.animation.show })
514
+ }, null, 8, [
515
+ "plot",
516
+ "color",
517
+ "shape",
518
+ "radius",
519
+ "class"
520
+ ]))), 256))])),
521
+ A(U) ? y("", !0) : (T(), b(g, { key: 3 }, [
522
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [H.value.style.labels.value.show ? (T(), b("text", {
523
+ key: 0,
524
+ class: "vue-ui-sparkhistogram-top-label",
525
+ "text-anchor": "middle",
526
+ x: e.textAnchor,
527
+ y: e.y - H.value.style.labels.value.fontSize / 3 + H.value.style.labels.value.offsetY,
528
+ "font-size": H.value.style.labels.value.fontSize,
529
+ "font-weight": H.value.style.labels.value.bold ? "bold" : "normal",
530
+ fill: H.value.style.labels.value.color
531
+ }, k(He(e, t)), 9, Oe)) : y("", !0)]))), 256)),
532
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [e.valueLabel && H.value.style.labels.valueLabel.show ? (T(), b("text", {
533
+ key: 0,
534
+ class: "vue-ui-sparkhistogram-bottom-label",
535
+ x: e.textAnchor,
536
+ y: e.y + e.height + H.value.style.labels.valueLabel.fontSize,
537
+ "font-size": H.value.style.labels.valueLabel.fontSize,
538
+ "text-anchor": "middle",
539
+ fill: H.value.style.labels.valueLabel.color
540
+ }, k(e.valueLabel), 9, ke)) : y("", !0)]))), 256)),
541
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [e.timeLabel && H.value.style.labels.timeLabel.show ? (T(), b("text", {
542
+ key: 0,
543
+ class: "vue-ui-sparkhistogram-time-label",
544
+ x: e.textAnchor,
545
+ y: Y.value.height,
546
+ "font-size": H.value.style.labels.timeLabel.fontSize,
547
+ fill: H.value.style.labels.timeLabel.color,
548
+ "text-anchor": "middle"
549
+ }, k(e.timeLabel), 9, Ae)) : y("", !0)]))), 256))
550
+ ], 64)),
551
+ (T(!0), b(g, null, D(X.value, (e, t) => (T(), b("g", null, [x("rect", {
552
+ height: Y.value.height,
553
+ width: e.unitWidth,
554
+ fill: "transparent",
555
+ x: e.trapX,
556
+ y: 0,
557
+ onMouseover: (n) => Ge(e, t),
558
+ onMouseleave: (n) => Ke(e, t),
559
+ onClick: () => We(e, t)
560
+ }, null, 40, je)]))), 256))
561
+ ], 40, Se)), e.$slots.hint ? (T(), b("div", Me, [O(e.$slots, "hint", pe(fe({
562
+ hint: H.value.a11y.translations.keyboardNavigation,
563
+ isVisible: z.value
564
+ })), void 0, !0)])) : y("", !0)]),
565
+ e.$slots.source ? (T(), b("div", {
566
+ key: 2,
567
+ ref_key: "source",
568
+ ref: Fe,
569
+ dir: "auto"
570
+ }, [O(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
571
+ O(e.$slots, "skeleton", {}, () => [A(U) ? (T(), v(f, { key: 0 })) : y("", !0)], !0)
572
+ ], 36));
573
+ }
574
+ }, [["__scopeId", "data-v-f5687368"]]);
575
+ //#endregion
576
+ export { _e as n, M as t };