vue-data-ui 3.25.5 → 3.25.7

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
  101. package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
  103. package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
  104. package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
  105. package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
  110. package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
  112. package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
  113. package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
  114. package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
  115. package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
  116. package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
  117. package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
  120. package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
  122. package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
  130. package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
  132. package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
  134. package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
  137. package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
  138. package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
  139. package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
  143. package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
  144. package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
  148. package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
  149. package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
  150. package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
  151. package/dist/vue-ui-table-CiccGbRB.js +1352 -0
  152. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  153. package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
  156. package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
  157. package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
  158. package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
  159. package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
  160. package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
  162. package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -0,0 +1,540 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Pt as t, Wt as n, X as r, Zt as i, b as a, i as o, nt as s, q as c, t as l } from "./lib-Dql7cqyA.js";
3
+ import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ne } from "./useConfig-CIQZ6_r7.js";
5
+ import { t as re } from "./usePrinter-DISD7q5m.js";
6
+ import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as u } from "./useNestedProp-Chvyfpl-.js";
8
+ import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as se } from "./useChartExport-iwOqiIWX.js";
10
+ import { t as ce } from "./img-DhGApYG0.js";
11
+ import { n as le } from "./Title-CPHi-evi.js";
12
+ import { t as ue } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as de, t as fe } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as pe } from "./useUserOptionState-DK-_1ddE.js";
15
+ import { t as me } from "./useChartAccessibility-DYqac8yF.js";
16
+ import { t as he } from "./usePrefersMotion-BC-CsqR1.js";
17
+ import { t as ge } from "./vue_ui_tiremarks-CdEPieWV.js";
18
+ import { Fragment as _e, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ve, createSlots as ye, createVNode as be, defineAsyncComponent as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as xe, onMounted as Se, openBlock as y, ref as b, renderList as Ce, renderSlot as x, toDisplayString as S, toRefs as we, unref as C, watch as Te, withCtx as w } from "vue";
19
+ //#region src/components/vue-ui-tiremarks.vue
20
+ var Ee = /* @__PURE__ */ e({ default: () => T }), De = ["id"], Oe = [
21
+ "xmlns",
22
+ "viewBox",
23
+ "aria-labelledby",
24
+ "aria-describedby"
25
+ ], ke = ["id"], Ae = ["id"], je = ["width", "height"], Me = { key: 1 }, Ne = [
26
+ "d",
27
+ "stroke-width",
28
+ "stroke"
29
+ ], Pe = { key: 2 }, Fe = [
30
+ "x1",
31
+ "y1",
32
+ "x2",
33
+ "y2",
34
+ "stroke-width",
35
+ "stroke"
36
+ ], Ie = ["aria-label"], Le = [
37
+ "x",
38
+ "y",
39
+ "height"
40
+ ], Re = [
41
+ "x",
42
+ "y",
43
+ "font-size",
44
+ "fill",
45
+ "font-weight",
46
+ "text-anchor"
47
+ ], ze = {
48
+ key: 4,
49
+ class: "vue-data-ui-watermark"
50
+ }, T = /*#__PURE__*/ ue({
51
+ __name: "vue-ui-tiremarks",
52
+ props: {
53
+ config: {
54
+ type: Object,
55
+ default() {
56
+ return {};
57
+ }
58
+ },
59
+ dataset: {
60
+ type: Object,
61
+ default() {
62
+ return {};
63
+ }
64
+ }
65
+ },
66
+ emits: ["copyAlt"],
67
+ setup(e, { expose: ue, emit: Ee }) {
68
+ let T = h(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Be = h(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), Ve = h(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), { vue_ui_tiremarks: He } = ne(), { isThemeValid: Ue, warnInvalidTheme: We } = oe(), E = he(), D = e, Ge = Ee, Ke = d(() => !!D.dataset && Object.keys(D.dataset).length), O = b(c()), k = b(null), qe = b(null), Je = b(null), Ye = b(null), Xe = b(0), Ze = b(0), A = b(null), j = b(null), M = b(B()), N = d(() => M.value.userOptions), P = d(() => M.value.style.chart.layout), F = d(() => M.value.style.chart);
69
+ ee({
70
+ config: () => M.value,
71
+ dataset: () => D.dataset,
72
+ component: "VueUiTiremarks",
73
+ rules: [te.noHint]
74
+ });
75
+ let Qe = d(() => M.value.userOptions.useCursorPointer), $e = d(() => i({
76
+ defaultConfig: {
77
+ userOptions: { show: !1 },
78
+ style: { chart: {
79
+ backgroundColor: "#99999930",
80
+ animation: { use: !1 },
81
+ layout: {
82
+ activeColor: "#6A6A6A80",
83
+ inactiveColor: "#CACACA80",
84
+ ticks: { gradient: { show: !1 } }
85
+ }
86
+ } }
87
+ },
88
+ userConfig: M.value.skeletonConfig ?? {}
89
+ })), { loading: I, FINAL_DATASET: L } = ie({
90
+ ...we(D),
91
+ FINAL_CONFIG: M,
92
+ prepareConfig: B,
93
+ skeletonDataset: D.config?.skeletonDataset ?? { percentage: 50 },
94
+ skeletonConfig: i({
95
+ defaultConfig: M.value,
96
+ userConfig: $e.value
97
+ })
98
+ }), { userOptionsVisible: R, setUserOptionsVisibility: et, keepUserOptionState: tt } = pe({ config: M.value }), { svgRef: z } = me({ config: F.value.title });
99
+ function B() {
100
+ let e = u({
101
+ userConfig: D.config,
102
+ defaultConfig: He
103
+ }), t = e.theme;
104
+ if (!t) return e;
105
+ if (!Ue.value(e)) return We(e), e;
106
+ let n = u({
107
+ userConfig: ge[t] || D.config,
108
+ defaultConfig: e
109
+ });
110
+ return u({
111
+ userConfig: D.config,
112
+ defaultConfig: n
113
+ });
114
+ }
115
+ Te(() => D.config, (e) => {
116
+ M.value = B(), R.value = !M.value.userOptions.showOnChartHover, q.value = F.value.width, J.value = F.value.height, st(), Ze.value += 1;
117
+ }, { deep: !0 });
118
+ let { isPrinting: V, isImaging: H, generatePdf: nt, generateImage: rt } = re({
119
+ elementId: O.value,
120
+ fileName: F.value.title.text || "vue-ui-tiremarks",
121
+ options: M.value.userOptions.print
122
+ }), it = d(() => M.value.userOptions.show && !F.value.title.text), U = b(F.value.animation.use && !E.value ? 0 : a(L.value.percentage));
123
+ Te(() => L.value, (e) => {
124
+ F.value.animation.use && !E.value ? at(e.percentage) : U.value = e.percentage || 0;
125
+ }, { deep: !0 }), Se(() => {
126
+ st();
127
+ });
128
+ function at(e) {
129
+ let t = F.value.animation.speed, n = Math.abs(e - U.value) / (t * 120);
130
+ function r() {
131
+ U.value < e ? U.value = Math.min(U.value + n, e) : U.value > e && (U.value = Math.max(U.value - n, e)), U.value !== e && requestAnimationFrame(r);
132
+ }
133
+ r();
134
+ }
135
+ let ot = d(() => M.value.debug);
136
+ function st() {
137
+ if (t(D.dataset) && s({
138
+ componentName: "VueUiTiremarks",
139
+ type: "dataset",
140
+ debug: ot.value
141
+ }), M.value.responsive) {
142
+ let e = de(() => {
143
+ let { width: e, height: t } = fe({
144
+ chart: k.value,
145
+ title: F.value.title.text ? Je.value : null,
146
+ source: Ye.value
147
+ });
148
+ requestAnimationFrame(() => {
149
+ q.value = Math.max(.1, e), J.value = Math.max(.1, t - 12);
150
+ });
151
+ });
152
+ A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = k.value.parentNode, A.value.observe(j.value);
153
+ }
154
+ at(L.value.percentage || 0);
155
+ }
156
+ let W = d(() => P.value.display === "vertical"), G = d(() => {
157
+ let e = F.value.percentage.show, t = {
158
+ top: e ? 48 : 12,
159
+ left: e ? 64 : 16,
160
+ right: e ? 64 : 16,
161
+ bottom: e ? 48 : 12
162
+ };
163
+ return W.value ? {
164
+ top: F.value.percentage.verticalPosition === "top" ? t.top : 3,
165
+ left: 3,
166
+ right: 3,
167
+ bottom: F.value.percentage.verticalPosition === "bottom" ? t.bottom : 3
168
+ } : {
169
+ top: 0,
170
+ bottom: 0,
171
+ left: F.value.percentage.horizontalPosition === "left" ? t.left : 16,
172
+ right: F.value.percentage.horizontalPosition === "right" ? t.right : 10
173
+ };
174
+ }), K = d(() => Object.values(G.value).reduce((e, t) => e + t, 0)), q = b(F.value.width), J = b(F.value.height), Y = d(() => ({
175
+ height: J.value,
176
+ width: q.value
177
+ })), ct = d(() => ({
178
+ horizontal: {
179
+ x: Z.value.x + (F.value.percentage.horizontalPosition === "left" ? 6 : 3),
180
+ y: Y.value.height / 2 - Z.value.fontSize / 2
181
+ },
182
+ vertical: {
183
+ x: Y.value.width / 2 - 20,
184
+ y: Z.value.y - Z.value.fontSize / 2
185
+ }
186
+ })[P.value.display]), X = d(() => W.value ? {
187
+ mark: (Y.value.height - K.value) / 100 * .5,
188
+ space: (Y.value.height - K.value) / 100 * .5
189
+ } : {
190
+ mark: (Y.value.width - K.value) / 100 * .5,
191
+ space: (Y.value.width - K.value) / 100 * .5
192
+ }), lt = d(() => {
193
+ let e = [];
194
+ for (let t = 0; t < 100; t += 1) {
195
+ let r = P.value.ticks.gradient.show ? n(P.value.activeColor, t / 100 * (P.value.ticks.gradient.shiftHueIntensity / 100)) : P.value.activeColor;
196
+ if (W.value) {
197
+ let n = P.value.crescendo ? (100 - t) * (Y.value.width - G.value.left - G.value.right) / 100 / 3 : 0, i = G.value.left + 4 + n, a = Y.value.width - G.value.right - 4 - n, o = Y.value.height - G.value.bottom - t * X.value.mark - t * X.value.space - X.value.mark, s = Y.value.height - G.value.bottom - t * X.value.mark - t * X.value.space - X.value.mark, c = (a - i) / P.value.curveAngleX, l = P.value.curveAngleY * ((1 + t) / 100);
198
+ e.push({
199
+ x1: i,
200
+ x2: a,
201
+ y1: o,
202
+ y2: s,
203
+ curve: `M ${i} ${o} C ${i + c} ${o - l}, ${a - c} ${s - l}, ${a} ${s}`,
204
+ color: r
205
+ });
206
+ } else {
207
+ let n = P.value.crescendo ? (100 - t) * (Y.value.height - G.value.top - G.value.bottom) / 100 / 3 : 0, i = G.value.left + t * X.value.mark + t * X.value.space - X.value.mark, a = i, o = G.value.top + 4 + n, s = Y.value.height - G.value.bottom - 4 - n, c = P.value.curveAngleY * ((1 + t) / 100), l = (s - o) / P.value.curveAngleX;
208
+ e.push({
209
+ x1: i,
210
+ x2: a,
211
+ y1: o,
212
+ y2: s,
213
+ curve: `M ${i} ${o} C ${i + c} ${o + l}, ${a + c} ${s - l}, ${a} ${s}`,
214
+ color: r
215
+ });
216
+ }
217
+ }
218
+ return e;
219
+ }), Z = d(() => {
220
+ let e, t, n, r = F.value.percentage.fontSize / 3;
221
+ return W.value ? F.value.percentage.verticalPosition === "top" ? (e = Y.value.width / 2, t = G.value.top / 2, n = "middle") : F.value.percentage.verticalPosition === "bottom" && (e = Y.value.width / 2, t = Y.value.height - G.value.bottom / 2 + r, n = "middle") : F.value.percentage.horizontalPosition === "left" ? (e = 4, t = Y.value.height / 2 + r, n = "start") : F.value.percentage.horizontalPosition === "right" && (e = Y.value.width - G.value.right + 8, t = Y.value.height / 2 + r, n = "start"), {
222
+ x: e,
223
+ y: t,
224
+ textAnchor: n,
225
+ bold: F.value.percentage.bold,
226
+ fontSize: F.value.percentage.fontSize,
227
+ fill: F.value.percentage.color
228
+ };
229
+ }), Q = b(!1);
230
+ function ut(e) {
231
+ Q.value = e, Xe.value += 1;
232
+ }
233
+ let $ = b(!1);
234
+ function dt() {
235
+ $.value = !$.value;
236
+ }
237
+ async function ft({ scale: e = 2 } = {}) {
238
+ if (!k.value) return;
239
+ let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ce({
240
+ domElement: k.value,
241
+ base64: !0,
242
+ img: !0,
243
+ scale: e
244
+ });
245
+ return {
246
+ imageUri: i,
247
+ base64: a,
248
+ title: F.value.title.text,
249
+ width: t,
250
+ height: n,
251
+ aspectRatio: r
252
+ };
253
+ }
254
+ let pt = d(() => F.value.backgroundColor), mt = d(() => F.value.title), { isCallbackImaging: ht, isCallbackSvg: gt, generateSvg: _t, onGenerateImage: vt } = se({
255
+ svg: z,
256
+ title: mt,
257
+ legend: null,
258
+ legendItems: null,
259
+ backgroundColor: pt,
260
+ getSvgCallback: () => M.value.userOptions.callbacks.svg,
261
+ generateImage: rt
262
+ });
263
+ async function yt() {
264
+ if (Ge("copyAlt", {
265
+ config: M.value,
266
+ dataset: L.value
267
+ }), !M.value.userOptions.callbacks.altCopy) {
268
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
269
+ return;
270
+ }
271
+ await Promise.resolve(M.value.userOptions.callbacks.altCopy({
272
+ config: M.value,
273
+ dataset: L.value
274
+ }));
275
+ }
276
+ let bt = d(() => `${O.value}-title`), xt = d(() => `${O.value}-desc`), St = d(() => o(F.value.percentage.formatter, U.value, r({
277
+ v: U.value,
278
+ s: "%",
279
+ r: F.value.percentage.rounding
280
+ }))), Ct = d(() => F.value.title.text || ""), wt = d(() => I.value ? "Loading data" : `Value: ${St.value}`);
281
+ return ue({
282
+ getImage: ft,
283
+ generatePdf: nt,
284
+ generateImage: rt,
285
+ generateSvg: _t,
286
+ toggleAnnotator: dt,
287
+ toggleFullscreen: ut,
288
+ copyAlt: yt
289
+ }), (e, t) => (y(), m("div", {
290
+ ref_key: "tiremarksChart",
291
+ ref: k,
292
+ class: _(`vue-data-ui-component vue-ui-tiremarks ${M.value.useCssAnimation ? "" : "vue-ui-dna"}`),
293
+ style: xe(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor}`),
294
+ id: O.value,
295
+ onMouseenter: t[0] ||= () => C(et)(!0),
296
+ onMouseleave: t[1] ||= () => C(et)(!1)
297
+ }, [
298
+ N.value.buttons.annotator ? (y(), f(C(T), {
299
+ key: 0,
300
+ svgRef: C(z),
301
+ backgroundColor: F.value.backgroundColor,
302
+ color: F.value.color,
303
+ active: $.value,
304
+ isCursorPointer: Qe.value,
305
+ palette: N.value.annotatorPalette,
306
+ onClose: dt
307
+ }, {
308
+ "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
309
+ "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
310
+ "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
311
+ "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
312
+ "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
313
+ "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
314
+ _: 3
315
+ }, 8, [
316
+ "svgRef",
317
+ "backgroundColor",
318
+ "color",
319
+ "active",
320
+ "isCursorPointer",
321
+ "palette"
322
+ ])) : p("", !0),
323
+ it.value ? (y(), m("div", {
324
+ key: 1,
325
+ ref_key: "noTitle",
326
+ ref: qe,
327
+ class: "vue-data-ui-no-title-space",
328
+ style: "height:36px; width: 100%;background:transparent"
329
+ }, null, 512)) : p("", !0),
330
+ F.value.title.text ? (y(), m("div", {
331
+ key: 2,
332
+ ref_key: "chartTitle",
333
+ ref: Je,
334
+ style: "width:100%;background:transparent;padding-bottom:12px"
335
+ }, [(y(), f(le, {
336
+ key: `title_${Ze.value}`,
337
+ config: {
338
+ title: {
339
+ cy: "wheel-title",
340
+ ...F.value.title
341
+ },
342
+ subtitle: {
343
+ cy: "wheel-subtitle",
344
+ ...F.value.title.subtitle
345
+ }
346
+ }
347
+ }, null, 8, ["config"]))], 512)) : p("", !0),
348
+ N.value.show && Ke.value && (C(tt) || C(R)) ? (y(), f(C(Be), {
349
+ ref: "details",
350
+ key: `user_options_${Xe.value}`,
351
+ backgroundColor: F.value.backgroundColor,
352
+ color: F.value.color,
353
+ isPrinting: C(V),
354
+ isImaging: C(H),
355
+ uid: O.value,
356
+ hasPdf: N.value.buttons.pdf,
357
+ hasImg: N.value.buttons.img,
358
+ hasSvg: N.value.buttons.svg,
359
+ hasFullscreen: N.value.buttons.fullscreen,
360
+ hasAltCopy: N.value.buttons.altCopy,
361
+ hasXls: !1,
362
+ isFullscreen: Q.value,
363
+ titles: { ...N.value.buttonTitles },
364
+ chartElement: k.value,
365
+ position: N.value.position,
366
+ hasAnnotator: N.value.buttons.annotator,
367
+ isAnnotation: $.value,
368
+ callbacks: N.value.callbacks,
369
+ printScale: N.value.print.scale,
370
+ isCursorPointer: Qe.value,
371
+ onToggleFullscreen: ut,
372
+ onGeneratePdf: C(nt),
373
+ onGenerateImage: C(vt),
374
+ onGenerateSvg: C(_t),
375
+ onToggleAnnotator: dt,
376
+ onCopyAlt: yt,
377
+ style: xe({ visibility: C(tt) ? C(R) ? "visible" : "hidden" : "visible" })
378
+ }, ye({ _: 2 }, [
379
+ e.$slots.menuIcon ? {
380
+ name: "menuIcon",
381
+ fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", v(g({
382
+ isOpen: t,
383
+ color: n
384
+ })), void 0, !0)]),
385
+ key: "0"
386
+ } : void 0,
387
+ e.$slots.optionPdf ? {
388
+ name: "optionPdf",
389
+ fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
390
+ key: "1"
391
+ } : void 0,
392
+ e.$slots.optionImg ? {
393
+ name: "optionImg",
394
+ fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
395
+ key: "2"
396
+ } : void 0,
397
+ e.$slots.optionSvg ? {
398
+ name: "optionSvg",
399
+ fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
400
+ key: "3"
401
+ } : void 0,
402
+ e.$slots.optionFullscreen ? {
403
+ name: "optionFullscreen",
404
+ fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", v(g({
405
+ toggleFullscreen: t,
406
+ isFullscreen: n
407
+ })), void 0, !0)]),
408
+ key: "4"
409
+ } : void 0,
410
+ e.$slots.optionAnnotator ? {
411
+ name: "optionAnnotator",
412
+ fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", v(g({
413
+ toggleAnnotator: t,
414
+ isAnnotator: n
415
+ })), void 0, !0)]),
416
+ key: "5"
417
+ } : void 0,
418
+ e.$slots.optionAltCopy ? {
419
+ name: "optionAltCopy",
420
+ fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
421
+ key: "6"
422
+ } : void 0,
423
+ e.$slots["custom-menu-before"] ? {
424
+ name: "custom-menu-before",
425
+ fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
426
+ key: "7"
427
+ } : void 0,
428
+ e.$slots["custom-menu-after"] ? {
429
+ name: "custom-menu-after",
430
+ fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
431
+ key: "8"
432
+ } : void 0
433
+ ]), 1032, [
434
+ "backgroundColor",
435
+ "color",
436
+ "isPrinting",
437
+ "isImaging",
438
+ "uid",
439
+ "hasPdf",
440
+ "hasImg",
441
+ "hasSvg",
442
+ "hasFullscreen",
443
+ "hasAltCopy",
444
+ "isFullscreen",
445
+ "titles",
446
+ "chartElement",
447
+ "position",
448
+ "hasAnnotator",
449
+ "isAnnotation",
450
+ "callbacks",
451
+ "printScale",
452
+ "isCursorPointer",
453
+ "onGeneratePdf",
454
+ "onGenerateImage",
455
+ "onGenerateSvg",
456
+ "style"
457
+ ])) : p("", !0),
458
+ (y(), m("svg", {
459
+ ref_key: "svgRef",
460
+ ref: z,
461
+ xmlns: C(l),
462
+ class: _({
463
+ "vue-data-ui-fullscreen--on": Q.value,
464
+ "vue-data-ui-fulscreen--off": !Q.value
465
+ }),
466
+ viewBox: `0 0 ${q.value} ${J.value}`,
467
+ style: xe(`max-width:100%; overflow: visible; background:transparent;color:${F.value.color}`),
468
+ role: "img",
469
+ "aria-labelledby": bt.value,
470
+ "aria-describedby": xt.value
471
+ }, [
472
+ ve("title", { id: bt.value }, S(Ct.value), 9, ke),
473
+ ve("desc", { id: xt.value }, S(wt.value), 9, Ae),
474
+ be(C(Ve)),
475
+ e.$slots["chart-background"] ? (y(), m("foreignObject", {
476
+ key: 0,
477
+ x: 0,
478
+ y: 0,
479
+ width: Y.value.width,
480
+ height: Y.value.height,
481
+ style: { pointerEvents: "none" }
482
+ }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, je)) : p("", !0),
483
+ P.value.curved ? (y(), m("g", Me, [(y(!0), m(_e, null, Ce(lt.value, (e, t) => (y(), m("path", {
484
+ d: e.curve,
485
+ "stroke-width": X.value.mark,
486
+ stroke: U.value >= t ? e.color : P.value.inactiveColor,
487
+ "stroke-linecap": "round",
488
+ fill: "none",
489
+ class: _({ "vue-ui-tick-animated": F.value.animation.use && !C(E) && t <= U.value })
490
+ }, null, 10, Ne))), 256))])) : (y(), m("g", Pe, [(y(!0), m(_e, null, Ce(lt.value, (e, t) => (y(), m("line", {
491
+ x1: e.x1,
492
+ y1: e.y1,
493
+ x2: e.x2,
494
+ y2: e.y2,
495
+ "stroke-width": X.value.mark,
496
+ stroke: U.value >= t ? e.color : P.value.inactiveColor,
497
+ "stroke-linecap": "round"
498
+ }, null, 8, Fe))), 256))])),
499
+ F.value.percentage.show ? (y(), m("g", {
500
+ key: 3,
501
+ role: "status",
502
+ "aria-live": "polite",
503
+ "aria-label": C(I) ? "..." : `${St.value}`
504
+ }, [C(I) ? (y(), m("rect", {
505
+ key: 0,
506
+ x: ct.value.x,
507
+ y: ct.value.y,
508
+ width: 40,
509
+ height: Z.value.fontSize,
510
+ fill: "#6A6A6A80",
511
+ rx: 3
512
+ }, null, 8, Le)) : (y(), m("text", {
513
+ key: 1,
514
+ "aria-hidden": "true",
515
+ x: Z.value.x,
516
+ y: Z.value.y,
517
+ "font-size": Z.value.fontSize,
518
+ fill: P.value.ticks.gradient.show && F.value.percentage.useGradientColor ? C(n)(P.value.activeColor, U.value / 100 * (P.value.ticks.gradient.shiftHueIntensity / 100)) : F.value.percentage.color,
519
+ "font-weight": Z.value.bold ? "bold" : "normal",
520
+ "text-anchor": Z.value.textAnchor
521
+ }, S(St.value), 9, Re))], 8, Ie)) : p("", !0),
522
+ x(e.$slots, "svg", { svg: {
523
+ ...Y.value,
524
+ isPrintingImg: C(V) || C(H) || C(ht),
525
+ isPrintingSvg: C(gt)
526
+ } }, void 0, !0)
527
+ ], 14, Oe)),
528
+ e.$slots.watermark ? (y(), m("div", ze, [x(e.$slots, "watermark", v(g({ isPrinting: C(V) || C(H) || C(ht) || C(gt) })), void 0, !0)])) : p("", !0),
529
+ e.$slots.source ? (y(), m("div", {
530
+ key: 5,
531
+ ref_key: "source",
532
+ ref: Ye,
533
+ dir: "auto"
534
+ }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
535
+ x(e.$slots, "skeleton", {}, () => [C(I) ? (y(), f(ae, { key: 0 })) : p("", !0)], !0)
536
+ ], 46, De));
537
+ }
538
+ }, [["__scopeId", "data-v-5a0a85a9"]]);
539
+ //#endregion
540
+ export { Ee as n, T as t };