vue-data-ui 2.16.6 → 2.17.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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, F as J, u as K, p as Z } from "./index-
|
|
2
|
-
import q from "./vue-ui-xy-
|
|
3
|
-
import Q from "./vue-ui-donut-
|
|
1
|
+
import { a5 as z, A as P, l as T, r as U, f as V, h as X, q as j, z as Y, d as W, F as J, u as K, p as Z } from "./index-pPGk-uhD.js";
|
|
2
|
+
import q from "./vue-ui-xy-CQ425kLR.js";
|
|
3
|
+
import Q from "./vue-ui-donut-CKa7nFjt.js";
|
|
4
4
|
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createElementVNode as a, createCommentVNode as b, toDisplayString as d, Fragment as I, renderList as _, normalizeClass as p, createTextVNode as w, withDirectives as O, vModelText as S, withKeys as L, withModifiers as A, vModelSelect as $, createBlock as E, createVNode as ee } from "vue";
|
|
5
5
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const se = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as r, openBlock as n, unref as i, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as u, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
|
|
2
|
-
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me, F as fe, P as he, q as ge, r as be } from "./index-
|
|
3
|
-
import { u as H } from "./useNestedProp-
|
|
4
|
-
import { u as ye } from "./usePrinter-
|
|
2
|
+
import { u as de, c as A, a as pe, o as ce, e as ve, a6 as me, F as fe, P as he, q as ge, r as be } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as H } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as ye } from "./usePrinter-DDHcrl0A.js";
|
|
5
5
|
import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { _ as ke } from "./Shape-
|
|
6
|
+
import { _ as ke } from "./Shape-DtFT5EJa.js";
|
|
7
7
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], Fe = {
|
|
9
9
|
key: 0,
|
|
@@ -45,7 +45,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
45
45
|
"8f8e7142": ee.value,
|
|
46
46
|
cb3b028c: j.value
|
|
47
47
|
}));
|
|
48
|
-
const X = oe(() => import("./UserOptions-
|
|
48
|
+
const X = oe(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), d = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
|
|
49
49
|
z(() => {
|
|
50
50
|
q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
51
51
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Fe, defineAsyncComponent as J, ref as p, useSlots as Ve, onMounted as me, computed as _, watch as be, shallowRef as Te, onBeforeUnmount as We, createElementBlock as c, openBlock as v, unref as u, normalizeClass as K, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as D, Fragment as Q, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as P, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
|
|
2
|
-
import { u as ye } from "./useNestedProp-
|
|
3
|
-
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a6 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-
|
|
4
|
-
import { u as je } from "./usePrinter-
|
|
2
|
+
import { u as ye } from "./useNestedProp-DjACxgdZ.js";
|
|
3
|
+
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a6 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-pPGk-uhD.js";
|
|
4
|
+
import { u as je } from "./usePrinter-DDHcrl0A.js";
|
|
5
5
|
import { u as et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { v as tt } from "./vClickOutside-C6WiFswA.js";
|
|
7
7
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -43,7 +43,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
43
43
|
Fe((t) => ({
|
|
44
44
|
"3f28d054": t.tdo
|
|
45
45
|
}));
|
|
46
|
-
const Ce = J(() => import("./vue-ui-sparkline-
|
|
46
|
+
const Ce = J(() => import("./vue-ui-sparkline-B_iUj3F2.js")), N = J(() => import("./BaseIcon-naqtCxVi.js")), xe = J(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
|
|
47
47
|
me(() => {
|
|
48
48
|
Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
49
49
|
});
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { useCssVars as $e, computed as d, defineAsyncComponent as O, onMounted as Pe, ref as p, watch as Fe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as oe, normalizeClass as I, createBlock as A, createCommentVNode as c, createSlots as Oe, withCtx as x, renderSlot as f, normalizeProps as S, guardReactiveProps as M, createVNode as Ie, createElementVNode as v, Fragment as U, renderList as ae, toDisplayString as Ae } from "vue";
|
|
2
|
+
import { u as Se, o as Me, e as le, g as Ue, c as Ye, t as Ne, p as w, a as Te, b as Ve, v as g, d as Y, X as qe, s as Le, i as Ee, f as Ge } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as re } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as We } from "./usePrinter-DDHcrl0A.js";
|
|
5
|
+
import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as ze } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import Be from "./Title-B-2bV0SW.js";
|
|
8
|
+
import Re from "./img-Y_hYz-ZC.js";
|
|
9
|
+
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const He = ["id"], Xe = {
|
|
10
11
|
key: 1,
|
|
11
12
|
ref: "noTitle",
|
|
12
13
|
class: "vue-data-ui-no-title-space",
|
|
13
14
|
style: "height:36px; width: 100%;background:transparent"
|
|
14
|
-
},
|
|
15
|
+
}, Je = {
|
|
15
16
|
key: 2,
|
|
16
17
|
style: "width:100%"
|
|
17
|
-
},
|
|
18
|
+
}, Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = {
|
|
18
19
|
id: "vueUiPill",
|
|
19
20
|
clipPathUnits: "objectBoundingBox"
|
|
20
|
-
},
|
|
21
|
+
}, et = ["fill"], tt = ["id"], st = ["stop-color"], ot = ["stop-color"], at = ["stop-color"], lt = { "clip-path": "url(#vueUiPill)" }, rt = ["x", "y", "height", "width"], nt = ["x", "y", "height", "width", "fill"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], dt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], vt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], yt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ft = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], gt = ["x", "y", "height", "width"], pt = ["y", "x", "fill", "font-size", "font-weight"], mt = {
|
|
21
22
|
key: 5,
|
|
22
23
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
24
|
+
}, kt = {
|
|
24
25
|
key: 6,
|
|
25
26
|
ref: "source",
|
|
26
27
|
dir: "auto"
|
|
27
|
-
},
|
|
28
|
+
}, bt = {
|
|
28
29
|
__name: "vue-ui-thermometer",
|
|
29
30
|
props: {
|
|
30
31
|
dataset: {
|
|
@@ -40,22 +41,22 @@ const Re = ["id"], De = {
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
|
-
setup(_, { expose:
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"
|
|
44
|
+
setup(_, { expose: ne }) {
|
|
45
|
+
$e((s) => ({
|
|
46
|
+
"27cf4cf6": me.value,
|
|
47
|
+
f8d740ae: pe.value,
|
|
48
|
+
"22506a54": ge.value
|
|
48
49
|
}));
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
const ue = O(() => import("./PackageVersion-5TR4ocqp.js")), ie = O(() => import("./PenAndPaper-D6AqipIO.js")), ce = O(() => import("./vue-ui-skeleton-DJPjyNYn.js")), he = O(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_thermometer: de } = Se(), r = _, N = d(() => !!r.dataset && Object.keys(r.dataset).length);
|
|
51
|
+
Pe(() => {
|
|
52
|
+
j();
|
|
52
53
|
});
|
|
53
|
-
function
|
|
54
|
-
|
|
54
|
+
function j() {
|
|
55
|
+
Me(r.dataset) ? le({
|
|
55
56
|
componentName: "VueUiThermometer",
|
|
56
57
|
type: "dataset"
|
|
57
|
-
}) :
|
|
58
|
-
datasetObject:
|
|
58
|
+
}) : Ue({
|
|
59
|
+
datasetObject: r.dataset,
|
|
59
60
|
requiredAttributes: ["value", "from", "to"]
|
|
60
61
|
}).forEach((s) => {
|
|
61
62
|
le({
|
|
@@ -65,84 +66,84 @@ const Re = ["id"], De = {
|
|
|
65
66
|
});
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
const m = p(Ye()),
|
|
69
|
+
const m = p(Ye()), C = p(null), z = p(0), B = p(0), e = d({
|
|
69
70
|
get: () => X(),
|
|
70
71
|
set: (s) => s
|
|
71
|
-
}), { userOptionsVisible:
|
|
72
|
+
}), { userOptionsVisible: T, setUserOptionsVisibility: R, keepUserOptionState: D } = je({ config: e.value }), { svgRef: H } = ze({ config: e.value.style.title });
|
|
72
73
|
function X() {
|
|
73
|
-
const s =
|
|
74
|
-
userConfig:
|
|
75
|
-
defaultConfig:
|
|
74
|
+
const s = re({
|
|
75
|
+
userConfig: r.config,
|
|
76
|
+
defaultConfig: de
|
|
76
77
|
});
|
|
77
78
|
return s.theme ? {
|
|
78
|
-
...
|
|
79
|
-
userConfig:
|
|
79
|
+
...re({
|
|
80
|
+
userConfig: Te.vue_ui_thermometer[s.theme] || r.config,
|
|
80
81
|
defaultConfig: s
|
|
81
82
|
}),
|
|
82
83
|
customPalette: Ne[s.theme] || w
|
|
83
84
|
} : s;
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
-
e.value = X(),
|
|
86
|
+
Fe(() => r.config, (s) => {
|
|
87
|
+
e.value = X(), T.value = !e.value.userOptions.showOnChartHover, j(), B.value += 1;
|
|
87
88
|
}, { deep: !0 });
|
|
88
|
-
const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } =
|
|
89
|
+
const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = We({
|
|
89
90
|
elementId: `thermometer__${m.value}`,
|
|
90
91
|
fileName: e.value.style.title.text || "vue-ui-thermometer",
|
|
91
92
|
options: e.value.userOptions.print
|
|
92
|
-
}),
|
|
93
|
+
}), ve = d(() => e.value.userOptions.show && !e.value.style.title.text), $ = d(() => Ve(e.value.customPalette)), ye = d(() => e.value.style.chart.thermometer.width), y = d(() => r.dataset.steps || 10), h = p({
|
|
93
94
|
top: e.value.style.chart.padding.top,
|
|
94
95
|
left: e.value.style.chart.padding.left,
|
|
95
96
|
right: e.value.style.chart.padding.right,
|
|
96
97
|
bottom: e.value.style.chart.padding.bottom
|
|
97
98
|
});
|
|
98
|
-
function
|
|
99
|
-
const n = [],
|
|
99
|
+
function P(s, a, t) {
|
|
100
|
+
const n = [], G = ee(s), W = ee(a);
|
|
100
101
|
for (let b = 0; b < t; b++) {
|
|
101
|
-
const
|
|
102
|
-
n.push(
|
|
102
|
+
const xe = V(G.red, W.red, b, t), we = V(G.green, W.green, b, t), _e = V(G.blue, W.blue, b, t), Ce = `#${q(xe)}${q(we)}${q(_e)}`;
|
|
103
|
+
n.push(Ce);
|
|
103
104
|
}
|
|
104
105
|
return n;
|
|
105
106
|
}
|
|
106
107
|
function ee(s) {
|
|
107
|
-
const
|
|
108
|
+
const a = s.slice(1);
|
|
108
109
|
return {
|
|
109
|
-
red: parseInt(
|
|
110
|
-
green: parseInt(
|
|
111
|
-
blue: parseInt(
|
|
110
|
+
red: parseInt(a.slice(0, 2), 16),
|
|
111
|
+
green: parseInt(a.slice(2, 4), 16),
|
|
112
|
+
blue: parseInt(a.slice(4, 6), 16)
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
-
return Math.round(s + (
|
|
115
|
+
function V(s, a, t, n) {
|
|
116
|
+
return Math.round(s + (a - s) * t / n);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
+
function q(s) {
|
|
118
119
|
return s.toString(16).padStart(2, "0");
|
|
119
120
|
}
|
|
120
121
|
const o = d(() => {
|
|
121
|
-
const s =
|
|
122
|
+
const s = ye.value + h.value.left + h.value.right, a = e.value.style.chart.height;
|
|
122
123
|
return {
|
|
123
124
|
width: s,
|
|
124
125
|
left: h.value.left,
|
|
125
126
|
right: s - h.value.right,
|
|
126
127
|
top: h.value.top,
|
|
127
|
-
bottom:
|
|
128
|
-
height:
|
|
128
|
+
bottom: a - h.value.bottom,
|
|
129
|
+
height: a
|
|
129
130
|
};
|
|
130
|
-
}),
|
|
131
|
-
const s = g(
|
|
131
|
+
}), fe = d(() => o.value), L = d(() => {
|
|
132
|
+
const s = g(r.dataset.from) < 0 ? Math.abs(g(r.dataset.from)) : g(r.dataset.from), a = g(r.dataset.to) < 0 ? Math.abs(g(r.dataset.to)) : g(r.dataset.to);
|
|
132
133
|
let t = 0;
|
|
133
|
-
return g(
|
|
134
|
-
}),
|
|
135
|
-
if (
|
|
136
|
-
if (!
|
|
137
|
-
return
|
|
138
|
-
if (!
|
|
139
|
-
return
|
|
134
|
+
return g(r.dataset.to) > 0 ? t = s + a : s > a ? t = s - a : t = a - s, (1 - (Math.abs(g(r.dataset.from)) + g(r.dataset.value)) / t) * (o.value.height - h.value.top - h.value.bottom);
|
|
135
|
+
}), ge = d(() => `${L.value}px`), pe = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), me = d(() => `${e.value.style.chart.animation.speedMs}ms`), ke = d(() => {
|
|
136
|
+
if (r.dataset.colors) {
|
|
137
|
+
if (!r.dataset.colors.from)
|
|
138
|
+
return P($.value[0] || w[0], Y(r.dataset.colors.to), y.value || 10);
|
|
139
|
+
if (!r.dataset.colors.to)
|
|
140
|
+
return P(Y(r.dataset.colors.from), $.value[1] || w[1], y.value || 10);
|
|
140
141
|
} else
|
|
141
|
-
return
|
|
142
|
-
return
|
|
142
|
+
return P($.value[1] || w[1], $.value[0] || w[0], y.value || 10);
|
|
143
|
+
return P(Y(r.dataset.colors.from), Y(r.dataset.colors.to), y.value || 10);
|
|
143
144
|
}), te = d(() => {
|
|
144
145
|
const s = [];
|
|
145
|
-
let
|
|
146
|
+
let a = 0;
|
|
146
147
|
const t = o.value.height - h.value.top - h.value.bottom;
|
|
147
148
|
for (let n = 0; n < t - 1; n += t / y.value)
|
|
148
149
|
s.push({
|
|
@@ -151,42 +152,49 @@ const Re = ["id"], De = {
|
|
|
151
152
|
qYLess: o.value.top + n + t / y.value / 4,
|
|
152
153
|
halfY: o.value.top + n + t / y.value / 2,
|
|
153
154
|
qYMore: o.value.top + n + t / y.value / 4 * 3,
|
|
154
|
-
color:
|
|
155
|
+
color: ke.value[a],
|
|
155
156
|
height: t / y.value
|
|
156
|
-
}),
|
|
157
|
+
}), a += 1;
|
|
157
158
|
return s;
|
|
158
159
|
}), k = p(!1);
|
|
159
|
-
function
|
|
160
|
+
function se(s) {
|
|
160
161
|
k.value = s, z.value += 1;
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
const F = p(!1);
|
|
164
|
+
function E() {
|
|
165
|
+
F.value = !F.value;
|
|
165
166
|
}
|
|
166
|
-
|
|
167
|
+
async function be({ scale: s = 2 } = {}) {
|
|
168
|
+
if (!C.value) return;
|
|
169
|
+
const { imageUri: a, base64: t } = await Re({ domElement: C.value, base64: !0, img: !0, scale: s });
|
|
170
|
+
return { imageUri: a, base64: t };
|
|
171
|
+
}
|
|
172
|
+
return ne({
|
|
173
|
+
getImage: be,
|
|
167
174
|
generatePdf: Q,
|
|
168
175
|
generateImage: Z,
|
|
169
|
-
toggleAnnotator:
|
|
170
|
-
|
|
176
|
+
toggleAnnotator: E,
|
|
177
|
+
toggleFullscreen: se
|
|
178
|
+
}), (s, a) => (l(), u("div", {
|
|
171
179
|
ref_key: "thermoChart",
|
|
172
|
-
ref:
|
|
173
|
-
class:
|
|
174
|
-
style:
|
|
180
|
+
ref: C,
|
|
181
|
+
class: I(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
182
|
+
style: oe(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
175
183
|
id: `thermometer__${m.value}`,
|
|
176
|
-
onMouseenter:
|
|
177
|
-
onMouseleave:
|
|
184
|
+
onMouseenter: a[0] || (a[0] = () => i(R)(!0)),
|
|
185
|
+
onMouseleave: a[1] || (a[1] = () => i(R)(!1))
|
|
178
186
|
}, [
|
|
179
|
-
e.value.userOptions.buttons.annotator ? (l(),
|
|
187
|
+
e.value.userOptions.buttons.annotator ? (l(), A(i(ie), {
|
|
180
188
|
key: 0,
|
|
181
189
|
svgRef: i(H),
|
|
182
190
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
183
191
|
color: e.value.style.chart.color,
|
|
184
|
-
active:
|
|
185
|
-
onClose:
|
|
192
|
+
active: F.value,
|
|
193
|
+
onClose: E
|
|
186
194
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
187
|
-
|
|
188
|
-
e.value.style.title.text ? (l(), u("div",
|
|
189
|
-
(l(),
|
|
195
|
+
ve.value ? (l(), u("div", Xe, null, 512)) : c("", !0),
|
|
196
|
+
e.value.style.title.text ? (l(), u("div", Je, [
|
|
197
|
+
(l(), A(Be, {
|
|
190
198
|
key: `title_${B.value}`,
|
|
191
199
|
config: {
|
|
192
200
|
title: {
|
|
@@ -200,7 +208,7 @@ const Re = ["id"], De = {
|
|
|
200
208
|
}
|
|
201
209
|
}, null, 8, ["config"]))
|
|
202
210
|
])) : c("", !0),
|
|
203
|
-
e.value.userOptions.show && N.value && (i(D) || i(
|
|
211
|
+
e.value.userOptions.show && N.value && (i(D) || i(T)) ? (l(), A(i(he), {
|
|
204
212
|
ref: "details",
|
|
205
213
|
key: `user_options_${z.value}`,
|
|
206
214
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -214,24 +222,24 @@ const Re = ["id"], De = {
|
|
|
214
222
|
hasXls: !1,
|
|
215
223
|
isFullscreen: k.value,
|
|
216
224
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
217
|
-
chartElement:
|
|
225
|
+
chartElement: C.value,
|
|
218
226
|
position: e.value.userOptions.position,
|
|
219
227
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
220
|
-
isAnnotation:
|
|
228
|
+
isAnnotation: F.value,
|
|
221
229
|
callbacks: e.value.userOptions.callbacks,
|
|
222
230
|
printScale: e.value.userOptions.print.scale,
|
|
223
|
-
onToggleFullscreen:
|
|
231
|
+
onToggleFullscreen: se,
|
|
224
232
|
onGeneratePdf: i(Q),
|
|
225
233
|
onGenerateImage: i(Z),
|
|
226
|
-
onToggleAnnotator:
|
|
227
|
-
style:
|
|
228
|
-
visibility: i(D) ? i(
|
|
234
|
+
onToggleAnnotator: E,
|
|
235
|
+
style: oe({
|
|
236
|
+
visibility: i(D) ? i(T) ? "visible" : "hidden" : "visible"
|
|
229
237
|
})
|
|
230
|
-
},
|
|
238
|
+
}, Oe({ _: 2 }, [
|
|
231
239
|
s.$slots.menuIcon ? {
|
|
232
240
|
name: "menuIcon",
|
|
233
241
|
fn: x(({ isOpen: t, color: n }) => [
|
|
234
|
-
f(s.$slots, "menuIcon",
|
|
242
|
+
f(s.$slots, "menuIcon", S(M({ isOpen: t, color: n })), void 0, !0)
|
|
235
243
|
]),
|
|
236
244
|
key: "0"
|
|
237
245
|
} : void 0,
|
|
@@ -252,14 +260,14 @@ const Re = ["id"], De = {
|
|
|
252
260
|
s.$slots.optionFullscreen ? {
|
|
253
261
|
name: "optionFullscreen",
|
|
254
262
|
fn: x(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
255
|
-
f(s.$slots, "optionFullscreen",
|
|
263
|
+
f(s.$slots, "optionFullscreen", S(M({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
256
264
|
]),
|
|
257
265
|
key: "3"
|
|
258
266
|
} : void 0,
|
|
259
267
|
s.$slots.optionAnnotator ? {
|
|
260
268
|
name: "optionAnnotator",
|
|
261
269
|
fn: x(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
262
|
-
f(s.$slots, "optionAnnotator",
|
|
270
|
+
f(s.$slots, "optionAnnotator", S(M({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
263
271
|
]),
|
|
264
272
|
key: "4"
|
|
265
273
|
} : void 0
|
|
@@ -268,13 +276,13 @@ const Re = ["id"], De = {
|
|
|
268
276
|
key: 4,
|
|
269
277
|
ref_key: "svgRef",
|
|
270
278
|
ref: H,
|
|
271
|
-
xmlns: i(
|
|
272
|
-
class:
|
|
279
|
+
xmlns: i(qe),
|
|
280
|
+
class: I({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
|
|
273
281
|
width: "100%",
|
|
274
282
|
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
275
283
|
style: "background:transparent"
|
|
276
284
|
}, [
|
|
277
|
-
|
|
285
|
+
Ie(i(ue)),
|
|
278
286
|
s.$slots["chart-background"] ? (l(), u("foreignObject", {
|
|
279
287
|
key: 0,
|
|
280
288
|
x: 0,
|
|
@@ -286,9 +294,9 @@ const Re = ["id"], De = {
|
|
|
286
294
|
}
|
|
287
295
|
}, [
|
|
288
296
|
f(s.$slots, "chart-background", {}, void 0, !0)
|
|
289
|
-
], 8,
|
|
297
|
+
], 8, Qe)) : c("", !0),
|
|
290
298
|
v("defs", null, [
|
|
291
|
-
v("clipPath",
|
|
299
|
+
v("clipPath", Ze, [
|
|
292
300
|
v("rect", {
|
|
293
301
|
x: "0",
|
|
294
302
|
y: "0",
|
|
@@ -297,9 +305,9 @@ const Re = ["id"], De = {
|
|
|
297
305
|
rx: "0.5",
|
|
298
306
|
ry: "0.07",
|
|
299
307
|
fill: e.value.style.chart.backgroundColor
|
|
300
|
-
}, null, 8,
|
|
308
|
+
}, null, 8, et)
|
|
301
309
|
]),
|
|
302
|
-
(l(!0), u(
|
|
310
|
+
(l(!0), u(U, null, ae(te.value, (t, n) => (l(), u("linearGradient", {
|
|
303
311
|
id: `vueUiThermometerGradient_${n}_${m.value}`,
|
|
304
312
|
x1: "0%",
|
|
305
313
|
y1: "0%",
|
|
@@ -309,26 +317,26 @@ const Re = ["id"], De = {
|
|
|
309
317
|
v("stop", {
|
|
310
318
|
offset: "0%",
|
|
311
319
|
"stop-color": t.color
|
|
312
|
-
}, null, 8,
|
|
320
|
+
}, null, 8, st),
|
|
313
321
|
v("stop", {
|
|
314
322
|
offset: "50%",
|
|
315
|
-
"stop-color": i(
|
|
316
|
-
}, null, 8,
|
|
323
|
+
"stop-color": i(Le)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
|
|
324
|
+
}, null, 8, ot),
|
|
317
325
|
v("stop", {
|
|
318
326
|
offset: "100%",
|
|
319
327
|
"stop-color": t.color
|
|
320
|
-
}, null, 8,
|
|
321
|
-
], 8,
|
|
328
|
+
}, null, 8, at)
|
|
329
|
+
], 8, tt))), 256))
|
|
322
330
|
]),
|
|
323
|
-
v("g",
|
|
331
|
+
v("g", lt, [
|
|
324
332
|
v("rect", {
|
|
325
333
|
x: o.value.left,
|
|
326
334
|
y: o.value.top,
|
|
327
335
|
height: o.value.height - h.value.top - h.value.bottom,
|
|
328
336
|
width: o.value.width - h.value.left - h.value.right,
|
|
329
337
|
fill: "#FFFFFF"
|
|
330
|
-
}, null, 8,
|
|
331
|
-
(l(!0), u(
|
|
338
|
+
}, null, 8, rt),
|
|
339
|
+
(l(!0), u(U, null, ae(te.value, (t, n) => (l(), u("g", {
|
|
332
340
|
key: `graduation_${n}`
|
|
333
341
|
}, [
|
|
334
342
|
v("rect", {
|
|
@@ -338,7 +346,7 @@ const Re = ["id"], De = {
|
|
|
338
346
|
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
339
347
|
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
|
|
340
348
|
"shape-rendering": "crispEdges"
|
|
341
|
-
}, null, 8,
|
|
349
|
+
}, null, 8, nt),
|
|
342
350
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
343
351
|
key: 0,
|
|
344
352
|
x1: t.x,
|
|
@@ -348,8 +356,8 @@ const Re = ["id"], De = {
|
|
|
348
356
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
349
357
|
stroke: e.value.style.chart.graduations.stroke,
|
|
350
358
|
"stroke-linecap": "round"
|
|
351
|
-
}, null, 8,
|
|
352
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(
|
|
359
|
+
}, null, 8, ut)) : c("", !0),
|
|
360
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), u(U, { key: 1 }, [
|
|
353
361
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
354
362
|
key: 0,
|
|
355
363
|
x1: t.x,
|
|
@@ -359,7 +367,7 @@ const Re = ["id"], De = {
|
|
|
359
367
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
360
368
|
stroke: e.value.style.chart.graduations.stroke,
|
|
361
369
|
"stroke-linecap": "round"
|
|
362
|
-
}, null, 8,
|
|
370
|
+
}, null, 8, it)) : c("", !0),
|
|
363
371
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
364
372
|
key: 1,
|
|
365
373
|
x1: t.x,
|
|
@@ -369,7 +377,7 @@ const Re = ["id"], De = {
|
|
|
369
377
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
370
378
|
stroke: e.value.style.chart.graduations.stroke,
|
|
371
379
|
"stroke-linecap": "round"
|
|
372
|
-
}, null, 8,
|
|
380
|
+
}, null, 8, ct)) : c("", !0),
|
|
373
381
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
374
382
|
key: 2,
|
|
375
383
|
x1: t.x,
|
|
@@ -379,7 +387,7 @@ const Re = ["id"], De = {
|
|
|
379
387
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
380
388
|
stroke: e.value.style.chart.graduations.stroke,
|
|
381
389
|
"stroke-linecap": "round"
|
|
382
|
-
}, null, 8,
|
|
390
|
+
}, null, 8, ht)) : c("", !0)
|
|
383
391
|
], 64)) : c("", !0),
|
|
384
392
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
385
393
|
key: 2,
|
|
@@ -390,8 +398,8 @@ const Re = ["id"], De = {
|
|
|
390
398
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
391
399
|
stroke: e.value.style.chart.graduations.stroke,
|
|
392
400
|
"stroke-linecap": "round"
|
|
393
|
-
}, null, 8,
|
|
394
|
-
e.value.style.chart.graduations.showIntermediate ? (l(), u(
|
|
401
|
+
}, null, 8, dt)) : c("", !0),
|
|
402
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), u(U, { key: 3 }, [
|
|
395
403
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
396
404
|
key: 0,
|
|
397
405
|
x1: o.value.right,
|
|
@@ -401,7 +409,7 @@ const Re = ["id"], De = {
|
|
|
401
409
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
402
410
|
stroke: e.value.style.chart.graduations.stroke,
|
|
403
411
|
"stroke-linecap": "round"
|
|
404
|
-
}, null, 8,
|
|
412
|
+
}, null, 8, vt)) : c("", !0),
|
|
405
413
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
406
414
|
key: 1,
|
|
407
415
|
x1: o.value.right,
|
|
@@ -411,7 +419,7 @@ const Re = ["id"], De = {
|
|
|
411
419
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
412
420
|
stroke: e.value.style.chart.graduations.stroke,
|
|
413
421
|
"stroke-linecap": "round"
|
|
414
|
-
}, null, 8,
|
|
422
|
+
}, null, 8, yt)) : c("", !0),
|
|
415
423
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
416
424
|
key: 2,
|
|
417
425
|
x1: o.value.right,
|
|
@@ -421,46 +429,46 @@ const Re = ["id"], De = {
|
|
|
421
429
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
422
430
|
stroke: e.value.style.chart.graduations.stroke,
|
|
423
431
|
"stroke-linecap": "round"
|
|
424
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, ft)) : c("", !0)
|
|
425
433
|
], 64)) : c("", !0)
|
|
426
434
|
]))), 128)),
|
|
427
435
|
v("rect", {
|
|
428
|
-
class:
|
|
436
|
+
class: I({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
429
437
|
x: o.value.left,
|
|
430
438
|
y: o.value.top,
|
|
431
|
-
height:
|
|
439
|
+
height: L.value,
|
|
432
440
|
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
433
441
|
fill: "#FFFFFF66"
|
|
434
|
-
}, null, 10,
|
|
442
|
+
}, null, 10, gt)
|
|
435
443
|
]),
|
|
436
444
|
v("text", {
|
|
437
|
-
class:
|
|
438
|
-
y:
|
|
445
|
+
class: I({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
|
|
446
|
+
y: L.value + o.value.top + e.value.style.chart.label.fontSize / 3,
|
|
439
447
|
x: o.value.left - 10,
|
|
440
448
|
"text-anchor": "end",
|
|
441
449
|
fill: e.value.style.chart.label.color,
|
|
442
450
|
"font-size": e.value.style.chart.label.fontSize,
|
|
443
451
|
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
444
|
-
},
|
|
452
|
+
}, Ae(i(Ee)(
|
|
445
453
|
e.value.style.chart.label.formatter,
|
|
446
454
|
_.dataset.value,
|
|
447
|
-
i(
|
|
455
|
+
i(Ge)({
|
|
448
456
|
p: e.value.style.chart.label.prefix,
|
|
449
457
|
v: _.dataset.value,
|
|
450
458
|
s: e.value.style.chart.label.suffix,
|
|
451
459
|
r: e.value.style.chart.label.rounding
|
|
452
460
|
}),
|
|
453
461
|
{ datapoint: _.dataset }
|
|
454
|
-
)), 11,
|
|
455
|
-
f(s.$slots, "svg", { svg:
|
|
456
|
-
], 10,
|
|
457
|
-
s.$slots.watermark ? (l(), u("div",
|
|
458
|
-
f(s.$slots, "watermark",
|
|
462
|
+
)), 11, pt),
|
|
463
|
+
f(s.$slots, "svg", { svg: fe.value }, void 0, !0)
|
|
464
|
+
], 10, Ke)) : c("", !0),
|
|
465
|
+
s.$slots.watermark ? (l(), u("div", mt, [
|
|
466
|
+
f(s.$slots, "watermark", S(M({ isPrinting: i(J) || i(K) })), void 0, !0)
|
|
459
467
|
])) : c("", !0),
|
|
460
|
-
s.$slots.source ? (l(), u("div",
|
|
468
|
+
s.$slots.source ? (l(), u("div", kt, [
|
|
461
469
|
f(s.$slots, "source", {}, void 0, !0)
|
|
462
470
|
], 512)) : c("", !0),
|
|
463
|
-
N.value ? c("", !0) : (l(),
|
|
471
|
+
N.value ? c("", !0) : (l(), A(i(ce), {
|
|
464
472
|
key: 7,
|
|
465
473
|
config: {
|
|
466
474
|
type: "thermometer",
|
|
@@ -472,9 +480,9 @@ const Re = ["id"], De = {
|
|
|
472
480
|
}
|
|
473
481
|
}
|
|
474
482
|
}, null, 8, ["config"]))
|
|
475
|
-
], 46,
|
|
483
|
+
], 46, He));
|
|
476
484
|
}
|
|
477
|
-
},
|
|
485
|
+
}, At = /* @__PURE__ */ De(bt, [["__scopeId", "data-v-7395d942"]]);
|
|
478
486
|
export {
|
|
479
|
-
|
|
487
|
+
At as default
|
|
480
488
|
};
|