vue-data-ui 3.6.0 → 3.7.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/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.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-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as se, ref as v, shallowRef as
|
|
2
|
-
import { u as ne, a as ce } from "./useNestedProp-
|
|
3
|
-
import { c as ve, X as de,
|
|
1
|
+
import { defineAsyncComponent as se, ref as v, shallowRef as J, 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 K, createVNode as T, renderSlot as H, mergeProps as Q, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
|
|
2
|
+
import { u as ne, a as ce } from "./useNestedProp-CWo6bftQ.js";
|
|
3
|
+
import { c as ve, X as de, Y as X } from "./lib-C5BH09_g.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
|
|
6
|
+
import we from "./Title-DfFUb9hd.js";
|
|
7
|
+
import R from "./BaseIcon-CofSxalQ.js";
|
|
8
8
|
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
class ge {
|
|
10
10
|
constructor(L, N, S, j = !0, A = !0) {
|
|
@@ -115,7 +115,7 @@ class ge {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
}
|
|
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"],
|
|
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
121
|
}, Ae = ["title"], De = ["title"], ze = ["title"], Fe = ["title"], He = ["title"], Le = {
|
|
@@ -130,7 +130,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
130
130
|
},
|
|
131
131
|
emits: ["start", "pause", "reset", "restart", "lap"],
|
|
132
132
|
setup(q, { expose: L, emit: N }) {
|
|
133
|
-
const S = se(() => import("./PackageVersion-
|
|
133
|
+
const S = se(() => import("./PackageVersion-Bq_mtsqr.js")), { vue_ui_timer: j } = ne(), A = q, g = N, $ = v(null), D = v(null), i = v(null), n = J(null), o = J(null), h = v(ve()), k = v(0);
|
|
134
134
|
le(() => {
|
|
135
135
|
m();
|
|
136
136
|
});
|
|
@@ -183,7 +183,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
183
183
|
re(() => A.config, (a) => {
|
|
184
184
|
e.value = p(), m(), k.value += 1;
|
|
185
185
|
}, { deep: !0 });
|
|
186
|
-
const
|
|
186
|
+
const Y = 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)
|
|
@@ -230,19 +230,19 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
230
230
|
}
|
|
231
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
|
-
const
|
|
234
|
-
return a *
|
|
233
|
+
const P = 360 / (u * 1e3);
|
|
234
|
+
return a * P % 360;
|
|
235
235
|
}
|
|
236
236
|
function te(a) {
|
|
237
|
-
let u = a * (Math.PI / 180), c = t.value.width / 2 + b.value * Math.cos(u),
|
|
238
|
-
return { cx: c, cy:
|
|
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
|
+
return { cx: c, cy: P };
|
|
239
239
|
}
|
|
240
240
|
const C = F(() => {
|
|
241
|
-
const a = ee(y.value.elapsed, e.value.stopwatch.cycleSeconds), { cx: u, cy: c } = te(a - 90),
|
|
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,
|
|
244
244
|
cy: c || t.value.height / 2 - b.value,
|
|
245
|
-
largeArcFlag:
|
|
245
|
+
largeArcFlag: P,
|
|
246
246
|
sweepFlag: 1
|
|
247
247
|
};
|
|
248
248
|
});
|
|
@@ -289,7 +289,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
289
289
|
(l(), r("svg", {
|
|
290
290
|
ref_key: "svgRef",
|
|
291
291
|
ref: x,
|
|
292
|
-
xmlns:
|
|
292
|
+
xmlns: K(de),
|
|
293
293
|
viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
|
|
294
294
|
style: w({
|
|
295
295
|
maxWidth: "100%",
|
|
@@ -297,7 +297,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
297
297
|
background: e.value.style.backgroundColor
|
|
298
298
|
})
|
|
299
299
|
}, [
|
|
300
|
-
T(
|
|
300
|
+
T(K(S)),
|
|
301
301
|
a.$slots["chart-background"] ? (l(), r("foreignObject", {
|
|
302
302
|
key: 0,
|
|
303
303
|
x: 0,
|
|
@@ -345,13 +345,13 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
345
345
|
"stroke-linecap": "round",
|
|
346
346
|
fill: "none"
|
|
347
347
|
}, null, 8, $e)) : d("", !0),
|
|
348
|
-
M("circle",
|
|
348
|
+
M("circle", Q(C.value, {
|
|
349
349
|
r: t.value.tracker.core,
|
|
350
350
|
fill: e.value.stopwatch.tracker.gradient.show ? `url(#tracker_gradient_${h.value})` : e.value.stopwatch.tracker.fill,
|
|
351
351
|
stroke: e.value.stopwatch.tracker.stroke,
|
|
352
352
|
"stroke-width": e.value.stopwatch.tracker.strokeWidth
|
|
353
353
|
}), null, 16, xe),
|
|
354
|
-
e.value.stopwatch.tracker.aura.show ? (l(), r("circle",
|
|
354
|
+
e.value.stopwatch.tracker.aura.show ? (l(), r("circle", Q({ key: 3 }, C.value, {
|
|
355
355
|
r: t.value.tracker.aura,
|
|
356
356
|
fill: `${e.value.stopwatch.tracker.aura.fill}20`,
|
|
357
357
|
stroke: e.value.stopwatch.tracker.aura.stroke,
|
|
@@ -366,7 +366,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
366
366
|
style: { overflow: "visible" }
|
|
367
367
|
}, [
|
|
368
368
|
H(a.$slots, "time", V(G({ ...y.value })), void 0, !0)
|
|
369
|
-
], 8,
|
|
369
|
+
], 8, Pe)) : (l(), r("text", {
|
|
370
370
|
key: 5,
|
|
371
371
|
x: t.value.width / 2,
|
|
372
372
|
y: t.value.height / 2 + t.value.label / 4,
|
|
@@ -375,7 +375,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
375
375
|
fill: e.value.stopwatch.label.color,
|
|
376
376
|
"font-weight": e.value.stopwatch.label.bold ? "bold" : "normal",
|
|
377
377
|
style: { "font-variant-numeric": "tabular-nums !important" }
|
|
378
|
-
}, ie(y.value.formatted ||
|
|
378
|
+
}, ie(y.value.formatted || Y.value), 9, Re))
|
|
379
379
|
], 12, me)),
|
|
380
380
|
M("div", {
|
|
381
381
|
ref_key: "chartLegend",
|
|
@@ -393,7 +393,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
393
393
|
cursor: s.value ? "default" : "pointer"
|
|
394
394
|
})
|
|
395
395
|
}, [
|
|
396
|
-
T(
|
|
396
|
+
T(R, {
|
|
397
397
|
name: "play",
|
|
398
398
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
399
399
|
}, null, 8, ["stroke"])
|
|
@@ -408,7 +408,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
408
408
|
cursor: s.value ? "pointer" : "default"
|
|
409
409
|
})
|
|
410
410
|
}, [
|
|
411
|
-
T(
|
|
411
|
+
T(R, {
|
|
412
412
|
name: "pause",
|
|
413
413
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
414
414
|
}, null, 8, ["stroke"])
|
|
@@ -423,7 +423,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
423
423
|
cursor: s.value ? "pointer" : "default"
|
|
424
424
|
})
|
|
425
425
|
}, [
|
|
426
|
-
T(
|
|
426
|
+
T(R, {
|
|
427
427
|
name: "stop",
|
|
428
428
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
429
429
|
}, null, 8, ["stroke"])
|
|
@@ -438,7 +438,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
438
438
|
cursor: s.value ? "pointer" : "default"
|
|
439
439
|
})
|
|
440
440
|
}, [
|
|
441
|
-
T(
|
|
441
|
+
T(R, {
|
|
442
442
|
name: "restart",
|
|
443
443
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
444
444
|
}, null, 8, ["stroke"])
|
|
@@ -453,7 +453,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
453
453
|
cursor: s.value && !f.value ? "pointer" : "default"
|
|
454
454
|
})
|
|
455
455
|
}, [
|
|
456
|
-
T(
|
|
456
|
+
T(R, {
|
|
457
457
|
name: "lap",
|
|
458
458
|
stroke: e.value.stopwatch.legend.buttons.iconColor
|
|
459
459
|
}, null, 8, ["stroke"])
|
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import { defineAsyncComponent as G, computed as d, ref as h, toRefs as He, watch as ve, onMounted as Re, createElementBlock as i, openBlock as r, unref as n, normalizeStyle as X, normalizeClass as V, createBlock as N, createCommentVNode as k, withCtx as f, renderSlot as u, normalizeProps as b, guardReactiveProps as C, createSlots as Ue, createVNode as je, Fragment as he, renderList as de, toDisplayString as Le } from "vue";
|
|
2
|
+
import { c as Ge, t as Xe, M as Ve, o as Ye, g as qe, h as fe, X as We, a as Je, d as Ke } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as et, a as Y } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as tt, B as at } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as ot } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as lt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as nt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import it from "./Title-DfFUb9hd.js";
|
|
12
|
+
import ut from "./img-DUzJeMlr.js";
|
|
13
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ge = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { inactiveColor: "#4A4A4A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, ye = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { crescendo: !1, inactiveColor: "#5D403760", activeColor: "#D32F2F", ticks: { gradient: { shiftHueIntensity: 0 } } }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, pe = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { crescendo: !1, inactiveColor: "#5D403760", activeColor: "#D32F2F", ticks: { gradient: { shiftHueIntensity: 0 } } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, me = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { crescendo: !1, inactiveColor: "#333333", activeColor: "#66CC66", ticks: { gradient: { shiftHueIntensity: 15 } } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, ke = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { crescendo: !0, curved: !0, curveAngleX: 5, curveAngleY: 5, inactiveColor: "#F7EDE2", activeColor: "#B1A7AD", ticks: { gradient: { shiftHueIntensity: 15 } } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, be = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { crescendo: !1, inactiveColor: "#BBCBC7", activeColor: "#6C94A0", ticks: { gradient: { shiftHueIntensity: 10 } } }, title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, Ce = {
|
|
15
|
+
default: {},
|
|
16
|
+
dark: ge,
|
|
17
|
+
celebration: ye,
|
|
18
|
+
celebrationNight: pe,
|
|
19
|
+
hack: me,
|
|
20
|
+
zen: ke,
|
|
21
|
+
concrete: be
|
|
22
|
+
}, Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
|
+
__proto__: null,
|
|
24
|
+
celebration: ye,
|
|
25
|
+
celebrationNight: pe,
|
|
26
|
+
concrete: be,
|
|
27
|
+
dark: ge,
|
|
28
|
+
default: Ce,
|
|
29
|
+
hack: me,
|
|
30
|
+
zen: ke
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), vt = ["id"], ht = ["xmlns", "viewBox"], dt = ["width", "height"], ft = { key: 1 }, gt = ["d", "stroke-width", "stroke"], yt = { key: 2 }, pt = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], mt = { key: 3 }, kt = ["x", "y", "height"], bt = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ct = {
|
|
32
|
+
key: 4,
|
|
33
|
+
class: "vue-data-ui-watermark"
|
|
34
|
+
}, At = {
|
|
35
|
+
__name: "vue-ui-tiremarks",
|
|
36
|
+
props: {
|
|
37
|
+
config: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default() {
|
|
40
|
+
return {};
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
dataset: {
|
|
44
|
+
type: Object,
|
|
45
|
+
default() {
|
|
46
|
+
return {};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
setup(Ae, { expose: we }) {
|
|
51
|
+
const $e = G(() => import("./PenAndPaper-HCZQTkqi.js")), _e = G(() => import("./UserOptions-B3I-s3Lw.js")), Oe = G(() => import("./PackageVersion-Bq_mtsqr.js")), { vue_ui_tiremarks: Se } = et(), { isThemeValid: xe, warnInvalidTheme: Ie } = nt(), A = Ae, Pe = d(() => !!A.dataset && Object.keys(A.dataset).length), M = h(Ge()), O = h(null), Fe = h(null), q = h(null), W = h(null), J = h(0), K = h(0), S = h(null), P = h(null), e = h(j()), { loading: Q, FINAL_DATASET: H } = tt({
|
|
52
|
+
...He(A),
|
|
53
|
+
FINAL_CONFIG: e,
|
|
54
|
+
prepareConfig: j,
|
|
55
|
+
skeletonDataset: { percentage: 50 },
|
|
56
|
+
skeletonConfig: Xe({
|
|
57
|
+
defaultConfig: e.value,
|
|
58
|
+
userConfig: {
|
|
59
|
+
userOptions: { show: !1 },
|
|
60
|
+
style: {
|
|
61
|
+
chart: {
|
|
62
|
+
backgroundColor: "#99999930",
|
|
63
|
+
animation: { use: !1 },
|
|
64
|
+
layout: {
|
|
65
|
+
activeColor: "#6A6A6A80",
|
|
66
|
+
inactiveColor: "#CACACA80",
|
|
67
|
+
ticks: {
|
|
68
|
+
gradient: { show: !1 }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
}), { userOptionsVisible: R, setUserOptionsVisibility: Z, keepUserOptionState: ee } = st({ config: e.value }), { svgRef: U } = rt({ config: e.value.style.chart.title });
|
|
76
|
+
function j() {
|
|
77
|
+
const t = Y({
|
|
78
|
+
userConfig: A.config,
|
|
79
|
+
defaultConfig: Se
|
|
80
|
+
}), o = t.theme;
|
|
81
|
+
if (!o) return t;
|
|
82
|
+
if (!xe.value(t))
|
|
83
|
+
return Ie(t), t;
|
|
84
|
+
const a = Y({
|
|
85
|
+
userConfig: Ce[o] || A.config,
|
|
86
|
+
defaultConfig: t
|
|
87
|
+
});
|
|
88
|
+
return Y({
|
|
89
|
+
userConfig: A.config,
|
|
90
|
+
defaultConfig: a
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
ve(() => A.config, (t) => {
|
|
94
|
+
e.value = j(), R.value = !e.value.userOptions.showOnChartHover, T.value = e.value.style.chart.width, B.value = e.value.style.chart.height, se(), K.value += 1;
|
|
95
|
+
}, { deep: !0 });
|
|
96
|
+
const { isPrinting: te, isImaging: ae, generatePdf: oe, generateImage: le } = ot({
|
|
97
|
+
elementId: M.value,
|
|
98
|
+
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
99
|
+
options: e.value.userOptions.print
|
|
100
|
+
}), ze = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = h(e.value.style.chart.animation.use ? 0 : Ve(H.value.percentage));
|
|
101
|
+
ve(() => H.value, (t) => {
|
|
102
|
+
e.value.style.chart.animation.use ? ne(t.percentage) : c.value = t.percentage || 0;
|
|
103
|
+
}, { deep: !0 }), Re(() => {
|
|
104
|
+
se();
|
|
105
|
+
});
|
|
106
|
+
function ne(t) {
|
|
107
|
+
let o = e.value.style.chart.animation.speed;
|
|
108
|
+
const a = Math.abs(t - c.value) / (o * 120);
|
|
109
|
+
function l() {
|
|
110
|
+
c.value < t ? c.value = Math.min(c.value + a, t) : c.value > t && (c.value = Math.max(c.value - a, t)), c.value !== t && requestAnimationFrame(l);
|
|
111
|
+
}
|
|
112
|
+
l();
|
|
113
|
+
}
|
|
114
|
+
const Te = d(() => !!e.value.debug);
|
|
115
|
+
function se() {
|
|
116
|
+
if (Ye(A.dataset) && qe({
|
|
117
|
+
componentName: "VueUiTiremarks",
|
|
118
|
+
type: "dataset",
|
|
119
|
+
debug: Te.value
|
|
120
|
+
}), e.value.responsive) {
|
|
121
|
+
const t = Qe(() => {
|
|
122
|
+
const { width: o, height: a } = Ze({
|
|
123
|
+
chart: O.value,
|
|
124
|
+
title: e.value.style.chart.title.text ? q.value : null,
|
|
125
|
+
source: W.value
|
|
126
|
+
});
|
|
127
|
+
requestAnimationFrame(() => {
|
|
128
|
+
T.value = Math.max(0.1, o), B.value = Math.max(0.1, a - 12);
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
S.value && (P.value && S.value.unobserve(P.value), S.value.disconnect()), S.value = new ResizeObserver(t), P.value = O.value.parentNode, S.value.observe(P.value);
|
|
132
|
+
}
|
|
133
|
+
ne(H.value.percentage || 0);
|
|
134
|
+
}
|
|
135
|
+
const F = d(() => e.value.style.chart.layout.display === "vertical"), v = d(() => {
|
|
136
|
+
const t = e.value.style.chart.percentage.show, o = {
|
|
137
|
+
top: t ? 48 : 12,
|
|
138
|
+
left: t ? 64 : 16,
|
|
139
|
+
right: t ? 64 : 16,
|
|
140
|
+
bottom: t ? 48 : 12
|
|
141
|
+
};
|
|
142
|
+
return F.value ? {
|
|
143
|
+
top: e.value.style.chart.percentage.verticalPosition === "top" ? o.top : 3,
|
|
144
|
+
left: 3,
|
|
145
|
+
right: 3,
|
|
146
|
+
bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? o.bottom : 3
|
|
147
|
+
} : {
|
|
148
|
+
top: 0,
|
|
149
|
+
bottom: 0,
|
|
150
|
+
left: e.value.style.chart.percentage.horizontalPosition === "left" ? o.left : 16,
|
|
151
|
+
right: e.value.style.chart.percentage.horizontalPosition === "right" ? o.right : 10
|
|
152
|
+
};
|
|
153
|
+
}), z = d(() => Object.values(v.value).reduce((t, o) => t + o, 0)), T = h(e.value.style.chart.width), B = h(e.value.style.chart.height), s = d(() => ({
|
|
154
|
+
height: B.value,
|
|
155
|
+
width: T.value
|
|
156
|
+
})), re = d(() => ({
|
|
157
|
+
horizontal: {
|
|
158
|
+
x: p.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
|
|
159
|
+
y: s.value.height / 2 - p.value.fontSize / 2
|
|
160
|
+
},
|
|
161
|
+
vertical: {
|
|
162
|
+
x: s.value.width / 2 - 20,
|
|
163
|
+
y: p.value.y - p.value.fontSize / 2
|
|
164
|
+
}
|
|
165
|
+
})[e.value.style.chart.layout.display]), g = d(() => F.value ? {
|
|
166
|
+
mark: (s.value.height - z.value) / 100 * 0.5,
|
|
167
|
+
space: (s.value.height - z.value) / 100 * 0.5
|
|
168
|
+
} : {
|
|
169
|
+
mark: (s.value.width - z.value) / 100 * 0.5,
|
|
170
|
+
space: (s.value.width - z.value) / 100 * 0.5
|
|
171
|
+
}), ie = d(() => {
|
|
172
|
+
const t = [];
|
|
173
|
+
for (let a = 0; a < 100; a += 1) {
|
|
174
|
+
const l = e.value.style.chart.layout.ticks.gradient.show ? fe(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
175
|
+
if (F.value) {
|
|
176
|
+
const m = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.width - v.value.left - v.value.right) / 100 / 3 : 0, y = v.value.left + 4 + m, w = s.value.width - v.value.right - 4 - m, $ = s.value.height - v.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, _ = s.value.height - v.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, x = (w - y) / e.value.style.chart.layout.curveAngleX, I = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
177
|
+
t.push({
|
|
178
|
+
x1: y,
|
|
179
|
+
x2: w,
|
|
180
|
+
y1: $,
|
|
181
|
+
y2: _,
|
|
182
|
+
curve: `M ${y} ${$} C ${y + x} ${$ - I}, ${w - x} ${_ - I}, ${w} ${_}`,
|
|
183
|
+
color: l
|
|
184
|
+
});
|
|
185
|
+
} else {
|
|
186
|
+
const m = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.height - v.value.top - v.value.bottom) / 100 / 3 : 0, y = v.value.left + a * g.value.mark + a * g.value.space - g.value.mark, w = y, $ = v.value.top + 4 + m, _ = s.value.height - v.value.bottom - 4 - m, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), I = (_ - $) / e.value.style.chart.layout.curveAngleX;
|
|
187
|
+
t.push({
|
|
188
|
+
x1: y,
|
|
189
|
+
x2: w,
|
|
190
|
+
y1: $,
|
|
191
|
+
y2: _,
|
|
192
|
+
curve: `M ${y} ${$} C ${y + x} ${$ + I}, ${w + x} ${_ - I}, ${w} ${_}`,
|
|
193
|
+
color: l
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return t;
|
|
198
|
+
}), p = d(() => {
|
|
199
|
+
let t, o, a;
|
|
200
|
+
const l = e.value.style.chart.percentage.fontSize / 3;
|
|
201
|
+
return F.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = s.value.width / 2, o = v.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = s.value.width / 2, o = s.value.height - v.value.bottom / 2 + l, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, o = s.value.height / 2 + l, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = s.value.width - v.value.right + 8, o = s.value.height / 2 + l, a = "start"), {
|
|
202
|
+
x: t,
|
|
203
|
+
y: o,
|
|
204
|
+
textAnchor: a,
|
|
205
|
+
bold: e.value.style.chart.percentage.bold,
|
|
206
|
+
fontSize: e.value.style.chart.percentage.fontSize,
|
|
207
|
+
fill: e.value.style.chart.percentage.color
|
|
208
|
+
};
|
|
209
|
+
}), D = h(!1);
|
|
210
|
+
function ue(t) {
|
|
211
|
+
D.value = t, J.value += 1;
|
|
212
|
+
}
|
|
213
|
+
const E = h(!1);
|
|
214
|
+
function L() {
|
|
215
|
+
E.value = !E.value;
|
|
216
|
+
}
|
|
217
|
+
async function Be({ scale: t = 2 } = {}) {
|
|
218
|
+
if (!O.value) return;
|
|
219
|
+
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: m, base64: y } = await ut({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
220
|
+
return {
|
|
221
|
+
imageUri: m,
|
|
222
|
+
base64: y,
|
|
223
|
+
title: e.value.style.chart.title.text,
|
|
224
|
+
width: o,
|
|
225
|
+
height: a,
|
|
226
|
+
aspectRatio: l
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
const De = d(() => e.value.style.chart.backgroundColor), Ee = d(() => e.value.style.chart.title), { exportSvg: Ne, getSvg: Me } = lt({
|
|
230
|
+
svg: U,
|
|
231
|
+
title: Ee,
|
|
232
|
+
backgroundColor: De
|
|
233
|
+
});
|
|
234
|
+
async function ce({ isCb: t }) {
|
|
235
|
+
if (t) {
|
|
236
|
+
const { blob: o, url: a, text: l, dataUrl: m } = await Me();
|
|
237
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: m });
|
|
238
|
+
} else
|
|
239
|
+
Ne();
|
|
240
|
+
}
|
|
241
|
+
return we({
|
|
242
|
+
getImage: Be,
|
|
243
|
+
generatePdf: oe,
|
|
244
|
+
generateImage: le,
|
|
245
|
+
generateSvg: ce,
|
|
246
|
+
toggleAnnotator: L,
|
|
247
|
+
toggleFullscreen: ue
|
|
248
|
+
}), (t, o) => (r(), i("div", {
|
|
249
|
+
ref_key: "tiremarksChart",
|
|
250
|
+
ref: O,
|
|
251
|
+
class: V(`vue-data-ui-component vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
252
|
+
style: X(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
253
|
+
id: M.value,
|
|
254
|
+
onMouseenter: o[0] || (o[0] = () => n(Z)(!0)),
|
|
255
|
+
onMouseleave: o[1] || (o[1] = () => n(Z)(!1))
|
|
256
|
+
}, [
|
|
257
|
+
e.value.userOptions.buttons.annotator ? (r(), N(n($e), {
|
|
258
|
+
key: 0,
|
|
259
|
+
svgRef: n(U),
|
|
260
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
261
|
+
color: e.value.style.chart.color,
|
|
262
|
+
active: E.value,
|
|
263
|
+
onClose: L
|
|
264
|
+
}, {
|
|
265
|
+
"annotator-action-close": f(() => [
|
|
266
|
+
u(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
267
|
+
]),
|
|
268
|
+
"annotator-action-color": f(({ color: a }) => [
|
|
269
|
+
u(t.$slots, "annotator-action-color", b(C({ color: a })), void 0, !0)
|
|
270
|
+
]),
|
|
271
|
+
"annotator-action-draw": f(({ mode: a }) => [
|
|
272
|
+
u(t.$slots, "annotator-action-draw", b(C({ mode: a })), void 0, !0)
|
|
273
|
+
]),
|
|
274
|
+
"annotator-action-undo": f(({ disabled: a }) => [
|
|
275
|
+
u(t.$slots, "annotator-action-undo", b(C({ disabled: a })), void 0, !0)
|
|
276
|
+
]),
|
|
277
|
+
"annotator-action-redo": f(({ disabled: a }) => [
|
|
278
|
+
u(t.$slots, "annotator-action-redo", b(C({ disabled: a })), void 0, !0)
|
|
279
|
+
]),
|
|
280
|
+
"annotator-action-delete": f(({ disabled: a }) => [
|
|
281
|
+
u(t.$slots, "annotator-action-delete", b(C({ disabled: a })), void 0, !0)
|
|
282
|
+
]),
|
|
283
|
+
_: 3
|
|
284
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : k("", !0),
|
|
285
|
+
ze.value ? (r(), i("div", {
|
|
286
|
+
key: 1,
|
|
287
|
+
ref_key: "noTitle",
|
|
288
|
+
ref: Fe,
|
|
289
|
+
class: "vue-data-ui-no-title-space",
|
|
290
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
291
|
+
}, null, 512)) : k("", !0),
|
|
292
|
+
e.value.style.chart.title.text ? (r(), i("div", {
|
|
293
|
+
key: 2,
|
|
294
|
+
ref_key: "chartTitle",
|
|
295
|
+
ref: q,
|
|
296
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
297
|
+
}, [
|
|
298
|
+
(r(), N(it, {
|
|
299
|
+
key: `title_${K.value}`,
|
|
300
|
+
config: {
|
|
301
|
+
title: {
|
|
302
|
+
cy: "wheel-title",
|
|
303
|
+
...e.value.style.chart.title
|
|
304
|
+
},
|
|
305
|
+
subtitle: {
|
|
306
|
+
cy: "wheel-subtitle",
|
|
307
|
+
...e.value.style.chart.title.subtitle
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}, null, 8, ["config"]))
|
|
311
|
+
], 512)) : k("", !0),
|
|
312
|
+
e.value.userOptions.show && Pe.value && (n(ee) || n(R)) ? (r(), N(n(_e), {
|
|
313
|
+
ref: "details",
|
|
314
|
+
key: `user_options_${J.value}`,
|
|
315
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
316
|
+
color: e.value.style.chart.color,
|
|
317
|
+
isPrinting: n(te),
|
|
318
|
+
isImaging: n(ae),
|
|
319
|
+
uid: M.value,
|
|
320
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
321
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
322
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
323
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
324
|
+
hasXls: !1,
|
|
325
|
+
isFullscreen: D.value,
|
|
326
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
327
|
+
chartElement: O.value,
|
|
328
|
+
position: e.value.userOptions.position,
|
|
329
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
330
|
+
isAnnotation: E.value,
|
|
331
|
+
callbacks: e.value.userOptions.callbacks,
|
|
332
|
+
printScale: e.value.userOptions.print.scale,
|
|
333
|
+
onToggleFullscreen: ue,
|
|
334
|
+
onGeneratePdf: n(oe),
|
|
335
|
+
onGenerateImage: n(le),
|
|
336
|
+
onGenerateSvg: ce,
|
|
337
|
+
onToggleAnnotator: L,
|
|
338
|
+
style: X({
|
|
339
|
+
visibility: n(ee) ? n(R) ? "visible" : "hidden" : "visible"
|
|
340
|
+
})
|
|
341
|
+
}, Ue({ _: 2 }, [
|
|
342
|
+
t.$slots.menuIcon ? {
|
|
343
|
+
name: "menuIcon",
|
|
344
|
+
fn: f(({ isOpen: a, color: l }) => [
|
|
345
|
+
u(t.$slots, "menuIcon", b(C({ isOpen: a, color: l })), void 0, !0)
|
|
346
|
+
]),
|
|
347
|
+
key: "0"
|
|
348
|
+
} : void 0,
|
|
349
|
+
t.$slots.optionPdf ? {
|
|
350
|
+
name: "optionPdf",
|
|
351
|
+
fn: f(() => [
|
|
352
|
+
u(t.$slots, "optionPdf", {}, void 0, !0)
|
|
353
|
+
]),
|
|
354
|
+
key: "1"
|
|
355
|
+
} : void 0,
|
|
356
|
+
t.$slots.optionImg ? {
|
|
357
|
+
name: "optionImg",
|
|
358
|
+
fn: f(() => [
|
|
359
|
+
u(t.$slots, "optionImg", {}, void 0, !0)
|
|
360
|
+
]),
|
|
361
|
+
key: "2"
|
|
362
|
+
} : void 0,
|
|
363
|
+
t.$slots.optionSvg ? {
|
|
364
|
+
name: "optionSvg",
|
|
365
|
+
fn: f(() => [
|
|
366
|
+
u(t.$slots, "optionSvg", {}, void 0, !0)
|
|
367
|
+
]),
|
|
368
|
+
key: "3"
|
|
369
|
+
} : void 0,
|
|
370
|
+
t.$slots.optionFullscreen ? {
|
|
371
|
+
name: "optionFullscreen",
|
|
372
|
+
fn: f(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
373
|
+
u(t.$slots, "optionFullscreen", b(C({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
374
|
+
]),
|
|
375
|
+
key: "4"
|
|
376
|
+
} : void 0,
|
|
377
|
+
t.$slots.optionAnnotator ? {
|
|
378
|
+
name: "optionAnnotator",
|
|
379
|
+
fn: f(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
380
|
+
u(t.$slots, "optionAnnotator", b(C({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
381
|
+
]),
|
|
382
|
+
key: "5"
|
|
383
|
+
} : void 0
|
|
384
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
|
|
385
|
+
(r(), i("svg", {
|
|
386
|
+
ref_key: "svgRef",
|
|
387
|
+
ref: U,
|
|
388
|
+
xmlns: n(We),
|
|
389
|
+
class: V({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
390
|
+
viewBox: `0 0 ${T.value} ${B.value}`,
|
|
391
|
+
style: X(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
392
|
+
}, [
|
|
393
|
+
je(n(Oe)),
|
|
394
|
+
t.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
395
|
+
key: 0,
|
|
396
|
+
x: 0,
|
|
397
|
+
y: 0,
|
|
398
|
+
width: s.value.width,
|
|
399
|
+
height: s.value.height,
|
|
400
|
+
style: {
|
|
401
|
+
pointerEvents: "none"
|
|
402
|
+
}
|
|
403
|
+
}, [
|
|
404
|
+
u(t.$slots, "chart-background", {}, void 0, !0)
|
|
405
|
+
], 8, dt)) : k("", !0),
|
|
406
|
+
e.value.style.chart.layout.curved ? (r(), i("g", ft, [
|
|
407
|
+
(r(!0), i(he, null, de(ie.value, (a, l) => (r(), i("path", {
|
|
408
|
+
d: a.curve,
|
|
409
|
+
"stroke-width": g.value.mark,
|
|
410
|
+
stroke: c.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
411
|
+
"stroke-linecap": "round",
|
|
412
|
+
fill: "none",
|
|
413
|
+
class: V({ "vue-ui-tick-animated": e.value.style.chart.animation.use && l <= c.value })
|
|
414
|
+
}, null, 10, gt))), 256))
|
|
415
|
+
])) : (r(), i("g", yt, [
|
|
416
|
+
(r(!0), i(he, null, de(ie.value, (a, l) => (r(), i("line", {
|
|
417
|
+
x1: a.x1,
|
|
418
|
+
y1: a.y1,
|
|
419
|
+
x2: a.x2,
|
|
420
|
+
y2: a.y2,
|
|
421
|
+
"stroke-width": g.value.mark,
|
|
422
|
+
stroke: c.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
423
|
+
"stroke-linecap": "round"
|
|
424
|
+
}, null, 8, pt))), 256))
|
|
425
|
+
])),
|
|
426
|
+
e.value.style.chart.percentage.show ? (r(), i("g", mt, [
|
|
427
|
+
n(Q) ? (r(), i("rect", {
|
|
428
|
+
key: 0,
|
|
429
|
+
x: re.value.x,
|
|
430
|
+
y: re.value.y,
|
|
431
|
+
width: 40,
|
|
432
|
+
height: p.value.fontSize,
|
|
433
|
+
fill: "#6A6A6A80",
|
|
434
|
+
rx: 3
|
|
435
|
+
}, null, 8, kt)) : (r(), i("text", {
|
|
436
|
+
key: 1,
|
|
437
|
+
x: p.value.x,
|
|
438
|
+
y: p.value.y,
|
|
439
|
+
"font-size": p.value.fontSize,
|
|
440
|
+
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? n(fe)(e.value.style.chart.layout.activeColor, c.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
441
|
+
"font-weight": p.value.bold ? "bold" : "normal",
|
|
442
|
+
"text-anchor": p.value.textAnchor
|
|
443
|
+
}, Le(n(Je)(
|
|
444
|
+
e.value.style.chart.percentage.formatter,
|
|
445
|
+
c.value,
|
|
446
|
+
n(Ke)({
|
|
447
|
+
v: c.value,
|
|
448
|
+
s: "%",
|
|
449
|
+
r: e.value.style.chart.percentage.rounding
|
|
450
|
+
})
|
|
451
|
+
)), 9, bt))
|
|
452
|
+
])) : k("", !0),
|
|
453
|
+
u(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
454
|
+
], 14, ht)),
|
|
455
|
+
t.$slots.watermark ? (r(), i("div", Ct, [
|
|
456
|
+
u(t.$slots, "watermark", b(C({ isPrinting: n(te) || n(ae) })), void 0, !0)
|
|
457
|
+
])) : k("", !0),
|
|
458
|
+
t.$slots.source ? (r(), i("div", {
|
|
459
|
+
key: 5,
|
|
460
|
+
ref_key: "source",
|
|
461
|
+
ref: W,
|
|
462
|
+
dir: "auto"
|
|
463
|
+
}, [
|
|
464
|
+
u(t.$slots, "source", {}, void 0, !0)
|
|
465
|
+
], 512)) : k("", !0),
|
|
466
|
+
n(Q) ? (r(), N(at, { key: 6 })) : k("", !0)
|
|
467
|
+
], 46, vt));
|
|
468
|
+
}
|
|
469
|
+
}, wt = /* @__PURE__ */ ct(At, [["__scopeId", "data-v-f47e75c9"]]), Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
470
|
+
__proto__: null,
|
|
471
|
+
default: wt
|
|
472
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
473
|
+
export {
|
|
474
|
+
Nt as a,
|
|
475
|
+
Mt as b,
|
|
476
|
+
wt as v
|
|
477
|
+
};
|