vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
- package/dist/components/arrow.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 +2 -0
- 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-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/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as u } from "./
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
2
|
+
import { q as t, qt as n, t as r } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as i, t as a } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as o } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as s } from "./useNestedProp--NSEmhOH.js";
|
|
6
|
+
import { n as c } from "./Title-BODtwViI.js";
|
|
7
|
+
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { l as ee, t as te } from "./useResponsive-ZtArZtUf.js";
|
|
9
|
+
import { t as u } from "./BaseIcon-91MZoczJ.js";
|
|
10
|
+
import { t as ne } from "./DefGrad-DVBqDjhO.js";
|
|
11
|
+
import { t as re } from "./useChartAccessibility-DYqac8yF.js";
|
|
12
|
+
import { computed as d, createBlock as ie, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineAsyncComponent as ae, guardReactiveProps as g, mergeProps as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as oe, onMounted as se, openBlock as b, ref as x, renderSlot as S, shallowRef as C, toDisplayString as ce, unref as w, watch as le } from "vue";
|
|
12
13
|
//#region src/timer.js
|
|
13
|
-
var
|
|
14
|
+
var ue = class {
|
|
14
15
|
constructor(e, t, n, r = !0, i = !0) {
|
|
15
16
|
this.interval = t, this.elapsed = 0, this.isPaused = !1;
|
|
16
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);
|
|
@@ -56,37 +57,37 @@ var ce = class {
|
|
|
56
57
|
n && n(e);
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
|
-
}, T = /* @__PURE__ */ e({ default: () => E }),
|
|
60
|
+
}, T = /* @__PURE__ */ e({ default: () => E }), de = ["xmlns", "viewBox"], fe = ["width", "height"], pe = { key: 1 }, me = [
|
|
60
61
|
"cx",
|
|
61
62
|
"cy",
|
|
62
63
|
"r",
|
|
63
64
|
"fill",
|
|
64
65
|
"stroke",
|
|
65
66
|
"stroke-width"
|
|
66
|
-
],
|
|
67
|
+
], he = [
|
|
67
68
|
"d",
|
|
68
69
|
"stroke",
|
|
69
70
|
"stroke-width"
|
|
70
|
-
],
|
|
71
|
+
], ge = [
|
|
71
72
|
"r",
|
|
72
73
|
"fill",
|
|
73
74
|
"stroke",
|
|
74
75
|
"stroke-width"
|
|
75
|
-
],
|
|
76
|
+
], _e = [
|
|
76
77
|
"r",
|
|
77
78
|
"fill",
|
|
78
79
|
"stroke",
|
|
79
80
|
"stroke-width"
|
|
80
|
-
],
|
|
81
|
+
], ve = ["x", "y"], ye = { key: 5 }, be = [
|
|
81
82
|
"x",
|
|
82
83
|
"y",
|
|
83
84
|
"font-size",
|
|
84
85
|
"fill",
|
|
85
86
|
"font-weight"
|
|
86
|
-
],
|
|
87
|
+
], xe = {
|
|
87
88
|
key: 0,
|
|
88
89
|
class: "vue-ui-timer-controls"
|
|
89
|
-
},
|
|
90
|
+
}, Se = ["title"], Ce = ["title"], we = ["title"], Te = ["title"], Ee = ["title"], E = /*#__PURE__*/ l({
|
|
90
91
|
__name: "vue-ui-timer",
|
|
91
92
|
props: { config: {
|
|
92
93
|
type: Object,
|
|
@@ -101,15 +102,15 @@ var ce = class {
|
|
|
101
102
|
"restart",
|
|
102
103
|
"lap"
|
|
103
104
|
],
|
|
104
|
-
setup(e, { expose:
|
|
105
|
-
let E =
|
|
106
|
-
|
|
105
|
+
setup(e, { expose: l, emit: T }) {
|
|
106
|
+
let E = ae(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_timer: De } = o(), D = e, O = T, k = x(null), A = x(null), j = x(null), M = C(null), N = C(null), P = x(t()), F = x(0);
|
|
107
|
+
se(() => {
|
|
107
108
|
I();
|
|
108
109
|
});
|
|
109
110
|
function I() {
|
|
110
111
|
if (L.value.responsive) {
|
|
111
|
-
let e =
|
|
112
|
-
let { width: e, height: t } =
|
|
112
|
+
let e = ee(() => {
|
|
113
|
+
let { width: e, height: t } = te({
|
|
113
114
|
chart: k.value,
|
|
114
115
|
title: L.value.style.title.text ? A.value : null,
|
|
115
116
|
legend: j.value
|
|
@@ -139,23 +140,30 @@ var ce = class {
|
|
|
139
140
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect()), M.value = new ResizeObserver(e), N.value = k.value.parentNode, M.value.observe(N.value);
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
|
-
|
|
143
|
+
oe(() => {
|
|
143
144
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
|
|
144
145
|
});
|
|
145
146
|
let L = d({
|
|
146
147
|
get: () => z(),
|
|
147
148
|
set: (e) => e
|
|
148
|
-
})
|
|
149
|
+
});
|
|
150
|
+
i({
|
|
151
|
+
config: () => L.value,
|
|
152
|
+
dataset: () => [],
|
|
153
|
+
component: "VueUiTimer",
|
|
154
|
+
rules: [a.noHint]
|
|
155
|
+
});
|
|
156
|
+
let R = d(() => L.value.useCursorPointer), { svgRef: Oe } = re({ config: L.value.style.title });
|
|
149
157
|
function z() {
|
|
150
|
-
return
|
|
158
|
+
return s({
|
|
151
159
|
userConfig: D.config,
|
|
152
|
-
defaultConfig:
|
|
160
|
+
defaultConfig: De
|
|
153
161
|
});
|
|
154
162
|
}
|
|
155
|
-
|
|
163
|
+
le(() => D.config, (e) => {
|
|
156
164
|
L.value = z(), I(), F.value += 1;
|
|
157
165
|
}, { deep: !0 });
|
|
158
|
-
let
|
|
166
|
+
let ke = d(() => {
|
|
159
167
|
if (L.value.stopwatch.showHours && L.value.stopwatch.showHundredth) return "00:00:00.00";
|
|
160
168
|
if (L.value.stopwatch.showHours && !L.value.stopwatch.showHundredth) return "00:00:00";
|
|
161
169
|
if (!L.value.stopwatch.showHours && L.value.stopwatch.showHundredth) return "00:00.00";
|
|
@@ -168,7 +176,7 @@ var ce = class {
|
|
|
168
176
|
aura: 12 * L.value.stopwatch.tracker.aura.radiusRatio
|
|
169
177
|
},
|
|
170
178
|
label: L.value.stopwatch.label.fontSize
|
|
171
|
-
}), V = x(0), H = new
|
|
179
|
+
}), V = x(0), H = new ue((e) => Ae(e), 10, "", L.value.stopwatch.showHundredth, L.value.stopwatch.showHours), U = x(!0), W = x(!1), G = x(!1);
|
|
172
180
|
function K() {
|
|
173
181
|
O("start"), U.value && H.start(), U.value = !1, W.value = !0;
|
|
174
182
|
}
|
|
@@ -187,7 +195,7 @@ var ce = class {
|
|
|
187
195
|
let e = await H.lap();
|
|
188
196
|
e && (X.value.push(e), O("lap", X.value));
|
|
189
197
|
}
|
|
190
|
-
function
|
|
198
|
+
function Ae({ timestamp: e, elapsed: t, formatted: n }) {
|
|
191
199
|
V.value = {
|
|
192
200
|
timestamp: e,
|
|
193
201
|
elapsed: t,
|
|
@@ -195,10 +203,10 @@ var ce = class {
|
|
|
195
203
|
};
|
|
196
204
|
}
|
|
197
205
|
let Q = d(() => Math.min(B.value.width, B.value.height) / 2.5 * L.value.stopwatch.track.radiusRatio);
|
|
198
|
-
function
|
|
206
|
+
function je(e, t) {
|
|
199
207
|
return e * (360 / (t * 1e3)) % 360;
|
|
200
208
|
}
|
|
201
|
-
function
|
|
209
|
+
function Me(e) {
|
|
202
210
|
let t = Math.PI / 180 * e;
|
|
203
211
|
return {
|
|
204
212
|
cx: B.value.width / 2 + Q.value * Math.cos(t),
|
|
@@ -206,7 +214,7 @@ var ce = class {
|
|
|
206
214
|
};
|
|
207
215
|
}
|
|
208
216
|
let $ = d(() => {
|
|
209
|
-
let e =
|
|
217
|
+
let e = je(V.value.elapsed, L.value.stopwatch.cycleSeconds), { cx: t, cy: n } = Me(e - 90), r = +(e > 180);
|
|
210
218
|
return {
|
|
211
219
|
cx: t || B.value.width / 2,
|
|
212
220
|
cy: n || B.value.height / 2 - Q.value,
|
|
@@ -214,7 +222,7 @@ var ce = class {
|
|
|
214
222
|
sweepFlag: 1
|
|
215
223
|
};
|
|
216
224
|
});
|
|
217
|
-
return
|
|
225
|
+
return l({
|
|
218
226
|
start: K,
|
|
219
227
|
pause: J,
|
|
220
228
|
reset: q,
|
|
@@ -239,7 +247,7 @@ var ce = class {
|
|
|
239
247
|
width: "100%",
|
|
240
248
|
background: L.value.style.backgroundColor
|
|
241
249
|
})
|
|
242
|
-
}, [(b(),
|
|
250
|
+
}, [(b(), ie(c, {
|
|
243
251
|
key: `title_${F.value}`,
|
|
244
252
|
config: {
|
|
245
253
|
title: {
|
|
@@ -254,7 +262,7 @@ var ce = class {
|
|
|
254
262
|
}, null, 8, ["config"]))], 4)) : f("", !0),
|
|
255
263
|
(b(), p("svg", {
|
|
256
264
|
ref_key: "svgRef",
|
|
257
|
-
ref:
|
|
265
|
+
ref: Oe,
|
|
258
266
|
xmlns: w(r),
|
|
259
267
|
viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
|
|
260
268
|
style: y({
|
|
@@ -271,8 +279,8 @@ var ce = class {
|
|
|
271
279
|
width: B.value.width <= 0 ? 10 : B.value.width,
|
|
272
280
|
height: B.value.height <= 0 ? 10 : B.value.height,
|
|
273
281
|
style: { pointerEvents: "none" }
|
|
274
|
-
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
275
|
-
L.value.stopwatch.tracker.gradient.show ? (b(), p("defs",
|
|
282
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, fe)) : f("", !0),
|
|
283
|
+
L.value.stopwatch.tracker.gradient.show ? (b(), p("defs", pe, [h(ne, {
|
|
276
284
|
t: "radial",
|
|
277
285
|
id: `tracker_gradient_${P.value}`,
|
|
278
286
|
cx: "50%",
|
|
@@ -297,7 +305,7 @@ var ce = class {
|
|
|
297
305
|
fill: L.value.stopwatch.track.fill,
|
|
298
306
|
stroke: L.value.stopwatch.track.stroke,
|
|
299
307
|
"stroke-width": L.value.stopwatch.track.strokeWidth
|
|
300
|
-
}, null, 8,
|
|
308
|
+
}, null, 8, me),
|
|
301
309
|
L.value.stopwatch.cycleTrack.show ? (b(), p("path", {
|
|
302
310
|
key: 2,
|
|
303
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}`,
|
|
@@ -305,19 +313,19 @@ var ce = class {
|
|
|
305
313
|
"stroke-width": L.value.stopwatch.cycleTrack.strokeWidth,
|
|
306
314
|
"stroke-linecap": "round",
|
|
307
315
|
fill: "none"
|
|
308
|
-
}, null, 8,
|
|
316
|
+
}, null, 8, he)) : f("", !0),
|
|
309
317
|
m("circle", _($.value, {
|
|
310
318
|
r: B.value.tracker.core,
|
|
311
319
|
fill: L.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${P.value})` : L.value.stopwatch.tracker.fill,
|
|
312
320
|
stroke: L.value.stopwatch.tracker.stroke,
|
|
313
321
|
"stroke-width": L.value.stopwatch.tracker.strokeWidth
|
|
314
|
-
}), null, 16,
|
|
322
|
+
}), null, 16, ge),
|
|
315
323
|
L.value.stopwatch.tracker.aura.show ? (b(), p("circle", _({ key: 3 }, $.value, {
|
|
316
324
|
r: B.value.tracker.aura,
|
|
317
325
|
fill: `${L.value.stopwatch.tracker.aura.fill}20`,
|
|
318
326
|
stroke: L.value.stopwatch.tracker.aura.stroke,
|
|
319
327
|
"stroke-width": L.value.stopwatch.tracker.aura.strokeWidth
|
|
320
|
-
}), null, 16,
|
|
328
|
+
}), null, 16, _e)) : f("", !0),
|
|
321
329
|
e.$slots.time ? (b(), p("foreignObject", {
|
|
322
330
|
key: 4,
|
|
323
331
|
x: B.value.width / 2,
|
|
@@ -328,7 +336,7 @@ var ce = class {
|
|
|
328
336
|
}, [S(e.$slots, "time", v(g({
|
|
329
337
|
...V.value,
|
|
330
338
|
...B.value
|
|
331
|
-
})), void 0, !0)], 8,
|
|
339
|
+
})), void 0, !0)], 8, ve)) : e.$slots.timeSvg ? (b(), p("g", ye, [S(e.$slots, "timeSvg", v(g({
|
|
332
340
|
...V.value,
|
|
333
341
|
...B.value
|
|
334
342
|
})), void 0, !0)])) : (b(), p("text", {
|
|
@@ -340,8 +348,8 @@ var ce = class {
|
|
|
340
348
|
fill: L.value.stopwatch.label.color,
|
|
341
349
|
"font-weight": L.value.stopwatch.label.bold ? "bold" : "normal",
|
|
342
350
|
style: { "font-variant-numeric": "tabular-nums !important" }
|
|
343
|
-
},
|
|
344
|
-
], 12,
|
|
351
|
+
}, ce(V.value.formatted || ke.value), 9, be))
|
|
352
|
+
], 12, de)),
|
|
345
353
|
m("div", {
|
|
346
354
|
ref_key: "chartLegend",
|
|
347
355
|
ref: j,
|
|
@@ -350,7 +358,7 @@ var ce = class {
|
|
|
350
358
|
backgroundColor: L.value.stopwatch.legend.backgroundColor
|
|
351
359
|
})
|
|
352
360
|
}, [
|
|
353
|
-
e.$slots.controls ? f("", !0) : (b(), p("div",
|
|
361
|
+
e.$slots.controls ? f("", !0) : (b(), p("div", xe, [
|
|
354
362
|
L.value.stopwatch.legend.buttons.start ? (b(), p("button", {
|
|
355
363
|
key: 0,
|
|
356
364
|
title: L.value.stopwatch.legend.buttonTitles.start,
|
|
@@ -360,10 +368,10 @@ var ce = class {
|
|
|
360
368
|
opacity: W.value ? .2 : 1,
|
|
361
369
|
cursor: W.value ? "default" : R.value ? "pointer" : "default"
|
|
362
370
|
})
|
|
363
|
-
}, [h(
|
|
371
|
+
}, [h(u, {
|
|
364
372
|
name: "play",
|
|
365
373
|
stroke: L.value.stopwatch.legend.buttons.iconColor
|
|
366
|
-
}, null, 8, ["stroke"])], 12,
|
|
374
|
+
}, null, 8, ["stroke"])], 12, Se)) : f("", !0),
|
|
367
375
|
L.value.stopwatch.legend.buttons.pause ? (b(), p("button", {
|
|
368
376
|
key: 1,
|
|
369
377
|
title: G.value ? L.value.stopwatch.legend.buttonTitles.resume : L.value.stopwatch.legend.buttonTitles.pause,
|
|
@@ -373,10 +381,10 @@ var ce = class {
|
|
|
373
381
|
opacity: W.value ? 1 : .2,
|
|
374
382
|
cursor: W.value && R.value ? "pointer" : "default"
|
|
375
383
|
})
|
|
376
|
-
}, [h(
|
|
384
|
+
}, [h(u, {
|
|
377
385
|
name: "pause",
|
|
378
386
|
stroke: L.value.stopwatch.legend.buttons.iconColor
|
|
379
|
-
}, null, 8, ["stroke"])], 12,
|
|
387
|
+
}, null, 8, ["stroke"])], 12, Ce)) : f("", !0),
|
|
380
388
|
L.value.stopwatch.legend.buttons.reset ? (b(), p("button", {
|
|
381
389
|
key: 2,
|
|
382
390
|
title: L.value.stopwatch.legend.buttonTitles.reset,
|
|
@@ -386,10 +394,10 @@ var ce = class {
|
|
|
386
394
|
opacity: W.value ? 1 : .2,
|
|
387
395
|
cursor: W.value && R.value ? "pointer" : "default"
|
|
388
396
|
})
|
|
389
|
-
}, [h(
|
|
397
|
+
}, [h(u, {
|
|
390
398
|
name: "stop",
|
|
391
399
|
stroke: L.value.stopwatch.legend.buttons.iconColor
|
|
392
|
-
}, null, 8, ["stroke"])], 12,
|
|
400
|
+
}, null, 8, ["stroke"])], 12, we)) : f("", !0),
|
|
393
401
|
L.value.stopwatch.legend.buttons.restart ? (b(), p("button", {
|
|
394
402
|
key: 3,
|
|
395
403
|
title: L.value.stopwatch.legend.buttonTitles.restart,
|
|
@@ -399,10 +407,10 @@ var ce = class {
|
|
|
399
407
|
opacity: W.value ? 1 : .2,
|
|
400
408
|
cursor: W.value && R.value ? "pointer" : "default"
|
|
401
409
|
})
|
|
402
|
-
}, [h(
|
|
410
|
+
}, [h(u, {
|
|
403
411
|
name: "restart",
|
|
404
412
|
stroke: L.value.stopwatch.legend.buttons.iconColor
|
|
405
|
-
}, null, 8, ["stroke"])], 12,
|
|
413
|
+
}, null, 8, ["stroke"])], 12, Te)) : f("", !0),
|
|
406
414
|
L.value.stopwatch.legend.buttons.lap ? (b(), p("button", {
|
|
407
415
|
key: 4,
|
|
408
416
|
title: L.value.stopwatch.legend.buttonTitles.lap,
|
|
@@ -412,10 +420,10 @@ var ce = class {
|
|
|
412
420
|
opacity: W.value && !G.value ? 1 : .2,
|
|
413
421
|
cursor: W.value && !G.value && R.value ? "pointer" : "default"
|
|
414
422
|
})
|
|
415
|
-
}, [h(
|
|
423
|
+
}, [h(u, {
|
|
416
424
|
name: "lap",
|
|
417
425
|
stroke: L.value.stopwatch.legend.buttons.iconColor
|
|
418
|
-
}, null, 8, ["stroke"])], 12,
|
|
426
|
+
}, null, 8, ["stroke"])], 12, Ee)) : f("", !0)
|
|
419
427
|
])),
|
|
420
428
|
S(e.$slots, "controls", v(g({
|
|
421
429
|
start: K,
|
|
@@ -438,6 +446,6 @@ var ce = class {
|
|
|
438
446
|
], 4)
|
|
439
447
|
], 4));
|
|
440
448
|
}
|
|
441
|
-
}, [["__scopeId", "data-v-
|
|
449
|
+
}, [["__scopeId", "data-v-64177013"]]);
|
|
442
450
|
//#endregion
|
|
443
451
|
export { T as n, E as t };
|