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
@@ -1,540 +0,0 @@
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-C_mX5pOZ.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 y, onMounted as xe, openBlock as b, ref as x, renderList as Se, renderSlot as S, toDisplayString as C, toRefs as Ce, unref as w, watch as we, withCtx as T } from "vue";
19
- //#region src/components/vue-ui-tiremarks.vue
20
- var Te = /* @__PURE__ */ e({ default: () => E }), Ee = ["id"], De = [
21
- "xmlns",
22
- "viewBox",
23
- "aria-labelledby",
24
- "aria-describedby"
25
- ], Oe = ["id"], ke = ["id"], Ae = ["width", "height"], je = { key: 1 }, Me = [
26
- "d",
27
- "stroke-width",
28
- "stroke"
29
- ], Ne = { key: 2 }, Pe = [
30
- "x1",
31
- "y1",
32
- "x2",
33
- "y2",
34
- "stroke-width",
35
- "stroke"
36
- ], Fe = ["aria-label"], Ie = [
37
- "x",
38
- "y",
39
- "height"
40
- ], Le = [
41
- "x",
42
- "y",
43
- "font-size",
44
- "fill",
45
- "font-weight",
46
- "text-anchor"
47
- ], Re = {
48
- key: 4,
49
- class: "vue-data-ui-watermark"
50
- }, E = /*#__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: Te }) {
68
- let E = h(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), ze = h(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Be = h(() => import("./PackageVersion-M2Ws-VwJ.js").then((e) => e.t)), { vue_ui_tiremarks: Ve } = ne(), { isThemeValid: He, warnInvalidTheme: Ue } = oe(), D = he(), O = e, We = Te, Ge = d(() => !!O.dataset && Object.keys(O.dataset).length), k = x(c()), A = x(null), Ke = x(null), qe = x(null), Je = x(null), Ye = x(0), Xe = x(0), j = x(null), M = x(null), N = x(R());
69
- ee({
70
- config: () => N.value,
71
- dataset: () => O.dataset,
72
- component: "VueUiTiremarks",
73
- rules: [te.noHint]
74
- });
75
- let Ze = d(() => N.value.userOptions.useCursorPointer), Qe = 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: N.value.skeletonConfig ?? {}
89
- })), { loading: P, FINAL_DATASET: F } = ie({
90
- ...Ce(O),
91
- FINAL_CONFIG: N,
92
- prepareConfig: R,
93
- skeletonDataset: O.config?.skeletonDataset ?? { percentage: 50 },
94
- skeletonConfig: i({
95
- defaultConfig: N.value,
96
- userConfig: Qe.value
97
- })
98
- }), { userOptionsVisible: I, setUserOptionsVisibility: $e, keepUserOptionState: et } = pe({ config: N.value }), { svgRef: L } = me({ config: N.value.style.chart.title });
99
- function R() {
100
- let e = u({
101
- userConfig: O.config,
102
- defaultConfig: Ve
103
- }), t = e.theme;
104
- if (!t) return e;
105
- if (!He.value(e)) return Ue(e), e;
106
- let n = u({
107
- userConfig: ge[t] || O.config,
108
- defaultConfig: e
109
- });
110
- return u({
111
- userConfig: O.config,
112
- defaultConfig: n
113
- });
114
- }
115
- we(() => O.config, (e) => {
116
- N.value = R(), I.value = !N.value.userOptions.showOnChartHover, G.value = N.value.style.chart.width, K.value = N.value.style.chart.height, ot(), Xe.value += 1;
117
- }, { deep: !0 });
118
- let { isPrinting: z, isImaging: B, generatePdf: tt, generateImage: nt } = re({
119
- elementId: k.value,
120
- fileName: N.value.style.chart.title.text || "vue-ui-tiremarks",
121
- options: N.value.userOptions.print
122
- }), rt = d(() => N.value.userOptions.show && !N.value.style.chart.title.text), V = x(N.value.style.chart.animation.use && !D.value ? 0 : a(F.value.percentage));
123
- we(() => F.value, (e) => {
124
- N.value.style.chart.animation.use && !D.value ? it(e.percentage) : V.value = e.percentage || 0;
125
- }, { deep: !0 }), xe(() => {
126
- ot();
127
- });
128
- function it(e) {
129
- let t = N.value.style.chart.animation.speed, n = Math.abs(e - V.value) / (t * 120);
130
- function r() {
131
- V.value < e ? V.value = Math.min(V.value + n, e) : V.value > e && (V.value = Math.max(V.value - n, e)), V.value !== e && requestAnimationFrame(r);
132
- }
133
- r();
134
- }
135
- let at = d(() => N.value.debug);
136
- function ot() {
137
- if (t(O.dataset) && s({
138
- componentName: "VueUiTiremarks",
139
- type: "dataset",
140
- debug: at.value
141
- }), N.value.responsive) {
142
- let e = de(() => {
143
- let { width: e, height: t } = fe({
144
- chart: A.value,
145
- title: N.value.style.chart.title.text ? qe.value : null,
146
- source: Je.value
147
- });
148
- requestAnimationFrame(() => {
149
- G.value = Math.max(.1, e), K.value = Math.max(.1, t - 12);
150
- });
151
- });
152
- j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(e), M.value = A.value.parentNode, j.value.observe(M.value);
153
- }
154
- it(F.value.percentage || 0);
155
- }
156
- let H = d(() => N.value.style.chart.layout.display === "vertical"), U = d(() => {
157
- let e = N.value.style.chart.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 H.value ? {
164
- top: N.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
165
- left: 3,
166
- right: 3,
167
- bottom: N.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
168
- } : {
169
- top: 0,
170
- bottom: 0,
171
- left: N.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 16,
172
- right: N.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
173
- };
174
- }), W = d(() => Object.values(U.value).reduce((e, t) => e + t, 0)), G = x(N.value.style.chart.width), K = x(N.value.style.chart.height), q = d(() => ({
175
- height: K.value,
176
- width: G.value
177
- })), st = d(() => ({
178
- horizontal: {
179
- x: Y.value.x + (N.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
180
- y: q.value.height / 2 - Y.value.fontSize / 2
181
- },
182
- vertical: {
183
- x: q.value.width / 2 - 20,
184
- y: Y.value.y - Y.value.fontSize / 2
185
- }
186
- })[N.value.style.chart.layout.display]), J = d(() => H.value ? {
187
- mark: (q.value.height - W.value) / 100 * .5,
188
- space: (q.value.height - W.value) / 100 * .5
189
- } : {
190
- mark: (q.value.width - W.value) / 100 * .5,
191
- space: (q.value.width - W.value) / 100 * .5
192
- }), ct = d(() => {
193
- let e = [];
194
- for (let t = 0; t < 100; t += 1) {
195
- let r = N.value.style.chart.layout.ticks.gradient.show ? n(N.value.style.chart.layout.activeColor, t / 100 * (N.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : N.value.style.chart.layout.activeColor;
196
- if (H.value) {
197
- let n = N.value.style.chart.layout.crescendo ? (100 - t) * (q.value.width - U.value.left - U.value.right) / 100 / 3 : 0, i = U.value.left + 4 + n, a = q.value.width - U.value.right - 4 - n, o = q.value.height - U.value.bottom - t * J.value.mark - t * J.value.space - J.value.mark, s = q.value.height - U.value.bottom - t * J.value.mark - t * J.value.space - J.value.mark, c = (a - i) / N.value.style.chart.layout.curveAngleX, l = N.value.style.chart.layout.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 = N.value.style.chart.layout.crescendo ? (100 - t) * (q.value.height - U.value.top - U.value.bottom) / 100 / 3 : 0, i = U.value.left + t * J.value.mark + t * J.value.space - J.value.mark, a = i, o = U.value.top + 4 + n, s = q.value.height - U.value.bottom - 4 - n, c = N.value.style.chart.layout.curveAngleY * ((1 + t) / 100), l = (s - o) / N.value.style.chart.layout.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
- }), Y = d(() => {
220
- let e, t, n, r = N.value.style.chart.percentage.fontSize / 3;
221
- return H.value ? N.value.style.chart.percentage.verticalPosition === "top" ? (e = q.value.width / 2, t = U.value.top / 2, n = "middle") : N.value.style.chart.percentage.verticalPosition === "bottom" && (e = q.value.width / 2, t = q.value.height - U.value.bottom / 2 + r, n = "middle") : N.value.style.chart.percentage.horizontalPosition === "left" ? (e = 4, t = q.value.height / 2 + r, n = "start") : N.value.style.chart.percentage.horizontalPosition === "right" && (e = q.value.width - U.value.right + 8, t = q.value.height / 2 + r, n = "start"), {
222
- x: e,
223
- y: t,
224
- textAnchor: n,
225
- bold: N.value.style.chart.percentage.bold,
226
- fontSize: N.value.style.chart.percentage.fontSize,
227
- fill: N.value.style.chart.percentage.color
228
- };
229
- }), X = x(!1);
230
- function lt(e) {
231
- X.value = e, Ye.value += 1;
232
- }
233
- let Z = x(!1);
234
- function Q() {
235
- Z.value = !Z.value;
236
- }
237
- async function ut({ scale: e = 2 } = {}) {
238
- if (!A.value) return;
239
- let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ce({
240
- domElement: A.value,
241
- base64: !0,
242
- img: !0,
243
- scale: e
244
- });
245
- return {
246
- imageUri: i,
247
- base64: a,
248
- title: N.value.style.chart.title.text,
249
- width: t,
250
- height: n,
251
- aspectRatio: r
252
- };
253
- }
254
- let dt = d(() => N.value.style.chart.backgroundColor), ft = d(() => N.value.style.chart.title), { isCallbackImaging: pt, isCallbackSvg: mt, generateSvg: ht, onGenerateImage: gt } = se({
255
- svg: L,
256
- title: ft,
257
- legend: null,
258
- legendItems: null,
259
- backgroundColor: dt,
260
- getSvgCallback: () => N.value.userOptions.callbacks.svg,
261
- generateImage: nt
262
- });
263
- async function _t() {
264
- if (We("copyAlt", {
265
- config: N.value,
266
- dataset: F.value
267
- }), !N.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(N.value.userOptions.callbacks.altCopy({
272
- config: N.value,
273
- dataset: F.value
274
- }));
275
- }
276
- let vt = d(() => `${k.value}-title`), yt = d(() => `${k.value}-desc`), $ = d(() => o(N.value.style.chart.percentage.formatter, V.value, r({
277
- v: V.value,
278
- s: "%",
279
- r: N.value.style.chart.percentage.rounding
280
- }))), bt = d(() => N.value.style.chart.title.text || ""), xt = d(() => P.value ? "Loading data" : `Value: ${$.value}`);
281
- return ue({
282
- getImage: ut,
283
- generatePdf: tt,
284
- generateImage: nt,
285
- generateSvg: ht,
286
- toggleAnnotator: Q,
287
- toggleFullscreen: lt,
288
- copyAlt: _t
289
- }), (e, t) => (b(), m("div", {
290
- ref_key: "tiremarksChart",
291
- ref: A,
292
- class: _(`vue-data-ui-component vue-ui-tiremarks ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
293
- style: y(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor}`),
294
- id: k.value,
295
- onMouseenter: t[0] ||= () => w($e)(!0),
296
- onMouseleave: t[1] ||= () => w($e)(!1)
297
- }, [
298
- N.value.userOptions.buttons.annotator ? (b(), f(w(E), {
299
- key: 0,
300
- svgRef: w(L),
301
- backgroundColor: N.value.style.chart.backgroundColor,
302
- color: N.value.style.chart.color,
303
- active: Z.value,
304
- isCursorPointer: Ze.value,
305
- palette: N.value.userOptions.annotatorPalette,
306
- onClose: Q
307
- }, {
308
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
309
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
310
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
311
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
312
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
313
- "annotator-action-delete": T(({ disabled: t }) => [S(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
- rt.value ? (b(), m("div", {
324
- key: 1,
325
- ref_key: "noTitle",
326
- ref: Ke,
327
- class: "vue-data-ui-no-title-space",
328
- style: "height:36px; width: 100%;background:transparent"
329
- }, null, 512)) : p("", !0),
330
- N.value.style.chart.title.text ? (b(), m("div", {
331
- key: 2,
332
- ref_key: "chartTitle",
333
- ref: qe,
334
- style: "width:100%;background:transparent;padding-bottom:12px"
335
- }, [(b(), f(le, {
336
- key: `title_${Xe.value}`,
337
- config: {
338
- title: {
339
- cy: "wheel-title",
340
- ...N.value.style.chart.title
341
- },
342
- subtitle: {
343
- cy: "wheel-subtitle",
344
- ...N.value.style.chart.title.subtitle
345
- }
346
- }
347
- }, null, 8, ["config"]))], 512)) : p("", !0),
348
- N.value.userOptions.show && Ge.value && (w(et) || w(I)) ? (b(), f(w(ze), {
349
- ref: "details",
350
- key: `user_options_${Ye.value}`,
351
- backgroundColor: N.value.style.chart.backgroundColor,
352
- color: N.value.style.chart.color,
353
- isPrinting: w(z),
354
- isImaging: w(B),
355
- uid: k.value,
356
- hasPdf: N.value.userOptions.buttons.pdf,
357
- hasImg: N.value.userOptions.buttons.img,
358
- hasSvg: N.value.userOptions.buttons.svg,
359
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
360
- hasAltCopy: N.value.userOptions.buttons.altCopy,
361
- hasXls: !1,
362
- isFullscreen: X.value,
363
- titles: { ...N.value.userOptions.buttonTitles },
364
- chartElement: A.value,
365
- position: N.value.userOptions.position,
366
- hasAnnotator: N.value.userOptions.buttons.annotator,
367
- isAnnotation: Z.value,
368
- callbacks: N.value.userOptions.callbacks,
369
- printScale: N.value.userOptions.print.scale,
370
- isCursorPointer: Ze.value,
371
- onToggleFullscreen: lt,
372
- onGeneratePdf: w(tt),
373
- onGenerateImage: w(gt),
374
- onGenerateSvg: w(ht),
375
- onToggleAnnotator: Q,
376
- onCopyAlt: _t,
377
- style: y({ visibility: w(et) ? w(I) ? "visible" : "hidden" : "visible" })
378
- }, ye({ _: 2 }, [
379
- e.$slots.menuIcon ? {
380
- name: "menuIcon",
381
- fn: T(({ isOpen: t, color: n }) => [S(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: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
390
- key: "1"
391
- } : void 0,
392
- e.$slots.optionImg ? {
393
- name: "optionImg",
394
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
395
- key: "2"
396
- } : void 0,
397
- e.$slots.optionSvg ? {
398
- name: "optionSvg",
399
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
400
- key: "3"
401
- } : void 0,
402
- e.$slots.optionFullscreen ? {
403
- name: "optionFullscreen",
404
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(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: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(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: T(({ altCopy: t }) => [S(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: T(() => [S(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: T(() => [S(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
- (b(), m("svg", {
459
- ref_key: "svgRef",
460
- ref: L,
461
- xmlns: w(l),
462
- class: _({
463
- "vue-data-ui-fullscreen--on": X.value,
464
- "vue-data-ui-fulscreen--off": !X.value
465
- }),
466
- viewBox: `0 0 ${G.value} ${K.value}`,
467
- style: y(`max-width:100%; overflow: visible; background:transparent;color:${N.value.style.chart.color}`),
468
- role: "img",
469
- "aria-labelledby": vt.value,
470
- "aria-describedby": yt.value
471
- }, [
472
- ve("title", { id: vt.value }, C(bt.value), 9, Oe),
473
- ve("desc", { id: yt.value }, C(xt.value), 9, ke),
474
- be(w(Be)),
475
- e.$slots["chart-background"] ? (b(), m("foreignObject", {
476
- key: 0,
477
- x: 0,
478
- y: 0,
479
- width: q.value.width,
480
- height: q.value.height,
481
- style: { pointerEvents: "none" }
482
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ae)) : p("", !0),
483
- N.value.style.chart.layout.curved ? (b(), m("g", je, [(b(!0), m(_e, null, Se(ct.value, (e, t) => (b(), m("path", {
484
- d: e.curve,
485
- "stroke-width": J.value.mark,
486
- stroke: V.value >= t ? e.color : N.value.style.chart.layout.inactiveColor,
487
- "stroke-linecap": "round",
488
- fill: "none",
489
- class: _({ "vue-ui-tick-animated": N.value.style.chart.animation.use && !w(D) && t <= V.value })
490
- }, null, 10, Me))), 256))])) : (b(), m("g", Ne, [(b(!0), m(_e, null, Se(ct.value, (e, t) => (b(), m("line", {
491
- x1: e.x1,
492
- y1: e.y1,
493
- x2: e.x2,
494
- y2: e.y2,
495
- "stroke-width": J.value.mark,
496
- stroke: V.value >= t ? e.color : N.value.style.chart.layout.inactiveColor,
497
- "stroke-linecap": "round"
498
- }, null, 8, Pe))), 256))])),
499
- N.value.style.chart.percentage.show ? (b(), m("g", {
500
- key: 3,
501
- role: "status",
502
- "aria-live": "polite",
503
- "aria-label": w(P) ? "..." : `${$.value}`
504
- }, [w(P) ? (b(), m("rect", {
505
- key: 0,
506
- x: st.value.x,
507
- y: st.value.y,
508
- width: 40,
509
- height: Y.value.fontSize,
510
- fill: "#6A6A6A80",
511
- rx: 3
512
- }, null, 8, Ie)) : (b(), m("text", {
513
- key: 1,
514
- "aria-hidden": "true",
515
- x: Y.value.x,
516
- y: Y.value.y,
517
- "font-size": Y.value.fontSize,
518
- fill: N.value.style.chart.layout.ticks.gradient.show && N.value.style.chart.percentage.useGradientColor ? w(n)(N.value.style.chart.layout.activeColor, V.value / 100 * (N.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : N.value.style.chart.percentage.color,
519
- "font-weight": Y.value.bold ? "bold" : "normal",
520
- "text-anchor": Y.value.textAnchor
521
- }, C($.value), 9, Le))], 8, Fe)) : p("", !0),
522
- S(e.$slots, "svg", { svg: {
523
- ...q.value,
524
- isPrintingImg: w(z) || w(B) || w(pt),
525
- isPrintingSvg: w(mt)
526
- } }, void 0, !0)
527
- ], 14, De)),
528
- e.$slots.watermark ? (b(), m("div", Re, [S(e.$slots, "watermark", v(g({ isPrinting: w(z) || w(B) || w(pt) || w(mt) })), void 0, !0)])) : p("", !0),
529
- e.$slots.source ? (b(), m("div", {
530
- key: 5,
531
- ref_key: "source",
532
- ref: Je,
533
- dir: "auto"
534
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
535
- S(e.$slots, "skeleton", {}, () => [w(P) ? (b(), f(ae, { key: 0 })) : p("", !0)], !0)
536
- ], 46, Ee));
537
- }
538
- }, [["__scopeId", "data-v-906b1b95"]]);
539
- //#endregion
540
- export { Te as n, E as t };