vue-data-ui 3.22.13 → 3.23.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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -0,0 +1,590 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Bt as t, Jt as n, Vt as r, X as i, i as a, jt as o, pt as s, q as ee, t as c, tt as l } from "./lib-BuMGJ_a0.js";
3
+ import { n as u, t as d } from "./useHints-Dq_w2E8B.js";
4
+ import { t as f } from "./useConfig-BilxnBNr.js";
5
+ import { n as p, t as te } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as m } from "./useNestedProp--NSEmhOH.js";
7
+ import { t as ne } from "./useThemeCheck-C43Tcqmk.js";
8
+ import { t as re } from "./Shape-BPMV94Ij.js";
9
+ import { t as ie } from "./_plugin-vue_export-helper-B3ysoDQm.js";
10
+ import { l as ae, t as oe } from "./useResponsive-ZtArZtUf.js";
11
+ import { t as h } from "./DefGrad-DVBqDjhO.js";
12
+ import { t as se } from "./A11yDataTable-DdRsVULz.js";
13
+ import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
14
+ import { t as le } from "./useFitSvgText-CXTzBplU.js";
15
+ import { t as ue } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
16
+ import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as de, createVNode as fe, defineAsyncComponent as pe, guardReactiveProps as me, nextTick as he, normalizeClass as ge, normalizeProps as _e, normalizeStyle as S, onMounted as ve, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRefs as ye, unref as O, useCssVars as be, watch as k } from "vue";
17
+ //#region src/components/vue-ui-sparkhistogram.vue
18
+ var A = /* @__PURE__ */ e({ default: () => j }), xe = ["id"], Se = { key: 0 }, Ce = { key: 1 }, we = { style: { position: "relative" } }, Te = [
19
+ "xmlns",
20
+ "viewBox",
21
+ "aria-describedby"
22
+ ], Ee = ["width", "height"], De = [
23
+ "height",
24
+ "width",
25
+ "fill",
26
+ "x",
27
+ "stroke",
28
+ "stroke-width",
29
+ "rx",
30
+ "stroke-dasharray"
31
+ ], Oe = { key: 1 }, ke = [
32
+ "x",
33
+ "y",
34
+ "height",
35
+ "width",
36
+ "fill",
37
+ "stroke",
38
+ "stroke-width",
39
+ "rx"
40
+ ], Ae = { key: 2 }, je = [
41
+ "x",
42
+ "y",
43
+ "font-size",
44
+ "font-weight",
45
+ "fill"
46
+ ], Me = [
47
+ "x",
48
+ "y",
49
+ "font-size",
50
+ "fill"
51
+ ], Ne = [
52
+ "x",
53
+ "y",
54
+ "font-size",
55
+ "fill"
56
+ ], Pe = [
57
+ "height",
58
+ "width",
59
+ "x",
60
+ "onMouseover",
61
+ "onMouseleave",
62
+ "onClick"
63
+ ], Fe = {
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
+ }, j = /*#__PURE__*/ ie({
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: ie }) {
91
+ be((e) => ({ v63d726a1: Xe.value }));
92
+ let A = pe(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_sparkhistogram: j } = f(), { isThemeValid: Ie, warnInvalidTheme: Le } = ne(), M = e, N = w(ee()), P = w(null), F = w(null), I = w(null), L = w(null), R = w(null), z = w(!1), B = w(null), V = w("pointer"), H = w(q());
93
+ u({
94
+ config: () => H.value,
95
+ dataset: () => M.dataset,
96
+ component: "VueUiSparkHistogram",
97
+ rules: [d.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 Re = _(() => n({
107
+ defaultConfig: { style: {
108
+ animation: { show: !1 },
109
+ backgroundColor: "#99999930"
110
+ } },
111
+ userConfig: H.value.skeletonConfig ?? {}
112
+ })), { loading: ze, FINAL_DATASET: U, manualLoading: Be } = p({
113
+ ...ye(M),
114
+ FINAL_CONFIG: H,
115
+ prepareConfig: q,
116
+ skeletonDataset: M.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: n({
184
+ defaultConfig: H.value,
185
+ userConfig: Re.value
186
+ })
187
+ }), W = w(H.value.style.layout.width), G = w(H.value.style.layout.height), { svgRef: K } = ce({ config: H.value.style.title });
188
+ function q() {
189
+ let e = m({
190
+ userConfig: M.config,
191
+ defaultConfig: j
192
+ }), t = e.theme;
193
+ if (!t) return e;
194
+ if (!Ie.value(e)) return Le(e), e;
195
+ let n = m({
196
+ userConfig: ue[t] || M.config,
197
+ defaultConfig: e
198
+ });
199
+ return m({
200
+ userConfig: M.config,
201
+ defaultConfig: n
202
+ });
203
+ }
204
+ ve(() => {
205
+ He();
206
+ });
207
+ let Ve = _(() => !!H.value.debug);
208
+ function He() {
209
+ if (o(M.dataset) ? l({
210
+ componentName: "VueUiSparkHistogram",
211
+ type: "dataset",
212
+ debug: Ve.value
213
+ }) : M.dataset.forEach((e, t) => {
214
+ s({
215
+ datasetObject: e,
216
+ requiredAttributes: ["value"]
217
+ }).forEach((e) => {
218
+ l({
219
+ componentName: "VueUiSparkHistogram",
220
+ type: "datasetSerieAttribute",
221
+ property: e,
222
+ index: t,
223
+ debug: Ve.value
224
+ });
225
+ });
226
+ }), H.value.responsive) {
227
+ let e = ae(() => {
228
+ let { width: e, height: t } = oe({
229
+ chart: I.value,
230
+ title: H.value.style.title.text ? F.value : null,
231
+ source: P.value
232
+ }), n = H.value.style.labels.timeLabel.show ? H.value.style.labels.timeLabel.fontSize * 2 : 0, r = H.value.style.labels.valueLabel.show ? H.value.style.labels.valueLabel.fontSize * 2 : 0;
233
+ requestAnimationFrame(() => {
234
+ W.value = Math.max(10, e), G.value = Math.max(10, t - 12 - n - r);
235
+ });
236
+ });
237
+ L.value && (R.value && L.value.unobserve(R.value), L.value.disconnect()), L.value = new ResizeObserver(e), R.value = I.value.parentNode, L.value.observe(R.value);
238
+ }
239
+ }
240
+ k(() => M.config, (e) => {
241
+ H.value = q(), He();
242
+ }, { deep: !0 });
243
+ let J = _(() => {
244
+ let e = H.value.style.labels.timeLabel.show ? H.value.style.labels.timeLabel.fontSize * 2 : 0, t = H.value.style.labels.valueLabel.show ? H.value.style.labels.valueLabel.fontSize * 2 : 0, n = G.value + e + t, r = W.value, i = H.value.style.layout.padding.top, a = n - H.value.style.layout.padding.bottom, o = H.value.style.layout.padding.left, s = r - H.value.style.layout.padding.right;
245
+ return {
246
+ bottom: a,
247
+ centerY: i + (n - i - H.value.style.layout.padding.bottom) / 2,
248
+ drawingHeight: n - H.value.style.layout.padding.top - H.value.style.layout.padding.bottom - e - t,
249
+ drawingWidth: r - H.value.style.layout.padding.left - H.value.style.layout.padding.right,
250
+ height: n,
251
+ left: o,
252
+ right: s,
253
+ top: i,
254
+ width: r
255
+ };
256
+ }), Ue = _(() => Math.max(...U.value.map((e) => Math.abs(e.value || 0))));
257
+ function We(e) {
258
+ return Math.abs(e) / Ue.value;
259
+ }
260
+ let Y = _(() => U.value.map((e, n) => {
261
+ let r = We(e.value || 0), i = J.value.drawingHeight * r, a = J.value.drawingWidth / U.value.length, o = a * (H.value.style.bars.gap / 100), s = a - o, ee = J.value.centerY - i / 2, c = J.value.left + (o / 2 + n * a), l = J.value.left + n * a, u = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), d = e.color ? e.color : e.value >= 0 ? t(H.value.style.bars.colors.positive, u) : t(H.value.style.bars.colors.negative, u), f = e.color ? e.color : e.value >= 0 ? H.value.style.bars.colors.positive : H.value.style.bars.colors.negative, p = e.color ? `url(#gradient_datapoint_${n}_${N.value})` : e.value >= 0 ? `url(#gradient_positive_${n}_${N.value})` : `url(#gradient_negative_${n}_${N.value})`, te = c + s / 2;
262
+ return {
263
+ ...e,
264
+ color: d,
265
+ gradient: p,
266
+ height: i,
267
+ intensity: u,
268
+ proportion: r,
269
+ stroke: f,
270
+ textAnchor: te,
271
+ trapX: l,
272
+ unitWidth: a,
273
+ width: s,
274
+ x: c,
275
+ y: ee
276
+ };
277
+ }));
278
+ function Ge(e, t) {
279
+ return a(H.value.style.labels.value.formatter, e.value, i({
280
+ p: H.value.style.labels.value.prefix,
281
+ v: e.value,
282
+ s: H.value.style.labels.value.suffix,
283
+ r: H.value.style.labels.value.rounding
284
+ }), {
285
+ datapoint: e,
286
+ seriesIndex: t
287
+ });
288
+ }
289
+ let X = w(null), Ke = ie;
290
+ function Z(e, t) {
291
+ Ke("selectDatapoint", {
292
+ datapoint: e,
293
+ index: t
294
+ }), H.value.events.datapointClick && H.value.events.datapointClick({
295
+ datapoint: e,
296
+ seriesIndex: t
297
+ });
298
+ }
299
+ function qe(e, t) {
300
+ V.value = "pointer", B.value = t, X.value = t, H.value.events.datapointEnter && H.value.events.datapointEnter({
301
+ datapoint: e,
302
+ seriesIndex: t
303
+ });
304
+ }
305
+ function Je(e, t) {
306
+ V.value !== "keyboard" && (X.value = null, B.value = null, H.value.events.datapointLeave && H.value.events.datapointLeave({
307
+ datapoint: e,
308
+ seriesIndex: t
309
+ }));
310
+ }
311
+ function Ye() {
312
+ V.value !== "keyboard" && (X.value = null, B.value = null);
313
+ }
314
+ let Xe = _(() => `${H.value.style.animation.speedMs}ms`), { fitText: Q } = le({
315
+ svgRef: K,
316
+ unitWidth: _(() => J.value.drawingWidth / U.value.length * .9)
317
+ });
318
+ ve(async () => {
319
+ await he(), Q(".vue-ui-sparkhistogram-top-label", H.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", H.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", H.value.style.labels.timeLabel.minFontSize);
320
+ }), k([
321
+ W,
322
+ G,
323
+ () => U.value
324
+ ], async () => {
325
+ await he(), Q(".vue-ui-sparkhistogram-top-label", H.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", H.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", H.value.style.labels.timeLabel.minFontSize);
326
+ });
327
+ function Ze() {
328
+ z.value = !0;
329
+ }
330
+ function Qe() {
331
+ z.value = !1, B.value = null, V.value = "pointer", X.value = null;
332
+ }
333
+ function $e(e) {
334
+ if (!K.value || document.activeElement !== K.value || !Y.value.length) return;
335
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
336
+ if (!t && !n && !r && !i) return;
337
+ if (e.preventDefault(), e.stopPropagation(), i) {
338
+ B.value = null, X.value = null, V.value = "pointer";
339
+ return;
340
+ }
341
+ if (r) {
342
+ if (X.value === null) return;
343
+ let e = Y.value[X.value];
344
+ if (!e) return;
345
+ Z(e, X.value);
346
+ return;
347
+ }
348
+ V.value = "keyboard";
349
+ let a = B.value;
350
+ a === null || a < 0 || a >= Y.value.length ? a = n ? 0 : Y.value.length - 1 : n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1)), B.value = a, X.value = a;
351
+ let o = Y.value[a];
352
+ H.value.events.datapointEnter && H.value.events.datapointEnter({
353
+ datapoint: o,
354
+ seriesIndex: a
355
+ });
356
+ }
357
+ let $ = _(() => ({
358
+ headers: [
359
+ H.value.a11y?.translations?.series ?? "Series",
360
+ H.value.a11y?.translations?.time ?? "Time",
361
+ H.value.a11y?.translations?.value ?? "Value",
362
+ H.value.a11y?.translations?.valueLabel ?? "Label"
363
+ ],
364
+ rows: Y.value.map((e, t) => [
365
+ t + 1,
366
+ e.timeLabel ?? "",
367
+ e.value ?? "",
368
+ e.valueLabel ?? ""
369
+ ])
370
+ }));
371
+ return (e, n) => (C(), b("div", {
372
+ class: "vue-data-ui-component vue-ui-spark-histogram",
373
+ ref_key: "histogramChart",
374
+ ref: I,
375
+ style: S(`width:100%;background:${H.value.style.backgroundColor};font-family:${H.value.style.fontFamily}`),
376
+ onMouseleave: Ye
377
+ }, [
378
+ x("div", {
379
+ id: `chart-instructions-${N.value}`,
380
+ class: "sr-only"
381
+ }, [x("p", null, D(H.value.a11y.translations.keyboardNavigation), 1)], 8, xe),
382
+ $.value?.rows?.length ? (C(), v(se, {
383
+ key: 0,
384
+ uid: N.value,
385
+ head: $.value.headers,
386
+ body: $.value.rows,
387
+ notice: H.value.a11y.translations.tableAvailable,
388
+ caption: H.value.a11y.translations.tableCaption
389
+ }, null, 8, [
390
+ "uid",
391
+ "head",
392
+ "body",
393
+ "notice",
394
+ "caption"
395
+ ])) : y("", !0),
396
+ H.value.style.title.text ? (C(), b("div", {
397
+ key: 1,
398
+ ref_key: "chartTitle",
399
+ ref: F,
400
+ style: S(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${H.value.style.title.margin};padding: 0 6px;text-align:${H.value.style.title.textAlign}`)
401
+ }, [x("div", { style: S(`font-size:${H.value.style.title.fontSize}px;color:${H.value.style.title.color};font-weight:${H.value.style.title.bold ? "bold" : "normal"}`) }, [
402
+ de(D(H.value.style.title.text) + " ", 1),
403
+ X.value === null ? y("", !0) : (C(), b("span", Se, "- " + D(Y.value[X.value].timeLabel || "") + " " + D(O(a)(H.value.style.labels.value.formatter, Y.value[X.value].value, O(i)({
404
+ p: H.value.style.labels.value.prefix,
405
+ v: Y.value[X.value].value,
406
+ s: H.value.style.labels.value.suffix,
407
+ r: H.value.style.labels.value.rounding
408
+ }), {
409
+ datapoint: Y.value[X.value],
410
+ seriesIndex: X.value
411
+ })), 1)),
412
+ ![void 0, null].includes(X.value) && ![null, void 0].includes(Y.value[X.value].valueLabel) ? (C(), b("span", Ce, D(` (${Y.value[X.value].valueLabel || 0})`), 1)) : y("", !0)
413
+ ], 4), H.value.style.title.subtitle.text ? (C(), b("div", {
414
+ key: 0,
415
+ style: S(`font-size:${H.value.style.title.subtitle.fontSize}px;color:${H.value.style.title.subtitle.color};font-weight:${H.value.style.title.subtitle.bold ? "bold" : "normal"}`)
416
+ }, D(H.value.style.title.subtitle.text), 5)) : y("", !0)], 4)) : y("", !0),
417
+ x("div", we, [(C(), b("svg", {
418
+ ref_key: "svgRef",
419
+ ref: K,
420
+ xmlns: O(c),
421
+ viewBox: `0 0 ${J.value.width} ${J.value.height}`,
422
+ style: { overflow: "visible" },
423
+ "aria-describedby": `chart-instructions-${N.value}`,
424
+ tabindex: "0",
425
+ onFocus: Ze,
426
+ onBlur: Qe,
427
+ onKeydown: $e
428
+ }, [
429
+ fe(O(A)),
430
+ e.$slots["chart-background"] ? (C(), b("foreignObject", {
431
+ key: 0,
432
+ x: 0,
433
+ y: 0,
434
+ width: J.value.width,
435
+ height: J.value.height,
436
+ style: { pointerEvents: "none" }
437
+ }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ee)) : y("", !0),
438
+ x("defs", null, [
439
+ (C(!0), b(g, null, T(Y.value, (e, n) => (C(), v(h, {
440
+ t: "radial",
441
+ id: `gradient_positive_${n}_${N.value}`,
442
+ key: `gradient_positive_${n}_${N.value}`,
443
+ cy: "50%",
444
+ cx: "50%",
445
+ r: "50%",
446
+ fx: "50%",
447
+ fy: "50%",
448
+ stops: [[
449
+ "0%",
450
+ O(t)(O(r)(H.value.style.bars.colors.positive, .05), e.intensity),
451
+ 1
452
+ ], [
453
+ "100%",
454
+ O(t)(H.value.style.bars.colors.positive, e.intensity),
455
+ 1
456
+ ]]
457
+ }, null, 8, ["id", "stops"]))), 128)),
458
+ (C(!0), b(g, null, T(Y.value, (e, n) => (C(), v(h, {
459
+ t: "radial",
460
+ id: `gradient_negative_${n}_${N.value}`,
461
+ key: `gradient_negative_${n}_${N.value}`,
462
+ cy: "50%",
463
+ cx: "50%",
464
+ r: "50%",
465
+ fx: "50%",
466
+ fy: "50%",
467
+ stops: [[
468
+ "0%",
469
+ O(t)(O(r)(H.value.style.bars.colors.negative, .05), e.intensity),
470
+ 1
471
+ ], [
472
+ "100%",
473
+ O(t)(H.value.style.bars.colors.negative, e.intensity),
474
+ 1
475
+ ]]
476
+ }, null, 8, ["id", "stops"]))), 128)),
477
+ (C(!0), b(g, null, T(Y.value, (e, n) => (C(), v(h, {
478
+ t: "radial",
479
+ id: `gradient_datapoint_${n}_${N.value}`,
480
+ key: `gradient_datapoint_${n}_${N.value}`,
481
+ cy: "50%",
482
+ cx: "50%",
483
+ r: "50%",
484
+ fx: "50%",
485
+ fy: "50%",
486
+ stops: [[
487
+ "0%",
488
+ O(t)(O(r)(e.color, .05), e.intensity),
489
+ 1
490
+ ], [
491
+ "100%",
492
+ O(t)(e.color, e.intensity),
493
+ 1
494
+ ]]
495
+ }, null, 8, ["id", "stops"]))), 128))
496
+ ]),
497
+ (C(!0), b(g, null, T(Y.value, (e, t) => (C(), b("g", null, [X.value !== null && X.value === t ? (C(), b("rect", {
498
+ key: 0,
499
+ height: J.value.height,
500
+ width: e.unitWidth,
501
+ fill: H.value.style.selector.fill,
502
+ x: e.trapX,
503
+ y: 0,
504
+ stroke: H.value.style.selector.stroke,
505
+ "stroke-width": H.value.style.selector.strokeWidth,
506
+ rx: H.value.style.selector.borderRadius,
507
+ "stroke-dasharray": H.value.style.selector.strokeDasharray
508
+ }, null, 8, De)) : y("", !0)]))), 256)),
509
+ !H.value.style.bars.shape || H.value.style.bars.shape === "square" ? (C(), b("g", Oe, [(C(!0), b(g, null, T(Y.value, (e, t) => (C(), b("rect", {
510
+ x: e.x,
511
+ y: e.y,
512
+ height: e.height,
513
+ width: e.width,
514
+ fill: H.value.style.bars.colors.gradient.show ? e.gradient : e.color,
515
+ stroke: e.stroke,
516
+ "stroke-width": H.value.style.bars.strokeWidth,
517
+ rx: `${H.value.style.bars.borderRadius * e.proportion / 12}%`,
518
+ class: ge({ "vue-ui-sparkhistogram-shape": H.value.style.animation.show })
519
+ }, null, 10, ke))), 256))])) : (C(), b("g", Ae, [(C(!0), b(g, null, T(Y.value, (e, t) => (C(), v(re, {
520
+ plot: {
521
+ x: e.x + e.width / 2,
522
+ y: e.y + e.height / 2
523
+ },
524
+ color: H.value.style.bars.colors.gradient.show ? e.gradient : e.color,
525
+ shape: H.value.style.bars.shape,
526
+ radius: Math.min(e.height * .4, e.width * .4),
527
+ class: ge({ "vue-ui-sparkhistogram-shape": H.value.style.animation.show })
528
+ }, null, 8, [
529
+ "plot",
530
+ "color",
531
+ "shape",
532
+ "radius",
533
+ "class"
534
+ ]))), 256))])),
535
+ O(ze) ? y("", !0) : (C(), b(g, { key: 3 }, [
536
+ (C(!0), b(g, null, T(Y.value, (e, t) => (C(), b("g", null, [H.value.style.labels.value.show ? (C(), b("text", {
537
+ key: 0,
538
+ class: "vue-ui-sparkhistogram-top-label",
539
+ "text-anchor": "middle",
540
+ x: e.textAnchor,
541
+ y: e.y - H.value.style.labels.value.fontSize / 3 + H.value.style.labels.value.offsetY,
542
+ "font-size": H.value.style.labels.value.fontSize,
543
+ "font-weight": H.value.style.labels.value.bold ? "bold" : "normal",
544
+ fill: H.value.style.labels.value.color
545
+ }, D(Ge(e, t)), 9, je)) : y("", !0)]))), 256)),
546
+ (C(!0), b(g, null, T(Y.value, (e, t) => (C(), b("g", null, [e.valueLabel && H.value.style.labels.valueLabel.show ? (C(), b("text", {
547
+ key: 0,
548
+ class: "vue-ui-sparkhistogram-bottom-label",
549
+ x: e.textAnchor,
550
+ y: e.y + e.height + H.value.style.labels.valueLabel.fontSize,
551
+ "font-size": H.value.style.labels.valueLabel.fontSize,
552
+ "text-anchor": "middle",
553
+ fill: H.value.style.labels.valueLabel.color
554
+ }, D(e.valueLabel), 9, Me)) : y("", !0)]))), 256)),
555
+ (C(!0), b(g, null, T(Y.value, (e, t) => (C(), b("g", null, [e.timeLabel && H.value.style.labels.timeLabel.show ? (C(), b("text", {
556
+ key: 0,
557
+ class: "vue-ui-sparkhistogram-time-label",
558
+ x: e.textAnchor,
559
+ y: J.value.height,
560
+ "font-size": H.value.style.labels.timeLabel.fontSize,
561
+ fill: H.value.style.labels.timeLabel.color,
562
+ "text-anchor": "middle"
563
+ }, D(e.timeLabel), 9, Ne)) : y("", !0)]))), 256))
564
+ ], 64)),
565
+ (C(!0), b(g, null, T(Y.value, (e, t) => (C(), b("g", null, [x("rect", {
566
+ height: J.value.height,
567
+ width: e.unitWidth,
568
+ fill: "transparent",
569
+ x: e.trapX,
570
+ y: 0,
571
+ onMouseover: (n) => qe(e, t),
572
+ onMouseleave: (n) => Je(e, t),
573
+ onClick: () => Z(e, t)
574
+ }, null, 40, Pe)]))), 256))
575
+ ], 40, Te)), e.$slots.hint ? (C(), b("div", Fe, [E(e.$slots, "hint", _e(me({
576
+ hint: H.value.a11y.translations.keyboardNavigation,
577
+ isVisible: z.value
578
+ })), void 0, !0)])) : y("", !0)]),
579
+ e.$slots.source ? (C(), b("div", {
580
+ key: 2,
581
+ ref_key: "source",
582
+ ref: P,
583
+ dir: "auto"
584
+ }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
585
+ E(e.$slots, "skeleton", {}, () => [O(ze) ? (C(), v(te, { key: 0 })) : y("", !0)], !0)
586
+ ], 36));
587
+ }
588
+ }, [["__scopeId", "data-v-e6535ec1"]]);
589
+ //#endregion
590
+ export { A as n, j as t };