vue-data-ui 2.12.6 → 2.12.7-beta.0

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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,16 +1,15 @@
1
- import { ref as i, onMounted as Z, computed as z, onBeforeUnmount as ee, watch as te, createElementBlock as o, openBlock as l, normalizeStyle as p, createCommentVNode as d, createElementVNode as _, createBlock as ae, unref as se, createVNode as C, renderSlot as H, mergeProps as q, normalizeProps as W, guardReactiveProps as G, toDisplayString as le } from "vue";
2
- import { u as oe } from "./useNestedProp-v7KPpwuP.js";
3
- import { u as re, c as ue, X as ie, F as V } from "./index-BFzQMJda.js";
4
- import { t as ne, u as ce } from "./useResponsive-JZ9xq-JV.js";
5
- import R from "./BaseIcon-CNbwMh_-.js";
6
- import { _ as de } from "./Title-CzaCeCOm.js";
7
- import { _ as he } from "./PackageVersion-BjrblLPQ.js";
8
- import { u as ve } from "./useChartAccessibility-BWojgys7.js";
9
- import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- class fe {
11
- constructor(L, N, P, S = !0, w = !0) {
1
+ import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as z, onBeforeUnmount as oe, watch as re, createElementBlock as r, openBlock as l, normalizeStyle as w, createCommentVNode as d, createElementVNode as M, createBlock as ue, unref as Q, createVNode as T, renderSlot as H, mergeProps as Y, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
2
+ import { u as ne } from "./useNestedProp-tRqS0ZAM.js";
3
+ import { u as ce, c as ve, X as de, F as X } from "./index-BiHmNd1-.js";
4
+ import { t as he, u as pe } from "./useResponsive-JZ9xq-JV.js";
5
+ import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
6
+ import we from "./Title-B5qqUI3M.js";
7
+ import P from "./BaseIcon-CZdMutjs.js";
8
+ import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ class ge {
10
+ constructor(L, N, S, j = !0, A = !0) {
12
11
  this.interval = N, this.elapsed = 0, this.isPaused = !1;
13
- const M = `
12
+ const g = `
14
13
  let interval;
15
14
  let elapsed = 0;
16
15
  let paused = false;
@@ -73,53 +72,53 @@ class fe {
73
72
  break;
74
73
  }
75
74
  };
76
- `, D = new Blob([M], { type: "application/javascript" }), F = URL.createObjectURL(D), r = new Worker(F);
77
- function T(n) {
78
- let h = Math.floor(n / 1e3), e = Math.floor(n % 1e3 / 10), g = Math.floor(h / 3600), m = Math.floor(h % 3600 / 60), $ = h % 60, t = "";
79
- return w && (t += String(g).padStart(2, "0") + ":"), t += String(m).padStart(2, "0") + ":", t += String($).padStart(2, "0"), S && (t += "." + String(e).padStart(2, "0")), t;
75
+ `, $ = new Blob([g], { type: "application/javascript" }), D = URL.createObjectURL($), i = new Worker(D);
76
+ function n(o) {
77
+ let h = Math.floor(o / 1e3), k = Math.floor(o % 1e3 / 10), m = Math.floor(h / 3600), e = Math.floor(h % 3600 / 60), x = h % 60, p = "";
78
+ return A && (p += String(m).padStart(2, "0") + ":"), p += String(e).padStart(2, "0") + ":", p += String(x).padStart(2, "0"), j && (p += "." + String(k).padStart(2, "0")), p;
80
79
  }
81
80
  this.start = () => {
82
- this.isPaused = !1, r.postMessage({ action: "start", data: { interval: this.interval } });
81
+ this.isPaused = !1, i.postMessage({ action: "start", data: { interval: this.interval } });
83
82
  }, this.pause = () => {
84
- this.isPaused ? this.resume() : (this.isPaused = !0, r.postMessage({ action: "pause" }));
83
+ this.isPaused ? this.resume() : (this.isPaused = !0, i.postMessage({ action: "pause" }));
85
84
  }, this.resume = () => {
86
- this.isPaused && (r.postMessage({ action: "resume" }), this.isPaused = !1);
85
+ this.isPaused && (i.postMessage({ action: "resume" }), this.isPaused = !1);
87
86
  }, this.stop = () => {
88
- r.postMessage({ action: "stop" }), this.isPaused = !1;
87
+ i.postMessage({ action: "stop" }), this.isPaused = !1;
89
88
  }, this.reset = () => {
90
- r.postMessage({ action: "reset" }), this.elapsed = 0, this.isPaused = !1;
89
+ i.postMessage({ action: "reset" }), this.elapsed = 0, this.isPaused = !1;
91
90
  }, this.restart = () => {
92
91
  this.stop(), this.start();
93
- }, this.lap = () => new Promise((n) => {
94
- r.postMessage({ action: "lap" });
95
- const h = (e) => {
96
- const { elapsed: g, timestamp: m, action: $ } = e.data;
97
- if ($ === "lap") {
98
- const t = T(g);
99
- n({
100
- timestamp: m || 0,
101
- elapsed: g,
102
- formatted: t
92
+ }, this.lap = () => new Promise((o) => {
93
+ i.postMessage({ action: "lap" });
94
+ const h = (k) => {
95
+ const { elapsed: m, timestamp: e, action: x } = k.data;
96
+ if (x === "lap") {
97
+ const p = n(m);
98
+ o({
99
+ timestamp: e || 0,
100
+ elapsed: m,
101
+ formatted: p
103
102
  });
104
103
  }
105
104
  };
106
- r.addEventListener("message", h, { once: !0 });
107
- }), r.onmessage = (n) => {
108
- const { elapsed: h, timestamp: e } = n.data;
105
+ i.addEventListener("message", h, { once: !0 });
106
+ }), i.onmessage = (o) => {
107
+ const { elapsed: h, timestamp: k } = o.data;
109
108
  this.elapsed = h, L({
110
- timestamp: e || 0,
109
+ timestamp: k || 0,
111
110
  elapsed: this.elapsed,
112
- formatted: T(this.elapsed)
111
+ formatted: n(this.elapsed)
113
112
  });
114
- }, r.onerror = (n) => {
115
- P && P(n);
113
+ }, i.onerror = (o) => {
114
+ S && S(o);
116
115
  };
117
116
  }
118
117
  }
119
- const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me = ["id"], ye = ["stop-color"], be = ["stop-color"], _e = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ce = ["d", "stroke", "stroke-width"], Me = ["r", "fill", "stroke", "stroke-width"], Te = ["r", "fill", "stroke", "stroke-width"], $e = ["x", "y"], xe = ["x", "y", "font-size", "fill", "font-weight"], Ie = {
118
+ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e = ["id"], Ce = ["stop-color"], Me = ["stop-color"], Te = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], $e = ["d", "stroke", "stroke-width"], xe = ["r", "fill", "stroke", "stroke-width"], Ie = ["r", "fill", "stroke", "stroke-width"], Re = ["x", "y"], Pe = ["x", "y", "font-size", "fill", "font-weight"], Se = {
120
119
  key: 0,
121
120
  class: "vue-ui-timer-controls"
122
- }, Re = ["title"], Pe = ["title"], Se = ["title"], De = ["title"], Fe = ["title"], Ae = {
121
+ }, Ae = ["title"], De = ["title"], Fe = ["title"], ze = ["title"], He = ["title"], Le = {
123
122
  __name: "vue-ui-timer",
124
123
  props: {
125
124
  config: {
@@ -130,33 +129,33 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
130
129
  }
131
130
  },
132
131
  emits: ["start", "pause", "reset", "restart", "lap"],
133
- setup(X, { expose: L, emit: N }) {
134
- const { vue_ui_timer: P } = re(), S = X, w = N, M = i(null), D = i(null), F = i(null), r = i(null), T = i(ue()), n = i(0);
135
- Z(() => {
136
- h();
132
+ setup(q, { expose: L, emit: N }) {
133
+ const S = se(() => import("./PackageVersion-CLY-udAA.js")), { vue_ui_timer: j } = ce(), A = q, g = N, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
134
+ le(() => {
135
+ m();
137
136
  });
138
- function h() {
137
+ function m() {
139
138
  if (e.value.responsive) {
140
- const a = ne(() => {
141
- const { width: u, height: c } = ce({
142
- chart: M.value,
139
+ const a = he(() => {
140
+ const { width: u, height: c } = pe({
141
+ chart: $.value,
143
142
  title: e.value.style.title.text ? D.value : null,
144
- legend: F.value
143
+ legend: i.value
145
144
  });
146
145
  requestAnimationFrame(() => {
147
- t.value.width = u, t.value.height = c, t.value.tracker.core = V({
146
+ t.value.width = u, t.value.height = c, t.value.tracker.core = X({
148
147
  relator: Math.min(u, c),
149
148
  adjuster: e.value.style.width,
150
149
  source: 6 * e.value.stopwatch.tracker.radiusRatio,
151
150
  threshold: 1,
152
151
  fallback: 1
153
- }), t.value.tracker.aura = V({
152
+ }), t.value.tracker.aura = X({
154
153
  relator: Math.min(u, c),
155
154
  adjuster: e.value.style.width,
156
155
  source: 12 * e.value.stopwatch.tracker.aura.radiusRatio,
157
156
  threshold: 1,
158
157
  fallback: 1
159
- }), t.value.label = V({
158
+ }), t.value.label = X({
160
159
  relator: Math.min(u, c),
161
160
  adjuster: e.value.style.width,
162
161
  source: e.value.stopwatch.label.fontSize,
@@ -165,26 +164,26 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
165
164
  });
166
165
  });
167
166
  });
168
- r.value = new ResizeObserver(a), r.value.observe(M.value.parentNode);
167
+ n.value && (o.value && n.value.unobserve(o.value), n.value.disconnect()), n.value = new ResizeObserver(a), o.value = $.value.parentNode, n.value.observe(o.value);
169
168
  }
170
169
  }
171
- ee(() => {
172
- r.value && r.value.disconnect();
170
+ oe(() => {
171
+ n.value && (o.value && n.value.unobserve(o.value), n.value.disconnect());
173
172
  });
174
173
  const e = z({
175
- get: () => m(),
174
+ get: () => p(),
176
175
  set: (a) => a
177
- }), { svgRef: g } = ve({ config: e.value.style.title });
178
- function m() {
179
- return oe({
180
- userConfig: S.config,
181
- defaultConfig: P
176
+ }), { svgRef: x } = fe({ config: e.value.style.title });
177
+ function p() {
178
+ return ne({
179
+ userConfig: A.config,
180
+ defaultConfig: j
182
181
  });
183
182
  }
184
- te(() => S.config, (a) => {
185
- e.value = m(), h(), n.value += 1;
183
+ re(() => A.config, (a) => {
184
+ e.value = p(), m(), k.value += 1;
186
185
  }, { deep: !0 });
187
- const $ = z(() => {
186
+ const J = z(() => {
188
187
  if (e.value.stopwatch.showHours && e.value.stopwatch.showHundredth)
189
188
  return "00:00:00.00";
190
189
  if (e.value.stopwatch.showHours && !e.value.stopwatch.showHundredth)
@@ -193,7 +192,7 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
193
192
  return "00:00.00";
194
193
  if (!e.value.stopwatch.showHours && !e.value.stopwatch.showHundredth)
195
194
  return "00:00";
196
- }), t = i({
195
+ }), t = v({
197
196
  height: e.value.style.height,
198
197
  width: e.value.style.width,
199
198
  tracker: {
@@ -201,80 +200,80 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
201
200
  aura: 12 * e.value.stopwatch.tracker.aura.radiusRatio
202
201
  },
203
202
  label: e.value.stopwatch.label.fontSize
204
- }), f = i(0), x = new fe(
205
- (a) => J(a),
203
+ }), y = v(0), I = new ge(
204
+ (a) => Z(a),
206
205
  10,
207
206
  "",
208
207
  e.value.stopwatch.showHundredth,
209
208
  e.value.stopwatch.showHours
210
- ), j = i(!0), s = i(!1), v = i(!1);
211
- function B() {
212
- w("start"), j.value && x.start(), j.value = !1, s.value = !0;
209
+ ), B = v(!0), s = v(!1), f = v(!1);
210
+ function E() {
211
+ g("start"), B.value && I.start(), B.value = !1, s.value = !0;
213
212
  }
214
213
  function O() {
215
- s.value && (w("reset"), x.stop(), y.value = [], j.value = !0, s.value = !1);
216
- }
217
- function E() {
218
- v.value = !v.value, w("pause", f.value), x.pause();
214
+ s.value && (g("reset"), I.stop(), _.value = [], B.value = !0, s.value = !1);
219
215
  }
220
216
  function U() {
221
- s.value && (v.value = !1, w("restart"), y.value = [], x.restart());
217
+ f.value = !f.value, g("pause", y.value), I.pause();
218
+ }
219
+ function W() {
220
+ s.value && (f.value = !1, g("restart"), _.value = [], I.restart());
222
221
  }
223
- const y = i([]);
224
- async function A() {
225
- if (!s.value || v.value) return;
226
- const a = await x.lap();
227
- a && (y.value.push(a), w("lap", y.value));
222
+ const _ = v([]);
223
+ async function F() {
224
+ if (!s.value || f.value) return;
225
+ const a = await I.lap();
226
+ a && (_.value.push(a), g("lap", _.value));
228
227
  }
229
- function J({ timestamp: a, elapsed: u, formatted: c }) {
230
- f.value = { timestamp: a, elapsed: u, formatted: c };
228
+ function Z({ timestamp: a, elapsed: u, formatted: c }) {
229
+ y.value = { timestamp: a, elapsed: u, formatted: c };
231
230
  }
232
- const k = z(() => Math.min(t.value.width, t.value.height) / 2.5 * e.value.stopwatch.track.radiusRatio);
233
- function K(a, u) {
234
- const I = 360 / (u * 1e3);
235
- return a * I % 360;
231
+ const b = z(() => Math.min(t.value.width, t.value.height) / 2.5 * e.value.stopwatch.track.radiusRatio);
232
+ function ee(a, u) {
233
+ const R = 360 / (u * 1e3);
234
+ return a * R % 360;
236
235
  }
237
- function Q(a) {
238
- let u = a * (Math.PI / 180), c = t.value.width / 2 + k.value * Math.cos(u), I = t.value.height / 2 + k.value * Math.sin(u);
239
- return { cx: c, cy: I };
236
+ function te(a) {
237
+ let u = a * (Math.PI / 180), c = t.value.width / 2 + b.value * Math.cos(u), R = t.value.height / 2 + b.value * Math.sin(u);
238
+ return { cx: c, cy: R };
240
239
  }
241
- const b = z(() => {
242
- const a = K(f.value.elapsed, e.value.stopwatch.cycleSeconds), { cx: u, cy: c } = Q(a - 90), I = a > 180 ? 1 : 0;
240
+ const C = z(() => {
241
+ const a = ee(y.value.elapsed, e.value.stopwatch.cycleSeconds), { cx: u, cy: c } = te(a - 90), R = a > 180 ? 1 : 0;
243
242
  return {
244
243
  cx: u || t.value.width / 2,
245
- cy: c || t.value.height / 2 - k.value,
246
- largeArcFlag: I,
244
+ cy: c || t.value.height / 2 - b.value,
245
+ largeArcFlag: R,
247
246
  sweepFlag: 1
248
247
  };
249
248
  });
250
249
  return L({
251
- start: B,
252
- pause: E,
250
+ start: E,
251
+ pause: U,
253
252
  reset: O,
254
- restart: U,
255
- lap: A
256
- }), (a, u) => (l(), o("div", {
253
+ restart: W,
254
+ lap: F
255
+ }), (a, u) => (l(), r("div", {
257
256
  ref_key: "timerChart",
258
- ref: M,
257
+ ref: $,
259
258
  class: "vue-ui-timer",
260
- style: p({
259
+ style: w({
261
260
  fontFamily: e.value.style.fontFamily,
262
261
  width: "100%",
263
262
  height: e.value.responsive ? "100%" : "auto",
264
263
  textAlign: "center"
265
264
  })
266
265
  }, [
267
- e.value.style.title.text ? (l(), o("div", {
266
+ e.value.style.title.text ? (l(), r("div", {
268
267
  key: 0,
269
268
  ref_key: "chartTitle",
270
269
  ref: D,
271
- style: p({
270
+ style: w({
272
271
  width: "100%",
273
272
  background: e.value.style.backgroundColor
274
273
  })
275
274
  }, [
276
- (l(), ae(de, {
277
- key: `title_${n.value}`,
275
+ (l(), ue(we, {
276
+ key: `title_${k.value}`,
278
277
  config: {
279
278
  title: {
280
279
  cy: "title",
@@ -287,19 +286,19 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
287
286
  }
288
287
  }, null, 8, ["config"]))
289
288
  ], 4)) : d("", !0),
290
- (l(), o("svg", {
289
+ (l(), r("svg", {
291
290
  ref_key: "svgRef",
292
- ref: g,
293
- xmlns: se(ie),
291
+ ref: x,
292
+ xmlns: Q(de),
294
293
  viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
295
- style: p({
294
+ style: w({
296
295
  maxWidth: "100%",
297
296
  overflow: "visible",
298
297
  background: e.value.style.backgroundColor
299
298
  })
300
299
  }, [
301
- C(he),
302
- a.$slots["chart-background"] ? (l(), o("foreignObject", {
300
+ T(Q(S)),
301
+ a.$slots["chart-background"] ? (l(), r("foreignObject", {
303
302
  key: 0,
304
303
  x: 0,
305
304
  y: 0,
@@ -310,55 +309,55 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
310
309
  }
311
310
  }, [
312
311
  H(a.$slots, "chart-background", {}, void 0, !0)
313
- ], 8, ke)) : d("", !0),
314
- e.value.stopwatch.tracker.gradient.show ? (l(), o("defs", ge, [
315
- _("radialGradient", {
316
- id: `tracker_gradient_${T.value}`,
312
+ ], 8, ye)) : d("", !0),
313
+ e.value.stopwatch.tracker.gradient.show ? (l(), r("defs", be, [
314
+ M("radialGradient", {
315
+ id: `tracker_gradient_${h.value}`,
317
316
  cx: "50%",
318
317
  cy: "50%",
319
318
  r: "50%",
320
319
  fx: "50%",
321
320
  fy: "50%"
322
321
  }, [
323
- _("stop", {
322
+ M("stop", {
324
323
  offset: "0%",
325
324
  "stop-color": e.value.stopwatch.tracker.gradient.color
326
- }, null, 8, ye),
327
- _("stop", {
325
+ }, null, 8, Ce),
326
+ M("stop", {
328
327
  offset: "100%",
329
328
  "stop-color": e.value.stopwatch.tracker.fill
330
- }, null, 8, be)
331
- ], 8, me)
329
+ }, null, 8, Me)
330
+ ], 8, _e)
332
331
  ])) : d("", !0),
333
- _("circle", {
332
+ M("circle", {
334
333
  cx: t.value.width / 2,
335
334
  cy: t.value.height / 2,
336
- r: k.value,
335
+ r: b.value,
337
336
  fill: e.value.stopwatch.track.fill,
338
337
  stroke: e.value.stopwatch.track.stroke,
339
338
  "stroke-width": e.value.stopwatch.track.strokeWidth
340
- }, null, 8, _e),
341
- e.value.stopwatch.cycleTrack.show ? (l(), o("path", {
339
+ }, null, 8, Te),
340
+ e.value.stopwatch.cycleTrack.show ? (l(), r("path", {
342
341
  key: 2,
343
- d: `M ${t.value.width / 2},${t.value.height / 2 - k.value} A ${k.value},${k.value} 0 ${b.value.largeArcFlag},${b.value.sweepFlag} ${b.value.cx},${b.value.cy}`,
342
+ d: `M ${t.value.width / 2},${t.value.height / 2 - b.value} A ${b.value},${b.value} 0 ${C.value.largeArcFlag},${C.value.sweepFlag} ${C.value.cx},${C.value.cy}`,
344
343
  stroke: e.value.stopwatch.cycleTrack.stroke,
345
344
  "stroke-width": e.value.stopwatch.cycleTrack.strokeWidth,
346
345
  "stroke-linecap": "round",
347
346
  fill: "none"
348
- }, null, 8, Ce)) : d("", !0),
349
- _("circle", q(b.value, {
347
+ }, null, 8, $e)) : d("", !0),
348
+ M("circle", Y(C.value, {
350
349
  r: t.value.tracker.core,
351
- fill: e.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${T.value})` : e.value.stopwatch.tracker.fill,
350
+ fill: e.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${h.value})` : e.value.stopwatch.tracker.fill,
352
351
  stroke: e.value.stopwatch.tracker.stroke,
353
352
  "stroke-width": e.value.stopwatch.tracker.strokeWidth
354
- }), null, 16, Me),
355
- e.value.stopwatch.tracker.aura.show ? (l(), o("circle", q({ key: 3 }, b.value, {
353
+ }), null, 16, xe),
354
+ e.value.stopwatch.tracker.aura.show ? (l(), r("circle", Y({ key: 3 }, C.value, {
356
355
  r: t.value.tracker.aura,
357
356
  fill: `${e.value.stopwatch.tracker.aura.fill}20`,
358
357
  stroke: e.value.stopwatch.tracker.aura.stroke,
359
358
  "stroke-width": e.value.stopwatch.tracker.aura.strokeWidth
360
- }), null, 16, Te)) : d("", !0),
361
- a.$slots.time ? (l(), o("foreignObject", {
359
+ }), null, 16, Ie)) : d("", !0),
360
+ a.$slots.time ? (l(), r("foreignObject", {
362
361
  key: 4,
363
362
  x: t.value.width / 2,
364
363
  y: t.value.height / 2,
@@ -366,8 +365,8 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
366
365
  width: "0.1",
367
366
  style: { overflow: "visible" }
368
367
  }, [
369
- H(a.$slots, "time", W(G({ ...f.value })), void 0, !0)
370
- ], 8, $e)) : (l(), o("text", {
368
+ H(a.$slots, "time", V(G({ ...y.value })), void 0, !0)
369
+ ], 8, Re)) : (l(), r("text", {
371
370
  key: 5,
372
371
  x: t.value.width / 2,
373
372
  y: t.value.height / 2 + t.value.label / 4,
@@ -376,112 +375,112 @@ const we = ["xmlns", "viewBox"], ke = ["width", "height"], ge = { key: 1 }, me =
376
375
  fill: e.value.stopwatch.label.color,
377
376
  "font-weight": e.value.stopwatch.label.bold ? "bold" : "normal",
378
377
  style: { "font-variant-numeric": "tabular-nums !important" }
379
- }, le(f.value.formatted || $.value), 9, xe))
380
- ], 12, we)),
381
- _("div", {
378
+ }, ie(y.value.formatted || J.value), 9, Pe))
379
+ ], 12, me)),
380
+ M("div", {
382
381
  ref_key: "chartLegend",
383
- ref: F,
384
- style: p({ width: "100%", backgroundColor: e.value.stopwatch.legend.backgroundColor })
382
+ ref: i,
383
+ style: w({ width: "100%", backgroundColor: e.value.stopwatch.legend.backgroundColor })
385
384
  }, [
386
- a.$slots.controls ? d("", !0) : (l(), o("div", Ie, [
387
- e.value.stopwatch.legend.buttons.start ? (l(), o("button", {
385
+ a.$slots.controls ? d("", !0) : (l(), r("div", Se, [
386
+ e.value.stopwatch.legend.buttons.start ? (l(), r("button", {
388
387
  key: 0,
389
388
  title: e.value.stopwatch.legend.buttonTitles.start,
390
- onClick: B,
389
+ onClick: E,
391
390
  class: "vue-ui-timer-button",
392
- style: p({
391
+ style: w({
393
392
  opacity: s.value ? 0.2 : 1,
394
393
  cursor: s.value ? "default" : "pointer"
395
394
  })
396
395
  }, [
397
- C(R, {
396
+ T(P, {
398
397
  name: "play",
399
398
  stroke: e.value.stopwatch.legend.buttons.iconColor
400
399
  }, null, 8, ["stroke"])
401
- ], 12, Re)) : d("", !0),
402
- e.value.stopwatch.legend.buttons.pause ? (l(), o("button", {
400
+ ], 12, Ae)) : d("", !0),
401
+ e.value.stopwatch.legend.buttons.pause ? (l(), r("button", {
403
402
  key: 1,
404
- title: v.value ? e.value.stopwatch.legend.buttonTitles.resume : e.value.stopwatch.legend.buttonTitles.pause,
405
- onClick: E,
403
+ title: f.value ? e.value.stopwatch.legend.buttonTitles.resume : e.value.stopwatch.legend.buttonTitles.pause,
404
+ onClick: U,
406
405
  class: "vue-ui-timer-button",
407
- style: p({
406
+ style: w({
408
407
  opacity: s.value ? 1 : 0.2,
409
408
  cursor: s.value ? "pointer" : "default"
410
409
  })
411
410
  }, [
412
- C(R, {
411
+ T(P, {
413
412
  name: "pause",
414
413
  stroke: e.value.stopwatch.legend.buttons.iconColor
415
414
  }, null, 8, ["stroke"])
416
- ], 12, Pe)) : d("", !0),
417
- e.value.stopwatch.legend.buttons.reset ? (l(), o("button", {
415
+ ], 12, De)) : d("", !0),
416
+ e.value.stopwatch.legend.buttons.reset ? (l(), r("button", {
418
417
  key: 2,
419
418
  title: e.value.stopwatch.legend.buttonTitles.reset,
420
419
  onClick: O,
421
420
  class: "vue-ui-timer-button",
422
- style: p({
421
+ style: w({
423
422
  opacity: s.value ? 1 : 0.2,
424
423
  cursor: s.value ? "pointer" : "default"
425
424
  })
426
425
  }, [
427
- C(R, {
426
+ T(P, {
428
427
  name: "stop",
429
428
  stroke: e.value.stopwatch.legend.buttons.iconColor
430
429
  }, null, 8, ["stroke"])
431
- ], 12, Se)) : d("", !0),
432
- e.value.stopwatch.legend.buttons.restart ? (l(), o("button", {
430
+ ], 12, Fe)) : d("", !0),
431
+ e.value.stopwatch.legend.buttons.restart ? (l(), r("button", {
433
432
  key: 3,
434
433
  title: e.value.stopwatch.legend.buttonTitles.restart,
435
- onClick: U,
434
+ onClick: W,
436
435
  class: "vue-ui-timer-button",
437
- style: p({
436
+ style: w({
438
437
  opacity: s.value ? 1 : 0.2,
439
438
  cursor: s.value ? "pointer" : "default"
440
439
  })
441
440
  }, [
442
- C(R, {
441
+ T(P, {
443
442
  name: "restart",
444
443
  stroke: e.value.stopwatch.legend.buttons.iconColor
445
444
  }, null, 8, ["stroke"])
446
- ], 12, De)) : d("", !0),
447
- e.value.stopwatch.legend.buttons.lap ? (l(), o("button", {
445
+ ], 12, ze)) : d("", !0),
446
+ e.value.stopwatch.legend.buttons.lap ? (l(), r("button", {
448
447
  key: 4,
449
448
  title: e.value.stopwatch.legend.buttonTitles.lap,
450
- onClick: A,
449
+ onClick: F,
451
450
  class: "vue-ui-timer-button",
452
- style: p({
453
- opacity: s.value && !v.value ? 1 : 0.2,
454
- cursor: s.value && !v.value ? "pointer" : "default"
451
+ style: w({
452
+ opacity: s.value && !f.value ? 1 : 0.2,
453
+ cursor: s.value && !f.value ? "pointer" : "default"
455
454
  })
456
455
  }, [
457
- C(R, {
456
+ T(P, {
458
457
  name: "lap",
459
458
  stroke: e.value.stopwatch.legend.buttons.iconColor
460
459
  }, null, 8, ["stroke"])
461
- ], 12, Fe)) : d("", !0)
460
+ ], 12, He)) : d("", !0)
462
461
  ])),
463
- H(a.$slots, "controls", W(G({
464
- start: B,
465
- pause: E,
462
+ H(a.$slots, "controls", V(G({
463
+ start: E,
464
+ pause: U,
466
465
  reset: O,
467
- restart: U,
468
- lap: A,
469
- laps: y.value,
466
+ restart: W,
467
+ lap: F,
468
+ laps: _.value,
470
469
  isRunning: s.value,
471
- isPaused: v.value,
472
- ...f.value
470
+ isPaused: f.value,
471
+ ...y.value
473
472
  })), void 0, !0),
474
- H(a.$slots, "laps", W(G({
475
- laps: y.value,
476
- lap: A,
473
+ H(a.$slots, "laps", V(G({
474
+ laps: _.value,
475
+ lap: F,
477
476
  isRunning: s.value,
478
- isPaused: v.value,
479
- ...f.value
477
+ isPaused: f.value,
478
+ ...y.value
480
479
  })), void 0, !0)
481
480
  ], 4)
482
481
  ], 4));
483
482
  }
484
- }, We = /* @__PURE__ */ pe(Ae, [["__scopeId", "data-v-19145f1f"]]);
483
+ }, Ge = /* @__PURE__ */ ke(Le, [["__scopeId", "data-v-acc8295e"]]);
485
484
  export {
486
- We as default
485
+ Ge as default
487
486
  };