vue-data-ui 3.25.5 → 3.25.6
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/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.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-bump.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-dag.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-geo.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-hill.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-label.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-stackline.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/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
2
|
import { Lt as t, Pt as n, S as r, Ut as i, X as a, Yt as ee, Zt as o, b as s, ht as te, i as ne, nt as re, q as ie, t as ae, w as oe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as le } from "./useConfig-
|
|
4
|
+
import { t as le } from "./useConfig-CIQZ6_r7.js";
|
|
5
5
|
import { t as ue } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as de, t as fe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
7
|
import { t as c } from "./useNestedProp-Chvyfpl-.js";
|
|
@@ -140,22 +140,22 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
140
140
|
emits: ["copyAlt"],
|
|
141
141
|
setup(e, { expose: _e, emit: Pe }) {
|
|
142
142
|
Me((e) => ({
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
v48e818f7: Mt.value,
|
|
144
|
+
v7e86e312: jt.value,
|
|
145
|
+
v7e395524: At.value
|
|
146
146
|
}));
|
|
147
|
-
let T = h(() => import("./PackageVersion-
|
|
147
|
+
let T = h(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), at = h(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), ot = h(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), { vue_ui_thermometer: st } = le(), { isThemeValid: ct, warnInvalidTheme: lt } = pe(), ut = Ce(), E = e, dt = Pe, D = b(ie()), O = b(null), ft = b(0), pt = b(0), mt = b(null), ht = b(null), k = b(null), A = b(null), gt = u(() => !!E.dataset && Object.keys(E.dataset).length);
|
|
148
148
|
ke(() => {
|
|
149
149
|
xt();
|
|
150
150
|
});
|
|
151
|
-
let j = b(
|
|
151
|
+
let j = b(V()), M = u(() => j.value.userOptions), N = u(() => j.value.style.chart.graduations), P = u(() => j.value.style.chart);
|
|
152
152
|
se({
|
|
153
153
|
config: () => j.value,
|
|
154
154
|
dataset: () => E.dataset,
|
|
155
155
|
component: "VueUiThermometer",
|
|
156
156
|
rules: [ce.noHint]
|
|
157
157
|
});
|
|
158
|
-
let _t = b(
|
|
158
|
+
let _t = b(P.value.thermometer.width), F = b(P.value.height), I = b(P.value.width), vt = u(() => j.value.userOptions.useCursorPointer), yt = u(() => o({
|
|
159
159
|
defaultConfig: {
|
|
160
160
|
userOptions: { show: !1 },
|
|
161
161
|
style: { chart: {
|
|
@@ -165,10 +165,10 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
165
165
|
} }
|
|
166
166
|
},
|
|
167
167
|
userConfig: j.value.skeletonConfig ?? {}
|
|
168
|
-
})), { loading:
|
|
168
|
+
})), { loading: L, FINAL_DATASET: R } = de({
|
|
169
169
|
...je(E),
|
|
170
170
|
FINAL_CONFIG: j,
|
|
171
|
-
prepareConfig:
|
|
171
|
+
prepareConfig: V,
|
|
172
172
|
skeletonDataset: E.config?.skeletonDataset ?? {
|
|
173
173
|
value: 0,
|
|
174
174
|
from: -100,
|
|
@@ -211,15 +211,15 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
211
211
|
source: ht.value
|
|
212
212
|
});
|
|
213
213
|
requestAnimationFrame(() => {
|
|
214
|
-
|
|
214
|
+
F.value = Math.max(.1, t - 12), I.value = e, Rt();
|
|
215
215
|
});
|
|
216
216
|
});
|
|
217
217
|
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = O.value, k.value.observe(A.value);
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
Rt();
|
|
220
220
|
}
|
|
221
|
-
let { userOptionsVisible:
|
|
222
|
-
function
|
|
221
|
+
let { userOptionsVisible: z, setUserOptionsVisibility: St, keepUserOptionState: Ct } = xe({ config: j.value }), { svgRef: B } = Se({ config: j.value.style.title });
|
|
222
|
+
function V() {
|
|
223
223
|
let e = c({
|
|
224
224
|
userConfig: E.config,
|
|
225
225
|
defaultConfig: st
|
|
@@ -239,17 +239,17 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
Ne(() => E.config, (e) => {
|
|
242
|
-
j.value =
|
|
242
|
+
j.value = V(), z.value = !j.value.userOptions.showOnChartHover, _t.value = P.value.thermometer.width, F.value = P.value.height, I.value = P.value.width, xt(), pt.value += 1;
|
|
243
243
|
}, { deep: !0 });
|
|
244
|
-
let { isPrinting:
|
|
244
|
+
let { isPrinting: H, isImaging: U, generatePdf: wt, generateImage: Tt } = ue({
|
|
245
245
|
elementId: `thermometer__${D.value}`,
|
|
246
246
|
fileName: j.value.style.title.text || "vue-ui-thermometer",
|
|
247
247
|
options: j.value.userOptions.print
|
|
248
|
-
}), Et = u(() => j.value.userOptions.show && !j.value.style.title.text),
|
|
249
|
-
function
|
|
248
|
+
}), Et = u(() => j.value.userOptions.show && !j.value.style.title.text), W = u(() => oe(j.value.customPalette)), G = u(() => R.value.steps || 10);
|
|
249
|
+
function K(e, t, n) {
|
|
250
250
|
let r = [], i = Dt(e), a = Dt(t);
|
|
251
251
|
for (let e = 0; e < n; e += 1) {
|
|
252
|
-
let t =
|
|
252
|
+
let t = q(i.red, a.red, e, n), ee = q(i.green, a.green, e, n), o = q(i.blue, a.blue, e, n), s = `#${Ot(t)}${Ot(ee)}${Ot(o)}`;
|
|
253
253
|
r.push(s);
|
|
254
254
|
}
|
|
255
255
|
return r;
|
|
@@ -262,54 +262,54 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
262
262
|
blue: parseInt(t.slice(4, 6), 16)
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function q(e, t, n, r) {
|
|
266
266
|
return Math.round(e + (t - e) * n / r);
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function Ot(e) {
|
|
269
269
|
return e.toString(16).padStart(2, "0");
|
|
270
270
|
}
|
|
271
|
-
let
|
|
272
|
-
let e = Math.max(.1,
|
|
271
|
+
let J = u(() => {
|
|
272
|
+
let e = Math.max(.1, I.value), t = Math.max(.1, F.value), n = P.value.padding;
|
|
273
273
|
return {
|
|
274
274
|
width: e,
|
|
275
|
-
left: e / 2 -
|
|
276
|
-
right: e / 2 +
|
|
275
|
+
left: e / 2 - P.value.thermometer.width / 2,
|
|
276
|
+
right: e / 2 + P.value.thermometer.width / 2,
|
|
277
277
|
top: n.top,
|
|
278
278
|
bottom: t - n.bottom - n.top,
|
|
279
279
|
height: t,
|
|
280
280
|
thermoHeight: t - n.top - n.bottom,
|
|
281
|
-
thermoWidth:
|
|
281
|
+
thermoWidth: P.value.thermometer.width
|
|
282
282
|
};
|
|
283
|
-
}),
|
|
284
|
-
let e = s(
|
|
285
|
-
return n = s(
|
|
286
|
-
}),
|
|
287
|
-
if (
|
|
288
|
-
if (!
|
|
289
|
-
if (!
|
|
290
|
-
} else return
|
|
291
|
-
return
|
|
292
|
-
}),
|
|
293
|
-
let e = [], t = 0, n =
|
|
294
|
-
for (let r = 0; r < n - 1; r += n /
|
|
295
|
-
x:
|
|
296
|
-
y:
|
|
297
|
-
qYLess:
|
|
298
|
-
halfY:
|
|
299
|
-
qYMore:
|
|
300
|
-
color:
|
|
301
|
-
height: Math.max(.1, n /
|
|
283
|
+
}), kt = u(() => J.value), Y = u(() => {
|
|
284
|
+
let e = s(R.value.from) < 0 ? Math.abs(s(R.value.from)) : s(R.value.from), t = s(R.value.to) < 0 ? Math.abs(s(R.value.to)) : s(R.value.to), n = 0;
|
|
285
|
+
return n = s(R.value.to) > 0 ? e + t : e > t ? e - t : t - e, (1 - (Math.abs(s(R.value.from)) + s(R.value.value)) / n) * J.value.thermoHeight;
|
|
286
|
+
}), At = u(() => `${Y.value}px`), jt = u(() => `${J.value.thermoHeight}px`), Mt = u(() => ut.value ? "0ms" : `${P.value.animation.speedMs}ms`), Nt = u(() => {
|
|
287
|
+
if (R.value.colors) {
|
|
288
|
+
if (!R.value.colors.from) return K(W.value[0] || t[0], r(R.value.colors.to), G.value || 10);
|
|
289
|
+
if (!R.value.colors.to) return K(r(R.value.colors.from), W.value[1] || t[1], G.value || 10);
|
|
290
|
+
} else return K(W.value[1] || t[1], W.value[0] || t[0], G.value || 10);
|
|
291
|
+
return K(r(R.value.colors.from), r(R.value.colors.to), G.value || 10);
|
|
292
|
+
}), Pt = u(() => {
|
|
293
|
+
let e = [], t = 0, n = J.value.thermoHeight;
|
|
294
|
+
for (let r = 0; r < n - 1; r += n / G.value) e.push({
|
|
295
|
+
x: J.value.left,
|
|
296
|
+
y: J.value.top + r,
|
|
297
|
+
qYLess: J.value.top + r + n / G.value / 4,
|
|
298
|
+
halfY: J.value.top + r + n / G.value / 2,
|
|
299
|
+
qYMore: J.value.top + r + n / G.value / 4 * 3,
|
|
300
|
+
color: Nt.value[t],
|
|
301
|
+
height: Math.max(.1, n / G.value)
|
|
302
302
|
}), t += 1;
|
|
303
303
|
return e;
|
|
304
|
-
}),
|
|
305
|
-
function
|
|
306
|
-
|
|
304
|
+
}), X = b(!1);
|
|
305
|
+
function Ft(e) {
|
|
306
|
+
X.value = e, ft.value += 1;
|
|
307
307
|
}
|
|
308
|
-
let
|
|
309
|
-
function
|
|
310
|
-
|
|
308
|
+
let Z = b(!1);
|
|
309
|
+
function It() {
|
|
310
|
+
Z.value = !Z.value;
|
|
311
311
|
}
|
|
312
|
-
async function
|
|
312
|
+
async function Lt({ scale: e = 2 } = {}) {
|
|
313
313
|
if (!O.value) return;
|
|
314
314
|
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
315
315
|
domElement: O.value,
|
|
@@ -326,73 +326,73 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
326
326
|
aspectRatio: r
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
let
|
|
330
|
-
get: () =>
|
|
329
|
+
let Q = u({
|
|
330
|
+
get: () => P.value.label.fontSize,
|
|
331
331
|
set: (e) => e
|
|
332
|
-
}), { autoSizeLabels:
|
|
333
|
-
svgRef:
|
|
334
|
-
fontSize:
|
|
335
|
-
minFontSize:
|
|
336
|
-
sizeRef:
|
|
332
|
+
}), { autoSizeLabels: Rt } = we({
|
|
333
|
+
svgRef: B,
|
|
334
|
+
fontSize: P.value.label.fontSize,
|
|
335
|
+
minFontSize: P.value.label.minFontSize,
|
|
336
|
+
sizeRef: Q,
|
|
337
337
|
labelClass: ".vue-ui-thermometer-label"
|
|
338
|
-
}),
|
|
339
|
-
svg:
|
|
340
|
-
title:
|
|
338
|
+
}), zt = u(() => P.value.backgroundColor), Bt = u(() => j.value.style.title), { isCallbackImaging: Vt, isCallbackSvg: Ht, generateSvg: Ut, onGenerateImage: Wt } = me({
|
|
339
|
+
svg: B,
|
|
340
|
+
title: Bt,
|
|
341
341
|
legend: null,
|
|
342
342
|
legendItems: null,
|
|
343
|
-
backgroundColor:
|
|
343
|
+
backgroundColor: zt,
|
|
344
344
|
getSvgCallback: () => j.value.userOptions.callbacks.svg,
|
|
345
345
|
generateImage: Tt
|
|
346
346
|
});
|
|
347
|
-
async function
|
|
347
|
+
async function Gt() {
|
|
348
348
|
if (dt("copyAlt", {
|
|
349
349
|
config: j.value,
|
|
350
|
-
dataset:
|
|
350
|
+
dataset: R.value
|
|
351
351
|
}), !j.value.userOptions.callbacks.altCopy) {
|
|
352
352
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
355
|
await Promise.resolve(j.value.userOptions.callbacks.altCopy({
|
|
356
356
|
config: j.value,
|
|
357
|
-
dataset:
|
|
357
|
+
dataset: R.value
|
|
358
358
|
}));
|
|
359
359
|
}
|
|
360
|
-
let
|
|
361
|
-
p:
|
|
362
|
-
v:
|
|
363
|
-
s:
|
|
364
|
-
r:
|
|
365
|
-
}), { datapoint:
|
|
366
|
-
if (
|
|
367
|
-
let e = s(
|
|
360
|
+
let Kt = u(() => `${D.value}-title`), qt = u(() => `${D.value}-desc`), $ = u(() => ne(P.value.label.formatter, R.value.value, a({
|
|
361
|
+
p: P.value.label.prefix,
|
|
362
|
+
v: R.value.value,
|
|
363
|
+
s: P.value.label.suffix,
|
|
364
|
+
r: P.value.label.rounding
|
|
365
|
+
}), { datapoint: R.value })), Jt = u(() => j.value.style.title.text || ""), Yt = u(() => {
|
|
366
|
+
if (L.value) return "...";
|
|
367
|
+
let e = s(R.value.from), t = s(R.value.to);
|
|
368
368
|
return `Thermometer value: ${$.value}. Range: ${e} to ${t}.`;
|
|
369
369
|
});
|
|
370
370
|
return _e({
|
|
371
|
-
getImage:
|
|
371
|
+
getImage: Lt,
|
|
372
372
|
generatePdf: wt,
|
|
373
373
|
generateImage: Tt,
|
|
374
|
-
generateSvg:
|
|
375
|
-
toggleAnnotator:
|
|
376
|
-
toggleFullscreen:
|
|
377
|
-
copyAlt:
|
|
374
|
+
generateSvg: Ut,
|
|
375
|
+
toggleAnnotator: It,
|
|
376
|
+
toggleFullscreen: Ft,
|
|
377
|
+
copyAlt: Gt
|
|
378
378
|
}), (e, t) => (y(), p("div", {
|
|
379
379
|
ref_key: "thermoChart",
|
|
380
380
|
ref: O,
|
|
381
|
-
class: _(`vue-data-ui-component vue-ui-thermometer ${
|
|
382
|
-
style: Oe(`width:100%;background:${
|
|
381
|
+
class: _(`vue-data-ui-component vue-ui-thermometer ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
382
|
+
style: Oe(`width:100%;background:${P.value.backgroundColor};color:${P.value.color};font-family:${j.value.style.fontFamily}`),
|
|
383
383
|
id: `thermometer__${D.value}`,
|
|
384
384
|
onMouseenter: t[0] ||= () => C(St)(!0),
|
|
385
385
|
onMouseleave: t[1] ||= () => C(St)(!1)
|
|
386
386
|
}, [
|
|
387
|
-
|
|
387
|
+
M.value.buttons.annotator ? (y(), d(C(at), {
|
|
388
388
|
key: 0,
|
|
389
|
-
svgRef: C(
|
|
390
|
-
backgroundColor:
|
|
391
|
-
color:
|
|
392
|
-
active:
|
|
389
|
+
svgRef: C(B),
|
|
390
|
+
backgroundColor: P.value.backgroundColor,
|
|
391
|
+
color: P.value.color,
|
|
392
|
+
active: Z.value,
|
|
393
393
|
isCursorPointer: vt.value,
|
|
394
|
-
palette:
|
|
395
|
-
onClose:
|
|
394
|
+
palette: M.value.annotatorPalette,
|
|
395
|
+
onClose: It
|
|
396
396
|
}, {
|
|
397
397
|
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
398
398
|
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
@@ -428,36 +428,36 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
431
|
-
|
|
431
|
+
M.value.show && gt.value && (C(Ct) || C(z)) ? (y(), d(C(ot), {
|
|
432
432
|
ref: "details",
|
|
433
433
|
key: `user_options_${ft.value}`,
|
|
434
|
-
backgroundColor:
|
|
435
|
-
color:
|
|
436
|
-
isImaging: C(
|
|
437
|
-
isPrinting: C(
|
|
434
|
+
backgroundColor: P.value.backgroundColor,
|
|
435
|
+
color: P.value.color,
|
|
436
|
+
isImaging: C(U),
|
|
437
|
+
isPrinting: C(H),
|
|
438
438
|
uid: D.value,
|
|
439
|
-
hasPdf:
|
|
440
|
-
hasImg:
|
|
441
|
-
hasSvg:
|
|
442
|
-
hasFullscreen:
|
|
443
|
-
hasAltCopy:
|
|
439
|
+
hasPdf: M.value.buttons.pdf,
|
|
440
|
+
hasImg: M.value.buttons.img,
|
|
441
|
+
hasSvg: M.value.buttons.svg,
|
|
442
|
+
hasFullscreen: M.value.buttons.fullscreen,
|
|
443
|
+
hasAltCopy: M.value.buttons.altCopy,
|
|
444
444
|
hasXls: !1,
|
|
445
|
-
isFullscreen:
|
|
446
|
-
titles: { ...
|
|
445
|
+
isFullscreen: X.value,
|
|
446
|
+
titles: { ...M.value.buttonTitles },
|
|
447
447
|
chartElement: O.value,
|
|
448
|
-
position:
|
|
449
|
-
hasAnnotator:
|
|
450
|
-
isAnnotation:
|
|
451
|
-
callbacks:
|
|
452
|
-
printScale:
|
|
448
|
+
position: M.value.position,
|
|
449
|
+
hasAnnotator: M.value.buttons.annotator,
|
|
450
|
+
isAnnotation: Z.value,
|
|
451
|
+
callbacks: M.value.callbacks,
|
|
452
|
+
printScale: M.value.print.scale,
|
|
453
453
|
isCursorPointer: vt.value,
|
|
454
|
-
onToggleFullscreen:
|
|
454
|
+
onToggleFullscreen: Ft,
|
|
455
455
|
onGeneratePdf: C(wt),
|
|
456
|
-
onGenerateImage: C(
|
|
457
|
-
onGenerateSvg: C(
|
|
458
|
-
onToggleAnnotator:
|
|
459
|
-
onCopyAlt:
|
|
460
|
-
style: Oe({ visibility: C(Ct) ? C(
|
|
456
|
+
onGenerateImage: C(Wt),
|
|
457
|
+
onGenerateSvg: C(Ut),
|
|
458
|
+
onToggleAnnotator: It,
|
|
459
|
+
onCopyAlt: Gt,
|
|
460
|
+
style: Oe({ visibility: C(Ct) ? C(z) ? "visible" : "hidden" : "visible" })
|
|
461
461
|
}, Ee({ _: 2 }, [
|
|
462
462
|
e.$slots.menuIcon ? {
|
|
463
463
|
name: "menuIcon",
|
|
@@ -540,40 +540,40 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
540
540
|
])) : f("", !0),
|
|
541
541
|
(y(), p("svg", {
|
|
542
542
|
ref_key: "svgRef",
|
|
543
|
-
ref:
|
|
543
|
+
ref: B,
|
|
544
544
|
xmlns: C(ae),
|
|
545
545
|
class: _({
|
|
546
|
-
"vue-data-ui-fullscreen--on":
|
|
547
|
-
"vue-data-ui-fulscreen--off": !
|
|
546
|
+
"vue-data-ui-fullscreen--on": X.value,
|
|
547
|
+
"vue-data-ui-fulscreen--off": !X.value
|
|
548
548
|
}),
|
|
549
549
|
width: "100%",
|
|
550
|
-
viewBox: `0 0 ${
|
|
550
|
+
viewBox: `0 0 ${J.value.width} ${J.value.height}`,
|
|
551
551
|
style: "background:transparent",
|
|
552
|
-
"aria-labelledby":
|
|
553
|
-
"aria-describedby":
|
|
552
|
+
"aria-labelledby": Kt.value,
|
|
553
|
+
"aria-describedby": qt.value
|
|
554
554
|
}, [
|
|
555
|
-
m("title", { id:
|
|
556
|
-
m("desc", { id:
|
|
555
|
+
m("title", { id: Kt.value }, S(Jt.value), 9, Re),
|
|
556
|
+
m("desc", { id: qt.value }, S(Yt.value), 9, ze),
|
|
557
557
|
De(C(T)),
|
|
558
558
|
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
559
559
|
key: 0,
|
|
560
560
|
x: 0,
|
|
561
561
|
y: 0,
|
|
562
|
-
width:
|
|
563
|
-
height:
|
|
562
|
+
width: J.value.width,
|
|
563
|
+
height: J.value.height,
|
|
564
564
|
style: { pointerEvents: "none" }
|
|
565
565
|
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : f("", !0),
|
|
566
566
|
m("defs", null, [m("clipPath", {
|
|
567
567
|
id: `vueUiPill-${D.value}`,
|
|
568
568
|
clipPathUnits: "userSpaceOnUse"
|
|
569
569
|
}, [m("rect", {
|
|
570
|
-
x:
|
|
571
|
-
y:
|
|
572
|
-
width:
|
|
573
|
-
height:
|
|
574
|
-
rx:
|
|
575
|
-
ry:
|
|
576
|
-
}, null, 8, He)], 8, Ve), (y(!0), p(l, null, Ae(
|
|
570
|
+
x: J.value.left,
|
|
571
|
+
y: J.value.top,
|
|
572
|
+
width: J.value.thermoWidth,
|
|
573
|
+
height: J.value.thermoHeight,
|
|
574
|
+
rx: J.value.thermoWidth / 2,
|
|
575
|
+
ry: J.value.thermoWidth / 2
|
|
576
|
+
}, null, 8, He)], 8, Ve), (y(!0), p(l, null, Ae(Pt.value, (e, t) => (y(), d(be, {
|
|
577
577
|
t: "linear",
|
|
578
578
|
id: `vueUiThermometerGradient_${t}_${D.value}`,
|
|
579
579
|
key: `t_${t}_${D.value}`,
|
|
@@ -589,7 +589,7 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
589
589
|
],
|
|
590
590
|
[
|
|
591
591
|
"50%",
|
|
592
|
-
C(i)(e.color, 100 -
|
|
592
|
+
C(i)(e.color, 100 - N.value.gradient.intensity),
|
|
593
593
|
1
|
|
594
594
|
],
|
|
595
595
|
[
|
|
@@ -601,158 +601,158 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
601
601
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
602
602
|
m("g", { "clip-path": `url(#vueUiPill-${D.value})` }, [
|
|
603
603
|
m("rect", {
|
|
604
|
-
x:
|
|
605
|
-
y:
|
|
606
|
-
height:
|
|
607
|
-
width:
|
|
604
|
+
x: J.value.left,
|
|
605
|
+
y: J.value.top,
|
|
606
|
+
height: J.value.thermoHeight,
|
|
607
|
+
width: J.value.thermoWidth,
|
|
608
608
|
fill: "#FFFFFF"
|
|
609
609
|
}, null, 8, We),
|
|
610
|
-
(y(!0), p(l, null, Ae(
|
|
610
|
+
(y(!0), p(l, null, Ae(Pt.value, (e, t) => (y(), p("g", { key: `graduation_${t}` }, [
|
|
611
611
|
m("rect", {
|
|
612
612
|
x: e.x,
|
|
613
613
|
y: e.y,
|
|
614
614
|
height: e.height,
|
|
615
|
-
width:
|
|
616
|
-
fill:
|
|
615
|
+
width: J.value.thermoWidth,
|
|
616
|
+
fill: N.value.gradient.show ? `url(#vueUiThermometerGradient_${t}_${D.value})` : e.color,
|
|
617
617
|
"shape-rendering": "crispEdges"
|
|
618
618
|
}, null, 8, Ge),
|
|
619
|
-
|
|
619
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
620
620
|
key: 0,
|
|
621
621
|
x1: e.x,
|
|
622
622
|
x2: e.x + 10,
|
|
623
623
|
y1: e.y,
|
|
624
624
|
y2: e.y,
|
|
625
|
-
"stroke-width":
|
|
626
|
-
stroke:
|
|
625
|
+
"stroke-width": N.value.strokeWidth,
|
|
626
|
+
stroke: N.value.stroke,
|
|
627
627
|
"stroke-linecap": "round"
|
|
628
628
|
}, null, 8, Ke)) : f("", !0),
|
|
629
|
-
|
|
630
|
-
|
|
629
|
+
N.value.showIntermediate ? (y(), p(l, { key: 1 }, [
|
|
630
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
631
631
|
key: 0,
|
|
632
632
|
x1: e.x,
|
|
633
633
|
x2: e.x + 5,
|
|
634
634
|
y1: e.halfY,
|
|
635
635
|
y2: e.halfY,
|
|
636
|
-
"stroke-width":
|
|
637
|
-
stroke:
|
|
636
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
637
|
+
stroke: N.value.stroke,
|
|
638
638
|
"stroke-linecap": "round"
|
|
639
639
|
}, null, 8, qe)) : f("", !0),
|
|
640
|
-
|
|
640
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
641
641
|
key: 1,
|
|
642
642
|
x1: e.x,
|
|
643
643
|
x2: e.x + 2.5,
|
|
644
644
|
y1: e.qYLess,
|
|
645
645
|
y2: e.qYLess,
|
|
646
|
-
"stroke-width":
|
|
647
|
-
stroke:
|
|
646
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
647
|
+
stroke: N.value.stroke,
|
|
648
648
|
"stroke-linecap": "round"
|
|
649
649
|
}, null, 8, Je)) : f("", !0),
|
|
650
|
-
|
|
650
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
651
651
|
key: 2,
|
|
652
652
|
x1: e.x,
|
|
653
653
|
x2: e.x + 2.5,
|
|
654
654
|
y1: e.qYMore,
|
|
655
655
|
y2: e.qYMore,
|
|
656
|
-
"stroke-width":
|
|
657
|
-
stroke:
|
|
656
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
657
|
+
stroke: N.value.stroke,
|
|
658
658
|
"stroke-linecap": "round"
|
|
659
659
|
}, null, 8, Ye)) : f("", !0)
|
|
660
660
|
], 64)) : f("", !0),
|
|
661
|
-
|
|
661
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
662
662
|
key: 2,
|
|
663
|
-
x1:
|
|
664
|
-
x2:
|
|
663
|
+
x1: J.value.right,
|
|
664
|
+
x2: J.value.right - 10,
|
|
665
665
|
y1: e.y,
|
|
666
666
|
y2: e.y,
|
|
667
|
-
"stroke-width":
|
|
668
|
-
stroke:
|
|
667
|
+
"stroke-width": N.value.strokeWidth,
|
|
668
|
+
stroke: N.value.stroke,
|
|
669
669
|
"stroke-linecap": "round"
|
|
670
670
|
}, null, 8, Xe)) : f("", !0),
|
|
671
|
-
|
|
672
|
-
|
|
671
|
+
N.value.showIntermediate ? (y(), p(l, { key: 3 }, [
|
|
672
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
673
673
|
key: 0,
|
|
674
|
-
x1:
|
|
675
|
-
x2:
|
|
674
|
+
x1: J.value.right,
|
|
675
|
+
x2: J.value.right - 5,
|
|
676
676
|
y1: e.halfY,
|
|
677
677
|
y2: e.halfY,
|
|
678
|
-
"stroke-width":
|
|
679
|
-
stroke:
|
|
678
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
679
|
+
stroke: N.value.stroke,
|
|
680
680
|
"stroke-linecap": "round"
|
|
681
681
|
}, null, 8, Ze)) : f("", !0),
|
|
682
|
-
|
|
682
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
683
683
|
key: 1,
|
|
684
|
-
x1:
|
|
685
|
-
x2:
|
|
684
|
+
x1: J.value.right,
|
|
685
|
+
x2: J.value.right - 2.5,
|
|
686
686
|
y1: e.qYLess,
|
|
687
687
|
y2: e.qYLess,
|
|
688
|
-
"stroke-width":
|
|
689
|
-
stroke:
|
|
688
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
689
|
+
stroke: N.value.stroke,
|
|
690
690
|
"stroke-linecap": "round"
|
|
691
691
|
}, null, 8, Qe)) : f("", !0),
|
|
692
|
-
|
|
692
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
693
693
|
key: 2,
|
|
694
|
-
x1:
|
|
695
|
-
x2:
|
|
694
|
+
x1: J.value.right,
|
|
695
|
+
x2: J.value.right - 2.5,
|
|
696
696
|
y1: e.qYMore,
|
|
697
697
|
y2: e.qYMore,
|
|
698
|
-
"stroke-width":
|
|
699
|
-
stroke:
|
|
698
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
699
|
+
stroke: N.value.stroke,
|
|
700
700
|
"stroke-linecap": "round"
|
|
701
701
|
}, null, 8, $e)) : f("", !0)
|
|
702
702
|
], 64)) : f("", !0)
|
|
703
703
|
]))), 128)),
|
|
704
704
|
m("rect", {
|
|
705
|
-
class: _({ "vue-ui-thermometer-temperature":
|
|
706
|
-
x:
|
|
707
|
-
y:
|
|
708
|
-
height:
|
|
709
|
-
width:
|
|
705
|
+
class: _({ "vue-ui-thermometer-temperature": P.value.animation.use }),
|
|
706
|
+
x: J.value.left,
|
|
707
|
+
y: J.value.top,
|
|
708
|
+
height: Y.value,
|
|
709
|
+
width: J.value.thermoWidth,
|
|
710
710
|
fill: "#FFFFFF66"
|
|
711
711
|
}, null, 10, et)
|
|
712
712
|
], 8, Ue),
|
|
713
|
-
|
|
713
|
+
P.value.label.show ? (y(), p("g", {
|
|
714
714
|
key: 1,
|
|
715
715
|
role: "status",
|
|
716
716
|
"aria-live": "polite",
|
|
717
|
-
"aria-label": C(
|
|
718
|
-
}, [C(
|
|
717
|
+
"aria-label": C(L) ? "Loading data" : $.value
|
|
718
|
+
}, [C(L) ? (y(), p("rect", {
|
|
719
719
|
key: 0,
|
|
720
|
-
x:
|
|
721
|
-
y:
|
|
720
|
+
x: J.value.left - 60,
|
|
721
|
+
y: Y.value + J.value.top - Q.value / 2,
|
|
722
722
|
width: 50,
|
|
723
|
-
height:
|
|
723
|
+
height: Q.value,
|
|
724
724
|
fill: "#6A6A6A40",
|
|
725
725
|
rx: "3"
|
|
726
726
|
}, null, 8, nt)) : (y(), p("text", {
|
|
727
727
|
key: 1,
|
|
728
728
|
"aria-hidden": "true",
|
|
729
729
|
class: _({
|
|
730
|
-
"vue-ui-thermometer-temperature-value":
|
|
730
|
+
"vue-ui-thermometer-temperature-value": P.value.animation.use,
|
|
731
731
|
"vue-ui-thermometer-label": !0
|
|
732
732
|
}),
|
|
733
|
-
y:
|
|
734
|
-
x:
|
|
733
|
+
y: Y.value + J.value.top + Q.value / 3,
|
|
734
|
+
x: J.value.left - 10,
|
|
735
735
|
"text-anchor": "end",
|
|
736
|
-
fill:
|
|
737
|
-
"font-size":
|
|
738
|
-
"font-weight":
|
|
736
|
+
fill: P.value.label.color,
|
|
737
|
+
"font-size": Q.value,
|
|
738
|
+
"font-weight": P.value.label.bold ? "bold" : "normal"
|
|
739
739
|
}, S($.value), 11, rt))], 8, tt)) : f("", !0),
|
|
740
740
|
x(e.$slots, "svg", { svg: {
|
|
741
|
-
...
|
|
742
|
-
isPrintingImg: C(
|
|
743
|
-
isPrintingSvg: C(
|
|
741
|
+
...kt.value,
|
|
742
|
+
isPrintingImg: C(H) || C(U) || C(Vt),
|
|
743
|
+
isPrintingSvg: C(Ht)
|
|
744
744
|
} }, void 0, !0)
|
|
745
745
|
], 10, Le)),
|
|
746
|
-
e.$slots.watermark ? (y(), p("div", it, [x(e.$slots, "watermark", v(g({ isPrinting: C(
|
|
746
|
+
e.$slots.watermark ? (y(), p("div", it, [x(e.$slots, "watermark", v(g({ isPrinting: C(H) || C(U) || C(Vt) || C(Ht) })), void 0, !0)])) : f("", !0),
|
|
747
747
|
e.$slots.source ? (y(), p("div", {
|
|
748
748
|
key: 5,
|
|
749
749
|
ref_key: "source",
|
|
750
750
|
ref: ht,
|
|
751
751
|
dir: "auto"
|
|
752
752
|
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
753
|
-
x(e.$slots, "skeleton", {}, () => [C(
|
|
753
|
+
x(e.$slots, "skeleton", {}, () => [C(L) ? (y(), d(fe, { key: 0 })) : f("", !0)], !0)
|
|
754
754
|
], 46, Fe));
|
|
755
755
|
}
|
|
756
|
-
}, [["__scopeId", "data-v-
|
|
756
|
+
}, [["__scopeId", "data-v-d16e0f9d"]]);
|
|
757
757
|
//#endregion
|
|
758
758
|
export { Pe as n, T as t };
|