vue-data-ui 3.22.9 → 3.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- 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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -0,0 +1,770 @@
|
|
|
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-CnHx5WfV.js";
|
|
3
|
+
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as se } from "./usePrinter-B-X_Pub0.js";
|
|
5
|
+
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as ue } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as l } from "./useNestedProp-D8NuRneO.js";
|
|
8
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as fe } from "./img-CNdXiUfZ.js";
|
|
10
|
+
import { n as pe } from "./Title-Cr3jP7Qd.js";
|
|
11
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as he } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as ge } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as _e } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
+
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
+
import { t as be } from "./useAutoSizeLabelsInsideViewbox-BUPt2iaP.js";
|
|
18
|
+
import { t as xe } from "./usePrefersMotion-BC-CsqR1.js";
|
|
19
|
+
import { t as Se } from "./vue_ui_thermometer-DxgqWKlE.js";
|
|
20
|
+
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";
|
|
21
|
+
//#region src/components/vue-ui-thermometer.vue
|
|
22
|
+
var Me = /* @__PURE__ */ e({ default: () => E }), Ne = ["id"], Pe = {
|
|
23
|
+
key: 1,
|
|
24
|
+
ref: "noTitle",
|
|
25
|
+
class: "vue-data-ui-no-title-space",
|
|
26
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
27
|
+
}, Fe = [
|
|
28
|
+
"xmlns",
|
|
29
|
+
"viewBox",
|
|
30
|
+
"aria-labelledby",
|
|
31
|
+
"aria-describedby"
|
|
32
|
+
], Ie = ["id"], Le = ["id"], Re = ["width", "height"], ze = ["id"], Be = [
|
|
33
|
+
"x",
|
|
34
|
+
"y",
|
|
35
|
+
"width",
|
|
36
|
+
"height",
|
|
37
|
+
"rx",
|
|
38
|
+
"ry"
|
|
39
|
+
], Ve = ["clip-path"], He = [
|
|
40
|
+
"x",
|
|
41
|
+
"y",
|
|
42
|
+
"height",
|
|
43
|
+
"width"
|
|
44
|
+
], Ue = [
|
|
45
|
+
"x",
|
|
46
|
+
"y",
|
|
47
|
+
"height",
|
|
48
|
+
"width",
|
|
49
|
+
"fill"
|
|
50
|
+
], We = [
|
|
51
|
+
"x1",
|
|
52
|
+
"x2",
|
|
53
|
+
"y1",
|
|
54
|
+
"y2",
|
|
55
|
+
"stroke-width",
|
|
56
|
+
"stroke"
|
|
57
|
+
], Ge = [
|
|
58
|
+
"x1",
|
|
59
|
+
"x2",
|
|
60
|
+
"y1",
|
|
61
|
+
"y2",
|
|
62
|
+
"stroke-width",
|
|
63
|
+
"stroke"
|
|
64
|
+
], Ke = [
|
|
65
|
+
"x1",
|
|
66
|
+
"x2",
|
|
67
|
+
"y1",
|
|
68
|
+
"y2",
|
|
69
|
+
"stroke-width",
|
|
70
|
+
"stroke"
|
|
71
|
+
], qe = [
|
|
72
|
+
"x1",
|
|
73
|
+
"x2",
|
|
74
|
+
"y1",
|
|
75
|
+
"y2",
|
|
76
|
+
"stroke-width",
|
|
77
|
+
"stroke"
|
|
78
|
+
], Je = [
|
|
79
|
+
"x1",
|
|
80
|
+
"x2",
|
|
81
|
+
"y1",
|
|
82
|
+
"y2",
|
|
83
|
+
"stroke-width",
|
|
84
|
+
"stroke"
|
|
85
|
+
], Ye = [
|
|
86
|
+
"x1",
|
|
87
|
+
"x2",
|
|
88
|
+
"y1",
|
|
89
|
+
"y2",
|
|
90
|
+
"stroke-width",
|
|
91
|
+
"stroke"
|
|
92
|
+
], Xe = [
|
|
93
|
+
"x1",
|
|
94
|
+
"x2",
|
|
95
|
+
"y1",
|
|
96
|
+
"y2",
|
|
97
|
+
"stroke-width",
|
|
98
|
+
"stroke"
|
|
99
|
+
], Ze = [
|
|
100
|
+
"x1",
|
|
101
|
+
"x2",
|
|
102
|
+
"y1",
|
|
103
|
+
"y2",
|
|
104
|
+
"stroke-width",
|
|
105
|
+
"stroke"
|
|
106
|
+
], Qe = [
|
|
107
|
+
"x",
|
|
108
|
+
"y",
|
|
109
|
+
"height",
|
|
110
|
+
"width"
|
|
111
|
+
], $e = ["aria-label"], et = [
|
|
112
|
+
"x",
|
|
113
|
+
"y",
|
|
114
|
+
"height"
|
|
115
|
+
], tt = [
|
|
116
|
+
"y",
|
|
117
|
+
"x",
|
|
118
|
+
"fill",
|
|
119
|
+
"font-size",
|
|
120
|
+
"font-weight"
|
|
121
|
+
], nt = {
|
|
122
|
+
key: 4,
|
|
123
|
+
class: "vue-data-ui-watermark"
|
|
124
|
+
}, E = /*#__PURE__*/ me({
|
|
125
|
+
__name: "vue-ui-thermometer",
|
|
126
|
+
props: {
|
|
127
|
+
dataset: {
|
|
128
|
+
type: Object,
|
|
129
|
+
default() {
|
|
130
|
+
return {};
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
config: {
|
|
134
|
+
type: Object,
|
|
135
|
+
default() {
|
|
136
|
+
return {};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
emits: ["copyAlt"],
|
|
141
|
+
setup(e, { expose: me, emit: Me }) {
|
|
142
|
+
Ae((e) => ({
|
|
143
|
+
v31c59d24: kt.value,
|
|
144
|
+
v2daaf640: Ot.value,
|
|
145
|
+
f9585c66: Dt.value
|
|
146
|
+
}));
|
|
147
|
+
let E = g(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), rt = g(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), it = g(() => import("./UserOptions-BUQOnoPR.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);
|
|
148
|
+
De(() => {
|
|
149
|
+
yt();
|
|
150
|
+
});
|
|
151
|
+
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({
|
|
152
|
+
defaultConfig: {
|
|
153
|
+
userOptions: { show: !1 },
|
|
154
|
+
style: { chart: {
|
|
155
|
+
animation: { use: !1 },
|
|
156
|
+
backgroundColor: "#99999930",
|
|
157
|
+
graduations: { stroke: "#6A6A6A" }
|
|
158
|
+
} }
|
|
159
|
+
},
|
|
160
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
161
|
+
})), { loading: L, FINAL_DATASET: R } = ce({
|
|
162
|
+
...ke(D),
|
|
163
|
+
FINAL_CONFIG: P,
|
|
164
|
+
prepareConfig: V,
|
|
165
|
+
skeletonDataset: D.config?.skeletonDataset ?? {
|
|
166
|
+
value: 0,
|
|
167
|
+
from: -100,
|
|
168
|
+
to: 100,
|
|
169
|
+
steps: 20,
|
|
170
|
+
colors: {
|
|
171
|
+
from: "#A1A1A1",
|
|
172
|
+
to: "#CACACA"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
skeletonConfig: re({
|
|
176
|
+
defaultConfig: P.value,
|
|
177
|
+
userConfig: _t.value
|
|
178
|
+
})
|
|
179
|
+
}), vt = d(() => !!P.value.debug);
|
|
180
|
+
function yt() {
|
|
181
|
+
if (t(D.dataset) ? o({
|
|
182
|
+
componentName: "VueUiThermometer",
|
|
183
|
+
type: "dataset",
|
|
184
|
+
debug: vt.value
|
|
185
|
+
}) : te({
|
|
186
|
+
datasetObject: D.dataset,
|
|
187
|
+
requiredAttributes: [
|
|
188
|
+
"value",
|
|
189
|
+
"from",
|
|
190
|
+
"to"
|
|
191
|
+
]
|
|
192
|
+
}).forEach((e) => {
|
|
193
|
+
o({
|
|
194
|
+
componentName: "VueUiThermometer",
|
|
195
|
+
type: "datasetAttribute",
|
|
196
|
+
property: e,
|
|
197
|
+
debug: vt.value
|
|
198
|
+
});
|
|
199
|
+
}), P.value.responsive) {
|
|
200
|
+
let e = he(() => {
|
|
201
|
+
let { width: e, height: t } = ge({
|
|
202
|
+
chart: k.value,
|
|
203
|
+
title: P.value.style.title.text ? ft.value : null,
|
|
204
|
+
source: pt.value
|
|
205
|
+
});
|
|
206
|
+
requestAnimationFrame(() => {
|
|
207
|
+
F.value = Math.max(.1, t - 12), I.value = e, Ft();
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
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);
|
|
211
|
+
}
|
|
212
|
+
Ft();
|
|
213
|
+
}
|
|
214
|
+
let { userOptionsVisible: z, setUserOptionsVisibility: bt, keepUserOptionState: xt } = ve({ config: P.value }), { svgRef: B } = ye({ config: P.value.style.title });
|
|
215
|
+
function V() {
|
|
216
|
+
let e = l({
|
|
217
|
+
userConfig: D.config,
|
|
218
|
+
defaultConfig: at
|
|
219
|
+
}), t = e.theme;
|
|
220
|
+
if (!t) return e;
|
|
221
|
+
if (!ot.value(e)) return st(e), e;
|
|
222
|
+
let n = l({
|
|
223
|
+
userConfig: Se[t] || D.config,
|
|
224
|
+
defaultConfig: e
|
|
225
|
+
}), i = l({
|
|
226
|
+
userConfig: D.config,
|
|
227
|
+
defaultConfig: n
|
|
228
|
+
});
|
|
229
|
+
return {
|
|
230
|
+
...i,
|
|
231
|
+
customPalette: i.customPalette.length ? i.customPalette : r[t] || a
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
je(() => D.config, (e) => {
|
|
235
|
+
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;
|
|
236
|
+
}, { deep: !0 });
|
|
237
|
+
let { isPrinting: H, isImaging: U, generatePdf: St, generateImage: Ct } = se({
|
|
238
|
+
elementId: `thermometer__${O.value}`,
|
|
239
|
+
fileName: P.value.style.title.text || "vue-ui-thermometer",
|
|
240
|
+
options: P.value.userOptions.print
|
|
241
|
+
}), wt = d(() => P.value.userOptions.show && !P.value.style.title.text), W = d(() => n(P.value.customPalette)), G = d(() => R.value.steps || 10);
|
|
242
|
+
function K(e, t, n) {
|
|
243
|
+
let r = [], i = Tt(e), a = Tt(t);
|
|
244
|
+
for (let e = 0; e < n; e += 1) {
|
|
245
|
+
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)}`;
|
|
246
|
+
r.push(te);
|
|
247
|
+
}
|
|
248
|
+
return r;
|
|
249
|
+
}
|
|
250
|
+
function Tt(e) {
|
|
251
|
+
let t = e.slice(1);
|
|
252
|
+
return {
|
|
253
|
+
red: parseInt(t.slice(0, 2), 16),
|
|
254
|
+
green: parseInt(t.slice(2, 4), 16),
|
|
255
|
+
blue: parseInt(t.slice(4, 6), 16)
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
function q(e, t, n, r) {
|
|
259
|
+
return Math.round(e + (t - e) * n / r);
|
|
260
|
+
}
|
|
261
|
+
function J(e) {
|
|
262
|
+
return e.toString(16).padStart(2, "0");
|
|
263
|
+
}
|
|
264
|
+
let Y = d(() => {
|
|
265
|
+
let e = Math.max(.1, I.value), t = Math.max(.1, F.value), n = P.value.style.chart.padding;
|
|
266
|
+
return {
|
|
267
|
+
width: e,
|
|
268
|
+
left: e / 2 - P.value.style.chart.thermometer.width / 2,
|
|
269
|
+
right: e / 2 + P.value.style.chart.thermometer.width / 2,
|
|
270
|
+
top: n.top,
|
|
271
|
+
bottom: t - n.bottom - n.top,
|
|
272
|
+
height: t,
|
|
273
|
+
thermoHeight: t - n.top - n.bottom,
|
|
274
|
+
thermoWidth: P.value.style.chart.thermometer.width
|
|
275
|
+
};
|
|
276
|
+
}), Et = d(() => Y.value), X = d(() => {
|
|
277
|
+
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;
|
|
278
|
+
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;
|
|
279
|
+
}), 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(() => {
|
|
280
|
+
if (R.value.colors) {
|
|
281
|
+
if (!R.value.colors.from) return K(W.value[0] || a[0], s(R.value.colors.to), G.value || 10);
|
|
282
|
+
if (!R.value.colors.to) return K(s(R.value.colors.from), W.value[1] || a[1], G.value || 10);
|
|
283
|
+
} else return K(W.value[1] || a[1], W.value[0] || a[0], G.value || 10);
|
|
284
|
+
return K(s(R.value.colors.from), s(R.value.colors.to), G.value || 10);
|
|
285
|
+
}), jt = d(() => {
|
|
286
|
+
let e = [], t = 0, n = Y.value.thermoHeight;
|
|
287
|
+
for (let r = 0; r < n - 1; r += n / G.value) e.push({
|
|
288
|
+
x: Y.value.left,
|
|
289
|
+
y: Y.value.top + r,
|
|
290
|
+
qYLess: Y.value.top + r + n / G.value / 4,
|
|
291
|
+
halfY: Y.value.top + r + n / G.value / 2,
|
|
292
|
+
qYMore: Y.value.top + r + n / G.value / 4 * 3,
|
|
293
|
+
color: At.value[t],
|
|
294
|
+
height: Math.max(.1, n / G.value)
|
|
295
|
+
}), t += 1;
|
|
296
|
+
return e;
|
|
297
|
+
}), Z = x(!1);
|
|
298
|
+
function Mt(e) {
|
|
299
|
+
Z.value = e, ut.value += 1;
|
|
300
|
+
}
|
|
301
|
+
let Q = x(!1);
|
|
302
|
+
function Nt() {
|
|
303
|
+
Q.value = !Q.value;
|
|
304
|
+
}
|
|
305
|
+
async function Pt({ scale: e = 2 } = {}) {
|
|
306
|
+
if (!k.value) return;
|
|
307
|
+
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
308
|
+
domElement: k.value,
|
|
309
|
+
base64: !0,
|
|
310
|
+
img: !0,
|
|
311
|
+
scale: e
|
|
312
|
+
});
|
|
313
|
+
return {
|
|
314
|
+
imageUri: i,
|
|
315
|
+
base64: a,
|
|
316
|
+
title: P.value.style.title.text,
|
|
317
|
+
width: t,
|
|
318
|
+
height: n,
|
|
319
|
+
aspectRatio: r
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
let $ = d({
|
|
323
|
+
get: () => P.value.style.chart.label.fontSize,
|
|
324
|
+
set: (e) => e
|
|
325
|
+
}), { autoSizeLabels: Ft } = be({
|
|
326
|
+
svgRef: B,
|
|
327
|
+
fontSize: P.value.style.chart.label.fontSize,
|
|
328
|
+
minFontSize: P.value.style.chart.label.minFontSize,
|
|
329
|
+
sizeRef: $,
|
|
330
|
+
labelClass: ".vue-ui-thermometer-label"
|
|
331
|
+
}), It = d(() => P.value.style.chart.backgroundColor), { exportSvg: Lt, getSvg: Rt } = ue({
|
|
332
|
+
svg: B,
|
|
333
|
+
title: d(() => P.value.style.title),
|
|
334
|
+
backgroundColor: It
|
|
335
|
+
});
|
|
336
|
+
async function zt({ isCb: e }) {
|
|
337
|
+
N.value = !0, await Te();
|
|
338
|
+
try {
|
|
339
|
+
if (e) {
|
|
340
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Rt();
|
|
341
|
+
await Promise.resolve(P.value.userOptions.callbacks.svg({
|
|
342
|
+
blob: e,
|
|
343
|
+
url: t,
|
|
344
|
+
text: n,
|
|
345
|
+
dataUrl: r
|
|
346
|
+
}));
|
|
347
|
+
} else await Promise.resolve(Lt());
|
|
348
|
+
} finally {
|
|
349
|
+
N.value = !1;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
function Bt(e) {
|
|
353
|
+
if (e?.stage === "start") {
|
|
354
|
+
M.value = !0;
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
if (e?.stage === "end") {
|
|
358
|
+
M.value = !1;
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
Ct();
|
|
362
|
+
}
|
|
363
|
+
async function Vt() {
|
|
364
|
+
if (lt("copyAlt", {
|
|
365
|
+
config: P.value,
|
|
366
|
+
dataset: R.value
|
|
367
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
368
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
372
|
+
config: P.value,
|
|
373
|
+
dataset: R.value
|
|
374
|
+
}));
|
|
375
|
+
}
|
|
376
|
+
let Ht = d(() => `${O.value}-title`), Ut = d(() => `${O.value}-desc`), Wt = d(() => ne(P.value.style.chart.label.formatter, R.value.value, ee({
|
|
377
|
+
p: P.value.style.chart.label.prefix,
|
|
378
|
+
v: R.value.value,
|
|
379
|
+
s: P.value.style.chart.label.suffix,
|
|
380
|
+
r: P.value.style.chart.label.rounding
|
|
381
|
+
}), { datapoint: R.value })), Gt = d(() => P.value.style.title.text || ""), Kt = d(() => {
|
|
382
|
+
if (L.value) return "...";
|
|
383
|
+
let e = c(R.value.from), t = c(R.value.to);
|
|
384
|
+
return `Thermometer value: ${Wt.value}. Range: ${e} to ${t}.`;
|
|
385
|
+
});
|
|
386
|
+
return me({
|
|
387
|
+
getImage: Pt,
|
|
388
|
+
generatePdf: St,
|
|
389
|
+
generateImage: Ct,
|
|
390
|
+
generateSvg: zt,
|
|
391
|
+
toggleAnnotator: Nt,
|
|
392
|
+
toggleFullscreen: Mt,
|
|
393
|
+
copyAlt: Vt
|
|
394
|
+
}), (e, t) => (b(), m("div", {
|
|
395
|
+
ref_key: "thermoChart",
|
|
396
|
+
ref: k,
|
|
397
|
+
class: v(`vue-data-ui-component vue-ui-thermometer ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
398
|
+
style: Ee(`width:100%;background:${P.value.style.chart.backgroundColor};color:${P.value.style.chart.color};font-family:${P.value.style.fontFamily}`),
|
|
399
|
+
id: `thermometer__${O.value}`,
|
|
400
|
+
onMouseenter: t[0] ||= () => w(bt)(!0),
|
|
401
|
+
onMouseleave: t[1] ||= () => w(bt)(!1)
|
|
402
|
+
}, [
|
|
403
|
+
P.value.userOptions.buttons.annotator ? (b(), f(w(rt), {
|
|
404
|
+
key: 0,
|
|
405
|
+
svgRef: w(B),
|
|
406
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
407
|
+
color: P.value.style.chart.color,
|
|
408
|
+
active: Q.value,
|
|
409
|
+
isCursorPointer: gt.value,
|
|
410
|
+
onClose: Nt
|
|
411
|
+
}, {
|
|
412
|
+
"annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
413
|
+
"annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
414
|
+
"annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
415
|
+
"annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
416
|
+
"annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
417
|
+
"annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
418
|
+
_: 3
|
|
419
|
+
}, 8, [
|
|
420
|
+
"svgRef",
|
|
421
|
+
"backgroundColor",
|
|
422
|
+
"color",
|
|
423
|
+
"active",
|
|
424
|
+
"isCursorPointer"
|
|
425
|
+
])) : p("", !0),
|
|
426
|
+
wt.value ? (b(), m("div", Pe, null, 512)) : p("", !0),
|
|
427
|
+
P.value.style.title.text ? (b(), m("div", {
|
|
428
|
+
key: 2,
|
|
429
|
+
ref_key: "chartTitle",
|
|
430
|
+
ref: ft,
|
|
431
|
+
style: "width:100%"
|
|
432
|
+
}, [(b(), f(pe, {
|
|
433
|
+
key: `title_${dt.value}`,
|
|
434
|
+
config: {
|
|
435
|
+
title: {
|
|
436
|
+
cy: "thermometer-div-title",
|
|
437
|
+
...P.value.style.title
|
|
438
|
+
},
|
|
439
|
+
subtitle: {
|
|
440
|
+
cy: "thermometer-div-subtitle",
|
|
441
|
+
...P.value.style.title.subtitle
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
445
|
+
P.value.userOptions.show && mt.value && (w(xt) || w(z)) ? (b(), f(w(it), {
|
|
446
|
+
ref: "details",
|
|
447
|
+
key: `user_options_${ut.value}`,
|
|
448
|
+
backgroundColor: P.value.style.chart.backgroundColor,
|
|
449
|
+
color: P.value.style.chart.color,
|
|
450
|
+
isImaging: w(U),
|
|
451
|
+
isPrinting: w(H),
|
|
452
|
+
uid: O.value,
|
|
453
|
+
hasPdf: P.value.userOptions.buttons.pdf,
|
|
454
|
+
hasImg: P.value.userOptions.buttons.img,
|
|
455
|
+
hasSvg: P.value.userOptions.buttons.svg,
|
|
456
|
+
hasFullscreen: P.value.userOptions.buttons.fullscreen,
|
|
457
|
+
hasAltCopy: P.value.userOptions.buttons.altCopy,
|
|
458
|
+
hasXls: !1,
|
|
459
|
+
isFullscreen: Z.value,
|
|
460
|
+
titles: { ...P.value.userOptions.buttonTitles },
|
|
461
|
+
chartElement: k.value,
|
|
462
|
+
position: P.value.userOptions.position,
|
|
463
|
+
hasAnnotator: P.value.userOptions.buttons.annotator,
|
|
464
|
+
isAnnotation: Q.value,
|
|
465
|
+
callbacks: P.value.userOptions.callbacks,
|
|
466
|
+
printScale: P.value.userOptions.print.scale,
|
|
467
|
+
isCursorPointer: gt.value,
|
|
468
|
+
onToggleFullscreen: Mt,
|
|
469
|
+
onGeneratePdf: w(St),
|
|
470
|
+
onGenerateImage: Bt,
|
|
471
|
+
onGenerateSvg: zt,
|
|
472
|
+
onToggleAnnotator: Nt,
|
|
473
|
+
onCopyAlt: Vt,
|
|
474
|
+
style: Ee({ visibility: w(xt) ? w(z) ? "visible" : "hidden" : "visible" })
|
|
475
|
+
}, Ce({ _: 2 }, [
|
|
476
|
+
e.$slots.menuIcon ? {
|
|
477
|
+
name: "menuIcon",
|
|
478
|
+
fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", y(_({
|
|
479
|
+
isOpen: t,
|
|
480
|
+
color: n
|
|
481
|
+
})), void 0, !0)]),
|
|
482
|
+
key: "0"
|
|
483
|
+
} : void 0,
|
|
484
|
+
e.$slots.optionPdf ? {
|
|
485
|
+
name: "optionPdf",
|
|
486
|
+
fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
487
|
+
key: "1"
|
|
488
|
+
} : void 0,
|
|
489
|
+
e.$slots.optionImg ? {
|
|
490
|
+
name: "optionImg",
|
|
491
|
+
fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
492
|
+
key: "2"
|
|
493
|
+
} : void 0,
|
|
494
|
+
e.$slots.optionSvg ? {
|
|
495
|
+
name: "optionSvg",
|
|
496
|
+
fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
497
|
+
key: "3"
|
|
498
|
+
} : void 0,
|
|
499
|
+
e.$slots.optionFullscreen ? {
|
|
500
|
+
name: "optionFullscreen",
|
|
501
|
+
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", y(_({
|
|
502
|
+
toggleFullscreen: t,
|
|
503
|
+
isFullscreen: n
|
|
504
|
+
})), void 0, !0)]),
|
|
505
|
+
key: "4"
|
|
506
|
+
} : void 0,
|
|
507
|
+
e.$slots.optionAnnotator ? {
|
|
508
|
+
name: "optionAnnotator",
|
|
509
|
+
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", y(_({
|
|
510
|
+
toggleAnnotator: t,
|
|
511
|
+
isAnnotator: n
|
|
512
|
+
})), void 0, !0)]),
|
|
513
|
+
key: "5"
|
|
514
|
+
} : void 0,
|
|
515
|
+
e.$slots.optionAltCopy ? {
|
|
516
|
+
name: "optionAltCopy",
|
|
517
|
+
fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
518
|
+
key: "6"
|
|
519
|
+
} : void 0,
|
|
520
|
+
e.$slots["custom-menu-before"] ? {
|
|
521
|
+
name: "custom-menu-before",
|
|
522
|
+
fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
523
|
+
key: "7"
|
|
524
|
+
} : void 0,
|
|
525
|
+
e.$slots["custom-menu-after"] ? {
|
|
526
|
+
name: "custom-menu-after",
|
|
527
|
+
fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
528
|
+
key: "8"
|
|
529
|
+
} : void 0
|
|
530
|
+
]), 1032, [
|
|
531
|
+
"backgroundColor",
|
|
532
|
+
"color",
|
|
533
|
+
"isImaging",
|
|
534
|
+
"isPrinting",
|
|
535
|
+
"uid",
|
|
536
|
+
"hasPdf",
|
|
537
|
+
"hasImg",
|
|
538
|
+
"hasSvg",
|
|
539
|
+
"hasFullscreen",
|
|
540
|
+
"hasAltCopy",
|
|
541
|
+
"isFullscreen",
|
|
542
|
+
"titles",
|
|
543
|
+
"chartElement",
|
|
544
|
+
"position",
|
|
545
|
+
"hasAnnotator",
|
|
546
|
+
"isAnnotation",
|
|
547
|
+
"callbacks",
|
|
548
|
+
"printScale",
|
|
549
|
+
"isCursorPointer",
|
|
550
|
+
"onGeneratePdf",
|
|
551
|
+
"style"
|
|
552
|
+
])) : p("", !0),
|
|
553
|
+
(b(), m("svg", {
|
|
554
|
+
ref_key: "svgRef",
|
|
555
|
+
ref: B,
|
|
556
|
+
xmlns: w(ie),
|
|
557
|
+
class: v({
|
|
558
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
559
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
560
|
+
}),
|
|
561
|
+
width: "100%",
|
|
562
|
+
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
563
|
+
style: "background:transparent",
|
|
564
|
+
"aria-labelledby": Ht.value,
|
|
565
|
+
"aria-describedby": Ut.value
|
|
566
|
+
}, [
|
|
567
|
+
h("title", { id: Ht.value }, C(Gt.value), 9, Ie),
|
|
568
|
+
h("desc", { id: Ut.value }, C(Kt.value), 9, Le),
|
|
569
|
+
we(w(E)),
|
|
570
|
+
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
571
|
+
key: 0,
|
|
572
|
+
x: 0,
|
|
573
|
+
y: 0,
|
|
574
|
+
width: Y.value.width,
|
|
575
|
+
height: Y.value.height,
|
|
576
|
+
style: { pointerEvents: "none" }
|
|
577
|
+
}, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Re)) : p("", !0),
|
|
578
|
+
h("defs", null, [h("clipPath", {
|
|
579
|
+
id: `vueUiPill-${O.value}`,
|
|
580
|
+
clipPathUnits: "userSpaceOnUse"
|
|
581
|
+
}, [h("rect", {
|
|
582
|
+
x: Y.value.left,
|
|
583
|
+
y: Y.value.top,
|
|
584
|
+
width: Y.value.thermoWidth,
|
|
585
|
+
height: Y.value.thermoHeight,
|
|
586
|
+
rx: Y.value.thermoWidth / 2,
|
|
587
|
+
ry: Y.value.thermoWidth / 2
|
|
588
|
+
}, null, 8, Be)], 8, ze), (b(!0), m(u, null, Oe(jt.value, (e, t) => (b(), f(_e, {
|
|
589
|
+
t: "linear",
|
|
590
|
+
id: `vueUiThermometerGradient_${t}_${O.value}`,
|
|
591
|
+
key: `t_${t}_${O.value}`,
|
|
592
|
+
x1: "0%",
|
|
593
|
+
y1: "0%",
|
|
594
|
+
x2: "100%",
|
|
595
|
+
y2: "0%",
|
|
596
|
+
stops: [
|
|
597
|
+
[
|
|
598
|
+
"0%",
|
|
599
|
+
e.color,
|
|
600
|
+
1
|
|
601
|
+
],
|
|
602
|
+
[
|
|
603
|
+
"50%",
|
|
604
|
+
w(ae)(e.color, 100 - P.value.style.chart.graduations.gradient.intensity),
|
|
605
|
+
1
|
|
606
|
+
],
|
|
607
|
+
[
|
|
608
|
+
"100%",
|
|
609
|
+
e.color,
|
|
610
|
+
1
|
|
611
|
+
]
|
|
612
|
+
]
|
|
613
|
+
}, null, 8, ["id", "stops"]))), 128))]),
|
|
614
|
+
h("g", { "clip-path": `url(#vueUiPill-${O.value})` }, [
|
|
615
|
+
h("rect", {
|
|
616
|
+
x: Y.value.left,
|
|
617
|
+
y: Y.value.top,
|
|
618
|
+
height: Y.value.thermoHeight,
|
|
619
|
+
width: Y.value.thermoWidth,
|
|
620
|
+
fill: "#FFFFFF"
|
|
621
|
+
}, null, 8, He),
|
|
622
|
+
(b(!0), m(u, null, Oe(jt.value, (e, t) => (b(), m("g", { key: `graduation_${t}` }, [
|
|
623
|
+
h("rect", {
|
|
624
|
+
x: e.x,
|
|
625
|
+
y: e.y,
|
|
626
|
+
height: e.height,
|
|
627
|
+
width: Y.value.thermoWidth,
|
|
628
|
+
fill: P.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${t}_${O.value})` : e.color,
|
|
629
|
+
"shape-rendering": "crispEdges"
|
|
630
|
+
}, null, 8, Ue),
|
|
631
|
+
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
632
|
+
key: 0,
|
|
633
|
+
x1: e.x,
|
|
634
|
+
x2: e.x + 10,
|
|
635
|
+
y1: e.y,
|
|
636
|
+
y2: e.y,
|
|
637
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth,
|
|
638
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
639
|
+
"stroke-linecap": "round"
|
|
640
|
+
}, null, 8, We)) : p("", !0),
|
|
641
|
+
P.value.style.chart.graduations.showIntermediate ? (b(), m(u, { key: 1 }, [
|
|
642
|
+
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
643
|
+
key: 0,
|
|
644
|
+
x1: e.x,
|
|
645
|
+
x2: e.x + 5,
|
|
646
|
+
y1: e.halfY,
|
|
647
|
+
y2: e.halfY,
|
|
648
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
649
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
650
|
+
"stroke-linecap": "round"
|
|
651
|
+
}, null, 8, Ge)) : p("", !0),
|
|
652
|
+
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
653
|
+
key: 1,
|
|
654
|
+
x1: e.x,
|
|
655
|
+
x2: e.x + 2.5,
|
|
656
|
+
y1: e.qYLess,
|
|
657
|
+
y2: e.qYLess,
|
|
658
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
659
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
660
|
+
"stroke-linecap": "round"
|
|
661
|
+
}, null, 8, Ke)) : p("", !0),
|
|
662
|
+
P.value.style.chart.graduations.show && ["both", "left"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
663
|
+
key: 2,
|
|
664
|
+
x1: e.x,
|
|
665
|
+
x2: e.x + 2.5,
|
|
666
|
+
y1: e.qYMore,
|
|
667
|
+
y2: e.qYMore,
|
|
668
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
669
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
670
|
+
"stroke-linecap": "round"
|
|
671
|
+
}, null, 8, qe)) : p("", !0)
|
|
672
|
+
], 64)) : p("", !0),
|
|
673
|
+
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
674
|
+
key: 2,
|
|
675
|
+
x1: Y.value.right,
|
|
676
|
+
x2: Y.value.right - 10,
|
|
677
|
+
y1: e.y,
|
|
678
|
+
y2: e.y,
|
|
679
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth,
|
|
680
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
681
|
+
"stroke-linecap": "round"
|
|
682
|
+
}, null, 8, Je)) : p("", !0),
|
|
683
|
+
P.value.style.chart.graduations.showIntermediate ? (b(), m(u, { key: 3 }, [
|
|
684
|
+
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
685
|
+
key: 0,
|
|
686
|
+
x1: Y.value.right,
|
|
687
|
+
x2: Y.value.right - 5,
|
|
688
|
+
y1: e.halfY,
|
|
689
|
+
y2: e.halfY,
|
|
690
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
691
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
692
|
+
"stroke-linecap": "round"
|
|
693
|
+
}, null, 8, Ye)) : p("", !0),
|
|
694
|
+
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
695
|
+
key: 1,
|
|
696
|
+
x1: Y.value.right,
|
|
697
|
+
x2: Y.value.right - 2.5,
|
|
698
|
+
y1: e.qYLess,
|
|
699
|
+
y2: e.qYLess,
|
|
700
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
701
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
702
|
+
"stroke-linecap": "round"
|
|
703
|
+
}, null, 8, Xe)) : p("", !0),
|
|
704
|
+
P.value.style.chart.graduations.show && ["both", "right"].includes(P.value.style.chart.graduations.sides) ? (b(), m("line", {
|
|
705
|
+
key: 2,
|
|
706
|
+
x1: Y.value.right,
|
|
707
|
+
x2: Y.value.right - 2.5,
|
|
708
|
+
y1: e.qYMore,
|
|
709
|
+
y2: e.qYMore,
|
|
710
|
+
"stroke-width": P.value.style.chart.graduations.strokeWidth / 2,
|
|
711
|
+
stroke: P.value.style.chart.graduations.stroke,
|
|
712
|
+
"stroke-linecap": "round"
|
|
713
|
+
}, null, 8, Ze)) : p("", !0)
|
|
714
|
+
], 64)) : p("", !0)
|
|
715
|
+
]))), 128)),
|
|
716
|
+
h("rect", {
|
|
717
|
+
class: v({ "vue-ui-thermometer-temperature": P.value.style.chart.animation.use }),
|
|
718
|
+
x: Y.value.left,
|
|
719
|
+
y: Y.value.top,
|
|
720
|
+
height: X.value,
|
|
721
|
+
width: Y.value.thermoWidth,
|
|
722
|
+
fill: "#FFFFFF66"
|
|
723
|
+
}, null, 10, Qe)
|
|
724
|
+
], 8, Ve),
|
|
725
|
+
P.value.style.chart.label.show ? (b(), m("g", {
|
|
726
|
+
key: 1,
|
|
727
|
+
role: "status",
|
|
728
|
+
"aria-live": "polite",
|
|
729
|
+
"aria-label": w(L) ? "Loading data" : Wt.value
|
|
730
|
+
}, [w(L) ? (b(), m("rect", {
|
|
731
|
+
key: 0,
|
|
732
|
+
x: Y.value.left - 60,
|
|
733
|
+
y: X.value + Y.value.top - $.value / 2,
|
|
734
|
+
width: 50,
|
|
735
|
+
height: $.value,
|
|
736
|
+
fill: "#6A6A6A40",
|
|
737
|
+
rx: "3"
|
|
738
|
+
}, null, 8, et)) : (b(), m("text", {
|
|
739
|
+
key: 1,
|
|
740
|
+
"aria-hidden": "true",
|
|
741
|
+
class: v({
|
|
742
|
+
"vue-ui-thermometer-temperature-value": P.value.style.chart.animation.use,
|
|
743
|
+
"vue-ui-thermometer-label": !0
|
|
744
|
+
}),
|
|
745
|
+
y: X.value + Y.value.top + $.value / 3,
|
|
746
|
+
x: Y.value.left - 10,
|
|
747
|
+
"text-anchor": "end",
|
|
748
|
+
fill: P.value.style.chart.label.color,
|
|
749
|
+
"font-size": $.value,
|
|
750
|
+
"font-weight": P.value.style.chart.label.bold ? "bold" : "normal"
|
|
751
|
+
}, C(Wt.value), 11, tt))], 8, $e)) : p("", !0),
|
|
752
|
+
S(e.$slots, "svg", { svg: {
|
|
753
|
+
...Et.value,
|
|
754
|
+
isPrintingImg: w(H) || w(U) || M.value,
|
|
755
|
+
isPrintingSvg: N.value
|
|
756
|
+
} }, void 0, !0)
|
|
757
|
+
], 10, Fe)),
|
|
758
|
+
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),
|
|
759
|
+
e.$slots.source ? (b(), m("div", {
|
|
760
|
+
key: 5,
|
|
761
|
+
ref_key: "source",
|
|
762
|
+
ref: pt,
|
|
763
|
+
dir: "auto"
|
|
764
|
+
}, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
765
|
+
S(e.$slots, "skeleton", {}, () => [w(L) ? (b(), f(le, { key: 0 })) : p("", !0)], !0)
|
|
766
|
+
], 46, Ne));
|
|
767
|
+
}
|
|
768
|
+
}, [["__scopeId", "data-v-b5f93e40"]]);
|
|
769
|
+
//#endregion
|
|
770
|
+
export { Me as n, E as t };
|