vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,575 @@
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-1MNr72Bz.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 };