vue-data-ui 3.23.0 → 3.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-D6d8SCp9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/Slicer-CIk57nL4.js +1163 -0
  15. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  16. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  17. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  18. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  19. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/composables.js +1 -1
  91. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  92. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  93. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  94. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  95. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  96. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  97. package/dist/{package-BMc_ZieJ.js → package-KvlL5CqE.js} +1 -1
  98. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  99. package/dist/{render-common-Ktg2LZFG.js → render-common-oDYGTc5P.js} +2 -2
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +3 -0
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-D3scuR88.js} +7 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-Brg8mm5J.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  110. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  111. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  112. package/dist/utils.js +3 -3
  113. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-DGWDPCwC.js} +69 -69
  114. package/dist/vue-data-ui.js +74 -74
  115. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-C_Su9fve.js} +45 -45
  116. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-BxGriZik.js} +4 -4
  117. package/dist/{vue-ui-age-pyramid-CgnPWA93.js → vue-ui-age-pyramid-D4k1MkAL.js} +41 -40
  118. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-CCtnM8Rv.js} +41 -68
  119. package/dist/{vue-ui-bullet-Bc3-WaN1.js → vue-ui-bullet-DLZr2Uk8.js} +21 -21
  120. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-CcdzJZ9n.js} +32 -32
  121. package/dist/{vue-ui-candlestick-DvvsrIdp.js → vue-ui-candlestick-EEEt7ORC.js} +50 -48
  122. package/dist/{vue-ui-carousel-table-DtsNVim8.js → vue-ui-carousel-table-BicIpNAD.js} +8 -8
  123. package/dist/vue-ui-chestnut-BI7mC5dd.js +2068 -0
  124. package/dist/{vue-ui-chord-xX5gWZy8.js → vue-ui-chord-DXaq8ZMu.js} +46 -46
  125. package/dist/{vue-ui-circle-pack-D8wykmqg.js → vue-ui-circle-pack-XHJBMG51.js} +362 -341
  126. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-BqHr0n1Z.js} +4 -4
  127. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-jMLVoQkb.js} +715 -720
  128. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-DVAUFETR.js} +70 -70
  129. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Dy4gG6qm.js} +5 -5
  130. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-C0cWRLbU.js} +48 -47
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-CYpxGBhl.js} +18 -17
  132. package/dist/{vue-ui-donut-evolution-D6vH_hfx.js → vue-ui-donut-evolution-DwR47A2r.js} +58 -53
  133. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-DxVbRjKR.js} +85 -85
  134. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-DWaZF4FS.js} +37 -37
  135. package/dist/{vue-ui-funnel-CjYosIik.js → vue-ui-funnel-Bmpx5GHR.js} +24 -24
  136. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-CWBP9oH9.js} +151 -151
  137. package/dist/{vue-ui-gauge-CByT0_vF.js → vue-ui-gauge-ByE_txav.js} +20 -20
  138. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-ZA7CBy8f.js} +186 -186
  139. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-SQCou0bQ.js} +4 -4
  140. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-CHd9gs_p.js} +385 -385
  141. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  142. package/dist/{vue-ui-history-plot-BhcU94Pt.js → vue-ui-history-plot-BwnlC1mx.js} +511 -510
  143. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-BUar2HUH.js} +235 -235
  144. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-BF_9WWoo.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CvfukjXi.js} +3 -3
  146. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  147. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-_zpbmvJs.js} +50 -50
  148. package/dist/{vue-ui-nested-donuts-aS4YzaB3.js → vue-ui-nested-donuts-qHZAJ70u.js} +43 -43
  149. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  150. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-BUwt-apg.js} +54 -54
  151. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-CoROD3er.js} +74 -74
  152. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-BcH7eY4-.js} +96 -88
  153. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-DGbaXGme.js} +191 -191
  154. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-Bo3zD3yW.js} +3 -3
  155. package/dist/{vue-ui-relation-circle-FLs8vOxQ.js → vue-ui-relation-circle-DaU1eTsG.js} +32 -32
  156. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  157. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-BJUBn8_b.js} +40 -40
  158. package/dist/{vue-ui-scatter-CNA7jF-o.js → vue-ui-scatter-Pcft1bUt.js} +50 -50
  159. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-EeJcGbCo.js} +4 -4
  160. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-D0gibt5c.js} +3 -3
  161. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-BRoQ7JpQ.js} +11 -11
  162. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-DFp2k7-7.js} +4 -4
  163. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-D0Bq85Hs.js} +4 -4
  164. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-BPln7v63.js} +13 -13
  165. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-C6Q45Dqp.js} +7 -6
  166. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-CjK4bcQg.js} +5 -5
  167. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-Ca8EPf3e.js} +83 -80
  168. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Pz5WWlWT.js} +189 -186
  169. package/dist/{vue-ui-strip-plot-ACeYOoHj.js → vue-ui-strip-plot-Dw4MGDSO.js} +66 -66
  170. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  171. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-ljeYW8Wc.js} +10 -10
  172. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-iRFmtK5S.js} +8 -8
  173. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-D8uiOaeA.js} +26 -26
  174. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-CYw983oL.js} +6 -6
  175. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  176. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-h4VbnqPA.js} +77 -77
  177. package/dist/{vue-ui-waffle-iPpdk1Bm.js → vue-ui-waffle-cu0w_s6L.js} +41 -41
  178. package/dist/vue-ui-wheel-tLvJadk5.js +892 -0
  179. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-BjpGSsod.js} +68 -68
  180. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-B4fCS3jN.js} +184 -184
  181. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-7ZT9IRD8.js} +60 -60
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-BnLEwBpi.js} +20 -18
  183. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-gyNS0yH0.js} +329 -326
  184. package/package.json +4 -4
  185. package/dist/Slicer-5yIrdoJv.js +0 -1149
  186. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  187. package/dist/vue-ui-chestnut-ArloORzP.js +0 -2068
  188. package/dist/vue-ui-hill-D7LYAgAL.js +0 -1768
  189. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  190. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  191. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  192. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  193. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  194. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -0,0 +1,559 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Jt as t, Vt as n, X as r, b as i, i as a, jt as o, q as s, t as c, tt as l } from "./lib-Bttd6u5E.js";
3
+ import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
4
+ import { t as ne } from "./useConfig-D3scuR88.js";
5
+ import { t as re } from "./usePrinter-DN5bYhTG.js";
6
+ import { n as ie, t as ae } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as oe } from "./useSvgExport-DH-FfcqQ.js";
8
+ import { t as u } from "./useNestedProp-vPNvh7rV.js";
9
+ import { t as se } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as ce } from "./img-Bnokohej.js";
11
+ import { n as le } from "./Title-BE3qg9xl.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, nextTick as xe, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Se, openBlock as b, ref as x, renderList as Ce, renderSlot as S, toDisplayString as we, toRefs as Te, unref as C, watch as Ee, withCtx as w } from "vue";
19
+ //#region src/components/vue-ui-tiremarks.vue
20
+ var De = /* @__PURE__ */ e({ default: () => T }), Oe = ["id"], ke = [
21
+ "xmlns",
22
+ "viewBox",
23
+ "aria-labelledby",
24
+ "aria-describedby"
25
+ ], Ae = ["id"], je = ["id"], Me = ["width", "height"], Ne = { key: 1 }, Pe = [
26
+ "d",
27
+ "stroke-width",
28
+ "stroke"
29
+ ], Fe = { key: 2 }, Ie = [
30
+ "x1",
31
+ "y1",
32
+ "x2",
33
+ "y2",
34
+ "stroke-width",
35
+ "stroke"
36
+ ], Le = ["aria-label"], Re = [
37
+ "x",
38
+ "y",
39
+ "height"
40
+ ], ze = [
41
+ "x",
42
+ "y",
43
+ "font-size",
44
+ "fill",
45
+ "font-weight",
46
+ "text-anchor"
47
+ ], Be = {
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: De }) {
68
+ let T = h(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), Ve = h(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), He = h(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), { vue_ui_tiremarks: Ue } = ne(), { isThemeValid: We, warnInvalidTheme: Ge } = se(), E = he(), D = e, Ke = De, qe = d(() => !!D.dataset && Object.keys(D.dataset).length), O = x(s()), k = x(null), Je = x(null), Ye = x(null), Xe = x(null), Ze = x(0), Qe = x(0), A = x(null), j = x(null), M = x(!1), N = x(!1), P = x(z());
69
+ ee({
70
+ config: () => P.value,
71
+ dataset: () => D.dataset,
72
+ component: "VueUiTiremarks",
73
+ rules: [te.noHint]
74
+ });
75
+ let $e = d(() => P.value.userOptions.useCursorPointer), et = d(() => t({
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: P.value.skeletonConfig ?? {}
89
+ })), { loading: F, FINAL_DATASET: I } = ie({
90
+ ...Te(D),
91
+ FINAL_CONFIG: P,
92
+ prepareConfig: z,
93
+ skeletonDataset: D.config?.skeletonDataset ?? { percentage: 50 },
94
+ skeletonConfig: t({
95
+ defaultConfig: P.value,
96
+ userConfig: et.value
97
+ })
98
+ }), { userOptionsVisible: L, setUserOptionsVisibility: tt, keepUserOptionState: nt } = pe({ config: P.value }), { svgRef: R } = me({ config: P.value.style.chart.title });
99
+ function z() {
100
+ let e = u({
101
+ userConfig: D.config,
102
+ defaultConfig: Ue
103
+ }), t = e.theme;
104
+ if (!t) return e;
105
+ if (!We.value(e)) return Ge(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
+ Ee(() => D.config, (e) => {
116
+ P.value = z(), L.value = !P.value.userOptions.showOnChartHover, K.value = P.value.style.chart.width, q.value = P.value.style.chart.height, ct(), Qe.value += 1;
117
+ }, { deep: !0 });
118
+ let { isPrinting: B, isImaging: V, generatePdf: rt, generateImage: it } = re({
119
+ elementId: O.value,
120
+ fileName: P.value.style.chart.title.text || "vue-ui-tiremarks",
121
+ options: P.value.userOptions.print
122
+ }), at = d(() => P.value.userOptions.show && !P.value.style.chart.title.text), H = x(P.value.style.chart.animation.use && !E.value ? 0 : i(I.value.percentage));
123
+ Ee(() => I.value, (e) => {
124
+ P.value.style.chart.animation.use && !E.value ? ot(e.percentage) : H.value = e.percentage || 0;
125
+ }, { deep: !0 }), Se(() => {
126
+ ct();
127
+ });
128
+ function ot(e) {
129
+ let t = P.value.style.chart.animation.speed, n = Math.abs(e - H.value) / (t * 120);
130
+ function r() {
131
+ H.value < e ? H.value = Math.min(H.value + n, e) : H.value > e && (H.value = Math.max(H.value - n, e)), H.value !== e && requestAnimationFrame(r);
132
+ }
133
+ r();
134
+ }
135
+ let st = d(() => !!P.value.debug);
136
+ function ct() {
137
+ if (o(D.dataset) && l({
138
+ componentName: "VueUiTiremarks",
139
+ type: "dataset",
140
+ debug: st.value
141
+ }), P.value.responsive) {
142
+ let e = de(() => {
143
+ let { width: e, height: t } = fe({
144
+ chart: k.value,
145
+ title: P.value.style.chart.title.text ? Ye.value : null,
146
+ source: Xe.value
147
+ });
148
+ requestAnimationFrame(() => {
149
+ K.value = Math.max(.1, e), q.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
+ ot(I.value.percentage || 0);
155
+ }
156
+ let U = d(() => P.value.style.chart.layout.display === "vertical"), W = d(() => {
157
+ let e = P.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 U.value ? {
164
+ top: P.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
165
+ left: 3,
166
+ right: 3,
167
+ bottom: P.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
168
+ } : {
169
+ top: 0,
170
+ bottom: 0,
171
+ left: P.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 16,
172
+ right: P.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
173
+ };
174
+ }), G = d(() => Object.values(W.value).reduce((e, t) => e + t, 0)), K = x(P.value.style.chart.width), q = x(P.value.style.chart.height), J = d(() => ({
175
+ height: q.value,
176
+ width: K.value
177
+ })), lt = d(() => ({
178
+ horizontal: {
179
+ x: X.value.x + (P.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
180
+ y: J.value.height / 2 - X.value.fontSize / 2
181
+ },
182
+ vertical: {
183
+ x: J.value.width / 2 - 20,
184
+ y: X.value.y - X.value.fontSize / 2
185
+ }
186
+ })[P.value.style.chart.layout.display]), Y = d(() => U.value ? {
187
+ mark: (J.value.height - G.value) / 100 * .5,
188
+ space: (J.value.height - G.value) / 100 * .5
189
+ } : {
190
+ mark: (J.value.width - G.value) / 100 * .5,
191
+ space: (J.value.width - G.value) / 100 * .5
192
+ }), ut = d(() => {
193
+ let e = [];
194
+ for (let t = 0; t < 100; t += 1) {
195
+ let r = P.value.style.chart.layout.ticks.gradient.show ? n(P.value.style.chart.layout.activeColor, t / 100 * (P.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : P.value.style.chart.layout.activeColor;
196
+ if (U.value) {
197
+ let n = P.value.style.chart.layout.crescendo ? (100 - t) * (J.value.width - W.value.left - W.value.right) / 100 / 3 : 0, i = W.value.left + 4 + n, a = J.value.width - W.value.right - 4 - n, o = J.value.height - W.value.bottom - t * Y.value.mark - t * Y.value.space - Y.value.mark, s = J.value.height - W.value.bottom - t * Y.value.mark - t * Y.value.space - Y.value.mark, c = (a - i) / P.value.style.chart.layout.curveAngleX, l = P.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 = P.value.style.chart.layout.crescendo ? (100 - t) * (J.value.height - W.value.top - W.value.bottom) / 100 / 3 : 0, i = W.value.left + t * Y.value.mark + t * Y.value.space - Y.value.mark, a = i, o = W.value.top + 4 + n, s = J.value.height - W.value.bottom - 4 - n, c = P.value.style.chart.layout.curveAngleY * ((1 + t) / 100), l = (s - o) / P.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
+ }), X = d(() => {
220
+ let e, t, n, r = P.value.style.chart.percentage.fontSize / 3;
221
+ return U.value ? P.value.style.chart.percentage.verticalPosition === "top" ? (e = J.value.width / 2, t = W.value.top / 2, n = "middle") : P.value.style.chart.percentage.verticalPosition === "bottom" && (e = J.value.width / 2, t = J.value.height - W.value.bottom / 2 + r, n = "middle") : P.value.style.chart.percentage.horizontalPosition === "left" ? (e = 4, t = J.value.height / 2 + r, n = "start") : P.value.style.chart.percentage.horizontalPosition === "right" && (e = J.value.width - W.value.right + 8, t = J.value.height / 2 + r, n = "start"), {
222
+ x: e,
223
+ y: t,
224
+ textAnchor: n,
225
+ bold: P.value.style.chart.percentage.bold,
226
+ fontSize: P.value.style.chart.percentage.fontSize,
227
+ fill: P.value.style.chart.percentage.color
228
+ };
229
+ }), Z = x(!1);
230
+ function dt(e) {
231
+ Z.value = e, Ze.value += 1;
232
+ }
233
+ let Q = x(!1);
234
+ function $() {
235
+ Q.value = !Q.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: P.value.style.chart.title.text,
249
+ width: t,
250
+ height: n,
251
+ aspectRatio: r
252
+ };
253
+ }
254
+ let pt = d(() => P.value.style.chart.backgroundColor), mt = d(() => P.value.style.chart.title), { exportSvg: ht, getSvg: gt } = oe({
255
+ svg: R,
256
+ title: mt,
257
+ backgroundColor: pt
258
+ });
259
+ async function _t({ isCb: e }) {
260
+ N.value = !0, await xe();
261
+ try {
262
+ if (e) {
263
+ let { blob: e, url: t, text: n, dataUrl: r } = await gt();
264
+ await Promise.resolve(P.value.userOptions.callbacks.svg({
265
+ blob: e,
266
+ url: t,
267
+ text: n,
268
+ dataUrl: r
269
+ }));
270
+ } else await Promise.resolve(ht());
271
+ } finally {
272
+ N.value = !1;
273
+ }
274
+ }
275
+ function vt(e) {
276
+ if (e?.stage === "start") {
277
+ M.value = !0;
278
+ return;
279
+ }
280
+ if (e?.stage === "end") {
281
+ M.value = !1;
282
+ return;
283
+ }
284
+ it();
285
+ }
286
+ async function yt() {
287
+ if (Ke("copyAlt", {
288
+ config: P.value,
289
+ dataset: I.value
290
+ }), !P.value.userOptions.callbacks.altCopy) {
291
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
292
+ return;
293
+ }
294
+ await Promise.resolve(P.value.userOptions.callbacks.altCopy({
295
+ config: P.value,
296
+ dataset: I.value
297
+ }));
298
+ }
299
+ let bt = d(() => `${O.value}-title`), xt = d(() => `${O.value}-desc`), St = d(() => a(P.value.style.chart.percentage.formatter, H.value, r({
300
+ v: H.value,
301
+ s: "%",
302
+ r: P.value.style.chart.percentage.rounding
303
+ }))), Ct = d(() => P.value.style.chart.title.text || ""), wt = d(() => F.value ? "Loading data" : `Value: ${St.value}`);
304
+ return ue({
305
+ getImage: ft,
306
+ generatePdf: rt,
307
+ generateImage: it,
308
+ generateSvg: _t,
309
+ toggleAnnotator: $,
310
+ toggleFullscreen: dt,
311
+ copyAlt: yt
312
+ }), (e, t) => (b(), m("div", {
313
+ ref_key: "tiremarksChart",
314
+ ref: k,
315
+ class: _(`vue-data-ui-component vue-ui-tiremarks ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
316
+ style: y(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${P.value.style.chart.backgroundColor}`),
317
+ id: O.value,
318
+ onMouseenter: t[0] ||= () => C(tt)(!0),
319
+ onMouseleave: t[1] ||= () => C(tt)(!1)
320
+ }, [
321
+ P.value.userOptions.buttons.annotator ? (b(), f(C(T), {
322
+ key: 0,
323
+ svgRef: C(R),
324
+ backgroundColor: P.value.style.chart.backgroundColor,
325
+ color: P.value.style.chart.color,
326
+ active: Q.value,
327
+ isCursorPointer: $e.value,
328
+ onClose: $
329
+ }, {
330
+ "annotator-action-close": w(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
331
+ "annotator-action-color": w(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
332
+ "annotator-action-draw": w(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
333
+ "annotator-action-undo": w(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
334
+ "annotator-action-redo": w(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
335
+ "annotator-action-delete": w(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
336
+ _: 3
337
+ }, 8, [
338
+ "svgRef",
339
+ "backgroundColor",
340
+ "color",
341
+ "active",
342
+ "isCursorPointer"
343
+ ])) : p("", !0),
344
+ at.value ? (b(), m("div", {
345
+ key: 1,
346
+ ref_key: "noTitle",
347
+ ref: Je,
348
+ class: "vue-data-ui-no-title-space",
349
+ style: "height:36px; width: 100%;background:transparent"
350
+ }, null, 512)) : p("", !0),
351
+ P.value.style.chart.title.text ? (b(), m("div", {
352
+ key: 2,
353
+ ref_key: "chartTitle",
354
+ ref: Ye,
355
+ style: "width:100%;background:transparent;padding-bottom:12px"
356
+ }, [(b(), f(le, {
357
+ key: `title_${Qe.value}`,
358
+ config: {
359
+ title: {
360
+ cy: "wheel-title",
361
+ ...P.value.style.chart.title
362
+ },
363
+ subtitle: {
364
+ cy: "wheel-subtitle",
365
+ ...P.value.style.chart.title.subtitle
366
+ }
367
+ }
368
+ }, null, 8, ["config"]))], 512)) : p("", !0),
369
+ P.value.userOptions.show && qe.value && (C(nt) || C(L)) ? (b(), f(C(Ve), {
370
+ ref: "details",
371
+ key: `user_options_${Ze.value}`,
372
+ backgroundColor: P.value.style.chart.backgroundColor,
373
+ color: P.value.style.chart.color,
374
+ isPrinting: C(B),
375
+ isImaging: C(V),
376
+ uid: O.value,
377
+ hasPdf: P.value.userOptions.buttons.pdf,
378
+ hasImg: P.value.userOptions.buttons.img,
379
+ hasSvg: P.value.userOptions.buttons.svg,
380
+ hasFullscreen: P.value.userOptions.buttons.fullscreen,
381
+ hasAltCopy: P.value.userOptions.buttons.altCopy,
382
+ hasXls: !1,
383
+ isFullscreen: Z.value,
384
+ titles: { ...P.value.userOptions.buttonTitles },
385
+ chartElement: k.value,
386
+ position: P.value.userOptions.position,
387
+ hasAnnotator: P.value.userOptions.buttons.annotator,
388
+ isAnnotation: Q.value,
389
+ callbacks: P.value.userOptions.callbacks,
390
+ printScale: P.value.userOptions.print.scale,
391
+ isCursorPointer: $e.value,
392
+ onToggleFullscreen: dt,
393
+ onGeneratePdf: C(rt),
394
+ onGenerateImage: vt,
395
+ onGenerateSvg: _t,
396
+ onToggleAnnotator: $,
397
+ onCopyAlt: yt,
398
+ style: y({ visibility: C(nt) ? C(L) ? "visible" : "hidden" : "visible" })
399
+ }, ye({ _: 2 }, [
400
+ e.$slots.menuIcon ? {
401
+ name: "menuIcon",
402
+ fn: w(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
403
+ isOpen: t,
404
+ color: n
405
+ })), void 0, !0)]),
406
+ key: "0"
407
+ } : void 0,
408
+ e.$slots.optionPdf ? {
409
+ name: "optionPdf",
410
+ fn: w(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
411
+ key: "1"
412
+ } : void 0,
413
+ e.$slots.optionImg ? {
414
+ name: "optionImg",
415
+ fn: w(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
416
+ key: "2"
417
+ } : void 0,
418
+ e.$slots.optionSvg ? {
419
+ name: "optionSvg",
420
+ fn: w(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
421
+ key: "3"
422
+ } : void 0,
423
+ e.$slots.optionFullscreen ? {
424
+ name: "optionFullscreen",
425
+ fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
426
+ toggleFullscreen: t,
427
+ isFullscreen: n
428
+ })), void 0, !0)]),
429
+ key: "4"
430
+ } : void 0,
431
+ e.$slots.optionAnnotator ? {
432
+ name: "optionAnnotator",
433
+ fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
434
+ toggleAnnotator: t,
435
+ isAnnotator: n
436
+ })), void 0, !0)]),
437
+ key: "5"
438
+ } : void 0,
439
+ e.$slots.optionAltCopy ? {
440
+ name: "optionAltCopy",
441
+ fn: w(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
442
+ key: "6"
443
+ } : void 0,
444
+ e.$slots["custom-menu-before"] ? {
445
+ name: "custom-menu-before",
446
+ fn: w(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
447
+ key: "7"
448
+ } : void 0,
449
+ e.$slots["custom-menu-after"] ? {
450
+ name: "custom-menu-after",
451
+ fn: w(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
452
+ key: "8"
453
+ } : void 0
454
+ ]), 1032, [
455
+ "backgroundColor",
456
+ "color",
457
+ "isPrinting",
458
+ "isImaging",
459
+ "uid",
460
+ "hasPdf",
461
+ "hasImg",
462
+ "hasSvg",
463
+ "hasFullscreen",
464
+ "hasAltCopy",
465
+ "isFullscreen",
466
+ "titles",
467
+ "chartElement",
468
+ "position",
469
+ "hasAnnotator",
470
+ "isAnnotation",
471
+ "callbacks",
472
+ "printScale",
473
+ "isCursorPointer",
474
+ "onGeneratePdf",
475
+ "style"
476
+ ])) : p("", !0),
477
+ (b(), m("svg", {
478
+ ref_key: "svgRef",
479
+ ref: R,
480
+ xmlns: C(c),
481
+ class: _({
482
+ "vue-data-ui-fullscreen--on": Z.value,
483
+ "vue-data-ui-fulscreen--off": !Z.value
484
+ }),
485
+ viewBox: `0 0 ${K.value} ${q.value}`,
486
+ style: y(`max-width:100%; overflow: visible; background:transparent;color:${P.value.style.chart.color}`),
487
+ role: "img",
488
+ "aria-labelledby": bt.value,
489
+ "aria-describedby": xt.value
490
+ }, [
491
+ ve("title", { id: bt.value }, we(Ct.value), 9, Ae),
492
+ ve("desc", { id: xt.value }, we(wt.value), 9, je),
493
+ be(C(He)),
494
+ e.$slots["chart-background"] ? (b(), m("foreignObject", {
495
+ key: 0,
496
+ x: 0,
497
+ y: 0,
498
+ width: J.value.width,
499
+ height: J.value.height,
500
+ style: { pointerEvents: "none" }
501
+ }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Me)) : p("", !0),
502
+ P.value.style.chart.layout.curved ? (b(), m("g", Ne, [(b(!0), m(_e, null, Ce(ut.value, (e, t) => (b(), m("path", {
503
+ d: e.curve,
504
+ "stroke-width": Y.value.mark,
505
+ stroke: H.value >= t ? e.color : P.value.style.chart.layout.inactiveColor,
506
+ "stroke-linecap": "round",
507
+ fill: "none",
508
+ class: _({ "vue-ui-tick-animated": P.value.style.chart.animation.use && !C(E) && t <= H.value })
509
+ }, null, 10, Pe))), 256))])) : (b(), m("g", Fe, [(b(!0), m(_e, null, Ce(ut.value, (e, t) => (b(), m("line", {
510
+ x1: e.x1,
511
+ y1: e.y1,
512
+ x2: e.x2,
513
+ y2: e.y2,
514
+ "stroke-width": Y.value.mark,
515
+ stroke: H.value >= t ? e.color : P.value.style.chart.layout.inactiveColor,
516
+ "stroke-linecap": "round"
517
+ }, null, 8, Ie))), 256))])),
518
+ P.value.style.chart.percentage.show ? (b(), m("g", {
519
+ key: 3,
520
+ role: "status",
521
+ "aria-live": "polite",
522
+ "aria-label": C(F) ? "..." : `${St.value}`
523
+ }, [C(F) ? (b(), m("rect", {
524
+ key: 0,
525
+ x: lt.value.x,
526
+ y: lt.value.y,
527
+ width: 40,
528
+ height: X.value.fontSize,
529
+ fill: "#6A6A6A80",
530
+ rx: 3
531
+ }, null, 8, Re)) : (b(), m("text", {
532
+ key: 1,
533
+ "aria-hidden": "true",
534
+ x: X.value.x,
535
+ y: X.value.y,
536
+ "font-size": X.value.fontSize,
537
+ fill: P.value.style.chart.layout.ticks.gradient.show && P.value.style.chart.percentage.useGradientColor ? C(n)(P.value.style.chart.layout.activeColor, H.value / 100 * (P.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : P.value.style.chart.percentage.color,
538
+ "font-weight": X.value.bold ? "bold" : "normal",
539
+ "text-anchor": X.value.textAnchor
540
+ }, we(St.value), 9, ze))], 8, Le)) : p("", !0),
541
+ S(e.$slots, "svg", { svg: {
542
+ ...J.value,
543
+ isPrintingImg: C(B) || C(V) || M.value,
544
+ isPrintingSvg: N.value
545
+ } }, void 0, !0)
546
+ ], 14, ke)),
547
+ e.$slots.watermark ? (b(), m("div", Be, [S(e.$slots, "watermark", v(g({ isPrinting: C(B) || C(V) || M.value || N.value })), void 0, !0)])) : p("", !0),
548
+ e.$slots.source ? (b(), m("div", {
549
+ key: 5,
550
+ ref_key: "source",
551
+ ref: Xe,
552
+ dir: "auto"
553
+ }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
554
+ S(e.$slots, "skeleton", {}, () => [C(F) ? (b(), f(ae, { key: 0 })) : p("", !0)], !0)
555
+ ], 46, Oe));
556
+ }
557
+ }, [["__scopeId", "data-v-7f57d45c"]]);
558
+ //#endregion
559
+ export { De as n, T as t };