vue-data-ui 2.6.5 → 2.6.7
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.
- package/dist/{Arrow-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
- package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
- package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
- package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
- package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
- package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
- package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
- package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
- package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
- package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
- package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
- package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
- package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
- package/dist/Shape-D_1vUjCL.cjs +1 -0
- package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
- package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
- package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
- package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
- package/dist/Tooltip-ClMeqejQ.cjs +1 -0
- package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
- package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
- package/dist/index-DEnRHTzk.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +89 -62
- package/dist/types/vue-data-ui.d.ts +89 -62
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
- package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
- package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
- package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
- package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
- package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
- package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
- package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
- package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
- package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
- package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
- package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
- package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
- package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
- package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
- package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
- package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
- package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
- package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
- package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
- package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
- package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
- package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
- package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
- package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
- package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
- package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
- package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
- package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
- package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
- package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
- package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
- package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
- package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
- package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
- package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
- package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
- package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
- package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
- package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
- package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
- package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
- package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
- package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
- package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
- package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
- package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
- package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
- package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
- package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
- package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
- package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
- package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
- package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
- package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
- package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
- package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
- package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
- package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
- package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
- package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
- package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
- package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
- package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
- package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
- package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
- package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
- package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
- package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
- package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
- package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
- package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
- package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
- package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
- package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
- package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
- package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
- package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
- package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
- package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
- package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
- package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
- package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
- package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
- package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
- package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
- package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
- package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
- package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
- package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
- package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
- package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
- package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
- package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
- package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
- package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
- package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
- package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
- package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
- package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
- package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
- package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
- package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
- package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
- package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
- package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
- package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-GAZUIBfN.cjs +0 -1
- package/dist/Tooltip-BlGVq6xj.cjs +0 -1
- package/dist/index-DSGAenF3.cjs +0 -9
- package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
- package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
- package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
- package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
- package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
- package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
- package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
- package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
- package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
- package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
- package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
- package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
- package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
- package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
- package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
- package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
- package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
- package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
- package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
- package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
- package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
- package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
- package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
- package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
- package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
- package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
- package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
- package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
- package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
- package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
- package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
- package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
- package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
- package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
- package/dist/vue-ui-xy-mEVVQr_U.cjs +0 -3
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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-df_bKQEI.js";
|
|
3
|
+
import { u as re, c as ue, X as ie, F as V } from "./index-9EeNZMz1.js";
|
|
4
|
+
import { t as ne, u as ce } from "./useResponsive-BWapHhVH.js";
|
|
5
|
+
import R from "./BaseIcon-CDx9pxUG.js";
|
|
6
|
+
import { _ as de } from "./Title-BI8etrRU.js";
|
|
7
|
+
import { _ as he } from "./PackageVersion-QRvxRYPv.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) {
|
|
12
|
+
this.interval = N, this.elapsed = 0, this.isPaused = !1;
|
|
13
|
+
const M = `
|
|
13
14
|
let interval;
|
|
14
15
|
let elapsed = 0;
|
|
15
16
|
let paused = false;
|
|
@@ -72,53 +73,53 @@ class ve {
|
|
|
72
73
|
break;
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
|
-
`,
|
|
76
|
-
function T(
|
|
77
|
-
let
|
|
78
|
-
return w && (
|
|
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;
|
|
79
80
|
}
|
|
80
81
|
this.start = () => {
|
|
81
|
-
this.isPaused = !1,
|
|
82
|
+
this.isPaused = !1, r.postMessage({ action: "start", data: { interval: this.interval } });
|
|
82
83
|
}, this.pause = () => {
|
|
83
|
-
this.isPaused ? this.resume() : (this.isPaused = !0,
|
|
84
|
+
this.isPaused ? this.resume() : (this.isPaused = !0, r.postMessage({ action: "pause" }));
|
|
84
85
|
}, this.resume = () => {
|
|
85
|
-
this.isPaused && (
|
|
86
|
+
this.isPaused && (r.postMessage({ action: "resume" }), this.isPaused = !1);
|
|
86
87
|
}, this.stop = () => {
|
|
87
|
-
|
|
88
|
+
r.postMessage({ action: "stop" }), this.isPaused = !1;
|
|
88
89
|
}, this.reset = () => {
|
|
89
|
-
|
|
90
|
+
r.postMessage({ action: "reset" }), this.elapsed = 0, this.isPaused = !1;
|
|
90
91
|
}, this.restart = () => {
|
|
91
92
|
this.stop(), this.start();
|
|
92
|
-
}, this.lap = () => new Promise((
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
const { elapsed:
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
timestamp:
|
|
100
|
-
elapsed:
|
|
101
|
-
formatted:
|
|
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
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
105
|
};
|
|
105
|
-
|
|
106
|
-
}),
|
|
107
|
-
const { elapsed:
|
|
108
|
-
this.elapsed =
|
|
106
|
+
r.addEventListener("message", h, { once: !0 });
|
|
107
|
+
}), r.onmessage = (n) => {
|
|
108
|
+
const { elapsed: h, timestamp: e } = n.data;
|
|
109
|
+
this.elapsed = h, L({
|
|
109
110
|
timestamp: e || 0,
|
|
110
111
|
elapsed: this.elapsed,
|
|
111
112
|
formatted: T(this.elapsed)
|
|
112
113
|
});
|
|
113
|
-
},
|
|
114
|
-
P && P(
|
|
114
|
+
}, r.onerror = (n) => {
|
|
115
|
+
P && P(n);
|
|
115
116
|
};
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
|
-
const
|
|
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 = {
|
|
119
120
|
key: 0,
|
|
120
121
|
class: "vue-ui-timer-controls"
|
|
121
|
-
},
|
|
122
|
+
}, Re = ["title"], Pe = ["title"], Se = ["title"], De = ["title"], Fe = ["title"], Ae = {
|
|
122
123
|
__name: "vue-ui-timer",
|
|
123
124
|
props: {
|
|
124
125
|
config: {
|
|
@@ -129,34 +130,34 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
129
130
|
}
|
|
130
131
|
},
|
|
131
132
|
emits: ["start", "pause", "reset", "restart", "lap"],
|
|
132
|
-
setup(
|
|
133
|
-
const { vue_ui_timer: P } =
|
|
134
|
-
|
|
135
|
-
|
|
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();
|
|
136
137
|
});
|
|
137
|
-
function
|
|
138
|
+
function h() {
|
|
138
139
|
if (e.value.responsive) {
|
|
139
|
-
const a =
|
|
140
|
-
const { width:
|
|
141
|
-
chart:
|
|
142
|
-
title: e.value.style.title.text ?
|
|
143
|
-
legend:
|
|
140
|
+
const a = ne(() => {
|
|
141
|
+
const { width: u, height: c } = ce({
|
|
142
|
+
chart: M.value,
|
|
143
|
+
title: e.value.style.title.text ? D.value : null,
|
|
144
|
+
legend: F.value
|
|
144
145
|
});
|
|
145
146
|
requestAnimationFrame(() => {
|
|
146
|
-
t.value.width =
|
|
147
|
-
relator: Math.min(
|
|
147
|
+
t.value.width = u, t.value.height = c, t.value.tracker.core = V({
|
|
148
|
+
relator: Math.min(u, c),
|
|
148
149
|
adjuster: e.value.style.width,
|
|
149
150
|
source: 6 * e.value.stopwatch.tracker.radiusRatio,
|
|
150
151
|
threshold: 1,
|
|
151
152
|
fallback: 1
|
|
152
|
-
}), t.value.tracker.aura =
|
|
153
|
-
relator: Math.min(
|
|
153
|
+
}), t.value.tracker.aura = V({
|
|
154
|
+
relator: Math.min(u, c),
|
|
154
155
|
adjuster: e.value.style.width,
|
|
155
156
|
source: 12 * e.value.stopwatch.tracker.aura.radiusRatio,
|
|
156
157
|
threshold: 1,
|
|
157
158
|
fallback: 1
|
|
158
|
-
}), t.value.label =
|
|
159
|
-
relator: Math.min(
|
|
159
|
+
}), t.value.label = V({
|
|
160
|
+
relator: Math.min(u, c),
|
|
160
161
|
adjuster: e.value.style.width,
|
|
161
162
|
source: e.value.stopwatch.label.fontSize,
|
|
162
163
|
threshold: 10,
|
|
@@ -164,26 +165,26 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
164
165
|
});
|
|
165
166
|
});
|
|
166
167
|
});
|
|
167
|
-
|
|
168
|
+
r.value = new ResizeObserver(a), r.value.observe(M.value.parentNode);
|
|
168
169
|
}
|
|
169
170
|
}
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
ee(() => {
|
|
172
|
+
r.value && r.value.disconnect();
|
|
172
173
|
});
|
|
173
|
-
const e =
|
|
174
|
-
get: () =>
|
|
174
|
+
const e = z({
|
|
175
|
+
get: () => m(),
|
|
175
176
|
set: (a) => a
|
|
176
|
-
});
|
|
177
|
-
function
|
|
178
|
-
return
|
|
177
|
+
}), { svgRef: g } = ve({ config: e.value.style.title });
|
|
178
|
+
function m() {
|
|
179
|
+
return oe({
|
|
179
180
|
userConfig: S.config,
|
|
180
181
|
defaultConfig: P
|
|
181
182
|
});
|
|
182
183
|
}
|
|
183
|
-
|
|
184
|
-
e.value =
|
|
184
|
+
te(() => S.config, (a) => {
|
|
185
|
+
e.value = m(), h(), n.value += 1;
|
|
185
186
|
}, { deep: !0 });
|
|
186
|
-
const $ =
|
|
187
|
+
const $ = z(() => {
|
|
187
188
|
if (e.value.stopwatch.showHours && e.value.stopwatch.showHundredth)
|
|
188
189
|
return "00:00:00.00";
|
|
189
190
|
if (e.value.stopwatch.showHours && !e.value.stopwatch.showHundredth)
|
|
@@ -192,7 +193,7 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
192
193
|
return "00:00.00";
|
|
193
194
|
if (!e.value.stopwatch.showHours && !e.value.stopwatch.showHundredth)
|
|
194
195
|
return "00:00";
|
|
195
|
-
}), t =
|
|
196
|
+
}), t = i({
|
|
196
197
|
height: e.value.style.height,
|
|
197
198
|
width: e.value.style.width,
|
|
198
199
|
tracker: {
|
|
@@ -200,80 +201,80 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
200
201
|
aura: 12 * e.value.stopwatch.tracker.aura.radiusRatio
|
|
201
202
|
},
|
|
202
203
|
label: e.value.stopwatch.label.fontSize
|
|
203
|
-
}),
|
|
204
|
-
(a) =>
|
|
204
|
+
}), f = i(0), x = new fe(
|
|
205
|
+
(a) => J(a),
|
|
205
206
|
10,
|
|
206
207
|
"",
|
|
207
208
|
e.value.stopwatch.showHundredth,
|
|
208
209
|
e.value.stopwatch.showHours
|
|
209
|
-
),
|
|
210
|
-
function j() {
|
|
211
|
-
w("start"), N.value && m.start(), N.value = !1, s.value = !0;
|
|
212
|
-
}
|
|
210
|
+
), j = i(!0), s = i(!1), v = i(!1);
|
|
213
211
|
function B() {
|
|
214
|
-
|
|
212
|
+
w("start"), j.value && x.start(), j.value = !1, s.value = !0;
|
|
215
213
|
}
|
|
216
214
|
function O() {
|
|
217
|
-
|
|
215
|
+
s.value && (w("reset"), x.stop(), y.value = [], j.value = !0, s.value = !1);
|
|
218
216
|
}
|
|
219
217
|
function E() {
|
|
220
|
-
|
|
218
|
+
v.value = !v.value, w("pause", f.value), x.pause();
|
|
221
219
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
function U() {
|
|
221
|
+
s.value && (v.value = !1, w("restart"), y.value = [], x.restart());
|
|
222
|
+
}
|
|
223
|
+
const y = i([]);
|
|
224
|
+
async function A() {
|
|
225
|
+
if (!s.value || v.value) return;
|
|
226
|
+
const a = await x.lap();
|
|
226
227
|
a && (y.value.push(a), w("lap", y.value));
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
229
|
+
function J({ timestamp: a, elapsed: u, formatted: c }) {
|
|
230
|
+
f.value = { timestamp: a, elapsed: u, formatted: c };
|
|
230
231
|
}
|
|
231
|
-
const
|
|
232
|
-
function
|
|
233
|
-
const
|
|
234
|
-
return a *
|
|
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;
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
-
let
|
|
238
|
-
return { cx:
|
|
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 };
|
|
239
240
|
}
|
|
240
|
-
const b =
|
|
241
|
-
const a =
|
|
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;
|
|
242
243
|
return {
|
|
243
|
-
cx:
|
|
244
|
-
cy:
|
|
245
|
-
largeArcFlag:
|
|
244
|
+
cx: u || t.value.width / 2,
|
|
245
|
+
cy: c || t.value.height / 2 - k.value,
|
|
246
|
+
largeArcFlag: I,
|
|
246
247
|
sweepFlag: 1
|
|
247
248
|
};
|
|
248
249
|
});
|
|
249
|
-
return
|
|
250
|
-
start:
|
|
251
|
-
pause:
|
|
252
|
-
reset:
|
|
253
|
-
restart:
|
|
254
|
-
lap:
|
|
255
|
-
}), (a,
|
|
250
|
+
return L({
|
|
251
|
+
start: B,
|
|
252
|
+
pause: E,
|
|
253
|
+
reset: O,
|
|
254
|
+
restart: U,
|
|
255
|
+
lap: A
|
|
256
|
+
}), (a, u) => (l(), o("div", {
|
|
256
257
|
ref_key: "timerChart",
|
|
257
|
-
ref:
|
|
258
|
+
ref: M,
|
|
258
259
|
class: "vue-ui-timer",
|
|
259
|
-
style:
|
|
260
|
+
style: p({
|
|
260
261
|
fontFamily: e.value.style.fontFamily,
|
|
261
262
|
width: "100%",
|
|
262
263
|
height: e.value.responsive ? "100%" : "auto",
|
|
263
264
|
textAlign: "center"
|
|
264
265
|
})
|
|
265
266
|
}, [
|
|
266
|
-
e.value.style.title.text ? (l(),
|
|
267
|
+
e.value.style.title.text ? (l(), o("div", {
|
|
267
268
|
key: 0,
|
|
268
269
|
ref_key: "chartTitle",
|
|
269
|
-
ref:
|
|
270
|
-
style:
|
|
270
|
+
ref: D,
|
|
271
|
+
style: p({
|
|
271
272
|
width: "100%",
|
|
272
273
|
background: e.value.style.backgroundColor
|
|
273
274
|
})
|
|
274
275
|
}, [
|
|
275
|
-
(l(),
|
|
276
|
-
key: `title_${
|
|
276
|
+
(l(), ae(de, {
|
|
277
|
+
key: `title_${n.value}`,
|
|
277
278
|
config: {
|
|
278
279
|
title: {
|
|
279
280
|
cy: "title",
|
|
@@ -285,18 +286,20 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
285
286
|
}
|
|
286
287
|
}
|
|
287
288
|
}, null, 8, ["config"]))
|
|
288
|
-
], 4)) :
|
|
289
|
-
(l(),
|
|
290
|
-
|
|
289
|
+
], 4)) : d("", !0),
|
|
290
|
+
(l(), o("svg", {
|
|
291
|
+
ref_key: "svgRef",
|
|
292
|
+
ref: g,
|
|
293
|
+
xmlns: se(ie),
|
|
291
294
|
viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
|
|
292
|
-
style:
|
|
295
|
+
style: p({
|
|
293
296
|
maxWidth: "100%",
|
|
294
297
|
overflow: "visible",
|
|
295
298
|
background: e.value.style.backgroundColor
|
|
296
299
|
})
|
|
297
300
|
}, [
|
|
298
|
-
|
|
299
|
-
a.$slots["chart-background"] ? (l(),
|
|
301
|
+
C(he),
|
|
302
|
+
a.$slots["chart-background"] ? (l(), o("foreignObject", {
|
|
300
303
|
key: 0,
|
|
301
304
|
x: 0,
|
|
302
305
|
y: 0,
|
|
@@ -306,9 +309,9 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
306
309
|
pointerEvents: "none"
|
|
307
310
|
}
|
|
308
311
|
}, [
|
|
309
|
-
|
|
310
|
-
], 8,
|
|
311
|
-
e.value.stopwatch.tracker.gradient.show ? (l(),
|
|
312
|
+
H(a.$slots, "chart-background", {}, void 0, !0)
|
|
313
|
+
], 8, ke)) : d("", !0),
|
|
314
|
+
e.value.stopwatch.tracker.gradient.show ? (l(), o("defs", ge, [
|
|
312
315
|
_("radialGradient", {
|
|
313
316
|
id: `tracker_gradient_${T.value}`,
|
|
314
317
|
cx: "50%",
|
|
@@ -320,42 +323,42 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
320
323
|
_("stop", {
|
|
321
324
|
offset: "0%",
|
|
322
325
|
"stop-color": e.value.stopwatch.tracker.gradient.color
|
|
323
|
-
}, null, 8,
|
|
326
|
+
}, null, 8, ye),
|
|
324
327
|
_("stop", {
|
|
325
328
|
offset: "100%",
|
|
326
329
|
"stop-color": e.value.stopwatch.tracker.fill
|
|
327
|
-
}, null, 8,
|
|
328
|
-
], 8,
|
|
329
|
-
])) :
|
|
330
|
+
}, null, 8, be)
|
|
331
|
+
], 8, me)
|
|
332
|
+
])) : d("", !0),
|
|
330
333
|
_("circle", {
|
|
331
334
|
cx: t.value.width / 2,
|
|
332
335
|
cy: t.value.height / 2,
|
|
333
|
-
r:
|
|
336
|
+
r: k.value,
|
|
334
337
|
fill: e.value.stopwatch.track.fill,
|
|
335
338
|
stroke: e.value.stopwatch.track.stroke,
|
|
336
339
|
"stroke-width": e.value.stopwatch.track.strokeWidth
|
|
337
|
-
}, null, 8,
|
|
338
|
-
e.value.stopwatch.cycleTrack.show ? (l(),
|
|
340
|
+
}, null, 8, _e),
|
|
341
|
+
e.value.stopwatch.cycleTrack.show ? (l(), o("path", {
|
|
339
342
|
key: 2,
|
|
340
|
-
d: `M ${t.value.width / 2},${t.value.height / 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}`,
|
|
341
344
|
stroke: e.value.stopwatch.cycleTrack.stroke,
|
|
342
345
|
"stroke-width": e.value.stopwatch.cycleTrack.strokeWidth,
|
|
343
346
|
"stroke-linecap": "round",
|
|
344
347
|
fill: "none"
|
|
345
|
-
}, null, 8,
|
|
346
|
-
_("circle",
|
|
348
|
+
}, null, 8, Ce)) : d("", !0),
|
|
349
|
+
_("circle", q(b.value, {
|
|
347
350
|
r: t.value.tracker.core,
|
|
348
351
|
fill: e.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${T.value})` : e.value.stopwatch.tracker.fill,
|
|
349
352
|
stroke: e.value.stopwatch.tracker.stroke,
|
|
350
353
|
"stroke-width": e.value.stopwatch.tracker.strokeWidth
|
|
351
|
-
}), null, 16,
|
|
352
|
-
e.value.stopwatch.tracker.aura.show ? (l(),
|
|
354
|
+
}), null, 16, Me),
|
|
355
|
+
e.value.stopwatch.tracker.aura.show ? (l(), o("circle", q({ key: 3 }, b.value, {
|
|
353
356
|
r: t.value.tracker.aura,
|
|
354
357
|
fill: `${e.value.stopwatch.tracker.aura.fill}20`,
|
|
355
358
|
stroke: e.value.stopwatch.tracker.aura.stroke,
|
|
356
359
|
"stroke-width": e.value.stopwatch.tracker.aura.strokeWidth
|
|
357
|
-
}), null, 16,
|
|
358
|
-
a.$slots.time ? (l(),
|
|
360
|
+
}), null, 16, Te)) : d("", !0),
|
|
361
|
+
a.$slots.time ? (l(), o("foreignObject", {
|
|
359
362
|
key: 4,
|
|
360
363
|
x: t.value.width / 2,
|
|
361
364
|
y: t.value.height / 2,
|
|
@@ -363,8 +366,8 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
363
366
|
width: "0.1",
|
|
364
367
|
style: { overflow: "visible" }
|
|
365
368
|
}, [
|
|
366
|
-
|
|
367
|
-
], 8,
|
|
369
|
+
H(a.$slots, "time", W(G({ ...f.value })), void 0, !0)
|
|
370
|
+
], 8, $e)) : (l(), o("text", {
|
|
368
371
|
key: 5,
|
|
369
372
|
x: t.value.width / 2,
|
|
370
373
|
y: t.value.height / 2 + t.value.label / 4,
|
|
@@ -373,112 +376,112 @@ const pe = ["xmlns", "viewBox"], fe = ["width", "height"], we = { key: 1 }, ke =
|
|
|
373
376
|
fill: e.value.stopwatch.label.color,
|
|
374
377
|
"font-weight": e.value.stopwatch.label.bold ? "bold" : "normal",
|
|
375
378
|
style: { "font-variant-numeric": "tabular-nums !important" }
|
|
376
|
-
},
|
|
377
|
-
], 12,
|
|
379
|
+
}, le(f.value.formatted || $.value), 9, xe))
|
|
380
|
+
], 12, we)),
|
|
378
381
|
_("div", {
|
|
379
382
|
ref_key: "chartLegend",
|
|
380
|
-
ref:
|
|
381
|
-
style:
|
|
383
|
+
ref: F,
|
|
384
|
+
style: p({ width: "100%", backgroundColor: e.value.stopwatch.legend.backgroundColor })
|
|
382
385
|
}, [
|
|
383
|
-
a.$slots.controls ?
|
|
384
|
-
e.value.stopwatch.legend.buttons.start ? (l(),
|
|
386
|
+
a.$slots.controls ? d("", !0) : (l(), o("div", Ie, [
|
|
387
|
+
e.value.stopwatch.legend.buttons.start ? (l(), o("button", {
|
|
385
388
|
key: 0,
|
|
386
389
|
title: e.value.stopwatch.legend.buttonTitles.start,
|
|
387
|
-
onClick:
|
|
390
|
+
onClick: B,
|
|
388
391
|
class: "vue-ui-timer-button",
|
|
389
|
-
style:
|
|
392
|
+
style: p({
|
|
390
393
|
opacity: s.value ? 0.2 : 1,
|
|
391
394
|
cursor: s.value ? "default" : "pointer"
|
|
392
395
|
})
|
|
393
396
|
}, [
|
|
394
|
-
|
|
397
|
+
C(R, {
|
|
395
398
|
name: "play",
|
|
396
399
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
397
400
|
}, null, 8, ["stroke"])
|
|
398
|
-
], 12,
|
|
399
|
-
e.value.stopwatch.legend.buttons.pause ? (l(),
|
|
401
|
+
], 12, Re)) : d("", !0),
|
|
402
|
+
e.value.stopwatch.legend.buttons.pause ? (l(), o("button", {
|
|
400
403
|
key: 1,
|
|
401
|
-
title:
|
|
402
|
-
onClick:
|
|
404
|
+
title: v.value ? e.value.stopwatch.legend.buttonTitles.resume : e.value.stopwatch.legend.buttonTitles.pause,
|
|
405
|
+
onClick: E,
|
|
403
406
|
class: "vue-ui-timer-button",
|
|
404
|
-
style:
|
|
407
|
+
style: p({
|
|
405
408
|
opacity: s.value ? 1 : 0.2,
|
|
406
409
|
cursor: s.value ? "pointer" : "default"
|
|
407
410
|
})
|
|
408
411
|
}, [
|
|
409
|
-
|
|
412
|
+
C(R, {
|
|
410
413
|
name: "pause",
|
|
411
414
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
412
415
|
}, null, 8, ["stroke"])
|
|
413
|
-
], 12,
|
|
414
|
-
e.value.stopwatch.legend.buttons.reset ? (l(),
|
|
416
|
+
], 12, Pe)) : d("", !0),
|
|
417
|
+
e.value.stopwatch.legend.buttons.reset ? (l(), o("button", {
|
|
415
418
|
key: 2,
|
|
416
419
|
title: e.value.stopwatch.legend.buttonTitles.reset,
|
|
417
|
-
onClick:
|
|
420
|
+
onClick: O,
|
|
418
421
|
class: "vue-ui-timer-button",
|
|
419
|
-
style:
|
|
422
|
+
style: p({
|
|
420
423
|
opacity: s.value ? 1 : 0.2,
|
|
421
424
|
cursor: s.value ? "pointer" : "default"
|
|
422
425
|
})
|
|
423
426
|
}, [
|
|
424
|
-
|
|
427
|
+
C(R, {
|
|
425
428
|
name: "stop",
|
|
426
429
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
427
430
|
}, null, 8, ["stroke"])
|
|
428
|
-
], 12,
|
|
429
|
-
e.value.stopwatch.legend.buttons.restart ? (l(),
|
|
431
|
+
], 12, Se)) : d("", !0),
|
|
432
|
+
e.value.stopwatch.legend.buttons.restart ? (l(), o("button", {
|
|
430
433
|
key: 3,
|
|
431
434
|
title: e.value.stopwatch.legend.buttonTitles.restart,
|
|
432
|
-
onClick:
|
|
435
|
+
onClick: U,
|
|
433
436
|
class: "vue-ui-timer-button",
|
|
434
|
-
style:
|
|
437
|
+
style: p({
|
|
435
438
|
opacity: s.value ? 1 : 0.2,
|
|
436
439
|
cursor: s.value ? "pointer" : "default"
|
|
437
440
|
})
|
|
438
441
|
}, [
|
|
439
|
-
|
|
442
|
+
C(R, {
|
|
440
443
|
name: "restart",
|
|
441
444
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
442
445
|
}, null, 8, ["stroke"])
|
|
443
|
-
], 12,
|
|
444
|
-
e.value.stopwatch.legend.buttons.lap ? (l(),
|
|
446
|
+
], 12, De)) : d("", !0),
|
|
447
|
+
e.value.stopwatch.legend.buttons.lap ? (l(), o("button", {
|
|
445
448
|
key: 4,
|
|
446
449
|
title: e.value.stopwatch.legend.buttonTitles.lap,
|
|
447
|
-
onClick:
|
|
450
|
+
onClick: A,
|
|
448
451
|
class: "vue-ui-timer-button",
|
|
449
|
-
style:
|
|
450
|
-
opacity: s.value && !
|
|
451
|
-
cursor: s.value && !
|
|
452
|
+
style: p({
|
|
453
|
+
opacity: s.value && !v.value ? 1 : 0.2,
|
|
454
|
+
cursor: s.value && !v.value ? "pointer" : "default"
|
|
452
455
|
})
|
|
453
456
|
}, [
|
|
454
|
-
|
|
457
|
+
C(R, {
|
|
455
458
|
name: "lap",
|
|
456
459
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
457
460
|
}, null, 8, ["stroke"])
|
|
458
|
-
], 12,
|
|
461
|
+
], 12, Fe)) : d("", !0)
|
|
459
462
|
])),
|
|
460
|
-
|
|
461
|
-
start:
|
|
462
|
-
pause:
|
|
463
|
-
reset:
|
|
464
|
-
restart:
|
|
465
|
-
lap:
|
|
463
|
+
H(a.$slots, "controls", W(G({
|
|
464
|
+
start: B,
|
|
465
|
+
pause: E,
|
|
466
|
+
reset: O,
|
|
467
|
+
restart: U,
|
|
468
|
+
lap: A,
|
|
466
469
|
laps: y.value,
|
|
467
470
|
isRunning: s.value,
|
|
468
|
-
isPaused:
|
|
469
|
-
...
|
|
471
|
+
isPaused: v.value,
|
|
472
|
+
...f.value
|
|
470
473
|
})), void 0, !0),
|
|
471
|
-
|
|
474
|
+
H(a.$slots, "laps", W(G({
|
|
472
475
|
laps: y.value,
|
|
473
|
-
lap:
|
|
476
|
+
lap: A,
|
|
474
477
|
isRunning: s.value,
|
|
475
|
-
isPaused:
|
|
476
|
-
...
|
|
478
|
+
isPaused: v.value,
|
|
479
|
+
...f.value
|
|
477
480
|
})), void 0, !0)
|
|
478
481
|
], 4)
|
|
479
482
|
], 4));
|
|
480
483
|
}
|
|
481
|
-
},
|
|
484
|
+
}, We = /* @__PURE__ */ pe(Ae, [["__scopeId", "data-v-19145f1f"]]);
|
|
482
485
|
export {
|
|
483
|
-
|
|
486
|
+
We as default
|
|
484
487
|
};
|