vue-data-ui 3.25.5 → 3.25.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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-UfoQuPMf.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-B-3S5q00.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-CAXK7ycr.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-DlWT702n.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-DbOk2kpM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-C7_mGIRk.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CDy_dkYz.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DP24leiD.js} +380 -380
- package/dist/vue-ui-candlestick-kJLmYaR7.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-BQzAQDw6.js} +2 -2
- package/dist/vue-ui-chestnut-DnnRp3Kl.js +2016 -0
- package/dist/vue-ui-chord-DO15ZDCS.js +1347 -0
- package/dist/vue-ui-circle-pack-DYTllMPV.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CtViSjNp.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-NXtGYzqg.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-D3_4QohV.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-CB09pLQx.js} +2 -2
- package/dist/vue-ui-donut-evolution-DhrtxvAd.js +1552 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-eysaEyTy.js} +2 -2
- package/dist/vue-ui-donut-yTE6D8yV.js +2415 -0
- package/dist/vue-ui-dumbbell-CmGIeULQ.js +1533 -0
- package/dist/vue-ui-flow-qYAq3Rmn.js +1217 -0
- package/dist/vue-ui-funnel-CLAii4wi.js +749 -0
- package/dist/vue-ui-galaxy-BVX-o2f-.js +1085 -0
- package/dist/vue-ui-gauge-D76-4Z_0.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-BQ7-UnuG.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-C47zjcs-.js} +2 -2
- package/dist/vue-ui-heatmap-XJef60IZ.js +1558 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-D5BYGPXB.js} +470 -470
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-BgFHi6_7.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-Cb8QJeaj.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-BzwMl-in.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-BUR_YCcr.js} +376 -376
- package/dist/vue-ui-nested-donuts-BEB4nfsD.js +1503 -0
- package/dist/vue-ui-onion-CG6myK7a.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-CSO4johj.js} +407 -407
- package/dist/vue-ui-quadrant-CKav0I6g.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BAQNS9_2.js} +4 -4
- package/dist/vue-ui-radar-ClPAgf5I.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-Da2MhrVe.js +905 -0
- package/dist/vue-ui-ridgeline-D7gFs8yR.js +1630 -0
- package/dist/vue-ui-rings-DkDJ0k5b.js +1252 -0
- package/dist/vue-ui-scatter-yv4JzJID.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-oFnh5zWs.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-IqZWPvSB.js +457 -0
- package/dist/vue-ui-sparkbar-_FW47iYj.js +401 -0
- package/dist/vue-ui-sparkgauge--2vk2Y23.js +268 -0
- package/dist/vue-ui-sparkhistogram-CFEIPa5n.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-Cs9CJR6W.js} +511 -511
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +738 -0
- package/dist/vue-ui-stackbar-C5ANS2hd.js +2355 -0
- package/dist/vue-ui-stackline-7yajJFW4.js +2469 -0
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +1740 -0
- package/dist/vue-ui-table-CiccGbRB.js +1352 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-sparkline-Bp7RiZh4.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-CawumQKP.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-CXinMW7q.js} +153 -153
- package/dist/vue-ui-tiremarks-BnI2uhki.js +540 -0
- package/dist/vue-ui-treemap-DTlFbfD6.js +1733 -0
- package/dist/vue-ui-waffle-CjgRkQAp.js +1621 -0
- package/dist/vue-ui-wheel-B02tiG0p.js +873 -0
- package/dist/vue-ui-word-cloud-BZnCOMHx.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-DO2VZ-T-.js} +524 -524
- package/dist/vue-ui-xy-BC9GVdWE.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-CD6BiP_g.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Xt as t, q as n, t as r } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as i, t as a } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as o } from "./useConfig-
|
|
4
|
+
import { t as o } from "./useConfig-CIQZ6_r7.js";
|
|
5
5
|
import { t as s } from "./useNestedProp-Chvyfpl-.js";
|
|
6
6
|
import { n as c } from "./Title-CPHi-evi.js";
|
|
7
7
|
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
8
|
import { l as ee, t as te } from "./useResponsive-ZtArZtUf.js";
|
|
9
|
-
import { t as u } from "./BaseIcon-
|
|
9
|
+
import { t as u } from "./BaseIcon-D8R6_sKH.js";
|
|
10
10
|
import { t as ne } from "./DefGrad-DVBqDjhO.js";
|
|
11
11
|
import { t as re } from "./useChartAccessibility-DYqac8yF.js";
|
|
12
|
-
import { computed as d, createBlock as ie, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as ae, guardReactiveProps as g, mergeProps as
|
|
12
|
+
import { computed as d, createBlock as ie, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as ae, guardReactiveProps as g, mergeProps as oe, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as se, onMounted as ce, openBlock as y, ref as b, renderSlot as x, shallowRef as le, toDisplayString as ue, unref as S, watch as de } from "vue";
|
|
13
13
|
//#region src/timer.js
|
|
14
|
-
var
|
|
14
|
+
var fe = class {
|
|
15
15
|
constructor(e, t, n, r = !0, i = !0) {
|
|
16
16
|
this.interval = t, this.elapsed = 0, this.isPaused = !1;
|
|
17
17
|
let a = new Blob(["\n let interval;\n let elapsed = 0;\n let paused = false;\n let startTime;\n let tickInterval;\n\n onmessage = function(e) {\n const { action, data } = e.data;\n\n switch(action) {\n case 'start':\n startTime = Date.now();\n tickInterval = data.interval;\n elapsed = 0;\n paused = false;\n interval = setInterval(() => {\n elapsed += tickInterval;\n postMessage({ elapsed, timestamp: Date.now() });\n }, tickInterval);\n break;\n \n case 'pause':\n paused = true;\n clearInterval(interval);\n elapsed = Date.now() - startTime;\n break;\n\n case 'resume':\n if (paused) {\n startTime = Date.now() - elapsed;\n interval = setInterval(() => {\n elapsed += tickInterval;\n postMessage({ elapsed, timestamp: Date.now() });\n }, tickInterval);\n }\n paused = false;\n break;\n\n case 'stop':\n clearInterval(interval);\n elapsed = 0;\n postMessage({ elapsed });\n break;\n\n case 'reset':\n elapsed = 0;\n clearInterval(interval);\n postMessage({ elapsed });\n break;\n\n case 'lap':\n postMessage({\n elapsed,\n timestamp: Date.now(),\n action: 'lap'\n });\n break;\n\n default:\n break;\n }\n };\n "], { type: "application/javascript" }), o = URL.createObjectURL(a), s = new Worker(o);
|
|
@@ -57,37 +57,37 @@ var ue = class {
|
|
|
57
57
|
n && n(e);
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
},
|
|
60
|
+
}, C = /* @__PURE__ */ e({ default: () => w }), pe = ["xmlns", "viewBox"], me = ["width", "height"], he = { key: 1 }, ge = [
|
|
61
61
|
"cx",
|
|
62
62
|
"cy",
|
|
63
63
|
"r",
|
|
64
64
|
"fill",
|
|
65
65
|
"stroke",
|
|
66
66
|
"stroke-width"
|
|
67
|
-
],
|
|
67
|
+
], _e = [
|
|
68
68
|
"d",
|
|
69
69
|
"stroke",
|
|
70
70
|
"stroke-width"
|
|
71
|
-
],
|
|
71
|
+
], ve = [
|
|
72
72
|
"r",
|
|
73
73
|
"fill",
|
|
74
74
|
"stroke",
|
|
75
75
|
"stroke-width"
|
|
76
|
-
],
|
|
76
|
+
], ye = [
|
|
77
77
|
"r",
|
|
78
78
|
"fill",
|
|
79
79
|
"stroke",
|
|
80
80
|
"stroke-width"
|
|
81
|
-
],
|
|
81
|
+
], be = ["x", "y"], xe = { key: 5 }, Se = [
|
|
82
82
|
"x",
|
|
83
83
|
"y",
|
|
84
84
|
"font-size",
|
|
85
85
|
"fill",
|
|
86
86
|
"font-weight"
|
|
87
|
-
],
|
|
87
|
+
], Ce = {
|
|
88
88
|
key: 0,
|
|
89
89
|
class: "vue-ui-timer-controls"
|
|
90
|
-
},
|
|
90
|
+
}, we = ["title"], Te = ["title"], Ee = ["title"], De = ["title"], Oe = ["title"], w = /*#__PURE__*/ l({
|
|
91
91
|
__name: "vue-ui-timer",
|
|
92
92
|
props: { config: {
|
|
93
93
|
type: Object,
|
|
@@ -102,111 +102,111 @@ var ue = class {
|
|
|
102
102
|
"restart",
|
|
103
103
|
"lap"
|
|
104
104
|
],
|
|
105
|
-
setup(e, { expose: l, emit:
|
|
106
|
-
let
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
setup(e, { expose: l, emit: C }) {
|
|
106
|
+
let w = ae(() => import("./PackageVersion-UfoQuPMf.js").then((e) => e.t)), { vue_ui_timer: ke } = o(), T = e, E = C, D = b(null), O = b(null), k = b(null), A = le(null), j = le(null), M = b(n()), N = b(0);
|
|
107
|
+
ce(() => {
|
|
108
|
+
P();
|
|
109
109
|
});
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
110
|
+
function P() {
|
|
111
|
+
if (F.value.responsive) {
|
|
112
112
|
let e = ee(() => {
|
|
113
113
|
let { width: e, height: n } = te({
|
|
114
|
-
chart:
|
|
115
|
-
title:
|
|
116
|
-
legend:
|
|
114
|
+
chart: D.value,
|
|
115
|
+
title: F.value.style.title.text ? O.value : null,
|
|
116
|
+
legend: k.value
|
|
117
117
|
});
|
|
118
118
|
requestAnimationFrame(() => {
|
|
119
|
-
B.value.width = e, B.value.height = n,
|
|
119
|
+
B.value.width = e, B.value.height = n, F.value.responsiveProportionalSizing ? (B.value.tracker.core = t({
|
|
120
120
|
relator: Math.min(e, n),
|
|
121
|
-
adjuster:
|
|
122
|
-
source: 6 * L.value.
|
|
121
|
+
adjuster: F.value.style.width,
|
|
122
|
+
source: 6 * L.value.radiusRatio,
|
|
123
123
|
threshold: 1,
|
|
124
124
|
fallback: 1
|
|
125
125
|
}), B.value.tracker.aura = t({
|
|
126
126
|
relator: Math.min(e, n),
|
|
127
|
-
adjuster:
|
|
128
|
-
source: 12 * L.value.
|
|
127
|
+
adjuster: F.value.style.width,
|
|
128
|
+
source: 12 * L.value.aura.radiusRatio,
|
|
129
129
|
threshold: 1,
|
|
130
130
|
fallback: 1
|
|
131
131
|
}), B.value.label = t({
|
|
132
132
|
relator: Math.min(e, n),
|
|
133
|
-
adjuster:
|
|
134
|
-
source:
|
|
133
|
+
adjuster: F.value.style.width,
|
|
134
|
+
source: I.value.label.fontSize,
|
|
135
135
|
threshold: 10,
|
|
136
136
|
fallback: 10
|
|
137
|
-
})) : B.value.label =
|
|
137
|
+
})) : B.value.label = I.value.label.fontSize;
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
|
-
|
|
140
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = D.value.parentNode, A.value.observe(j.value);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
se(() => {
|
|
144
|
+
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect());
|
|
145
145
|
});
|
|
146
|
-
let
|
|
147
|
-
get: () =>
|
|
146
|
+
let F = d({
|
|
147
|
+
get: () => je(),
|
|
148
148
|
set: (e) => e
|
|
149
|
-
});
|
|
149
|
+
}), I = d(() => F.value.stopwatch), L = d(() => F.value.stopwatch.tracker), R = d(() => F.value.stopwatch.legend);
|
|
150
150
|
i({
|
|
151
|
-
config: () =>
|
|
151
|
+
config: () => F.value,
|
|
152
152
|
dataset: () => [],
|
|
153
153
|
component: "VueUiTimer",
|
|
154
154
|
rules: [a.noHint]
|
|
155
155
|
});
|
|
156
|
-
let
|
|
157
|
-
function
|
|
156
|
+
let z = d(() => F.value.useCursorPointer), { svgRef: Ae } = re({ config: F.value.style.title });
|
|
157
|
+
function je() {
|
|
158
158
|
return s({
|
|
159
|
-
userConfig:
|
|
160
|
-
defaultConfig:
|
|
159
|
+
userConfig: T.config,
|
|
160
|
+
defaultConfig: ke
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
de(() => T.config, (e) => {
|
|
164
|
+
F.value = je(), P(), N.value += 1;
|
|
165
165
|
}, { deep: !0 });
|
|
166
|
-
let
|
|
167
|
-
if (
|
|
168
|
-
if (
|
|
169
|
-
if (!
|
|
170
|
-
if (!
|
|
171
|
-
}), B =
|
|
172
|
-
height:
|
|
173
|
-
width:
|
|
166
|
+
let Me = d(() => {
|
|
167
|
+
if (I.value.showHours && I.value.showHundredth) return "00:00:00.00";
|
|
168
|
+
if (I.value.showHours && !I.value.showHundredth) return "00:00:00";
|
|
169
|
+
if (!I.value.showHours && I.value.showHundredth) return "00:00.00";
|
|
170
|
+
if (!I.value.showHours && !I.value.showHundredth) return "00:00";
|
|
171
|
+
}), B = b({
|
|
172
|
+
height: F.value.style.height,
|
|
173
|
+
width: F.value.style.width,
|
|
174
174
|
tracker: {
|
|
175
|
-
core: 6 * L.value.
|
|
176
|
-
aura: 12 * L.value.
|
|
175
|
+
core: 6 * L.value.radiusRatio,
|
|
176
|
+
aura: 12 * L.value.aura.radiusRatio
|
|
177
177
|
},
|
|
178
|
-
label:
|
|
179
|
-
}), V =
|
|
178
|
+
label: I.value.label.fontSize
|
|
179
|
+
}), V = b(0), H = new fe((e) => Ne(e), 10, "", I.value.showHundredth, I.value.showHours), U = b(!0), W = b(!1), G = b(!1);
|
|
180
180
|
function K() {
|
|
181
|
-
|
|
181
|
+
E("start"), U.value && H.start(), U.value = !1, W.value = !0;
|
|
182
182
|
}
|
|
183
183
|
function q() {
|
|
184
|
-
W.value &&= (
|
|
184
|
+
W.value &&= (E("reset"), H.stop(), X.value = [], U.value = !0, !1);
|
|
185
185
|
}
|
|
186
186
|
function J() {
|
|
187
|
-
G.value = !G.value,
|
|
187
|
+
G.value = !G.value, E("pause", V.value), H.pause();
|
|
188
188
|
}
|
|
189
189
|
function Y() {
|
|
190
|
-
W.value && (G.value = !1,
|
|
190
|
+
W.value && (G.value = !1, E("restart"), X.value = [], H.restart());
|
|
191
191
|
}
|
|
192
|
-
let X =
|
|
192
|
+
let X = b([]);
|
|
193
193
|
async function Z() {
|
|
194
194
|
if (!W.value || G.value) return;
|
|
195
195
|
let e = await H.lap();
|
|
196
|
-
e && (X.value.push(e),
|
|
196
|
+
e && (X.value.push(e), E("lap", X.value));
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Ne({ timestamp: e, elapsed: t, formatted: n }) {
|
|
199
199
|
V.value = {
|
|
200
200
|
timestamp: e,
|
|
201
201
|
elapsed: t,
|
|
202
202
|
formatted: n
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
let Q = d(() => Math.min(B.value.width, B.value.height) / 2.5 *
|
|
206
|
-
function
|
|
205
|
+
let Q = d(() => Math.min(B.value.width, B.value.height) / 2.5 * I.value.track.radiusRatio);
|
|
206
|
+
function Pe(e, t) {
|
|
207
207
|
return e * (360 / (t * 1e3)) % 360;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Fe(e) {
|
|
210
210
|
let t = Math.PI / 180 * e;
|
|
211
211
|
return {
|
|
212
212
|
cx: B.value.width / 2 + Q.value * Math.cos(t),
|
|
@@ -214,7 +214,7 @@ var ue = class {
|
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
let $ = d(() => {
|
|
217
|
-
let e =
|
|
217
|
+
let e = Pe(V.value.elapsed, I.value.cycleSeconds), { cx: t, cy: n } = Fe(e - 90), r = +(e > 180);
|
|
218
218
|
return {
|
|
219
219
|
cx: t || B.value.width / 2,
|
|
220
220
|
cy: n || B.value.height / 2 - Q.value,
|
|
@@ -228,61 +228,61 @@ var ue = class {
|
|
|
228
228
|
reset: q,
|
|
229
229
|
restart: Y,
|
|
230
230
|
lap: Z
|
|
231
|
-
}), (e, t) => (
|
|
231
|
+
}), (e, t) => (y(), p("div", {
|
|
232
232
|
ref_key: "timerChart",
|
|
233
|
-
ref:
|
|
233
|
+
ref: D,
|
|
234
234
|
class: "vue-data-ui-component vue-ui-timer",
|
|
235
|
-
style:
|
|
236
|
-
fontFamily:
|
|
235
|
+
style: v({
|
|
236
|
+
fontFamily: F.value.style.fontFamily,
|
|
237
237
|
width: "100%",
|
|
238
|
-
height:
|
|
238
|
+
height: F.value.responsive ? "100%" : "auto",
|
|
239
239
|
textAlign: "center"
|
|
240
240
|
})
|
|
241
241
|
}, [
|
|
242
|
-
|
|
242
|
+
F.value.style.title.text ? (y(), p("div", {
|
|
243
243
|
key: 0,
|
|
244
244
|
ref_key: "chartTitle",
|
|
245
|
-
ref:
|
|
246
|
-
style:
|
|
245
|
+
ref: O,
|
|
246
|
+
style: v({
|
|
247
247
|
width: "100%",
|
|
248
|
-
background:
|
|
248
|
+
background: F.value.style.backgroundColor
|
|
249
249
|
})
|
|
250
|
-
}, [(
|
|
251
|
-
key: `title_${
|
|
250
|
+
}, [(y(), ie(c, {
|
|
251
|
+
key: `title_${N.value}`,
|
|
252
252
|
config: {
|
|
253
253
|
title: {
|
|
254
254
|
cy: "title",
|
|
255
|
-
...
|
|
255
|
+
...F.value.style.title
|
|
256
256
|
},
|
|
257
257
|
subtitle: {
|
|
258
258
|
cy: "subtitle",
|
|
259
|
-
...
|
|
259
|
+
...F.value.style.title.subtitle
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
}, null, 8, ["config"]))], 4)) : f("", !0),
|
|
263
|
-
(
|
|
263
|
+
(y(), p("svg", {
|
|
264
264
|
ref_key: "svgRef",
|
|
265
|
-
ref:
|
|
266
|
-
xmlns:
|
|
265
|
+
ref: Ae,
|
|
266
|
+
xmlns: S(r),
|
|
267
267
|
viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
|
|
268
|
-
style:
|
|
268
|
+
style: v({
|
|
269
269
|
maxWidth: "100%",
|
|
270
270
|
overflow: "visible",
|
|
271
|
-
background:
|
|
271
|
+
background: F.value.style.backgroundColor
|
|
272
272
|
})
|
|
273
273
|
}, [
|
|
274
|
-
h(w
|
|
275
|
-
e.$slots["chart-background"] ? (
|
|
274
|
+
h(S(w)),
|
|
275
|
+
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
276
276
|
key: 0,
|
|
277
277
|
x: 0,
|
|
278
278
|
y: 0,
|
|
279
279
|
width: B.value.width <= 0 ? 10 : B.value.width,
|
|
280
280
|
height: B.value.height <= 0 ? 10 : B.value.height,
|
|
281
281
|
style: { pointerEvents: "none" }
|
|
282
|
-
}, [
|
|
283
|
-
L.value.
|
|
282
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, me)) : f("", !0),
|
|
283
|
+
L.value.gradient.show ? (y(), p("defs", he, [h(ne, {
|
|
284
284
|
t: "radial",
|
|
285
|
-
id: `tracker_gradient_${
|
|
285
|
+
id: `tracker_gradient_${M.value}`,
|
|
286
286
|
cx: "50%",
|
|
287
287
|
cy: "50%",
|
|
288
288
|
r: "50%",
|
|
@@ -290,11 +290,11 @@ var ue = class {
|
|
|
290
290
|
fy: "50%",
|
|
291
291
|
stops: [[
|
|
292
292
|
"0%",
|
|
293
|
-
L.value.
|
|
293
|
+
L.value.gradient.color,
|
|
294
294
|
1
|
|
295
295
|
], [
|
|
296
296
|
"100%",
|
|
297
|
-
L.value.
|
|
297
|
+
L.value.fill,
|
|
298
298
|
1
|
|
299
299
|
]]
|
|
300
300
|
}, null, 8, ["id", "stops"])])) : f("", !0),
|
|
@@ -302,130 +302,130 @@ var ue = class {
|
|
|
302
302
|
cx: B.value.width / 2,
|
|
303
303
|
cy: B.value.height / 2,
|
|
304
304
|
r: Q.value,
|
|
305
|
-
fill:
|
|
306
|
-
stroke:
|
|
307
|
-
"stroke-width":
|
|
308
|
-
}, null, 8,
|
|
309
|
-
|
|
305
|
+
fill: I.value.track.fill,
|
|
306
|
+
stroke: I.value.track.stroke,
|
|
307
|
+
"stroke-width": I.value.track.strokeWidth
|
|
308
|
+
}, null, 8, ge),
|
|
309
|
+
I.value.cycleTrack.show ? (y(), p("path", {
|
|
310
310
|
key: 2,
|
|
311
311
|
d: `M ${B.value.width / 2},${B.value.height / 2 - Q.value} A ${Q.value},${Q.value} 0 ${$.value.largeArcFlag},${$.value.sweepFlag} ${$.value.cx},${$.value.cy}`,
|
|
312
|
-
stroke:
|
|
313
|
-
"stroke-width":
|
|
312
|
+
stroke: I.value.cycleTrack.stroke,
|
|
313
|
+
"stroke-width": I.value.cycleTrack.strokeWidth,
|
|
314
314
|
"stroke-linecap": "round",
|
|
315
315
|
fill: "none"
|
|
316
|
-
}, null, 8,
|
|
317
|
-
m("circle",
|
|
316
|
+
}, null, 8, _e)) : f("", !0),
|
|
317
|
+
m("circle", oe($.value, {
|
|
318
318
|
r: B.value.tracker.core,
|
|
319
|
-
fill: L.value.
|
|
320
|
-
stroke: L.value.
|
|
321
|
-
"stroke-width": L.value.
|
|
322
|
-
}), null, 16,
|
|
323
|
-
L.value.
|
|
319
|
+
fill: L.value.gradient.show ? `url(#tracker_gradient_${M.value})` : L.value.fill,
|
|
320
|
+
stroke: L.value.stroke,
|
|
321
|
+
"stroke-width": L.value.strokeWidth
|
|
322
|
+
}), null, 16, ve),
|
|
323
|
+
L.value.aura.show ? (y(), p("circle", oe({ key: 3 }, $.value, {
|
|
324
324
|
r: B.value.tracker.aura,
|
|
325
|
-
fill: `${L.value.
|
|
326
|
-
stroke: L.value.
|
|
327
|
-
"stroke-width": L.value.
|
|
328
|
-
}), null, 16,
|
|
329
|
-
e.$slots.time ? (
|
|
325
|
+
fill: `${L.value.aura.fill}20`,
|
|
326
|
+
stroke: L.value.aura.stroke,
|
|
327
|
+
"stroke-width": L.value.aura.strokeWidth
|
|
328
|
+
}), null, 16, ye)) : f("", !0),
|
|
329
|
+
e.$slots.time ? (y(), p("foreignObject", {
|
|
330
330
|
key: 4,
|
|
331
331
|
x: B.value.width / 2,
|
|
332
332
|
y: B.value.height / 2,
|
|
333
333
|
height: "0.1",
|
|
334
334
|
width: "0.1",
|
|
335
335
|
style: { overflow: "visible" }
|
|
336
|
-
}, [
|
|
336
|
+
}, [x(e.$slots, "time", _(g({
|
|
337
337
|
...V.value,
|
|
338
338
|
...B.value
|
|
339
|
-
})), void 0, !0)], 8,
|
|
339
|
+
})), void 0, !0)], 8, be)) : e.$slots.timeSvg ? (y(), p("g", xe, [x(e.$slots, "timeSvg", _(g({
|
|
340
340
|
...V.value,
|
|
341
341
|
...B.value
|
|
342
|
-
})), void 0, !0)])) : (
|
|
342
|
+
})), void 0, !0)])) : (y(), p("text", {
|
|
343
343
|
key: 6,
|
|
344
344
|
x: B.value.width / 2,
|
|
345
345
|
y: B.value.height / 2 + B.value.label / 4,
|
|
346
346
|
"font-size": B.value.label,
|
|
347
347
|
"text-anchor": "middle",
|
|
348
|
-
fill:
|
|
349
|
-
"font-weight":
|
|
348
|
+
fill: I.value.label.color,
|
|
349
|
+
"font-weight": I.value.label.bold ? "bold" : "normal",
|
|
350
350
|
style: { "font-variant-numeric": "tabular-nums !important" }
|
|
351
|
-
},
|
|
352
|
-
], 12,
|
|
351
|
+
}, ue(V.value.formatted || Me.value), 9, Se))
|
|
352
|
+
], 12, pe)),
|
|
353
353
|
m("div", {
|
|
354
354
|
ref_key: "chartLegend",
|
|
355
|
-
ref:
|
|
356
|
-
style:
|
|
355
|
+
ref: k,
|
|
356
|
+
style: v({
|
|
357
357
|
width: "100%",
|
|
358
|
-
backgroundColor:
|
|
358
|
+
backgroundColor: R.value.backgroundColor
|
|
359
359
|
})
|
|
360
360
|
}, [
|
|
361
|
-
e.$slots.controls ? f("", !0) : (
|
|
362
|
-
|
|
361
|
+
e.$slots.controls ? f("", !0) : (y(), p("div", Ce, [
|
|
362
|
+
R.value.buttons.start ? (y(), p("button", {
|
|
363
363
|
key: 0,
|
|
364
|
-
title:
|
|
364
|
+
title: R.value.buttonTitles.start,
|
|
365
365
|
onClick: K,
|
|
366
366
|
class: "vue-ui-timer-button",
|
|
367
|
-
style:
|
|
367
|
+
style: v({
|
|
368
368
|
opacity: W.value ? .2 : 1,
|
|
369
|
-
cursor: W.value ? "default" :
|
|
369
|
+
cursor: W.value ? "default" : z.value ? "pointer" : "default"
|
|
370
370
|
})
|
|
371
371
|
}, [h(u, {
|
|
372
372
|
name: "play",
|
|
373
|
-
stroke:
|
|
374
|
-
}, null, 8, ["stroke"])], 12,
|
|
375
|
-
|
|
373
|
+
stroke: R.value.buttons.iconColor
|
|
374
|
+
}, null, 8, ["stroke"])], 12, we)) : f("", !0),
|
|
375
|
+
R.value.buttons.pause ? (y(), p("button", {
|
|
376
376
|
key: 1,
|
|
377
|
-
title: G.value ?
|
|
377
|
+
title: G.value ? R.value.buttonTitles.resume : R.value.buttonTitles.pause,
|
|
378
378
|
onClick: J,
|
|
379
379
|
class: "vue-ui-timer-button",
|
|
380
|
-
style:
|
|
380
|
+
style: v({
|
|
381
381
|
opacity: W.value ? 1 : .2,
|
|
382
|
-
cursor: W.value &&
|
|
382
|
+
cursor: W.value && z.value ? "pointer" : "default"
|
|
383
383
|
})
|
|
384
384
|
}, [h(u, {
|
|
385
385
|
name: "pause",
|
|
386
|
-
stroke:
|
|
387
|
-
}, null, 8, ["stroke"])], 12,
|
|
388
|
-
|
|
386
|
+
stroke: R.value.buttons.iconColor
|
|
387
|
+
}, null, 8, ["stroke"])], 12, Te)) : f("", !0),
|
|
388
|
+
R.value.buttons.reset ? (y(), p("button", {
|
|
389
389
|
key: 2,
|
|
390
|
-
title:
|
|
390
|
+
title: R.value.buttonTitles.reset,
|
|
391
391
|
onClick: q,
|
|
392
392
|
class: "vue-ui-timer-button",
|
|
393
|
-
style:
|
|
393
|
+
style: v({
|
|
394
394
|
opacity: W.value ? 1 : .2,
|
|
395
|
-
cursor: W.value &&
|
|
395
|
+
cursor: W.value && z.value ? "pointer" : "default"
|
|
396
396
|
})
|
|
397
397
|
}, [h(u, {
|
|
398
398
|
name: "stop",
|
|
399
|
-
stroke:
|
|
400
|
-
}, null, 8, ["stroke"])], 12,
|
|
401
|
-
|
|
399
|
+
stroke: R.value.buttons.iconColor
|
|
400
|
+
}, null, 8, ["stroke"])], 12, Ee)) : f("", !0),
|
|
401
|
+
R.value.buttons.restart ? (y(), p("button", {
|
|
402
402
|
key: 3,
|
|
403
|
-
title:
|
|
403
|
+
title: R.value.buttonTitles.restart,
|
|
404
404
|
onClick: Y,
|
|
405
405
|
class: "vue-ui-timer-button",
|
|
406
|
-
style:
|
|
406
|
+
style: v({
|
|
407
407
|
opacity: W.value ? 1 : .2,
|
|
408
|
-
cursor: W.value &&
|
|
408
|
+
cursor: W.value && z.value ? "pointer" : "default"
|
|
409
409
|
})
|
|
410
410
|
}, [h(u, {
|
|
411
411
|
name: "restart",
|
|
412
|
-
stroke:
|
|
413
|
-
}, null, 8, ["stroke"])], 12,
|
|
414
|
-
|
|
412
|
+
stroke: R.value.buttons.iconColor
|
|
413
|
+
}, null, 8, ["stroke"])], 12, De)) : f("", !0),
|
|
414
|
+
R.value.buttons.lap ? (y(), p("button", {
|
|
415
415
|
key: 4,
|
|
416
|
-
title:
|
|
416
|
+
title: R.value.buttonTitles.lap,
|
|
417
417
|
onClick: Z,
|
|
418
418
|
class: "vue-ui-timer-button",
|
|
419
|
-
style:
|
|
419
|
+
style: v({
|
|
420
420
|
opacity: W.value && !G.value ? 1 : .2,
|
|
421
|
-
cursor: W.value && !G.value &&
|
|
421
|
+
cursor: W.value && !G.value && z.value ? "pointer" : "default"
|
|
422
422
|
})
|
|
423
423
|
}, [h(u, {
|
|
424
424
|
name: "lap",
|
|
425
|
-
stroke:
|
|
426
|
-
}, null, 8, ["stroke"])], 12,
|
|
425
|
+
stroke: R.value.buttons.iconColor
|
|
426
|
+
}, null, 8, ["stroke"])], 12, Oe)) : f("", !0)
|
|
427
427
|
])),
|
|
428
|
-
|
|
428
|
+
x(e.$slots, "controls", _(g({
|
|
429
429
|
start: K,
|
|
430
430
|
pause: J,
|
|
431
431
|
reset: q,
|
|
@@ -436,7 +436,7 @@ var ue = class {
|
|
|
436
436
|
isPaused: G.value,
|
|
437
437
|
...V.value
|
|
438
438
|
})), void 0, !0),
|
|
439
|
-
|
|
439
|
+
x(e.$slots, "laps", _(g({
|
|
440
440
|
laps: X.value,
|
|
441
441
|
lap: Z,
|
|
442
442
|
isRunning: W.value,
|
|
@@ -446,6 +446,6 @@ var ue = class {
|
|
|
446
446
|
], 4)
|
|
447
447
|
], 4));
|
|
448
448
|
}
|
|
449
|
-
}, [["__scopeId", "data-v-
|
|
449
|
+
}, [["__scopeId", "data-v-2ce4581a"]]);
|
|
450
450
|
//#endregion
|
|
451
|
-
export {
|
|
451
|
+
export { C as n, w as t };
|