vue-data-ui 3.2.8 → 3.3.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/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
- package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
- package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
- package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
- package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
- package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
- package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
- package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
- package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
- package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
- package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
- package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
- package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
- package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
- package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
- package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
- package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
- package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
- package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
- package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
- package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
- package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
- package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
- package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
- package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
- package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
- package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
- package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
- package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
- package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
- package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-data-ui-BcRg499t.js +0 -325
- package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
- package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
- package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import { useCssVars as Ye, computed as c, defineAsyncComponent as j, ref as v, onMounted as Ee, toRefs as He, watch as qe, createElementBlock as u, openBlock as a, unref as n, normalizeStyle as de, normalizeClass as U, createBlock as W, createCommentVNode as i, createSlots as Re, withCtx as A, renderSlot as y, normalizeProps as L, guardReactiveProps as N, createVNode as Ve, createElementVNode as d, Fragment as Y, renderList as me, toDisplayString as Ge } from "vue";
|
|
2
|
+
import { c as Be, t as De, o as je, f as ye, g as Xe, b as Je, p as O, e as Ke, q as f, h as E, X as Qe, s as Ze, a as et, d as tt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as st, u as ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as lt, a as fe } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as at, B as rt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as ut } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as nt } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as ht } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as ct } from "./useAutoSizeLabelsInsideViewbox-Csv3pVmh.js";
|
|
11
|
+
import { t as vt } from "./themes-Dw-dDudK.js";
|
|
12
|
+
import dt from "./Title-D17CJXko.js";
|
|
13
|
+
import mt from "./img-6wPuVVtk.js";
|
|
14
|
+
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const ft = ["id"], gt = {
|
|
15
16
|
key: 1,
|
|
16
17
|
ref: "noTitle",
|
|
17
18
|
class: "vue-data-ui-no-title-space",
|
|
18
19
|
style: "height:36px; width: 100%;background:transparent"
|
|
19
|
-
},
|
|
20
|
+
}, pt = ["xmlns", "viewBox"], kt = ["width", "height"], bt = ["id"], xt = ["x", "y", "width", "height", "rx", "ry"], wt = ["id"], _t = ["stop-color"], Ct = ["stop-color"], $t = ["stop-color"], At = ["clip-path"], Ot = ["x", "y", "height", "width"], Ft = ["x", "y", "height", "width", "fill"], It = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], St = ["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 = {
|
|
20
21
|
key: 4,
|
|
21
22
|
class: "vue-data-ui-watermark"
|
|
22
|
-
},
|
|
23
|
+
}, qt = {
|
|
23
24
|
__name: "vue-ui-thermometer",
|
|
24
25
|
props: {
|
|
25
26
|
dataset: {
|
|
@@ -35,22 +36,22 @@ const ht = ["id"], ct = {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
|
-
setup(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
setup(F, { expose: ge }) {
|
|
40
|
+
Ye((s) => ({
|
|
41
|
+
v37fa8dda: Fe.value,
|
|
42
|
+
ee141c4a: Oe.value,
|
|
43
|
+
e9077cf0: Ae.value
|
|
43
44
|
}));
|
|
44
|
-
const
|
|
45
|
-
|
|
45
|
+
const pe = j(() => import("./PackageVersion-C9oklnuy.js")), ke = j(() => import("./PenAndPaper-BxbYiPy4.js")), be = j(() => import("./UserOptions-B3vCIe-u.js")), { vue_ui_thermometer: xe } = lt(), g = F, p = v(Be()), k = v(null), X = v(0), J = v(0), K = v(null), Q = v(null), x = v(null), I = v(null), we = c(() => !!g.dataset && Object.keys(g.dataset).length);
|
|
46
|
+
Ee(() => {
|
|
46
47
|
te();
|
|
47
48
|
});
|
|
48
|
-
const e = v(V()),
|
|
49
|
-
...
|
|
49
|
+
const e = v(V()), _e = v(e.value.style.chart.thermometer.width), H = v(e.value.style.chart.height), q = v(e.value.style.chart.width), { loading: Z, FINAL_DATASET: h } = at({
|
|
50
|
+
...He(g),
|
|
50
51
|
FINAL_CONFIG: e,
|
|
51
52
|
prepareConfig: V,
|
|
52
53
|
skeletonDataset: { value: 0, from: -100, to: 100, steps: 20, colors: { from: "#A1A1A1", to: "#CACACA" } },
|
|
53
|
-
skeletonConfig:
|
|
54
|
+
skeletonConfig: De({
|
|
54
55
|
defaultConfig: e.value,
|
|
55
56
|
userConfig: {
|
|
56
57
|
userOptions: { show: !1 },
|
|
@@ -67,23 +68,23 @@ const ht = ["id"], ct = {
|
|
|
67
68
|
})
|
|
68
69
|
}), ee = c(() => !!e.value.debug);
|
|
69
70
|
function te() {
|
|
70
|
-
if (
|
|
71
|
+
if (je(g.dataset) ? ye({
|
|
71
72
|
componentName: "VueUiThermometer",
|
|
72
73
|
type: "dataset",
|
|
73
74
|
debug: ee.value
|
|
74
|
-
}) :
|
|
75
|
+
}) : Xe({
|
|
75
76
|
datasetObject: g.dataset,
|
|
76
77
|
requiredAttributes: ["value", "from", "to"]
|
|
77
78
|
}).forEach((s) => {
|
|
78
|
-
|
|
79
|
+
ye({
|
|
79
80
|
componentName: "VueUiThermometer",
|
|
80
81
|
type: "datasetAttribute",
|
|
81
82
|
property: s,
|
|
82
83
|
debug: ee.value
|
|
83
84
|
});
|
|
84
85
|
}), e.value.responsive) {
|
|
85
|
-
const s =
|
|
86
|
-
const { width: l, height: t } =
|
|
86
|
+
const s = st(() => {
|
|
87
|
+
const { width: l, height: t } = ot({
|
|
87
88
|
chart: k.value,
|
|
88
89
|
title: e.value.style.title.text ? K.value : null,
|
|
89
90
|
source: Q.value
|
|
@@ -92,37 +93,37 @@ const ht = ["id"], ct = {
|
|
|
92
93
|
H.value = Math.max(0.1, t - 12), q.value = l, ce();
|
|
93
94
|
});
|
|
94
95
|
});
|
|
95
|
-
|
|
96
|
+
x.value && (I.value && x.value.unobserve(I.value), x.value.disconnect()), x.value = new ResizeObserver(s), I.value = k.value, x.value.observe(I.value);
|
|
96
97
|
}
|
|
97
98
|
ce();
|
|
98
99
|
}
|
|
99
|
-
const { userOptionsVisible:
|
|
100
|
+
const { userOptionsVisible: R, setUserOptionsVisibility: se, keepUserOptionState: oe } = it({ config: e.value }), { svgRef: S } = ht({ config: e.value.style.title });
|
|
100
101
|
function V() {
|
|
101
|
-
const s =
|
|
102
|
+
const s = fe({
|
|
102
103
|
userConfig: g.config,
|
|
103
|
-
defaultConfig:
|
|
104
|
+
defaultConfig: xe
|
|
104
105
|
});
|
|
105
106
|
return s.theme ? {
|
|
106
|
-
...
|
|
107
|
-
userConfig:
|
|
107
|
+
...fe({
|
|
108
|
+
userConfig: vt.vue_ui_thermometer[s.theme] || g.config,
|
|
108
109
|
defaultConfig: s
|
|
109
110
|
}),
|
|
110
|
-
customPalette:
|
|
111
|
+
customPalette: Je[s.theme] || O
|
|
111
112
|
} : s;
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
-
e.value = V(),
|
|
114
|
+
qe(() => g.config, (s) => {
|
|
115
|
+
e.value = V(), R.value = !e.value.userOptions.showOnChartHover, _e.value = e.value.style.chart.thermometer.width, H.value = e.value.style.chart.height, q.value = e.value.style.chart.width, te(), J.value += 1;
|
|
115
116
|
}, { deep: !0 });
|
|
116
|
-
const { isPrinting: le, isImaging: ae, generatePdf: re, generateImage: ue } =
|
|
117
|
+
const { isPrinting: le, isImaging: ae, generatePdf: re, generateImage: ue } = ut({
|
|
117
118
|
elementId: `thermometer__${p.value}`,
|
|
118
119
|
fileName: e.value.style.title.text || "vue-ui-thermometer",
|
|
119
120
|
options: e.value.userOptions.print
|
|
120
|
-
}),
|
|
121
|
-
function
|
|
122
|
-
const r = [],
|
|
121
|
+
}), Ce = c(() => e.value.userOptions.show && !e.value.style.title.text), P = c(() => Ke(e.value.customPalette)), m = c(() => h.value.steps || 10);
|
|
122
|
+
function T(s, l, t) {
|
|
123
|
+
const r = [], b = ne(s), C = ne(l);
|
|
123
124
|
for (let $ = 0; $ < t; $++) {
|
|
124
|
-
const
|
|
125
|
-
r.push(
|
|
125
|
+
const Ue = G(b.red, C.red, $, t), We = G(b.green, C.green, $, t), Le = G(b.blue, C.blue, $, t), Ne = `#${B(Ue)}${B(We)}${B(Le)}`;
|
|
126
|
+
r.push(Ne);
|
|
126
127
|
}
|
|
127
128
|
return r;
|
|
128
129
|
}
|
|
@@ -152,19 +153,19 @@ const ht = ["id"], ct = {
|
|
|
152
153
|
thermoHeight: l - t.top - t.bottom,
|
|
153
154
|
thermoWidth: e.value.style.chart.thermometer.width
|
|
154
155
|
};
|
|
155
|
-
}),
|
|
156
|
+
}), $e = c(() => o.value), M = c(() => {
|
|
156
157
|
const s = f(h.value.from) < 0 ? Math.abs(f(h.value.from)) : f(h.value.from), l = f(h.value.to) < 0 ? Math.abs(f(h.value.to)) : f(h.value.to);
|
|
157
158
|
let t = 0;
|
|
158
159
|
return f(h.value.to) > 0 ? t = s + l : s > l ? t = s - l : t = l - s, (1 - (Math.abs(f(h.value.from)) + f(h.value.value)) / t) * o.value.thermoHeight;
|
|
159
|
-
}),
|
|
160
|
+
}), Ae = c(() => `${M.value}px`), Oe = c(() => `${o.value.thermoHeight}px`), Fe = c(() => `${e.value.style.chart.animation.speedMs}ms`), Ie = c(() => {
|
|
160
161
|
if (h.value.colors) {
|
|
161
162
|
if (!h.value.colors.from)
|
|
162
|
-
return
|
|
163
|
+
return T(P.value[0] || O[0], E(h.value.colors.to), m.value || 10);
|
|
163
164
|
if (!h.value.colors.to)
|
|
164
|
-
return
|
|
165
|
+
return T(E(h.value.colors.from), P.value[1] || O[1], m.value || 10);
|
|
165
166
|
} else
|
|
166
|
-
return
|
|
167
|
-
return
|
|
167
|
+
return T(P.value[1] || O[1], P.value[0] || O[0], m.value || 10);
|
|
168
|
+
return T(E(h.value.colors.from), E(h.value.colors.to), m.value || 10);
|
|
168
169
|
}), ie = c(() => {
|
|
169
170
|
const s = [];
|
|
170
171
|
let l = 0;
|
|
@@ -176,23 +177,23 @@ const ht = ["id"], ct = {
|
|
|
176
177
|
qYLess: o.value.top + r + t / m.value / 4,
|
|
177
178
|
halfY: o.value.top + r + t / m.value / 2,
|
|
178
179
|
qYMore: o.value.top + r + t / m.value / 4 * 3,
|
|
179
|
-
color:
|
|
180
|
+
color: Ie.value[l],
|
|
180
181
|
height: Math.max(0.1, t / m.value)
|
|
181
182
|
}), l += 1;
|
|
182
183
|
return s;
|
|
183
|
-
}),
|
|
184
|
+
}), w = v(!1);
|
|
184
185
|
function he(s) {
|
|
185
|
-
|
|
186
|
+
w.value = s, X.value += 1;
|
|
186
187
|
}
|
|
187
|
-
const
|
|
188
|
+
const z = v(!1);
|
|
188
189
|
function D() {
|
|
189
|
-
|
|
190
|
+
z.value = !z.value;
|
|
190
191
|
}
|
|
191
|
-
async function
|
|
192
|
+
async function Se({ scale: s = 2 } = {}) {
|
|
192
193
|
if (!k.value) return;
|
|
193
|
-
const { width: l, height: t } = k.value.getBoundingClientRect(), r = l / t, { imageUri:
|
|
194
|
+
const { width: l, height: t } = k.value.getBoundingClientRect(), r = l / t, { imageUri: b, base64: C } = await mt({ domElement: k.value, base64: !0, img: !0, scale: s });
|
|
194
195
|
return {
|
|
195
|
-
imageUri:
|
|
196
|
+
imageUri: b,
|
|
196
197
|
base64: C,
|
|
197
198
|
title: e.value.style.title.text,
|
|
198
199
|
width: l,
|
|
@@ -200,47 +201,59 @@ const ht = ["id"], ct = {
|
|
|
200
201
|
aspectRatio: r
|
|
201
202
|
};
|
|
202
203
|
}
|
|
203
|
-
const
|
|
204
|
+
const _ = c({
|
|
204
205
|
get: () => e.value.style.chart.label.fontSize,
|
|
205
206
|
set: (s) => s
|
|
206
|
-
}), { autoSizeLabels: ce } =
|
|
207
|
-
svgRef:
|
|
207
|
+
}), { autoSizeLabels: ce } = ct({
|
|
208
|
+
svgRef: S,
|
|
208
209
|
fontSize: e.value.style.chart.label.fontSize,
|
|
209
210
|
minFontSize: e.value.style.chart.label.minFontSize,
|
|
210
|
-
sizeRef:
|
|
211
|
+
sizeRef: _,
|
|
211
212
|
labelClass: ".vue-ui-thermometer-label"
|
|
213
|
+
}), Pe = c(() => e.value.style.chart.backgroundColor), Te = c(() => e.value.style.title), { exportSvg: Me, getSvg: ze } = nt({
|
|
214
|
+
svg: S,
|
|
215
|
+
title: Te,
|
|
216
|
+
backgroundColor: Pe
|
|
212
217
|
});
|
|
213
|
-
|
|
214
|
-
|
|
218
|
+
async function ve({ isCb: s }) {
|
|
219
|
+
if (s) {
|
|
220
|
+
const { blob: l, url: t, text: r, dataUrl: b } = await ze();
|
|
221
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: r, dataUrl: b });
|
|
222
|
+
} else
|
|
223
|
+
Me();
|
|
224
|
+
}
|
|
225
|
+
return ge({
|
|
226
|
+
getImage: Se,
|
|
215
227
|
generatePdf: re,
|
|
216
228
|
generateImage: ue,
|
|
229
|
+
generateSvg: ve,
|
|
217
230
|
toggleAnnotator: D,
|
|
218
231
|
toggleFullscreen: he
|
|
219
232
|
}), (s, l) => (a(), u("div", {
|
|
220
233
|
ref_key: "thermoChart",
|
|
221
234
|
ref: k,
|
|
222
|
-
class:
|
|
223
|
-
style:
|
|
235
|
+
class: U(`vue-data-ui-component vue-ui-thermometer ${w.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}`),
|
|
224
237
|
id: `thermometer__${p.value}`,
|
|
225
238
|
onMouseenter: l[0] || (l[0] = () => n(se)(!0)),
|
|
226
239
|
onMouseleave: l[1] || (l[1] = () => n(se)(!1))
|
|
227
240
|
}, [
|
|
228
|
-
e.value.userOptions.buttons.annotator ? (a(), W(n(
|
|
241
|
+
e.value.userOptions.buttons.annotator ? (a(), W(n(ke), {
|
|
229
242
|
key: 0,
|
|
230
|
-
svgRef: n(
|
|
243
|
+
svgRef: n(S),
|
|
231
244
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
232
245
|
color: e.value.style.chart.color,
|
|
233
|
-
active:
|
|
246
|
+
active: z.value,
|
|
234
247
|
onClose: D
|
|
235
248
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
|
|
236
|
-
|
|
249
|
+
Ce.value ? (a(), u("div", gt, null, 512)) : i("", !0),
|
|
237
250
|
e.value.style.title.text ? (a(), u("div", {
|
|
238
251
|
key: 2,
|
|
239
252
|
ref_key: "chartTitle",
|
|
240
253
|
ref: K,
|
|
241
254
|
style: "width:100%"
|
|
242
255
|
}, [
|
|
243
|
-
(a(), W(
|
|
256
|
+
(a(), W(dt, {
|
|
244
257
|
key: `title_${J.value}`,
|
|
245
258
|
config: {
|
|
246
259
|
title: {
|
|
@@ -254,7 +267,7 @@ const ht = ["id"], ct = {
|
|
|
254
267
|
}
|
|
255
268
|
}, null, 8, ["config"]))
|
|
256
269
|
], 512)) : i("", !0),
|
|
257
|
-
e.value.userOptions.show &&
|
|
270
|
+
e.value.userOptions.show && we.value && (n(oe) || n(R)) ? (a(), W(n(be), {
|
|
258
271
|
ref: "details",
|
|
259
272
|
key: `user_options_${X.value}`,
|
|
260
273
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -264,28 +277,30 @@ const ht = ["id"], ct = {
|
|
|
264
277
|
uid: p.value,
|
|
265
278
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
266
279
|
hasImg: e.value.userOptions.buttons.img,
|
|
280
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
267
281
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
268
282
|
hasXls: !1,
|
|
269
|
-
isFullscreen:
|
|
283
|
+
isFullscreen: w.value,
|
|
270
284
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
271
285
|
chartElement: k.value,
|
|
272
286
|
position: e.value.userOptions.position,
|
|
273
287
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
274
|
-
isAnnotation:
|
|
288
|
+
isAnnotation: z.value,
|
|
275
289
|
callbacks: e.value.userOptions.callbacks,
|
|
276
290
|
printScale: e.value.userOptions.print.scale,
|
|
277
291
|
onToggleFullscreen: he,
|
|
278
292
|
onGeneratePdf: n(re),
|
|
279
293
|
onGenerateImage: n(ue),
|
|
294
|
+
onGenerateSvg: ve,
|
|
280
295
|
onToggleAnnotator: D,
|
|
281
|
-
style:
|
|
282
|
-
visibility: n(oe) ? n(
|
|
296
|
+
style: de({
|
|
297
|
+
visibility: n(oe) ? n(R) ? "visible" : "hidden" : "visible"
|
|
283
298
|
})
|
|
284
|
-
},
|
|
299
|
+
}, Re({ _: 2 }, [
|
|
285
300
|
s.$slots.menuIcon ? {
|
|
286
301
|
name: "menuIcon",
|
|
287
302
|
fn: A(({ isOpen: t, color: r }) => [
|
|
288
|
-
y(s.$slots, "menuIcon",
|
|
303
|
+
y(s.$slots, "menuIcon", L(N({ isOpen: t, color: r })), void 0, !0)
|
|
289
304
|
]),
|
|
290
305
|
key: "0"
|
|
291
306
|
} : void 0,
|
|
@@ -306,28 +321,28 @@ const ht = ["id"], ct = {
|
|
|
306
321
|
s.$slots.optionFullscreen ? {
|
|
307
322
|
name: "optionFullscreen",
|
|
308
323
|
fn: A(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
309
|
-
y(s.$slots, "optionFullscreen",
|
|
324
|
+
y(s.$slots, "optionFullscreen", L(N({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
310
325
|
]),
|
|
311
326
|
key: "3"
|
|
312
327
|
} : void 0,
|
|
313
328
|
s.$slots.optionAnnotator ? {
|
|
314
329
|
name: "optionAnnotator",
|
|
315
330
|
fn: A(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
316
|
-
y(s.$slots, "optionAnnotator",
|
|
331
|
+
y(s.$slots, "optionAnnotator", L(N({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
317
332
|
]),
|
|
318
333
|
key: "4"
|
|
319
334
|
} : void 0
|
|
320
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
335
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
321
336
|
(a(), u("svg", {
|
|
322
337
|
ref_key: "svgRef",
|
|
323
|
-
ref:
|
|
324
|
-
xmlns: n(
|
|
325
|
-
class:
|
|
338
|
+
ref: S,
|
|
339
|
+
xmlns: n(Qe),
|
|
340
|
+
class: U({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value }),
|
|
326
341
|
width: "100%",
|
|
327
342
|
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
328
343
|
style: "background:transparent"
|
|
329
344
|
}, [
|
|
330
|
-
|
|
345
|
+
Ve(n(pe)),
|
|
331
346
|
s.$slots["chart-background"] ? (a(), u("foreignObject", {
|
|
332
347
|
key: 0,
|
|
333
348
|
x: 0,
|
|
@@ -339,7 +354,7 @@ const ht = ["id"], ct = {
|
|
|
339
354
|
}
|
|
340
355
|
}, [
|
|
341
356
|
y(s.$slots, "chart-background", {}, void 0, !0)
|
|
342
|
-
], 8,
|
|
357
|
+
], 8, kt)) : i("", !0),
|
|
343
358
|
d("defs", null, [
|
|
344
359
|
d("clipPath", {
|
|
345
360
|
id: `vueUiPill-${p.value}`,
|
|
@@ -352,9 +367,9 @@ const ht = ["id"], ct = {
|
|
|
352
367
|
height: o.value.thermoHeight,
|
|
353
368
|
rx: o.value.thermoWidth / 2,
|
|
354
369
|
ry: o.value.thermoWidth / 2
|
|
355
|
-
}, null, 8,
|
|
356
|
-
], 8,
|
|
357
|
-
(a(!0), u(
|
|
370
|
+
}, null, 8, xt)
|
|
371
|
+
], 8, bt),
|
|
372
|
+
(a(!0), u(Y, null, me(ie.value, (t, r) => (a(), u("linearGradient", {
|
|
358
373
|
id: `vueUiThermometerGradient_${r}_${p.value}`,
|
|
359
374
|
x1: "0%",
|
|
360
375
|
y1: "0%",
|
|
@@ -364,16 +379,16 @@ const ht = ["id"], ct = {
|
|
|
364
379
|
d("stop", {
|
|
365
380
|
offset: "0%",
|
|
366
381
|
"stop-color": t.color
|
|
367
|
-
}, null, 8,
|
|
382
|
+
}, null, 8, _t),
|
|
368
383
|
d("stop", {
|
|
369
384
|
offset: "50%",
|
|
370
|
-
"stop-color": n(
|
|
371
|
-
}, null, 8,
|
|
385
|
+
"stop-color": n(Ze)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
|
|
386
|
+
}, null, 8, Ct),
|
|
372
387
|
d("stop", {
|
|
373
388
|
offset: "100%",
|
|
374
389
|
"stop-color": t.color
|
|
375
|
-
}, null, 8,
|
|
376
|
-
], 8,
|
|
390
|
+
}, null, 8, $t)
|
|
391
|
+
], 8, wt))), 256))
|
|
377
392
|
]),
|
|
378
393
|
d("g", {
|
|
379
394
|
"clip-path": `url(#vueUiPill-${p.value})`
|
|
@@ -384,8 +399,8 @@ const ht = ["id"], ct = {
|
|
|
384
399
|
height: o.value.thermoHeight,
|
|
385
400
|
width: o.value.thermoWidth,
|
|
386
401
|
fill: "#FFFFFF"
|
|
387
|
-
}, null, 8,
|
|
388
|
-
(a(!0), u(
|
|
402
|
+
}, null, 8, Ot),
|
|
403
|
+
(a(!0), u(Y, null, me(ie.value, (t, r) => (a(), u("g", {
|
|
389
404
|
key: `graduation_${r}`
|
|
390
405
|
}, [
|
|
391
406
|
d("rect", {
|
|
@@ -395,7 +410,7 @@ const ht = ["id"], ct = {
|
|
|
395
410
|
width: o.value.thermoWidth,
|
|
396
411
|
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${r}_${p.value})` : t.color,
|
|
397
412
|
"shape-rendering": "crispEdges"
|
|
398
|
-
}, null, 8,
|
|
413
|
+
}, null, 8, Ft),
|
|
399
414
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
400
415
|
key: 0,
|
|
401
416
|
x1: t.x,
|
|
@@ -405,8 +420,8 @@ const ht = ["id"], ct = {
|
|
|
405
420
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
406
421
|
stroke: e.value.style.chart.graduations.stroke,
|
|
407
422
|
"stroke-linecap": "round"
|
|
408
|
-
}, null, 8,
|
|
409
|
-
e.value.style.chart.graduations.showIntermediate ? (a(), u(
|
|
423
|
+
}, null, 8, It)) : i("", !0),
|
|
424
|
+
e.value.style.chart.graduations.showIntermediate ? (a(), u(Y, { key: 1 }, [
|
|
410
425
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
411
426
|
key: 0,
|
|
412
427
|
x1: t.x,
|
|
@@ -416,7 +431,7 @@ const ht = ["id"], ct = {
|
|
|
416
431
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
417
432
|
stroke: e.value.style.chart.graduations.stroke,
|
|
418
433
|
"stroke-linecap": "round"
|
|
419
|
-
}, null, 8,
|
|
434
|
+
}, null, 8, St)) : i("", !0),
|
|
420
435
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
421
436
|
key: 1,
|
|
422
437
|
x1: t.x,
|
|
@@ -426,7 +441,7 @@ const ht = ["id"], ct = {
|
|
|
426
441
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
427
442
|
stroke: e.value.style.chart.graduations.stroke,
|
|
428
443
|
"stroke-linecap": "round"
|
|
429
|
-
}, null, 8,
|
|
444
|
+
}, null, 8, Pt)) : i("", !0),
|
|
430
445
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
431
446
|
key: 2,
|
|
432
447
|
x1: t.x,
|
|
@@ -436,7 +451,7 @@ const ht = ["id"], ct = {
|
|
|
436
451
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
437
452
|
stroke: e.value.style.chart.graduations.stroke,
|
|
438
453
|
"stroke-linecap": "round"
|
|
439
|
-
}, null, 8,
|
|
454
|
+
}, null, 8, Tt)) : i("", !0)
|
|
440
455
|
], 64)) : i("", !0),
|
|
441
456
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
442
457
|
key: 2,
|
|
@@ -447,8 +462,8 @@ const ht = ["id"], ct = {
|
|
|
447
462
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
448
463
|
stroke: e.value.style.chart.graduations.stroke,
|
|
449
464
|
"stroke-linecap": "round"
|
|
450
|
-
}, null, 8,
|
|
451
|
-
e.value.style.chart.graduations.showIntermediate ? (a(), u(
|
|
465
|
+
}, null, 8, Mt)) : i("", !0),
|
|
466
|
+
e.value.style.chart.graduations.showIntermediate ? (a(), u(Y, { key: 3 }, [
|
|
452
467
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
453
468
|
key: 0,
|
|
454
469
|
x1: o.value.right,
|
|
@@ -458,7 +473,7 @@ const ht = ["id"], ct = {
|
|
|
458
473
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
459
474
|
stroke: e.value.style.chart.graduations.stroke,
|
|
460
475
|
"stroke-linecap": "round"
|
|
461
|
-
}, null, 8,
|
|
476
|
+
}, null, 8, zt)) : i("", !0),
|
|
462
477
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
463
478
|
key: 1,
|
|
464
479
|
x1: o.value.right,
|
|
@@ -468,7 +483,7 @@ const ht = ["id"], ct = {
|
|
|
468
483
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
469
484
|
stroke: e.value.style.chart.graduations.stroke,
|
|
470
485
|
"stroke-linecap": "round"
|
|
471
|
-
}, null, 8,
|
|
486
|
+
}, null, 8, Ut)) : i("", !0),
|
|
472
487
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (a(), u("line", {
|
|
473
488
|
key: 2,
|
|
474
489
|
x1: o.value.right,
|
|
@@ -478,52 +493,52 @@ const ht = ["id"], ct = {
|
|
|
478
493
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
479
494
|
stroke: e.value.style.chart.graduations.stroke,
|
|
480
495
|
"stroke-linecap": "round"
|
|
481
|
-
}, null, 8,
|
|
496
|
+
}, null, 8, Wt)) : i("", !0)
|
|
482
497
|
], 64)) : i("", !0)
|
|
483
498
|
]))), 128)),
|
|
484
499
|
d("rect", {
|
|
485
|
-
class:
|
|
500
|
+
class: U({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
486
501
|
x: o.value.left,
|
|
487
502
|
y: o.value.top,
|
|
488
503
|
height: M.value,
|
|
489
504
|
width: o.value.thermoWidth,
|
|
490
505
|
fill: "#FFFFFF66"
|
|
491
|
-
}, null, 10,
|
|
492
|
-
], 8,
|
|
493
|
-
e.value.style.chart.label.show ? (a(), u("g",
|
|
506
|
+
}, null, 10, Lt)
|
|
507
|
+
], 8, At),
|
|
508
|
+
e.value.style.chart.label.show ? (a(), u("g", Nt, [
|
|
494
509
|
n(Z) ? (a(), u("rect", {
|
|
495
510
|
key: 0,
|
|
496
511
|
x: o.value.left - 60,
|
|
497
|
-
y: M.value + o.value.top -
|
|
512
|
+
y: M.value + o.value.top - _.value / 2,
|
|
498
513
|
width: 50,
|
|
499
|
-
height:
|
|
514
|
+
height: _.value,
|
|
500
515
|
fill: "#6A6A6A40",
|
|
501
516
|
rx: "3"
|
|
502
|
-
}, null, 8,
|
|
517
|
+
}, null, 8, Yt)) : (a(), u("text", {
|
|
503
518
|
key: 1,
|
|
504
|
-
class:
|
|
505
|
-
y: M.value + o.value.top +
|
|
519
|
+
class: U({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use, "vue-ui-thermometer-label": !0 }),
|
|
520
|
+
y: M.value + o.value.top + _.value / 3,
|
|
506
521
|
x: o.value.left - 10,
|
|
507
522
|
"text-anchor": "end",
|
|
508
523
|
fill: e.value.style.chart.label.color,
|
|
509
|
-
"font-size":
|
|
524
|
+
"font-size": _.value,
|
|
510
525
|
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
511
|
-
},
|
|
526
|
+
}, Ge(n(et)(
|
|
512
527
|
e.value.style.chart.label.formatter,
|
|
513
|
-
|
|
514
|
-
n(
|
|
528
|
+
F.dataset.value,
|
|
529
|
+
n(tt)({
|
|
515
530
|
p: e.value.style.chart.label.prefix,
|
|
516
|
-
v:
|
|
531
|
+
v: F.dataset.value,
|
|
517
532
|
s: e.value.style.chart.label.suffix,
|
|
518
533
|
r: e.value.style.chart.label.rounding
|
|
519
534
|
}),
|
|
520
|
-
{ datapoint:
|
|
521
|
-
)), 11,
|
|
535
|
+
{ datapoint: F.dataset }
|
|
536
|
+
)), 11, Et))
|
|
522
537
|
])) : i("", !0),
|
|
523
|
-
y(s.$slots, "svg", { svg:
|
|
524
|
-
], 10,
|
|
525
|
-
s.$slots.watermark ? (a(), u("div",
|
|
526
|
-
y(s.$slots, "watermark",
|
|
538
|
+
y(s.$slots, "svg", { svg: $e.value }, void 0, !0)
|
|
539
|
+
], 10, pt)),
|
|
540
|
+
s.$slots.watermark ? (a(), u("div", Ht, [
|
|
541
|
+
y(s.$slots, "watermark", L(N({ isPrinting: n(le) || n(ae) })), void 0, !0)
|
|
527
542
|
])) : i("", !0),
|
|
528
543
|
s.$slots.source ? (a(), u("div", {
|
|
529
544
|
key: 5,
|
|
@@ -533,10 +548,10 @@ const ht = ["id"], ct = {
|
|
|
533
548
|
}, [
|
|
534
549
|
y(s.$slots, "source", {}, void 0, !0)
|
|
535
550
|
], 512)) : i("", !0),
|
|
536
|
-
n(Z) ? (a(), W(
|
|
537
|
-
], 46,
|
|
551
|
+
n(Z) ? (a(), W(rt, { key: 6 })) : i("", !0)
|
|
552
|
+
], 46, ft));
|
|
538
553
|
}
|
|
539
|
-
},
|
|
554
|
+
}, os = /* @__PURE__ */ yt(qt, [["__scopeId", "data-v-181d4751"]]);
|
|
540
555
|
export {
|
|
541
|
-
|
|
556
|
+
os as default
|
|
542
557
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
3
|
-
import { c as ve, X as de, D as X } from "./lib-
|
|
2
|
+
import { u as ne, a as ce } from "./useNestedProp-mxyyqd0B.js";
|
|
3
|
+
import { c as ve, X as de, D as X } from "./lib-GIYcnm0E.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-D17CJXko.js";
|
|
7
|
+
import R from "./BaseIcon-CtqN7W_g.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, D = !0) {
|
|
@@ -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-C9oklnuy.js")), { vue_ui_timer: j } = ne(), D = q, g = N, $ = v(null), A = 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
|
});
|