vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -0,0 +1,770 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Mt as a, Rt as ee, S as te, Wt as ne, b as o, dt as re, i as ie, kt as ae, t as oe, v as s } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as se } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as ce } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { n as le, t as ue } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as de } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as fe } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as me } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as he } from "./Title-CcNiYzEo.js";
|
|
11
|
+
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as _e } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as ve } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as ye } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as be } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
+
import { t as xe } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
+
import { t as Se } from "./useAutoSizeLabelsInsideViewbox-BGnDfZdg.js";
|
|
18
|
+
import { t as Ce } from "./usePrefersMotion-BC-CsqR1.js";
|
|
19
|
+
import { t as we } from "./vue_ui_thermometer-DxgqWKlE.js";
|
|
20
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Te, createVNode as Ee, defineAsyncComponent as m, guardReactiveProps as h, nextTick as De, normalizeClass as g, normalizeProps as _, normalizeStyle as Oe, onMounted as ke, openBlock as v, ref as y, renderList as Ae, renderSlot as b, toDisplayString as x, toRefs as je, unref as S, useCssVars as Me, watch as Ne, withCtx as C } from "vue";
|
|
21
|
+
//#region src/components/vue-ui-thermometer.vue
|
|
22
|
+
var Pe = /* @__PURE__ */ e({ default: () => w }), Fe = ["id"], Ie = {
|
|
23
|
+
key: 1,
|
|
24
|
+
ref: "noTitle",
|
|
25
|
+
class: "vue-data-ui-no-title-space",
|
|
26
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
27
|
+
}, Le = [
|
|
28
|
+
"xmlns",
|
|
29
|
+
"viewBox",
|
|
30
|
+
"aria-labelledby",
|
|
31
|
+
"aria-describedby"
|
|
32
|
+
], Re = ["id"], ze = ["id"], Be = ["width", "height"], Ve = ["id"], He = [
|
|
33
|
+
"x",
|
|
34
|
+
"y",
|
|
35
|
+
"width",
|
|
36
|
+
"height",
|
|
37
|
+
"rx",
|
|
38
|
+
"ry"
|
|
39
|
+
], Ue = ["clip-path"], We = [
|
|
40
|
+
"x",
|
|
41
|
+
"y",
|
|
42
|
+
"height",
|
|
43
|
+
"width"
|
|
44
|
+
], Ge = [
|
|
45
|
+
"x",
|
|
46
|
+
"y",
|
|
47
|
+
"height",
|
|
48
|
+
"width",
|
|
49
|
+
"fill"
|
|
50
|
+
], Ke = [
|
|
51
|
+
"x1",
|
|
52
|
+
"x2",
|
|
53
|
+
"y1",
|
|
54
|
+
"y2",
|
|
55
|
+
"stroke-width",
|
|
56
|
+
"stroke"
|
|
57
|
+
], qe = [
|
|
58
|
+
"x1",
|
|
59
|
+
"x2",
|
|
60
|
+
"y1",
|
|
61
|
+
"y2",
|
|
62
|
+
"stroke-width",
|
|
63
|
+
"stroke"
|
|
64
|
+
], Je = [
|
|
65
|
+
"x1",
|
|
66
|
+
"x2",
|
|
67
|
+
"y1",
|
|
68
|
+
"y2",
|
|
69
|
+
"stroke-width",
|
|
70
|
+
"stroke"
|
|
71
|
+
], Ye = [
|
|
72
|
+
"x1",
|
|
73
|
+
"x2",
|
|
74
|
+
"y1",
|
|
75
|
+
"y2",
|
|
76
|
+
"stroke-width",
|
|
77
|
+
"stroke"
|
|
78
|
+
], Xe = [
|
|
79
|
+
"x1",
|
|
80
|
+
"x2",
|
|
81
|
+
"y1",
|
|
82
|
+
"y2",
|
|
83
|
+
"stroke-width",
|
|
84
|
+
"stroke"
|
|
85
|
+
], Ze = [
|
|
86
|
+
"x1",
|
|
87
|
+
"x2",
|
|
88
|
+
"y1",
|
|
89
|
+
"y2",
|
|
90
|
+
"stroke-width",
|
|
91
|
+
"stroke"
|
|
92
|
+
], Qe = [
|
|
93
|
+
"x1",
|
|
94
|
+
"x2",
|
|
95
|
+
"y1",
|
|
96
|
+
"y2",
|
|
97
|
+
"stroke-width",
|
|
98
|
+
"stroke"
|
|
99
|
+
], $e = [
|
|
100
|
+
"x1",
|
|
101
|
+
"x2",
|
|
102
|
+
"y1",
|
|
103
|
+
"y2",
|
|
104
|
+
"stroke-width",
|
|
105
|
+
"stroke"
|
|
106
|
+
], et = [
|
|
107
|
+
"x",
|
|
108
|
+
"y",
|
|
109
|
+
"height",
|
|
110
|
+
"width"
|
|
111
|
+
], tt = ["aria-label"], nt = [
|
|
112
|
+
"x",
|
|
113
|
+
"y",
|
|
114
|
+
"height"
|
|
115
|
+
], rt = [
|
|
116
|
+
"y",
|
|
117
|
+
"x",
|
|
118
|
+
"fill",
|
|
119
|
+
"font-size",
|
|
120
|
+
"font-weight"
|
|
121
|
+
], it = {
|
|
122
|
+
key: 4,
|
|
123
|
+
class: "vue-data-ui-watermark"
|
|
124
|
+
}, w = /*#__PURE__*/ ge({
|
|
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: ge, emit: Pe }) {
|
|
142
|
+
Me((e) => ({
|
|
143
|
+
v31c59d24: jt.value,
|
|
144
|
+
v2daaf640: At.value,
|
|
145
|
+
f9585c66: kt.value
|
|
146
|
+
}));
|
|
147
|
+
let w = m(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), at = m(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), ot = m(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), { vue_ui_thermometer: st } = se(), { isThemeValid: ct, warnInvalidTheme: lt } = pe(), ut = Ce(), T = e, dt = Pe, E = y(n()), D = y(null), ft = y(0), pt = y(0), mt = y(null), ht = y(null), O = y(null), k = y(null), A = y(!1), j = y(!1), gt = l(() => !!T.dataset && Object.keys(T.dataset).length);
|
|
148
|
+
ke(() => {
|
|
149
|
+
xt();
|
|
150
|
+
});
|
|
151
|
+
let M = y(z()), _t = y(M.value.style.chart.thermometer.width), N = y(M.value.style.chart.height), P = y(M.value.style.chart.width), vt = l(() => M.value.userOptions.useCursorPointer), yt = l(() => i({
|
|
152
|
+
defaultConfig: {
|
|
153
|
+
userOptions: { show: !1 },
|
|
154
|
+
style: { chart: {
|
|
155
|
+
animation: { use: !1 },
|
|
156
|
+
backgroundColor: "#99999930",
|
|
157
|
+
graduations: { stroke: "#6A6A6A" }
|
|
158
|
+
} }
|
|
159
|
+
},
|
|
160
|
+
userConfig: M.value.skeletonConfig ?? {}
|
|
161
|
+
})), { loading: F, FINAL_DATASET: I } = le({
|
|
162
|
+
...je(T),
|
|
163
|
+
FINAL_CONFIG: M,
|
|
164
|
+
prepareConfig: z,
|
|
165
|
+
skeletonDataset: T.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: i({
|
|
176
|
+
defaultConfig: M.value,
|
|
177
|
+
userConfig: yt.value
|
|
178
|
+
})
|
|
179
|
+
}), bt = l(() => !!M.value.debug);
|
|
180
|
+
function xt() {
|
|
181
|
+
if (ae(T.dataset) ? t({
|
|
182
|
+
componentName: "VueUiThermometer",
|
|
183
|
+
type: "dataset",
|
|
184
|
+
debug: bt.value
|
|
185
|
+
}) : re({
|
|
186
|
+
datasetObject: T.dataset,
|
|
187
|
+
requiredAttributes: [
|
|
188
|
+
"value",
|
|
189
|
+
"from",
|
|
190
|
+
"to"
|
|
191
|
+
]
|
|
192
|
+
}).forEach((e) => {
|
|
193
|
+
t({
|
|
194
|
+
componentName: "VueUiThermometer",
|
|
195
|
+
type: "datasetAttribute",
|
|
196
|
+
property: e,
|
|
197
|
+
debug: bt.value
|
|
198
|
+
});
|
|
199
|
+
}), M.value.responsive) {
|
|
200
|
+
let e = _e(() => {
|
|
201
|
+
let { width: e, height: t } = ve({
|
|
202
|
+
chart: D.value,
|
|
203
|
+
title: M.value.style.title.text ? mt.value : null,
|
|
204
|
+
source: ht.value
|
|
205
|
+
});
|
|
206
|
+
requestAnimationFrame(() => {
|
|
207
|
+
N.value = Math.max(.1, t - 12), P.value = e, It();
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect()), O.value = new ResizeObserver(e), k.value = D.value, O.value.observe(k.value);
|
|
211
|
+
}
|
|
212
|
+
It();
|
|
213
|
+
}
|
|
214
|
+
let { userOptionsVisible: L, setUserOptionsVisibility: St, keepUserOptionState: Ct } = be({ config: M.value }), { svgRef: R } = xe({ config: M.value.style.title });
|
|
215
|
+
function z() {
|
|
216
|
+
let e = fe({
|
|
217
|
+
userConfig: T.config,
|
|
218
|
+
defaultConfig: st
|
|
219
|
+
}), t = e.theme;
|
|
220
|
+
if (!t) return e;
|
|
221
|
+
if (!ct.value(e)) return lt(e), e;
|
|
222
|
+
let n = fe({
|
|
223
|
+
userConfig: we[t] || T.config,
|
|
224
|
+
defaultConfig: e
|
|
225
|
+
}), r = fe({
|
|
226
|
+
userConfig: T.config,
|
|
227
|
+
defaultConfig: n
|
|
228
|
+
});
|
|
229
|
+
return {
|
|
230
|
+
...r,
|
|
231
|
+
customPalette: r.customPalette.length ? r.customPalette : ne[t] || a
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
Ne(() => T.config, (e) => {
|
|
235
|
+
M.value = z(), L.value = !M.value.userOptions.showOnChartHover, _t.value = M.value.style.chart.thermometer.width, N.value = M.value.style.chart.height, P.value = M.value.style.chart.width, xt(), pt.value += 1;
|
|
236
|
+
}, { deep: !0 });
|
|
237
|
+
let { isPrinting: B, isImaging: V, generatePdf: wt, generateImage: Tt } = ce({
|
|
238
|
+
elementId: `thermometer__${E.value}`,
|
|
239
|
+
fileName: M.value.style.title.text || "vue-ui-thermometer",
|
|
240
|
+
options: M.value.userOptions.print
|
|
241
|
+
}), Et = l(() => M.value.userOptions.show && !M.value.style.title.text), H = l(() => te(M.value.customPalette)), U = l(() => I.value.steps || 10);
|
|
242
|
+
function W(e, t, n) {
|
|
243
|
+
let r = [], i = Dt(e), a = Dt(t);
|
|
244
|
+
for (let e = 0; e < n; e += 1) {
|
|
245
|
+
let t = G(i.red, a.red, e, n), ee = G(i.green, a.green, e, n), te = G(i.blue, a.blue, e, n), ne = `#${K(t)}${K(ee)}${K(te)}`;
|
|
246
|
+
r.push(ne);
|
|
247
|
+
}
|
|
248
|
+
return r;
|
|
249
|
+
}
|
|
250
|
+
function Dt(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 G(e, t, n, r) {
|
|
259
|
+
return Math.round(e + (t - e) * n / r);
|
|
260
|
+
}
|
|
261
|
+
function K(e) {
|
|
262
|
+
return e.toString(16).padStart(2, "0");
|
|
263
|
+
}
|
|
264
|
+
let q = l(() => {
|
|
265
|
+
let e = Math.max(.1, P.value), t = Math.max(.1, N.value), n = M.value.style.chart.padding;
|
|
266
|
+
return {
|
|
267
|
+
width: e,
|
|
268
|
+
left: e / 2 - M.value.style.chart.thermometer.width / 2,
|
|
269
|
+
right: e / 2 + M.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: M.value.style.chart.thermometer.width
|
|
275
|
+
};
|
|
276
|
+
}), Ot = l(() => q.value), J = l(() => {
|
|
277
|
+
let e = s(I.value.from) < 0 ? Math.abs(s(I.value.from)) : s(I.value.from), t = s(I.value.to) < 0 ? Math.abs(s(I.value.to)) : s(I.value.to), n = 0;
|
|
278
|
+
return n = s(I.value.to) > 0 ? e + t : e > t ? e - t : t - e, (1 - (Math.abs(s(I.value.from)) + s(I.value.value)) / n) * q.value.thermoHeight;
|
|
279
|
+
}), kt = l(() => `${J.value}px`), At = l(() => `${q.value.thermoHeight}px`), jt = l(() => ut.value ? "0ms" : `${M.value.style.chart.animation.speedMs}ms`), Mt = l(() => {
|
|
280
|
+
if (I.value.colors) {
|
|
281
|
+
if (!I.value.colors.from) return W(H.value[0] || a[0], o(I.value.colors.to), U.value || 10);
|
|
282
|
+
if (!I.value.colors.to) return W(o(I.value.colors.from), H.value[1] || a[1], U.value || 10);
|
|
283
|
+
} else return W(H.value[1] || a[1], H.value[0] || a[0], U.value || 10);
|
|
284
|
+
return W(o(I.value.colors.from), o(I.value.colors.to), U.value || 10);
|
|
285
|
+
}), Nt = l(() => {
|
|
286
|
+
let e = [], t = 0, n = q.value.thermoHeight;
|
|
287
|
+
for (let r = 0; r < n - 1; r += n / U.value) e.push({
|
|
288
|
+
x: q.value.left,
|
|
289
|
+
y: q.value.top + r,
|
|
290
|
+
qYLess: q.value.top + r + n / U.value / 4,
|
|
291
|
+
halfY: q.value.top + r + n / U.value / 2,
|
|
292
|
+
qYMore: q.value.top + r + n / U.value / 4 * 3,
|
|
293
|
+
color: Mt.value[t],
|
|
294
|
+
height: Math.max(.1, n / U.value)
|
|
295
|
+
}), t += 1;
|
|
296
|
+
return e;
|
|
297
|
+
}), Y = y(!1);
|
|
298
|
+
function Pt(e) {
|
|
299
|
+
Y.value = e, ft.value += 1;
|
|
300
|
+
}
|
|
301
|
+
let X = y(!1);
|
|
302
|
+
function Z() {
|
|
303
|
+
X.value = !X.value;
|
|
304
|
+
}
|
|
305
|
+
async function Ft({ scale: e = 2 } = {}) {
|
|
306
|
+
if (!D.value) return;
|
|
307
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
308
|
+
domElement: D.value,
|
|
309
|
+
base64: !0,
|
|
310
|
+
img: !0,
|
|
311
|
+
scale: e
|
|
312
|
+
});
|
|
313
|
+
return {
|
|
314
|
+
imageUri: i,
|
|
315
|
+
base64: a,
|
|
316
|
+
title: M.value.style.title.text,
|
|
317
|
+
width: t,
|
|
318
|
+
height: n,
|
|
319
|
+
aspectRatio: r
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
let Q = l({
|
|
323
|
+
get: () => M.value.style.chart.label.fontSize,
|
|
324
|
+
set: (e) => e
|
|
325
|
+
}), { autoSizeLabels: It } = Se({
|
|
326
|
+
svgRef: R,
|
|
327
|
+
fontSize: M.value.style.chart.label.fontSize,
|
|
328
|
+
minFontSize: M.value.style.chart.label.minFontSize,
|
|
329
|
+
sizeRef: Q,
|
|
330
|
+
labelClass: ".vue-ui-thermometer-label"
|
|
331
|
+
}), Lt = l(() => M.value.style.chart.backgroundColor), { exportSvg: Rt, getSvg: zt } = de({
|
|
332
|
+
svg: R,
|
|
333
|
+
title: l(() => M.value.style.title),
|
|
334
|
+
backgroundColor: Lt
|
|
335
|
+
});
|
|
336
|
+
async function Bt({ isCb: e }) {
|
|
337
|
+
j.value = !0, await De();
|
|
338
|
+
try {
|
|
339
|
+
if (e) {
|
|
340
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await zt();
|
|
341
|
+
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
342
|
+
blob: e,
|
|
343
|
+
url: t,
|
|
344
|
+
text: n,
|
|
345
|
+
dataUrl: r
|
|
346
|
+
}));
|
|
347
|
+
} else await Promise.resolve(Rt());
|
|
348
|
+
} finally {
|
|
349
|
+
j.value = !1;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
function Vt(e) {
|
|
353
|
+
if (e?.stage === "start") {
|
|
354
|
+
A.value = !0;
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
if (e?.stage === "end") {
|
|
358
|
+
A.value = !1;
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
Tt();
|
|
362
|
+
}
|
|
363
|
+
async function Ht() {
|
|
364
|
+
if (dt("copyAlt", {
|
|
365
|
+
config: M.value,
|
|
366
|
+
dataset: I.value
|
|
367
|
+
}), !M.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(M.value.userOptions.callbacks.altCopy({
|
|
372
|
+
config: M.value,
|
|
373
|
+
dataset: I.value
|
|
374
|
+
}));
|
|
375
|
+
}
|
|
376
|
+
let Ut = l(() => `${E.value}-title`), Wt = l(() => `${E.value}-desc`), $ = l(() => ie(M.value.style.chart.label.formatter, I.value.value, r({
|
|
377
|
+
p: M.value.style.chart.label.prefix,
|
|
378
|
+
v: I.value.value,
|
|
379
|
+
s: M.value.style.chart.label.suffix,
|
|
380
|
+
r: M.value.style.chart.label.rounding
|
|
381
|
+
}), { datapoint: I.value })), Gt = l(() => M.value.style.title.text || ""), Kt = l(() => {
|
|
382
|
+
if (F.value) return "...";
|
|
383
|
+
let e = s(I.value.from), t = s(I.value.to);
|
|
384
|
+
return `Thermometer value: ${$.value}. Range: ${e} to ${t}.`;
|
|
385
|
+
});
|
|
386
|
+
return ge({
|
|
387
|
+
getImage: Ft,
|
|
388
|
+
generatePdf: wt,
|
|
389
|
+
generateImage: Tt,
|
|
390
|
+
generateSvg: Bt,
|
|
391
|
+
toggleAnnotator: Z,
|
|
392
|
+
toggleFullscreen: Pt,
|
|
393
|
+
copyAlt: Ht
|
|
394
|
+
}), (e, t) => (v(), f("div", {
|
|
395
|
+
ref_key: "thermoChart",
|
|
396
|
+
ref: D,
|
|
397
|
+
class: g(`vue-data-ui-component vue-ui-thermometer ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
398
|
+
style: Oe(`width:100%;background:${M.value.style.chart.backgroundColor};color:${M.value.style.chart.color};font-family:${M.value.style.fontFamily}`),
|
|
399
|
+
id: `thermometer__${E.value}`,
|
|
400
|
+
onMouseenter: t[0] ||= () => S(St)(!0),
|
|
401
|
+
onMouseleave: t[1] ||= () => S(St)(!1)
|
|
402
|
+
}, [
|
|
403
|
+
M.value.userOptions.buttons.annotator ? (v(), u(S(at), {
|
|
404
|
+
key: 0,
|
|
405
|
+
svgRef: S(R),
|
|
406
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
407
|
+
color: M.value.style.chart.color,
|
|
408
|
+
active: X.value,
|
|
409
|
+
isCursorPointer: vt.value,
|
|
410
|
+
onClose: Z
|
|
411
|
+
}, {
|
|
412
|
+
"annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
413
|
+
"annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
|
|
414
|
+
"annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
|
|
415
|
+
"annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
|
|
416
|
+
"annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
|
|
417
|
+
"annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
|
|
418
|
+
_: 3
|
|
419
|
+
}, 8, [
|
|
420
|
+
"svgRef",
|
|
421
|
+
"backgroundColor",
|
|
422
|
+
"color",
|
|
423
|
+
"active",
|
|
424
|
+
"isCursorPointer"
|
|
425
|
+
])) : d("", !0),
|
|
426
|
+
Et.value ? (v(), f("div", Ie, null, 512)) : d("", !0),
|
|
427
|
+
M.value.style.title.text ? (v(), f("div", {
|
|
428
|
+
key: 2,
|
|
429
|
+
ref_key: "chartTitle",
|
|
430
|
+
ref: mt,
|
|
431
|
+
style: "width:100%"
|
|
432
|
+
}, [(v(), u(he, {
|
|
433
|
+
key: `title_${pt.value}`,
|
|
434
|
+
config: {
|
|
435
|
+
title: {
|
|
436
|
+
cy: "thermometer-div-title",
|
|
437
|
+
...M.value.style.title
|
|
438
|
+
},
|
|
439
|
+
subtitle: {
|
|
440
|
+
cy: "thermometer-div-subtitle",
|
|
441
|
+
...M.value.style.title.subtitle
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
445
|
+
M.value.userOptions.show && gt.value && (S(Ct) || S(L)) ? (v(), u(S(ot), {
|
|
446
|
+
ref: "details",
|
|
447
|
+
key: `user_options_${ft.value}`,
|
|
448
|
+
backgroundColor: M.value.style.chart.backgroundColor,
|
|
449
|
+
color: M.value.style.chart.color,
|
|
450
|
+
isImaging: S(V),
|
|
451
|
+
isPrinting: S(B),
|
|
452
|
+
uid: E.value,
|
|
453
|
+
hasPdf: M.value.userOptions.buttons.pdf,
|
|
454
|
+
hasImg: M.value.userOptions.buttons.img,
|
|
455
|
+
hasSvg: M.value.userOptions.buttons.svg,
|
|
456
|
+
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
457
|
+
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
458
|
+
hasXls: !1,
|
|
459
|
+
isFullscreen: Y.value,
|
|
460
|
+
titles: { ...M.value.userOptions.buttonTitles },
|
|
461
|
+
chartElement: D.value,
|
|
462
|
+
position: M.value.userOptions.position,
|
|
463
|
+
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
464
|
+
isAnnotation: X.value,
|
|
465
|
+
callbacks: M.value.userOptions.callbacks,
|
|
466
|
+
printScale: M.value.userOptions.print.scale,
|
|
467
|
+
isCursorPointer: vt.value,
|
|
468
|
+
onToggleFullscreen: Pt,
|
|
469
|
+
onGeneratePdf: S(wt),
|
|
470
|
+
onGenerateImage: Vt,
|
|
471
|
+
onGenerateSvg: Bt,
|
|
472
|
+
onToggleAnnotator: Z,
|
|
473
|
+
onCopyAlt: Ht,
|
|
474
|
+
style: Oe({ visibility: S(Ct) ? S(L) ? "visible" : "hidden" : "visible" })
|
|
475
|
+
}, Te({ _: 2 }, [
|
|
476
|
+
e.$slots.menuIcon ? {
|
|
477
|
+
name: "menuIcon",
|
|
478
|
+
fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", _(h({
|
|
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: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
487
|
+
key: "1"
|
|
488
|
+
} : void 0,
|
|
489
|
+
e.$slots.optionImg ? {
|
|
490
|
+
name: "optionImg",
|
|
491
|
+
fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
492
|
+
key: "2"
|
|
493
|
+
} : void 0,
|
|
494
|
+
e.$slots.optionSvg ? {
|
|
495
|
+
name: "optionSvg",
|
|
496
|
+
fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
497
|
+
key: "3"
|
|
498
|
+
} : void 0,
|
|
499
|
+
e.$slots.optionFullscreen ? {
|
|
500
|
+
name: "optionFullscreen",
|
|
501
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", _(h({
|
|
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: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", _(h({
|
|
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: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
|
|
518
|
+
key: "6"
|
|
519
|
+
} : void 0,
|
|
520
|
+
e.$slots["custom-menu-before"] ? {
|
|
521
|
+
name: "custom-menu-before",
|
|
522
|
+
fn: C(() => [b(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: C(() => [b(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
|
+
])) : d("", !0),
|
|
553
|
+
(v(), f("svg", {
|
|
554
|
+
ref_key: "svgRef",
|
|
555
|
+
ref: R,
|
|
556
|
+
xmlns: S(oe),
|
|
557
|
+
class: g({
|
|
558
|
+
"vue-data-ui-fullscreen--on": Y.value,
|
|
559
|
+
"vue-data-ui-fulscreen--off": !Y.value
|
|
560
|
+
}),
|
|
561
|
+
width: "100%",
|
|
562
|
+
viewBox: `0 0 ${q.value.width} ${q.value.height}`,
|
|
563
|
+
style: "background:transparent",
|
|
564
|
+
"aria-labelledby": Ut.value,
|
|
565
|
+
"aria-describedby": Wt.value
|
|
566
|
+
}, [
|
|
567
|
+
p("title", { id: Ut.value }, x(Gt.value), 9, Re),
|
|
568
|
+
p("desc", { id: Wt.value }, x(Kt.value), 9, ze),
|
|
569
|
+
Ee(S(w)),
|
|
570
|
+
e.$slots["chart-background"] ? (v(), f("foreignObject", {
|
|
571
|
+
key: 0,
|
|
572
|
+
x: 0,
|
|
573
|
+
y: 0,
|
|
574
|
+
width: q.value.width,
|
|
575
|
+
height: q.value.height,
|
|
576
|
+
style: { pointerEvents: "none" }
|
|
577
|
+
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : d("", !0),
|
|
578
|
+
p("defs", null, [p("clipPath", {
|
|
579
|
+
id: `vueUiPill-${E.value}`,
|
|
580
|
+
clipPathUnits: "userSpaceOnUse"
|
|
581
|
+
}, [p("rect", {
|
|
582
|
+
x: q.value.left,
|
|
583
|
+
y: q.value.top,
|
|
584
|
+
width: q.value.thermoWidth,
|
|
585
|
+
height: q.value.thermoHeight,
|
|
586
|
+
rx: q.value.thermoWidth / 2,
|
|
587
|
+
ry: q.value.thermoWidth / 2
|
|
588
|
+
}, null, 8, He)], 8, Ve), (v(!0), f(c, null, Ae(Nt.value, (e, t) => (v(), u(ye, {
|
|
589
|
+
t: "linear",
|
|
590
|
+
id: `vueUiThermometerGradient_${t}_${E.value}`,
|
|
591
|
+
key: `t_${t}_${E.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
|
+
S(ee)(e.color, 100 - M.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
|
+
p("g", { "clip-path": `url(#vueUiPill-${E.value})` }, [
|
|
615
|
+
p("rect", {
|
|
616
|
+
x: q.value.left,
|
|
617
|
+
y: q.value.top,
|
|
618
|
+
height: q.value.thermoHeight,
|
|
619
|
+
width: q.value.thermoWidth,
|
|
620
|
+
fill: "#FFFFFF"
|
|
621
|
+
}, null, 8, We),
|
|
622
|
+
(v(!0), f(c, null, Ae(Nt.value, (e, t) => (v(), f("g", { key: `graduation_${t}` }, [
|
|
623
|
+
p("rect", {
|
|
624
|
+
x: e.x,
|
|
625
|
+
y: e.y,
|
|
626
|
+
height: e.height,
|
|
627
|
+
width: q.value.thermoWidth,
|
|
628
|
+
fill: M.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${t}_${E.value})` : e.color,
|
|
629
|
+
"shape-rendering": "crispEdges"
|
|
630
|
+
}, null, 8, Ge),
|
|
631
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (v(), f("line", {
|
|
632
|
+
key: 0,
|
|
633
|
+
x1: e.x,
|
|
634
|
+
x2: e.x + 10,
|
|
635
|
+
y1: e.y,
|
|
636
|
+
y2: e.y,
|
|
637
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth,
|
|
638
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
639
|
+
"stroke-linecap": "round"
|
|
640
|
+
}, null, 8, Ke)) : d("", !0),
|
|
641
|
+
M.value.style.chart.graduations.showIntermediate ? (v(), f(c, { key: 1 }, [
|
|
642
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (v(), f("line", {
|
|
643
|
+
key: 0,
|
|
644
|
+
x1: e.x,
|
|
645
|
+
x2: e.x + 5,
|
|
646
|
+
y1: e.halfY,
|
|
647
|
+
y2: e.halfY,
|
|
648
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
649
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
650
|
+
"stroke-linecap": "round"
|
|
651
|
+
}, null, 8, qe)) : d("", !0),
|
|
652
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (v(), f("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": M.value.style.chart.graduations.strokeWidth / 2,
|
|
659
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
660
|
+
"stroke-linecap": "round"
|
|
661
|
+
}, null, 8, Je)) : d("", !0),
|
|
662
|
+
M.value.style.chart.graduations.show && ["both", "left"].includes(M.value.style.chart.graduations.sides) ? (v(), f("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": M.value.style.chart.graduations.strokeWidth / 2,
|
|
669
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
670
|
+
"stroke-linecap": "round"
|
|
671
|
+
}, null, 8, Ye)) : d("", !0)
|
|
672
|
+
], 64)) : d("", !0),
|
|
673
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (v(), f("line", {
|
|
674
|
+
key: 2,
|
|
675
|
+
x1: q.value.right,
|
|
676
|
+
x2: q.value.right - 10,
|
|
677
|
+
y1: e.y,
|
|
678
|
+
y2: e.y,
|
|
679
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth,
|
|
680
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
681
|
+
"stroke-linecap": "round"
|
|
682
|
+
}, null, 8, Xe)) : d("", !0),
|
|
683
|
+
M.value.style.chart.graduations.showIntermediate ? (v(), f(c, { key: 3 }, [
|
|
684
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (v(), f("line", {
|
|
685
|
+
key: 0,
|
|
686
|
+
x1: q.value.right,
|
|
687
|
+
x2: q.value.right - 5,
|
|
688
|
+
y1: e.halfY,
|
|
689
|
+
y2: e.halfY,
|
|
690
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
691
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
692
|
+
"stroke-linecap": "round"
|
|
693
|
+
}, null, 8, Ze)) : d("", !0),
|
|
694
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (v(), f("line", {
|
|
695
|
+
key: 1,
|
|
696
|
+
x1: q.value.right,
|
|
697
|
+
x2: q.value.right - 2.5,
|
|
698
|
+
y1: e.qYLess,
|
|
699
|
+
y2: e.qYLess,
|
|
700
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
701
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
702
|
+
"stroke-linecap": "round"
|
|
703
|
+
}, null, 8, Qe)) : d("", !0),
|
|
704
|
+
M.value.style.chart.graduations.show && ["both", "right"].includes(M.value.style.chart.graduations.sides) ? (v(), f("line", {
|
|
705
|
+
key: 2,
|
|
706
|
+
x1: q.value.right,
|
|
707
|
+
x2: q.value.right - 2.5,
|
|
708
|
+
y1: e.qYMore,
|
|
709
|
+
y2: e.qYMore,
|
|
710
|
+
"stroke-width": M.value.style.chart.graduations.strokeWidth / 2,
|
|
711
|
+
stroke: M.value.style.chart.graduations.stroke,
|
|
712
|
+
"stroke-linecap": "round"
|
|
713
|
+
}, null, 8, $e)) : d("", !0)
|
|
714
|
+
], 64)) : d("", !0)
|
|
715
|
+
]))), 128)),
|
|
716
|
+
p("rect", {
|
|
717
|
+
class: g({ "vue-ui-thermometer-temperature": M.value.style.chart.animation.use }),
|
|
718
|
+
x: q.value.left,
|
|
719
|
+
y: q.value.top,
|
|
720
|
+
height: J.value,
|
|
721
|
+
width: q.value.thermoWidth,
|
|
722
|
+
fill: "#FFFFFF66"
|
|
723
|
+
}, null, 10, et)
|
|
724
|
+
], 8, Ue),
|
|
725
|
+
M.value.style.chart.label.show ? (v(), f("g", {
|
|
726
|
+
key: 1,
|
|
727
|
+
role: "status",
|
|
728
|
+
"aria-live": "polite",
|
|
729
|
+
"aria-label": S(F) ? "Loading data" : $.value
|
|
730
|
+
}, [S(F) ? (v(), f("rect", {
|
|
731
|
+
key: 0,
|
|
732
|
+
x: q.value.left - 60,
|
|
733
|
+
y: J.value + q.value.top - Q.value / 2,
|
|
734
|
+
width: 50,
|
|
735
|
+
height: Q.value,
|
|
736
|
+
fill: "#6A6A6A40",
|
|
737
|
+
rx: "3"
|
|
738
|
+
}, null, 8, nt)) : (v(), f("text", {
|
|
739
|
+
key: 1,
|
|
740
|
+
"aria-hidden": "true",
|
|
741
|
+
class: g({
|
|
742
|
+
"vue-ui-thermometer-temperature-value": M.value.style.chart.animation.use,
|
|
743
|
+
"vue-ui-thermometer-label": !0
|
|
744
|
+
}),
|
|
745
|
+
y: J.value + q.value.top + Q.value / 3,
|
|
746
|
+
x: q.value.left - 10,
|
|
747
|
+
"text-anchor": "end",
|
|
748
|
+
fill: M.value.style.chart.label.color,
|
|
749
|
+
"font-size": Q.value,
|
|
750
|
+
"font-weight": M.value.style.chart.label.bold ? "bold" : "normal"
|
|
751
|
+
}, x($.value), 11, rt))], 8, tt)) : d("", !0),
|
|
752
|
+
b(e.$slots, "svg", { svg: {
|
|
753
|
+
...Ot.value,
|
|
754
|
+
isPrintingImg: S(B) || S(V) || A.value,
|
|
755
|
+
isPrintingSvg: j.value
|
|
756
|
+
} }, void 0, !0)
|
|
757
|
+
], 10, Le)),
|
|
758
|
+
e.$slots.watermark ? (v(), f("div", it, [b(e.$slots, "watermark", _(h({ isPrinting: S(B) || S(V) || A.value || j.value })), void 0, !0)])) : d("", !0),
|
|
759
|
+
e.$slots.source ? (v(), f("div", {
|
|
760
|
+
key: 5,
|
|
761
|
+
ref_key: "source",
|
|
762
|
+
ref: ht,
|
|
763
|
+
dir: "auto"
|
|
764
|
+
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
765
|
+
b(e.$slots, "skeleton", {}, () => [S(F) ? (v(), u(ue, { key: 0 })) : d("", !0)], !0)
|
|
766
|
+
], 46, Fe));
|
|
767
|
+
}
|
|
768
|
+
}, [["__scopeId", "data-v-b5f93e40"]]);
|
|
769
|
+
//#endregion
|
|
770
|
+
export { Pe as n, w as t };
|