vue-data-ui 2.15.3 → 2.15.5
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-CzzsKX8z.js → Arrow-CI_Chty0.js} +1 -1
- package/dist/{BaseDraggableDialog-DCJi-1yP.js → BaseDraggableDialog-UeaNekHG.js} +2 -2
- package/dist/{BaseIcon-DhFdv5GX.js → BaseIcon-DTTmgKBX.js} +1 -1
- package/dist/{ColorPicker-DVErVt1a.js → ColorPicker-BySm_2Gi.js} +6 -6
- package/dist/{DataTable-C1m1pLCZ.js → DataTable-CLeYfh93.js} +2 -2
- package/dist/{Legend-Bv4X-1rt.js → Legend-B949nNP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSnwu1Ay.js → NonSvgPenAndPaper-zuNWbm52.js} +3 -3
- package/dist/{PackageVersion-Bto74qGz.js → PackageVersion-Djh3oJFs.js} +1 -1
- package/dist/{PenAndPaper-Ch0HBNVZ.js → PenAndPaper-BlF1d4XE.js} +3 -3
- package/dist/{Shape-G58fHOyr.js → Shape-DmDw1mpi.js} +1 -1
- package/dist/{Slicer-B31lD5Se.js → Slicer-mINKiN6T.js} +13 -13
- package/dist/{SparkTooltip-CT5F0yPg.js → SparkTooltip-B888Ijov.js} +1 -1
- package/dist/{Title-HKMJNA2t.js → Title-CPvPrwF4.js} +1 -1
- package/dist/{Tooltip-C3Dnr3zM.js → Tooltip-BiWfcBQk.js} +1 -1
- package/dist/{UserOptions-BnD3w_M-.js → UserOptions-CFllUVQ4.js} +2 -2
- package/dist/{dom-to-png-DvtSOm-q.js → dom-to-png-DeajhH5Z.js} +1 -1
- package/dist/{img-PRKpmCrJ.js → img-4TaH43jS.js} +1 -1
- package/dist/{index-pz3uy0bj.js → index-CBhz79Be.js} +12 -6
- package/dist/{pdf-NCZXhCbT.js → pdf-BlK5aBh-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +8 -0
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-BTwRpxJ6.js → useNestedProp-Cg9K3ISG.js} +1 -1
- package/dist/{usePrinter-CpYwk8Nl.js → usePrinter-DNC_9y1d.js} +2 -2
- package/dist/{vue-data-ui-edDJqWqp.js → vue-data-ui-DcP8arpr.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Cj4MAAl3.js → vue-ui-3d-bar-k4SNfbLV.js} +5 -5
- package/dist/{vue-ui-accordion-DVMQOCog.js → vue-ui-accordion-BWiiOpGO.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B9-mIJoM.js → vue-ui-age-pyramid-ruNP1NJy.js} +5 -5
- package/dist/{vue-ui-annotator-BelwH44r.js → vue-ui-annotator-_31h_MMe.js} +2 -2
- package/dist/{vue-ui-bullet-7voYFUyR.js → vue-ui-bullet-BWmLA5Tg.js} +6 -6
- package/dist/vue-ui-candlestick-C8f9jUPZ.js +856 -0
- package/dist/{vue-ui-carousel-table-CCu7pOvx.js → vue-ui-carousel-table-DY90M9EE.js} +4 -4
- package/dist/{vue-ui-chestnut-DaIhjU0E.js → vue-ui-chestnut-DyxtZhwH.js} +28 -28
- package/dist/{vue-ui-chord-ol8it32M.js → vue-ui-chord-C8hE1GXD.js} +47 -47
- package/dist/{vue-ui-circle-pack-4dYH7oFz.js → vue-ui-circle-pack-Dy8buEl5.js} +24 -24
- package/dist/{vue-ui-cursor-BWo0SND4.js → vue-ui-cursor-Bb8yPXC9.js} +2 -2
- package/dist/{vue-ui-dashboard-DLP5BjC2.js → vue-ui-dashboard-SSYhdz1j.js} +62 -62
- package/dist/{vue-ui-digits-vLYOgwYN.js → vue-ui-digits-D4Du84P3.js} +2 -2
- package/dist/{vue-ui-donut-DA1mt39C.js → vue-ui-donut-C0dqyYUE.js} +7 -7
- package/dist/{vue-ui-donut-evolution-Y5NvWAOf.js → vue-ui-donut-evolution-BOrRbvDz.js} +7 -7
- package/dist/{vue-ui-dumbbell-DHGaUXgf.js → vue-ui-dumbbell-DKmEVC-5.js} +6 -6
- package/dist/{vue-ui-flow-CPRwtkW7.js → vue-ui-flow-DalrAEmv.js} +24 -24
- package/dist/{vue-ui-funnel-Cdaj7JLP.js → vue-ui-funnel-B-k_4VgX.js} +5 -5
- package/dist/{vue-ui-galaxy-Bml38eED.js → vue-ui-galaxy-BWaie_o-.js} +35 -35
- package/dist/{vue-ui-gauge-DIKUWHow.js → vue-ui-gauge-D71TDx5z.js} +17 -17
- package/dist/{vue-ui-gizmo-CDGfldQ2.js → vue-ui-gizmo-CJChusop.js} +3 -3
- package/dist/{vue-ui-heatmap-Cvz3HWSo.js → vue-ui-heatmap-DLwLB3pv.js} +31 -31
- package/dist/{vue-ui-history-plot-CEw6Ijds.js → vue-ui-history-plot-D7wNqDSc.js} +34 -34
- package/dist/{vue-ui-kpi-BOU7jfII.js → vue-ui-kpi-CJut0fnk.js} +3 -3
- package/dist/{vue-ui-mini-loader-B0QHAAN0.js → vue-ui-mini-loader-DP2pINNZ.js} +2 -2
- package/dist/{vue-ui-molecule-DpZAl654.js → vue-ui-molecule-D8b1J-IM.js} +4 -4
- package/dist/{vue-ui-mood-radar-DVTDXHkP.js → vue-ui-mood-radar-Br6izAkp.js} +6 -6
- package/dist/{vue-ui-nested-donuts-Cs_jOkZf.js → vue-ui-nested-donuts-DTYcStbt.js} +25 -25
- package/dist/{vue-ui-onion-BNm4LDqz.js → vue-ui-onion-DVtreg0e.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-DF8yQwqD.js → vue-ui-parallel-coordinate-plot-COHHYnBG.js} +35 -35
- package/dist/{vue-ui-quadrant-CsT_YtVJ.js → vue-ui-quadrant-ClO3Aae-.js} +7 -7
- package/dist/{vue-ui-quick-chart-BQ8LWKNh.js → vue-ui-quick-chart-DXRWvUUA.js} +5 -5
- package/dist/{vue-ui-radar-BTXb1OpM.js → vue-ui-radar-Cs54EIJ2.js} +6 -6
- package/dist/{vue-ui-rating-10ZP5oGv.js → vue-ui-rating-Drx2P4xK.js} +2 -2
- package/dist/{vue-ui-relation-circle-BDY_mStf.js → vue-ui-relation-circle-B75Rh82J.js} +30 -30
- package/dist/{vue-ui-ridgeline-DiUQ9G50.js → vue-ui-ridgeline-DuZjVwmL.js} +7 -7
- package/dist/{vue-ui-rings-uOzklelU.js → vue-ui-rings-DWMToWPQ.js} +21 -21
- package/dist/{vue-ui-scatter-o8fU3CPQ.js → vue-ui-scatter-CAh7kj6p.js} +7 -7
- package/dist/{vue-ui-skeleton-DtyqxWGZ.js → vue-ui-skeleton-Dnw_Mcqb.js} +3 -3
- package/dist/{vue-ui-smiley-bleVUcTp.js → vue-ui-smiley-CkbdMJqH.js} +2 -2
- package/dist/{vue-ui-spark-trend-BSxc2AeN.js → vue-ui-spark-trend-DYVXugEw.js} +3 -3
- package/dist/{vue-ui-sparkbar-BpGhOBfa.js → vue-ui-sparkbar-Bv1RBHgo.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BGm17y7o.js → vue-ui-sparkgauge-Ls2_d0PB.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C8_9lU73.js → vue-ui-sparkhistogram-CimMCtyI.js} +4 -4
- package/dist/{vue-ui-sparkline-BEC-1ljx.js → vue-ui-sparkline-ex9TddKP.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BcDRG3Q4.js → vue-ui-sparkstackbar-DUy1WJg0.js} +3 -3
- package/dist/{vue-ui-stackbar-B9rcNFMU.js → vue-ui-stackbar-DaaB_FjD.js} +220 -210
- package/dist/{vue-ui-strip-plot-DiU5qgNv.js → vue-ui-strip-plot-HVQoc18O.js} +32 -32
- package/dist/{vue-ui-table-CVciwbm2.js → vue-ui-table-Oa_A-Vxo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Do0wz-jb.js → vue-ui-table-heatmap-DWdkbupf.js} +18 -18
- package/dist/{vue-ui-table-sparkline-Manlzy4B.js → vue-ui-table-sparkline-Cxj3ZoBu.js} +4 -4
- package/dist/{vue-ui-thermometer-CAZrRTaM.js → vue-ui-thermometer-D-_Dqdcv.js} +5 -5
- package/dist/{vue-ui-timer-DuOTyXM6.js → vue-ui-timer-C01Ipde6.js} +30 -30
- package/dist/{vue-ui-tiremarks-BCETzTS2.js → vue-ui-tiremarks-BTBo3bor.js} +5 -5
- package/dist/{vue-ui-treemap-DjINZD63.js → vue-ui-treemap-DJEl32W1.js} +75 -75
- package/dist/{vue-ui-vertical-bar-D9dKYc0V.js → vue-ui-vertical-bar-CnCpCi4v.js} +8 -8
- package/dist/{vue-ui-waffle-BMUnrWw9.js → vue-ui-waffle-rFSfHosn.js} +30 -30
- package/dist/{vue-ui-wheel-DEpzAPrw.js → vue-ui-wheel-B6md6ra7.js} +5 -5
- package/dist/{vue-ui-word-cloud-BBpm9VoF.js → vue-ui-word-cloud-Co6iFx9I.js} +5 -5
- package/dist/{vue-ui-world-D4G5xytB.js → vue-ui-world-d09xOrf0.js} +5 -5
- package/dist/{vue-ui-xy-BXY4ixtF.js → vue-ui-xy-CuzhWfRK.js} +20 -20
- package/dist/{vue-ui-xy-canvas-BLOjFl9f.js → vue-ui-xy-canvas-D2dyilFo.js} +45 -45
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-BiAWi-oW.js +0 -768
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as L, computed as f, ref as v, watch as Ke, shallowRef as Le, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as u, openBlock as s, unref as i, normalizeStyle as Y, normalizeClass as R, createBlock as A, createCommentVNode as c, createVNode as Ae, createSlots as et, withCtx as y, renderSlot as p, normalizeProps as
|
|
2
|
-
import { u as ot, c as le, t as st, p as z, a as rt, o as ut, e as ae, g as Se, b as it, d as ze, v as nt, D as vt, f as j, X as ct, i as oe, I as ht, l as dt, h as pt, x as Pe,
|
|
1
|
+
import { defineAsyncComponent as L, computed as f, ref as v, watch as Ke, shallowRef as Le, onMounted as Qe, onBeforeUnmount as Ze, createElementBlock as u, openBlock as s, unref as i, normalizeStyle as Y, normalizeClass as R, createBlock as A, createCommentVNode as c, createVNode as Ae, createSlots as et, withCtx as y, renderSlot as p, normalizeProps as M, guardReactiveProps as F, createElementVNode as k, Fragment as g, renderList as $, toDisplayString as S, mergeProps as tt, createTextVNode as lt, nextTick as at } from "vue";
|
|
2
|
+
import { u as ot, c as le, t as st, p as z, a as rt, o as ut, e as ae, g as Se, b as it, d as ze, v as nt, D as vt, f as j, X as ct, i as oe, I as ht, l as dt, h as pt, x as Pe, E as ft, q as yt, r as bt, y as mt } from "./index-CBhz79Be.js";
|
|
3
3
|
import { t as gt, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Oe } from "./useNestedProp-
|
|
5
|
-
import { u as xt } from "./usePrinter-
|
|
4
|
+
import { u as Oe } from "./useNestedProp-Cg9K3ISG.js";
|
|
5
|
+
import { u as xt } from "./usePrinter-DNC_9y1d.js";
|
|
6
6
|
import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import $t from "./Title-
|
|
9
|
-
import { _ as Tt } from "./Shape-
|
|
8
|
+
import $t from "./Title-CPvPrwF4.js";
|
|
9
|
+
import { _ as Tt } from "./Shape-DmDw1mpi.js";
|
|
10
10
|
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], zt = { key: 1 }, Pt = { key: 0 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nt = { key: 1 },
|
|
11
|
+
const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"], zt = { key: 1 }, Pt = { key: 0 }, Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Nt = { key: 1 }, Mt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "fill", "font-size"], Dt = ["x", "y", "font-size", "fill"], Gt = ["x", "y", "font-size", "fill", "innerHTML"], Rt = ["fill", "font-size", "transform"], Et = ["fill", "font-size", "x", "y"], Vt = ["x1", "x2", "y1", "y2", "stroke"], Ht = ["cx", "cy", "fill"], Ut = ["cx", "cy", "fill"], Bt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], jt = ["stop-color"], qt = { key: 0 }, Jt = ["x", "y", "font-size", "fill"], Kt = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, Qt = ["innerHTML"], Zt = {
|
|
@@ -28,8 +28,8 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectDatapoint"],
|
|
31
|
-
setup(Ne, { expose:
|
|
32
|
-
const We = L(() => import("./vue-ui-accordion-
|
|
31
|
+
setup(Ne, { expose: Me, emit: Fe }) {
|
|
32
|
+
const We = L(() => import("./vue-ui-accordion-BWiiOpGO.js")), Ie = L(() => import("./DataTable-CLeYfh93.js")), De = L(() => import("./PackageVersion-Djh3oJFs.js")), Ge = L(() => import("./PenAndPaper-BlF1d4XE.js")), Re = L(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), Ee = L(() => import("./Tooltip-BiWfcBQk.js")), Ve = L(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_strip_plot: He } = ot(), b = Ne, Ue = Fe, T = f({
|
|
33
33
|
get() {
|
|
34
34
|
return !!b.dataset && b.dataset.length;
|
|
35
35
|
},
|
|
@@ -97,7 +97,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
97
97
|
noTitle: ie.value
|
|
98
98
|
});
|
|
99
99
|
requestAnimationFrame(() => {
|
|
100
|
-
|
|
100
|
+
E.value = l, O.value.width = r, O.value.height = l, D.value = (r - m.value.left - m.value.right) / b.dataset.length, e.value.responsiveProportionalSizing ? G.value = ft({
|
|
101
101
|
relator: Math.min(l, r),
|
|
102
102
|
adjuster: 600,
|
|
103
103
|
source: e.value.style.chart.plots.radius,
|
|
@@ -130,7 +130,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
130
130
|
bottom: e.value.style.chart.padding.bottom,
|
|
131
131
|
left: e.value.style.chart.padding.left,
|
|
132
132
|
right: e.value.style.chart.padding.right
|
|
133
|
-
}), D = v(e.value.style.chart.stripWidth),
|
|
133
|
+
}), D = v(e.value.style.chart.stripWidth), E = v(e.value.style.chart.height), G = v(e.value.style.chart.plots.radius), O = v({
|
|
134
134
|
width: D.value * b.dataset.length + m.value.left + m.value.right,
|
|
135
135
|
height: e.value.style.chart.height
|
|
136
136
|
}), a = f(() => {
|
|
@@ -139,14 +139,14 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
139
139
|
left: m.value.left,
|
|
140
140
|
right: t - m.value.right,
|
|
141
141
|
top: m.value.top,
|
|
142
|
-
bottom:
|
|
142
|
+
bottom: E.value - m.value.bottom,
|
|
143
143
|
width: D.value * b.dataset.length,
|
|
144
|
-
height:
|
|
144
|
+
height: E.value - m.value.top - m.value.bottom,
|
|
145
145
|
stripWidth: D.value,
|
|
146
|
-
absoluteHeight:
|
|
146
|
+
absoluteHeight: E.value,
|
|
147
147
|
absoluteWidth: t
|
|
148
148
|
};
|
|
149
|
-
}),
|
|
149
|
+
}), V = f(() => T.value ? b.dataset.map((t, r) => {
|
|
150
150
|
const l = le();
|
|
151
151
|
return {
|
|
152
152
|
...t,
|
|
@@ -160,7 +160,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
160
160
|
id: le()
|
|
161
161
|
})).sort((o, n) => o.value - n.value)
|
|
162
162
|
};
|
|
163
|
-
}) : null), x = f(() => (
|
|
163
|
+
}) : null), x = f(() => (V.value || []).map((t, r) => ({
|
|
164
164
|
...t,
|
|
165
165
|
plots: t.plots.map((l) => ({
|
|
166
166
|
...l,
|
|
@@ -185,18 +185,18 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
185
185
|
value: t
|
|
186
186
|
}))), ee = v(null), h = v(null);
|
|
187
187
|
function je({ datapoint: t, seriesIndex: r }) {
|
|
188
|
-
ee.value = { datapoint: t, seriesIndex: r, config: e.value, series:
|
|
188
|
+
ee.value = { datapoint: t, seriesIndex: r, config: e.value, series: V.value }, J.value = !0, h.value = t;
|
|
189
189
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
190
190
|
if (Pe(l) && mt(() => l({
|
|
191
191
|
seriesIndex: r,
|
|
192
192
|
datapoint: t,
|
|
193
|
-
series:
|
|
193
|
+
series: V.value,
|
|
194
194
|
config: e.value
|
|
195
195
|
})))
|
|
196
196
|
K.value = l({
|
|
197
197
|
seriesIndex: r,
|
|
198
198
|
datapoint: t,
|
|
199
|
-
series:
|
|
199
|
+
series: V.value,
|
|
200
200
|
config: e.value
|
|
201
201
|
});
|
|
202
202
|
else {
|
|
@@ -289,7 +289,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
289
289
|
function te() {
|
|
290
290
|
B.value = !B.value;
|
|
291
291
|
}
|
|
292
|
-
return
|
|
292
|
+
return Me({
|
|
293
293
|
getData: Je,
|
|
294
294
|
generatePdf: ge,
|
|
295
295
|
generateCsv: Ce,
|
|
@@ -342,7 +342,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
342
342
|
}
|
|
343
343
|
}, null, 8, ["config"]))
|
|
344
344
|
], 512)) : c("", !0),
|
|
345
|
-
e.value.userOptions.show && T.value && (i(de) || i(Q)) ? (s(), A(i(
|
|
345
|
+
e.value.userOptions.show && T.value && (i(de) || i(Q)) ? (s(), A(i(Ve), {
|
|
346
346
|
ref: "details",
|
|
347
347
|
key: `user_option_${se.value}`,
|
|
348
348
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -380,7 +380,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
380
380
|
t.$slots.menuIcon ? {
|
|
381
381
|
name: "menuIcon",
|
|
382
382
|
fn: y(({ isOpen: l, color: o }) => [
|
|
383
|
-
p(t.$slots, "menuIcon", F(
|
|
383
|
+
p(t.$slots, "menuIcon", M(F({ isOpen: l, color: o })), void 0, !0)
|
|
384
384
|
]),
|
|
385
385
|
key: "0"
|
|
386
386
|
} : void 0,
|
|
@@ -429,14 +429,14 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
429
429
|
t.$slots.optionFullscreen ? {
|
|
430
430
|
name: "optionFullscreen",
|
|
431
431
|
fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
432
|
-
p(t.$slots, "optionFullscreen", F(
|
|
432
|
+
p(t.$slots, "optionFullscreen", M(F({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
433
433
|
]),
|
|
434
434
|
key: "7"
|
|
435
435
|
} : void 0,
|
|
436
436
|
t.$slots.optionAnnotator ? {
|
|
437
437
|
name: "optionAnnotator",
|
|
438
438
|
fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
439
|
-
p(t.$slots, "optionAnnotator", F(
|
|
439
|
+
p(t.$slots, "optionAnnotator", M(F({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
440
440
|
]),
|
|
441
441
|
key: "8"
|
|
442
442
|
} : void 0
|
|
@@ -486,7 +486,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
486
486
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
487
487
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
|
|
488
488
|
"stroke-linecap": "round"
|
|
489
|
-
}, null, 8,
|
|
489
|
+
}, null, 8, Mt))), 256))
|
|
490
490
|
])) : c("", !0),
|
|
491
491
|
k("line", {
|
|
492
492
|
x1: a.value.left,
|
|
@@ -496,7 +496,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
496
496
|
stroke: e.value.style.chart.grid.stroke,
|
|
497
497
|
"stroke-width": e.value.style.chart.grid.strokeWidth,
|
|
498
498
|
"stroke-linecap": "round"
|
|
499
|
-
}, null, 8,
|
|
499
|
+
}, null, 8, Ft),
|
|
500
500
|
k("line", {
|
|
501
501
|
x1: a.value.left,
|
|
502
502
|
x2: a.value.right,
|
|
@@ -563,7 +563,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
563
563
|
x: a.value.left + a.value.width / 2,
|
|
564
564
|
y: a.value.absoluteHeight,
|
|
565
565
|
"text-anchor": "middle"
|
|
566
|
-
}, S(e.value.style.chart.labels.axis.xLabel), 9,
|
|
566
|
+
}, S(e.value.style.chart.labels.axis.xLabel), 9, Et)) : c("", !0),
|
|
567
567
|
h.value ? (s(), u(g, { key: 6 }, [
|
|
568
568
|
k("line", {
|
|
569
569
|
x1: a.value.left,
|
|
@@ -573,7 +573,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
573
573
|
stroke: h.value.color,
|
|
574
574
|
"stroke-width": 1,
|
|
575
575
|
class: R({ "select-circle": e.value.useCssAnimation })
|
|
576
|
-
}, null, 10,
|
|
576
|
+
}, null, 10, Vt),
|
|
577
577
|
k("circle", {
|
|
578
578
|
cx: a.value.left,
|
|
579
579
|
cy: h.value.y,
|
|
@@ -651,7 +651,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
651
651
|
p(t.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
652
652
|
], 14, At)) : c("", !0),
|
|
653
653
|
t.$slots.watermark ? (s(), u("div", Kt, [
|
|
654
|
-
p(t.$slots, "watermark", F(
|
|
654
|
+
p(t.$slots, "watermark", M(F({ isPrinting: i(be) || i(me) })), void 0, !0)
|
|
655
655
|
])) : c("", !0),
|
|
656
656
|
T.value ? c("", !0) : (s(), A(i(Re), {
|
|
657
657
|
key: 6,
|
|
@@ -673,7 +673,7 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
673
673
|
}, [
|
|
674
674
|
p(t.$slots, "source", {}, void 0, !0)
|
|
675
675
|
], 512)) : c("", !0),
|
|
676
|
-
Ae(i(
|
|
676
|
+
Ae(i(Ee), {
|
|
677
677
|
show: d.value.showTooltip && J.value,
|
|
678
678
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
679
679
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -690,10 +690,10 @@ const Lt = ["id"], At = ["xmlns", "viewBox"], St = ["x", "y", "width", "height"]
|
|
|
690
690
|
isCustom: i(Pe)(e.value.style.chart.tooltip.customFormat)
|
|
691
691
|
}, {
|
|
692
692
|
"tooltip-before": y(() => [
|
|
693
|
-
p(t.$slots, "tooltip-before", F(
|
|
693
|
+
p(t.$slots, "tooltip-before", M(F({ ...ee.value })), void 0, !0)
|
|
694
694
|
]),
|
|
695
695
|
"tooltip-after": y(() => [
|
|
696
|
-
p(t.$slots, "tooltip-after", F(
|
|
696
|
+
p(t.$slots, "tooltip-after", M(F({ ...ee.value })), void 0, !0)
|
|
697
697
|
]),
|
|
698
698
|
_: 3
|
|
699
699
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W,
|
|
2
|
-
import q from "./vue-ui-xy-
|
|
3
|
-
import Q from "./vue-ui-donut-
|
|
1
|
+
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, F as J, u as K, p as Z } from "./index-CBhz79Be.js";
|
|
2
|
+
import q from "./vue-ui-xy-CuzhWfRK.js";
|
|
3
|
+
import Q from "./vue-ui-donut-C0dqyYUE.js";
|
|
4
4
|
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as a, createCommentVNode as b, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
|
|
5
5
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const se = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as r, openBlock as n, unref as i, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as u, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
|
|
2
|
-
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me,
|
|
3
|
-
import { u as H } from "./useNestedProp-
|
|
4
|
-
import { u as ye } from "./usePrinter-
|
|
2
|
+
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me, F as fe, P as he, q as ge, r as be } from "./index-CBhz79Be.js";
|
|
3
|
+
import { u as H } from "./useNestedProp-Cg9K3ISG.js";
|
|
4
|
+
import { u as ye } from "./usePrinter-DNC_9y1d.js";
|
|
5
5
|
import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { _ as ke } from "./Shape-
|
|
6
|
+
import { _ as ke } from "./Shape-DmDw1mpi.js";
|
|
7
7
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"],
|
|
8
|
+
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], Fe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
|
|
11
|
-
},
|
|
11
|
+
}, Pe = ["height", "width"], xe = {
|
|
12
12
|
key: 0,
|
|
13
13
|
role: "cell",
|
|
14
14
|
"data-cell": "sum"
|
|
@@ -45,15 +45,15 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
45
45
|
"6b4a429e": ee.value,
|
|
46
46
|
"14249d0c": j.value
|
|
47
47
|
}));
|
|
48
|
-
const X = oe(() => import("./UserOptions-
|
|
48
|
+
const X = oe(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), d = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
|
|
49
49
|
z(() => {
|
|
50
50
|
q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
51
51
|
});
|
|
52
52
|
const t = c({
|
|
53
|
-
get: () =>
|
|
53
|
+
get: () => x(),
|
|
54
54
|
set: (e) => e
|
|
55
|
-
}), { userOptionsVisible: $, setUserOptionsVisibility:
|
|
56
|
-
function
|
|
55
|
+
}), { userOptionsVisible: $, setUserOptionsVisibility: F, keepUserOptionState: P } = Ce({ config: t.value });
|
|
56
|
+
function x() {
|
|
57
57
|
const e = H({
|
|
58
58
|
userConfig: m.config,
|
|
59
59
|
defaultConfig: W
|
|
@@ -66,7 +66,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
66
66
|
} : e;
|
|
67
67
|
}
|
|
68
68
|
ne(() => m.config, (e) => {
|
|
69
|
-
t.value =
|
|
69
|
+
t.value = x(), $.value = !t.value.userOptions.showOnChartHover, R();
|
|
70
70
|
}, { deep: !0 });
|
|
71
71
|
const { isPrinting: J, isImaging: K, generatePdf: N, generateImage: V } = ye({
|
|
72
72
|
elementId: `table_heatmap_${_.value}`,
|
|
@@ -143,10 +143,10 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
143
143
|
style: C(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${t.value.userOptions.show ? "36px" : ""}; ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
|
|
144
144
|
class: E({ "vue-ui-responsive": d.value }),
|
|
145
145
|
id: `table_heatmap_${_.value}`,
|
|
146
|
-
onMouseenter: o[0] || (o[0] = () => i(
|
|
147
|
-
onMouseleave: o[1] || (o[1] = () => i(
|
|
146
|
+
onMouseenter: o[0] || (o[0] = () => i(F)(!0)),
|
|
147
|
+
onMouseleave: o[1] || (o[1] = () => i(F)(!1))
|
|
148
148
|
}, [
|
|
149
|
-
t.value.userOptions.show && Y.value && (i(
|
|
149
|
+
t.value.userOptions.show && Y.value && (i(P) || i($)) ? (n(), le(i(X), {
|
|
150
150
|
ref: "details",
|
|
151
151
|
key: `user_option_${O.value}`,
|
|
152
152
|
backgroundColor: t.value.style.backgroundColor,
|
|
@@ -168,7 +168,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
168
168
|
onGenerateCsv: U,
|
|
169
169
|
onGenerateImage: i(V),
|
|
170
170
|
style: C({
|
|
171
|
-
visibility: i(
|
|
171
|
+
visibility: i(P) ? i($) ? "visible" : "hidden" : "visible"
|
|
172
172
|
})
|
|
173
173
|
}, re({ _: 2 }, [
|
|
174
174
|
e.$slots.menuIcon ? {
|
|
@@ -230,7 +230,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
230
230
|
role: "cell",
|
|
231
231
|
"data-cell": t.value.table.head.values[p]
|
|
232
232
|
}, [
|
|
233
|
-
a.color && p === 0 ? (n(), r("div",
|
|
233
|
+
a.color && p === 0 ? (n(), r("div", Fe, [
|
|
234
234
|
a.color ? (n(), r("svg", {
|
|
235
235
|
key: 0,
|
|
236
236
|
height: t.value.style.shapeSize,
|
|
@@ -244,7 +244,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
244
244
|
radius: 9,
|
|
245
245
|
shape: a.shape || "circle"
|
|
246
246
|
}, null, 8, ["color", "shape"])
|
|
247
|
-
], 8,
|
|
247
|
+
], 8, Pe)) : v("", !0),
|
|
248
248
|
u(e.$slots, "rowTitle", f({ ref_for: !0 }, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value }), void 0, !0)
|
|
249
249
|
])) : (n(), r(k, { key: 1 }, [
|
|
250
250
|
p === 0 ? u(e.$slots, "rowTitle", f({
|
|
@@ -257,7 +257,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
257
257
|
}, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value, color: a.colors[p], textColor: i(fe)(a.colors[p]) }), void 0, !0) : v("", !0)
|
|
258
258
|
], 64))
|
|
259
259
|
], 8, Oe))), 256)),
|
|
260
|
-
t.value.table.showSum ? (n(), r("td",
|
|
260
|
+
t.value.table.showSum ? (n(), r("td", xe, [
|
|
261
261
|
u(e.$slots, "sum", f({ ref_for: !0 }, { value: a.sum, rowIndex: s, isResponsive: d.value }), void 0, !0)
|
|
262
262
|
])) : v("", !0),
|
|
263
263
|
t.value.table.showAverage ? (n(), r("td", Ne, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Fe, defineAsyncComponent as J, ref as p, useSlots as Ve, onMounted as me, computed as _, watch as be, shallowRef as Te, onBeforeUnmount as We, createElementBlock as c, openBlock as v, unref as u, normalizeClass as K, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as D, Fragment as Q, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as P, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
|
|
2
|
-
import { u as ye } from "./useNestedProp-
|
|
3
|
-
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a6 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-
|
|
4
|
-
import { u as je } from "./usePrinter-
|
|
2
|
+
import { u as ye } from "./useNestedProp-Cg9K3ISG.js";
|
|
3
|
+
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a6 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-CBhz79Be.js";
|
|
4
|
+
import { u as je } from "./usePrinter-DNC_9y1d.js";
|
|
5
5
|
import { u as et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { v as tt } from "./vClickOutside-C6WiFswA.js";
|
|
7
7
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -43,7 +43,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
43
43
|
Fe((t) => ({
|
|
44
44
|
c3f77e6e: t.tdo
|
|
45
45
|
}));
|
|
46
|
-
const Ce = J(() => import("./vue-ui-sparkline-
|
|
46
|
+
const Ce = J(() => import("./vue-ui-sparkline-ex9TddKP.js")), N = J(() => import("./BaseIcon-DTTmgKBX.js")), xe = J(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
|
|
47
47
|
me(() => {
|
|
48
48
|
Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
49
49
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as O, createBlock as I, createCommentVNode as c, createSlots as Fe, withCtx as x, renderSlot as f, normalizeProps as A, guardReactiveProps as M, createVNode as Oe, createElementVNode as v, Fragment as Y, renderList as oe, toDisplayString as Ie } from "vue";
|
|
2
|
-
import { u as Ae, o as Me, e as le, g as Ye, c as Ne, t as Se, p as w, a as Ue, b as Te, v as g, d as N, X as Ve, s as qe, i as Le, f as Ee } from "./index-
|
|
3
|
-
import { u as ae } from "./useNestedProp-
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
2
|
+
import { u as Ae, o as Me, e as le, g as Ye, c as Ne, t as Se, p as w, a as Ue, b as Te, v as g, d as N, X as Ve, s as qe, i as Le, f as Ee } from "./index-CBhz79Be.js";
|
|
3
|
+
import { u as ae } from "./useNestedProp-Cg9K3ISG.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-DNC_9y1d.js";
|
|
5
5
|
import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as je } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-
|
|
7
|
+
import ze from "./Title-CPvPrwF4.js";
|
|
8
8
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Re = ["id"], De = {
|
|
10
10
|
key: 1,
|
|
@@ -46,7 +46,7 @@ const Re = ["id"], De = {
|
|
|
46
46
|
"19db7204": ge.value,
|
|
47
47
|
"5e34901e": fe.value
|
|
48
48
|
}));
|
|
49
|
-
const ne = F(() => import("./PackageVersion-
|
|
49
|
+
const ne = F(() => import("./PackageVersion-Djh3oJFs.js")), ue = F(() => import("./PenAndPaper-BlF1d4XE.js")), ie = F(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), ce = F(() => import("./UserOptions-CFllUVQ4.js")), { vue_ui_thermometer: he } = Ae(), a = _, S = d(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
50
50
|
$e(() => {
|
|
51
51
|
W();
|
|
52
52
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as
|
|
2
|
-
import { u as ne } from "./useNestedProp-
|
|
3
|
-
import { u as ce, c as ve, X as de,
|
|
1
|
+
import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as F, onBeforeUnmount as oe, watch as re, createElementBlock as r, openBlock as l, normalizeStyle as w, createCommentVNode as d, createElementVNode as M, createBlock as ue, unref as Q, createVNode as T, renderSlot as H, mergeProps as Y, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
|
|
2
|
+
import { u as ne } from "./useNestedProp-Cg9K3ISG.js";
|
|
3
|
+
import { u as ce, c as ve, X as de, E as X } from "./index-CBhz79Be.js";
|
|
4
4
|
import { t as he, u as pe } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
-
import we from "./Title-
|
|
7
|
-
import R from "./BaseIcon-
|
|
6
|
+
import we from "./Title-CPvPrwF4.js";
|
|
7
|
+
import R from "./BaseIcon-DTTmgKBX.js";
|
|
8
8
|
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
class ge {
|
|
10
|
-
constructor(L,
|
|
11
|
-
this.interval =
|
|
10
|
+
constructor(L, E, S, N = !0, A = !0) {
|
|
11
|
+
this.interval = E, this.elapsed = 0, this.isPaused = !1;
|
|
12
12
|
const g = `
|
|
13
13
|
let interval;
|
|
14
14
|
let elapsed = 0;
|
|
@@ -75,7 +75,7 @@ class ge {
|
|
|
75
75
|
`, $ = new Blob([g], { type: "application/javascript" }), D = URL.createObjectURL($), i = new Worker(D);
|
|
76
76
|
function n(o) {
|
|
77
77
|
let h = Math.floor(o / 1e3), k = Math.floor(o % 1e3 / 10), m = Math.floor(h / 3600), e = Math.floor(h % 3600 / 60), x = h % 60, p = "";
|
|
78
|
-
return A && (p += String(m).padStart(2, "0") + ":"), p += String(e).padStart(2, "0") + ":", p += String(x).padStart(2, "0"),
|
|
78
|
+
return A && (p += String(m).padStart(2, "0") + ":"), p += String(e).padStart(2, "0") + ":", p += String(x).padStart(2, "0"), N && (p += "." + String(k).padStart(2, "0")), p;
|
|
79
79
|
}
|
|
80
80
|
this.start = () => {
|
|
81
81
|
this.isPaused = !1, i.postMessage({ action: "start", data: { interval: this.interval } });
|
|
@@ -118,7 +118,7 @@ class ge {
|
|
|
118
118
|
const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e = ["id"], Ce = ["stop-color"], Me = ["stop-color"], Te = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], $e = ["d", "stroke", "stroke-width"], xe = ["r", "fill", "stroke", "stroke-width"], Ie = ["r", "fill", "stroke", "stroke-width"], Pe = ["x", "y"], Re = ["x", "y", "font-size", "fill", "font-weight"], Se = {
|
|
119
119
|
key: 0,
|
|
120
120
|
class: "vue-ui-timer-controls"
|
|
121
|
-
}, Ae = ["title"], De = ["title"],
|
|
121
|
+
}, Ae = ["title"], De = ["title"], ze = ["title"], Fe = ["title"], He = ["title"], Le = {
|
|
122
122
|
__name: "vue-ui-timer",
|
|
123
123
|
props: {
|
|
124
124
|
config: {
|
|
@@ -129,8 +129,8 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
emits: ["start", "pause", "reset", "restart", "lap"],
|
|
132
|
-
setup(q, { expose: L, emit:
|
|
133
|
-
const S = se(() => import("./PackageVersion-
|
|
132
|
+
setup(q, { expose: L, emit: E }) {
|
|
133
|
+
const S = se(() => import("./PackageVersion-Djh3oJFs.js")), { vue_ui_timer: N } = ce(), A = q, g = E, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
|
|
134
134
|
le(() => {
|
|
135
135
|
m();
|
|
136
136
|
});
|
|
@@ -170,20 +170,20 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
170
170
|
oe(() => {
|
|
171
171
|
n.value && (o.value && n.value.unobserve(o.value), n.value.disconnect());
|
|
172
172
|
});
|
|
173
|
-
const e =
|
|
173
|
+
const e = F({
|
|
174
174
|
get: () => p(),
|
|
175
175
|
set: (a) => a
|
|
176
176
|
}), { svgRef: x } = fe({ config: e.value.style.title });
|
|
177
177
|
function p() {
|
|
178
178
|
return ne({
|
|
179
179
|
userConfig: A.config,
|
|
180
|
-
defaultConfig:
|
|
180
|
+
defaultConfig: N
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
re(() => A.config, (a) => {
|
|
184
184
|
e.value = p(), m(), k.value += 1;
|
|
185
185
|
}, { deep: !0 });
|
|
186
|
-
const J =
|
|
186
|
+
const J = F(() => {
|
|
187
187
|
if (e.value.stopwatch.showHours && e.value.stopwatch.showHundredth)
|
|
188
188
|
return "00:00:00.00";
|
|
189
189
|
if (e.value.stopwatch.showHours && !e.value.stopwatch.showHundredth)
|
|
@@ -206,12 +206,12 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
206
206
|
"",
|
|
207
207
|
e.value.stopwatch.showHundredth,
|
|
208
208
|
e.value.stopwatch.showHours
|
|
209
|
-
),
|
|
210
|
-
function
|
|
211
|
-
g("start"),
|
|
209
|
+
), j = v(!0), s = v(!1), f = v(!1);
|
|
210
|
+
function B() {
|
|
211
|
+
g("start"), j.value && I.start(), j.value = !1, s.value = !0;
|
|
212
212
|
}
|
|
213
213
|
function O() {
|
|
214
|
-
s.value && (g("reset"), I.stop(), _.value = [],
|
|
214
|
+
s.value && (g("reset"), I.stop(), _.value = [], j.value = !0, s.value = !1);
|
|
215
215
|
}
|
|
216
216
|
function U() {
|
|
217
217
|
f.value = !f.value, g("pause", y.value), I.pause();
|
|
@@ -220,7 +220,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
220
220
|
s.value && (f.value = !1, g("restart"), _.value = [], I.restart());
|
|
221
221
|
}
|
|
222
222
|
const _ = v([]);
|
|
223
|
-
async function
|
|
223
|
+
async function z() {
|
|
224
224
|
if (!s.value || f.value) return;
|
|
225
225
|
const a = await I.lap();
|
|
226
226
|
a && (_.value.push(a), g("lap", _.value));
|
|
@@ -228,7 +228,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
228
228
|
function Z({ timestamp: a, elapsed: u, formatted: c }) {
|
|
229
229
|
y.value = { timestamp: a, elapsed: u, formatted: c };
|
|
230
230
|
}
|
|
231
|
-
const b =
|
|
231
|
+
const b = F(() => Math.min(t.value.width, t.value.height) / 2.5 * e.value.stopwatch.track.radiusRatio);
|
|
232
232
|
function ee(a, u) {
|
|
233
233
|
const P = 360 / (u * 1e3);
|
|
234
234
|
return a * P % 360;
|
|
@@ -237,7 +237,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
237
237
|
let u = a * (Math.PI / 180), c = t.value.width / 2 + b.value * Math.cos(u), P = t.value.height / 2 + b.value * Math.sin(u);
|
|
238
238
|
return { cx: c, cy: P };
|
|
239
239
|
}
|
|
240
|
-
const C =
|
|
240
|
+
const C = F(() => {
|
|
241
241
|
const a = ee(y.value.elapsed, e.value.stopwatch.cycleSeconds), { cx: u, cy: c } = te(a - 90), P = a > 180 ? 1 : 0;
|
|
242
242
|
return {
|
|
243
243
|
cx: u || t.value.width / 2,
|
|
@@ -247,11 +247,11 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
247
247
|
};
|
|
248
248
|
});
|
|
249
249
|
return L({
|
|
250
|
-
start:
|
|
250
|
+
start: B,
|
|
251
251
|
pause: U,
|
|
252
252
|
reset: O,
|
|
253
253
|
restart: W,
|
|
254
|
-
lap:
|
|
254
|
+
lap: z
|
|
255
255
|
}), (a, u) => (l(), r("div", {
|
|
256
256
|
ref_key: "timerChart",
|
|
257
257
|
ref: $,
|
|
@@ -386,7 +386,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
386
386
|
e.value.stopwatch.legend.buttons.start ? (l(), r("button", {
|
|
387
387
|
key: 0,
|
|
388
388
|
title: e.value.stopwatch.legend.buttonTitles.start,
|
|
389
|
-
onClick:
|
|
389
|
+
onClick: B,
|
|
390
390
|
class: "vue-ui-timer-button",
|
|
391
391
|
style: w({
|
|
392
392
|
opacity: s.value ? 0.2 : 1,
|
|
@@ -427,7 +427,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
427
427
|
name: "stop",
|
|
428
428
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
429
429
|
}, null, 8, ["stroke"])
|
|
430
|
-
], 12,
|
|
430
|
+
], 12, ze)) : d("", !0),
|
|
431
431
|
e.value.stopwatch.legend.buttons.restart ? (l(), r("button", {
|
|
432
432
|
key: 3,
|
|
433
433
|
title: e.value.stopwatch.legend.buttonTitles.restart,
|
|
@@ -442,11 +442,11 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
442
442
|
name: "restart",
|
|
443
443
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
444
444
|
}, null, 8, ["stroke"])
|
|
445
|
-
], 12,
|
|
445
|
+
], 12, Fe)) : d("", !0),
|
|
446
446
|
e.value.stopwatch.legend.buttons.lap ? (l(), r("button", {
|
|
447
447
|
key: 4,
|
|
448
448
|
title: e.value.stopwatch.legend.buttonTitles.lap,
|
|
449
|
-
onClick:
|
|
449
|
+
onClick: z,
|
|
450
450
|
class: "vue-ui-timer-button",
|
|
451
451
|
style: w({
|
|
452
452
|
opacity: s.value && !f.value ? 1 : 0.2,
|
|
@@ -460,11 +460,11 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
460
460
|
], 12, He)) : d("", !0)
|
|
461
461
|
])),
|
|
462
462
|
H(a.$slots, "controls", V(G({
|
|
463
|
-
start:
|
|
463
|
+
start: B,
|
|
464
464
|
pause: U,
|
|
465
465
|
reset: O,
|
|
466
466
|
restart: W,
|
|
467
|
-
lap:
|
|
467
|
+
lap: z,
|
|
468
468
|
laps: _.value,
|
|
469
469
|
isRunning: s.value,
|
|
470
470
|
isPaused: f.value,
|
|
@@ -472,7 +472,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
472
472
|
})), void 0, !0),
|
|
473
473
|
H(a.$slots, "laps", V(G({
|
|
474
474
|
laps: _.value,
|
|
475
|
-
lap:
|
|
475
|
+
lap: z,
|
|
476
476
|
isRunning: s.value,
|
|
477
477
|
isPaused: f.value,
|
|
478
478
|
...y.value
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as pe, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as z, createCommentVNode as d, createSlots as ge, withCtx as O, renderSlot as g, normalizeProps as S, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
|
|
2
|
-
import { u as oe } from "./useNestedProp-
|
|
3
|
-
import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Pe, i as Oe, f as xe } from "./index-
|
|
4
|
-
import { u as Ae } from "./usePrinter-
|
|
2
|
+
import { u as oe } from "./useNestedProp-Cg9K3ISG.js";
|
|
3
|
+
import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Pe, i as Oe, f as xe } from "./index-CBhz79Be.js";
|
|
4
|
+
import { u as Ae } from "./usePrinter-DNC_9y1d.js";
|
|
5
5
|
import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-
|
|
7
|
+
import ze from "./Title-CPvPrwF4.js";
|
|
8
8
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Ne = ["id"], Me = {
|
|
10
10
|
key: 2,
|
|
@@ -33,7 +33,7 @@ const Ne = ["id"], Me = {
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(se, { expose: ne }) {
|
|
36
|
-
const re = F(() => import("./PenAndPaper-
|
|
36
|
+
const re = F(() => import("./PenAndPaper-BlF1d4XE.js")), ue = F(() => import("./vue-ui-skeleton-Dnw_Mcqb.js")), ie = F(() => import("./UserOptions-CFllUVQ4.js")), ce = F(() => import("./PackageVersion-Djh3oJFs.js")), { vue_ui_tiremarks: ve } = ke(), f = se, M = h(() => !!f.dataset && Object.keys(f.dataset).length), T = b(be()), E = b(null), he = b(null), R = b(0), B = b(0), e = h({
|
|
37
37
|
get: () => V(),
|
|
38
38
|
set: (t) => t
|
|
39
39
|
}), { userOptionsVisible: U, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value }), { svgRef: H } = Fe({ config: e.value.style.chart.title });
|