vue-data-ui 3.22.13 → 3.23.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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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 +2 -0
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-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/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,769 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { At as t, C as n, Gt as r, K as i, Nt as a, Y as ee, et as o, ft as te, i as ne, qt as re, t as ie, x as s, y as c, zt as ae } from "./lib-CFm_J26b.js";
|
|
3
|
-
import { t as oe } from "./useConfig-C0V0eG7L.js";
|
|
4
|
-
import { t as se } from "./usePrinter-BH-xle1O.js";
|
|
5
|
-
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as ue } from "./useSvgExport-Ba9qBr9M.js";
|
|
7
|
-
import { t as l } from "./useNestedProp-BY6DNN3i.js";
|
|
8
|
-
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as fe } from "./img-Bikk1dGb.js";
|
|
10
|
-
import { n as pe } from "./Title-BuPs74IB.js";
|
|
11
|
-
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
|
|
13
|
-
import { t as _e } from "./DefGrad-DVBqDjhO.js";
|
|
14
|
-
import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as be } from "./useAutoSizeLabelsInsideViewbox-C9RNjsGv.js";
|
|
17
|
-
import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
18
|
-
import { t as Se } from "./vue_ui_thermometer-DxgqWKlE.js";
|
|
19
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ce, createVNode as we, defineAsyncComponent as g, guardReactiveProps as _, nextTick as Te, normalizeClass as v, normalizeProps as y, normalizeStyle as Ee, onMounted as De, openBlock as b, ref as x, renderList as Oe, renderSlot as S, toDisplayString as C, toRefs as ke, unref as w, useCssVars as Ae, watch as je, withCtx as T } from "vue";
|
|
20
|
-
//#region src/components/vue-ui-thermometer.vue
|
|
21
|
-
var Me = /* @__PURE__ */ e({ default: () => E }), Ne = ["id"], Pe = {
|
|
22
|
-
key: 1,
|
|
23
|
-
ref: "noTitle",
|
|
24
|
-
class: "vue-data-ui-no-title-space",
|
|
25
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
26
|
-
}, Fe = [
|
|
27
|
-
"xmlns",
|
|
28
|
-
"viewBox",
|
|
29
|
-
"aria-labelledby",
|
|
30
|
-
"aria-describedby"
|
|
31
|
-
], Ie = ["id"], Le = ["id"], Re = ["width", "height"], ze = ["id"], Be = [
|
|
32
|
-
"x",
|
|
33
|
-
"y",
|
|
34
|
-
"width",
|
|
35
|
-
"height",
|
|
36
|
-
"rx",
|
|
37
|
-
"ry"
|
|
38
|
-
], Ve = ["clip-path"], He = [
|
|
39
|
-
"x",
|
|
40
|
-
"y",
|
|
41
|
-
"height",
|
|
42
|
-
"width"
|
|
43
|
-
], Ue = [
|
|
44
|
-
"x",
|
|
45
|
-
"y",
|
|
46
|
-
"height",
|
|
47
|
-
"width",
|
|
48
|
-
"fill"
|
|
49
|
-
], We = [
|
|
50
|
-
"x1",
|
|
51
|
-
"x2",
|
|
52
|
-
"y1",
|
|
53
|
-
"y2",
|
|
54
|
-
"stroke-width",
|
|
55
|
-
"stroke"
|
|
56
|
-
], Ge = [
|
|
57
|
-
"x1",
|
|
58
|
-
"x2",
|
|
59
|
-
"y1",
|
|
60
|
-
"y2",
|
|
61
|
-
"stroke-width",
|
|
62
|
-
"stroke"
|
|
63
|
-
], Ke = [
|
|
64
|
-
"x1",
|
|
65
|
-
"x2",
|
|
66
|
-
"y1",
|
|
67
|
-
"y2",
|
|
68
|
-
"stroke-width",
|
|
69
|
-
"stroke"
|
|
70
|
-
], qe = [
|
|
71
|
-
"x1",
|
|
72
|
-
"x2",
|
|
73
|
-
"y1",
|
|
74
|
-
"y2",
|
|
75
|
-
"stroke-width",
|
|
76
|
-
"stroke"
|
|
77
|
-
], Je = [
|
|
78
|
-
"x1",
|
|
79
|
-
"x2",
|
|
80
|
-
"y1",
|
|
81
|
-
"y2",
|
|
82
|
-
"stroke-width",
|
|
83
|
-
"stroke"
|
|
84
|
-
], Ye = [
|
|
85
|
-
"x1",
|
|
86
|
-
"x2",
|
|
87
|
-
"y1",
|
|
88
|
-
"y2",
|
|
89
|
-
"stroke-width",
|
|
90
|
-
"stroke"
|
|
91
|
-
], Xe = [
|
|
92
|
-
"x1",
|
|
93
|
-
"x2",
|
|
94
|
-
"y1",
|
|
95
|
-
"y2",
|
|
96
|
-
"stroke-width",
|
|
97
|
-
"stroke"
|
|
98
|
-
], Ze = [
|
|
99
|
-
"x1",
|
|
100
|
-
"x2",
|
|
101
|
-
"y1",
|
|
102
|
-
"y2",
|
|
103
|
-
"stroke-width",
|
|
104
|
-
"stroke"
|
|
105
|
-
], Qe = [
|
|
106
|
-
"x",
|
|
107
|
-
"y",
|
|
108
|
-
"height",
|
|
109
|
-
"width"
|
|
110
|
-
], $e = ["aria-label"], et = [
|
|
111
|
-
"x",
|
|
112
|
-
"y",
|
|
113
|
-
"height"
|
|
114
|
-
], tt = [
|
|
115
|
-
"y",
|
|
116
|
-
"x",
|
|
117
|
-
"fill",
|
|
118
|
-
"font-size",
|
|
119
|
-
"font-weight"
|
|
120
|
-
], nt = {
|
|
121
|
-
key: 4,
|
|
122
|
-
class: "vue-data-ui-watermark"
|
|
123
|
-
}, E = /*#__PURE__*/ me({
|
|
124
|
-
__name: "vue-ui-thermometer",
|
|
125
|
-
props: {
|
|
126
|
-
dataset: {
|
|
127
|
-
type: Object,
|
|
128
|
-
default() {
|
|
129
|
-
return {};
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
config: {
|
|
133
|
-
type: Object,
|
|
134
|
-
default() {
|
|
135
|
-
return {};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
emits: ["copyAlt"],
|
|
140
|
-
setup(e, { expose: me, emit: Me }) {
|
|
141
|
-
Ae((e) => ({
|
|
142
|
-
v31c59d24: kt.value,
|
|
143
|
-
v2daaf640: Ot.value,
|
|
144
|
-
f9585c66: Dt.value
|
|
145
|
-
}));
|
|
146
|
-
let E = g(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), rt = g(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), it = g(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), { vue_ui_thermometer: at } = oe(), { isThemeValid: ot, warnInvalidTheme: st } = de(), ct = xe(), D = e, lt = Me, O = x(i()), k = x(null), ut = x(0), dt = x(0), ft = x(null), pt = x(null), A = x(null), j = x(null), M = x(!1), N = x(!1), mt = d(() => !!D.dataset && Object.keys(D.dataset).length);
|
|
147
|
-
De(() => {
|
|
148
|
-
yt();
|
|
149
|
-
});
|
|
150
|
-
let P = x(V()), ht = x(P.value.style.chart.thermometer.width), F = x(P.value.style.chart.height), I = x(P.value.style.chart.width), gt = d(() => P.value.userOptions.useCursorPointer), _t = d(() => re({
|
|
151
|
-
defaultConfig: {
|
|
152
|
-
userOptions: { show: !1 },
|
|
153
|
-
style: { chart: {
|
|
154
|
-
animation: { use: !1 },
|
|
155
|
-
backgroundColor: "#99999930",
|
|
156
|
-
graduations: { stroke: "#6A6A6A" }
|
|
157
|
-
} }
|
|
158
|
-
},
|
|
159
|
-
userConfig: P.value.skeletonConfig ?? {}
|
|
160
|
-
})), { loading: L, FINAL_DATASET: R } = ce({
|
|
161
|
-
...ke(D),
|
|
162
|
-
FINAL_CONFIG: P,
|
|
163
|
-
prepareConfig: V,
|
|
164
|
-
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
165
|
-
value: 0,
|
|
166
|
-
from: -100,
|
|
167
|
-
to: 100,
|
|
168
|
-
steps: 20,
|
|
169
|
-
colors: {
|
|
170
|
-
from: "#A1A1A1",
|
|
171
|
-
to: "#CACACA"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
skeletonConfig: re({
|
|
175
|
-
defaultConfig: P.value,
|
|
176
|
-
userConfig: _t.value
|
|
177
|
-
})
|
|
178
|
-
}), vt = d(() => !!P.value.debug);
|
|
179
|
-
function yt() {
|
|
180
|
-
if (t(D.dataset) ? o({
|
|
181
|
-
componentName: "VueUiThermometer",
|
|
182
|
-
type: "dataset",
|
|
183
|
-
debug: vt.value
|
|
184
|
-
}) : te({
|
|
185
|
-
datasetObject: D.dataset,
|
|
186
|
-
requiredAttributes: [
|
|
187
|
-
"value",
|
|
188
|
-
"from",
|
|
189
|
-
"to"
|
|
190
|
-
]
|
|
191
|
-
}).forEach((e) => {
|
|
192
|
-
o({
|
|
193
|
-
componentName: "VueUiThermometer",
|
|
194
|
-
type: "datasetAttribute",
|
|
195
|
-
property: e,
|
|
196
|
-
debug: vt.value
|
|
197
|
-
});
|
|
198
|
-
}), P.value.responsive) {
|
|
199
|
-
let e = he(() => {
|
|
200
|
-
let { width: e, height: t } = ge({
|
|
201
|
-
chart: k.value,
|
|
202
|
-
title: P.value.style.title.text ? ft.value : null,
|
|
203
|
-
source: pt.value
|
|
204
|
-
});
|
|
205
|
-
requestAnimationFrame(() => {
|
|
206
|
-
F.value = Math.max(.1, t - 12), I.value = e, Ft();
|
|
207
|
-
});
|
|
208
|
-
});
|
|
209
|
-
A.value && (j.value && A.value.unobserve(j.value), A.value.disconnect()), A.value = new ResizeObserver(e), j.value = k.value, A.value.observe(j.value);
|
|
210
|
-
}
|
|
211
|
-
Ft();
|
|
212
|
-
}
|
|
213
|
-
let { userOptionsVisible: z, setUserOptionsVisibility: bt, keepUserOptionState: xt } = ve({ config: P.value }), { svgRef: B } = ye({ config: P.value.style.title });
|
|
214
|
-
function V() {
|
|
215
|
-
let e = l({
|
|
216
|
-
userConfig: D.config,
|
|
217
|
-
defaultConfig: at
|
|
218
|
-
}), t = e.theme;
|
|
219
|
-
if (!t) return e;
|
|
220
|
-
if (!ot.value(e)) return st(e), e;
|
|
221
|
-
let n = l({
|
|
222
|
-
userConfig: Se[t] || D.config,
|
|
223
|
-
defaultConfig: e
|
|
224
|
-
}), i = l({
|
|
225
|
-
userConfig: D.config,
|
|
226
|
-
defaultConfig: n
|
|
227
|
-
});
|
|
228
|
-
return {
|
|
229
|
-
...i,
|
|
230
|
-
customPalette: i.customPalette.length ? i.customPalette : r[t] || a
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
je(() => D.config, (e) => {
|
|
234
|
-
P.value = V(), z.value = !P.value.userOptions.showOnChartHover, ht.value = P.value.style.chart.thermometer.width, F.value = P.value.style.chart.height, I.value = P.value.style.chart.width, yt(), dt.value += 1;
|
|
235
|
-
}, { deep: !0 });
|
|
236
|
-
let { isPrinting: H, isImaging: U, generatePdf: St, generateImage: Ct } = se({
|
|
237
|
-
elementId: `thermometer__${O.value}`,
|
|
238
|
-
fileName: P.value.style.title.text || "vue-ui-thermometer",
|
|
239
|
-
options: P.value.userOptions.print
|
|
240
|
-
}), wt = d(() => P.value.userOptions.show && !P.value.style.title.text), W = d(() => n(P.value.customPalette)), G = d(() => R.value.steps || 10);
|
|
241
|
-
function K(e, t, n) {
|
|
242
|
-
let r = [], i = Tt(e), a = Tt(t);
|
|
243
|
-
for (let e = 0; e < n; e += 1) {
|
|
244
|
-
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), te = `#${J(t)}${J(ee)}${J(o)}`;
|
|
245
|
-
r.push(te);
|
|
246
|
-
}
|
|
247
|
-
return r;
|
|
248
|
-
}
|
|
249
|
-
function Tt(e) {
|
|
250
|
-
let t = e.slice(1);
|
|
251
|
-
return {
|
|
252
|
-
red: parseInt(t.slice(0, 2), 16),
|
|
253
|
-
green: parseInt(t.slice(2, 4), 16),
|
|
254
|
-
blue: parseInt(t.slice(4, 6), 16)
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
function q(e, t, n, r) {
|
|
258
|
-
return Math.round(e + (t - e) * n / r);
|
|
259
|
-
}
|
|
260
|
-
function J(e) {
|
|
261
|
-
return e.toString(16).padStart(2, "0");
|
|
262
|
-
}
|
|
263
|
-
let Y = d(() => {
|
|
264
|
-
let e = Math.max(.1, I.value), t = Math.max(.1, F.value), n = P.value.style.chart.padding;
|
|
265
|
-
return {
|
|
266
|
-
width: e,
|
|
267
|
-
left: e / 2 - P.value.style.chart.thermometer.width / 2,
|
|
268
|
-
right: e / 2 + P.value.style.chart.thermometer.width / 2,
|
|
269
|
-
top: n.top,
|
|
270
|
-
bottom: t - n.bottom - n.top,
|
|
271
|
-
height: t,
|
|
272
|
-
thermoHeight: t - n.top - n.bottom,
|
|
273
|
-
thermoWidth: P.value.style.chart.thermometer.width
|
|
274
|
-
};
|
|
275
|
-
}), Et = d(() => Y.value), X = d(() => {
|
|
276
|
-
let e = c(R.value.from) < 0 ? Math.abs(c(R.value.from)) : c(R.value.from), t = c(R.value.to) < 0 ? Math.abs(c(R.value.to)) : c(R.value.to), n = 0;
|
|
277
|
-
return n = c(R.value.to) > 0 ? e + t : e > t ? e - t : t - e, (1 - (Math.abs(c(R.value.from)) + c(R.value.value)) / n) * Y.value.thermoHeight;
|
|
278
|
-
}), Dt = d(() => `${X.value}px`), Ot = d(() => `${Y.value.thermoHeight}px`), kt = d(() => ct.value ? "0ms" : `${P.value.style.chart.animation.speedMs}ms`), At = d(() => {
|
|
279
|
-
if (R.value.colors) {
|
|
280
|
-
if (!R.value.colors.from) return K(W.value[0] || a[0], s(R.value.colors.to), G.value || 10);
|
|
281
|
-
if (!R.value.colors.to) return K(s(R.value.colors.from), W.value[1] || a[1], G.value || 10);
|
|
282
|
-
} else return K(W.value[1] || a[1], W.value[0] || a[0], G.value || 10);
|
|
283
|
-
return K(s(R.value.colors.from), s(R.value.colors.to), G.value || 10);
|
|
284
|
-
}), jt = d(() => {
|
|
285
|
-
let e = [], t = 0, n = Y.value.thermoHeight;
|
|
286
|
-
for (let r = 0; r < n - 1; r += n / G.value) e.push({
|
|
287
|
-
x: Y.value.left,
|
|
288
|
-
y: Y.value.top + r,
|
|
289
|
-
qYLess: Y.value.top + r + n / G.value / 4,
|
|
290
|
-
halfY: Y.value.top + r + n / G.value / 2,
|
|
291
|
-
qYMore: Y.value.top + r + n / G.value / 4 * 3,
|
|
292
|
-
color: At.value[t],
|
|
293
|
-
height: Math.max(.1, n / G.value)
|
|
294
|
-
}), t += 1;
|
|
295
|
-
return e;
|
|
296
|
-
}), Z = x(!1);
|
|
297
|
-
function Mt(e) {
|
|
298
|
-
Z.value = e, ut.value += 1;
|
|
299
|
-
}
|
|
300
|
-
let Q = x(!1);
|
|
301
|
-
function Nt() {
|
|
302
|
-
Q.value = !Q.value;
|
|
303
|
-
}
|
|
304
|
-
async function Pt({ scale: e = 2 } = {}) {
|
|
305
|
-
if (!k.value) return;
|
|
306
|
-
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
307
|
-
domElement: k.value,
|
|
308
|
-
base64: !0,
|
|
309
|
-
img: !0,
|
|
310
|
-
scale: e
|
|
311
|
-
});
|
|
312
|
-
return {
|
|
313
|
-
imageUri: i,
|
|
314
|
-
base64: a,
|
|
315
|
-
title: P.value.style.title.text,
|
|
316
|
-
width: t,
|
|
317
|
-
height: n,
|
|
318
|
-
aspectRatio: r
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
let $ = d({
|
|
322
|
-
get: () => P.value.style.chart.label.fontSize,
|
|
323
|
-
set: (e) => e
|
|
324
|
-
}), { autoSizeLabels: Ft } = be({
|
|
325
|
-
svgRef: B,
|
|
326
|
-
fontSize: P.value.style.chart.label.fontSize,
|
|
327
|
-
minFontSize: P.value.style.chart.label.minFontSize,
|
|
328
|
-
sizeRef: $,
|
|
329
|
-
labelClass: ".vue-ui-thermometer-label"
|
|
330
|
-
}), It = d(() => P.value.style.chart.backgroundColor), { exportSvg: Lt, getSvg: Rt } = ue({
|
|
331
|
-
svg: B,
|
|
332
|
-
title: d(() => P.value.style.title),
|
|
333
|
-
backgroundColor: It
|
|
334
|
-
});
|
|
335
|
-
async function zt({ isCb: e }) {
|
|
336
|
-
N.value = !0, await Te();
|
|
337
|
-
try {
|
|
338
|
-
if (e) {
|
|
339
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Rt();
|
|
340
|
-
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
341
|
-
blob: e,
|
|
342
|
-
url: t,
|
|
343
|
-
text: n,
|
|
344
|
-
dataUrl: r
|
|
345
|
-
}));
|
|
346
|
-
} else await Promise.resolve(Lt());
|
|
347
|
-
} finally {
|
|
348
|
-
N.value = !1;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
function Bt(e) {
|
|
352
|
-
if (e?.stage === "start") {
|
|
353
|
-
M.value = !0;
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
if (e?.stage === "end") {
|
|
357
|
-
M.value = !1;
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
Ct();
|
|
361
|
-
}
|
|
362
|
-
async function Vt() {
|
|
363
|
-
if (lt("copyAlt", {
|
|
364
|
-
config: P.value,
|
|
365
|
-
dataset: R.value
|
|
366
|
-
}), !P.value.userOptions.callbacks.altCopy) {
|
|
367
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
371
|
-
config: P.value,
|
|
372
|
-
dataset: R.value
|
|
373
|
-
}));
|
|
374
|
-
}
|
|
375
|
-
let Ht = d(() => `${O.value}-title`), Ut = d(() => `${O.value}-desc`), Wt = d(() => ne(P.value.style.chart.label.formatter, R.value.value, ee({
|
|
376
|
-
p: P.value.style.chart.label.prefix,
|
|
377
|
-
v: R.value.value,
|
|
378
|
-
s: P.value.style.chart.label.suffix,
|
|
379
|
-
r: P.value.style.chart.label.rounding
|
|
380
|
-
}), { datapoint: R.value })), Gt = d(() => P.value.style.title.text || ""), Kt = d(() => {
|
|
381
|
-
if (L.value) return "...";
|
|
382
|
-
let e = c(R.value.from), t = c(R.value.to);
|
|
383
|
-
return `Thermometer value: ${Wt.value}. Range: ${e} to ${t}.`;
|
|
384
|
-
});
|
|
385
|
-
return me({
|
|
386
|
-
getImage: Pt,
|
|
387
|
-
generatePdf: St,
|
|
388
|
-
generateImage: Ct,
|
|
389
|
-
generateSvg: zt,
|
|
390
|
-
toggleAnnotator: Nt,
|
|
391
|
-
toggleFullscreen: Mt,
|
|
392
|
-
copyAlt: Vt
|
|
393
|
-
}), (e, t) => (b(), m("div", {
|
|
394
|
-
ref_key: "thermoChart",
|
|
395
|
-
ref: k,
|
|
396
|
-
class: v(`vue-data-ui-component vue-ui-thermometer ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
397
|
-
style: Ee(`width:100%;background:${P.value.style.chart.backgroundColor};color:${P.value.style.chart.color};font-family:${P.value.style.fontFamily}`),
|
|
398
|
-
id: `thermometer__${O.value}`,
|
|
399
|
-
onMouseenter: t[0] ||= () => w(bt)(!0),
|
|
400
|
-
onMouseleave: t[1] ||= () => w(bt)(!1)
|
|
401
|
-
}, [
|
|
402
|
-
P.value.userOptions.buttons.annotator ? (b(), f(w(rt), {
|
|
403
|
-
key: 0,
|
|
404
|
-
svgRef: w(B),
|
|
405
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
406
|
-
color: P.value.style.chart.color,
|
|
407
|
-
active: Q.value,
|
|
408
|
-
isCursorPointer: gt.value,
|
|
409
|
-
onClose: Nt
|
|
410
|
-
}, {
|
|
411
|
-
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
412
|
-
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
413
|
-
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
414
|
-
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
415
|
-
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
416
|
-
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
417
|
-
_: 3
|
|
418
|
-
}, 8, [
|
|
419
|
-
"svgRef",
|
|
420
|
-
"backgroundColor",
|
|
421
|
-
"color",
|
|
422
|
-
"active",
|
|
423
|
-
"isCursorPointer"
|
|
424
|
-
])) : p("", !0),
|
|
425
|
-
wt.value ? (b(), m("div", Pe, null, 512)) : p("", !0),
|
|
426
|
-
P.value.style.title.text ? (b(), m("div", {
|
|
427
|
-
key: 2,
|
|
428
|
-
ref_key: "chartTitle",
|
|
429
|
-
ref: ft,
|
|
430
|
-
style: "width:100%"
|
|
431
|
-
}, [(b(), f(pe, {
|
|
432
|
-
key: `title_${dt.value}`,
|
|
433
|
-
config: {
|
|
434
|
-
title: {
|
|
435
|
-
cy: "thermometer-div-title",
|
|
436
|
-
...P.value.style.title
|
|
437
|
-
},
|
|
438
|
-
subtitle: {
|
|
439
|
-
cy: "thermometer-div-subtitle",
|
|
440
|
-
...P.value.style.title.subtitle
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
444
|
-
P.value.userOptions.show && mt.value && (w(xt) || w(z)) ? (b(), f(w(it), {
|
|
445
|
-
ref: "details",
|
|
446
|
-
key: `user_options_${ut.value}`,
|
|
447
|
-
backgroundColor: P.value.style.chart.backgroundColor,
|
|
448
|
-
color: P.value.style.chart.color,
|
|
449
|
-
isImaging: w(U),
|
|
450
|
-
isPrinting: w(H),
|
|
451
|
-
uid: O.value,
|
|
452
|
-
hasPdf: P.value.userOptions.buttons.pdf,
|
|
453
|
-
hasImg: P.value.userOptions.buttons.img,
|
|
454
|
-
hasSvg: P.value.userOptions.buttons.svg,
|
|
455
|
-
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
456
|
-
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
457
|
-
hasXls: !1,
|
|
458
|
-
isFullscreen: Z.value,
|
|
459
|
-
titles: { ...P.value.userOptions.buttonTitles },
|
|
460
|
-
chartElement: k.value,
|
|
461
|
-
position: P.value.userOptions.position,
|
|
462
|
-
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
463
|
-
isAnnotation: Q.value,
|
|
464
|
-
callbacks: P.value.userOptions.callbacks,
|
|
465
|
-
printScale: P.value.userOptions.print.scale,
|
|
466
|
-
isCursorPointer: gt.value,
|
|
467
|
-
onToggleFullscreen: Mt,
|
|
468
|
-
onGeneratePdf: w(St),
|
|
469
|
-
onGenerateImage: Bt,
|
|
470
|
-
onGenerateSvg: zt,
|
|
471
|
-
onToggleAnnotator: Nt,
|
|
472
|
-
onCopyAlt: Vt,
|
|
473
|
-
style: Ee({ visibility: w(xt) ? w(z) ? "visible" : "hidden" : "visible" })
|
|
474
|
-
}, Ce({ _: 2 }, [
|
|
475
|
-
e.$slots.menuIcon ? {
|
|
476
|
-
name: "menuIcon",
|
|
477
|
-
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", y(_({
|
|
478
|
-
isOpen: t,
|
|
479
|
-
color: n
|
|
480
|
-
})), void 0, !0)]),
|
|
481
|
-
key: "0"
|
|
482
|
-
} : void 0,
|
|
483
|
-
e.$slots.optionPdf ? {
|
|
484
|
-
name: "optionPdf",
|
|
485
|
-
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
486
|
-
key: "1"
|
|
487
|
-
} : void 0,
|
|
488
|
-
e.$slots.optionImg ? {
|
|
489
|
-
name: "optionImg",
|
|
490
|
-
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
491
|
-
key: "2"
|
|
492
|
-
} : void 0,
|
|
493
|
-
e.$slots.optionSvg ? {
|
|
494
|
-
name: "optionSvg",
|
|
495
|
-
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
496
|
-
key: "3"
|
|
497
|
-
} : void 0,
|
|
498
|
-
e.$slots.optionFullscreen ? {
|
|
499
|
-
name: "optionFullscreen",
|
|
500
|
-
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", y(_({
|
|
501
|
-
toggleFullscreen: t,
|
|
502
|
-
isFullscreen: n
|
|
503
|
-
})), void 0, !0)]),
|
|
504
|
-
key: "4"
|
|
505
|
-
} : void 0,
|
|
506
|
-
e.$slots.optionAnnotator ? {
|
|
507
|
-
name: "optionAnnotator",
|
|
508
|
-
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", y(_({
|
|
509
|
-
toggleAnnotator: t,
|
|
510
|
-
isAnnotator: n
|
|
511
|
-
})), void 0, !0)]),
|
|
512
|
-
key: "5"
|
|
513
|
-
} : void 0,
|
|
514
|
-
e.$slots.optionAltCopy ? {
|
|
515
|
-
name: "optionAltCopy",
|
|
516
|
-
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
517
|
-
key: "6"
|
|
518
|
-
} : void 0,
|
|
519
|
-
e.$slots["custom-menu-before"] ? {
|
|
520
|
-
name: "custom-menu-before",
|
|
521
|
-
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
522
|
-
key: "7"
|
|
523
|
-
} : void 0,
|
|
524
|
-
e.$slots["custom-menu-after"] ? {
|
|
525
|
-
name: "custom-menu-after",
|
|
526
|
-
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
527
|
-
key: "8"
|
|
528
|
-
} : void 0
|
|
529
|
-
]), 1032, [
|
|
530
|
-
"backgroundColor",
|
|
531
|
-
"color",
|
|
532
|
-
"isImaging",
|
|
533
|
-
"isPrinting",
|
|
534
|
-
"uid",
|
|
535
|
-
"hasPdf",
|
|
536
|
-
"hasImg",
|
|
537
|
-
"hasSvg",
|
|
538
|
-
"hasFullscreen",
|
|
539
|
-
"hasAltCopy",
|
|
540
|
-
"isFullscreen",
|
|
541
|
-
"titles",
|
|
542
|
-
"chartElement",
|
|
543
|
-
"position",
|
|
544
|
-
"hasAnnotator",
|
|
545
|
-
"isAnnotation",
|
|
546
|
-
"callbacks",
|
|
547
|
-
"printScale",
|
|
548
|
-
"isCursorPointer",
|
|
549
|
-
"onGeneratePdf",
|
|
550
|
-
"style"
|
|
551
|
-
])) : p("", !0),
|
|
552
|
-
(b(), m("svg", {
|
|
553
|
-
ref_key: "svgRef",
|
|
554
|
-
ref: B,
|
|
555
|
-
xmlns: w(ie),
|
|
556
|
-
class: v({
|
|
557
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
558
|
-
"vue-data-ui-fulscreen--off": !Z.value
|
|
559
|
-
}),
|
|
560
|
-
width: "100%",
|
|
561
|
-
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
562
|
-
style: "background:transparent",
|
|
563
|
-
"aria-labelledby": Ht.value,
|
|
564
|
-
"aria-describedby": Ut.value
|
|
565
|
-
}, [
|
|
566
|
-
h("title", { id: Ht.value }, C(Gt.value), 9, Ie),
|
|
567
|
-
h("desc", { id: Ut.value }, C(Kt.value), 9, Le),
|
|
568
|
-
we(w(E)),
|
|
569
|
-
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
570
|
-
key: 0,
|
|
571
|
-
x: 0,
|
|
572
|
-
y: 0,
|
|
573
|
-
width: Y.value.width,
|
|
574
|
-
height: Y.value.height,
|
|
575
|
-
style: { pointerEvents: "none" }
|
|
576
|
-
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Re)) : p("", !0),
|
|
577
|
-
h("defs", null, [h("clipPath", {
|
|
578
|
-
id: `vueUiPill-${O.value}`,
|
|
579
|
-
clipPathUnits: "userSpaceOnUse"
|
|
580
|
-
}, [h("rect", {
|
|
581
|
-
x: Y.value.left,
|
|
582
|
-
y: Y.value.top,
|
|
583
|
-
width: Y.value.thermoWidth,
|
|
584
|
-
height: Y.value.thermoHeight,
|
|
585
|
-
rx: Y.value.thermoWidth / 2,
|
|
586
|
-
ry: Y.value.thermoWidth / 2
|
|
587
|
-
}, null, 8, Be)], 8, ze), (b(!0), m(u, null, Oe(jt.value, (e, t) => (b(), f(_e, {
|
|
588
|
-
t: "linear",
|
|
589
|
-
id: `vueUiThermometerGradient_${t}_${O.value}`,
|
|
590
|
-
key: `t_${t}_${O.value}`,
|
|
591
|
-
x1: "0%",
|
|
592
|
-
y1: "0%",
|
|
593
|
-
x2: "100%",
|
|
594
|
-
y2: "0%",
|
|
595
|
-
stops: [
|
|
596
|
-
[
|
|
597
|
-
"0%",
|
|
598
|
-
e.color,
|
|
599
|
-
1
|
|
600
|
-
],
|
|
601
|
-
[
|
|
602
|
-
"50%",
|
|
603
|
-
w(ae)(e.color, 100 - P.value.style.chart.graduations.gradient.intensity),
|
|
604
|
-
1
|
|
605
|
-
],
|
|
606
|
-
[
|
|
607
|
-
"100%",
|
|
608
|
-
e.color,
|
|
609
|
-
1
|
|
610
|
-
]
|
|
611
|
-
]
|
|
612
|
-
}, null, 8, ["id", "stops"]))), 128))]),
|
|
613
|
-
h("g", { "clip-path": `url(#vueUiPill-${O.value})` }, [
|
|
614
|
-
h("rect", {
|
|
615
|
-
x: Y.value.left,
|
|
616
|
-
y: Y.value.top,
|
|
617
|
-
height: Y.value.thermoHeight,
|
|
618
|
-
width: Y.value.thermoWidth,
|
|
619
|
-
fill: "#FFFFFF"
|
|
620
|
-
}, null, 8, He),
|
|
621
|
-
(b(!0), m(u, null, Oe(jt.value, (e, t) => (b(), m("g", { key: `graduation_${t}` }, [
|
|
622
|
-
h("rect", {
|
|
623
|
-
x: e.x,
|
|
624
|
-
y: e.y,
|
|
625
|
-
height: e.height,
|
|
626
|
-
width: Y.value.thermoWidth,
|
|
627
|
-
fill: P.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${t}_${O.value})` : e.color,
|
|
628
|
-
"shape-rendering": "crispEdges"
|
|
629
|
-
}, null, 8, Ue),
|
|
630
|
-
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
631
|
-
key: 0,
|
|
632
|
-
x1: e.x,
|
|
633
|
-
x2: e.x + 10,
|
|
634
|
-
y1: e.y,
|
|
635
|
-
y2: e.y,
|
|
636
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth,
|
|
637
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
638
|
-
"stroke-linecap": "round"
|
|
639
|
-
}, null, 8, We)) : p("", !0),
|
|
640
|
-
P.value.style.chart.graduations.showIntermediate ? (b(), m(u, { key: 1 }, [
|
|
641
|
-
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
642
|
-
key: 0,
|
|
643
|
-
x1: e.x,
|
|
644
|
-
x2: e.x + 5,
|
|
645
|
-
y1: e.halfY,
|
|
646
|
-
y2: e.halfY,
|
|
647
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
648
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
649
|
-
"stroke-linecap": "round"
|
|
650
|
-
}, null, 8, Ge)) : p("", !0),
|
|
651
|
-
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
652
|
-
key: 1,
|
|
653
|
-
x1: e.x,
|
|
654
|
-
x2: e.x + 2.5,
|
|
655
|
-
y1: e.qYLess,
|
|
656
|
-
y2: e.qYLess,
|
|
657
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
658
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
659
|
-
"stroke-linecap": "round"
|
|
660
|
-
}, null, 8, Ke)) : p("", !0),
|
|
661
|
-
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
662
|
-
key: 2,
|
|
663
|
-
x1: e.x,
|
|
664
|
-
x2: e.x + 2.5,
|
|
665
|
-
y1: e.qYMore,
|
|
666
|
-
y2: e.qYMore,
|
|
667
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
668
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
669
|
-
"stroke-linecap": "round"
|
|
670
|
-
}, null, 8, qe)) : p("", !0)
|
|
671
|
-
], 64)) : p("", !0),
|
|
672
|
-
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
673
|
-
key: 2,
|
|
674
|
-
x1: Y.value.right,
|
|
675
|
-
x2: Y.value.right - 10,
|
|
676
|
-
y1: e.y,
|
|
677
|
-
y2: e.y,
|
|
678
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth,
|
|
679
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
680
|
-
"stroke-linecap": "round"
|
|
681
|
-
}, null, 8, Je)) : p("", !0),
|
|
682
|
-
P.value.style.chart.graduations.showIntermediate ? (b(), m(u, { key: 3 }, [
|
|
683
|
-
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
684
|
-
key: 0,
|
|
685
|
-
x1: Y.value.right,
|
|
686
|
-
x2: Y.value.right - 5,
|
|
687
|
-
y1: e.halfY,
|
|
688
|
-
y2: e.halfY,
|
|
689
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
690
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
691
|
-
"stroke-linecap": "round"
|
|
692
|
-
}, null, 8, Ye)) : p("", !0),
|
|
693
|
-
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
694
|
-
key: 1,
|
|
695
|
-
x1: Y.value.right,
|
|
696
|
-
x2: Y.value.right - 2.5,
|
|
697
|
-
y1: e.qYLess,
|
|
698
|
-
y2: e.qYLess,
|
|
699
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
700
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
701
|
-
"stroke-linecap": "round"
|
|
702
|
-
}, null, 8, Xe)) : p("", !0),
|
|
703
|
-
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
704
|
-
key: 2,
|
|
705
|
-
x1: Y.value.right,
|
|
706
|
-
x2: Y.value.right - 2.5,
|
|
707
|
-
y1: e.qYMore,
|
|
708
|
-
y2: e.qYMore,
|
|
709
|
-
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
710
|
-
stroke: P.value.style.chart.graduations.stroke,
|
|
711
|
-
"stroke-linecap": "round"
|
|
712
|
-
}, null, 8, Ze)) : p("", !0)
|
|
713
|
-
], 64)) : p("", !0)
|
|
714
|
-
]))), 128)),
|
|
715
|
-
h("rect", {
|
|
716
|
-
class: v({ "vue-ui-thermometer-temperature": P.value.style.chart.animation.use }),
|
|
717
|
-
x: Y.value.left,
|
|
718
|
-
y: Y.value.top,
|
|
719
|
-
height: X.value,
|
|
720
|
-
width: Y.value.thermoWidth,
|
|
721
|
-
fill: "#FFFFFF66"
|
|
722
|
-
}, null, 10, Qe)
|
|
723
|
-
], 8, Ve),
|
|
724
|
-
P.value.style.chart.label.show ? (b(), m("g", {
|
|
725
|
-
key: 1,
|
|
726
|
-
role: "status",
|
|
727
|
-
"aria-live": "polite",
|
|
728
|
-
"aria-label": w(L) ? "Loading data" : Wt.value
|
|
729
|
-
}, [w(L) ? (b(), m("rect", {
|
|
730
|
-
key: 0,
|
|
731
|
-
x: Y.value.left - 60,
|
|
732
|
-
y: X.value + Y.value.top - $.value / 2,
|
|
733
|
-
width: 50,
|
|
734
|
-
height: $.value,
|
|
735
|
-
fill: "#6A6A6A40",
|
|
736
|
-
rx: "3"
|
|
737
|
-
}, null, 8, et)) : (b(), m("text", {
|
|
738
|
-
key: 1,
|
|
739
|
-
"aria-hidden": "true",
|
|
740
|
-
class: v({
|
|
741
|
-
"vue-ui-thermometer-temperature-value": P.value.style.chart.animation.use,
|
|
742
|
-
"vue-ui-thermometer-label": !0
|
|
743
|
-
}),
|
|
744
|
-
y: X.value + Y.value.top + $.value / 3,
|
|
745
|
-
x: Y.value.left - 10,
|
|
746
|
-
"text-anchor": "end",
|
|
747
|
-
fill: P.value.style.chart.label.color,
|
|
748
|
-
"font-size": $.value,
|
|
749
|
-
"font-weight": P.value.style.chart.label.bold ? "bold" : "normal"
|
|
750
|
-
}, C(Wt.value), 11, tt))], 8, $e)) : p("", !0),
|
|
751
|
-
S(e.$slots, "svg", { svg: {
|
|
752
|
-
...Et.value,
|
|
753
|
-
isPrintingImg: w(H) || w(U) || M.value,
|
|
754
|
-
isPrintingSvg: N.value
|
|
755
|
-
} }, void 0, !0)
|
|
756
|
-
], 10, Fe)),
|
|
757
|
-
e.$slots.watermark ? (b(), m("div", nt, [S(e.$slots, "watermark", y(_({ isPrinting: w(H) || w(U) || M.value || N.value })), void 0, !0)])) : p("", !0),
|
|
758
|
-
e.$slots.source ? (b(), m("div", {
|
|
759
|
-
key: 5,
|
|
760
|
-
ref_key: "source",
|
|
761
|
-
ref: pt,
|
|
762
|
-
dir: "auto"
|
|
763
|
-
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
764
|
-
S(e.$slots, "skeleton", {}, () => [w(L) ? (b(), f(le, { key: 0 })) : p("", !0)], !0)
|
|
765
|
-
], 46, Ne));
|
|
766
|
-
}
|
|
767
|
-
}, [["__scopeId", "data-v-b5f93e40"]]);
|
|
768
|
-
//#endregion
|
|
769
|
-
export { Me as n, E as t };
|