vue-data-ui 3.22.14 → 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 (229) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
  4. package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  5. package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
  6. package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  7. package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  8. package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
  9. package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
  10. package/dist/HillActions-BD9j_sOU.js +187 -0
  11. package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
  13. package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
  14. package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
  15. package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
  16. package/dist/Slicer-CIk57nL4.js +1163 -0
  17. package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
  18. package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
  19. package/dist/Title-BE3qg9xl.js +87 -0
  20. package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
  21. package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/composables.js +1 -1
  93. package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
  94. package/dist/exposedLib-C0DPCgFj.js +28 -0
  95. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  96. package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
  97. package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
  98. package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
  99. package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
  100. package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
  101. package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
  102. package/dist/ssr/vue-ui-donut.js +1 -1
  103. package/dist/ssr/vue-ui-xy.js +1 -1
  104. package/dist/ssr.js +2 -2
  105. package/dist/style.css +1 -1
  106. package/dist/types/vue-data-ui.d.ts +496 -0
  107. package/dist/types/vue-ui-hill.d.ts +90 -0
  108. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  109. package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
  110. package/dist/useHints-Dq_w2E8B.js +66 -0
  111. package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
  112. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
  113. package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
  114. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  115. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  116. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  117. package/dist/useTransitions-g_zBREk2.js +39 -0
  118. package/dist/utils.js +14 -14
  119. package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
  120. package/dist/vue-data-ui.js +77 -76
  121. package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
  122. package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
  123. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
  124. package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
  125. package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
  126. package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
  127. package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
  128. package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
  129. package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
  130. package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
  131. package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
  132. package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
  133. package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
  134. package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
  135. package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
  136. package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
  137. package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
  138. package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
  139. package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
  140. package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
  141. package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
  142. package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
  143. package/dist/vue-ui-gauge-ByE_txav.js +953 -0
  144. package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
  145. package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
  146. package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
  147. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  148. package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
  149. package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
  150. package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
  151. package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
  152. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  153. package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
  154. package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
  155. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  156. package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
  157. package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
  158. package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
  159. package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
  160. package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
  161. package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
  162. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  163. package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
  164. package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
  165. package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
  166. package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
  167. package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
  168. package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
  169. package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
  170. package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
  171. package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
  172. package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
  173. package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
  174. package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
  175. package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
  176. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  177. package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
  178. package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
  179. package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
  180. package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
  181. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  182. package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
  183. package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
  184. package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
  185. package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
  186. package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
  187. package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
  188. package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
  189. package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
  190. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  191. package/package.json +4 -4
  192. package/dist/Slicer-JdCzBeYM.js +0 -1149
  193. package/dist/Title-Thf71-8D.js +0 -87
  194. package/dist/exposedLib-CfZhN94x.js +0 -25
  195. package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
  196. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  197. package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
  198. package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
  199. package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
  200. package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
  201. package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
  202. package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
  203. package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
  204. package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
  205. package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
  206. package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
  207. package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
  208. package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
  209. package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
  210. package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
  211. package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
  212. package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
  213. package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
  214. package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
  215. package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
  216. package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
  217. package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
  218. package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
  219. package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
  220. package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
  221. package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
  222. package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
  223. package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
  224. package/dist/vue-ui-table-DEhy61ln.js +0 -1339
  225. package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
  226. package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
  227. package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
  228. package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
  229. package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
@@ -1,551 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, Bt as n, K as r, Y as i, et as a, i as o, qt as s, t as c, y as l } from "./lib-C-QGo8GG.js";
3
- import { t as ee } from "./useConfig-C0V0eG7L.js";
4
- import { t as te } from "./usePrinter-C5ordS-4.js";
5
- import { n as ne, t as re } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as ie } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as u } from "./useNestedProp-BYfiWVP8.js";
8
- import { t as ae } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as oe } from "./img-zY7_pJz1.js";
10
- import { n as se } from "./Title-Thf71-8D.js";
11
- import { t as ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as le, t as ue } from "./useResponsive-ZtArZtUf.js";
13
- import { t as de } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as pe } from "./usePrefersMotion-BC-CsqR1.js";
16
- import { t as me } from "./vue_ui_tiremarks-CdEPieWV.js";
17
- import { Fragment as he, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ge, createSlots as _e, createVNode as ve, defineAsyncComponent as h, guardReactiveProps as g, nextTick as ye, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as be, openBlock as b, ref as x, renderList as xe, renderSlot as S, toDisplayString as C, toRefs as Se, unref as w, watch as Ce, withCtx as T } from "vue";
18
- //#region src/components/vue-ui-tiremarks.vue
19
- var we = /* @__PURE__ */ e({ default: () => E }), Te = ["id"], Ee = [
20
- "xmlns",
21
- "viewBox",
22
- "aria-labelledby",
23
- "aria-describedby"
24
- ], De = ["id"], Oe = ["id"], ke = ["width", "height"], Ae = { key: 1 }, je = [
25
- "d",
26
- "stroke-width",
27
- "stroke"
28
- ], Me = { key: 2 }, Ne = [
29
- "x1",
30
- "y1",
31
- "x2",
32
- "y2",
33
- "stroke-width",
34
- "stroke"
35
- ], Pe = ["aria-label"], Fe = [
36
- "x",
37
- "y",
38
- "height"
39
- ], Ie = [
40
- "x",
41
- "y",
42
- "font-size",
43
- "fill",
44
- "font-weight",
45
- "text-anchor"
46
- ], Le = {
47
- key: 4,
48
- class: "vue-data-ui-watermark"
49
- }, E = /*#__PURE__*/ ce({
50
- __name: "vue-ui-tiremarks",
51
- props: {
52
- config: {
53
- type: Object,
54
- default() {
55
- return {};
56
- }
57
- },
58
- dataset: {
59
- type: Object,
60
- default() {
61
- return {};
62
- }
63
- }
64
- },
65
- emits: ["copyAlt"],
66
- setup(e, { expose: ce, emit: we }) {
67
- let E = h(() => import("./PenAndPaper-D--sbRMA.js").then((e) => e.t)), Re = h(() => import("./UserOptions-BknvMNU1.js").then((e) => e.n)), ze = h(() => import("./PackageVersion-BUmadjVO.js").then((e) => e.t)), { vue_ui_tiremarks: Be } = ee(), { isThemeValid: Ve, warnInvalidTheme: He } = ae(), D = pe(), O = e, Ue = we, We = d(() => !!O.dataset && Object.keys(O.dataset).length), k = x(r()), A = x(null), Ge = x(null), Ke = x(null), qe = x(null), Je = x(0), Ye = x(0), j = x(null), M = x(null), N = x(!1), P = x(!1), F = x(B()), Xe = d(() => F.value.userOptions.useCursorPointer), Ze = d(() => s({
68
- defaultConfig: {
69
- userOptions: { show: !1 },
70
- style: { chart: {
71
- backgroundColor: "#99999930",
72
- animation: { use: !1 },
73
- layout: {
74
- activeColor: "#6A6A6A80",
75
- inactiveColor: "#CACACA80",
76
- ticks: { gradient: { show: !1 } }
77
- }
78
- } }
79
- },
80
- userConfig: F.value.skeletonConfig ?? {}
81
- })), { loading: I, FINAL_DATASET: L } = ne({
82
- ...Se(O),
83
- FINAL_CONFIG: F,
84
- prepareConfig: B,
85
- skeletonDataset: O.config?.skeletonDataset ?? { percentage: 50 },
86
- skeletonConfig: s({
87
- defaultConfig: F.value,
88
- userConfig: Ze.value
89
- })
90
- }), { userOptionsVisible: R, setUserOptionsVisibility: Qe, keepUserOptionState: $e } = de({ config: F.value }), { svgRef: z } = fe({ config: F.value.style.chart.title });
91
- function B() {
92
- let e = u({
93
- userConfig: O.config,
94
- defaultConfig: Be
95
- }), t = e.theme;
96
- if (!t) return e;
97
- if (!Ve.value(e)) return He(e), e;
98
- let n = u({
99
- userConfig: me[t] || O.config,
100
- defaultConfig: e
101
- });
102
- return u({
103
- userConfig: O.config,
104
- defaultConfig: n
105
- });
106
- }
107
- Ce(() => O.config, (e) => {
108
- F.value = B(), R.value = !F.value.userOptions.showOnChartHover, q.value = F.value.style.chart.width, J.value = F.value.style.chart.height, at(), Ye.value += 1;
109
- }, { deep: !0 });
110
- let { isPrinting: V, isImaging: H, generatePdf: et, generateImage: tt } = te({
111
- elementId: k.value,
112
- fileName: F.value.style.chart.title.text || "vue-ui-tiremarks",
113
- options: F.value.userOptions.print
114
- }), nt = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), U = x(F.value.style.chart.animation.use && !D.value ? 0 : l(L.value.percentage));
115
- Ce(() => L.value, (e) => {
116
- F.value.style.chart.animation.use && !D.value ? rt(e.percentage) : U.value = e.percentage || 0;
117
- }, { deep: !0 }), be(() => {
118
- at();
119
- });
120
- function rt(e) {
121
- let t = F.value.style.chart.animation.speed, n = Math.abs(e - U.value) / (t * 120);
122
- function r() {
123
- 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);
124
- }
125
- r();
126
- }
127
- let it = d(() => !!F.value.debug);
128
- function at() {
129
- if (t(O.dataset) && a({
130
- componentName: "VueUiTiremarks",
131
- type: "dataset",
132
- debug: it.value
133
- }), F.value.responsive) {
134
- let e = le(() => {
135
- let { width: e, height: t } = ue({
136
- chart: A.value,
137
- title: F.value.style.chart.title.text ? Ke.value : null,
138
- source: qe.value
139
- });
140
- requestAnimationFrame(() => {
141
- q.value = Math.max(.1, e), J.value = Math.max(.1, t - 12);
142
- });
143
- });
144
- 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);
145
- }
146
- rt(L.value.percentage || 0);
147
- }
148
- let W = d(() => F.value.style.chart.layout.display === "vertical"), G = d(() => {
149
- let e = F.value.style.chart.percentage.show, t = {
150
- top: e ? 48 : 12,
151
- left: e ? 64 : 16,
152
- right: e ? 64 : 16,
153
- bottom: e ? 48 : 12
154
- };
155
- return W.value ? {
156
- top: F.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
157
- left: 3,
158
- right: 3,
159
- bottom: F.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
160
- } : {
161
- top: 0,
162
- bottom: 0,
163
- left: F.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 16,
164
- right: F.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
165
- };
166
- }), K = d(() => Object.values(G.value).reduce((e, t) => e + t, 0)), q = x(F.value.style.chart.width), J = x(F.value.style.chart.height), Y = d(() => ({
167
- height: J.value,
168
- width: q.value
169
- })), ot = d(() => ({
170
- horizontal: {
171
- x: Z.value.x + (F.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
172
- y: Y.value.height / 2 - Z.value.fontSize / 2
173
- },
174
- vertical: {
175
- x: Y.value.width / 2 - 20,
176
- y: Z.value.y - Z.value.fontSize / 2
177
- }
178
- })[F.value.style.chart.layout.display]), X = d(() => W.value ? {
179
- mark: (Y.value.height - K.value) / 100 * .5,
180
- space: (Y.value.height - K.value) / 100 * .5
181
- } : {
182
- mark: (Y.value.width - K.value) / 100 * .5,
183
- space: (Y.value.width - K.value) / 100 * .5
184
- }), st = d(() => {
185
- let e = [];
186
- for (let t = 0; t < 100; t += 1) {
187
- let r = F.value.style.chart.layout.ticks.gradient.show ? n(F.value.style.chart.layout.activeColor, t / 100 * (F.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : F.value.style.chart.layout.activeColor;
188
- if (W.value) {
189
- let n = F.value.style.chart.layout.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) / F.value.style.chart.layout.curveAngleX, l = F.value.style.chart.layout.curveAngleY * ((1 + t) / 100);
190
- e.push({
191
- x1: i,
192
- x2: a,
193
- y1: o,
194
- y2: s,
195
- curve: `M ${i} ${o} C ${i + c} ${o - l}, ${a - c} ${s - l}, ${a} ${s}`,
196
- color: r
197
- });
198
- } else {
199
- let n = F.value.style.chart.layout.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 = F.value.style.chart.layout.curveAngleY * ((1 + t) / 100), l = (s - o) / F.value.style.chart.layout.curveAngleX;
200
- e.push({
201
- x1: i,
202
- x2: a,
203
- y1: o,
204
- y2: s,
205
- curve: `M ${i} ${o} C ${i + c} ${o + l}, ${a + c} ${s - l}, ${a} ${s}`,
206
- color: r
207
- });
208
- }
209
- }
210
- return e;
211
- }), Z = d(() => {
212
- let e, t, n, r = F.value.style.chart.percentage.fontSize / 3;
213
- return W.value ? F.value.style.chart.percentage.verticalPosition === "top" ? (e = Y.value.width / 2, t = G.value.top / 2, n = "middle") : F.value.style.chart.percentage.verticalPosition === "bottom" && (e = Y.value.width / 2, t = Y.value.height - G.value.bottom / 2 + r, n = "middle") : F.value.style.chart.percentage.horizontalPosition === "left" ? (e = 4, t = Y.value.height / 2 + r, n = "start") : F.value.style.chart.percentage.horizontalPosition === "right" && (e = Y.value.width - G.value.right + 8, t = Y.value.height / 2 + r, n = "start"), {
214
- x: e,
215
- y: t,
216
- textAnchor: n,
217
- bold: F.value.style.chart.percentage.bold,
218
- fontSize: F.value.style.chart.percentage.fontSize,
219
- fill: F.value.style.chart.percentage.color
220
- };
221
- }), Q = x(!1);
222
- function ct(e) {
223
- Q.value = e, Je.value += 1;
224
- }
225
- let $ = x(!1);
226
- function lt() {
227
- $.value = !$.value;
228
- }
229
- async function ut({ scale: e = 2 } = {}) {
230
- if (!A.value) return;
231
- let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await oe({
232
- domElement: A.value,
233
- base64: !0,
234
- img: !0,
235
- scale: e
236
- });
237
- return {
238
- imageUri: i,
239
- base64: a,
240
- title: F.value.style.chart.title.text,
241
- width: t,
242
- height: n,
243
- aspectRatio: r
244
- };
245
- }
246
- let dt = d(() => F.value.style.chart.backgroundColor), { exportSvg: ft, getSvg: pt } = ie({
247
- svg: z,
248
- title: d(() => F.value.style.chart.title),
249
- backgroundColor: dt
250
- });
251
- async function mt({ isCb: e }) {
252
- P.value = !0, await ye();
253
- try {
254
- if (e) {
255
- let { blob: e, url: t, text: n, dataUrl: r } = await pt();
256
- await Promise.resolve(F.value.userOptions.callbacks.svg({
257
- blob: e,
258
- url: t,
259
- text: n,
260
- dataUrl: r
261
- }));
262
- } else await Promise.resolve(ft());
263
- } finally {
264
- P.value = !1;
265
- }
266
- }
267
- function ht(e) {
268
- if (e?.stage === "start") {
269
- N.value = !0;
270
- return;
271
- }
272
- if (e?.stage === "end") {
273
- N.value = !1;
274
- return;
275
- }
276
- tt();
277
- }
278
- async function gt() {
279
- if (Ue("copyAlt", {
280
- config: F.value,
281
- dataset: L.value
282
- }), !F.value.userOptions.callbacks.altCopy) {
283
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
284
- return;
285
- }
286
- await Promise.resolve(F.value.userOptions.callbacks.altCopy({
287
- config: F.value,
288
- dataset: L.value
289
- }));
290
- }
291
- let _t = d(() => `${k.value}-title`), vt = d(() => `${k.value}-desc`), yt = d(() => o(F.value.style.chart.percentage.formatter, U.value, i({
292
- v: U.value,
293
- s: "%",
294
- r: F.value.style.chart.percentage.rounding
295
- }))), bt = d(() => F.value.style.chart.title.text || ""), xt = d(() => I.value ? "Loading data" : `Value: ${yt.value}`);
296
- return ce({
297
- getImage: ut,
298
- generatePdf: et,
299
- generateImage: tt,
300
- generateSvg: mt,
301
- toggleAnnotator: lt,
302
- toggleFullscreen: ct,
303
- copyAlt: gt
304
- }), (e, t) => (b(), m("div", {
305
- ref_key: "tiremarksChart",
306
- ref: A,
307
- class: _(`vue-data-ui-component vue-ui-tiremarks ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
308
- style: y(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor}`),
309
- id: k.value,
310
- onMouseenter: t[0] ||= () => w(Qe)(!0),
311
- onMouseleave: t[1] ||= () => w(Qe)(!1)
312
- }, [
313
- F.value.userOptions.buttons.annotator ? (b(), f(w(E), {
314
- key: 0,
315
- svgRef: w(z),
316
- backgroundColor: F.value.style.chart.backgroundColor,
317
- color: F.value.style.chart.color,
318
- active: $.value,
319
- isCursorPointer: Xe.value,
320
- onClose: lt
321
- }, {
322
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
323
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
324
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
325
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
326
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
327
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
328
- _: 3
329
- }, 8, [
330
- "svgRef",
331
- "backgroundColor",
332
- "color",
333
- "active",
334
- "isCursorPointer"
335
- ])) : p("", !0),
336
- nt.value ? (b(), m("div", {
337
- key: 1,
338
- ref_key: "noTitle",
339
- ref: Ge,
340
- class: "vue-data-ui-no-title-space",
341
- style: "height:36px; width: 100%;background:transparent"
342
- }, null, 512)) : p("", !0),
343
- F.value.style.chart.title.text ? (b(), m("div", {
344
- key: 2,
345
- ref_key: "chartTitle",
346
- ref: Ke,
347
- style: "width:100%;background:transparent;padding-bottom:12px"
348
- }, [(b(), f(se, {
349
- key: `title_${Ye.value}`,
350
- config: {
351
- title: {
352
- cy: "wheel-title",
353
- ...F.value.style.chart.title
354
- },
355
- subtitle: {
356
- cy: "wheel-subtitle",
357
- ...F.value.style.chart.title.subtitle
358
- }
359
- }
360
- }, null, 8, ["config"]))], 512)) : p("", !0),
361
- F.value.userOptions.show && We.value && (w($e) || w(R)) ? (b(), f(w(Re), {
362
- ref: "details",
363
- key: `user_options_${Je.value}`,
364
- backgroundColor: F.value.style.chart.backgroundColor,
365
- color: F.value.style.chart.color,
366
- isPrinting: w(V),
367
- isImaging: w(H),
368
- uid: k.value,
369
- hasPdf: F.value.userOptions.buttons.pdf,
370
- hasImg: F.value.userOptions.buttons.img,
371
- hasSvg: F.value.userOptions.buttons.svg,
372
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
373
- hasAltCopy: F.value.userOptions.buttons.altCopy,
374
- hasXls: !1,
375
- isFullscreen: Q.value,
376
- titles: { ...F.value.userOptions.buttonTitles },
377
- chartElement: A.value,
378
- position: F.value.userOptions.position,
379
- hasAnnotator: F.value.userOptions.buttons.annotator,
380
- isAnnotation: $.value,
381
- callbacks: F.value.userOptions.callbacks,
382
- printScale: F.value.userOptions.print.scale,
383
- isCursorPointer: Xe.value,
384
- onToggleFullscreen: ct,
385
- onGeneratePdf: w(et),
386
- onGenerateImage: ht,
387
- onGenerateSvg: mt,
388
- onToggleAnnotator: lt,
389
- onCopyAlt: gt,
390
- style: y({ visibility: w($e) ? w(R) ? "visible" : "hidden" : "visible" })
391
- }, _e({ _: 2 }, [
392
- e.$slots.menuIcon ? {
393
- name: "menuIcon",
394
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
395
- isOpen: t,
396
- color: n
397
- })), void 0, !0)]),
398
- key: "0"
399
- } : void 0,
400
- e.$slots.optionPdf ? {
401
- name: "optionPdf",
402
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
403
- key: "1"
404
- } : void 0,
405
- e.$slots.optionImg ? {
406
- name: "optionImg",
407
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
408
- key: "2"
409
- } : void 0,
410
- e.$slots.optionSvg ? {
411
- name: "optionSvg",
412
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
413
- key: "3"
414
- } : void 0,
415
- e.$slots.optionFullscreen ? {
416
- name: "optionFullscreen",
417
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
418
- toggleFullscreen: t,
419
- isFullscreen: n
420
- })), void 0, !0)]),
421
- key: "4"
422
- } : void 0,
423
- e.$slots.optionAnnotator ? {
424
- name: "optionAnnotator",
425
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
426
- toggleAnnotator: t,
427
- isAnnotator: n
428
- })), void 0, !0)]),
429
- key: "5"
430
- } : void 0,
431
- e.$slots.optionAltCopy ? {
432
- name: "optionAltCopy",
433
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
434
- key: "6"
435
- } : void 0,
436
- e.$slots["custom-menu-before"] ? {
437
- name: "custom-menu-before",
438
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
439
- key: "7"
440
- } : void 0,
441
- e.$slots["custom-menu-after"] ? {
442
- name: "custom-menu-after",
443
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
444
- key: "8"
445
- } : void 0
446
- ]), 1032, [
447
- "backgroundColor",
448
- "color",
449
- "isPrinting",
450
- "isImaging",
451
- "uid",
452
- "hasPdf",
453
- "hasImg",
454
- "hasSvg",
455
- "hasFullscreen",
456
- "hasAltCopy",
457
- "isFullscreen",
458
- "titles",
459
- "chartElement",
460
- "position",
461
- "hasAnnotator",
462
- "isAnnotation",
463
- "callbacks",
464
- "printScale",
465
- "isCursorPointer",
466
- "onGeneratePdf",
467
- "style"
468
- ])) : p("", !0),
469
- (b(), m("svg", {
470
- ref_key: "svgRef",
471
- ref: z,
472
- xmlns: w(c),
473
- class: _({
474
- "vue-data-ui-fullscreen--on": Q.value,
475
- "vue-data-ui-fulscreen--off": !Q.value
476
- }),
477
- viewBox: `0 0 ${q.value} ${J.value}`,
478
- style: y(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color}`),
479
- role: "img",
480
- "aria-labelledby": _t.value,
481
- "aria-describedby": vt.value
482
- }, [
483
- ge("title", { id: _t.value }, C(bt.value), 9, De),
484
- ge("desc", { id: vt.value }, C(xt.value), 9, Oe),
485
- ve(w(ze)),
486
- e.$slots["chart-background"] ? (b(), m("foreignObject", {
487
- key: 0,
488
- x: 0,
489
- y: 0,
490
- width: Y.value.width,
491
- height: Y.value.height,
492
- style: { pointerEvents: "none" }
493
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, ke)) : p("", !0),
494
- F.value.style.chart.layout.curved ? (b(), m("g", Ae, [(b(!0), m(he, null, xe(st.value, (e, t) => (b(), m("path", {
495
- d: e.curve,
496
- "stroke-width": X.value.mark,
497
- stroke: U.value >= t ? e.color : F.value.style.chart.layout.inactiveColor,
498
- "stroke-linecap": "round",
499
- fill: "none",
500
- class: _({ "vue-ui-tick-animated": F.value.style.chart.animation.use && !w(D) && t <= U.value })
501
- }, null, 10, je))), 256))])) : (b(), m("g", Me, [(b(!0), m(he, null, xe(st.value, (e, t) => (b(), m("line", {
502
- x1: e.x1,
503
- y1: e.y1,
504
- x2: e.x2,
505
- y2: e.y2,
506
- "stroke-width": X.value.mark,
507
- stroke: U.value >= t ? e.color : F.value.style.chart.layout.inactiveColor,
508
- "stroke-linecap": "round"
509
- }, null, 8, Ne))), 256))])),
510
- F.value.style.chart.percentage.show ? (b(), m("g", {
511
- key: 3,
512
- role: "status",
513
- "aria-live": "polite",
514
- "aria-label": w(I) ? "..." : `${yt.value}`
515
- }, [w(I) ? (b(), m("rect", {
516
- key: 0,
517
- x: ot.value.x,
518
- y: ot.value.y,
519
- width: 40,
520
- height: Z.value.fontSize,
521
- fill: "#6A6A6A80",
522
- rx: 3
523
- }, null, 8, Fe)) : (b(), m("text", {
524
- key: 1,
525
- "aria-hidden": "true",
526
- x: Z.value.x,
527
- y: Z.value.y,
528
- "font-size": Z.value.fontSize,
529
- fill: F.value.style.chart.layout.ticks.gradient.show && F.value.style.chart.percentage.useGradientColor ? w(n)(F.value.style.chart.layout.activeColor, U.value / 100 * (F.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : F.value.style.chart.percentage.color,
530
- "font-weight": Z.value.bold ? "bold" : "normal",
531
- "text-anchor": Z.value.textAnchor
532
- }, C(yt.value), 9, Ie))], 8, Pe)) : p("", !0),
533
- S(e.$slots, "svg", { svg: {
534
- ...Y.value,
535
- isPrintingImg: w(V) || w(H) || N.value,
536
- isPrintingSvg: P.value
537
- } }, void 0, !0)
538
- ], 14, Ee)),
539
- e.$slots.watermark ? (b(), m("div", Le, [S(e.$slots, "watermark", v(g({ isPrinting: w(V) || w(H) || N.value || P.value })), void 0, !0)])) : p("", !0),
540
- e.$slots.source ? (b(), m("div", {
541
- key: 5,
542
- ref_key: "source",
543
- ref: qe,
544
- dir: "auto"
545
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
546
- S(e.$slots, "skeleton", {}, () => [w(I) ? (b(), f(re, { key: 0 })) : p("", !0)], !0)
547
- ], 46, Te));
548
- }
549
- }, [["__scopeId", "data-v-4b485eb1"]]);
550
- //#endregion
551
- export { we as n, E as t };