vue-data-ui 3.25.4 → 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/README.md +13 -13
- 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-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
- 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-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-zoPh9a78.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 +80 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DTj71yB7.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-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-CRgbs7jR.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-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
- package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
- package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-DcgUuefk.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-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
- package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
- package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -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-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
- 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-zmbcOVEf.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-Dv7XrEzO.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-Dv_ZKKm3.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-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
- package/dist/{vue-ui-timer-CvHP4HoW.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-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-D_5FfaH-.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-CH8SpxS2.js +0 -1829
- package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
- package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
- package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
- package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
- package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
- package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
- package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
- package/dist/vue-ui-donut-DfiocufT.js +0 -2413
- package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
- package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
- package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
- package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
- package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
- package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
- package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
- package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
- package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
- package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
- package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
- package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
- package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
- package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
- package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
- package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
- package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
- package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
- package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
- package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
- package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
- package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
- package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
- package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
- package/dist/vue-ui-table-BQna1wL6.js +0 -1352
- package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
- package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
- package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
- package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
- package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
- package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
- package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
- package/dist/vue-ui-xy-canvas-B_8Mu19r.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,72 +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
|
-
|
|
394
|
+
palette: M.value.annotatorPalette,
|
|
395
|
+
onClose: It
|
|
395
396
|
}, {
|
|
396
397
|
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
397
398
|
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
@@ -405,7 +406,8 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
405
406
|
"backgroundColor",
|
|
406
407
|
"color",
|
|
407
408
|
"active",
|
|
408
|
-
"isCursorPointer"
|
|
409
|
+
"isCursorPointer",
|
|
410
|
+
"palette"
|
|
409
411
|
])) : f("", !0),
|
|
410
412
|
Et.value ? (y(), p("div", Ie, null, 512)) : f("", !0),
|
|
411
413
|
j.value.style.title.text ? (y(), p("div", {
|
|
@@ -426,36 +428,36 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
426
428
|
}
|
|
427
429
|
}
|
|
428
430
|
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
429
|
-
|
|
431
|
+
M.value.show && gt.value && (C(Ct) || C(z)) ? (y(), d(C(ot), {
|
|
430
432
|
ref: "details",
|
|
431
433
|
key: `user_options_${ft.value}`,
|
|
432
|
-
backgroundColor:
|
|
433
|
-
color:
|
|
434
|
-
isImaging: C(
|
|
435
|
-
isPrinting: C(
|
|
434
|
+
backgroundColor: P.value.backgroundColor,
|
|
435
|
+
color: P.value.color,
|
|
436
|
+
isImaging: C(U),
|
|
437
|
+
isPrinting: C(H),
|
|
436
438
|
uid: D.value,
|
|
437
|
-
hasPdf:
|
|
438
|
-
hasImg:
|
|
439
|
-
hasSvg:
|
|
440
|
-
hasFullscreen:
|
|
441
|
-
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,
|
|
442
444
|
hasXls: !1,
|
|
443
|
-
isFullscreen:
|
|
444
|
-
titles: { ...
|
|
445
|
+
isFullscreen: X.value,
|
|
446
|
+
titles: { ...M.value.buttonTitles },
|
|
445
447
|
chartElement: O.value,
|
|
446
|
-
position:
|
|
447
|
-
hasAnnotator:
|
|
448
|
-
isAnnotation:
|
|
449
|
-
callbacks:
|
|
450
|
-
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,
|
|
451
453
|
isCursorPointer: vt.value,
|
|
452
|
-
onToggleFullscreen:
|
|
454
|
+
onToggleFullscreen: Ft,
|
|
453
455
|
onGeneratePdf: C(wt),
|
|
454
|
-
onGenerateImage: C(
|
|
455
|
-
onGenerateSvg: C(
|
|
456
|
-
onToggleAnnotator:
|
|
457
|
-
onCopyAlt:
|
|
458
|
-
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" })
|
|
459
461
|
}, Ee({ _: 2 }, [
|
|
460
462
|
e.$slots.menuIcon ? {
|
|
461
463
|
name: "menuIcon",
|
|
@@ -538,40 +540,40 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
538
540
|
])) : f("", !0),
|
|
539
541
|
(y(), p("svg", {
|
|
540
542
|
ref_key: "svgRef",
|
|
541
|
-
ref:
|
|
543
|
+
ref: B,
|
|
542
544
|
xmlns: C(ae),
|
|
543
545
|
class: _({
|
|
544
|
-
"vue-data-ui-fullscreen--on":
|
|
545
|
-
"vue-data-ui-fulscreen--off": !
|
|
546
|
+
"vue-data-ui-fullscreen--on": X.value,
|
|
547
|
+
"vue-data-ui-fulscreen--off": !X.value
|
|
546
548
|
}),
|
|
547
549
|
width: "100%",
|
|
548
|
-
viewBox: `0 0 ${
|
|
550
|
+
viewBox: `0 0 ${J.value.width} ${J.value.height}`,
|
|
549
551
|
style: "background:transparent",
|
|
550
|
-
"aria-labelledby":
|
|
551
|
-
"aria-describedby":
|
|
552
|
+
"aria-labelledby": Kt.value,
|
|
553
|
+
"aria-describedby": qt.value
|
|
552
554
|
}, [
|
|
553
|
-
m("title", { id:
|
|
554
|
-
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),
|
|
555
557
|
De(C(T)),
|
|
556
558
|
e.$slots["chart-background"] ? (y(), p("foreignObject", {
|
|
557
559
|
key: 0,
|
|
558
560
|
x: 0,
|
|
559
561
|
y: 0,
|
|
560
|
-
width:
|
|
561
|
-
height:
|
|
562
|
+
width: J.value.width,
|
|
563
|
+
height: J.value.height,
|
|
562
564
|
style: { pointerEvents: "none" }
|
|
563
565
|
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : f("", !0),
|
|
564
566
|
m("defs", null, [m("clipPath", {
|
|
565
567
|
id: `vueUiPill-${D.value}`,
|
|
566
568
|
clipPathUnits: "userSpaceOnUse"
|
|
567
569
|
}, [m("rect", {
|
|
568
|
-
x:
|
|
569
|
-
y:
|
|
570
|
-
width:
|
|
571
|
-
height:
|
|
572
|
-
rx:
|
|
573
|
-
ry:
|
|
574
|
-
}, 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, {
|
|
575
577
|
t: "linear",
|
|
576
578
|
id: `vueUiThermometerGradient_${t}_${D.value}`,
|
|
577
579
|
key: `t_${t}_${D.value}`,
|
|
@@ -587,7 +589,7 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
587
589
|
],
|
|
588
590
|
[
|
|
589
591
|
"50%",
|
|
590
|
-
C(i)(e.color, 100 -
|
|
592
|
+
C(i)(e.color, 100 - N.value.gradient.intensity),
|
|
591
593
|
1
|
|
592
594
|
],
|
|
593
595
|
[
|
|
@@ -599,158 +601,158 @@ var Pe = /* @__PURE__ */ e({ default: () => T }), Fe = ["id"], Ie = {
|
|
|
599
601
|
}, null, 8, ["id", "stops"]))), 128))]),
|
|
600
602
|
m("g", { "clip-path": `url(#vueUiPill-${D.value})` }, [
|
|
601
603
|
m("rect", {
|
|
602
|
-
x:
|
|
603
|
-
y:
|
|
604
|
-
height:
|
|
605
|
-
width:
|
|
604
|
+
x: J.value.left,
|
|
605
|
+
y: J.value.top,
|
|
606
|
+
height: J.value.thermoHeight,
|
|
607
|
+
width: J.value.thermoWidth,
|
|
606
608
|
fill: "#FFFFFF"
|
|
607
609
|
}, null, 8, We),
|
|
608
|
-
(y(!0), p(l, null, Ae(
|
|
610
|
+
(y(!0), p(l, null, Ae(Pt.value, (e, t) => (y(), p("g", { key: `graduation_${t}` }, [
|
|
609
611
|
m("rect", {
|
|
610
612
|
x: e.x,
|
|
611
613
|
y: e.y,
|
|
612
614
|
height: e.height,
|
|
613
|
-
width:
|
|
614
|
-
fill:
|
|
615
|
+
width: J.value.thermoWidth,
|
|
616
|
+
fill: N.value.gradient.show ? `url(#vueUiThermometerGradient_${t}_${D.value})` : e.color,
|
|
615
617
|
"shape-rendering": "crispEdges"
|
|
616
618
|
}, null, 8, Ge),
|
|
617
|
-
|
|
619
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
618
620
|
key: 0,
|
|
619
621
|
x1: e.x,
|
|
620
622
|
x2: e.x + 10,
|
|
621
623
|
y1: e.y,
|
|
622
624
|
y2: e.y,
|
|
623
|
-
"stroke-width":
|
|
624
|
-
stroke:
|
|
625
|
+
"stroke-width": N.value.strokeWidth,
|
|
626
|
+
stroke: N.value.stroke,
|
|
625
627
|
"stroke-linecap": "round"
|
|
626
628
|
}, null, 8, Ke)) : f("", !0),
|
|
627
|
-
|
|
628
|
-
|
|
629
|
+
N.value.showIntermediate ? (y(), p(l, { key: 1 }, [
|
|
630
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
629
631
|
key: 0,
|
|
630
632
|
x1: e.x,
|
|
631
633
|
x2: e.x + 5,
|
|
632
634
|
y1: e.halfY,
|
|
633
635
|
y2: e.halfY,
|
|
634
|
-
"stroke-width":
|
|
635
|
-
stroke:
|
|
636
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
637
|
+
stroke: N.value.stroke,
|
|
636
638
|
"stroke-linecap": "round"
|
|
637
639
|
}, null, 8, qe)) : f("", !0),
|
|
638
|
-
|
|
640
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
639
641
|
key: 1,
|
|
640
642
|
x1: e.x,
|
|
641
643
|
x2: e.x + 2.5,
|
|
642
644
|
y1: e.qYLess,
|
|
643
645
|
y2: e.qYLess,
|
|
644
|
-
"stroke-width":
|
|
645
|
-
stroke:
|
|
646
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
647
|
+
stroke: N.value.stroke,
|
|
646
648
|
"stroke-linecap": "round"
|
|
647
649
|
}, null, 8, Je)) : f("", !0),
|
|
648
|
-
|
|
650
|
+
N.value.show && ["both", "left"].includes(N.value.sides) ? (y(), p("line", {
|
|
649
651
|
key: 2,
|
|
650
652
|
x1: e.x,
|
|
651
653
|
x2: e.x + 2.5,
|
|
652
654
|
y1: e.qYMore,
|
|
653
655
|
y2: e.qYMore,
|
|
654
|
-
"stroke-width":
|
|
655
|
-
stroke:
|
|
656
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
657
|
+
stroke: N.value.stroke,
|
|
656
658
|
"stroke-linecap": "round"
|
|
657
659
|
}, null, 8, Ye)) : f("", !0)
|
|
658
660
|
], 64)) : f("", !0),
|
|
659
|
-
|
|
661
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
660
662
|
key: 2,
|
|
661
|
-
x1:
|
|
662
|
-
x2:
|
|
663
|
+
x1: J.value.right,
|
|
664
|
+
x2: J.value.right - 10,
|
|
663
665
|
y1: e.y,
|
|
664
666
|
y2: e.y,
|
|
665
|
-
"stroke-width":
|
|
666
|
-
stroke:
|
|
667
|
+
"stroke-width": N.value.strokeWidth,
|
|
668
|
+
stroke: N.value.stroke,
|
|
667
669
|
"stroke-linecap": "round"
|
|
668
670
|
}, null, 8, Xe)) : f("", !0),
|
|
669
|
-
|
|
670
|
-
|
|
671
|
+
N.value.showIntermediate ? (y(), p(l, { key: 3 }, [
|
|
672
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
671
673
|
key: 0,
|
|
672
|
-
x1:
|
|
673
|
-
x2:
|
|
674
|
+
x1: J.value.right,
|
|
675
|
+
x2: J.value.right - 5,
|
|
674
676
|
y1: e.halfY,
|
|
675
677
|
y2: e.halfY,
|
|
676
|
-
"stroke-width":
|
|
677
|
-
stroke:
|
|
678
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
679
|
+
stroke: N.value.stroke,
|
|
678
680
|
"stroke-linecap": "round"
|
|
679
681
|
}, null, 8, Ze)) : f("", !0),
|
|
680
|
-
|
|
682
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
681
683
|
key: 1,
|
|
682
|
-
x1:
|
|
683
|
-
x2:
|
|
684
|
+
x1: J.value.right,
|
|
685
|
+
x2: J.value.right - 2.5,
|
|
684
686
|
y1: e.qYLess,
|
|
685
687
|
y2: e.qYLess,
|
|
686
|
-
"stroke-width":
|
|
687
|
-
stroke:
|
|
688
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
689
|
+
stroke: N.value.stroke,
|
|
688
690
|
"stroke-linecap": "round"
|
|
689
691
|
}, null, 8, Qe)) : f("", !0),
|
|
690
|
-
|
|
692
|
+
N.value.show && ["both", "right"].includes(N.value.sides) ? (y(), p("line", {
|
|
691
693
|
key: 2,
|
|
692
|
-
x1:
|
|
693
|
-
x2:
|
|
694
|
+
x1: J.value.right,
|
|
695
|
+
x2: J.value.right - 2.5,
|
|
694
696
|
y1: e.qYMore,
|
|
695
697
|
y2: e.qYMore,
|
|
696
|
-
"stroke-width":
|
|
697
|
-
stroke:
|
|
698
|
+
"stroke-width": N.value.strokeWidth / 2,
|
|
699
|
+
stroke: N.value.stroke,
|
|
698
700
|
"stroke-linecap": "round"
|
|
699
701
|
}, null, 8, $e)) : f("", !0)
|
|
700
702
|
], 64)) : f("", !0)
|
|
701
703
|
]))), 128)),
|
|
702
704
|
m("rect", {
|
|
703
|
-
class: _({ "vue-ui-thermometer-temperature":
|
|
704
|
-
x:
|
|
705
|
-
y:
|
|
706
|
-
height:
|
|
707
|
-
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,
|
|
708
710
|
fill: "#FFFFFF66"
|
|
709
711
|
}, null, 10, et)
|
|
710
712
|
], 8, Ue),
|
|
711
|
-
|
|
713
|
+
P.value.label.show ? (y(), p("g", {
|
|
712
714
|
key: 1,
|
|
713
715
|
role: "status",
|
|
714
716
|
"aria-live": "polite",
|
|
715
|
-
"aria-label": C(
|
|
716
|
-
}, [C(
|
|
717
|
+
"aria-label": C(L) ? "Loading data" : $.value
|
|
718
|
+
}, [C(L) ? (y(), p("rect", {
|
|
717
719
|
key: 0,
|
|
718
|
-
x:
|
|
719
|
-
y:
|
|
720
|
+
x: J.value.left - 60,
|
|
721
|
+
y: Y.value + J.value.top - Q.value / 2,
|
|
720
722
|
width: 50,
|
|
721
|
-
height:
|
|
723
|
+
height: Q.value,
|
|
722
724
|
fill: "#6A6A6A40",
|
|
723
725
|
rx: "3"
|
|
724
726
|
}, null, 8, nt)) : (y(), p("text", {
|
|
725
727
|
key: 1,
|
|
726
728
|
"aria-hidden": "true",
|
|
727
729
|
class: _({
|
|
728
|
-
"vue-ui-thermometer-temperature-value":
|
|
730
|
+
"vue-ui-thermometer-temperature-value": P.value.animation.use,
|
|
729
731
|
"vue-ui-thermometer-label": !0
|
|
730
732
|
}),
|
|
731
|
-
y:
|
|
732
|
-
x:
|
|
733
|
+
y: Y.value + J.value.top + Q.value / 3,
|
|
734
|
+
x: J.value.left - 10,
|
|
733
735
|
"text-anchor": "end",
|
|
734
|
-
fill:
|
|
735
|
-
"font-size":
|
|
736
|
-
"font-weight":
|
|
736
|
+
fill: P.value.label.color,
|
|
737
|
+
"font-size": Q.value,
|
|
738
|
+
"font-weight": P.value.label.bold ? "bold" : "normal"
|
|
737
739
|
}, S($.value), 11, rt))], 8, tt)) : f("", !0),
|
|
738
740
|
x(e.$slots, "svg", { svg: {
|
|
739
|
-
...
|
|
740
|
-
isPrintingImg: C(
|
|
741
|
-
isPrintingSvg: C(
|
|
741
|
+
...kt.value,
|
|
742
|
+
isPrintingImg: C(H) || C(U) || C(Vt),
|
|
743
|
+
isPrintingSvg: C(Ht)
|
|
742
744
|
} }, void 0, !0)
|
|
743
745
|
], 10, Le)),
|
|
744
|
-
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),
|
|
745
747
|
e.$slots.source ? (y(), p("div", {
|
|
746
748
|
key: 5,
|
|
747
749
|
ref_key: "source",
|
|
748
750
|
ref: ht,
|
|
749
751
|
dir: "auto"
|
|
750
752
|
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
751
|
-
x(e.$slots, "skeleton", {}, () => [C(
|
|
753
|
+
x(e.$slots, "skeleton", {}, () => [C(L) ? (y(), d(fe, { key: 0 })) : f("", !0)], !0)
|
|
752
754
|
], 46, Fe));
|
|
753
755
|
}
|
|
754
|
-
}, [["__scopeId", "data-v-
|
|
756
|
+
}, [["__scopeId", "data-v-d16e0f9d"]]);
|
|
755
757
|
//#endregion
|
|
756
758
|
export { Pe as n, T as t };
|