vue-data-ui 3.25.11 → 3.25.13

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  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 +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -0,0 +1,589 @@
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-DOpaUOQx.js";
3
+ import { n as u, t as te } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ne } from "./useConfig-C2uy4ltq.js";
5
+ import { n as re, t as ie } from "./BaseScanner-Dzc8VT3j.js";
6
+ import { t as d } from "./useNestedProp-Bux0f4iY.js";
7
+ import { t as ae } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as oe } from "./Shape-VCdxvFV9.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-D5QkTJQU.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 };