vue-data-ui 3.25.4 → 3.25.6

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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.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-ur6jKRL5.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 };