vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.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-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,474 @@
1
+ import { useCssVars as ze, defineAsyncComponent as Te, ref as h, computed as k, toRefs as Ee, onMounted as Q, watch as Z, nextTick as ee, openBlock as a, createElementBlock as s, normalizeStyle as I, createElementVNode as f, toDisplayString as m, createBlock as K, createCommentVNode as d, createTextVNode as Me, unref as c, createVNode as Fe, renderSlot as N, Fragment as g, renderList as p, normalizeClass as te, normalizeProps as Ie, guardReactiveProps as Ne } from "vue";
2
+ import { j as De, t as le, o as He, q as ae, r as Ve, u as C, k as se, l as oe, X as Re, v as P } from "./lib-DBptbyyI.js";
3
+ import { t as We, u as Be } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Oe } from "./useConfig-DO94Aj5s.js";
5
+ import { u as Ke, B as Pe } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as je } from "./useFitSvgText-2crs6Fv5.js";
7
+ import { u as j } from "./useNestedProp-Bf5XFbs8.js";
8
+ import { u as Ue } from "./useThemeCheck-D1ZYXUwG.js";
9
+ import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { _ as qe } from "./Shape-BKRUOeKk.js";
11
+ import Ge from "./vue_ui_sparkhistogram-GBdzIVvS.js";
12
+ import { A as Ye } from "./A11yDataTable-KcVAX2cP.js";
13
+ import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Qe = ["id"], Ze = { key: 0 }, et = { key: 1 }, tt = { style: { position: "relative" } }, lt = ["xmlns", "viewBox", "aria-describedby"], at = ["width", "height"], st = ["id"], ot = ["stop-color"], nt = ["stop-color"], it = ["id"], ut = ["stop-color"], rt = ["stop-color"], vt = ["id"], ct = ["stop-color"], dt = ["stop-color"], yt = ["height", "width", "fill", "x", "stroke", "stroke-width", "rx", "stroke-dasharray"], ht = { key: 1 }, ft = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], gt = { key: 2 }, pt = ["x", "y", "font-size", "font-weight", "fill"], bt = ["x", "y", "font-size", "fill"], mt = ["x", "y", "font-size", "fill"], _t = ["height", "width", "x", "onMouseover", "onMouseleave", "onClick"], kt = {
15
+ key: 0,
16
+ style: { position: "absolute", top: "100%", left: "0", width: "100%" },
17
+ "data-dom-to-png-ignore": "",
18
+ "aria-hidden": "true"
19
+ }, Ct = {
20
+ __name: "vue-ui-sparkhistogram",
21
+ props: {
22
+ config: {
23
+ type: Object,
24
+ default() {
25
+ return {};
26
+ }
27
+ },
28
+ dataset: {
29
+ type: Array,
30
+ default() {
31
+ return [];
32
+ }
33
+ }
34
+ },
35
+ emits: ["selectDatapoint"],
36
+ setup(ne, { emit: ie }) {
37
+ ze((l) => ({
38
+ dd7c743c: _e.value
39
+ }));
40
+ const ue = Te(() => import("./PackageVersion-DPO-OOVI.js")), { vue_ui_sparkhistogram: re } = Oe(), { isThemeValid: ve, warnInvalidTheme: ce } = Ue(), _ = ne, b = h(De()), U = h(null), X = h(null), D = h(null), S = h(null), E = h(null), H = h(!1), x = h(null), A = h("pointer"), e = h(W()), de = k(() => le({
41
+ defaultConfig: {
42
+ style: {
43
+ animation: { show: !1 },
44
+ backgroundColor: "#99999930"
45
+ }
46
+ },
47
+ userConfig: e.value.skeletonConfig ?? {}
48
+ })), { loading: q, FINAL_DATASET: z } = Ke({
49
+ ...Ee(_),
50
+ FINAL_CONFIG: e,
51
+ prepareConfig: W,
52
+ skeletonDataset: _.config?.skeletonDataset ?? [
53
+ { value: 1, intensity: 0.2, color: "#CACACA" },
54
+ { value: 2, intensity: 0.3, color: "#CACACA" },
55
+ { value: 3, intensity: 0.5, color: "#CACACA" },
56
+ { value: 5, intensity: 0.7, color: "#CACACA" },
57
+ { value: 8, intensity: 0.9, color: "#CACACA" },
58
+ { value: 13, intensity: 0.95, color: "#CACACA" },
59
+ { value: 21, intensity: 1, color: "#CACACA" },
60
+ { value: 13, intensity: 0.95, color: "#CACACA" },
61
+ { value: 8, intensity: 0.9, color: "#CACACA" },
62
+ { value: 5, intensity: 0.7, color: "#CACACA" },
63
+ { value: 3, intensity: 0.5, color: "#CACACA" },
64
+ { value: 2, intensity: 0.3, color: "#CACACA" },
65
+ { value: 1, intensity: 0.2, color: "#CACACA" }
66
+ ],
67
+ skeletonConfig: le({
68
+ defaultConfig: e.value,
69
+ userConfig: de.value
70
+ })
71
+ }), V = h(e.value.style.layout.width), R = h(e.value.style.layout.height), { svgRef: M } = Xe({ config: e.value.style.title });
72
+ function W() {
73
+ const l = j({
74
+ userConfig: _.config,
75
+ defaultConfig: re
76
+ }), o = l.theme;
77
+ if (!o) return l;
78
+ if (!ve.value(l))
79
+ return ce(l), l;
80
+ const t = j({
81
+ userConfig: Ge[o] || _.config,
82
+ defaultConfig: l
83
+ });
84
+ return j({
85
+ userConfig: _.config,
86
+ defaultConfig: t
87
+ });
88
+ }
89
+ Q(() => {
90
+ Y();
91
+ });
92
+ const G = k(() => !!e.value.debug);
93
+ function Y() {
94
+ if (He(_.dataset) ? ae({
95
+ componentName: "VueUiSparkHistogram",
96
+ type: "dataset",
97
+ debug: G.value
98
+ }) : _.dataset.forEach((l, o) => {
99
+ Ve({
100
+ datasetObject: l,
101
+ requiredAttributes: ["value"]
102
+ }).forEach((t) => {
103
+ ae({
104
+ componentName: "VueUiSparkHistogram",
105
+ type: "datasetSerieAttribute",
106
+ property: t,
107
+ index: o,
108
+ debug: G.value
109
+ });
110
+ });
111
+ }), e.value.responsive) {
112
+ const l = We(() => {
113
+ const { width: o, height: t } = Be({
114
+ chart: D.value,
115
+ title: e.value.style.title.text ? X.value : null,
116
+ source: U.value
117
+ }), n = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, v = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0;
118
+ requestAnimationFrame(() => {
119
+ V.value = Math.max(10, o), R.value = Math.max(10, t - 12 - n - v);
120
+ });
121
+ });
122
+ S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect()), S.value = new ResizeObserver(l), E.value = D.value.parentNode, S.value.observe(E.value);
123
+ }
124
+ }
125
+ Z(() => _.config, (l) => {
126
+ e.value = W(), Y();
127
+ }, { deep: !0 });
128
+ const y = k(() => {
129
+ const l = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, o = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0, t = R.value + l + o, n = V.value, v = e.value.style.layout.padding.top, r = t - e.value.style.layout.padding.bottom, L = e.value.style.layout.padding.left, $ = n - e.value.style.layout.padding.right, F = v + (t - v - e.value.style.layout.padding.bottom) / 2, O = t - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - l - o, T = n - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
130
+ return {
131
+ bottom: r,
132
+ centerY: F,
133
+ drawingHeight: O,
134
+ drawingWidth: T,
135
+ height: t,
136
+ left: L,
137
+ right: $,
138
+ top: v,
139
+ width: n
140
+ };
141
+ }), ye = k(() => Math.max(...z.value.map((l) => Math.abs(l.value || 0))));
142
+ function he(l) {
143
+ return Math.abs(l) / ye.value;
144
+ }
145
+ const i = k(() => z.value.map((l, o) => {
146
+ const t = he(l.value || 0), n = y.value.drawingHeight * t, v = y.value.drawingWidth / z.value.length, r = v * (e.value.style.bars.gap / 100), L = v - r, $ = y.value.centerY - n / 2, F = y.value.left + (r / 2 + o * v), O = y.value.left + o * v, T = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), we = l.color ? l.color : l.value >= 0 ? C(e.value.style.bars.colors.positive, T) : C(e.value.style.bars.colors.negative, T), Le = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, $e = l.color ? `url(#gradient_datapoint_${o}_${b.value})` : l.value >= 0 ? `url(#gradient_positive_${o}_${b.value})` : `url(#gradient_negative_${o}_${b.value})`, Se = F + L / 2;
147
+ return {
148
+ ...l,
149
+ color: we,
150
+ gradient: $e,
151
+ height: n,
152
+ intensity: T,
153
+ proportion: t,
154
+ stroke: Le,
155
+ textAnchor: Se,
156
+ trapX: O,
157
+ unitWidth: v,
158
+ width: L,
159
+ x: F,
160
+ y: $
161
+ };
162
+ }));
163
+ function fe(l, o) {
164
+ return se(
165
+ e.value.style.labels.value.formatter,
166
+ l.value,
167
+ oe({
168
+ p: e.value.style.labels.value.prefix,
169
+ v: l.value,
170
+ s: e.value.style.labels.value.suffix,
171
+ r: e.value.style.labels.value.rounding
172
+ }),
173
+ { datapoint: l, seriesIndex: o }
174
+ );
175
+ }
176
+ const u = h(null), ge = ie;
177
+ function J(l, o) {
178
+ ge("selectDatapoint", { datapoint: l, index: o }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
179
+ }
180
+ function pe(l, o) {
181
+ A.value = "pointer", x.value = o, u.value = o, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: o });
182
+ }
183
+ function be(l, o) {
184
+ A.value !== "keyboard" && (u.value = null, x.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }));
185
+ }
186
+ function me() {
187
+ A.value !== "keyboard" && (u.value = null, x.value = null);
188
+ }
189
+ const _e = k(() => `${e.value.style.animation.speedMs}ms`), ke = k(() => y.value.drawingWidth / z.value.length * 0.9), { fitText: w } = je({
190
+ svgRef: M,
191
+ unitWidth: ke
192
+ });
193
+ Q(async () => {
194
+ await ee(), w(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), w(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), w(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
195
+ }), Z([V, R, () => z.value], async () => {
196
+ await ee(), w(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), w(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), w(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
197
+ });
198
+ function Ce() {
199
+ H.value = !0;
200
+ }
201
+ function xe() {
202
+ H.value = !1, x.value = null, A.value = "pointer", u.value = null;
203
+ }
204
+ function Ae(l) {
205
+ if (!M.value || document.activeElement !== M.value || !i.value.length) return;
206
+ const o = l.key === "ArrowLeft", t = l.key === "ArrowRight", n = l.key === "Enter" || l.key === " ", v = l.key === "Escape";
207
+ if (!o && !t && !n && !v) return;
208
+ if (l.preventDefault(), l.stopPropagation(), v) {
209
+ x.value = null, u.value = null, A.value = "pointer";
210
+ return;
211
+ }
212
+ if (n) {
213
+ if (u.value === null) return;
214
+ const $ = i.value[u.value];
215
+ if (!$) return;
216
+ J($, u.value);
217
+ return;
218
+ }
219
+ A.value = "keyboard";
220
+ let r = x.value;
221
+ r === null || r < 0 || r >= i.value.length ? r = t ? 0 : i.value.length - 1 : t ? (r += 1, r >= i.value.length && (r = 0)) : o && (r -= 1, r < 0 && (r = i.value.length - 1)), x.value = r, u.value = r;
222
+ const L = i.value[r];
223
+ e.value.events.datapointEnter && e.value.events.datapointEnter({
224
+ datapoint: L,
225
+ seriesIndex: r
226
+ });
227
+ }
228
+ const B = k(() => {
229
+ const l = [
230
+ e.value.a11y?.translations?.series ?? "Series",
231
+ e.value.a11y?.translations?.time ?? "Time",
232
+ e.value.a11y?.translations?.value ?? "Value",
233
+ e.value.a11y?.translations?.valueLabel ?? "Label"
234
+ ], o = i.value.map((t, n) => [
235
+ n + 1,
236
+ t.timeLabel ?? "",
237
+ t.value ?? "",
238
+ t.valueLabel ?? ""
239
+ ]);
240
+ return { headers: l, rows: o };
241
+ });
242
+ return (l, o) => (a(), s("div", {
243
+ class: "vue-data-ui-component vue-ui-spark-histogram",
244
+ ref_key: "histogramChart",
245
+ ref: D,
246
+ style: I(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
247
+ onMouseleave: me
248
+ }, [
249
+ f("div", {
250
+ id: `chart-instructions-${b.value}`,
251
+ class: "sr-only"
252
+ }, [
253
+ f("p", null, m(e.value.a11y.translations.keyboardNavigation), 1)
254
+ ], 8, Qe),
255
+ B.value?.rows?.length ? (a(), K(Ye, {
256
+ key: 0,
257
+ uid: b.value,
258
+ head: B.value.headers,
259
+ body: B.value.rows,
260
+ notice: e.value.a11y.translations.tableAvailable,
261
+ caption: e.value.a11y.translations.tableCaption
262
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : d("", !0),
263
+ e.value.style.title.text ? (a(), s("div", {
264
+ key: 1,
265
+ ref_key: "chartTitle",
266
+ ref: X,
267
+ style: I(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
268
+ }, [
269
+ f("div", {
270
+ style: I(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
271
+ }, [
272
+ Me(m(e.value.style.title.text) + " ", 1),
273
+ u.value !== null ? (a(), s("span", Ze, "- " + m(i.value[u.value].timeLabel || "") + " " + m(c(se)(
274
+ e.value.style.labels.value.formatter,
275
+ i.value[u.value].value,
276
+ c(oe)({
277
+ p: e.value.style.labels.value.prefix,
278
+ v: i.value[u.value].value,
279
+ s: e.value.style.labels.value.suffix,
280
+ r: e.value.style.labels.value.rounding
281
+ }),
282
+ { datapoint: i.value[u.value], seriesIndex: u.value }
283
+ )), 1)) : d("", !0),
284
+ ![void 0, null].includes(u.value) && ![null, void 0].includes(i.value[u.value].valueLabel) ? (a(), s("span", et, m(` (${i.value[u.value].valueLabel || 0})`), 1)) : d("", !0)
285
+ ], 4),
286
+ e.value.style.title.subtitle.text ? (a(), s("div", {
287
+ key: 0,
288
+ style: I(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
289
+ }, m(e.value.style.title.subtitle.text), 5)) : d("", !0)
290
+ ], 4)) : d("", !0),
291
+ f("div", tt, [
292
+ (a(), s("svg", {
293
+ ref_key: "svgRef",
294
+ ref: M,
295
+ xmlns: c(Re),
296
+ viewBox: `0 0 ${y.value.width} ${y.value.height}`,
297
+ style: { overflow: "visible" },
298
+ "aria-describedby": `chart-instructions-${b.value}`,
299
+ tabindex: "0",
300
+ onFocus: Ce,
301
+ onBlur: xe,
302
+ onKeydown: Ae
303
+ }, [
304
+ Fe(c(ue)),
305
+ l.$slots["chart-background"] ? (a(), s("foreignObject", {
306
+ key: 0,
307
+ x: 0,
308
+ y: 0,
309
+ width: y.value.width,
310
+ height: y.value.height,
311
+ style: {
312
+ pointerEvents: "none"
313
+ }
314
+ }, [
315
+ N(l.$slots, "chart-background", {}, void 0, !0)
316
+ ], 8, at)) : d("", !0),
317
+ f("defs", null, [
318
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("radialGradient", {
319
+ id: `gradient_positive_${n}_${b.value}`,
320
+ cy: "50%",
321
+ cx: "50%",
322
+ r: "50%",
323
+ fx: "50%",
324
+ fy: "50%"
325
+ }, [
326
+ f("stop", {
327
+ offset: "0%",
328
+ "stop-color": c(C)(c(P)(e.value.style.bars.colors.positive, 0.05), t.intensity)
329
+ }, null, 8, ot),
330
+ f("stop", {
331
+ offset: "100%",
332
+ "stop-color": c(C)(e.value.style.bars.colors.positive, t.intensity)
333
+ }, null, 8, nt)
334
+ ], 8, st))), 256)),
335
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("radialGradient", {
336
+ id: `gradient_negative_${n}_${b.value}`,
337
+ cy: "50%",
338
+ cx: "50%",
339
+ r: "50%",
340
+ fx: "50%",
341
+ fy: "50%"
342
+ }, [
343
+ f("stop", {
344
+ offset: "0%",
345
+ "stop-color": c(C)(c(P)(e.value.style.bars.colors.negative, 0.05), t.intensity)
346
+ }, null, 8, ut),
347
+ f("stop", {
348
+ offset: "100%",
349
+ "stop-color": c(C)(e.value.style.bars.colors.negative, t.intensity)
350
+ }, null, 8, rt)
351
+ ], 8, it))), 256)),
352
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("radialGradient", {
353
+ id: `gradient_datapoint_${n}_${b.value}`,
354
+ cy: "50%",
355
+ cx: "50%",
356
+ r: "50%",
357
+ fx: "50%",
358
+ fy: "50%"
359
+ }, [
360
+ f("stop", {
361
+ offset: "0%",
362
+ "stop-color": c(C)(c(P)(t.color, 0.05), t.intensity)
363
+ }, null, 8, ct),
364
+ f("stop", {
365
+ offset: "100%",
366
+ "stop-color": c(C)(t.color, t.intensity)
367
+ }, null, 8, dt)
368
+ ], 8, vt))), 256))
369
+ ]),
370
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("g", null, [
371
+ u.value !== null && u.value === n ? (a(), s("rect", {
372
+ key: 0,
373
+ height: y.value.height,
374
+ width: t.unitWidth,
375
+ fill: e.value.style.selector.fill,
376
+ x: t.trapX,
377
+ y: 0,
378
+ stroke: e.value.style.selector.stroke,
379
+ "stroke-width": e.value.style.selector.strokeWidth,
380
+ rx: e.value.style.selector.borderRadius,
381
+ "stroke-dasharray": e.value.style.selector.strokeDasharray
382
+ }, null, 8, yt)) : d("", !0)
383
+ ]))), 256)),
384
+ !e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", ht, [
385
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("rect", {
386
+ x: t.x,
387
+ y: t.y,
388
+ height: t.height,
389
+ width: t.width,
390
+ fill: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
391
+ stroke: t.stroke,
392
+ "stroke-width": e.value.style.bars.strokeWidth,
393
+ rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
394
+ class: te({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
395
+ }, null, 10, ft))), 256))
396
+ ])) : (a(), s("g", gt, [
397
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), K(qe, {
398
+ plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
399
+ color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
400
+ shape: e.value.style.bars.shape,
401
+ radius: Math.min(t.height * 0.4, t.width * 0.4),
402
+ class: te({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
403
+ }, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
404
+ ])),
405
+ c(q) ? d("", !0) : (a(), s(g, { key: 3 }, [
406
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("g", null, [
407
+ e.value.style.labels.value.show ? (a(), s("text", {
408
+ key: 0,
409
+ class: "vue-ui-sparkhistogram-top-label",
410
+ "text-anchor": "middle",
411
+ x: t.textAnchor,
412
+ y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
413
+ "font-size": e.value.style.labels.value.fontSize,
414
+ "font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
415
+ fill: e.value.style.labels.value.color
416
+ }, m(fe(t, n)), 9, pt)) : d("", !0)
417
+ ]))), 256)),
418
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("g", null, [
419
+ t.valueLabel && e.value.style.labels.valueLabel.show ? (a(), s("text", {
420
+ key: 0,
421
+ class: "vue-ui-sparkhistogram-bottom-label",
422
+ x: t.textAnchor,
423
+ y: t.y + t.height + e.value.style.labels.valueLabel.fontSize,
424
+ "font-size": e.value.style.labels.valueLabel.fontSize,
425
+ "text-anchor": "middle",
426
+ fill: e.value.style.labels.valueLabel.color
427
+ }, m(t.valueLabel), 9, bt)) : d("", !0)
428
+ ]))), 256)),
429
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("g", null, [
430
+ t.timeLabel && e.value.style.labels.timeLabel.show ? (a(), s("text", {
431
+ key: 0,
432
+ class: "vue-ui-sparkhistogram-time-label",
433
+ x: t.textAnchor,
434
+ y: y.value.height,
435
+ "font-size": e.value.style.labels.timeLabel.fontSize,
436
+ fill: e.value.style.labels.timeLabel.color,
437
+ "text-anchor": "middle"
438
+ }, m(t.timeLabel), 9, mt)) : d("", !0)
439
+ ]))), 256))
440
+ ], 64)),
441
+ (a(!0), s(g, null, p(i.value, (t, n) => (a(), s("g", null, [
442
+ f("rect", {
443
+ height: y.value.height,
444
+ width: t.unitWidth,
445
+ fill: "transparent",
446
+ x: t.trapX,
447
+ y: 0,
448
+ onMouseover: (v) => pe(t, n),
449
+ onMouseleave: (v) => be(t, n),
450
+ onClick: () => J(t, n)
451
+ }, null, 40, _t)
452
+ ]))), 256))
453
+ ], 40, lt)),
454
+ l.$slots.hint ? (a(), s("div", kt, [
455
+ N(l.$slots, "hint", Ie(Ne({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: H.value })), void 0, !0)
456
+ ])) : d("", !0)
457
+ ]),
458
+ l.$slots.source ? (a(), s("div", {
459
+ key: 2,
460
+ ref_key: "source",
461
+ ref: U,
462
+ dir: "auto"
463
+ }, [
464
+ N(l.$slots, "source", {}, void 0, !0)
465
+ ], 512)) : d("", !0),
466
+ N(l.$slots, "skeleton", {}, () => [
467
+ c(q) ? (a(), K(Pe, { key: 0 })) : d("", !0)
468
+ ], !0)
469
+ ], 36));
470
+ }
471
+ }, Dt = /* @__PURE__ */ Je(Ct, [["__scopeId", "data-v-24dcfd6c"]]);
472
+ export {
473
+ Dt as default
474
+ };