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
@@ -1,589 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Jt as n, Rt as r, X as i, at as a, i as o, qt as s, t as c, tn as l, vt as ee } from "./lib-DTiqmM1G.js";
3
- import { n as u, t as te } from "./useHints-Dq_w2E8B.js";
4
- import { t as ne } from "./useConfig-DObkR9Aa.js";
5
- import { n as re, t as ie } from "./BaseScanner-Dzc8VT3j.js";
6
- import { t as d } from "./useNestedProp-D8cRQaVo.js";
7
- import { t as ae } from "./useThemeCheck-C43Tcqmk.js";
8
- import { t as oe } from "./Shape-BIe6C0HJ.js";
9
- import { t as f } 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 b, normalizeClass as _e, normalizeProps as ve, normalizeStyle as x, onMounted as ye, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as be, unref as D, useCssVars as xe, watch as Se } from "vue";
17
- //#region src/components/vue-ui-sparkhistogram.vue
18
- var Ce = /* @__PURE__ */ e({ default: () => O }), we = ["id"], Te = { key: 0 }, Ee = { key: 1 }, De = { style: { position: "relative" } }, Oe = [
19
- "xmlns",
20
- "viewBox",
21
- "aria-describedby"
22
- ], ke = ["width", "height"], Ae = [
23
- "height",
24
- "width",
25
- "fill",
26
- "x",
27
- "stroke",
28
- "stroke-width",
29
- "rx",
30
- "stroke-dasharray"
31
- ], je = { key: 1 }, Me = [
32
- "x",
33
- "y",
34
- "height",
35
- "width",
36
- "fill",
37
- "stroke",
38
- "stroke-width",
39
- "rx"
40
- ], Ne = { key: 2 }, Pe = [
41
- "x",
42
- "y",
43
- "font-size",
44
- "font-weight",
45
- "fill"
46
- ], Fe = [
47
- "x",
48
- "y",
49
- "font-size",
50
- "fill"
51
- ], Ie = [
52
- "x",
53
- "y",
54
- "font-size",
55
- "fill"
56
- ], Le = [
57
- "height",
58
- "width",
59
- "x",
60
- "onMouseover",
61
- "onMouseleave",
62
- "onClick"
63
- ], Re = {
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
- }, O = /*#__PURE__*/ f({
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: f }) {
91
- xe((e) => ({ v1bbfae94: $e.value }));
92
- let Ce = he(() => import("./PackageVersion-DEAYvEjl.js").then((e) => e.t)), { vue_ui_sparkhistogram: O } = ne(), { isThemeValid: ze, warnInvalidTheme: Be } = ae(), k = e, A = C(i()), j = C(null), M = C(null), N = C(null), P = C(null), F = C(null), I = C(!1), L = C(null), R = C("pointer"), z = C(J()), B = h(() => z.value.style.labels), V = h(() => z.value.style.bars), H = h(() => z.value.style);
93
- u({
94
- config: () => z.value,
95
- dataset: () => k.dataset,
96
- component: "VueUiSparkHistogram",
97
- rules: [te.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 Ve = h(() => l({
107
- defaultConfig: { style: {
108
- animation: { show: !1 },
109
- backgroundColor: "#99999930"
110
- } },
111
- userConfig: z.value.skeletonConfig ?? {}
112
- })), { loading: U, FINAL_DATASET: W, manualLoading: He } = re({
113
- ...be(k),
114
- FINAL_CONFIG: z,
115
- prepareConfig: J,
116
- skeletonDataset: k.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: l({
184
- defaultConfig: z.value,
185
- userConfig: Ve.value
186
- })
187
- }), G = C(H.value.layout.width), K = C(H.value.layout.height), { svgRef: q } = ue({ config: H.value.title });
188
- function J() {
189
- let e = d({
190
- userConfig: k.config,
191
- defaultConfig: O
192
- }), t = e.theme;
193
- if (!t) return e;
194
- if (!ze.value(e)) return Be(e), e;
195
- let n = d({
196
- userConfig: fe[t] || k.config,
197
- defaultConfig: e
198
- });
199
- return d({
200
- userConfig: k.config,
201
- defaultConfig: n
202
- });
203
- }
204
- ye(() => {
205
- We();
206
- });
207
- let Ue = h(() => z.value.debug);
208
- function We() {
209
- if (r(k.dataset) ? a({
210
- componentName: "VueUiSparkHistogram",
211
- type: "dataset",
212
- debug: Ue.value
213
- }) : Ue.value && k.dataset.forEach((e, t) => {
214
- ee({
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
- }), z.value.responsive) {
226
- let e = se(() => {
227
- let { width: e, height: t } = ce({
228
- chart: N.value,
229
- title: H.value.title.text ? M.value : null,
230
- source: j.value
231
- }), n = B.value.timeLabel.show ? B.value.timeLabel.fontSize * 2 : 0, r = B.value.valueLabel.show ? B.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
- P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect()), P.value = new ResizeObserver(e), F.value = N.value.parentNode, P.value.observe(F.value);
237
- }
238
- }
239
- Se(() => k.config, (e) => {
240
- z.value = J(), We();
241
- }, { deep: !0 });
242
- let Y = h(() => {
243
- let e = B.value.timeLabel.show ? B.value.timeLabel.fontSize * 2 : 0, t = B.value.valueLabel.show ? B.value.valueLabel.fontSize * 2 : 0, n = K.value + e + t, r = G.value, i = H.value.layout.padding.top, a = n - H.value.layout.padding.bottom, o = H.value.layout.padding.left, s = r - H.value.layout.padding.right;
244
- return {
245
- bottom: a,
246
- centerY: i + (n - i - H.value.layout.padding.bottom) / 2,
247
- drawingHeight: n - H.value.layout.padding.top - H.value.layout.padding.bottom - e - t,
248
- drawingWidth: r - H.value.layout.padding.left - H.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 n = Ke(e.value || 0), r = Y.value.drawingHeight * n, i = Y.value.drawingWidth / W.value.length, a = i * (V.value.gap / 100), o = i - a, c = Y.value.centerY - r / 2, l = Y.value.left + (a / 2 + t * i), ee = Y.value.left + t * i, u = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), te = e.color ? e.color : e.value >= 0 ? s(V.value.colors.positive, u) : s(V.value.colors.negative, u), ne = e.color ? e.color : e.value >= 0 ? V.value.colors.positive : V.value.colors.negative, re = e.color ? `url(#gradient_datapoint_${t}_${A.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${A.value})` : `url(#gradient_negative_${t}_${A.value})`, ie = l + o / 2;
261
- return {
262
- ...e,
263
- color: te,
264
- gradient: re,
265
- height: r,
266
- intensity: u,
267
- proportion: n,
268
- stroke: ne,
269
- textAnchor: ie,
270
- trapX: ee,
271
- unitWidth: i,
272
- width: o,
273
- x: l,
274
- y: c
275
- };
276
- }));
277
- function qe(e, n) {
278
- return o(B.value.value.formatter, e.value, t({
279
- p: B.value.value.prefix,
280
- v: e.value,
281
- s: B.value.value.suffix,
282
- r: B.value.value.rounding
283
- }), {
284
- datapoint: e,
285
- seriesIndex: n
286
- });
287
- }
288
- let Z = C(null), Je = f;
289
- function Ye(e, t) {
290
- Je("selectDatapoint", {
291
- datapoint: e,
292
- index: t
293
- }), z.value.events.datapointClick && z.value.events.datapointClick({
294
- datapoint: e,
295
- seriesIndex: t
296
- });
297
- }
298
- function Xe(e, t) {
299
- R.value = "pointer", L.value = t, Z.value = t, z.value.events.datapointEnter && z.value.events.datapointEnter({
300
- datapoint: e,
301
- seriesIndex: t
302
- });
303
- }
304
- function Ze(e, t) {
305
- R.value !== "keyboard" && (Z.value = null, L.value = null, z.value.events.datapointLeave && z.value.events.datapointLeave({
306
- datapoint: e,
307
- seriesIndex: t
308
- }));
309
- }
310
- function Qe() {
311
- R.value !== "keyboard" && (Z.value = null, L.value = null);
312
- }
313
- let $e = h(() => `${H.value.animation.speedMs}ms`), et = h(() => Y.value.drawingWidth / W.value.length * .9), { fitText: Q } = de({
314
- svgRef: q,
315
- unitWidth: et
316
- });
317
- ye(async () => {
318
- await b(), Q(".vue-ui-sparkhistogram-top-label", B.value.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.timeLabel.minFontSize);
319
- }), Se([
320
- G,
321
- K,
322
- () => W.value
323
- ], async () => {
324
- await b(), Q(".vue-ui-sparkhistogram-top-label", B.value.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.timeLabel.minFontSize);
325
- });
326
- function tt() {
327
- I.value = !0;
328
- }
329
- function nt() {
330
- I.value = !1, L.value = null, R.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
- L.value = null, Z.value = null, R.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
- R.value = "keyboard";
348
- let a = L.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)), L.value = a, Z.value = a;
350
- let o = X.value[a];
351
- z.value.events.datapointEnter && z.value.events.datapointEnter({
352
- datapoint: o,
353
- seriesIndex: a
354
- });
355
- }
356
- let $ = h(() => ({
357
- headers: [
358
- z.value.a11y?.translations?.series ?? "Series",
359
- z.value.a11y?.translations?.time ?? "Time",
360
- z.value.a11y?.translations?.value ?? "Value",
361
- z.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) => (S(), v("div", {
371
- class: "vue-data-ui-component vue-ui-spark-histogram",
372
- ref_key: "histogramChart",
373
- ref: N,
374
- style: x(`width:100%;background:${H.value.backgroundColor};font-family:${H.value.fontFamily}`),
375
- onMouseleave: Qe
376
- }, [
377
- y("div", {
378
- id: `chart-instructions-${A.value}`,
379
- class: "sr-only"
380
- }, [y("p", null, E(z.value.a11y.translations.keyboardNavigation), 1)], 8, we),
381
- $.value?.rows?.length ? (S(), g(le, {
382
- key: 0,
383
- uid: A.value,
384
- head: $.value.headers,
385
- body: $.value.rows,
386
- notice: z.value.a11y.translations.tableAvailable,
387
- caption: z.value.a11y.translations.tableCaption
388
- }, null, 8, [
389
- "uid",
390
- "head",
391
- "body",
392
- "notice",
393
- "caption"
394
- ])) : _("", !0),
395
- H.value.title.text ? (S(), v("div", {
396
- key: 1,
397
- ref_key: "chartTitle",
398
- ref: M,
399
- style: x(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${H.value.title.margin};padding: 0 6px;text-align:${H.value.title.textAlign}`)
400
- }, [y("div", { style: x(`font-size:${H.value.title.fontSize}px;color:${H.value.title.color};font-weight:${H.value.title.bold ? "bold" : "normal"}`) }, [
401
- pe(E(H.value.title.text) + " ", 1),
402
- Z.value === null ? _("", !0) : (S(), v("span", Te, "- " + E(X.value[Z.value].timeLabel || "") + " " + E(D(o)(B.value.value.formatter, X.value[Z.value].value, D(t)({
403
- p: B.value.value.prefix,
404
- v: X.value[Z.value].value,
405
- s: B.value.value.suffix,
406
- r: B.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) ? (S(), v("span", Ee, E(` (${X.value[Z.value].valueLabel || 0})`), 1)) : _("", !0)
412
- ], 4), H.value.title.subtitle.text ? (S(), v("div", {
413
- key: 0,
414
- style: x(`font-size:${H.value.title.subtitle.fontSize}px;color:${H.value.title.subtitle.color};font-weight:${H.value.title.subtitle.bold ? "bold" : "normal"}`)
415
- }, E(H.value.title.subtitle.text), 5)) : _("", !0)], 4)) : _("", !0),
416
- y("div", De, [(S(), v("svg", {
417
- ref_key: "svgRef",
418
- ref: q,
419
- xmlns: D(c),
420
- viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
421
- style: { overflow: "visible" },
422
- "aria-describedby": `chart-instructions-${A.value}`,
423
- tabindex: "0",
424
- onFocus: tt,
425
- onBlur: nt,
426
- onKeydown: rt
427
- }, [
428
- me(D(Ce)),
429
- e.$slots["chart-background"] ? (S(), 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
- }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, ke)) : _("", !0),
437
- y("defs", null, [
438
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), g(p, {
439
- t: "radial",
440
- id: `gradient_positive_${t}_${A.value}`,
441
- key: `gradient_positive_${t}_${A.value}`,
442
- cy: "50%",
443
- cx: "50%",
444
- r: "50%",
445
- fx: "50%",
446
- fy: "50%",
447
- stops: [[
448
- "0%",
449
- D(s)(D(n)(V.value.colors.positive, .05), e.intensity),
450
- 1
451
- ], [
452
- "100%",
453
- D(s)(V.value.colors.positive, e.intensity),
454
- 1
455
- ]]
456
- }, null, 8, ["id", "stops"]))), 128)),
457
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), g(p, {
458
- t: "radial",
459
- id: `gradient_negative_${t}_${A.value}`,
460
- key: `gradient_negative_${t}_${A.value}`,
461
- cy: "50%",
462
- cx: "50%",
463
- r: "50%",
464
- fx: "50%",
465
- fy: "50%",
466
- stops: [[
467
- "0%",
468
- D(s)(D(n)(V.value.colors.negative, .05), e.intensity),
469
- 1
470
- ], [
471
- "100%",
472
- D(s)(V.value.colors.negative, e.intensity),
473
- 1
474
- ]]
475
- }, null, 8, ["id", "stops"]))), 128)),
476
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), g(p, {
477
- t: "radial",
478
- id: `gradient_datapoint_${t}_${A.value}`,
479
- key: `gradient_datapoint_${t}_${A.value}`,
480
- cy: "50%",
481
- cx: "50%",
482
- r: "50%",
483
- fx: "50%",
484
- fy: "50%",
485
- stops: [[
486
- "0%",
487
- D(s)(D(n)(e.color, .05), e.intensity),
488
- 1
489
- ], [
490
- "100%",
491
- D(s)(e.color, e.intensity),
492
- 1
493
- ]]
494
- }, null, 8, ["id", "stops"]))), 128))
495
- ]),
496
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), v("g", null, [Z.value !== null && Z.value === t ? (S(), v("rect", {
497
- key: 0,
498
- height: Y.value.height,
499
- width: e.unitWidth,
500
- fill: H.value.selector.fill,
501
- x: e.trapX,
502
- y: 0,
503
- stroke: H.value.selector.stroke,
504
- "stroke-width": H.value.selector.strokeWidth,
505
- rx: H.value.selector.borderRadius,
506
- "stroke-dasharray": H.value.selector.strokeDasharray
507
- }, null, 8, Ae)) : _("", !0)]))), 256)),
508
- !V.value.shape || V.value.shape === "square" ? (S(), v("g", je, [(S(!0), v(m, null, w(X.value, (e, t) => (S(), v("rect", {
509
- x: e.x,
510
- y: e.y,
511
- height: e.height,
512
- width: e.width,
513
- fill: V.value.colors.gradient.show ? e.gradient : e.color,
514
- stroke: e.stroke,
515
- "stroke-width": V.value.strokeWidth,
516
- rx: `${V.value.borderRadius * e.proportion / 12}%`,
517
- class: _e({ "vue-ui-sparkhistogram-shape": H.value.animation.show })
518
- }, null, 10, Me))), 256))])) : (S(), v("g", Ne, [(S(!0), v(m, null, w(X.value, (e, t) => (S(), g(oe, {
519
- plot: {
520
- x: e.x + e.width / 2,
521
- y: e.y + e.height / 2
522
- },
523
- color: V.value.colors.gradient.show ? e.gradient : e.color,
524
- shape: V.value.shape,
525
- radius: Math.min(e.height * .4, e.width * .4),
526
- class: _e({ "vue-ui-sparkhistogram-shape": H.value.animation.show })
527
- }, null, 8, [
528
- "plot",
529
- "color",
530
- "shape",
531
- "radius",
532
- "class"
533
- ]))), 256))])),
534
- D(U) ? _("", !0) : (S(), v(m, { key: 3 }, [
535
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), v("g", null, [B.value.value.show ? (S(), v("text", {
536
- key: 0,
537
- class: "vue-ui-sparkhistogram-top-label",
538
- "text-anchor": "middle",
539
- x: e.textAnchor,
540
- y: e.y - B.value.value.fontSize / 3 + B.value.value.offsetY,
541
- "font-size": B.value.value.fontSize,
542
- "font-weight": B.value.value.bold ? "bold" : "normal",
543
- fill: B.value.value.color
544
- }, E(qe(e, t)), 9, Pe)) : _("", !0)]))), 256)),
545
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), v("g", null, [e.valueLabel && B.value.valueLabel.show ? (S(), v("text", {
546
- key: 0,
547
- class: "vue-ui-sparkhistogram-bottom-label",
548
- x: e.textAnchor,
549
- y: e.y + e.height + B.value.valueLabel.fontSize,
550
- "font-size": B.value.valueLabel.fontSize,
551
- "text-anchor": "middle",
552
- fill: B.value.valueLabel.color
553
- }, E(e.valueLabel), 9, Fe)) : _("", !0)]))), 256)),
554
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), v("g", null, [e.timeLabel && B.value.timeLabel.show ? (S(), v("text", {
555
- key: 0,
556
- class: "vue-ui-sparkhistogram-time-label",
557
- x: e.textAnchor,
558
- y: Y.value.height,
559
- "font-size": B.value.timeLabel.fontSize,
560
- fill: B.value.timeLabel.color,
561
- "text-anchor": "middle"
562
- }, E(e.timeLabel), 9, Ie)) : _("", !0)]))), 256))
563
- ], 64)),
564
- (S(!0), v(m, null, w(X.value, (e, t) => (S(), 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, Le)]))), 256))
574
- ], 40, Oe)), e.$slots.hint ? (S(), v("div", Re, [T(e.$slots, "hint", ve(ge({
575
- hint: z.value.a11y.translations.keyboardNavigation,
576
- isVisible: I.value
577
- })), void 0, !0)])) : _("", !0)]),
578
- e.$slots.source ? (S(), v("div", {
579
- key: 2,
580
- ref_key: "source",
581
- ref: j,
582
- dir: "auto"
583
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
584
- T(e.$slots, "skeleton", {}, () => [D(U) ? (S(), g(ie, { key: 0 })) : _("", !0)], !0)
585
- ], 36));
586
- }
587
- }, [["__scopeId", "data-v-7c150626"]]);
588
- //#endregion
589
- export { Ce as n, O as t };