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
@@ -1,575 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, Bt as n, K as r, Y as i, et as a, ft as o, i as s, qt as c, t as ee, zt as l } from "./lib-CFm_J26b.js";
3
- import { t as u } from "./useConfig-C0V0eG7L.js";
4
- import { n as te, t as ne } from "./BaseScanner-DZvpgOjM.js";
5
- import { t as d } from "./useNestedProp-BY6DNN3i.js";
6
- import { t as f } from "./useThemeCheck-C43Tcqmk.js";
7
- import { t as re } from "./Shape-BfnXr1nJ.js";
8
- import { t as p } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
- import { l as ie, t as ae } from "./useResponsive-ZtArZtUf.js";
10
- import { t as m } from "./DefGrad-DVBqDjhO.js";
11
- import { t as oe } from "./A11yDataTable-DdRsVULz.js";
12
- import { t as se } from "./useChartAccessibility-DYqac8yF.js";
13
- import { t as ce } from "./useFitSvgText-CXTzBplU.js";
14
- import { t as le } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
15
- import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as ue, createVNode as de, defineAsyncComponent as fe, guardReactiveProps as pe, nextTick as me, normalizeClass as he, normalizeProps as ge, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, toRefs as _e, unref as O, useCssVars as ve, watch as ye } from "vue";
16
- //#region src/components/vue-ui-sparkhistogram.vue
17
- var be = /* @__PURE__ */ e({ default: () => k }), xe = ["id"], Se = { key: 0 }, Ce = { key: 1 }, we = { style: { position: "relative" } }, Te = [
18
- "xmlns",
19
- "viewBox",
20
- "aria-describedby"
21
- ], Ee = ["width", "height"], De = [
22
- "height",
23
- "width",
24
- "fill",
25
- "x",
26
- "stroke",
27
- "stroke-width",
28
- "rx",
29
- "stroke-dasharray"
30
- ], Oe = { key: 1 }, ke = [
31
- "x",
32
- "y",
33
- "height",
34
- "width",
35
- "fill",
36
- "stroke",
37
- "stroke-width",
38
- "rx"
39
- ], Ae = { key: 2 }, je = [
40
- "x",
41
- "y",
42
- "font-size",
43
- "font-weight",
44
- "fill"
45
- ], Me = [
46
- "x",
47
- "y",
48
- "font-size",
49
- "fill"
50
- ], Ne = [
51
- "x",
52
- "y",
53
- "font-size",
54
- "fill"
55
- ], Pe = [
56
- "height",
57
- "width",
58
- "x",
59
- "onMouseover",
60
- "onMouseleave",
61
- "onClick"
62
- ], Fe = {
63
- key: 0,
64
- style: {
65
- position: "absolute",
66
- top: "100%",
67
- left: "0",
68
- width: "100%"
69
- },
70
- "data-dom-to-png-ignore": "",
71
- "aria-hidden": "true"
72
- }, k = /*#__PURE__*/ p({
73
- __name: "vue-ui-sparkhistogram",
74
- props: {
75
- config: {
76
- type: Object,
77
- default() {
78
- return {};
79
- }
80
- },
81
- dataset: {
82
- type: Array,
83
- default() {
84
- return [];
85
- }
86
- }
87
- },
88
- emits: ["selectDatapoint"],
89
- setup(e, { emit: p }) {
90
- ve((e) => ({ v7441ed7f: Je.value }));
91
- let be = fe(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), { vue_ui_sparkhistogram: k } = u(), { isThemeValid: Ie, warnInvalidTheme: Le } = f(), A = e, j = w(r()), M = w(null), N = w(null), P = w(null), F = w(null), I = w(null), L = w(!1), R = w(null), z = w("pointer"), B = w(K()), Re = g(() => c({
92
- defaultConfig: { style: {
93
- animation: { show: !1 },
94
- backgroundColor: "#99999930"
95
- } },
96
- userConfig: B.value.skeletonConfig ?? {}
97
- })), { loading: V, FINAL_DATASET: H, manualLoading: ze } = te({
98
- ..._e(A),
99
- FINAL_CONFIG: B,
100
- prepareConfig: K,
101
- skeletonDataset: A.config?.skeletonDataset ?? [
102
- {
103
- value: 1,
104
- intensity: .2,
105
- color: "#CACACA"
106
- },
107
- {
108
- value: 2,
109
- intensity: .3,
110
- color: "#CACACA"
111
- },
112
- {
113
- value: 3,
114
- intensity: .5,
115
- color: "#CACACA"
116
- },
117
- {
118
- value: 5,
119
- intensity: .7,
120
- color: "#CACACA"
121
- },
122
- {
123
- value: 8,
124
- intensity: .9,
125
- color: "#CACACA"
126
- },
127
- {
128
- value: 13,
129
- intensity: .95,
130
- color: "#CACACA"
131
- },
132
- {
133
- value: 21,
134
- intensity: 1,
135
- color: "#CACACA"
136
- },
137
- {
138
- value: 13,
139
- intensity: .95,
140
- color: "#CACACA"
141
- },
142
- {
143
- value: 8,
144
- intensity: .9,
145
- color: "#CACACA"
146
- },
147
- {
148
- value: 5,
149
- intensity: .7,
150
- color: "#CACACA"
151
- },
152
- {
153
- value: 3,
154
- intensity: .5,
155
- color: "#CACACA"
156
- },
157
- {
158
- value: 2,
159
- intensity: .3,
160
- color: "#CACACA"
161
- },
162
- {
163
- value: 1,
164
- intensity: .2,
165
- color: "#CACACA"
166
- }
167
- ],
168
- skeletonConfig: c({
169
- defaultConfig: B.value,
170
- userConfig: Re.value
171
- })
172
- }), U = w(B.value.style.layout.width), W = w(B.value.style.layout.height), { svgRef: G } = se({ config: B.value.style.title });
173
- function K() {
174
- let e = d({
175
- userConfig: A.config,
176
- defaultConfig: k
177
- }), t = e.theme;
178
- if (!t) return e;
179
- if (!Ie.value(e)) return Le(e), e;
180
- let n = d({
181
- userConfig: le[t] || A.config,
182
- defaultConfig: e
183
- });
184
- return d({
185
- userConfig: A.config,
186
- defaultConfig: n
187
- });
188
- }
189
- S(() => {
190
- J();
191
- });
192
- let q = g(() => !!B.value.debug);
193
- function J() {
194
- if (t(A.dataset) ? a({
195
- componentName: "VueUiSparkHistogram",
196
- type: "dataset",
197
- debug: q.value
198
- }) : A.dataset.forEach((e, t) => {
199
- o({
200
- datasetObject: e,
201
- requiredAttributes: ["value"]
202
- }).forEach((e) => {
203
- a({
204
- componentName: "VueUiSparkHistogram",
205
- type: "datasetSerieAttribute",
206
- property: e,
207
- index: t,
208
- debug: q.value
209
- });
210
- });
211
- }), B.value.responsive) {
212
- let e = ie(() => {
213
- let { width: e, height: t } = ae({
214
- chart: P.value,
215
- title: B.value.style.title.text ? N.value : null,
216
- source: M.value
217
- }), n = B.value.style.labels.timeLabel.show ? B.value.style.labels.timeLabel.fontSize * 2 : 0, r = B.value.style.labels.valueLabel.show ? B.value.style.labels.valueLabel.fontSize * 2 : 0;
218
- requestAnimationFrame(() => {
219
- U.value = Math.max(10, e), W.value = Math.max(10, t - 12 - n - r);
220
- });
221
- });
222
- F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
223
- }
224
- }
225
- ye(() => A.config, (e) => {
226
- B.value = K(), J();
227
- }, { deep: !0 });
228
- let Y = g(() => {
229
- let e = B.value.style.labels.timeLabel.show ? B.value.style.labels.timeLabel.fontSize * 2 : 0, t = B.value.style.labels.valueLabel.show ? B.value.style.labels.valueLabel.fontSize * 2 : 0, n = W.value + e + t, r = U.value, i = B.value.style.layout.padding.top, a = n - B.value.style.layout.padding.bottom, o = B.value.style.layout.padding.left, s = r - B.value.style.layout.padding.right;
230
- return {
231
- bottom: a,
232
- centerY: i + (n - i - B.value.style.layout.padding.bottom) / 2,
233
- drawingHeight: n - B.value.style.layout.padding.top - B.value.style.layout.padding.bottom - e - t,
234
- drawingWidth: r - B.value.style.layout.padding.left - B.value.style.layout.padding.right,
235
- height: n,
236
- left: o,
237
- right: s,
238
- top: i,
239
- width: r
240
- };
241
- }), Be = g(() => Math.max(...H.value.map((e) => Math.abs(e.value || 0))));
242
- function Ve(e) {
243
- return Math.abs(e) / Be.value;
244
- }
245
- let X = g(() => H.value.map((e, t) => {
246
- let n = Ve(e.value || 0), r = Y.value.drawingHeight * n, i = Y.value.drawingWidth / H.value.length, a = i * (B.value.style.bars.gap / 100), o = i - a, s = Y.value.centerY - r / 2, c = 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 ? l(B.value.style.bars.colors.positive, u) : l(B.value.style.bars.colors.negative, u), ne = e.color ? e.color : e.value >= 0 ? B.value.style.bars.colors.positive : B.value.style.bars.colors.negative, d = e.color ? `url(#gradient_datapoint_${t}_${j.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${j.value})` : `url(#gradient_negative_${t}_${j.value})`, f = c + o / 2;
247
- return {
248
- ...e,
249
- color: te,
250
- gradient: d,
251
- height: r,
252
- intensity: u,
253
- proportion: n,
254
- stroke: ne,
255
- textAnchor: f,
256
- trapX: ee,
257
- unitWidth: i,
258
- width: o,
259
- x: c,
260
- y: s
261
- };
262
- }));
263
- function He(e, t) {
264
- return s(B.value.style.labels.value.formatter, e.value, i({
265
- p: B.value.style.labels.value.prefix,
266
- v: e.value,
267
- s: B.value.style.labels.value.suffix,
268
- r: B.value.style.labels.value.rounding
269
- }), {
270
- datapoint: e,
271
- seriesIndex: t
272
- });
273
- }
274
- let Z = w(null), Ue = p;
275
- function We(e, t) {
276
- Ue("selectDatapoint", {
277
- datapoint: e,
278
- index: t
279
- }), B.value.events.datapointClick && B.value.events.datapointClick({
280
- datapoint: e,
281
- seriesIndex: t
282
- });
283
- }
284
- function Ge(e, t) {
285
- z.value = "pointer", R.value = t, Z.value = t, B.value.events.datapointEnter && B.value.events.datapointEnter({
286
- datapoint: e,
287
- seriesIndex: t
288
- });
289
- }
290
- function Ke(e, t) {
291
- z.value !== "keyboard" && (Z.value = null, R.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
292
- datapoint: e,
293
- seriesIndex: t
294
- }));
295
- }
296
- function qe() {
297
- z.value !== "keyboard" && (Z.value = null, R.value = null);
298
- }
299
- let Je = g(() => `${B.value.style.animation.speedMs}ms`), { fitText: Q } = ce({
300
- svgRef: G,
301
- unitWidth: g(() => Y.value.drawingWidth / H.value.length * .9)
302
- });
303
- S(async () => {
304
- await me(), Q(".vue-ui-sparkhistogram-top-label", B.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.style.labels.timeLabel.minFontSize);
305
- }), ye([
306
- U,
307
- W,
308
- () => H.value
309
- ], async () => {
310
- await me(), Q(".vue-ui-sparkhistogram-top-label", B.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", B.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", B.value.style.labels.timeLabel.minFontSize);
311
- });
312
- function Ye() {
313
- L.value = !0;
314
- }
315
- function Xe() {
316
- L.value = !1, R.value = null, z.value = "pointer", Z.value = null;
317
- }
318
- function Ze(e) {
319
- if (!G.value || document.activeElement !== G.value || !X.value.length) return;
320
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
321
- if (!t && !n && !r && !i) return;
322
- if (e.preventDefault(), e.stopPropagation(), i) {
323
- R.value = null, Z.value = null, z.value = "pointer";
324
- return;
325
- }
326
- if (r) {
327
- if (Z.value === null) return;
328
- let e = X.value[Z.value];
329
- if (!e) return;
330
- We(e, Z.value);
331
- return;
332
- }
333
- z.value = "keyboard";
334
- let a = R.value;
335
- a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)), R.value = a, Z.value = a;
336
- let o = X.value[a];
337
- B.value.events.datapointEnter && B.value.events.datapointEnter({
338
- datapoint: o,
339
- seriesIndex: a
340
- });
341
- }
342
- let $ = g(() => ({
343
- headers: [
344
- B.value.a11y?.translations?.series ?? "Series",
345
- B.value.a11y?.translations?.time ?? "Time",
346
- B.value.a11y?.translations?.value ?? "Value",
347
- B.value.a11y?.translations?.valueLabel ?? "Label"
348
- ],
349
- rows: X.value.map((e, t) => [
350
- t + 1,
351
- e.timeLabel ?? "",
352
- e.value ?? "",
353
- e.valueLabel ?? ""
354
- ])
355
- }));
356
- return (e, t) => (C(), y("div", {
357
- class: "vue-data-ui-component vue-ui-spark-histogram",
358
- ref_key: "histogramChart",
359
- ref: P,
360
- style: x(`width:100%;background:${B.value.style.backgroundColor};font-family:${B.value.style.fontFamily}`),
361
- onMouseleave: qe
362
- }, [
363
- b("div", {
364
- id: `chart-instructions-${j.value}`,
365
- class: "sr-only"
366
- }, [b("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, xe),
367
- $.value?.rows?.length ? (C(), _(oe, {
368
- key: 0,
369
- uid: j.value,
370
- head: $.value.headers,
371
- body: $.value.rows,
372
- notice: B.value.a11y.translations.tableAvailable,
373
- caption: B.value.a11y.translations.tableCaption
374
- }, null, 8, [
375
- "uid",
376
- "head",
377
- "body",
378
- "notice",
379
- "caption"
380
- ])) : v("", !0),
381
- B.value.style.title.text ? (C(), y("div", {
382
- key: 1,
383
- ref_key: "chartTitle",
384
- ref: N,
385
- style: x(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${B.value.style.title.margin};padding: 0 6px;text-align:${B.value.style.title.textAlign}`)
386
- }, [b("div", { style: x(`font-size:${B.value.style.title.fontSize}px;color:${B.value.style.title.color};font-weight:${B.value.style.title.bold ? "bold" : "normal"}`) }, [
387
- ue(D(B.value.style.title.text) + " ", 1),
388
- Z.value === null ? v("", !0) : (C(), y("span", Se, "- " + D(X.value[Z.value].timeLabel || "") + " " + D(O(s)(B.value.style.labels.value.formatter, X.value[Z.value].value, O(i)({
389
- p: B.value.style.labels.value.prefix,
390
- v: X.value[Z.value].value,
391
- s: B.value.style.labels.value.suffix,
392
- r: B.value.style.labels.value.rounding
393
- }), {
394
- datapoint: X.value[Z.value],
395
- seriesIndex: Z.value
396
- })), 1)),
397
- ![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (C(), y("span", Ce, D(` (${X.value[Z.value].valueLabel || 0})`), 1)) : v("", !0)
398
- ], 4), B.value.style.title.subtitle.text ? (C(), y("div", {
399
- key: 0,
400
- style: x(`font-size:${B.value.style.title.subtitle.fontSize}px;color:${B.value.style.title.subtitle.color};font-weight:${B.value.style.title.subtitle.bold ? "bold" : "normal"}`)
401
- }, D(B.value.style.title.subtitle.text), 5)) : v("", !0)], 4)) : v("", !0),
402
- b("div", we, [(C(), y("svg", {
403
- ref_key: "svgRef",
404
- ref: G,
405
- xmlns: O(ee),
406
- viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
407
- style: { overflow: "visible" },
408
- "aria-describedby": `chart-instructions-${j.value}`,
409
- tabindex: "0",
410
- onFocus: Ye,
411
- onBlur: Xe,
412
- onKeydown: Ze
413
- }, [
414
- de(O(be)),
415
- e.$slots["chart-background"] ? (C(), y("foreignObject", {
416
- key: 0,
417
- x: 0,
418
- y: 0,
419
- width: Y.value.width,
420
- height: Y.value.height,
421
- style: { pointerEvents: "none" }
422
- }, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Ee)) : v("", !0),
423
- b("defs", null, [
424
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), _(m, {
425
- t: "radial",
426
- id: `gradient_positive_${t}_${j.value}`,
427
- key: `gradient_positive_${t}_${j.value}`,
428
- cy: "50%",
429
- cx: "50%",
430
- r: "50%",
431
- fx: "50%",
432
- fy: "50%",
433
- stops: [[
434
- "0%",
435
- O(l)(O(n)(B.value.style.bars.colors.positive, .05), e.intensity),
436
- 1
437
- ], [
438
- "100%",
439
- O(l)(B.value.style.bars.colors.positive, e.intensity),
440
- 1
441
- ]]
442
- }, null, 8, ["id", "stops"]))), 128)),
443
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), _(m, {
444
- t: "radial",
445
- id: `gradient_negative_${t}_${j.value}`,
446
- key: `gradient_negative_${t}_${j.value}`,
447
- cy: "50%",
448
- cx: "50%",
449
- r: "50%",
450
- fx: "50%",
451
- fy: "50%",
452
- stops: [[
453
- "0%",
454
- O(l)(O(n)(B.value.style.bars.colors.negative, .05), e.intensity),
455
- 1
456
- ], [
457
- "100%",
458
- O(l)(B.value.style.bars.colors.negative, e.intensity),
459
- 1
460
- ]]
461
- }, null, 8, ["id", "stops"]))), 128)),
462
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), _(m, {
463
- t: "radial",
464
- id: `gradient_datapoint_${t}_${j.value}`,
465
- key: `gradient_datapoint_${t}_${j.value}`,
466
- cy: "50%",
467
- cx: "50%",
468
- r: "50%",
469
- fx: "50%",
470
- fy: "50%",
471
- stops: [[
472
- "0%",
473
- O(l)(O(n)(e.color, .05), e.intensity),
474
- 1
475
- ], [
476
- "100%",
477
- O(l)(e.color, e.intensity),
478
- 1
479
- ]]
480
- }, null, 8, ["id", "stops"]))), 128))
481
- ]),
482
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [Z.value !== null && Z.value === t ? (C(), y("rect", {
483
- key: 0,
484
- height: Y.value.height,
485
- width: e.unitWidth,
486
- fill: B.value.style.selector.fill,
487
- x: e.trapX,
488
- y: 0,
489
- stroke: B.value.style.selector.stroke,
490
- "stroke-width": B.value.style.selector.strokeWidth,
491
- rx: B.value.style.selector.borderRadius,
492
- "stroke-dasharray": B.value.style.selector.strokeDasharray
493
- }, null, 8, De)) : v("", !0)]))), 256)),
494
- !B.value.style.bars.shape || B.value.style.bars.shape === "square" ? (C(), y("g", Oe, [(C(!0), y(h, null, T(X.value, (e, t) => (C(), y("rect", {
495
- x: e.x,
496
- y: e.y,
497
- height: e.height,
498
- width: e.width,
499
- fill: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
500
- stroke: e.stroke,
501
- "stroke-width": B.value.style.bars.strokeWidth,
502
- rx: `${B.value.style.bars.borderRadius * e.proportion / 12}%`,
503
- class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
504
- }, null, 10, ke))), 256))])) : (C(), y("g", Ae, [(C(!0), y(h, null, T(X.value, (e, t) => (C(), _(re, {
505
- plot: {
506
- x: e.x + e.width / 2,
507
- y: e.y + e.height / 2
508
- },
509
- color: B.value.style.bars.colors.gradient.show ? e.gradient : e.color,
510
- shape: B.value.style.bars.shape,
511
- radius: Math.min(e.height * .4, e.width * .4),
512
- class: he({ "vue-ui-sparkhistogram-shape": B.value.style.animation.show })
513
- }, null, 8, [
514
- "plot",
515
- "color",
516
- "shape",
517
- "radius",
518
- "class"
519
- ]))), 256))])),
520
- O(V) ? v("", !0) : (C(), y(h, { key: 3 }, [
521
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [B.value.style.labels.value.show ? (C(), y("text", {
522
- key: 0,
523
- class: "vue-ui-sparkhistogram-top-label",
524
- "text-anchor": "middle",
525
- x: e.textAnchor,
526
- y: e.y - B.value.style.labels.value.fontSize / 3 + B.value.style.labels.value.offsetY,
527
- "font-size": B.value.style.labels.value.fontSize,
528
- "font-weight": B.value.style.labels.value.bold ? "bold" : "normal",
529
- fill: B.value.style.labels.value.color
530
- }, D(He(e, t)), 9, je)) : v("", !0)]))), 256)),
531
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [e.valueLabel && B.value.style.labels.valueLabel.show ? (C(), y("text", {
532
- key: 0,
533
- class: "vue-ui-sparkhistogram-bottom-label",
534
- x: e.textAnchor,
535
- y: e.y + e.height + B.value.style.labels.valueLabel.fontSize,
536
- "font-size": B.value.style.labels.valueLabel.fontSize,
537
- "text-anchor": "middle",
538
- fill: B.value.style.labels.valueLabel.color
539
- }, D(e.valueLabel), 9, Me)) : v("", !0)]))), 256)),
540
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [e.timeLabel && B.value.style.labels.timeLabel.show ? (C(), y("text", {
541
- key: 0,
542
- class: "vue-ui-sparkhistogram-time-label",
543
- x: e.textAnchor,
544
- y: Y.value.height,
545
- "font-size": B.value.style.labels.timeLabel.fontSize,
546
- fill: B.value.style.labels.timeLabel.color,
547
- "text-anchor": "middle"
548
- }, D(e.timeLabel), 9, Ne)) : v("", !0)]))), 256))
549
- ], 64)),
550
- (C(!0), y(h, null, T(X.value, (e, t) => (C(), y("g", null, [b("rect", {
551
- height: Y.value.height,
552
- width: e.unitWidth,
553
- fill: "transparent",
554
- x: e.trapX,
555
- y: 0,
556
- onMouseover: (n) => Ge(e, t),
557
- onMouseleave: (n) => Ke(e, t),
558
- onClick: () => We(e, t)
559
- }, null, 40, Pe)]))), 256))
560
- ], 40, Te)), e.$slots.hint ? (C(), y("div", Fe, [E(e.$slots, "hint", ge(pe({
561
- hint: B.value.a11y.translations.keyboardNavigation,
562
- isVisible: L.value
563
- })), void 0, !0)])) : v("", !0)]),
564
- e.$slots.source ? (C(), y("div", {
565
- key: 2,
566
- ref_key: "source",
567
- ref: M,
568
- dir: "auto"
569
- }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
570
- E(e.$slots, "skeleton", {}, () => [O(V) ? (C(), _(ne, { key: 0 })) : v("", !0)], !0)
571
- ], 36));
572
- }
573
- }, [["__scopeId", "data-v-f5687368"]]);
574
- //#endregion
575
- export { be as n, k as t };