vue-data-ui 3.26.4 → 3.27.0

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 (200) hide show
  1. package/dist/{Arrow-BW_Fs3gD.js → Arrow-DKO1l8oR.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BniZj4c8.js → BaseDraggableDialog-C50TEJFv.js} +2 -2
  3. package/dist/{BaseIcon-CPBlYfWq.js → BaseIcon-Cx9FD751.js} +1 -1
  4. package/dist/{BaseLegendToggle-CWtURpCj.js → BaseLegendToggle-CP3sddwv.js} +1 -1
  5. package/dist/{BaseZoomControls-jfXIQvEi.js → BaseZoomControls-vNi8YykO.js} +2 -2
  6. package/dist/{ColorPicker-BKndMOAm.js → ColorPicker-hmC2bvwS.js} +2 -2
  7. package/dist/{DataTable-DV4Plrm3.js → DataTable-CjF_An2h.js} +2 -2
  8. package/dist/{HillActions-B45z2DmP.js → HillActions-DqqGB33u.js} +1 -1
  9. package/dist/{Legend-CJzCVAWl.js → Legend-CulFgjUY.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-B3I_UGDm.js → NonSvgPenAndPaper-BK1v_MfW.js} +3 -3
  11. package/dist/{PackageVersion-DEAYvEjl.js → PackageVersion-D7H9nfK0.js} +1 -1
  12. package/dist/{PenAndPaper-Dv8WPVwA.js → PenAndPaper-CNiuGw6k.js} +3 -3
  13. package/dist/{Shape-BIe6C0HJ.js → Shape-DSwamtmO.js} +1 -1
  14. package/dist/{SlicerPreview-8atniw0P.js → SlicerPreview-k5YerMA9.js} +12 -12
  15. package/dist/{SparkTooltip-DsGcGbm2.js → SparkTooltip-D35KVv6N.js} +6 -6
  16. package/dist/{Title-B4UpMerH.js → Title-BMCuINbv.js} +1 -1
  17. package/dist/{Tooltip-BmfGHn1L.js → Tooltip-C4ZTwkLF.js} +1 -1
  18. package/dist/{UserOptions-C92R4ACT.js → UserOptions-CORYQiif.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.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-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BL08UcHI.js → dom-to-png-CBusMkua.js} +1 -1
  91. package/dist/{exposedLib-CBUiJ5b-.js → exposedLib-UNxZlnAS.js} +10 -10
  92. package/dist/{img--C0otIB0.js → img-Bb5rHcpO.js} +1 -1
  93. package/dist/{labelUtils-CfQIxXGL.js → labelUtils-Ccn9kK7T.js} +1 -1
  94. package/dist/{lib-DTiqmM1G.js → lib-D4wK6ljP.js} +130 -136
  95. package/dist/{package-Dj6ohGVJ.js → package-DmQufM0G.js} +1 -1
  96. package/dist/{pdf-CbSwKZjC.js → pdf-BzIQHx-F.js} +1 -1
  97. package/dist/{render-common-vuBsglf8.js → render-common-BtfjXdkJ.js} +10 -10
  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/vue-data-ui.d.ts +212 -60
  103. package/dist/types/vue-ui-stackbar.d.ts +10 -0
  104. package/dist/{useConfig-DObkR9Aa.js → useConfig-D_6ZrPMD.js} +82 -0
  105. package/dist/{useNestedProp-D8cRQaVo.js → useNestedProp-DR_8JPol.js} +1 -1
  106. package/dist/{useObjectBindings-CPmyIJxB.js → useObjectBindings-DvasYMGu.js} +2 -2
  107. package/dist/{usePrinter-R2nu9g4B.js → usePrinter-DdW2GSm0.js} +2 -2
  108. package/dist/utils.js +10 -10
  109. package/dist/{vue-data-ui-CijFk00w.js → vue-data-ui-Df7WV80w.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-BxmndVBz.js → vue-ui-3d-bar-CJjNPwhG.js} +463 -463
  112. package/dist/{vue-ui-accordion-CxMo-mXC.js → vue-ui-accordion-CaoNWreI.js} +4 -4
  113. package/dist/{vue-ui-age-pyramid-ysX_ySuK.js → vue-ui-age-pyramid-BYcM0uIP.js} +22 -22
  114. package/dist/{vue-ui-annotator-IAqTX-5M.js → vue-ui-annotator-BmqjDjRF.js} +10 -10
  115. package/dist/{vue-ui-bullet-rO5_pB7t.js → vue-ui-bullet-DBOAvpBB.js} +18 -18
  116. package/dist/vue-ui-bump-rPYwDJ4o.js +1242 -0
  117. package/dist/{vue-ui-candlestick-BLxP54W4.js → vue-ui-candlestick-WQHIQNv_.js} +625 -625
  118. package/dist/{vue-ui-carousel-table-DHbt40ze.js → vue-ui-carousel-table-Dojcvt49.js} +106 -106
  119. package/dist/{vue-ui-chestnut-CHHZx5ek.js → vue-ui-chestnut-BdhEByUf.js} +65 -65
  120. package/dist/{vue-ui-chord-WmqFMK4A.js → vue-ui-chord-MF4xF5az.js} +46 -46
  121. package/dist/{vue-ui-circle-pack-D2RXFToP.js → vue-ui-circle-pack-BwDim7G8.js} +26 -26
  122. package/dist/{vue-ui-cursor-CDf6s7AZ.js → vue-ui-cursor-w_5cbpSb.js} +61 -61
  123. package/dist/{vue-ui-dag-Ba3Bkxd7.js → vue-ui-dag-D2EUqeDN.js} +65 -65
  124. package/dist/{vue-ui-dashboard-DKCEm56d.js → vue-ui-dashboard-BLnVXosj.js} +70 -70
  125. package/dist/{vue-ui-digits-B6cSEytP.js → vue-ui-digits-zSqwYWHm.js} +4 -4
  126. package/dist/{vue-ui-donut-BfAlXtvS.js → vue-ui-donut-ZYZfqIhi.js} +117 -117
  127. package/dist/{vue-ui-donut-evolution-C2TYUKag.js → vue-ui-donut-evolution-DtLbWi3h.js} +216 -216
  128. package/dist/vue-ui-donut-nLDLZwig.js +2427 -0
  129. package/dist/{vue-ui-dumbbell-GMQ4JZf_.js → vue-ui-dumbbell-Qgn3wRyI.js} +20 -20
  130. package/dist/{vue-ui-flow-B53jXaVQ.js → vue-ui-flow-iSH6dyGw.js} +109 -109
  131. package/dist/vue-ui-funnel-Cc2z2zS5.js +749 -0
  132. package/dist/{vue-ui-galaxy-CE7LYi8M.js → vue-ui-galaxy-GhuBSU0o.js} +267 -267
  133. package/dist/vue-ui-gauge-BAjBO13a.js +934 -0
  134. package/dist/{vue-ui-geo-B4a2hwYf.js → vue-ui-geo-mwTtvIHY.js} +19 -19
  135. package/dist/{vue-ui-gizmo-CY4cLNcJ.js → vue-ui-gizmo-B5vOOrZX.js} +4 -4
  136. package/dist/vue-ui-heatmap-fimkY1nN.js +1613 -0
  137. package/dist/{vue-ui-hill-CTPzgkCs.js → vue-ui-hill-DPfTt3UE.js} +18 -18
  138. package/dist/{vue-ui-history-plot-CGFijdmp.js → vue-ui-history-plot-B1WgzqTb.js} +53 -53
  139. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +1723 -0
  140. package/dist/{vue-ui-kpi-Bu2OpF5d.js → vue-ui-kpi-D-p0CSQh.js} +4 -4
  141. package/dist/{vue-ui-label-CWFQzKOy.js → vue-ui-label-r3-QloJL.js} +65 -65
  142. package/dist/{vue-ui-mini-loader-hdh8SSxW.js → vue-ui-mini-loader-CnrBGAtM.js} +3 -3
  143. package/dist/vue-ui-molecule-BhdAYX_H.js +941 -0
  144. package/dist/vue-ui-mood-radar-CdlnPrQf.js +1111 -0
  145. package/dist/{vue-ui-nested-donuts-DN2PgxeK.js → vue-ui-nested-donuts-DceVEyUc.js} +341 -341
  146. package/dist/{vue-ui-onion-lrDciRpg.js → vue-ui-onion-_L0uEATI.js} +209 -209
  147. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +1444 -0
  148. package/dist/{vue-ui-quadrant-DrcflMPg.js → vue-ui-quadrant-CDDFLRcX.js} +55 -55
  149. package/dist/{vue-ui-quick-chart-D5ZFV0Aj.js → vue-ui-quick-chart-Dom257hl.js} +377 -377
  150. package/dist/vue-ui-radar-BLdri1bA.js +1386 -0
  151. package/dist/{vue-ui-rating-DxBJXbPW.js → vue-ui-rating-C_iTttXB.js} +25 -25
  152. package/dist/vue-ui-relation-circle-BmxTSgjd.js +905 -0
  153. package/dist/vue-ui-ridgeline-CsUrcVmL.js +1630 -0
  154. package/dist/{vue-ui-rings-6OHcBlOC.js → vue-ui-rings-D_GPkgbD.js} +318 -318
  155. package/dist/vue-ui-scatter-D_C-IhnW.js +2418 -0
  156. package/dist/{vue-ui-skeleton--HlS7ySk.js → vue-ui-skeleton-t7e6KEZ2.js} +60 -60
  157. package/dist/{vue-ui-smiley-ZrM6-QCy.js → vue-ui-smiley-Dl95YWVo.js} +14 -14
  158. package/dist/{vue-ui-spark-trend-CIfpocxI.js → vue-ui-spark-trend-pkZA7u5V.js} +20 -20
  159. package/dist/{vue-ui-sparkbar-Db7Ntacd.js → vue-ui-sparkbar-Ds7OJjhG.js} +77 -77
  160. package/dist/{vue-ui-sparkgauge-DEuNFkU_.js → vue-ui-sparkgauge-US1M88qc.js} +6 -6
  161. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +589 -0
  162. package/dist/{vue-ui-sparkline-CSsnkXMJ.js → vue-ui-sparkline-DvE1dHcs.js} +37 -37
  163. package/dist/{vue-ui-sparkstackbar-BnN7KebI.js → vue-ui-sparkstackbar-CWtF9eG-.js} +39 -39
  164. package/dist/vue-ui-stackbar-fMgrHzZe.js +3273 -0
  165. package/dist/{vue-ui-stackline-CqjwxpU1.js → vue-ui-stackline-CSMuUup2.js} +303 -303
  166. package/dist/vue-ui-strip-plot-TGD2UFHS.js +1752 -0
  167. package/dist/{vue-ui-table-CsMozTrM.js → vue-ui-table-BCEIbg8-.js} +14 -14
  168. package/dist/{vue-ui-table-heatmap-DFcESbBy.js → vue-ui-table-heatmap-CvUcFWMf.js} +9 -9
  169. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +738 -0
  170. package/dist/vue-ui-thermometer-BYFAZCzh.js +758 -0
  171. package/dist/{vue-ui-timer-CFxvU_q1.js → vue-ui-timer-BKr8RVnn.js} +10 -10
  172. package/dist/{vue-ui-tiremarks-DIjsyNwO.js → vue-ui-tiremarks-BYu3cEoy.js} +35 -35
  173. package/dist/{vue-ui-treemap-BuvFUWJm.js → vue-ui-treemap-BR3rX5_L.js} +50 -50
  174. package/dist/{vue-ui-waffle-B8Knvp7m.js → vue-ui-waffle-mP8g5aQk.js} +275 -275
  175. package/dist/{vue-ui-wheel-2_4BOo6P.js → vue-ui-wheel-CZsSO2R6.js} +187 -187
  176. package/dist/{vue-ui-word-cloud-BEgmAfj1.js → vue-ui-word-cloud-CJ30onqy.js} +35 -35
  177. package/dist/{vue-ui-world-D4WMHq7E.js → vue-ui-world-BZ09DOiF.js} +498 -498
  178. package/dist/{vue-ui-xy-DBLJ8Uhc.js → vue-ui-xy-C3h54loZ.js} +405 -405
  179. package/dist/{vue-ui-xy-canvas-Dv0pk4Wd.js → vue-ui-xy-canvas-BwgK8drp.js} +165 -165
  180. package/dist/{vue-ui-xy-DGIz4MDV.js → vue-ui-xy-jemv5dsf.js} +288 -288
  181. package/dist/{vue_ui_stackbar-DdjDL6aq.js → vue_ui_stackbar-yQyvT4Su.js} +46 -0
  182. package/package.json +1 -1
  183. package/dist/vue-ui-bump-BIyTRpqJ.js +0 -1242
  184. package/dist/vue-ui-donut-DMISY-E8.js +0 -2427
  185. package/dist/vue-ui-funnel-eVH871L3.js +0 -749
  186. package/dist/vue-ui-gauge-D_jNBHjA.js +0 -934
  187. package/dist/vue-ui-heatmap-DW7bo_Um.js +0 -1613
  188. package/dist/vue-ui-horizontal-bar-vPeWNfxO.js +0 -1723
  189. package/dist/vue-ui-molecule-ejjPjG63.js +0 -941
  190. package/dist/vue-ui-mood-radar-pqMAcUWm.js +0 -1111
  191. package/dist/vue-ui-parallel-coordinate-plot-McES6sLT.js +0 -1444
  192. package/dist/vue-ui-radar-DZPVV9cU.js +0 -1386
  193. package/dist/vue-ui-relation-circle-BtESVsB0.js +0 -905
  194. package/dist/vue-ui-ridgeline-CSLuDJWq.js +0 -1630
  195. package/dist/vue-ui-scatter-CKJ87fhp.js +0 -2418
  196. package/dist/vue-ui-sparkhistogram-CQTwLaZi.js +0 -589
  197. package/dist/vue-ui-stackbar-CISQXhoK.js +0 -2660
  198. package/dist/vue-ui-strip-plot-CRZDCNc1.js +0 -1752
  199. package/dist/vue-ui-table-sparkline-CwsrD7te.js +0 -738
  200. package/dist/vue-ui-thermometer-_zSQM0Nk.js +0 -758
@@ -0,0 +1,589 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Jt as n, X as r, Yt as i, at as a, i as o, nn as s, t as ee, yt as c, zt as te } from "./lib-D4wK6ljP.js";
3
+ import { n as l, t as u } from "./useHints-Dq_w2E8B.js";
4
+ import { t as d } from "./useConfig-D_6ZrPMD.js";
5
+ import { n as ne, t as re } from "./BaseScanner-Dzc8VT3j.js";
6
+ import { t as f } from "./useNestedProp-DR_8JPol.js";
7
+ import { t as ie } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as ae } from "./Shape-DSwamtmO.js";
9
+ import { t as oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
10
+ import { l as se, t as ce } from "./useResponsive-ZtArZtUf.js";
11
+ import { t as p } from "./DefGrad-DVBqDjhO.js";
12
+ import { t as le } from "./A11yDataTable-DdRsVULz.js";
13
+ import { t as ue } from "./useChartAccessibility-DYqac8yF.js";
14
+ import { t as de } from "./useFitSvgText-CXTzBplU.js";
15
+ import { t as fe } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
16
+ import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as pe, createVNode as me, defineAsyncComponent as he, guardReactiveProps as ge, nextTick as _e, normalizeClass as ve, normalizeProps as ye, normalizeStyle as b, onMounted as be, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRefs as xe, unref as E, useCssVars as Se, watch as D } from "vue";
17
+ //#region src/components/vue-ui-sparkhistogram.vue
18
+ var O = /* @__PURE__ */ e({ default: () => k }), Ce = ["id"], we = { key: 0 }, Te = { key: 1 }, Ee = { style: { position: "relative" } }, De = [
19
+ "xmlns",
20
+ "viewBox",
21
+ "aria-describedby"
22
+ ], Oe = ["width", "height"], ke = [
23
+ "height",
24
+ "width",
25
+ "fill",
26
+ "x",
27
+ "stroke",
28
+ "stroke-width",
29
+ "rx",
30
+ "stroke-dasharray"
31
+ ], Ae = { key: 1 }, je = [
32
+ "x",
33
+ "y",
34
+ "height",
35
+ "width",
36
+ "fill",
37
+ "stroke",
38
+ "stroke-width",
39
+ "rx"
40
+ ], Me = { key: 2 }, Ne = [
41
+ "x",
42
+ "y",
43
+ "font-size",
44
+ "font-weight",
45
+ "fill"
46
+ ], Pe = [
47
+ "x",
48
+ "y",
49
+ "font-size",
50
+ "fill"
51
+ ], Fe = [
52
+ "x",
53
+ "y",
54
+ "font-size",
55
+ "fill"
56
+ ], Ie = [
57
+ "height",
58
+ "width",
59
+ "x",
60
+ "onMouseover",
61
+ "onMouseleave",
62
+ "onClick"
63
+ ], Le = {
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
+ }, k = /*#__PURE__*/ oe({
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: oe }) {
91
+ Se((e) => ({ v1bbfae94: $e.value }));
92
+ let O = he(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), { vue_ui_sparkhistogram: k } = d(), { isThemeValid: Re, warnInvalidTheme: ze } = ie(), A = e, j = S(r()), M = S(null), N = S(null), P = S(null), F = S(null), I = S(null), L = S(!1), R = S(null), z = S("pointer"), B = S(J()), V = h(() => B.value.style.labels), H = h(() => B.value.style.bars), U = h(() => B.value.style);
93
+ l({
94
+ config: () => B.value,
95
+ dataset: () => A.dataset,
96
+ component: "VueUiSparkHistogram",
97
+ rules: [u.singleSeries, {
98
+ test: (e) => e.length > 31,
99
+ message: [
100
+ "👀 The number of datapoints is > 31. For a more readable chart, consider:",
101
+ "",
102
+ "▶️ Using VueUiXy with a line series"
103
+ ]
104
+ }]
105
+ });
106
+ let Be = h(() => s({
107
+ defaultConfig: { style: {
108
+ animation: { show: !1 },
109
+ backgroundColor: "#99999930"
110
+ } },
111
+ userConfig: B.value.skeletonConfig ?? {}
112
+ })), { loading: Ve, FINAL_DATASET: W, manualLoading: He } = ne({
113
+ ...xe(A),
114
+ FINAL_CONFIG: B,
115
+ prepareConfig: J,
116
+ skeletonDataset: A.config?.skeletonDataset ?? [
117
+ {
118
+ value: 1,
119
+ intensity: .2,
120
+ color: "#CACACA"
121
+ },
122
+ {
123
+ value: 2,
124
+ intensity: .3,
125
+ color: "#CACACA"
126
+ },
127
+ {
128
+ value: 3,
129
+ intensity: .5,
130
+ color: "#CACACA"
131
+ },
132
+ {
133
+ value: 5,
134
+ intensity: .7,
135
+ color: "#CACACA"
136
+ },
137
+ {
138
+ value: 8,
139
+ intensity: .9,
140
+ color: "#CACACA"
141
+ },
142
+ {
143
+ value: 13,
144
+ intensity: .95,
145
+ color: "#CACACA"
146
+ },
147
+ {
148
+ value: 21,
149
+ intensity: 1,
150
+ color: "#CACACA"
151
+ },
152
+ {
153
+ value: 13,
154
+ intensity: .95,
155
+ color: "#CACACA"
156
+ },
157
+ {
158
+ value: 8,
159
+ intensity: .9,
160
+ color: "#CACACA"
161
+ },
162
+ {
163
+ value: 5,
164
+ intensity: .7,
165
+ color: "#CACACA"
166
+ },
167
+ {
168
+ value: 3,
169
+ intensity: .5,
170
+ color: "#CACACA"
171
+ },
172
+ {
173
+ value: 2,
174
+ intensity: .3,
175
+ color: "#CACACA"
176
+ },
177
+ {
178
+ value: 1,
179
+ intensity: .2,
180
+ color: "#CACACA"
181
+ }
182
+ ],
183
+ skeletonConfig: s({
184
+ defaultConfig: B.value,
185
+ userConfig: Be.value
186
+ })
187
+ }), G = S(U.value.layout.width), K = S(U.value.layout.height), { svgRef: q } = ue({ config: U.value.title });
188
+ function J() {
189
+ let e = f({
190
+ userConfig: A.config,
191
+ defaultConfig: k
192
+ }), t = e.theme;
193
+ if (!t) return e;
194
+ if (!Re.value(e)) return ze(e), e;
195
+ let n = f({
196
+ userConfig: fe[t] || A.config,
197
+ defaultConfig: e
198
+ });
199
+ return f({
200
+ userConfig: A.config,
201
+ defaultConfig: n
202
+ });
203
+ }
204
+ be(() => {
205
+ We();
206
+ });
207
+ let Ue = h(() => B.value.debug);
208
+ function We() {
209
+ if (te(A.dataset) ? a({
210
+ componentName: "VueUiSparkHistogram",
211
+ type: "dataset",
212
+ debug: Ue.value
213
+ }) : Ue.value && A.dataset.forEach((e, t) => {
214
+ c({
215
+ datasetObject: e,
216
+ requiredAttributes: ["value"]
217
+ }).forEach((e) => {
218
+ a({
219
+ componentName: "VueUiSparkHistogram",
220
+ type: "datasetSerieAttribute",
221
+ property: e,
222
+ index: t
223
+ });
224
+ });
225
+ }), B.value.responsive) {
226
+ let e = se(() => {
227
+ let { width: e, height: t } = ce({
228
+ chart: P.value,
229
+ title: U.value.title.text ? N.value : null,
230
+ source: M.value
231
+ }), n = V.value.timeLabel.show ? V.value.timeLabel.fontSize * 2 : 0, r = V.value.valueLabel.show ? V.value.valueLabel.fontSize * 2 : 0;
232
+ requestAnimationFrame(() => {
233
+ G.value = Math.max(10, e), K.value = Math.max(10, t - 12 - n - r);
234
+ });
235
+ });
236
+ F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
237
+ }
238
+ }
239
+ D(() => A.config, (e) => {
240
+ B.value = J(), We();
241
+ }, { deep: !0 });
242
+ let Y = h(() => {
243
+ let e = V.value.timeLabel.show ? V.value.timeLabel.fontSize * 2 : 0, t = V.value.valueLabel.show ? V.value.valueLabel.fontSize * 2 : 0, n = K.value + e + t, r = G.value, i = U.value.layout.padding.top, a = n - U.value.layout.padding.bottom, o = U.value.layout.padding.left, s = r - U.value.layout.padding.right;
244
+ return {
245
+ bottom: a,
246
+ centerY: i + (n - i - U.value.layout.padding.bottom) / 2,
247
+ drawingHeight: n - U.value.layout.padding.top - U.value.layout.padding.bottom - e - t,
248
+ drawingWidth: r - U.value.layout.padding.left - U.value.layout.padding.right,
249
+ height: n,
250
+ left: o,
251
+ right: s,
252
+ top: i,
253
+ width: r
254
+ };
255
+ }), Ge = h(() => Math.max(...W.value.map((e) => Math.abs(e.value || 0))));
256
+ function Ke(e) {
257
+ return Math.abs(e) / Ge.value;
258
+ }
259
+ let X = h(() => W.value.map((e, t) => {
260
+ let r = Ke(e.value || 0), i = Y.value.drawingHeight * r, a = Y.value.drawingWidth / W.value.length, o = a * (H.value.gap / 100), s = a - o, ee = Y.value.centerY - i / 2, c = Y.value.left + (o / 2 + t * a), te = Y.value.left + t * a, l = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), u = e.color ? e.color : e.value >= 0 ? n(H.value.colors.positive, l) : n(H.value.colors.negative, l), d = e.color ? e.color : e.value >= 0 ? H.value.colors.positive : H.value.colors.negative, ne = e.color ? `url(#gradient_datapoint_${t}_${j.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${j.value})` : `url(#gradient_negative_${t}_${j.value})`, re = c + s / 2;
261
+ return {
262
+ ...e,
263
+ color: u,
264
+ gradient: ne,
265
+ height: i,
266
+ intensity: l,
267
+ proportion: r,
268
+ stroke: d,
269
+ textAnchor: re,
270
+ trapX: te,
271
+ unitWidth: a,
272
+ width: s,
273
+ x: c,
274
+ y: ee
275
+ };
276
+ }));
277
+ function qe(e, n) {
278
+ return o(V.value.value.formatter, e.value, t({
279
+ p: V.value.value.prefix,
280
+ v: e.value,
281
+ s: V.value.value.suffix,
282
+ r: V.value.value.rounding
283
+ }), {
284
+ datapoint: e,
285
+ seriesIndex: n
286
+ });
287
+ }
288
+ let Z = S(null), Je = oe;
289
+ function Ye(e, t) {
290
+ Je("selectDatapoint", {
291
+ datapoint: e,
292
+ index: t
293
+ }), B.value.events.datapointClick && B.value.events.datapointClick({
294
+ datapoint: e,
295
+ seriesIndex: t
296
+ });
297
+ }
298
+ function Xe(e, t) {
299
+ z.value = "pointer", R.value = t, Z.value = t, B.value.events.datapointEnter && B.value.events.datapointEnter({
300
+ datapoint: e,
301
+ seriesIndex: t
302
+ });
303
+ }
304
+ function Ze(e, t) {
305
+ z.value !== "keyboard" && (Z.value = null, R.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
306
+ datapoint: e,
307
+ seriesIndex: t
308
+ }));
309
+ }
310
+ function Qe() {
311
+ z.value !== "keyboard" && (Z.value = null, R.value = null);
312
+ }
313
+ let $e = h(() => `${U.value.animation.speedMs}ms`), et = h(() => Y.value.drawingWidth / W.value.length * .9), { fitText: Q } = de({
314
+ svgRef: q,
315
+ unitWidth: et
316
+ });
317
+ be(async () => {
318
+ await _e(), Q(".vue-ui-sparkhistogram-top-label", V.value.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", V.value.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", V.value.timeLabel.minFontSize);
319
+ }), D([
320
+ G,
321
+ K,
322
+ () => W.value
323
+ ], async () => {
324
+ await _e(), Q(".vue-ui-sparkhistogram-top-label", V.value.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", V.value.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", V.value.timeLabel.minFontSize);
325
+ });
326
+ function tt() {
327
+ L.value = !0;
328
+ }
329
+ function nt() {
330
+ L.value = !1, R.value = null, z.value = "pointer", Z.value = null;
331
+ }
332
+ function rt(e) {
333
+ if (!q.value || document.activeElement !== q.value || !X.value.length) return;
334
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
335
+ if (!t && !n && !r && !i) return;
336
+ if (e.preventDefault(), e.stopPropagation(), i) {
337
+ R.value = null, Z.value = null, z.value = "pointer";
338
+ return;
339
+ }
340
+ if (r) {
341
+ if (Z.value === null) return;
342
+ let e = X.value[Z.value];
343
+ if (!e) return;
344
+ Ye(e, Z.value);
345
+ return;
346
+ }
347
+ z.value = "keyboard";
348
+ let a = R.value;
349
+ 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)), R.value = a, Z.value = a;
350
+ let o = X.value[a];
351
+ B.value.events.datapointEnter && B.value.events.datapointEnter({
352
+ datapoint: o,
353
+ seriesIndex: a
354
+ });
355
+ }
356
+ let $ = h(() => ({
357
+ headers: [
358
+ B.value.a11y?.translations?.series ?? "Series",
359
+ B.value.a11y?.translations?.time ?? "Time",
360
+ B.value.a11y?.translations?.value ?? "Value",
361
+ B.value.a11y?.translations?.valueLabel ?? "Label"
362
+ ],
363
+ rows: X.value.map((e, t) => [
364
+ t + 1,
365
+ e.timeLabel ?? "",
366
+ e.value ?? "",
367
+ e.valueLabel ?? ""
368
+ ])
369
+ }));
370
+ return (e, r) => (x(), v("div", {
371
+ class: "vue-data-ui-component vue-ui-spark-histogram",
372
+ ref_key: "histogramChart",
373
+ ref: P,
374
+ style: b(`width:100%;background:${U.value.backgroundColor};font-family:${U.value.fontFamily}`),
375
+ onMouseleave: Qe
376
+ }, [
377
+ y("div", {
378
+ id: `chart-instructions-${j.value}`,
379
+ class: "sr-only"
380
+ }, [y("p", null, T(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ce),
381
+ $.value?.rows?.length ? (x(), g(le, {
382
+ key: 0,
383
+ uid: j.value,
384
+ head: $.value.headers,
385
+ body: $.value.rows,
386
+ notice: B.value.a11y.translations.tableAvailable,
387
+ caption: B.value.a11y.translations.tableCaption
388
+ }, null, 8, [
389
+ "uid",
390
+ "head",
391
+ "body",
392
+ "notice",
393
+ "caption"
394
+ ])) : _("", !0),
395
+ U.value.title.text ? (x(), v("div", {
396
+ key: 1,
397
+ ref_key: "chartTitle",
398
+ ref: N,
399
+ style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${U.value.title.margin};padding: 0 6px;text-align:${U.value.title.textAlign}`)
400
+ }, [y("div", { style: b(`font-size:${U.value.title.fontSize}px;color:${U.value.title.color};font-weight:${U.value.title.bold ? "bold" : "normal"}`) }, [
401
+ pe(T(U.value.title.text) + " ", 1),
402
+ Z.value === null ? _("", !0) : (x(), v("span", we, "- " + T(X.value[Z.value].timeLabel || "") + " " + T(E(o)(V.value.value.formatter, X.value[Z.value].value, E(t)({
403
+ p: V.value.value.prefix,
404
+ v: X.value[Z.value].value,
405
+ s: V.value.value.suffix,
406
+ r: V.value.value.rounding
407
+ }), {
408
+ datapoint: X.value[Z.value],
409
+ seriesIndex: Z.value
410
+ })), 1)),
411
+ ![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (x(), v("span", Te, T(` (${X.value[Z.value].valueLabel || 0})`), 1)) : _("", !0)
412
+ ], 4), U.value.title.subtitle.text ? (x(), v("div", {
413
+ key: 0,
414
+ style: b(`font-size:${U.value.title.subtitle.fontSize}px;color:${U.value.title.subtitle.color};font-weight:${U.value.title.subtitle.bold ? "bold" : "normal"}`)
415
+ }, T(U.value.title.subtitle.text), 5)) : _("", !0)], 4)) : _("", !0),
416
+ y("div", Ee, [(x(), v("svg", {
417
+ ref_key: "svgRef",
418
+ ref: q,
419
+ xmlns: E(ee),
420
+ viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
421
+ style: { overflow: "visible" },
422
+ "aria-describedby": `chart-instructions-${j.value}`,
423
+ tabindex: "0",
424
+ onFocus: tt,
425
+ onBlur: nt,
426
+ onKeydown: rt
427
+ }, [
428
+ me(E(O)),
429
+ e.$slots["chart-background"] ? (x(), v("foreignObject", {
430
+ key: 0,
431
+ x: 0,
432
+ y: 0,
433
+ width: Y.value.width,
434
+ height: Y.value.height,
435
+ style: { pointerEvents: "none" }
436
+ }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Oe)) : _("", !0),
437
+ y("defs", null, [
438
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), g(p, {
439
+ t: "radial",
440
+ id: `gradient_positive_${t}_${j.value}`,
441
+ key: `gradient_positive_${t}_${j.value}`,
442
+ cy: "50%",
443
+ cx: "50%",
444
+ r: "50%",
445
+ fx: "50%",
446
+ fy: "50%",
447
+ stops: [[
448
+ "0%",
449
+ E(n)(E(i)(H.value.colors.positive, .05), e.intensity),
450
+ 1
451
+ ], [
452
+ "100%",
453
+ E(n)(H.value.colors.positive, e.intensity),
454
+ 1
455
+ ]]
456
+ }, null, 8, ["id", "stops"]))), 128)),
457
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), g(p, {
458
+ t: "radial",
459
+ id: `gradient_negative_${t}_${j.value}`,
460
+ key: `gradient_negative_${t}_${j.value}`,
461
+ cy: "50%",
462
+ cx: "50%",
463
+ r: "50%",
464
+ fx: "50%",
465
+ fy: "50%",
466
+ stops: [[
467
+ "0%",
468
+ E(n)(E(i)(H.value.colors.negative, .05), e.intensity),
469
+ 1
470
+ ], [
471
+ "100%",
472
+ E(n)(H.value.colors.negative, e.intensity),
473
+ 1
474
+ ]]
475
+ }, null, 8, ["id", "stops"]))), 128)),
476
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), g(p, {
477
+ t: "radial",
478
+ id: `gradient_datapoint_${t}_${j.value}`,
479
+ key: `gradient_datapoint_${t}_${j.value}`,
480
+ cy: "50%",
481
+ cx: "50%",
482
+ r: "50%",
483
+ fx: "50%",
484
+ fy: "50%",
485
+ stops: [[
486
+ "0%",
487
+ E(n)(E(i)(e.color, .05), e.intensity),
488
+ 1
489
+ ], [
490
+ "100%",
491
+ E(n)(e.color, e.intensity),
492
+ 1
493
+ ]]
494
+ }, null, 8, ["id", "stops"]))), 128))
495
+ ]),
496
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), v("g", null, [Z.value !== null && Z.value === t ? (x(), v("rect", {
497
+ key: 0,
498
+ height: Y.value.height,
499
+ width: e.unitWidth,
500
+ fill: U.value.selector.fill,
501
+ x: e.trapX,
502
+ y: 0,
503
+ stroke: U.value.selector.stroke,
504
+ "stroke-width": U.value.selector.strokeWidth,
505
+ rx: U.value.selector.borderRadius,
506
+ "stroke-dasharray": U.value.selector.strokeDasharray
507
+ }, null, 8, ke)) : _("", !0)]))), 256)),
508
+ !H.value.shape || H.value.shape === "square" ? (x(), v("g", Ae, [(x(!0), v(m, null, C(X.value, (e, t) => (x(), v("rect", {
509
+ x: e.x,
510
+ y: e.y,
511
+ height: e.height,
512
+ width: e.width,
513
+ fill: H.value.colors.gradient.show ? e.gradient : e.color,
514
+ stroke: e.stroke,
515
+ "stroke-width": H.value.strokeWidth,
516
+ rx: `${H.value.borderRadius * e.proportion / 12}%`,
517
+ class: ve({ "vue-ui-sparkhistogram-shape": U.value.animation.show })
518
+ }, null, 10, je))), 256))])) : (x(), v("g", Me, [(x(!0), v(m, null, C(X.value, (e, t) => (x(), g(ae, {
519
+ plot: {
520
+ x: e.x + e.width / 2,
521
+ y: e.y + e.height / 2
522
+ },
523
+ color: H.value.colors.gradient.show ? e.gradient : e.color,
524
+ shape: H.value.shape,
525
+ radius: Math.min(e.height * .4, e.width * .4),
526
+ class: ve({ "vue-ui-sparkhistogram-shape": U.value.animation.show })
527
+ }, null, 8, [
528
+ "plot",
529
+ "color",
530
+ "shape",
531
+ "radius",
532
+ "class"
533
+ ]))), 256))])),
534
+ E(Ve) ? _("", !0) : (x(), v(m, { key: 3 }, [
535
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), v("g", null, [V.value.value.show ? (x(), v("text", {
536
+ key: 0,
537
+ class: "vue-ui-sparkhistogram-top-label",
538
+ "text-anchor": "middle",
539
+ x: e.textAnchor,
540
+ y: e.y - V.value.value.fontSize / 3 + V.value.value.offsetY,
541
+ "font-size": V.value.value.fontSize,
542
+ "font-weight": V.value.value.bold ? "bold" : "normal",
543
+ fill: V.value.value.color
544
+ }, T(qe(e, t)), 9, Ne)) : _("", !0)]))), 256)),
545
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), v("g", null, [e.valueLabel && V.value.valueLabel.show ? (x(), v("text", {
546
+ key: 0,
547
+ class: "vue-ui-sparkhistogram-bottom-label",
548
+ x: e.textAnchor,
549
+ y: e.y + e.height + V.value.valueLabel.fontSize,
550
+ "font-size": V.value.valueLabel.fontSize,
551
+ "text-anchor": "middle",
552
+ fill: V.value.valueLabel.color
553
+ }, T(e.valueLabel), 9, Pe)) : _("", !0)]))), 256)),
554
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), v("g", null, [e.timeLabel && V.value.timeLabel.show ? (x(), v("text", {
555
+ key: 0,
556
+ class: "vue-ui-sparkhistogram-time-label",
557
+ x: e.textAnchor,
558
+ y: Y.value.height,
559
+ "font-size": V.value.timeLabel.fontSize,
560
+ fill: V.value.timeLabel.color,
561
+ "text-anchor": "middle"
562
+ }, T(e.timeLabel), 9, Fe)) : _("", !0)]))), 256))
563
+ ], 64)),
564
+ (x(!0), v(m, null, C(X.value, (e, t) => (x(), v("g", null, [y("rect", {
565
+ height: Y.value.height,
566
+ width: e.unitWidth,
567
+ fill: "transparent",
568
+ x: e.trapX,
569
+ y: 0,
570
+ onMouseover: (n) => Xe(e, t),
571
+ onMouseleave: (n) => Ze(e, t),
572
+ onClick: () => Ye(e, t)
573
+ }, null, 40, Ie)]))), 256))
574
+ ], 40, De)), e.$slots.hint ? (x(), v("div", Le, [w(e.$slots, "hint", ye(ge({
575
+ hint: B.value.a11y.translations.keyboardNavigation,
576
+ isVisible: L.value
577
+ })), void 0, !0)])) : _("", !0)]),
578
+ e.$slots.source ? (x(), v("div", {
579
+ key: 2,
580
+ ref_key: "source",
581
+ ref: M,
582
+ dir: "auto"
583
+ }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
584
+ w(e.$slots, "skeleton", {}, () => [E(Ve) ? (x(), g(re, { key: 0 })) : _("", !0)], !0)
585
+ ], 36));
586
+ }
587
+ }, [["__scopeId", "data-v-7c150626"]]);
588
+ //#endregion
589
+ export { O as n, k as t };