vue-data-ui 3.5.0 → 3.5.1
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 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.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-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-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-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { L as Y, t as W, S as G, Q as J, d as K, U as Z, P as q, ai as Q, h as $, J as ee, s as E, p as te } from "./lib-C_mNZmhD.js";
|
|
2
|
-
import { u as se } from "./useNestedProp-
|
|
3
|
-
import ne from "./vue-ui-xy-
|
|
4
|
-
import re from "./vue-ui-donut-
|
|
2
|
+
import { u as se } from "./useNestedProp-DjGXw6S9.js";
|
|
3
|
+
import ne from "./vue-ui-xy-NDDbNbds.js";
|
|
4
|
+
import re from "./vue-ui-donut-CxZcJFTo.js";
|
|
5
5
|
import le from "./BaseIcon-BmMbm4d0.js";
|
|
6
6
|
import { resolveComponent as D, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as h, withDirectives as O, withKeys as L, withModifiers as S, vModelText as A, createVNode as P, Fragment as C, renderList as k, normalizeClass as p, createTextVNode as _, vModelSelect as H, createBlock as R, ref as oe, computed as ae, useCssVars as ie } from "vue";
|
|
7
7
|
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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
2
|
import { c as A, o as de, f as pe, ag as ce, J as ve, ae as me, P as fe, Q as he } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as ge, a as H } from "./useNestedProp-
|
|
3
|
+
import { u as ge, a as H } from "./useNestedProp-DjGXw6S9.js";
|
|
4
4
|
import { u as be } from "./usePrinter-DTzqpYKF.js";
|
|
5
5
|
import { u as ye } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { t as Ce } from "./themes-AUNCOb2G.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as Fe, defineAsyncComponent as Q, 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 J, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as P, Fragment as K, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as D, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
|
|
2
|
-
import { u as Ge, a as ye } from "./useNestedProp-
|
|
2
|
+
import { u as Ge, a as ye } from "./useNestedProp-DjGXw6S9.js";
|
|
3
3
|
import { c as Le, b as Re, p as T, e as He, o as Xe, f as he, g as qe, ag as Qe, h as Je, a as W, d as M, P as Ke, Q as Ye } from "./lib-C_mNZmhD.js";
|
|
4
4
|
import { u as Ze } from "./usePrinter-DTzqpYKF.js";
|
|
5
5
|
import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
@@ -44,7 +44,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
44
44
|
Fe((t) => ({
|
|
45
45
|
v310cbdc6: t.tdo
|
|
46
46
|
}));
|
|
47
|
-
const Ce = Q(() => import("./vue-ui-sparkline-
|
|
47
|
+
const Ce = Q(() => import("./vue-ui-sparkline-ChKAzlVq.js")), N = Q(() => import("./BaseIcon-BmMbm4d0.js")), xe = Q(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
|
|
48
48
|
me(() => {
|
|
49
49
|
Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
50
50
|
});
|
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import { useCssVars as Ye, computed as h, defineAsyncComponent as j, ref as d, onMounted as Ee, toRefs as He, watch as Re, createElementBlock as n, openBlock as l, unref as u, normalizeStyle as de, normalizeClass as L, createBlock as N, createCommentVNode as i, withCtx as f, renderSlot as v, normalizeProps as g, guardReactiveProps as p, createSlots as Ve, createVNode as qe, createElementVNode as m, Fragment as Y, renderList as fe, toDisplayString as Ge } from "vue";
|
|
2
|
+
import { c as Be, t as De, o as je, f as me, g as Xe, b as Je, p as F, e as Ke, x as k, h as E, X as Qe, s as Ze, a as et, d as tt } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as ot, u as st } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as at, a as ye } from "./useNestedProp-DjGXw6S9.js";
|
|
5
|
+
import { u as lt, B as rt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as nt } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as ut } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as ct } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as ht } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
11
|
+
import { t as vt } from "./themes-AUNCOb2G.js";
|
|
12
|
+
import dt from "./Title-isbiM8i8.js";
|
|
13
|
+
import ft from "./img-BecE5qXd.js";
|
|
14
|
+
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const yt = ["id"], gt = {
|
|
16
|
+
key: 1,
|
|
17
|
+
ref: "noTitle",
|
|
18
|
+
class: "vue-data-ui-no-title-space",
|
|
19
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
20
|
+
}, pt = ["xmlns", "viewBox"], kt = ["width", "height"], bt = ["id"], wt = ["x", "y", "width", "height", "rx", "ry"], xt = ["id"], _t = ["stop-color"], $t = ["stop-color"], Ct = ["stop-color"], At = ["clip-path"], Ot = ["x", "y", "height", "width"], St = ["x", "y", "height", "width", "fill"], Ft = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], It = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Pt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Tt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Mt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], zt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Wt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Lt = ["x", "y", "height", "width"], Nt = { key: 1 }, Yt = ["x", "y", "height"], Et = ["y", "x", "fill", "font-size", "font-weight"], Ht = {
|
|
21
|
+
key: 4,
|
|
22
|
+
class: "vue-data-ui-watermark"
|
|
23
|
+
}, Rt = {
|
|
24
|
+
__name: "vue-ui-thermometer",
|
|
25
|
+
props: {
|
|
26
|
+
dataset: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default() {
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
config: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default() {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
setup(I, { expose: ge }) {
|
|
40
|
+
Ye((o) => ({
|
|
41
|
+
d4c8a8ea: Se.value,
|
|
42
|
+
v0a7b4e63: Oe.value,
|
|
43
|
+
v9b81bfe0: Ae.value
|
|
44
|
+
}));
|
|
45
|
+
const pe = j(() => import("./PackageVersion-DQvyATVa.js")), ke = j(() => import("./PenAndPaper-SZQIAgkg.js")), be = j(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_thermometer: we } = at(), b = I, w = d(Be()), x = d(null), X = d(0), J = d(0), K = d(null), Q = d(null), $ = d(null), P = d(null), xe = h(() => !!b.dataset && Object.keys(b.dataset).length);
|
|
46
|
+
Ee(() => {
|
|
47
|
+
te();
|
|
48
|
+
});
|
|
49
|
+
const e = d(q()), _e = d(e.value.style.chart.thermometer.width), H = d(e.value.style.chart.height), R = d(e.value.style.chart.width), { loading: Z, FINAL_DATASET: c } = lt({
|
|
50
|
+
...He(b),
|
|
51
|
+
FINAL_CONFIG: e,
|
|
52
|
+
prepareConfig: q,
|
|
53
|
+
skeletonDataset: { value: 0, from: -100, to: 100, steps: 20, colors: { from: "#A1A1A1", to: "#CACACA" } },
|
|
54
|
+
skeletonConfig: De({
|
|
55
|
+
defaultConfig: e.value,
|
|
56
|
+
userConfig: {
|
|
57
|
+
userOptions: { show: !1 },
|
|
58
|
+
style: {
|
|
59
|
+
chart: {
|
|
60
|
+
animation: { use: !1 },
|
|
61
|
+
backgroundColor: "#99999930",
|
|
62
|
+
graduations: {
|
|
63
|
+
stroke: "#6A6A6A"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
}), ee = h(() => !!e.value.debug);
|
|
70
|
+
function te() {
|
|
71
|
+
if (je(b.dataset) ? me({
|
|
72
|
+
componentName: "VueUiThermometer",
|
|
73
|
+
type: "dataset",
|
|
74
|
+
debug: ee.value
|
|
75
|
+
}) : Xe({
|
|
76
|
+
datasetObject: b.dataset,
|
|
77
|
+
requiredAttributes: ["value", "from", "to"]
|
|
78
|
+
}).forEach((o) => {
|
|
79
|
+
me({
|
|
80
|
+
componentName: "VueUiThermometer",
|
|
81
|
+
type: "datasetAttribute",
|
|
82
|
+
property: o,
|
|
83
|
+
debug: ee.value
|
|
84
|
+
});
|
|
85
|
+
}), e.value.responsive) {
|
|
86
|
+
const o = ot(() => {
|
|
87
|
+
const { width: a, height: t } = st({
|
|
88
|
+
chart: x.value,
|
|
89
|
+
title: e.value.style.title.text ? K.value : null,
|
|
90
|
+
source: Q.value
|
|
91
|
+
});
|
|
92
|
+
requestAnimationFrame(() => {
|
|
93
|
+
H.value = Math.max(0.1, t - 12), R.value = a, he();
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
$.value && (P.value && $.value.unobserve(P.value), $.value.disconnect()), $.value = new ResizeObserver(o), P.value = x.value, $.value.observe(P.value);
|
|
97
|
+
}
|
|
98
|
+
he();
|
|
99
|
+
}
|
|
100
|
+
const { userOptionsVisible: V, setUserOptionsVisibility: oe, keepUserOptionState: se } = it({ config: e.value }), { svgRef: T } = ct({ config: e.value.style.title });
|
|
101
|
+
function q() {
|
|
102
|
+
const o = ye({
|
|
103
|
+
userConfig: b.config,
|
|
104
|
+
defaultConfig: we
|
|
105
|
+
});
|
|
106
|
+
return o.theme ? {
|
|
107
|
+
...ye({
|
|
108
|
+
userConfig: vt.vue_ui_thermometer[o.theme] || b.config,
|
|
109
|
+
defaultConfig: o
|
|
110
|
+
}),
|
|
111
|
+
customPalette: Je[o.theme] || F
|
|
112
|
+
} : o;
|
|
113
|
+
}
|
|
114
|
+
Re(() => b.config, (o) => {
|
|
115
|
+
e.value = q(), V.value = !e.value.userOptions.showOnChartHover, _e.value = e.value.style.chart.thermometer.width, H.value = e.value.style.chart.height, R.value = e.value.style.chart.width, te(), J.value += 1;
|
|
116
|
+
}, { deep: !0 });
|
|
117
|
+
const { isPrinting: ae, isImaging: le, generatePdf: re, generateImage: ne } = nt({
|
|
118
|
+
elementId: `thermometer__${w.value}`,
|
|
119
|
+
fileName: e.value.style.title.text || "vue-ui-thermometer",
|
|
120
|
+
options: e.value.userOptions.print
|
|
121
|
+
}), $e = h(() => e.value.userOptions.show && !e.value.style.title.text), M = h(() => Ke(e.value.customPalette)), y = h(() => c.value.steps || 10);
|
|
122
|
+
function z(o, a, t) {
|
|
123
|
+
const r = [], _ = ue(o), O = ue(a);
|
|
124
|
+
for (let S = 0; S < t; S++) {
|
|
125
|
+
const Ue = G(_.red, O.red, S, t), We = G(_.green, O.green, S, t), Le = G(_.blue, O.blue, S, t), Ne = `#${B(Ue)}${B(We)}${B(Le)}`;
|
|
126
|
+
r.push(Ne);
|
|
127
|
+
}
|
|
128
|
+
return r;
|
|
129
|
+
}
|
|
130
|
+
function ue(o) {
|
|
131
|
+
const a = o.slice(1);
|
|
132
|
+
return {
|
|
133
|
+
red: parseInt(a.slice(0, 2), 16),
|
|
134
|
+
green: parseInt(a.slice(2, 4), 16),
|
|
135
|
+
blue: parseInt(a.slice(4, 6), 16)
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function G(o, a, t, r) {
|
|
139
|
+
return Math.round(o + (a - o) * t / r);
|
|
140
|
+
}
|
|
141
|
+
function B(o) {
|
|
142
|
+
return o.toString(16).padStart(2, "0");
|
|
143
|
+
}
|
|
144
|
+
const s = h(() => {
|
|
145
|
+
const o = Math.max(0.1, R.value), a = Math.max(0.1, H.value), t = e.value.style.chart.padding;
|
|
146
|
+
return {
|
|
147
|
+
width: o,
|
|
148
|
+
left: o / 2 - e.value.style.chart.thermometer.width / 2,
|
|
149
|
+
right: o / 2 + e.value.style.chart.thermometer.width / 2,
|
|
150
|
+
top: t.top,
|
|
151
|
+
bottom: a - t.bottom - t.top,
|
|
152
|
+
height: a,
|
|
153
|
+
thermoHeight: a - t.top - t.bottom,
|
|
154
|
+
thermoWidth: e.value.style.chart.thermometer.width
|
|
155
|
+
};
|
|
156
|
+
}), Ce = h(() => s.value), U = h(() => {
|
|
157
|
+
const o = k(c.value.from) < 0 ? Math.abs(k(c.value.from)) : k(c.value.from), a = k(c.value.to) < 0 ? Math.abs(k(c.value.to)) : k(c.value.to);
|
|
158
|
+
let t = 0;
|
|
159
|
+
return k(c.value.to) > 0 ? t = o + a : o > a ? t = o - a : t = a - o, (1 - (Math.abs(k(c.value.from)) + k(c.value.value)) / t) * s.value.thermoHeight;
|
|
160
|
+
}), Ae = h(() => `${U.value}px`), Oe = h(() => `${s.value.thermoHeight}px`), Se = h(() => `${e.value.style.chart.animation.speedMs}ms`), Fe = h(() => {
|
|
161
|
+
if (c.value.colors) {
|
|
162
|
+
if (!c.value.colors.from)
|
|
163
|
+
return z(M.value[0] || F[0], E(c.value.colors.to), y.value || 10);
|
|
164
|
+
if (!c.value.colors.to)
|
|
165
|
+
return z(E(c.value.colors.from), M.value[1] || F[1], y.value || 10);
|
|
166
|
+
} else
|
|
167
|
+
return z(M.value[1] || F[1], M.value[0] || F[0], y.value || 10);
|
|
168
|
+
return z(E(c.value.colors.from), E(c.value.colors.to), y.value || 10);
|
|
169
|
+
}), ie = h(() => {
|
|
170
|
+
const o = [];
|
|
171
|
+
let a = 0;
|
|
172
|
+
const t = s.value.thermoHeight;
|
|
173
|
+
for (let r = 0; r < t - 1; r += t / y.value)
|
|
174
|
+
o.push({
|
|
175
|
+
x: s.value.left,
|
|
176
|
+
y: s.value.top + r,
|
|
177
|
+
qYLess: s.value.top + r + t / y.value / 4,
|
|
178
|
+
halfY: s.value.top + r + t / y.value / 2,
|
|
179
|
+
qYMore: s.value.top + r + t / y.value / 4 * 3,
|
|
180
|
+
color: Fe.value[a],
|
|
181
|
+
height: Math.max(0.1, t / y.value)
|
|
182
|
+
}), a += 1;
|
|
183
|
+
return o;
|
|
184
|
+
}), C = d(!1);
|
|
185
|
+
function ce(o) {
|
|
186
|
+
C.value = o, X.value += 1;
|
|
187
|
+
}
|
|
188
|
+
const W = d(!1);
|
|
189
|
+
function D() {
|
|
190
|
+
W.value = !W.value;
|
|
191
|
+
}
|
|
192
|
+
async function Ie({ scale: o = 2 } = {}) {
|
|
193
|
+
if (!x.value) return;
|
|
194
|
+
const { width: a, height: t } = x.value.getBoundingClientRect(), r = a / t, { imageUri: _, base64: O } = await ft({ domElement: x.value, base64: !0, img: !0, scale: o });
|
|
195
|
+
return {
|
|
196
|
+
imageUri: _,
|
|
197
|
+
base64: O,
|
|
198
|
+
title: e.value.style.title.text,
|
|
199
|
+
width: a,
|
|
200
|
+
height: t,
|
|
201
|
+
aspectRatio: r
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
const A = h({
|
|
205
|
+
get: () => e.value.style.chart.label.fontSize,
|
|
206
|
+
set: (o) => o
|
|
207
|
+
}), { autoSizeLabels: he } = ht({
|
|
208
|
+
svgRef: T,
|
|
209
|
+
fontSize: e.value.style.chart.label.fontSize,
|
|
210
|
+
minFontSize: e.value.style.chart.label.minFontSize,
|
|
211
|
+
sizeRef: A,
|
|
212
|
+
labelClass: ".vue-ui-thermometer-label"
|
|
213
|
+
}), Pe = h(() => e.value.style.chart.backgroundColor), Te = h(() => e.value.style.title), { exportSvg: Me, getSvg: ze } = ut({
|
|
214
|
+
svg: T,
|
|
215
|
+
title: Te,
|
|
216
|
+
backgroundColor: Pe
|
|
217
|
+
});
|
|
218
|
+
async function ve({ isCb: o }) {
|
|
219
|
+
if (o) {
|
|
220
|
+
const { blob: a, url: t, text: r, dataUrl: _ } = await ze();
|
|
221
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: t, text: r, dataUrl: _ });
|
|
222
|
+
} else
|
|
223
|
+
Me();
|
|
224
|
+
}
|
|
225
|
+
return ge({
|
|
226
|
+
getImage: Ie,
|
|
227
|
+
generatePdf: re,
|
|
228
|
+
generateImage: ne,
|
|
229
|
+
generateSvg: ve,
|
|
230
|
+
toggleAnnotator: D,
|
|
231
|
+
toggleFullscreen: ce
|
|
232
|
+
}), (o, a) => (l(), n("div", {
|
|
233
|
+
ref_key: "thermoChart",
|
|
234
|
+
ref: x,
|
|
235
|
+
class: L(`vue-data-ui-component vue-ui-thermometer ${C.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
236
|
+
style: de(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
237
|
+
id: `thermometer__${w.value}`,
|
|
238
|
+
onMouseenter: a[0] || (a[0] = () => u(oe)(!0)),
|
|
239
|
+
onMouseleave: a[1] || (a[1] = () => u(oe)(!1))
|
|
240
|
+
}, [
|
|
241
|
+
e.value.userOptions.buttons.annotator ? (l(), N(u(ke), {
|
|
242
|
+
key: 0,
|
|
243
|
+
svgRef: u(T),
|
|
244
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
245
|
+
color: e.value.style.chart.color,
|
|
246
|
+
active: W.value,
|
|
247
|
+
onClose: D
|
|
248
|
+
}, {
|
|
249
|
+
"annotator-action-close": f(() => [
|
|
250
|
+
v(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
251
|
+
]),
|
|
252
|
+
"annotator-action-color": f(({ color: t }) => [
|
|
253
|
+
v(o.$slots, "annotator-action-color", g(p({ color: t })), void 0, !0)
|
|
254
|
+
]),
|
|
255
|
+
"annotator-action-draw": f(({ mode: t }) => [
|
|
256
|
+
v(o.$slots, "annotator-action-draw", g(p({ mode: t })), void 0, !0)
|
|
257
|
+
]),
|
|
258
|
+
"annotator-action-undo": f(({ disabled: t }) => [
|
|
259
|
+
v(o.$slots, "annotator-action-undo", g(p({ disabled: t })), void 0, !0)
|
|
260
|
+
]),
|
|
261
|
+
"annotator-action-redo": f(({ disabled: t }) => [
|
|
262
|
+
v(o.$slots, "annotator-action-redo", g(p({ disabled: t })), void 0, !0)
|
|
263
|
+
]),
|
|
264
|
+
"annotator-action-delete": f(({ disabled: t }) => [
|
|
265
|
+
v(o.$slots, "annotator-action-delete", g(p({ disabled: t })), void 0, !0)
|
|
266
|
+
]),
|
|
267
|
+
_: 3
|
|
268
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
|
|
269
|
+
$e.value ? (l(), n("div", gt, null, 512)) : i("", !0),
|
|
270
|
+
e.value.style.title.text ? (l(), n("div", {
|
|
271
|
+
key: 2,
|
|
272
|
+
ref_key: "chartTitle",
|
|
273
|
+
ref: K,
|
|
274
|
+
style: "width:100%"
|
|
275
|
+
}, [
|
|
276
|
+
(l(), N(dt, {
|
|
277
|
+
key: `title_${J.value}`,
|
|
278
|
+
config: {
|
|
279
|
+
title: {
|
|
280
|
+
cy: "thermometer-div-title",
|
|
281
|
+
...e.value.style.title
|
|
282
|
+
},
|
|
283
|
+
subtitle: {
|
|
284
|
+
cy: "thermometer-div-subtitle",
|
|
285
|
+
...e.value.style.title.subtitle
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}, null, 8, ["config"]))
|
|
289
|
+
], 512)) : i("", !0),
|
|
290
|
+
e.value.userOptions.show && xe.value && (u(se) || u(V)) ? (l(), N(u(be), {
|
|
291
|
+
ref: "details",
|
|
292
|
+
key: `user_options_${X.value}`,
|
|
293
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
294
|
+
color: e.value.style.chart.color,
|
|
295
|
+
isImaging: u(le),
|
|
296
|
+
isPrinting: u(ae),
|
|
297
|
+
uid: w.value,
|
|
298
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
299
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
300
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
301
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
302
|
+
hasXls: !1,
|
|
303
|
+
isFullscreen: C.value,
|
|
304
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
305
|
+
chartElement: x.value,
|
|
306
|
+
position: e.value.userOptions.position,
|
|
307
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
308
|
+
isAnnotation: W.value,
|
|
309
|
+
callbacks: e.value.userOptions.callbacks,
|
|
310
|
+
printScale: e.value.userOptions.print.scale,
|
|
311
|
+
onToggleFullscreen: ce,
|
|
312
|
+
onGeneratePdf: u(re),
|
|
313
|
+
onGenerateImage: u(ne),
|
|
314
|
+
onGenerateSvg: ve,
|
|
315
|
+
onToggleAnnotator: D,
|
|
316
|
+
style: de({
|
|
317
|
+
visibility: u(se) ? u(V) ? "visible" : "hidden" : "visible"
|
|
318
|
+
})
|
|
319
|
+
}, Ve({ _: 2 }, [
|
|
320
|
+
o.$slots.menuIcon ? {
|
|
321
|
+
name: "menuIcon",
|
|
322
|
+
fn: f(({ isOpen: t, color: r }) => [
|
|
323
|
+
v(o.$slots, "menuIcon", g(p({ isOpen: t, color: r })), void 0, !0)
|
|
324
|
+
]),
|
|
325
|
+
key: "0"
|
|
326
|
+
} : void 0,
|
|
327
|
+
o.$slots.optionPdf ? {
|
|
328
|
+
name: "optionPdf",
|
|
329
|
+
fn: f(() => [
|
|
330
|
+
v(o.$slots, "optionPdf", {}, void 0, !0)
|
|
331
|
+
]),
|
|
332
|
+
key: "1"
|
|
333
|
+
} : void 0,
|
|
334
|
+
o.$slots.optionImg ? {
|
|
335
|
+
name: "optionImg",
|
|
336
|
+
fn: f(() => [
|
|
337
|
+
v(o.$slots, "optionImg", {}, void 0, !0)
|
|
338
|
+
]),
|
|
339
|
+
key: "2"
|
|
340
|
+
} : void 0,
|
|
341
|
+
o.$slots.optionSvg ? {
|
|
342
|
+
name: "optionSvg",
|
|
343
|
+
fn: f(() => [
|
|
344
|
+
v(o.$slots, "optionSvg", {}, void 0, !0)
|
|
345
|
+
]),
|
|
346
|
+
key: "3"
|
|
347
|
+
} : void 0,
|
|
348
|
+
o.$slots.optionFullscreen ? {
|
|
349
|
+
name: "optionFullscreen",
|
|
350
|
+
fn: f(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
351
|
+
v(o.$slots, "optionFullscreen", g(p({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
352
|
+
]),
|
|
353
|
+
key: "4"
|
|
354
|
+
} : void 0,
|
|
355
|
+
o.$slots.optionAnnotator ? {
|
|
356
|
+
name: "optionAnnotator",
|
|
357
|
+
fn: f(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
358
|
+
v(o.$slots, "optionAnnotator", g(p({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
359
|
+
]),
|
|
360
|
+
key: "5"
|
|
361
|
+
} : void 0
|
|
362
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
363
|
+
(l(), n("svg", {
|
|
364
|
+
ref_key: "svgRef",
|
|
365
|
+
ref: T,
|
|
366
|
+
xmlns: u(Qe),
|
|
367
|
+
class: L({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
|
|
368
|
+
width: "100%",
|
|
369
|
+
viewBox: `0 0 ${s.value.width} ${s.value.height}`,
|
|
370
|
+
style: "background:transparent"
|
|
371
|
+
}, [
|
|
372
|
+
qe(u(pe)),
|
|
373
|
+
o.$slots["chart-background"] ? (l(), n("foreignObject", {
|
|
374
|
+
key: 0,
|
|
375
|
+
x: 0,
|
|
376
|
+
y: 0,
|
|
377
|
+
width: s.value.width,
|
|
378
|
+
height: s.value.height,
|
|
379
|
+
style: {
|
|
380
|
+
pointerEvents: "none"
|
|
381
|
+
}
|
|
382
|
+
}, [
|
|
383
|
+
v(o.$slots, "chart-background", {}, void 0, !0)
|
|
384
|
+
], 8, kt)) : i("", !0),
|
|
385
|
+
m("defs", null, [
|
|
386
|
+
m("clipPath", {
|
|
387
|
+
id: `vueUiPill-${w.value}`,
|
|
388
|
+
clipPathUnits: "userSpaceOnUse"
|
|
389
|
+
}, [
|
|
390
|
+
m("rect", {
|
|
391
|
+
x: s.value.left,
|
|
392
|
+
y: s.value.top,
|
|
393
|
+
width: s.value.thermoWidth,
|
|
394
|
+
height: s.value.thermoHeight,
|
|
395
|
+
rx: s.value.thermoWidth / 2,
|
|
396
|
+
ry: s.value.thermoWidth / 2
|
|
397
|
+
}, null, 8, wt)
|
|
398
|
+
], 8, bt),
|
|
399
|
+
(l(!0), n(Y, null, fe(ie.value, (t, r) => (l(), n("linearGradient", {
|
|
400
|
+
id: `vueUiThermometerGradient_${r}_${w.value}`,
|
|
401
|
+
x1: "0%",
|
|
402
|
+
y1: "0%",
|
|
403
|
+
x2: "100%",
|
|
404
|
+
y2: "0%"
|
|
405
|
+
}, [
|
|
406
|
+
m("stop", {
|
|
407
|
+
offset: "0%",
|
|
408
|
+
"stop-color": t.color
|
|
409
|
+
}, null, 8, _t),
|
|
410
|
+
m("stop", {
|
|
411
|
+
offset: "50%",
|
|
412
|
+
"stop-color": u(Ze)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
|
|
413
|
+
}, null, 8, $t),
|
|
414
|
+
m("stop", {
|
|
415
|
+
offset: "100%",
|
|
416
|
+
"stop-color": t.color
|
|
417
|
+
}, null, 8, Ct)
|
|
418
|
+
], 8, xt))), 256))
|
|
419
|
+
]),
|
|
420
|
+
m("g", {
|
|
421
|
+
"clip-path": `url(#vueUiPill-${w.value})`
|
|
422
|
+
}, [
|
|
423
|
+
m("rect", {
|
|
424
|
+
x: s.value.left,
|
|
425
|
+
y: s.value.top,
|
|
426
|
+
height: s.value.thermoHeight,
|
|
427
|
+
width: s.value.thermoWidth,
|
|
428
|
+
fill: "#FFFFFF"
|
|
429
|
+
}, null, 8, Ot),
|
|
430
|
+
(l(!0), n(Y, null, fe(ie.value, (t, r) => (l(), n("g", {
|
|
431
|
+
key: `graduation_${r}`
|
|
432
|
+
}, [
|
|
433
|
+
m("rect", {
|
|
434
|
+
x: t.x,
|
|
435
|
+
y: t.y,
|
|
436
|
+
height: t.height,
|
|
437
|
+
width: s.value.thermoWidth,
|
|
438
|
+
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${r}_${w.value})` : t.color,
|
|
439
|
+
"shape-rendering": "crispEdges"
|
|
440
|
+
}, null, 8, St),
|
|
441
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
442
|
+
key: 0,
|
|
443
|
+
x1: t.x,
|
|
444
|
+
x2: t.x + 10,
|
|
445
|
+
y1: t.y,
|
|
446
|
+
y2: t.y,
|
|
447
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
448
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
449
|
+
"stroke-linecap": "round"
|
|
450
|
+
}, null, 8, Ft)) : i("", !0),
|
|
451
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), n(Y, { key: 1 }, [
|
|
452
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
453
|
+
key: 0,
|
|
454
|
+
x1: t.x,
|
|
455
|
+
x2: t.x + 5,
|
|
456
|
+
y1: t.halfY,
|
|
457
|
+
y2: t.halfY,
|
|
458
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
459
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
460
|
+
"stroke-linecap": "round"
|
|
461
|
+
}, null, 8, It)) : i("", !0),
|
|
462
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
463
|
+
key: 1,
|
|
464
|
+
x1: t.x,
|
|
465
|
+
x2: t.x + 2.5,
|
|
466
|
+
y1: t.qYLess,
|
|
467
|
+
y2: t.qYLess,
|
|
468
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
469
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
470
|
+
"stroke-linecap": "round"
|
|
471
|
+
}, null, 8, Pt)) : i("", !0),
|
|
472
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
473
|
+
key: 2,
|
|
474
|
+
x1: t.x,
|
|
475
|
+
x2: t.x + 2.5,
|
|
476
|
+
y1: t.qYMore,
|
|
477
|
+
y2: t.qYMore,
|
|
478
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
479
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
480
|
+
"stroke-linecap": "round"
|
|
481
|
+
}, null, 8, Tt)) : i("", !0)
|
|
482
|
+
], 64)) : i("", !0),
|
|
483
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
484
|
+
key: 2,
|
|
485
|
+
x1: s.value.right,
|
|
486
|
+
x2: s.value.right - 10,
|
|
487
|
+
y1: t.y,
|
|
488
|
+
y2: t.y,
|
|
489
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
490
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
491
|
+
"stroke-linecap": "round"
|
|
492
|
+
}, null, 8, Mt)) : i("", !0),
|
|
493
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), n(Y, { key: 3 }, [
|
|
494
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
495
|
+
key: 0,
|
|
496
|
+
x1: s.value.right,
|
|
497
|
+
x2: s.value.right - 5,
|
|
498
|
+
y1: t.halfY,
|
|
499
|
+
y2: t.halfY,
|
|
500
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
501
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
502
|
+
"stroke-linecap": "round"
|
|
503
|
+
}, null, 8, zt)) : i("", !0),
|
|
504
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
505
|
+
key: 1,
|
|
506
|
+
x1: s.value.right,
|
|
507
|
+
x2: s.value.right - 2.5,
|
|
508
|
+
y1: t.qYLess,
|
|
509
|
+
y2: t.qYLess,
|
|
510
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
511
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
512
|
+
"stroke-linecap": "round"
|
|
513
|
+
}, null, 8, Ut)) : i("", !0),
|
|
514
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
515
|
+
key: 2,
|
|
516
|
+
x1: s.value.right,
|
|
517
|
+
x2: s.value.right - 2.5,
|
|
518
|
+
y1: t.qYMore,
|
|
519
|
+
y2: t.qYMore,
|
|
520
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
521
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
522
|
+
"stroke-linecap": "round"
|
|
523
|
+
}, null, 8, Wt)) : i("", !0)
|
|
524
|
+
], 64)) : i("", !0)
|
|
525
|
+
]))), 128)),
|
|
526
|
+
m("rect", {
|
|
527
|
+
class: L({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
528
|
+
x: s.value.left,
|
|
529
|
+
y: s.value.top,
|
|
530
|
+
height: U.value,
|
|
531
|
+
width: s.value.thermoWidth,
|
|
532
|
+
fill: "#FFFFFF66"
|
|
533
|
+
}, null, 10, Lt)
|
|
534
|
+
], 8, At),
|
|
535
|
+
e.value.style.chart.label.show ? (l(), n("g", Nt, [
|
|
536
|
+
u(Z) ? (l(), n("rect", {
|
|
537
|
+
key: 0,
|
|
538
|
+
x: s.value.left - 60,
|
|
539
|
+
y: U.value + s.value.top - A.value / 2,
|
|
540
|
+
width: 50,
|
|
541
|
+
height: A.value,
|
|
542
|
+
fill: "#6A6A6A40",
|
|
543
|
+
rx: "3"
|
|
544
|
+
}, null, 8, Yt)) : (l(), n("text", {
|
|
545
|
+
key: 1,
|
|
546
|
+
class: L({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use, "vue-ui-thermometer-label": !0 }),
|
|
547
|
+
y: U.value + s.value.top + A.value / 3,
|
|
548
|
+
x: s.value.left - 10,
|
|
549
|
+
"text-anchor": "end",
|
|
550
|
+
fill: e.value.style.chart.label.color,
|
|
551
|
+
"font-size": A.value,
|
|
552
|
+
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
553
|
+
}, Ge(u(et)(
|
|
554
|
+
e.value.style.chart.label.formatter,
|
|
555
|
+
I.dataset.value,
|
|
556
|
+
u(tt)({
|
|
557
|
+
p: e.value.style.chart.label.prefix,
|
|
558
|
+
v: I.dataset.value,
|
|
559
|
+
s: e.value.style.chart.label.suffix,
|
|
560
|
+
r: e.value.style.chart.label.rounding
|
|
561
|
+
}),
|
|
562
|
+
{ datapoint: I.dataset }
|
|
563
|
+
)), 11, Et))
|
|
564
|
+
])) : i("", !0),
|
|
565
|
+
v(o.$slots, "svg", { svg: Ce.value }, void 0, !0)
|
|
566
|
+
], 10, pt)),
|
|
567
|
+
o.$slots.watermark ? (l(), n("div", Ht, [
|
|
568
|
+
v(o.$slots, "watermark", g(p({ isPrinting: u(ae) || u(le) })), void 0, !0)
|
|
569
|
+
])) : i("", !0),
|
|
570
|
+
o.$slots.source ? (l(), n("div", {
|
|
571
|
+
key: 5,
|
|
572
|
+
ref_key: "source",
|
|
573
|
+
ref: Q,
|
|
574
|
+
dir: "auto"
|
|
575
|
+
}, [
|
|
576
|
+
v(o.$slots, "source", {}, void 0, !0)
|
|
577
|
+
], 512)) : i("", !0),
|
|
578
|
+
u(Z) ? (l(), N(rt, { key: 6 })) : i("", !0)
|
|
579
|
+
], 46, yt));
|
|
580
|
+
}
|
|
581
|
+
}, so = /* @__PURE__ */ mt(Rt, [["__scopeId", "data-v-48fbf700"]]);
|
|
582
|
+
export {
|
|
583
|
+
so as default
|
|
584
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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, a as ce } from "./useNestedProp-
|
|
2
|
+
import { u as ne, a as ce } from "./useNestedProp-DjGXw6S9.js";
|
|
3
3
|
import { c as ve, X as de, R as X } from "./lib-C_mNZmhD.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-
|
|
6
|
+
import we from "./Title-isbiM8i8.js";
|
|
7
7
|
import P from "./BaseIcon-BmMbm4d0.js";
|
|
8
8
|
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
class ge {
|
|
@@ -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-DQvyATVa.js")), { vue_ui_timer: j } = ne(), A = q, g = N, $ = 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
|
});
|