vue-data-ui 2.3.73 → 2.3.75
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-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
- package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
- package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
- package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
- package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
- package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
- package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
- package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
- package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
- package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
- package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
- package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
- package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
- package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
- package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
- package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
- package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
- package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
- package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
- package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
- package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
- package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
- package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
- package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
- package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
- package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
- package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
- package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
- package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
- package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
- package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
- package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
- package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
- package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
- package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
- package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
- package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
- package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
- package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
- package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
- package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
- package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
- package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
class
|
|
9
|
-
constructor(
|
|
10
|
-
this.interval =
|
|
11
|
-
const
|
|
1
|
+
import { ref as n, onMounted as Q, onBeforeUnmount as Y, computed as z, watch as Z, openBlock as l, createElementBlock as r, normalizeStyle as f, createBlock as ee, createCommentVNode as v, unref as te, createElementVNode as M, mergeProps as V, renderSlot as O, normalizeProps as U, guardReactiveProps as E, toDisplayString as ae, createVNode as $ } from "vue";
|
|
2
|
+
import { u as se } from "./useNestedProp-CurQIHTa.js";
|
|
3
|
+
import { u as le, c as oe, X as re, D as W } from "./index-Cm4Iry5c.js";
|
|
4
|
+
import { t as ue, u as ie } from "./useResponsive-NZB-WLRF.js";
|
|
5
|
+
import P from "./BaseIcon-BAOfPaXs.js";
|
|
6
|
+
import { _ as ne } from "./Title-C26I_HC3.js";
|
|
7
|
+
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
class de {
|
|
9
|
+
constructor(A, k, C, H = !0, T = !0) {
|
|
10
|
+
this.interval = k, this.elapsed = 0, this.isPaused = !1;
|
|
11
|
+
const S = `
|
|
12
12
|
let interval;
|
|
13
13
|
let elapsed = 0;
|
|
14
14
|
let paused = false;
|
|
@@ -71,53 +71,53 @@ class re {
|
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
`,
|
|
75
|
-
function
|
|
76
|
-
let
|
|
77
|
-
return
|
|
74
|
+
`, R = new Blob([S], { type: "application/javascript" }), m = URL.createObjectURL(R), i = new Worker(m);
|
|
75
|
+
function x(c) {
|
|
76
|
+
let e = Math.floor(c / 1e3), w = Math.floor(c % 1e3 / 10), y = Math.floor(e / 3600), t = Math.floor(e % 3600 / 60), d = e % 60, u = "";
|
|
77
|
+
return T && (u += String(y).padStart(2, "0") + ":"), u += String(t).padStart(2, "0") + ":", u += String(d).padStart(2, "0"), H && (u += "." + String(w).padStart(2, "0")), u;
|
|
78
78
|
}
|
|
79
79
|
this.start = () => {
|
|
80
|
-
this.isPaused = !1,
|
|
80
|
+
this.isPaused = !1, i.postMessage({ action: "start", data: { interval: this.interval } });
|
|
81
81
|
}, this.pause = () => {
|
|
82
|
-
this.isPaused ? this.resume() : (this.isPaused = !0,
|
|
82
|
+
this.isPaused ? this.resume() : (this.isPaused = !0, i.postMessage({ action: "pause" }));
|
|
83
83
|
}, this.resume = () => {
|
|
84
|
-
this.isPaused && (
|
|
84
|
+
this.isPaused && (i.postMessage({ action: "resume" }), this.isPaused = !1);
|
|
85
85
|
}, this.stop = () => {
|
|
86
|
-
|
|
86
|
+
i.postMessage({ action: "stop" }), this.isPaused = !1;
|
|
87
87
|
}, this.reset = () => {
|
|
88
|
-
|
|
88
|
+
i.postMessage({ action: "reset" }), this.elapsed = 0, this.isPaused = !1;
|
|
89
89
|
}, this.restart = () => {
|
|
90
90
|
this.stop(), this.start();
|
|
91
|
-
}, this.lap = () => new Promise((
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
const { elapsed:
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
timestamp:
|
|
99
|
-
elapsed:
|
|
100
|
-
formatted:
|
|
91
|
+
}, this.lap = () => new Promise((c) => {
|
|
92
|
+
i.postMessage({ action: "lap" });
|
|
93
|
+
const e = (w) => {
|
|
94
|
+
const { elapsed: y, timestamp: t, action: d } = w.data;
|
|
95
|
+
if (d === "lap") {
|
|
96
|
+
const u = x(y);
|
|
97
|
+
c({
|
|
98
|
+
timestamp: t || 0,
|
|
99
|
+
elapsed: y,
|
|
100
|
+
formatted: u
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
}),
|
|
106
|
-
const { elapsed:
|
|
107
|
-
this.elapsed =
|
|
108
|
-
timestamp:
|
|
104
|
+
i.addEventListener("message", e, { once: !0 });
|
|
105
|
+
}), i.onmessage = (c) => {
|
|
106
|
+
const { elapsed: e, timestamp: w } = c.data;
|
|
107
|
+
this.elapsed = e, A({
|
|
108
|
+
timestamp: w || 0,
|
|
109
109
|
elapsed: this.elapsed,
|
|
110
|
-
formatted:
|
|
110
|
+
formatted: x(this.elapsed)
|
|
111
111
|
});
|
|
112
|
-
},
|
|
113
|
-
|
|
112
|
+
}, i.onerror = (c) => {
|
|
113
|
+
C && C(c);
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
const
|
|
117
|
+
const he = ["xmlns", "viewBox"], ve = { key: 0 }, pe = ["id"], fe = ["stop-color"], we = ["stop-color"], ke = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ge = ["d", "stroke", "stroke-width"], me = ["r", "fill", "stroke", "stroke-width"], ye = ["r", "fill", "stroke", "stroke-width"], be = ["x", "y"], _e = ["x", "y", "font-size", "fill", "font-weight"], Me = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "vue-ui-timer-controls"
|
|
120
|
-
},
|
|
120
|
+
}, Ce = ["title"], Te = ["title"], xe = ["title"], Ie = ["title"], $e = ["title"], Pe = {
|
|
121
121
|
__name: "vue-ui-timer",
|
|
122
122
|
props: {
|
|
123
123
|
config: {
|
|
@@ -128,45 +128,59 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
emits: ["start", "pause", "reset", "restart", "lap"],
|
|
131
|
-
setup(
|
|
132
|
-
const
|
|
133
|
-
|
|
131
|
+
setup(G, { expose: A, emit: k }) {
|
|
132
|
+
const C = G, { vue_ui_timer: H } = le(), T = n(null), S = n(null), R = n(null), m = n(null), i = n(oe()), x = n(0);
|
|
133
|
+
Q(() => {
|
|
134
|
+
c();
|
|
135
|
+
});
|
|
136
|
+
function c() {
|
|
134
137
|
if (e.value.responsive) {
|
|
135
|
-
const
|
|
136
|
-
const { width: o, height:
|
|
137
|
-
chart:
|
|
138
|
-
title: e.value.style.title.text ?
|
|
139
|
-
legend:
|
|
138
|
+
const a = ue(() => {
|
|
139
|
+
const { width: o, height: h } = ie({
|
|
140
|
+
chart: T.value,
|
|
141
|
+
title: e.value.style.title.text ? S.value : null,
|
|
142
|
+
legend: R.value
|
|
140
143
|
});
|
|
141
|
-
t.value.width = o, t.value.height =
|
|
142
|
-
relator: Math.min(o,
|
|
144
|
+
t.value.width = o, t.value.height = h, t.value.tracker.core = W({
|
|
145
|
+
relator: Math.min(o, h),
|
|
143
146
|
adjuster: e.value.style.width,
|
|
144
147
|
source: 6 * e.value.stopwatch.tracker.radiusRatio,
|
|
145
148
|
threshold: 1,
|
|
146
149
|
fallback: 1
|
|
147
|
-
}), t.value.tracker.aura =
|
|
148
|
-
relator: Math.min(o,
|
|
150
|
+
}), t.value.tracker.aura = W({
|
|
151
|
+
relator: Math.min(o, h),
|
|
149
152
|
adjuster: e.value.style.width,
|
|
150
153
|
source: 12 * e.value.stopwatch.tracker.aura.radiusRatio,
|
|
151
154
|
threshold: 1,
|
|
152
155
|
fallback: 1
|
|
153
|
-
}), t.value.label =
|
|
154
|
-
relator: Math.min(o,
|
|
156
|
+
}), t.value.label = W({
|
|
157
|
+
relator: Math.min(o, h),
|
|
155
158
|
adjuster: e.value.style.width,
|
|
156
159
|
source: e.value.stopwatch.label.fontSize,
|
|
157
160
|
threshold: 10,
|
|
158
161
|
fallback: 10
|
|
159
162
|
});
|
|
160
163
|
});
|
|
161
|
-
m.value = new ResizeObserver(
|
|
164
|
+
m.value = new ResizeObserver(a), m.value.observe(T.value.parentNode);
|
|
162
165
|
}
|
|
163
|
-
}
|
|
166
|
+
}
|
|
167
|
+
Y(() => {
|
|
164
168
|
m.value && m.value.disconnect();
|
|
165
169
|
});
|
|
166
|
-
const e =
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
})
|
|
170
|
+
const e = z({
|
|
171
|
+
get: () => w(),
|
|
172
|
+
set: (a) => a
|
|
173
|
+
});
|
|
174
|
+
function w() {
|
|
175
|
+
return se({
|
|
176
|
+
userConfig: C.config,
|
|
177
|
+
defaultConfig: H
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
Z(() => C.config, (a) => {
|
|
181
|
+
e.value = w(), c(), x.value += 1;
|
|
182
|
+
}, { deep: !0 });
|
|
183
|
+
const y = z(() => {
|
|
170
184
|
if (e.value.stopwatch.showHours && e.value.stopwatch.showHundredth)
|
|
171
185
|
return "00:00:00.00";
|
|
172
186
|
if (e.value.stopwatch.showHours && !e.value.stopwatch.showHundredth)
|
|
@@ -175,7 +189,7 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
175
189
|
return "00:00.00";
|
|
176
190
|
if (!e.value.stopwatch.showHours && !e.value.stopwatch.showHundredth)
|
|
177
191
|
return "00:00";
|
|
178
|
-
}), t =
|
|
192
|
+
}), t = n({
|
|
179
193
|
height: e.value.style.height,
|
|
180
194
|
width: e.value.style.width,
|
|
181
195
|
tracker: {
|
|
@@ -183,61 +197,61 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
183
197
|
aura: 12 * e.value.stopwatch.tracker.aura.radiusRatio
|
|
184
198
|
},
|
|
185
199
|
label: e.value.stopwatch.label.fontSize
|
|
186
|
-
}),
|
|
187
|
-
(
|
|
200
|
+
}), d = n(0), u = new de(
|
|
201
|
+
(a) => X(a),
|
|
188
202
|
10,
|
|
189
203
|
"",
|
|
190
204
|
e.value.stopwatch.showHundredth,
|
|
191
205
|
e.value.stopwatch.showHours
|
|
192
|
-
),
|
|
193
|
-
function
|
|
194
|
-
|
|
206
|
+
), D = n(!0), s = n(!1), p = n(!1);
|
|
207
|
+
function L() {
|
|
208
|
+
k("start"), D.value && u.start(), D.value = !1, s.value = !0;
|
|
195
209
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
210
|
+
function N() {
|
|
211
|
+
s.value && (k("reset"), u.stop(), b.value = [], D.value = !0, s.value = !1);
|
|
198
212
|
}
|
|
199
|
-
function
|
|
200
|
-
|
|
213
|
+
function B() {
|
|
214
|
+
p.value = !p.value, k("pause", d.value), u.pause();
|
|
201
215
|
}
|
|
202
|
-
function
|
|
203
|
-
|
|
216
|
+
function j() {
|
|
217
|
+
s.value && (p.value = !1, k("restart"), b.value = [], u.restart());
|
|
204
218
|
}
|
|
205
|
-
const
|
|
206
|
-
async function
|
|
207
|
-
if (!
|
|
208
|
-
const
|
|
209
|
-
|
|
219
|
+
const b = n([]);
|
|
220
|
+
async function F() {
|
|
221
|
+
if (!s.value || p.value) return;
|
|
222
|
+
const a = await u.lap();
|
|
223
|
+
a && (b.value.push(a), k("lap", b.value));
|
|
210
224
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
225
|
+
function X({ timestamp: a, elapsed: o, formatted: h }) {
|
|
226
|
+
d.value = { timestamp: a, elapsed: o, formatted: h };
|
|
213
227
|
}
|
|
214
|
-
const g =
|
|
215
|
-
function
|
|
216
|
-
const
|
|
217
|
-
return
|
|
228
|
+
const g = z(() => Math.min(t.value.width, t.value.height) / 2.5 * e.value.stopwatch.track.radiusRatio);
|
|
229
|
+
function q(a, o) {
|
|
230
|
+
const I = 360 / (o * 1e3);
|
|
231
|
+
return a * I % 360;
|
|
218
232
|
}
|
|
219
|
-
function
|
|
220
|
-
let o =
|
|
221
|
-
return { cx:
|
|
233
|
+
function J(a) {
|
|
234
|
+
let o = a * (Math.PI / 180), h = t.value.width / 2 + g.value * Math.cos(o), I = t.value.height / 2 + g.value * Math.sin(o);
|
|
235
|
+
return { cx: h, cy: I };
|
|
222
236
|
}
|
|
223
|
-
const
|
|
224
|
-
const
|
|
237
|
+
const _ = z(() => {
|
|
238
|
+
const a = q(d.value.elapsed, e.value.stopwatch.cycleSeconds), { cx: o, cy: h } = J(a - 90), I = a > 180 ? 1 : 0;
|
|
225
239
|
return {
|
|
226
240
|
cx: o || t.value.width / 2,
|
|
227
|
-
cy:
|
|
228
|
-
largeArcFlag:
|
|
241
|
+
cy: h || t.value.height / 2 - g.value,
|
|
242
|
+
largeArcFlag: I,
|
|
229
243
|
sweepFlag: 1
|
|
230
244
|
};
|
|
231
245
|
});
|
|
232
|
-
return
|
|
233
|
-
start:
|
|
234
|
-
pause:
|
|
235
|
-
reset:
|
|
236
|
-
restart:
|
|
237
|
-
lap:
|
|
238
|
-
}), (
|
|
246
|
+
return A({
|
|
247
|
+
start: L,
|
|
248
|
+
pause: B,
|
|
249
|
+
reset: N,
|
|
250
|
+
restart: j,
|
|
251
|
+
lap: F
|
|
252
|
+
}), (a, o) => (l(), r("div", {
|
|
239
253
|
ref_key: "timerChart",
|
|
240
|
-
ref:
|
|
254
|
+
ref: T,
|
|
241
255
|
class: "vue-ui-timer",
|
|
242
256
|
style: f({
|
|
243
257
|
fontFamily: e.value.style.fontFamily,
|
|
@@ -246,16 +260,17 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
246
260
|
textAlign: "center"
|
|
247
261
|
})
|
|
248
262
|
}, [
|
|
249
|
-
e.value.style.title.text ? (
|
|
263
|
+
e.value.style.title.text ? (l(), r("div", {
|
|
250
264
|
key: 0,
|
|
251
265
|
ref_key: "chartTitle",
|
|
252
|
-
ref:
|
|
266
|
+
ref: S,
|
|
253
267
|
style: f({
|
|
254
268
|
width: "100%",
|
|
255
269
|
background: e.value.style.backgroundColor
|
|
256
270
|
})
|
|
257
271
|
}, [
|
|
258
|
-
|
|
272
|
+
(l(), ee(ne, {
|
|
273
|
+
key: `title_${x.value}`,
|
|
259
274
|
config: {
|
|
260
275
|
title: {
|
|
261
276
|
cy: "title",
|
|
@@ -266,10 +281,10 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
266
281
|
...e.value.style.title.subtitle
|
|
267
282
|
}
|
|
268
283
|
}
|
|
269
|
-
}, null, 8, ["config"])
|
|
270
|
-
], 4)) :
|
|
271
|
-
(
|
|
272
|
-
xmlns:
|
|
284
|
+
}, null, 8, ["config"]))
|
|
285
|
+
], 4)) : v("", !0),
|
|
286
|
+
(l(), r("svg", {
|
|
287
|
+
xmlns: te(re),
|
|
273
288
|
viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
|
|
274
289
|
style: f({
|
|
275
290
|
maxWidth: "100%",
|
|
@@ -277,9 +292,9 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
277
292
|
background: e.value.style.backgroundColor
|
|
278
293
|
})
|
|
279
294
|
}, [
|
|
280
|
-
e.value.stopwatch.tracker.gradient.show ? (
|
|
295
|
+
e.value.stopwatch.tracker.gradient.show ? (l(), r("defs", ve, [
|
|
281
296
|
M("radialGradient", {
|
|
282
|
-
id: `tracker_gradient_${
|
|
297
|
+
id: `tracker_gradient_${i.value}`,
|
|
283
298
|
cx: "50%",
|
|
284
299
|
cy: "50%",
|
|
285
300
|
r: "50%",
|
|
@@ -289,13 +304,13 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
289
304
|
M("stop", {
|
|
290
305
|
offset: "0%",
|
|
291
306
|
"stop-color": e.value.stopwatch.tracker.gradient.color
|
|
292
|
-
}, null, 8,
|
|
307
|
+
}, null, 8, fe),
|
|
293
308
|
M("stop", {
|
|
294
309
|
offset: "100%",
|
|
295
310
|
"stop-color": e.value.stopwatch.tracker.fill
|
|
296
|
-
}, null, 8,
|
|
297
|
-
], 8,
|
|
298
|
-
])) :
|
|
311
|
+
}, null, 8, we)
|
|
312
|
+
], 8, pe)
|
|
313
|
+
])) : v("", !0),
|
|
299
314
|
M("circle", {
|
|
300
315
|
cx: t.value.width / 2,
|
|
301
316
|
cy: t.value.height / 2,
|
|
@@ -303,28 +318,28 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
303
318
|
fill: e.value.stopwatch.track.fill,
|
|
304
319
|
stroke: e.value.stopwatch.track.stroke,
|
|
305
320
|
"stroke-width": e.value.stopwatch.track.strokeWidth
|
|
306
|
-
}, null, 8,
|
|
307
|
-
e.value.stopwatch.cycleTrack.show ? (
|
|
321
|
+
}, null, 8, ke),
|
|
322
|
+
e.value.stopwatch.cycleTrack.show ? (l(), r("path", {
|
|
308
323
|
key: 1,
|
|
309
|
-
d: `M ${t.value.width / 2},${t.value.height / 2 - g.value} A ${g.value},${g.value} 0 ${
|
|
324
|
+
d: `M ${t.value.width / 2},${t.value.height / 2 - g.value} A ${g.value},${g.value} 0 ${_.value.largeArcFlag},${_.value.sweepFlag} ${_.value.cx},${_.value.cy}`,
|
|
310
325
|
stroke: e.value.stopwatch.cycleTrack.stroke,
|
|
311
326
|
"stroke-width": e.value.stopwatch.cycleTrack.strokeWidth,
|
|
312
327
|
"stroke-linecap": "round",
|
|
313
328
|
fill: "none"
|
|
314
|
-
}, null, 8,
|
|
315
|
-
M("circle",
|
|
329
|
+
}, null, 8, ge)) : v("", !0),
|
|
330
|
+
M("circle", V(_.value, {
|
|
316
331
|
r: t.value.tracker.core,
|
|
317
|
-
fill: e.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${
|
|
332
|
+
fill: e.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${i.value})` : e.value.stopwatch.tracker.fill,
|
|
318
333
|
stroke: e.value.stopwatch.tracker.stroke,
|
|
319
334
|
"stroke-width": e.value.stopwatch.tracker.strokeWidth
|
|
320
|
-
}), null, 16,
|
|
321
|
-
e.value.stopwatch.tracker.aura.show ? (
|
|
335
|
+
}), null, 16, me),
|
|
336
|
+
e.value.stopwatch.tracker.aura.show ? (l(), r("circle", V({ key: 2 }, _.value, {
|
|
322
337
|
r: t.value.tracker.aura,
|
|
323
338
|
fill: `${e.value.stopwatch.tracker.aura.fill}20`,
|
|
324
339
|
stroke: e.value.stopwatch.tracker.aura.stroke,
|
|
325
340
|
"stroke-width": e.value.stopwatch.tracker.aura.strokeWidth
|
|
326
|
-
}), null, 16,
|
|
327
|
-
|
|
341
|
+
}), null, 16, ye)) : v("", !0),
|
|
342
|
+
a.$slots.time ? (l(), r("foreignObject", {
|
|
328
343
|
key: 3,
|
|
329
344
|
x: t.value.width / 2,
|
|
330
345
|
y: t.value.height / 2,
|
|
@@ -332,8 +347,8 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
332
347
|
width: "0.1",
|
|
333
348
|
style: { overflow: "visible" }
|
|
334
349
|
}, [
|
|
335
|
-
|
|
336
|
-
], 8,
|
|
350
|
+
O(a.$slots, "time", U(E({ ...d.value })), void 0, !0)
|
|
351
|
+
], 8, be)) : (l(), r("text", {
|
|
337
352
|
key: 4,
|
|
338
353
|
x: t.value.width / 2,
|
|
339
354
|
y: t.value.height / 2 + t.value.label / 4,
|
|
@@ -342,112 +357,112 @@ const ue = ["xmlns", "viewBox"], ie = { key: 0 }, ne = ["id"], ce = ["stop-color
|
|
|
342
357
|
fill: e.value.stopwatch.label.color,
|
|
343
358
|
"font-weight": e.value.stopwatch.label.bold ? "bold" : "normal",
|
|
344
359
|
style: { "font-variant-numeric": "tabular-nums !important" }
|
|
345
|
-
},
|
|
346
|
-
], 12,
|
|
360
|
+
}, ae(d.value.formatted || y.value), 9, _e))
|
|
361
|
+
], 12, he)),
|
|
347
362
|
M("div", {
|
|
348
363
|
ref_key: "chartLegend",
|
|
349
|
-
ref:
|
|
364
|
+
ref: R,
|
|
350
365
|
style: f({ width: "100%", backgroundColor: e.value.stopwatch.legend.backgroundColor })
|
|
351
366
|
}, [
|
|
352
|
-
|
|
353
|
-
e.value.stopwatch.legend.buttons.start ? (
|
|
367
|
+
a.$slots.controls ? v("", !0) : (l(), r("div", Me, [
|
|
368
|
+
e.value.stopwatch.legend.buttons.start ? (l(), r("button", {
|
|
354
369
|
key: 0,
|
|
355
370
|
title: e.value.stopwatch.legend.buttonTitles.start,
|
|
356
|
-
onClick:
|
|
371
|
+
onClick: L,
|
|
357
372
|
class: "vue-ui-timer-button",
|
|
358
373
|
style: f({
|
|
359
|
-
opacity:
|
|
360
|
-
cursor:
|
|
374
|
+
opacity: s.value ? 0.2 : 1,
|
|
375
|
+
cursor: s.value ? "default" : "pointer"
|
|
361
376
|
})
|
|
362
377
|
}, [
|
|
363
|
-
|
|
378
|
+
$(P, {
|
|
364
379
|
name: "play",
|
|
365
380
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
366
381
|
}, null, 8, ["stroke"])
|
|
367
|
-
], 12,
|
|
368
|
-
e.value.stopwatch.legend.buttons.pause ? (
|
|
382
|
+
], 12, Ce)) : v("", !0),
|
|
383
|
+
e.value.stopwatch.legend.buttons.pause ? (l(), r("button", {
|
|
369
384
|
key: 1,
|
|
370
|
-
title:
|
|
371
|
-
onClick:
|
|
385
|
+
title: p.value ? e.value.stopwatch.legend.buttonTitles.resume : e.value.stopwatch.legend.buttonTitles.pause,
|
|
386
|
+
onClick: B,
|
|
372
387
|
class: "vue-ui-timer-button",
|
|
373
388
|
style: f({
|
|
374
|
-
opacity:
|
|
375
|
-
cursor:
|
|
389
|
+
opacity: s.value ? 1 : 0.2,
|
|
390
|
+
cursor: s.value ? "pointer" : "default"
|
|
376
391
|
})
|
|
377
392
|
}, [
|
|
378
|
-
|
|
393
|
+
$(P, {
|
|
379
394
|
name: "pause",
|
|
380
395
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
381
396
|
}, null, 8, ["stroke"])
|
|
382
|
-
], 12,
|
|
383
|
-
e.value.stopwatch.legend.buttons.reset ? (
|
|
397
|
+
], 12, Te)) : v("", !0),
|
|
398
|
+
e.value.stopwatch.legend.buttons.reset ? (l(), r("button", {
|
|
384
399
|
key: 2,
|
|
385
400
|
title: e.value.stopwatch.legend.buttonTitles.reset,
|
|
386
|
-
onClick:
|
|
401
|
+
onClick: N,
|
|
387
402
|
class: "vue-ui-timer-button",
|
|
388
403
|
style: f({
|
|
389
|
-
opacity:
|
|
390
|
-
cursor:
|
|
404
|
+
opacity: s.value ? 1 : 0.2,
|
|
405
|
+
cursor: s.value ? "pointer" : "default"
|
|
391
406
|
})
|
|
392
407
|
}, [
|
|
393
|
-
|
|
408
|
+
$(P, {
|
|
394
409
|
name: "stop",
|
|
395
410
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
396
411
|
}, null, 8, ["stroke"])
|
|
397
|
-
], 12,
|
|
398
|
-
e.value.stopwatch.legend.buttons.restart ? (
|
|
412
|
+
], 12, xe)) : v("", !0),
|
|
413
|
+
e.value.stopwatch.legend.buttons.restart ? (l(), r("button", {
|
|
399
414
|
key: 3,
|
|
400
415
|
title: e.value.stopwatch.legend.buttonTitles.restart,
|
|
401
|
-
onClick:
|
|
416
|
+
onClick: j,
|
|
402
417
|
class: "vue-ui-timer-button",
|
|
403
418
|
style: f({
|
|
404
|
-
opacity:
|
|
405
|
-
cursor:
|
|
419
|
+
opacity: s.value ? 1 : 0.2,
|
|
420
|
+
cursor: s.value ? "pointer" : "default"
|
|
406
421
|
})
|
|
407
422
|
}, [
|
|
408
|
-
|
|
423
|
+
$(P, {
|
|
409
424
|
name: "restart",
|
|
410
425
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
411
426
|
}, null, 8, ["stroke"])
|
|
412
|
-
], 12,
|
|
413
|
-
e.value.stopwatch.legend.buttons.lap ? (
|
|
427
|
+
], 12, Ie)) : v("", !0),
|
|
428
|
+
e.value.stopwatch.legend.buttons.lap ? (l(), r("button", {
|
|
414
429
|
key: 4,
|
|
415
430
|
title: e.value.stopwatch.legend.buttonTitles.lap,
|
|
416
|
-
onClick:
|
|
431
|
+
onClick: F,
|
|
417
432
|
class: "vue-ui-timer-button",
|
|
418
433
|
style: f({
|
|
419
|
-
opacity:
|
|
420
|
-
cursor:
|
|
434
|
+
opacity: s.value && !p.value ? 1 : 0.2,
|
|
435
|
+
cursor: s.value && !p.value ? "pointer" : "default"
|
|
421
436
|
})
|
|
422
437
|
}, [
|
|
423
|
-
|
|
438
|
+
$(P, {
|
|
424
439
|
name: "lap",
|
|
425
440
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
426
441
|
}, null, 8, ["stroke"])
|
|
427
|
-
], 12,
|
|
442
|
+
], 12, $e)) : v("", !0)
|
|
428
443
|
])),
|
|
429
|
-
|
|
430
|
-
start:
|
|
431
|
-
pause:
|
|
432
|
-
reset:
|
|
433
|
-
restart:
|
|
434
|
-
lap:
|
|
435
|
-
laps:
|
|
436
|
-
isRunning:
|
|
437
|
-
isPaused:
|
|
438
|
-
...
|
|
444
|
+
O(a.$slots, "controls", U(E({
|
|
445
|
+
start: L,
|
|
446
|
+
pause: B,
|
|
447
|
+
reset: N,
|
|
448
|
+
restart: j,
|
|
449
|
+
lap: F,
|
|
450
|
+
laps: b.value,
|
|
451
|
+
isRunning: s.value,
|
|
452
|
+
isPaused: p.value,
|
|
453
|
+
...d.value
|
|
439
454
|
})), void 0, !0),
|
|
440
|
-
|
|
441
|
-
laps:
|
|
442
|
-
lap:
|
|
443
|
-
isRunning:
|
|
444
|
-
isPaused:
|
|
445
|
-
...
|
|
455
|
+
O(a.$slots, "laps", U(E({
|
|
456
|
+
laps: b.value,
|
|
457
|
+
lap: F,
|
|
458
|
+
isRunning: s.value,
|
|
459
|
+
isPaused: p.value,
|
|
460
|
+
...d.value
|
|
446
461
|
})), void 0, !0)
|
|
447
462
|
], 4)
|
|
448
463
|
], 4));
|
|
449
464
|
}
|
|
450
|
-
},
|
|
465
|
+
}, Le = /* @__PURE__ */ ce(Pe, [["__scopeId", "data-v-852eed87"]]);
|
|
451
466
|
export {
|
|
452
|
-
|
|
467
|
+
Le as default
|
|
453
468
|
};
|