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
@@ -1,17 +1,17 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { Xt as t, q as n, t as r } from "./lib-Dql7cqyA.js";
3
3
  import { n as i, t as a } from "./useHints-Dq_w2E8B.js";
4
- import { t as o } from "./useConfig-CyCVHo81.js";
4
+ import { t as o } from "./useConfig-CIQZ6_r7.js";
5
5
  import { t as s } from "./useNestedProp-Chvyfpl-.js";
6
6
  import { n as c } from "./Title-CPHi-evi.js";
7
7
  import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
8
  import { l as ee, t as te } from "./useResponsive-ZtArZtUf.js";
9
- import { t as u } from "./BaseIcon-t83PDe9k.js";
9
+ import { t as u } from "./BaseIcon-D8R6_sKH.js";
10
10
  import { t as ne } from "./DefGrad-DVBqDjhO.js";
11
11
  import { t as re } from "./useChartAccessibility-DYqac8yF.js";
12
- import { computed as d, createBlock as ie, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as ae, guardReactiveProps as g, mergeProps as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as oe, onMounted as se, openBlock as b, ref as x, renderSlot as S, shallowRef as C, toDisplayString as ce, unref as w, watch as le } from "vue";
12
+ import { computed as d, createBlock as ie, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as ae, guardReactiveProps as g, mergeProps as oe, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as se, onMounted as ce, openBlock as y, ref as b, renderSlot as x, shallowRef as le, toDisplayString as ue, unref as S, watch as de } from "vue";
13
13
  //#region src/timer.js
14
- var ue = class {
14
+ var fe = class {
15
15
  constructor(e, t, n, r = !0, i = !0) {
16
16
  this.interval = t, this.elapsed = 0, this.isPaused = !1;
17
17
  let a = new Blob(["\n let interval;\n let elapsed = 0;\n let paused = false;\n let startTime;\n let tickInterval;\n\n onmessage = function(e) {\n const { action, data } = e.data;\n\n switch(action) {\n case 'start':\n startTime = Date.now();\n tickInterval = data.interval;\n elapsed = 0;\n paused = false;\n interval = setInterval(() => {\n elapsed += tickInterval;\n postMessage({ elapsed, timestamp: Date.now() });\n }, tickInterval);\n break;\n \n case 'pause':\n paused = true;\n clearInterval(interval);\n elapsed = Date.now() - startTime;\n break;\n\n case 'resume':\n if (paused) {\n startTime = Date.now() - elapsed;\n interval = setInterval(() => {\n elapsed += tickInterval;\n postMessage({ elapsed, timestamp: Date.now() });\n }, tickInterval);\n }\n paused = false;\n break;\n\n case 'stop':\n clearInterval(interval);\n elapsed = 0;\n postMessage({ elapsed });\n break;\n\n case 'reset':\n elapsed = 0;\n clearInterval(interval);\n postMessage({ elapsed });\n break;\n\n case 'lap':\n postMessage({\n elapsed,\n timestamp: Date.now(),\n action: 'lap'\n });\n break;\n\n default:\n break;\n }\n };\n "], { type: "application/javascript" }), o = URL.createObjectURL(a), s = new Worker(o);
@@ -57,37 +57,37 @@ var ue = class {
57
57
  n && n(e);
58
58
  };
59
59
  }
60
- }, T = /* @__PURE__ */ e({ default: () => E }), de = ["xmlns", "viewBox"], fe = ["width", "height"], pe = { key: 1 }, me = [
60
+ }, C = /* @__PURE__ */ e({ default: () => w }), pe = ["xmlns", "viewBox"], me = ["width", "height"], he = { key: 1 }, ge = [
61
61
  "cx",
62
62
  "cy",
63
63
  "r",
64
64
  "fill",
65
65
  "stroke",
66
66
  "stroke-width"
67
- ], he = [
67
+ ], _e = [
68
68
  "d",
69
69
  "stroke",
70
70
  "stroke-width"
71
- ], ge = [
71
+ ], ve = [
72
72
  "r",
73
73
  "fill",
74
74
  "stroke",
75
75
  "stroke-width"
76
- ], _e = [
76
+ ], ye = [
77
77
  "r",
78
78
  "fill",
79
79
  "stroke",
80
80
  "stroke-width"
81
- ], ve = ["x", "y"], ye = { key: 5 }, be = [
81
+ ], be = ["x", "y"], xe = { key: 5 }, Se = [
82
82
  "x",
83
83
  "y",
84
84
  "font-size",
85
85
  "fill",
86
86
  "font-weight"
87
- ], xe = {
87
+ ], Ce = {
88
88
  key: 0,
89
89
  class: "vue-ui-timer-controls"
90
- }, Se = ["title"], Ce = ["title"], we = ["title"], Te = ["title"], Ee = ["title"], E = /*#__PURE__*/ l({
90
+ }, we = ["title"], Te = ["title"], Ee = ["title"], De = ["title"], Oe = ["title"], w = /*#__PURE__*/ l({
91
91
  __name: "vue-ui-timer",
92
92
  props: { config: {
93
93
  type: Object,
@@ -102,111 +102,111 @@ var ue = class {
102
102
  "restart",
103
103
  "lap"
104
104
  ],
105
- setup(e, { expose: l, emit: T }) {
106
- let E = ae(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), { vue_ui_timer: De } = o(), D = e, O = T, k = x(null), A = x(null), j = x(null), M = C(null), N = C(null), P = x(n()), F = x(0);
107
- se(() => {
108
- I();
105
+ setup(e, { expose: l, emit: C }) {
106
+ let w = ae(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), { vue_ui_timer: ke } = o(), T = e, E = C, D = b(null), O = b(null), k = b(null), A = le(null), j = le(null), M = b(n()), N = b(0);
107
+ ce(() => {
108
+ P();
109
109
  });
110
- function I() {
111
- if (L.value.responsive) {
110
+ function P() {
111
+ if (F.value.responsive) {
112
112
  let e = ee(() => {
113
113
  let { width: e, height: n } = te({
114
- chart: k.value,
115
- title: L.value.style.title.text ? A.value : null,
116
- legend: j.value
114
+ chart: D.value,
115
+ title: F.value.style.title.text ? O.value : null,
116
+ legend: k.value
117
117
  });
118
118
  requestAnimationFrame(() => {
119
- B.value.width = e, B.value.height = n, L.value.responsiveProportionalSizing ? (B.value.tracker.core = t({
119
+ B.value.width = e, B.value.height = n, F.value.responsiveProportionalSizing ? (B.value.tracker.core = t({
120
120
  relator: Math.min(e, n),
121
- adjuster: L.value.style.width,
122
- source: 6 * L.value.stopwatch.tracker.radiusRatio,
121
+ adjuster: F.value.style.width,
122
+ source: 6 * L.value.radiusRatio,
123
123
  threshold: 1,
124
124
  fallback: 1
125
125
  }), B.value.tracker.aura = t({
126
126
  relator: Math.min(e, n),
127
- adjuster: L.value.style.width,
128
- source: 12 * L.value.stopwatch.tracker.aura.radiusRatio,
127
+ adjuster: F.value.style.width,
128
+ source: 12 * L.value.aura.radiusRatio,
129
129
  threshold: 1,
130
130
  fallback: 1
131
131
  }), B.value.label = t({
132
132
  relator: Math.min(e, n),
133
- adjuster: L.value.style.width,
134
- source: L.value.stopwatch.label.fontSize,
133
+ adjuster: F.value.style.width,
134
+ source: I.value.label.fontSize,
135
135
  threshold: 10,
136
136
  fallback: 10
137
- })) : B.value.label = L.value.stopwatch.label.fontSize;
137
+ })) : B.value.label = I.value.label.fontSize;
138
138
  });
139
139
  });
140
- M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect()), M.value = new ResizeObserver(e), N.value = k.value.parentNode, M.value.observe(N.value);
140
+ A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = D.value.parentNode, A.value.observe(j.value);
141
141
  }
142
142
  }
143
- oe(() => {
144
- M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
143
+ se(() => {
144
+ A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
145
145
  });
146
- let L = d({
147
- get: () => z(),
146
+ let F = d({
147
+ get: () => je(),
148
148
  set: (e) => e
149
- });
149
+ }), I = d(() => F.value.stopwatch), L = d(() => F.value.stopwatch.tracker), R = d(() => F.value.stopwatch.legend);
150
150
  i({
151
- config: () => L.value,
151
+ config: () => F.value,
152
152
  dataset: () => [],
153
153
  component: "VueUiTimer",
154
154
  rules: [a.noHint]
155
155
  });
156
- let R = d(() => L.value.useCursorPointer), { svgRef: Oe } = re({ config: L.value.style.title });
157
- function z() {
156
+ let z = d(() => F.value.useCursorPointer), { svgRef: Ae } = re({ config: F.value.style.title });
157
+ function je() {
158
158
  return s({
159
- userConfig: D.config,
160
- defaultConfig: De
159
+ userConfig: T.config,
160
+ defaultConfig: ke
161
161
  });
162
162
  }
163
- le(() => D.config, (e) => {
164
- L.value = z(), I(), F.value += 1;
163
+ de(() => T.config, (e) => {
164
+ F.value = je(), P(), N.value += 1;
165
165
  }, { deep: !0 });
166
- let ke = d(() => {
167
- if (L.value.stopwatch.showHours && L.value.stopwatch.showHundredth) return "00:00:00.00";
168
- if (L.value.stopwatch.showHours && !L.value.stopwatch.showHundredth) return "00:00:00";
169
- if (!L.value.stopwatch.showHours && L.value.stopwatch.showHundredth) return "00:00.00";
170
- if (!L.value.stopwatch.showHours && !L.value.stopwatch.showHundredth) return "00:00";
171
- }), B = x({
172
- height: L.value.style.height,
173
- width: L.value.style.width,
166
+ let Me = d(() => {
167
+ if (I.value.showHours && I.value.showHundredth) return "00:00:00.00";
168
+ if (I.value.showHours && !I.value.showHundredth) return "00:00:00";
169
+ if (!I.value.showHours && I.value.showHundredth) return "00:00.00";
170
+ if (!I.value.showHours && !I.value.showHundredth) return "00:00";
171
+ }), B = b({
172
+ height: F.value.style.height,
173
+ width: F.value.style.width,
174
174
  tracker: {
175
- core: 6 * L.value.stopwatch.tracker.radiusRatio,
176
- aura: 12 * L.value.stopwatch.tracker.aura.radiusRatio
175
+ core: 6 * L.value.radiusRatio,
176
+ aura: 12 * L.value.aura.radiusRatio
177
177
  },
178
- label: L.value.stopwatch.label.fontSize
179
- }), V = x(0), H = new ue((e) => Ae(e), 10, "", L.value.stopwatch.showHundredth, L.value.stopwatch.showHours), U = x(!0), W = x(!1), G = x(!1);
178
+ label: I.value.label.fontSize
179
+ }), V = b(0), H = new fe((e) => Ne(e), 10, "", I.value.showHundredth, I.value.showHours), U = b(!0), W = b(!1), G = b(!1);
180
180
  function K() {
181
- O("start"), U.value && H.start(), U.value = !1, W.value = !0;
181
+ E("start"), U.value && H.start(), U.value = !1, W.value = !0;
182
182
  }
183
183
  function q() {
184
- W.value &&= (O("reset"), H.stop(), X.value = [], U.value = !0, !1);
184
+ W.value &&= (E("reset"), H.stop(), X.value = [], U.value = !0, !1);
185
185
  }
186
186
  function J() {
187
- G.value = !G.value, O("pause", V.value), H.pause();
187
+ G.value = !G.value, E("pause", V.value), H.pause();
188
188
  }
189
189
  function Y() {
190
- W.value && (G.value = !1, O("restart"), X.value = [], H.restart());
190
+ W.value && (G.value = !1, E("restart"), X.value = [], H.restart());
191
191
  }
192
- let X = x([]);
192
+ let X = b([]);
193
193
  async function Z() {
194
194
  if (!W.value || G.value) return;
195
195
  let e = await H.lap();
196
- e && (X.value.push(e), O("lap", X.value));
196
+ e && (X.value.push(e), E("lap", X.value));
197
197
  }
198
- function Ae({ timestamp: e, elapsed: t, formatted: n }) {
198
+ function Ne({ timestamp: e, elapsed: t, formatted: n }) {
199
199
  V.value = {
200
200
  timestamp: e,
201
201
  elapsed: t,
202
202
  formatted: n
203
203
  };
204
204
  }
205
- let Q = d(() => Math.min(B.value.width, B.value.height) / 2.5 * L.value.stopwatch.track.radiusRatio);
206
- function je(e, t) {
205
+ let Q = d(() => Math.min(B.value.width, B.value.height) / 2.5 * I.value.track.radiusRatio);
206
+ function Pe(e, t) {
207
207
  return e * (360 / (t * 1e3)) % 360;
208
208
  }
209
- function Me(e) {
209
+ function Fe(e) {
210
210
  let t = Math.PI / 180 * e;
211
211
  return {
212
212
  cx: B.value.width / 2 + Q.value * Math.cos(t),
@@ -214,7 +214,7 @@ var ue = class {
214
214
  };
215
215
  }
216
216
  let $ = d(() => {
217
- let e = je(V.value.elapsed, L.value.stopwatch.cycleSeconds), { cx: t, cy: n } = Me(e - 90), r = +(e > 180);
217
+ let e = Pe(V.value.elapsed, I.value.cycleSeconds), { cx: t, cy: n } = Fe(e - 90), r = +(e > 180);
218
218
  return {
219
219
  cx: t || B.value.width / 2,
220
220
  cy: n || B.value.height / 2 - Q.value,
@@ -228,61 +228,61 @@ var ue = class {
228
228
  reset: q,
229
229
  restart: Y,
230
230
  lap: Z
231
- }), (e, t) => (b(), p("div", {
231
+ }), (e, t) => (y(), p("div", {
232
232
  ref_key: "timerChart",
233
- ref: k,
233
+ ref: D,
234
234
  class: "vue-data-ui-component vue-ui-timer",
235
- style: y({
236
- fontFamily: L.value.style.fontFamily,
235
+ style: v({
236
+ fontFamily: F.value.style.fontFamily,
237
237
  width: "100%",
238
- height: L.value.responsive ? "100%" : "auto",
238
+ height: F.value.responsive ? "100%" : "auto",
239
239
  textAlign: "center"
240
240
  })
241
241
  }, [
242
- L.value.style.title.text ? (b(), p("div", {
242
+ F.value.style.title.text ? (y(), p("div", {
243
243
  key: 0,
244
244
  ref_key: "chartTitle",
245
- ref: A,
246
- style: y({
245
+ ref: O,
246
+ style: v({
247
247
  width: "100%",
248
- background: L.value.style.backgroundColor
248
+ background: F.value.style.backgroundColor
249
249
  })
250
- }, [(b(), ie(c, {
251
- key: `title_${F.value}`,
250
+ }, [(y(), ie(c, {
251
+ key: `title_${N.value}`,
252
252
  config: {
253
253
  title: {
254
254
  cy: "title",
255
- ...L.value.style.title
255
+ ...F.value.style.title
256
256
  },
257
257
  subtitle: {
258
258
  cy: "subtitle",
259
- ...L.value.style.title.subtitle
259
+ ...F.value.style.title.subtitle
260
260
  }
261
261
  }
262
262
  }, null, 8, ["config"]))], 4)) : f("", !0),
263
- (b(), p("svg", {
263
+ (y(), p("svg", {
264
264
  ref_key: "svgRef",
265
- ref: Oe,
266
- xmlns: w(r),
265
+ ref: Ae,
266
+ xmlns: S(r),
267
267
  viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
268
- style: y({
268
+ style: v({
269
269
  maxWidth: "100%",
270
270
  overflow: "visible",
271
- background: L.value.style.backgroundColor
271
+ background: F.value.style.backgroundColor
272
272
  })
273
273
  }, [
274
- h(w(E)),
275
- e.$slots["chart-background"] ? (b(), p("foreignObject", {
274
+ h(S(w)),
275
+ e.$slots["chart-background"] ? (y(), p("foreignObject", {
276
276
  key: 0,
277
277
  x: 0,
278
278
  y: 0,
279
279
  width: B.value.width <= 0 ? 10 : B.value.width,
280
280
  height: B.value.height <= 0 ? 10 : B.value.height,
281
281
  style: { pointerEvents: "none" }
282
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, fe)) : f("", !0),
283
- L.value.stopwatch.tracker.gradient.show ? (b(), p("defs", pe, [h(ne, {
282
+ }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, me)) : f("", !0),
283
+ L.value.gradient.show ? (y(), p("defs", he, [h(ne, {
284
284
  t: "radial",
285
- id: `tracker_gradient_${P.value}`,
285
+ id: `tracker_gradient_${M.value}`,
286
286
  cx: "50%",
287
287
  cy: "50%",
288
288
  r: "50%",
@@ -290,11 +290,11 @@ var ue = class {
290
290
  fy: "50%",
291
291
  stops: [[
292
292
  "0%",
293
- L.value.stopwatch.tracker.gradient.color,
293
+ L.value.gradient.color,
294
294
  1
295
295
  ], [
296
296
  "100%",
297
- L.value.stopwatch.tracker.fill,
297
+ L.value.fill,
298
298
  1
299
299
  ]]
300
300
  }, null, 8, ["id", "stops"])])) : f("", !0),
@@ -302,130 +302,130 @@ var ue = class {
302
302
  cx: B.value.width / 2,
303
303
  cy: B.value.height / 2,
304
304
  r: Q.value,
305
- fill: L.value.stopwatch.track.fill,
306
- stroke: L.value.stopwatch.track.stroke,
307
- "stroke-width": L.value.stopwatch.track.strokeWidth
308
- }, null, 8, me),
309
- L.value.stopwatch.cycleTrack.show ? (b(), p("path", {
305
+ fill: I.value.track.fill,
306
+ stroke: I.value.track.stroke,
307
+ "stroke-width": I.value.track.strokeWidth
308
+ }, null, 8, ge),
309
+ I.value.cycleTrack.show ? (y(), p("path", {
310
310
  key: 2,
311
311
  d: `M ${B.value.width / 2},${B.value.height / 2 - Q.value} A ${Q.value},${Q.value} 0 ${$.value.largeArcFlag},${$.value.sweepFlag} ${$.value.cx},${$.value.cy}`,
312
- stroke: L.value.stopwatch.cycleTrack.stroke,
313
- "stroke-width": L.value.stopwatch.cycleTrack.strokeWidth,
312
+ stroke: I.value.cycleTrack.stroke,
313
+ "stroke-width": I.value.cycleTrack.strokeWidth,
314
314
  "stroke-linecap": "round",
315
315
  fill: "none"
316
- }, null, 8, he)) : f("", !0),
317
- m("circle", _($.value, {
316
+ }, null, 8, _e)) : f("", !0),
317
+ m("circle", oe($.value, {
318
318
  r: B.value.tracker.core,
319
- fill: L.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${P.value})` : L.value.stopwatch.tracker.fill,
320
- stroke: L.value.stopwatch.tracker.stroke,
321
- "stroke-width": L.value.stopwatch.tracker.strokeWidth
322
- }), null, 16, ge),
323
- L.value.stopwatch.tracker.aura.show ? (b(), p("circle", _({ key: 3 }, $.value, {
319
+ fill: L.value.gradient.show ? `url(#tracker_gradient_${M.value})` : L.value.fill,
320
+ stroke: L.value.stroke,
321
+ "stroke-width": L.value.strokeWidth
322
+ }), null, 16, ve),
323
+ L.value.aura.show ? (y(), p("circle", oe({ key: 3 }, $.value, {
324
324
  r: B.value.tracker.aura,
325
- fill: `${L.value.stopwatch.tracker.aura.fill}20`,
326
- stroke: L.value.stopwatch.tracker.aura.stroke,
327
- "stroke-width": L.value.stopwatch.tracker.aura.strokeWidth
328
- }), null, 16, _e)) : f("", !0),
329
- e.$slots.time ? (b(), p("foreignObject", {
325
+ fill: `${L.value.aura.fill}20`,
326
+ stroke: L.value.aura.stroke,
327
+ "stroke-width": L.value.aura.strokeWidth
328
+ }), null, 16, ye)) : f("", !0),
329
+ e.$slots.time ? (y(), p("foreignObject", {
330
330
  key: 4,
331
331
  x: B.value.width / 2,
332
332
  y: B.value.height / 2,
333
333
  height: "0.1",
334
334
  width: "0.1",
335
335
  style: { overflow: "visible" }
336
- }, [S(e.$slots, "time", v(g({
336
+ }, [x(e.$slots, "time", _(g({
337
337
  ...V.value,
338
338
  ...B.value
339
- })), void 0, !0)], 8, ve)) : e.$slots.timeSvg ? (b(), p("g", ye, [S(e.$slots, "timeSvg", v(g({
339
+ })), void 0, !0)], 8, be)) : e.$slots.timeSvg ? (y(), p("g", xe, [x(e.$slots, "timeSvg", _(g({
340
340
  ...V.value,
341
341
  ...B.value
342
- })), void 0, !0)])) : (b(), p("text", {
342
+ })), void 0, !0)])) : (y(), p("text", {
343
343
  key: 6,
344
344
  x: B.value.width / 2,
345
345
  y: B.value.height / 2 + B.value.label / 4,
346
346
  "font-size": B.value.label,
347
347
  "text-anchor": "middle",
348
- fill: L.value.stopwatch.label.color,
349
- "font-weight": L.value.stopwatch.label.bold ? "bold" : "normal",
348
+ fill: I.value.label.color,
349
+ "font-weight": I.value.label.bold ? "bold" : "normal",
350
350
  style: { "font-variant-numeric": "tabular-nums !important" }
351
- }, ce(V.value.formatted || ke.value), 9, be))
352
- ], 12, de)),
351
+ }, ue(V.value.formatted || Me.value), 9, Se))
352
+ ], 12, pe)),
353
353
  m("div", {
354
354
  ref_key: "chartLegend",
355
- ref: j,
356
- style: y({
355
+ ref: k,
356
+ style: v({
357
357
  width: "100%",
358
- backgroundColor: L.value.stopwatch.legend.backgroundColor
358
+ backgroundColor: R.value.backgroundColor
359
359
  })
360
360
  }, [
361
- e.$slots.controls ? f("", !0) : (b(), p("div", xe, [
362
- L.value.stopwatch.legend.buttons.start ? (b(), p("button", {
361
+ e.$slots.controls ? f("", !0) : (y(), p("div", Ce, [
362
+ R.value.buttons.start ? (y(), p("button", {
363
363
  key: 0,
364
- title: L.value.stopwatch.legend.buttonTitles.start,
364
+ title: R.value.buttonTitles.start,
365
365
  onClick: K,
366
366
  class: "vue-ui-timer-button",
367
- style: y({
367
+ style: v({
368
368
  opacity: W.value ? .2 : 1,
369
- cursor: W.value ? "default" : R.value ? "pointer" : "default"
369
+ cursor: W.value ? "default" : z.value ? "pointer" : "default"
370
370
  })
371
371
  }, [h(u, {
372
372
  name: "play",
373
- stroke: L.value.stopwatch.legend.buttons.iconColor
374
- }, null, 8, ["stroke"])], 12, Se)) : f("", !0),
375
- L.value.stopwatch.legend.buttons.pause ? (b(), p("button", {
373
+ stroke: R.value.buttons.iconColor
374
+ }, null, 8, ["stroke"])], 12, we)) : f("", !0),
375
+ R.value.buttons.pause ? (y(), p("button", {
376
376
  key: 1,
377
- title: G.value ? L.value.stopwatch.legend.buttonTitles.resume : L.value.stopwatch.legend.buttonTitles.pause,
377
+ title: G.value ? R.value.buttonTitles.resume : R.value.buttonTitles.pause,
378
378
  onClick: J,
379
379
  class: "vue-ui-timer-button",
380
- style: y({
380
+ style: v({
381
381
  opacity: W.value ? 1 : .2,
382
- cursor: W.value && R.value ? "pointer" : "default"
382
+ cursor: W.value && z.value ? "pointer" : "default"
383
383
  })
384
384
  }, [h(u, {
385
385
  name: "pause",
386
- stroke: L.value.stopwatch.legend.buttons.iconColor
387
- }, null, 8, ["stroke"])], 12, Ce)) : f("", !0),
388
- L.value.stopwatch.legend.buttons.reset ? (b(), p("button", {
386
+ stroke: R.value.buttons.iconColor
387
+ }, null, 8, ["stroke"])], 12, Te)) : f("", !0),
388
+ R.value.buttons.reset ? (y(), p("button", {
389
389
  key: 2,
390
- title: L.value.stopwatch.legend.buttonTitles.reset,
390
+ title: R.value.buttonTitles.reset,
391
391
  onClick: q,
392
392
  class: "vue-ui-timer-button",
393
- style: y({
393
+ style: v({
394
394
  opacity: W.value ? 1 : .2,
395
- cursor: W.value && R.value ? "pointer" : "default"
395
+ cursor: W.value && z.value ? "pointer" : "default"
396
396
  })
397
397
  }, [h(u, {
398
398
  name: "stop",
399
- stroke: L.value.stopwatch.legend.buttons.iconColor
400
- }, null, 8, ["stroke"])], 12, we)) : f("", !0),
401
- L.value.stopwatch.legend.buttons.restart ? (b(), p("button", {
399
+ stroke: R.value.buttons.iconColor
400
+ }, null, 8, ["stroke"])], 12, Ee)) : f("", !0),
401
+ R.value.buttons.restart ? (y(), p("button", {
402
402
  key: 3,
403
- title: L.value.stopwatch.legend.buttonTitles.restart,
403
+ title: R.value.buttonTitles.restart,
404
404
  onClick: Y,
405
405
  class: "vue-ui-timer-button",
406
- style: y({
406
+ style: v({
407
407
  opacity: W.value ? 1 : .2,
408
- cursor: W.value && R.value ? "pointer" : "default"
408
+ cursor: W.value && z.value ? "pointer" : "default"
409
409
  })
410
410
  }, [h(u, {
411
411
  name: "restart",
412
- stroke: L.value.stopwatch.legend.buttons.iconColor
413
- }, null, 8, ["stroke"])], 12, Te)) : f("", !0),
414
- L.value.stopwatch.legend.buttons.lap ? (b(), p("button", {
412
+ stroke: R.value.buttons.iconColor
413
+ }, null, 8, ["stroke"])], 12, De)) : f("", !0),
414
+ R.value.buttons.lap ? (y(), p("button", {
415
415
  key: 4,
416
- title: L.value.stopwatch.legend.buttonTitles.lap,
416
+ title: R.value.buttonTitles.lap,
417
417
  onClick: Z,
418
418
  class: "vue-ui-timer-button",
419
- style: y({
419
+ style: v({
420
420
  opacity: W.value && !G.value ? 1 : .2,
421
- cursor: W.value && !G.value && R.value ? "pointer" : "default"
421
+ cursor: W.value && !G.value && z.value ? "pointer" : "default"
422
422
  })
423
423
  }, [h(u, {
424
424
  name: "lap",
425
- stroke: L.value.stopwatch.legend.buttons.iconColor
426
- }, null, 8, ["stroke"])], 12, Ee)) : f("", !0)
425
+ stroke: R.value.buttons.iconColor
426
+ }, null, 8, ["stroke"])], 12, Oe)) : f("", !0)
427
427
  ])),
428
- S(e.$slots, "controls", v(g({
428
+ x(e.$slots, "controls", _(g({
429
429
  start: K,
430
430
  pause: J,
431
431
  reset: q,
@@ -436,7 +436,7 @@ var ue = class {
436
436
  isPaused: G.value,
437
437
  ...V.value
438
438
  })), void 0, !0),
439
- S(e.$slots, "laps", v(g({
439
+ x(e.$slots, "laps", _(g({
440
440
  laps: X.value,
441
441
  lap: Z,
442
442
  isRunning: W.value,
@@ -446,6 +446,6 @@ var ue = class {
446
446
  ], 4)
447
447
  ], 4));
448
448
  }
449
- }, [["__scopeId", "data-v-64177013"]]);
449
+ }, [["__scopeId", "data-v-2ce4581a"]]);
450
450
  //#endregion
451
- export { T as n, E as t };
451
+ export { C as n, w as t };