vue-data-ui 3.15.12 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -1,22 +1,23 @@
1
- import { defineAsyncComponent as Y, computed as d, ref as i, toRefs as De, watch as ge, onMounted as Ge, openBlock as r, createElementBlock as c, unref as n, normalizeStyle as K, normalizeClass as W, createBlock as B, withCtx as f, renderSlot as u, normalizeProps as m, guardReactiveProps as k, createCommentVNode as w, createSlots as je, createVNode as He, Fragment as pe, renderList as ye, toDisplayString as Ve, nextTick as Xe } from "vue";
2
- import { j as qe, t as me, K as Ye, o as Ke, q as We, v as ke, X as Je, k as Qe, l as Ze } from "./lib-GwPnJSrY.js";
3
- import { t as et, u as tt } from "./useResponsive-DfdjqQps.js";
4
- import { u as at } from "./useConfig-CIgyKZ6R.js";
5
- import { u as ot, B as lt } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as nt } from "./usePrinter-DiK5R6k-.js";
7
- import { u as st } from "./useSvgExport-ByUukOZt.js";
8
- import { u as J } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as rt } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as ut } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as it } from "./useChartAccessibility-9icAAmYg.js";
12
- import ct from "./vue_ui_tiremarks-DBotWfi8.js";
13
- import vt from "./Title-BfyrP-jp.js";
14
- import ht from "./img-BYYzY_QU.js";
15
- import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { key: 1 }, mt = ["d", "stroke-width", "stroke"], kt = { key: 2 }, bt = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Ct = { key: 3 }, wt = ["x", "y", "height"], $t = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], At = {
1
+ import { defineAsyncComponent as J, computed as r, ref as c, toRefs as Ke, watch as be, onMounted as We, openBlock as i, createElementBlock as v, unref as n, normalizeStyle as Q, normalizeClass as Z, createBlock as G, withCtx as f, renderSlot as u, normalizeProps as m, guardReactiveProps as k, createCommentVNode as w, createSlots as Je, createElementVNode as Ce, toDisplayString as ee, createVNode as Qe, Fragment as we, renderList as $e, nextTick as Ze } from "vue";
2
+ import { j as et, t as Ae, K as tt, o as at, q as ot, v as Pe, k as lt, l as nt, X as st } from "./lib-DBptbyyI.js";
3
+ import { t as rt, u as it } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ut } from "./useConfig-DO94Aj5s.js";
5
+ import { u as ct, B as vt } from "./BaseScanner-BhhkKVoj.js";
6
+ import { u as dt } from "./usePrinter-CEpYU3r5.js";
7
+ import { u as ht } from "./useSvgExport-ByUukOZt.js";
8
+ import { u as te } from "./useNestedProp-Bf5XFbs8.js";
9
+ import { u as ft } from "./useThemeCheck-D1ZYXUwG.js";
10
+ import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as pt } from "./useChartAccessibility-9icAAmYg.js";
12
+ import { u as yt } from "./usePrefersMotion-CUKm8_t8.js";
13
+ import mt from "./vue_ui_tiremarks-DBotWfi8.js";
14
+ import kt from "./Title-BeMKE1cj.js";
15
+ import bt from "./img-LXxMLmCg.js";
16
+ import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const wt = ["id"], $t = ["xmlns", "viewBox", "aria-labelledby", "aria-describedby"], At = ["id"], Pt = ["id"], _t = ["width", "height"], Ot = { key: 1 }, St = ["d", "stroke-width", "stroke"], xt = { key: 2 }, It = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Tt = ["aria-label"], zt = ["x", "y", "height"], Ft = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Nt = {
17
18
  key: 4,
18
19
  class: "vue-data-ui-watermark"
19
- }, Pt = {
20
+ }, Rt = {
20
21
  __name: "vue-ui-tiremarks",
21
22
  props: {
22
23
  config: {
@@ -33,8 +34,8 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
33
34
  }
34
35
  },
35
36
  emits: ["copyAlt"],
36
- setup(be, { expose: Ce, emit: we }) {
37
- const $e = Y(() => import("./PenAndPaper-DWV1FMIi.js")), Ae = Y(() => import("./UserOptions-CrLqEimB.js")), Pe = Y(() => import("./PackageVersion-DN9d0ME5.js")), { vue_ui_tiremarks: Oe } = at(), { isThemeValid: Se, warnInvalidTheme: _e } = rt(), b = be, xe = we, Ie = d(() => !!b.dataset && Object.keys(b.dataset).length), D = i(qe()), O = i(null), ze = i(null), Q = i(null), Z = i(null), ee = i(0), te = i(0), S = i(null), z = i(null), T = i(!1), F = i(!1), e = i(H()), ae = d(() => e.value.userOptions.useCursorPointer), Te = d(() => me({
37
+ setup(_e, { expose: Oe, emit: Se }) {
38
+ const xe = J(() => import("./PenAndPaper-Ct3qJ4lA.js")), Ie = J(() => import("./UserOptions-rW2fRf3V.js")), Te = J(() => import("./PackageVersion-DPO-OOVI.js")), { vue_ui_tiremarks: ze } = ut(), { isThemeValid: Fe, warnInvalidTheme: Ne } = ft(), j = yt(), b = _e, Re = Se, Me = r(() => !!b.dataset && Object.keys(b.dataset).length), O = c(et()), _ = c(null), Ee = c(null), ae = c(null), oe = c(null), le = c(0), ne = c(0), S = c(null), z = c(null), F = c(!1), N = c(!1), e = c(X()), se = r(() => e.value.userOptions.useCursorPointer), De = r(() => Ae({
38
39
  defaultConfig: {
39
40
  userOptions: { show: !1 },
40
41
  style: {
@@ -52,83 +53,83 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
52
53
  }
53
54
  },
54
55
  userConfig: e.value.skeletonConfig ?? {}
55
- })), { loading: oe, FINAL_DATASET: _ } = ot({
56
- ...De(b),
56
+ })), { loading: R, FINAL_DATASET: x } = ct({
57
+ ...Ke(b),
57
58
  FINAL_CONFIG: e,
58
- prepareConfig: H,
59
+ prepareConfig: X,
59
60
  skeletonDataset: b.config?.skeletonDataset ?? { percentage: 50 },
60
- skeletonConfig: me({
61
+ skeletonConfig: Ae({
61
62
  defaultConfig: e.value,
62
- userConfig: Te.value
63
+ userConfig: De.value
63
64
  })
64
- }), { userOptionsVisible: G, setUserOptionsVisibility: le, keepUserOptionState: ne } = ut({ config: e.value }), { svgRef: j } = it({ config: e.value.style.chart.title });
65
- function H() {
66
- const t = J({
65
+ }), { userOptionsVisible: H, setUserOptionsVisibility: re, keepUserOptionState: ie } = gt({ config: e.value }), { svgRef: V } = pt({ config: e.value.style.chart.title });
66
+ function X() {
67
+ const t = te({
67
68
  userConfig: b.config,
68
- defaultConfig: Oe
69
+ defaultConfig: ze
69
70
  }), o = t.theme;
70
71
  if (!o) return t;
71
- if (!Se.value(t))
72
- return _e(t), t;
73
- const a = J({
74
- userConfig: ct[o] || b.config,
72
+ if (!Fe.value(t))
73
+ return Ne(t), t;
74
+ const a = te({
75
+ userConfig: mt[o] || b.config,
75
76
  defaultConfig: t
76
77
  });
77
- return J({
78
+ return te({
78
79
  userConfig: b.config,
79
80
  defaultConfig: a
80
81
  });
81
82
  }
82
- ge(() => b.config, (t) => {
83
- e.value = H(), G.value = !e.value.userOptions.showOnChartHover, E.value = e.value.style.chart.width, M.value = e.value.style.chart.height, ie(), te.value += 1;
83
+ be(() => b.config, (t) => {
84
+ e.value = X(), H.value = !e.value.userOptions.showOnChartHover, D.value = e.value.style.chart.width, L.value = e.value.style.chart.height, de(), ne.value += 1;
84
85
  }, { deep: !0 });
85
- const { isPrinting: V, isImaging: X, generatePdf: se, generateImage: re } = nt({
86
- elementId: D.value,
86
+ const { isPrinting: q, isImaging: Y, generatePdf: ue, generateImage: ce } = dt({
87
+ elementId: O.value,
87
88
  fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
88
89
  options: e.value.userOptions.print
89
- }), Fe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), v = i(e.value.style.chart.animation.use ? 0 : Ye(_.value.percentage));
90
- ge(() => _.value, (t) => {
91
- e.value.style.chart.animation.use ? ue(t.percentage) : v.value = t.percentage || 0;
92
- }, { deep: !0 }), Ge(() => {
93
- ie();
90
+ }), Le = r(() => e.value.userOptions.show && !e.value.style.chart.title.text), d = c(e.value.style.chart.animation.use && !j.value ? 0 : tt(x.value.percentage));
91
+ be(() => x.value, (t) => {
92
+ e.value.style.chart.animation.use && !j.value ? ve(t.percentage) : d.value = t.percentage || 0;
93
+ }, { deep: !0 }), We(() => {
94
+ de();
94
95
  });
95
- function ue(t) {
96
+ function ve(t) {
96
97
  let o = e.value.style.chart.animation.speed;
97
- const a = Math.abs(t - v.value) / (o * 120);
98
+ const a = Math.abs(t - d.value) / (o * 120);
98
99
  function l() {
99
- v.value < t ? v.value = Math.min(v.value + a, t) : v.value > t && (v.value = Math.max(v.value - a, t)), v.value !== t && requestAnimationFrame(l);
100
+ d.value < t ? d.value = Math.min(d.value + a, t) : d.value > t && (d.value = Math.max(d.value - a, t)), d.value !== t && requestAnimationFrame(l);
100
101
  }
101
102
  l();
102
103
  }
103
- const Ne = d(() => !!e.value.debug);
104
- function ie() {
105
- if (Ke(b.dataset) && We({
104
+ const Ue = r(() => !!e.value.debug);
105
+ function de() {
106
+ if (at(b.dataset) && ot({
106
107
  componentName: "VueUiTiremarks",
107
108
  type: "dataset",
108
- debug: Ne.value
109
+ debug: Ue.value
109
110
  }), e.value.responsive) {
110
- const t = et(() => {
111
- const { width: o, height: a } = tt({
112
- chart: O.value,
113
- title: e.value.style.chart.title.text ? Q.value : null,
114
- source: Z.value
111
+ const t = rt(() => {
112
+ const { width: o, height: a } = it({
113
+ chart: _.value,
114
+ title: e.value.style.chart.title.text ? ae.value : null,
115
+ source: oe.value
115
116
  });
116
117
  requestAnimationFrame(() => {
117
- E.value = Math.max(0.1, o), M.value = Math.max(0.1, a - 12);
118
+ D.value = Math.max(0.1, o), L.value = Math.max(0.1, a - 12);
118
119
  });
119
120
  });
120
- S.value && (z.value && S.value.unobserve(z.value), S.value.disconnect()), S.value = new ResizeObserver(t), z.value = O.value.parentNode, S.value.observe(z.value);
121
+ S.value && (z.value && S.value.unobserve(z.value), S.value.disconnect()), S.value = new ResizeObserver(t), z.value = _.value.parentNode, S.value.observe(z.value);
121
122
  }
122
- ue(_.value.percentage || 0);
123
+ ve(x.value.percentage || 0);
123
124
  }
124
- const N = d(() => e.value.style.chart.layout.display === "vertical"), h = d(() => {
125
+ const M = r(() => e.value.style.chart.layout.display === "vertical"), h = r(() => {
125
126
  const t = e.value.style.chart.percentage.show, o = {
126
127
  top: t ? 48 : 12,
127
128
  left: t ? 64 : 16,
128
129
  right: t ? 64 : 16,
129
130
  bottom: t ? 48 : 12
130
131
  };
131
- return N.value ? {
132
+ return M.value ? {
132
133
  top: e.value.style.chart.percentage.verticalPosition === "top" ? o.top : 3,
133
134
  left: 3,
134
135
  right: 3,
@@ -139,10 +140,10 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
139
140
  left: e.value.style.chart.percentage.horizontalPosition === "left" ? o.left : 16,
140
141
  right: e.value.style.chart.percentage.horizontalPosition === "right" ? o.right : 10
141
142
  };
142
- }), R = d(() => Object.values(h.value).reduce((t, o) => t + o, 0)), E = i(e.value.style.chart.width), M = i(e.value.style.chart.height), s = d(() => ({
143
- height: M.value,
144
- width: E.value
145
- })), ce = d(() => ({
143
+ }), E = r(() => Object.values(h.value).reduce((t, o) => t + o, 0)), D = c(e.value.style.chart.width), L = c(e.value.style.chart.height), s = r(() => ({
144
+ height: L.value,
145
+ width: D.value
146
+ })), he = r(() => ({
146
147
  horizontal: {
147
148
  x: y.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
148
149
  y: s.value.height / 2 - y.value.fontSize / 2
@@ -151,43 +152,43 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
151
152
  x: s.value.width / 2 - 20,
152
153
  y: y.value.y - y.value.fontSize / 2
153
154
  }
154
- })[e.value.style.chart.layout.display]), g = d(() => N.value ? {
155
- mark: (s.value.height - R.value) / 100 * 0.5,
156
- space: (s.value.height - R.value) / 100 * 0.5
155
+ })[e.value.style.chart.layout.display]), g = r(() => M.value ? {
156
+ mark: (s.value.height - E.value) / 100 * 0.5,
157
+ space: (s.value.height - E.value) / 100 * 0.5
157
158
  } : {
158
- mark: (s.value.width - R.value) / 100 * 0.5,
159
- space: (s.value.width - R.value) / 100 * 0.5
160
- }), ve = d(() => {
159
+ mark: (s.value.width - E.value) / 100 * 0.5,
160
+ space: (s.value.width - E.value) / 100 * 0.5
161
+ }), fe = r(() => {
161
162
  const t = [];
162
163
  for (let a = 0; a < 100; a += 1) {
163
- const l = e.value.style.chart.layout.ticks.gradient.show ? ke(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
164
- if (N.value) {
165
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.width - h.value.left - h.value.right) / 100 / 3 : 0, p = h.value.left + 4 + C, $ = s.value.width - h.value.right - 4 - C, A = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, P = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, x = ($ - p) / e.value.style.chart.layout.curveAngleX, I = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
164
+ const l = e.value.style.chart.layout.ticks.gradient.show ? Pe(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
165
+ if (M.value) {
166
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.width - h.value.left - h.value.right) / 100 / 3 : 0, p = h.value.left + 4 + C, $ = s.value.width - h.value.right - 4 - C, A = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, P = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, I = ($ - p) / e.value.style.chart.layout.curveAngleX, T = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
166
167
  t.push({
167
168
  x1: p,
168
169
  x2: $,
169
170
  y1: A,
170
171
  y2: P,
171
- curve: `M ${p} ${A} C ${p + x} ${A - I}, ${$ - x} ${P - I}, ${$} ${P}`,
172
+ curve: `M ${p} ${A} C ${p + I} ${A - T}, ${$ - I} ${P - T}, ${$} ${P}`,
172
173
  color: l
173
174
  });
174
175
  } else {
175
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.height - h.value.top - h.value.bottom) / 100 / 3 : 0, p = h.value.left + a * g.value.mark + a * g.value.space - g.value.mark, $ = p, A = h.value.top + 4 + C, P = s.value.height - h.value.bottom - 4 - C, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), I = (P - A) / e.value.style.chart.layout.curveAngleX;
176
+ const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.height - h.value.top - h.value.bottom) / 100 / 3 : 0, p = h.value.left + a * g.value.mark + a * g.value.space - g.value.mark, $ = p, A = h.value.top + 4 + C, P = s.value.height - h.value.bottom - 4 - C, I = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), T = (P - A) / e.value.style.chart.layout.curveAngleX;
176
177
  t.push({
177
178
  x1: p,
178
179
  x2: $,
179
180
  y1: A,
180
181
  y2: P,
181
- curve: `M ${p} ${A} C ${p + x} ${A + I}, ${$ + x} ${P - I}, ${$} ${P}`,
182
+ curve: `M ${p} ${A} C ${p + I} ${A + T}, ${$ + I} ${P - T}, ${$} ${P}`,
182
183
  color: l
183
184
  });
184
185
  }
185
186
  }
186
187
  return t;
187
- }), y = d(() => {
188
+ }), y = r(() => {
188
189
  let t, o, a;
189
190
  const l = e.value.style.chart.percentage.fontSize / 3;
190
- return N.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = s.value.width / 2, o = h.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = s.value.width / 2, o = s.value.height - h.value.bottom / 2 + l, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, o = s.value.height / 2 + l, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = s.value.width - h.value.right + 8, o = s.value.height / 2 + l, a = "start"), {
191
+ return M.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = s.value.width / 2, o = h.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = s.value.width / 2, o = s.value.height - h.value.bottom / 2 + l, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, o = s.value.height / 2 + l, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = s.value.width - h.value.right + 8, o = s.value.height / 2 + l, a = "start"), {
191
192
  x: t,
192
193
  y: o,
193
194
  textAnchor: a,
@@ -195,17 +196,17 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
195
196
  fontSize: e.value.style.chart.percentage.fontSize,
196
197
  fill: e.value.style.chart.percentage.color
197
198
  };
198
- }), U = i(!1);
199
- function he(t) {
200
- U.value = t, ee.value += 1;
199
+ }), U = c(!1);
200
+ function ge(t) {
201
+ U.value = t, le.value += 1;
201
202
  }
202
- const L = i(!1);
203
- function q() {
204
- L.value = !L.value;
203
+ const B = c(!1);
204
+ function K() {
205
+ B.value = !B.value;
205
206
  }
206
- async function Re({ scale: t = 2 } = {}) {
207
- if (!O.value) return;
208
- const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: C, base64: p } = await ht({ domElement: O.value, base64: !0, img: !0, scale: t });
207
+ async function Be({ scale: t = 2 } = {}) {
208
+ if (!_.value) return;
209
+ const { width: o, height: a } = _.value.getBoundingClientRect(), l = o / a, { imageUri: C, base64: p } = await bt({ domElement: _.value, base64: !0, img: !0, scale: t });
209
210
  return {
210
211
  imageUri: C,
211
212
  base64: p,
@@ -215,72 +216,81 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
215
216
  aspectRatio: l
216
217
  };
217
218
  }
218
- const Ee = d(() => e.value.style.chart.backgroundColor), Me = d(() => e.value.style.chart.title), { exportSvg: Ue, getSvg: Le } = st({
219
- svg: j,
220
- title: Me,
221
- backgroundColor: Ee
219
+ const Ge = r(() => e.value.style.chart.backgroundColor), je = r(() => e.value.style.chart.title), { exportSvg: He, getSvg: Ve } = ht({
220
+ svg: V,
221
+ title: je,
222
+ backgroundColor: Ge
222
223
  });
223
- async function de({ isCb: t }) {
224
- F.value = !0, await Xe();
224
+ async function pe({ isCb: t }) {
225
+ N.value = !0, await Ze();
225
226
  try {
226
227
  if (t) {
227
- const { blob: o, url: a, text: l, dataUrl: C } = await Le();
228
+ const { blob: o, url: a, text: l, dataUrl: C } = await Ve();
228
229
  await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: C }));
229
230
  } else
230
- await Promise.resolve(Ue());
231
+ await Promise.resolve(He());
231
232
  } finally {
232
- F.value = !1;
233
+ N.value = !1;
233
234
  }
234
235
  }
235
- function Be(t) {
236
+ function Xe(t) {
236
237
  if (t?.stage === "start") {
237
- T.value = !0;
238
+ F.value = !0;
238
239
  return;
239
240
  }
240
241
  if (t?.stage === "end") {
241
- T.value = !1;
242
+ F.value = !1;
242
243
  return;
243
244
  }
244
- re();
245
+ ce();
245
246
  }
246
- async function fe() {
247
- if (xe("copyAlt", {
247
+ async function ye() {
248
+ if (Re("copyAlt", {
248
249
  config: e.value,
249
- dataset: _.value
250
+ dataset: x.value
250
251
  }), !e.value.userOptions.callbacks.altCopy) {
251
252
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
252
253
  return;
253
254
  }
254
255
  await Promise.resolve(e.value.userOptions.callbacks.altCopy({
255
256
  config: e.value,
256
- dataset: _.value
257
+ dataset: x.value
257
258
  }));
258
259
  }
259
- return Ce({
260
- getImage: Re,
261
- generatePdf: se,
262
- generateImage: re,
263
- generateSvg: de,
264
- toggleAnnotator: q,
265
- toggleFullscreen: he,
266
- copyAlt: fe
267
- }), (t, o) => (r(), c("div", {
260
+ const me = r(() => `${O.value}-title`), ke = r(() => `${O.value}-desc`), W = r(() => lt(
261
+ e.value.style.chart.percentage.formatter,
262
+ d.value,
263
+ nt({
264
+ v: d.value,
265
+ s: "%",
266
+ r: e.value.style.chart.percentage.rounding
267
+ })
268
+ )), qe = r(() => e.value.style.chart.title.text || ""), Ye = r(() => R.value ? "Loading data" : `Value: ${W.value}`);
269
+ return Oe({
270
+ getImage: Be,
271
+ generatePdf: ue,
272
+ generateImage: ce,
273
+ generateSvg: pe,
274
+ toggleAnnotator: K,
275
+ toggleFullscreen: ge,
276
+ copyAlt: ye
277
+ }), (t, o) => (i(), v("div", {
268
278
  ref_key: "tiremarksChart",
269
- ref: O,
270
- class: W(`vue-data-ui-component vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
271
- style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
272
- id: D.value,
273
- onMouseenter: o[0] || (o[0] = () => n(le)(!0)),
274
- onMouseleave: o[1] || (o[1] = () => n(le)(!1))
279
+ ref: _,
280
+ class: Z(`vue-data-ui-component vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
281
+ style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
282
+ id: O.value,
283
+ onMouseenter: o[0] || (o[0] = () => n(re)(!0)),
284
+ onMouseleave: o[1] || (o[1] = () => n(re)(!1))
275
285
  }, [
276
- e.value.userOptions.buttons.annotator ? (r(), B(n($e), {
286
+ e.value.userOptions.buttons.annotator ? (i(), G(n(xe), {
277
287
  key: 0,
278
- svgRef: n(j),
288
+ svgRef: n(V),
279
289
  backgroundColor: e.value.style.chart.backgroundColor,
280
290
  color: e.value.style.chart.color,
281
- active: L.value,
282
- isCursorPointer: ae.value,
283
- onClose: q
291
+ active: B.value,
292
+ isCursorPointer: se.value,
293
+ onClose: K
284
294
  }, {
285
295
  "annotator-action-close": f(() => [
286
296
  u(t.$slots, "annotator-action-close", {}, void 0, !0)
@@ -302,21 +312,21 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
302
312
  ]),
303
313
  _: 3
304
314
  }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : w("", !0),
305
- Fe.value ? (r(), c("div", {
315
+ Le.value ? (i(), v("div", {
306
316
  key: 1,
307
317
  ref_key: "noTitle",
308
- ref: ze,
318
+ ref: Ee,
309
319
  class: "vue-data-ui-no-title-space",
310
320
  style: "height:36px; width: 100%;background:transparent"
311
321
  }, null, 512)) : w("", !0),
312
- e.value.style.chart.title.text ? (r(), c("div", {
322
+ e.value.style.chart.title.text ? (i(), v("div", {
313
323
  key: 2,
314
324
  ref_key: "chartTitle",
315
- ref: Q,
325
+ ref: ae,
316
326
  style: "width:100%;background:transparent;padding-bottom:12px"
317
327
  }, [
318
- (r(), B(vt, {
319
- key: `title_${te.value}`,
328
+ (i(), G(kt, {
329
+ key: `title_${ne.value}`,
320
330
  config: {
321
331
  title: {
322
332
  cy: "wheel-title",
@@ -329,14 +339,14 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
329
339
  }
330
340
  }, null, 8, ["config"]))
331
341
  ], 512)) : w("", !0),
332
- e.value.userOptions.show && Ie.value && (n(ne) || n(G)) ? (r(), B(n(Ae), {
342
+ e.value.userOptions.show && Me.value && (n(ie) || n(H)) ? (i(), G(n(Ie), {
333
343
  ref: "details",
334
- key: `user_options_${ee.value}`,
344
+ key: `user_options_${le.value}`,
335
345
  backgroundColor: e.value.style.chart.backgroundColor,
336
346
  color: e.value.style.chart.color,
337
- isPrinting: n(V),
338
- isImaging: n(X),
339
- uid: D.value,
347
+ isPrinting: n(q),
348
+ isImaging: n(Y),
349
+ uid: O.value,
340
350
  hasPdf: e.value.userOptions.buttons.pdf,
341
351
  hasImg: e.value.userOptions.buttons.img,
342
352
  hasSvg: e.value.userOptions.buttons.svg,
@@ -345,23 +355,23 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
345
355
  hasXls: !1,
346
356
  isFullscreen: U.value,
347
357
  titles: { ...e.value.userOptions.buttonTitles },
348
- chartElement: O.value,
358
+ chartElement: _.value,
349
359
  position: e.value.userOptions.position,
350
360
  hasAnnotator: e.value.userOptions.buttons.annotator,
351
- isAnnotation: L.value,
361
+ isAnnotation: B.value,
352
362
  callbacks: e.value.userOptions.callbacks,
353
363
  printScale: e.value.userOptions.print.scale,
354
- isCursorPointer: ae.value,
355
- onToggleFullscreen: he,
356
- onGeneratePdf: n(se),
357
- onGenerateImage: Be,
358
- onGenerateSvg: de,
359
- onToggleAnnotator: q,
360
- onCopyAlt: fe,
361
- style: K({
362
- visibility: n(ne) ? n(G) ? "visible" : "hidden" : "visible"
364
+ isCursorPointer: se.value,
365
+ onToggleFullscreen: ge,
366
+ onGeneratePdf: n(ue),
367
+ onGenerateImage: Xe,
368
+ onGenerateSvg: pe,
369
+ onToggleAnnotator: K,
370
+ onCopyAlt: ye,
371
+ style: Q({
372
+ visibility: n(ie) ? n(H) ? "visible" : "hidden" : "visible"
363
373
  })
364
- }, je({ _: 2 }, [
374
+ }, Je({ _: 2 }, [
365
375
  t.$slots.menuIcon ? {
366
376
  name: "menuIcon",
367
377
  fn: f(({ isOpen: a, color: l }) => [
@@ -412,16 +422,21 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
412
422
  key: "6"
413
423
  } : void 0
414
424
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : w("", !0),
415
- (r(), c("svg", {
425
+ (i(), v("svg", {
416
426
  ref_key: "svgRef",
417
- ref: j,
418
- xmlns: n(Je),
419
- class: W({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
420
- viewBox: `0 0 ${E.value} ${M.value}`,
421
- style: K(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
427
+ ref: V,
428
+ xmlns: n(st),
429
+ class: Z({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
430
+ viewBox: `0 0 ${D.value} ${L.value}`,
431
+ style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`),
432
+ role: "img",
433
+ "aria-labelledby": me.value,
434
+ "aria-describedby": ke.value
422
435
  }, [
423
- He(n(Pe)),
424
- t.$slots["chart-background"] ? (r(), c("foreignObject", {
436
+ Ce("title", { id: me.value }, ee(qe.value), 9, At),
437
+ Ce("desc", { id: ke.value }, ee(Ye.value), 9, Pt),
438
+ Qe(n(Te)),
439
+ t.$slots["chart-background"] ? (i(), v("foreignObject", {
425
440
  key: 0,
426
441
  x: 0,
427
442
  y: 0,
@@ -432,79 +447,77 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
432
447
  }
433
448
  }, [
434
449
  u(t.$slots, "chart-background", {}, void 0, !0)
435
- ], 8, pt)) : w("", !0),
436
- e.value.style.chart.layout.curved ? (r(), c("g", yt, [
437
- (r(!0), c(pe, null, ye(ve.value, (a, l) => (r(), c("path", {
450
+ ], 8, _t)) : w("", !0),
451
+ e.value.style.chart.layout.curved ? (i(), v("g", Ot, [
452
+ (i(!0), v(we, null, $e(fe.value, (a, l) => (i(), v("path", {
438
453
  d: a.curve,
439
454
  "stroke-width": g.value.mark,
440
- stroke: v.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
455
+ stroke: d.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
441
456
  "stroke-linecap": "round",
442
457
  fill: "none",
443
- class: W({ "vue-ui-tick-animated": e.value.style.chart.animation.use && l <= v.value })
444
- }, null, 10, mt))), 256))
445
- ])) : (r(), c("g", kt, [
446
- (r(!0), c(pe, null, ye(ve.value, (a, l) => (r(), c("line", {
458
+ class: Z({ "vue-ui-tick-animated": e.value.style.chart.animation.use && !n(j) && l <= d.value })
459
+ }, null, 10, St))), 256))
460
+ ])) : (i(), v("g", xt, [
461
+ (i(!0), v(we, null, $e(fe.value, (a, l) => (i(), v("line", {
447
462
  x1: a.x1,
448
463
  y1: a.y1,
449
464
  x2: a.x2,
450
465
  y2: a.y2,
451
466
  "stroke-width": g.value.mark,
452
- stroke: v.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
467
+ stroke: d.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
453
468
  "stroke-linecap": "round"
454
- }, null, 8, bt))), 256))
469
+ }, null, 8, It))), 256))
455
470
  ])),
456
- e.value.style.chart.percentage.show ? (r(), c("g", Ct, [
457
- n(oe) ? (r(), c("rect", {
471
+ e.value.style.chart.percentage.show ? (i(), v("g", {
472
+ key: 3,
473
+ role: "status",
474
+ "aria-live": "polite",
475
+ "aria-label": n(R) ? "..." : `${W.value}`
476
+ }, [
477
+ n(R) ? (i(), v("rect", {
458
478
  key: 0,
459
- x: ce.value.x,
460
- y: ce.value.y,
479
+ x: he.value.x,
480
+ y: he.value.y,
461
481
  width: 40,
462
482
  height: y.value.fontSize,
463
483
  fill: "#6A6A6A80",
464
484
  rx: 3
465
- }, null, 8, wt)) : (r(), c("text", {
485
+ }, null, 8, zt)) : (i(), v("text", {
466
486
  key: 1,
487
+ "aria-hidden": "true",
467
488
  x: y.value.x,
468
489
  y: y.value.y,
469
490
  "font-size": y.value.fontSize,
470
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? n(ke)(e.value.style.chart.layout.activeColor, v.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
491
+ fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? n(Pe)(e.value.style.chart.layout.activeColor, d.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
471
492
  "font-weight": y.value.bold ? "bold" : "normal",
472
493
  "text-anchor": y.value.textAnchor
473
- }, Ve(n(Qe)(
474
- e.value.style.chart.percentage.formatter,
475
- v.value,
476
- n(Ze)({
477
- v: v.value,
478
- s: "%",
479
- r: e.value.style.chart.percentage.rounding
480
- })
481
- )), 9, $t))
482
- ])) : w("", !0),
494
+ }, ee(W.value), 9, Ft))
495
+ ], 8, Tt)) : w("", !0),
483
496
  u(t.$slots, "svg", {
484
497
  svg: {
485
498
  ...s.value,
486
- isPrintingImg: n(V) | n(X) | T.value,
487
- isPrintingSvg: F.value
499
+ isPrintingImg: n(q) | n(Y) | F.value,
500
+ isPrintingSvg: N.value
488
501
  }
489
502
  }, void 0, !0)
490
- ], 14, gt)),
491
- t.$slots.watermark ? (r(), c("div", At, [
492
- u(t.$slots, "watermark", m(k({ isPrinting: n(V) || n(X) || T.value || F.value })), void 0, !0)
503
+ ], 14, $t)),
504
+ t.$slots.watermark ? (i(), v("div", Nt, [
505
+ u(t.$slots, "watermark", m(k({ isPrinting: n(q) || n(Y) || F.value || N.value })), void 0, !0)
493
506
  ])) : w("", !0),
494
- t.$slots.source ? (r(), c("div", {
507
+ t.$slots.source ? (i(), v("div", {
495
508
  key: 5,
496
509
  ref_key: "source",
497
- ref: Z,
510
+ ref: oe,
498
511
  dir: "auto"
499
512
  }, [
500
513
  u(t.$slots, "source", {}, void 0, !0)
501
514
  ], 512)) : w("", !0),
502
515
  u(t.$slots, "skeleton", {}, () => [
503
- n(oe) ? (r(), B(lt, { key: 0 })) : w("", !0)
516
+ n(R) ? (i(), G(vt, { key: 0 })) : w("", !0)
504
517
  ], !0)
505
- ], 46, ft));
518
+ ], 46, wt));
506
519
  }
507
- }, Dt = /* @__PURE__ */ dt(Pt, [["__scopeId", "data-v-f381cb10"]]);
520
+ }, Qt = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-ed01b8e6"]]);
508
521
  export {
509
- Dt as default
522
+ Qt as default
510
523
  };