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
|
@@ -1,763 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Gt as t, Lt as n, Ot as r, Q as i, S as a, Ut as ee, W as te, b as o, i as ne, jt as s, q as re, t as ie, ut as ae, v as c } from "./lib-EAmk-PgA.js";
|
|
3
|
-
import { t as oe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as se } from "./usePrinter-DnGzpp6Q.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-D8XqxgOU.js";
|
|
8
|
-
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as fe } from "./img-B_abIg0o.js";
|
|
10
|
-
import { n as pe } from "./Title-PiTKr6sp.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 "./useUserOptionState-DK-_1ddE.js";
|
|
15
|
-
import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as ye } from "./useAutoSizeLabelsInsideViewbox-CyOGrdD_.js";
|
|
17
|
-
import { t as be } from "./usePrefersMotion-BC-CsqR1.js";
|
|
18
|
-
import { t as xe } 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 Se, createVNode as Ce, defineAsyncComponent as we, guardReactiveProps as g, nextTick as Te, normalizeClass as _, normalizeProps as v, normalizeStyle as Ee, onMounted as De, openBlock as y, ref as b, renderList as Oe, renderSlot as x, toDisplayString as S, toRefs as ke, unref as C, useCssVars as Ae, watch as je, withCtx as w } from "vue";
|
|
20
|
-
//#region src/components/vue-ui-thermometer.vue
|
|
21
|
-
var Me = /* @__PURE__ */ e({ default: () => T }), 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 = ["id"], He = ["stop-color"], Ue = ["stop-color"], We = ["stop-color"], Ge = ["clip-path"], Ke = [
|
|
39
|
-
"x",
|
|
40
|
-
"y",
|
|
41
|
-
"height",
|
|
42
|
-
"width"
|
|
43
|
-
], qe = [
|
|
44
|
-
"x",
|
|
45
|
-
"y",
|
|
46
|
-
"height",
|
|
47
|
-
"width",
|
|
48
|
-
"fill"
|
|
49
|
-
], Je = [
|
|
50
|
-
"x1",
|
|
51
|
-
"x2",
|
|
52
|
-
"y1",
|
|
53
|
-
"y2",
|
|
54
|
-
"stroke-width",
|
|
55
|
-
"stroke"
|
|
56
|
-
], Ye = [
|
|
57
|
-
"x1",
|
|
58
|
-
"x2",
|
|
59
|
-
"y1",
|
|
60
|
-
"y2",
|
|
61
|
-
"stroke-width",
|
|
62
|
-
"stroke"
|
|
63
|
-
], Xe = [
|
|
64
|
-
"x1",
|
|
65
|
-
"x2",
|
|
66
|
-
"y1",
|
|
67
|
-
"y2",
|
|
68
|
-
"stroke-width",
|
|
69
|
-
"stroke"
|
|
70
|
-
], Ze = [
|
|
71
|
-
"x1",
|
|
72
|
-
"x2",
|
|
73
|
-
"y1",
|
|
74
|
-
"y2",
|
|
75
|
-
"stroke-width",
|
|
76
|
-
"stroke"
|
|
77
|
-
], Qe = [
|
|
78
|
-
"x1",
|
|
79
|
-
"x2",
|
|
80
|
-
"y1",
|
|
81
|
-
"y2",
|
|
82
|
-
"stroke-width",
|
|
83
|
-
"stroke"
|
|
84
|
-
], $e = [
|
|
85
|
-
"x1",
|
|
86
|
-
"x2",
|
|
87
|
-
"y1",
|
|
88
|
-
"y2",
|
|
89
|
-
"stroke-width",
|
|
90
|
-
"stroke"
|
|
91
|
-
], et = [
|
|
92
|
-
"x1",
|
|
93
|
-
"x2",
|
|
94
|
-
"y1",
|
|
95
|
-
"y2",
|
|
96
|
-
"stroke-width",
|
|
97
|
-
"stroke"
|
|
98
|
-
], tt = [
|
|
99
|
-
"x1",
|
|
100
|
-
"x2",
|
|
101
|
-
"y1",
|
|
102
|
-
"y2",
|
|
103
|
-
"stroke-width",
|
|
104
|
-
"stroke"
|
|
105
|
-
], nt = [
|
|
106
|
-
"x",
|
|
107
|
-
"y",
|
|
108
|
-
"height",
|
|
109
|
-
"width"
|
|
110
|
-
], rt = ["aria-label"], it = [
|
|
111
|
-
"x",
|
|
112
|
-
"y",
|
|
113
|
-
"height"
|
|
114
|
-
], at = [
|
|
115
|
-
"y",
|
|
116
|
-
"x",
|
|
117
|
-
"fill",
|
|
118
|
-
"font-size",
|
|
119
|
-
"font-weight"
|
|
120
|
-
], ot = {
|
|
121
|
-
key: 4,
|
|
122
|
-
class: "vue-data-ui-watermark"
|
|
123
|
-
}, T = /*#__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
|
-
v0233847b: Nt.value,
|
|
143
|
-
v30de9373: Mt.value,
|
|
144
|
-
v105f2dc0: jt.value
|
|
145
|
-
}));
|
|
146
|
-
let T = we(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), st = we(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), ct = we(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), { vue_ui_thermometer: lt } = oe(), { isThemeValid: ut, warnInvalidTheme: dt } = de(), ft = be(), E = e, pt = Me, D = b(te()), O = b(null), mt = b(0), ht = b(0), gt = b(null), _t = b(null), k = b(null), A = b(null), j = b(!1), M = b(!1), vt = d(() => !!E.dataset && Object.keys(E.dataset).length);
|
|
147
|
-
De(() => {
|
|
148
|
-
Ct();
|
|
149
|
-
});
|
|
150
|
-
let N = b(B()), yt = b(N.value.style.chart.thermometer.width), P = b(N.value.style.chart.height), F = b(N.value.style.chart.width), bt = d(() => N.value.userOptions.useCursorPointer), xt = d(() => t({
|
|
151
|
-
defaultConfig: {
|
|
152
|
-
userOptions: { show: !1 },
|
|
153
|
-
style: { chart: {
|
|
154
|
-
animation: { use: !1 },
|
|
155
|
-
backgroundColor: "#99999930",
|
|
156
|
-
graduations: { stroke: "#6A6A6A" }
|
|
157
|
-
} }
|
|
158
|
-
},
|
|
159
|
-
userConfig: N.value.skeletonConfig ?? {}
|
|
160
|
-
})), { loading: I, FINAL_DATASET: L } = ce({
|
|
161
|
-
...ke(E),
|
|
162
|
-
FINAL_CONFIG: N,
|
|
163
|
-
prepareConfig: B,
|
|
164
|
-
skeletonDataset: E.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: t({
|
|
175
|
-
defaultConfig: N.value,
|
|
176
|
-
userConfig: xt.value
|
|
177
|
-
})
|
|
178
|
-
}), St = d(() => !!N.value.debug);
|
|
179
|
-
function Ct() {
|
|
180
|
-
if (r(E.dataset) ? i({
|
|
181
|
-
componentName: "VueUiThermometer",
|
|
182
|
-
type: "dataset",
|
|
183
|
-
debug: St.value
|
|
184
|
-
}) : ae({
|
|
185
|
-
datasetObject: E.dataset,
|
|
186
|
-
requiredAttributes: [
|
|
187
|
-
"value",
|
|
188
|
-
"from",
|
|
189
|
-
"to"
|
|
190
|
-
]
|
|
191
|
-
}).forEach((e) => {
|
|
192
|
-
i({
|
|
193
|
-
componentName: "VueUiThermometer",
|
|
194
|
-
type: "datasetAttribute",
|
|
195
|
-
property: e,
|
|
196
|
-
debug: St.value
|
|
197
|
-
});
|
|
198
|
-
}), N.value.responsive) {
|
|
199
|
-
let e = he(() => {
|
|
200
|
-
let { width: e, height: t } = ge({
|
|
201
|
-
chart: O.value,
|
|
202
|
-
title: N.value.style.title.text ? gt.value : null,
|
|
203
|
-
source: _t.value
|
|
204
|
-
});
|
|
205
|
-
requestAnimationFrame(() => {
|
|
206
|
-
P.value = Math.max(.1, t - 12), F.value = e, Rt();
|
|
207
|
-
});
|
|
208
|
-
});
|
|
209
|
-
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = O.value, k.value.observe(A.value);
|
|
210
|
-
}
|
|
211
|
-
Rt();
|
|
212
|
-
}
|
|
213
|
-
let { userOptionsVisible: R, setUserOptionsVisibility: wt, keepUserOptionState: Tt } = _e({ config: N.value }), { svgRef: z } = ve({ config: N.value.style.title });
|
|
214
|
-
function B() {
|
|
215
|
-
let e = l({
|
|
216
|
-
userConfig: E.config,
|
|
217
|
-
defaultConfig: lt
|
|
218
|
-
}), t = e.theme;
|
|
219
|
-
if (!t) return e;
|
|
220
|
-
if (!ut.value(e)) return dt(e), e;
|
|
221
|
-
let n = l({
|
|
222
|
-
userConfig: xe[t] || E.config,
|
|
223
|
-
defaultConfig: e
|
|
224
|
-
}), r = l({
|
|
225
|
-
userConfig: E.config,
|
|
226
|
-
defaultConfig: n
|
|
227
|
-
});
|
|
228
|
-
return {
|
|
229
|
-
...r,
|
|
230
|
-
customPalette: r.customPalette.length ? r.customPalette : ee[t] || s
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
je(() => E.config, (e) => {
|
|
234
|
-
N.value = B(), R.value = !N.value.userOptions.showOnChartHover, yt.value = N.value.style.chart.thermometer.width, P.value = N.value.style.chart.height, F.value = N.value.style.chart.width, Ct(), ht.value += 1;
|
|
235
|
-
}, { deep: !0 });
|
|
236
|
-
let { isPrinting: V, isImaging: H, generatePdf: Et, generateImage: Dt } = se({
|
|
237
|
-
elementId: `thermometer__${D.value}`,
|
|
238
|
-
fileName: N.value.style.title.text || "vue-ui-thermometer",
|
|
239
|
-
options: N.value.userOptions.print
|
|
240
|
-
}), Ot = d(() => N.value.userOptions.show && !N.value.style.title.text), U = d(() => a(N.value.customPalette)), W = d(() => L.value.steps || 10);
|
|
241
|
-
function G(e, t, n) {
|
|
242
|
-
let r = [], i = kt(e), a = kt(t);
|
|
243
|
-
for (let e = 0; e < n; e += 1) {
|
|
244
|
-
let t = K(i.red, a.red, e, n), ee = K(i.green, a.green, e, n), te = K(i.blue, a.blue, e, n), o = `#${q(t)}${q(ee)}${q(te)}`;
|
|
245
|
-
r.push(o);
|
|
246
|
-
}
|
|
247
|
-
return r;
|
|
248
|
-
}
|
|
249
|
-
function kt(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 K(e, t, n, r) {
|
|
258
|
-
return Math.round(e + (t - e) * n / r);
|
|
259
|
-
}
|
|
260
|
-
function q(e) {
|
|
261
|
-
return e.toString(16).padStart(2, "0");
|
|
262
|
-
}
|
|
263
|
-
let J = d(() => {
|
|
264
|
-
let e = Math.max(.1, F.value), t = Math.max(.1, P.value), n = N.value.style.chart.padding;
|
|
265
|
-
return {
|
|
266
|
-
width: e,
|
|
267
|
-
left: e / 2 - N.value.style.chart.thermometer.width / 2,
|
|
268
|
-
right: e / 2 + N.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: N.value.style.chart.thermometer.width
|
|
274
|
-
};
|
|
275
|
-
}), At = d(() => J.value), Y = d(() => {
|
|
276
|
-
let e = c(L.value.from) < 0 ? Math.abs(c(L.value.from)) : c(L.value.from), t = c(L.value.to) < 0 ? Math.abs(c(L.value.to)) : c(L.value.to), n = 0;
|
|
277
|
-
return n = c(L.value.to) > 0 ? e + t : e > t ? e - t : t - e, (1 - (Math.abs(c(L.value.from)) + c(L.value.value)) / n) * J.value.thermoHeight;
|
|
278
|
-
}), jt = d(() => `${Y.value}px`), Mt = d(() => `${J.value.thermoHeight}px`), Nt = d(() => ft.value ? "0ms" : `${N.value.style.chart.animation.speedMs}ms`), Pt = d(() => {
|
|
279
|
-
if (L.value.colors) {
|
|
280
|
-
if (!L.value.colors.from) return G(U.value[0] || s[0], o(L.value.colors.to), W.value || 10);
|
|
281
|
-
if (!L.value.colors.to) return G(o(L.value.colors.from), U.value[1] || s[1], W.value || 10);
|
|
282
|
-
} else return G(U.value[1] || s[1], U.value[0] || s[0], W.value || 10);
|
|
283
|
-
return G(o(L.value.colors.from), o(L.value.colors.to), W.value || 10);
|
|
284
|
-
}), Ft = d(() => {
|
|
285
|
-
let e = [], t = 0, n = J.value.thermoHeight;
|
|
286
|
-
for (let r = 0; r < n - 1; r += n / W.value) e.push({
|
|
287
|
-
x: J.value.left,
|
|
288
|
-
y: J.value.top + r,
|
|
289
|
-
qYLess: J.value.top + r + n / W.value / 4,
|
|
290
|
-
halfY: J.value.top + r + n / W.value / 2,
|
|
291
|
-
qYMore: J.value.top + r + n / W.value / 4 * 3,
|
|
292
|
-
color: Pt.value[t],
|
|
293
|
-
height: Math.max(.1, n / W.value)
|
|
294
|
-
}), t += 1;
|
|
295
|
-
return e;
|
|
296
|
-
}), X = b(!1);
|
|
297
|
-
function It(e) {
|
|
298
|
-
X.value = e, mt.value += 1;
|
|
299
|
-
}
|
|
300
|
-
let Z = b(!1);
|
|
301
|
-
function Q() {
|
|
302
|
-
Z.value = !Z.value;
|
|
303
|
-
}
|
|
304
|
-
async function Lt({ scale: e = 2 } = {}) {
|
|
305
|
-
if (!O.value) return;
|
|
306
|
-
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
307
|
-
domElement: O.value,
|
|
308
|
-
base64: !0,
|
|
309
|
-
img: !0,
|
|
310
|
-
scale: e
|
|
311
|
-
});
|
|
312
|
-
return {
|
|
313
|
-
imageUri: i,
|
|
314
|
-
base64: a,
|
|
315
|
-
title: N.value.style.title.text,
|
|
316
|
-
width: t,
|
|
317
|
-
height: n,
|
|
318
|
-
aspectRatio: r
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
let $ = d({
|
|
322
|
-
get: () => N.value.style.chart.label.fontSize,
|
|
323
|
-
set: (e) => e
|
|
324
|
-
}), { autoSizeLabels: Rt } = ye({
|
|
325
|
-
svgRef: z,
|
|
326
|
-
fontSize: N.value.style.chart.label.fontSize,
|
|
327
|
-
minFontSize: N.value.style.chart.label.minFontSize,
|
|
328
|
-
sizeRef: $,
|
|
329
|
-
labelClass: ".vue-ui-thermometer-label"
|
|
330
|
-
}), zt = d(() => N.value.style.chart.backgroundColor), { exportSvg: Bt, getSvg: Vt } = ue({
|
|
331
|
-
svg: z,
|
|
332
|
-
title: d(() => N.value.style.title),
|
|
333
|
-
backgroundColor: zt
|
|
334
|
-
});
|
|
335
|
-
async function Ht({ isCb: e }) {
|
|
336
|
-
M.value = !0, await Te();
|
|
337
|
-
try {
|
|
338
|
-
if (e) {
|
|
339
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Vt();
|
|
340
|
-
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
341
|
-
blob: e,
|
|
342
|
-
url: t,
|
|
343
|
-
text: n,
|
|
344
|
-
dataUrl: r
|
|
345
|
-
}));
|
|
346
|
-
} else await Promise.resolve(Bt());
|
|
347
|
-
} finally {
|
|
348
|
-
M.value = !1;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
function Ut(e) {
|
|
352
|
-
if (e?.stage === "start") {
|
|
353
|
-
j.value = !0;
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
if (e?.stage === "end") {
|
|
357
|
-
j.value = !1;
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
Dt();
|
|
361
|
-
}
|
|
362
|
-
async function Wt() {
|
|
363
|
-
if (pt("copyAlt", {
|
|
364
|
-
config: N.value,
|
|
365
|
-
dataset: L.value
|
|
366
|
-
}), !N.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(N.value.userOptions.callbacks.altCopy({
|
|
371
|
-
config: N.value,
|
|
372
|
-
dataset: L.value
|
|
373
|
-
}));
|
|
374
|
-
}
|
|
375
|
-
let Gt = d(() => `${D.value}-title`), Kt = d(() => `${D.value}-desc`), qt = d(() => ne(N.value.style.chart.label.formatter, L.value.value, re({
|
|
376
|
-
p: N.value.style.chart.label.prefix,
|
|
377
|
-
v: L.value.value,
|
|
378
|
-
s: N.value.style.chart.label.suffix,
|
|
379
|
-
r: N.value.style.chart.label.rounding
|
|
380
|
-
}), { datapoint: L.value })), Jt = d(() => N.value.style.title.text || ""), Yt = d(() => {
|
|
381
|
-
if (I.value) return "...";
|
|
382
|
-
let e = c(L.value.from), t = c(L.value.to);
|
|
383
|
-
return `Thermometer value: ${qt.value}. Range: ${e} to ${t}.`;
|
|
384
|
-
});
|
|
385
|
-
return me({
|
|
386
|
-
getImage: Lt,
|
|
387
|
-
generatePdf: Et,
|
|
388
|
-
generateImage: Dt,
|
|
389
|
-
generateSvg: Ht,
|
|
390
|
-
toggleAnnotator: Q,
|
|
391
|
-
toggleFullscreen: It,
|
|
392
|
-
copyAlt: Wt
|
|
393
|
-
}), (e, t) => (y(), m("div", {
|
|
394
|
-
ref_key: "thermoChart",
|
|
395
|
-
ref: O,
|
|
396
|
-
class: _(`vue-data-ui-component vue-ui-thermometer ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
397
|
-
style: Ee(`width:100%;background:${N.value.style.chart.backgroundColor};color:${N.value.style.chart.color};font-family:${N.value.style.fontFamily}`),
|
|
398
|
-
id: `thermometer__${D.value}`,
|
|
399
|
-
onMouseenter: t[0] ||= () => C(wt)(!0),
|
|
400
|
-
onMouseleave: t[1] ||= () => C(wt)(!1)
|
|
401
|
-
}, [
|
|
402
|
-
N.value.userOptions.buttons.annotator ? (y(), f(C(st), {
|
|
403
|
-
key: 0,
|
|
404
|
-
svgRef: C(z),
|
|
405
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
406
|
-
color: N.value.style.chart.color,
|
|
407
|
-
active: Z.value,
|
|
408
|
-
isCursorPointer: bt.value,
|
|
409
|
-
onClose: Q
|
|
410
|
-
}, {
|
|
411
|
-
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
412
|
-
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
413
|
-
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
414
|
-
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
415
|
-
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
416
|
-
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
417
|
-
_: 3
|
|
418
|
-
}, 8, [
|
|
419
|
-
"svgRef",
|
|
420
|
-
"backgroundColor",
|
|
421
|
-
"color",
|
|
422
|
-
"active",
|
|
423
|
-
"isCursorPointer"
|
|
424
|
-
])) : p("", !0),
|
|
425
|
-
Ot.value ? (y(), m("div", Pe, null, 512)) : p("", !0),
|
|
426
|
-
N.value.style.title.text ? (y(), m("div", {
|
|
427
|
-
key: 2,
|
|
428
|
-
ref_key: "chartTitle",
|
|
429
|
-
ref: gt,
|
|
430
|
-
style: "width:100%"
|
|
431
|
-
}, [(y(), f(pe, {
|
|
432
|
-
key: `title_${ht.value}`,
|
|
433
|
-
config: {
|
|
434
|
-
title: {
|
|
435
|
-
cy: "thermometer-div-title",
|
|
436
|
-
...N.value.style.title
|
|
437
|
-
},
|
|
438
|
-
subtitle: {
|
|
439
|
-
cy: "thermometer-div-subtitle",
|
|
440
|
-
...N.value.style.title.subtitle
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
444
|
-
N.value.userOptions.show && vt.value && (C(Tt) || C(R)) ? (y(), f(C(ct), {
|
|
445
|
-
ref: "details",
|
|
446
|
-
key: `user_options_${mt.value}`,
|
|
447
|
-
backgroundColor: N.value.style.chart.backgroundColor,
|
|
448
|
-
color: N.value.style.chart.color,
|
|
449
|
-
isImaging: C(H),
|
|
450
|
-
isPrinting: C(V),
|
|
451
|
-
uid: D.value,
|
|
452
|
-
hasPdf: N.value.userOptions.buttons.pdf,
|
|
453
|
-
hasImg: N.value.userOptions.buttons.img,
|
|
454
|
-
hasSvg: N.value.userOptions.buttons.svg,
|
|
455
|
-
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
456
|
-
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
457
|
-
hasXls: !1,
|
|
458
|
-
isFullscreen: X.value,
|
|
459
|
-
titles: { ...N.value.userOptions.buttonTitles },
|
|
460
|
-
chartElement: O.value,
|
|
461
|
-
position: N.value.userOptions.position,
|
|
462
|
-
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
463
|
-
isAnnotation: Z.value,
|
|
464
|
-
callbacks: N.value.userOptions.callbacks,
|
|
465
|
-
printScale: N.value.userOptions.print.scale,
|
|
466
|
-
isCursorPointer: bt.value,
|
|
467
|
-
onToggleFullscreen: It,
|
|
468
|
-
onGeneratePdf: C(Et),
|
|
469
|
-
onGenerateImage: Ut,
|
|
470
|
-
onGenerateSvg: Ht,
|
|
471
|
-
onToggleAnnotator: Q,
|
|
472
|
-
onCopyAlt: Wt,
|
|
473
|
-
style: Ee({ visibility: C(Tt) ? C(R) ? "visible" : "hidden" : "visible" })
|
|
474
|
-
}, Se({ _: 2 }, [
|
|
475
|
-
e.$slots.menuIcon ? {
|
|
476
|
-
name: "menuIcon",
|
|
477
|
-
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", v(g({
|
|
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: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
486
|
-
key: "1"
|
|
487
|
-
} : void 0,
|
|
488
|
-
e.$slots.optionImg ? {
|
|
489
|
-
name: "optionImg",
|
|
490
|
-
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
491
|
-
key: "2"
|
|
492
|
-
} : void 0,
|
|
493
|
-
e.$slots.optionSvg ? {
|
|
494
|
-
name: "optionSvg",
|
|
495
|
-
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
496
|
-
key: "3"
|
|
497
|
-
} : void 0,
|
|
498
|
-
e.$slots.optionFullscreen ? {
|
|
499
|
-
name: "optionFullscreen",
|
|
500
|
-
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", v(g({
|
|
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: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", v(g({
|
|
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: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
517
|
-
key: "6"
|
|
518
|
-
} : void 0,
|
|
519
|
-
e.$slots["custom-menu-before"] ? {
|
|
520
|
-
name: "custom-menu-before",
|
|
521
|
-
fn: w(() => [x(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: w(() => [x(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
|
-
(y(), m("svg", {
|
|
553
|
-
ref_key: "svgRef",
|
|
554
|
-
ref: z,
|
|
555
|
-
xmlns: C(ie),
|
|
556
|
-
class: _({
|
|
557
|
-
"vue-data-ui-fullscreen--on": X.value,
|
|
558
|
-
"vue-data-ui-fulscreen--off": !X.value
|
|
559
|
-
}),
|
|
560
|
-
width: "100%",
|
|
561
|
-
viewBox: `0 0 ${J.value.width} ${J.value.height}`,
|
|
562
|
-
style: "background:transparent",
|
|
563
|
-
"aria-labelledby": Gt.value,
|
|
564
|
-
"aria-describedby": Kt.value
|
|
565
|
-
}, [
|
|
566
|
-
h("title", { id: Gt.value }, S(Jt.value), 9, Ie),
|
|
567
|
-
h("desc", { id: Kt.value }, S(Yt.value), 9, Le),
|
|
568
|
-
Ce(C(T)),
|
|
569
|
-
e.$slots["chart-background"] ? (y(), m("foreignObject", {
|
|
570
|
-
key: 0,
|
|
571
|
-
x: 0,
|
|
572
|
-
y: 0,
|
|
573
|
-
width: J.value.width,
|
|
574
|
-
height: J.value.height,
|
|
575
|
-
style: { pointerEvents: "none" }
|
|
576
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Re)) : p("", !0),
|
|
577
|
-
h("defs", null, [h("clipPath", {
|
|
578
|
-
id: `vueUiPill-${D.value}`,
|
|
579
|
-
clipPathUnits: "userSpaceOnUse"
|
|
580
|
-
}, [h("rect", {
|
|
581
|
-
x: J.value.left,
|
|
582
|
-
y: J.value.top,
|
|
583
|
-
width: J.value.thermoWidth,
|
|
584
|
-
height: J.value.thermoHeight,
|
|
585
|
-
rx: J.value.thermoWidth / 2,
|
|
586
|
-
ry: J.value.thermoWidth / 2
|
|
587
|
-
}, null, 8, Be)], 8, ze), (y(!0), m(u, null, Oe(Ft.value, (e, t) => (y(), m("linearGradient", {
|
|
588
|
-
id: `vueUiThermometerGradient_${t}_${D.value}`,
|
|
589
|
-
x1: "0%",
|
|
590
|
-
y1: "0%",
|
|
591
|
-
x2: "100%",
|
|
592
|
-
y2: "0%"
|
|
593
|
-
}, [
|
|
594
|
-
h("stop", {
|
|
595
|
-
offset: "0%",
|
|
596
|
-
"stop-color": e.color
|
|
597
|
-
}, null, 8, He),
|
|
598
|
-
h("stop", {
|
|
599
|
-
offset: "50%",
|
|
600
|
-
"stop-color": C(n)(e.color, 100 - N.value.style.chart.graduations.gradient.intensity)
|
|
601
|
-
}, null, 8, Ue),
|
|
602
|
-
h("stop", {
|
|
603
|
-
offset: "100%",
|
|
604
|
-
"stop-color": e.color
|
|
605
|
-
}, null, 8, We)
|
|
606
|
-
], 8, Ve))), 256))]),
|
|
607
|
-
h("g", { "clip-path": `url(#vueUiPill-${D.value})` }, [
|
|
608
|
-
h("rect", {
|
|
609
|
-
x: J.value.left,
|
|
610
|
-
y: J.value.top,
|
|
611
|
-
height: J.value.thermoHeight,
|
|
612
|
-
width: J.value.thermoWidth,
|
|
613
|
-
fill: "#FFFFFF"
|
|
614
|
-
}, null, 8, Ke),
|
|
615
|
-
(y(!0), m(u, null, Oe(Ft.value, (e, t) => (y(), m("g", { key: `graduation_${t}` }, [
|
|
616
|
-
h("rect", {
|
|
617
|
-
x: e.x,
|
|
618
|
-
y: e.y,
|
|
619
|
-
height: e.height,
|
|
620
|
-
width: J.value.thermoWidth,
|
|
621
|
-
fill: N.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${t}_${D.value})` : e.color,
|
|
622
|
-
"shape-rendering": "crispEdges"
|
|
623
|
-
}, null, 8, qe),
|
|
624
|
-
N.value.style.chart.graduations.show && ["both", "left"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
625
|
-
key: 0,
|
|
626
|
-
x1: e.x,
|
|
627
|
-
x2: e.x + 10,
|
|
628
|
-
y1: e.y,
|
|
629
|
-
y2: e.y,
|
|
630
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth,
|
|
631
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
632
|
-
"stroke-linecap": "round"
|
|
633
|
-
}, null, 8, Je)) : p("", !0),
|
|
634
|
-
N.value.style.chart.graduations.showIntermediate ? (y(), m(u, { key: 1 }, [
|
|
635
|
-
N.value.style.chart.graduations.show && ["both", "left"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
636
|
-
key: 0,
|
|
637
|
-
x1: e.x,
|
|
638
|
-
x2: e.x + 5,
|
|
639
|
-
y1: e.halfY,
|
|
640
|
-
y2: e.halfY,
|
|
641
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth / 2,
|
|
642
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
643
|
-
"stroke-linecap": "round"
|
|
644
|
-
}, null, 8, Ye)) : p("", !0),
|
|
645
|
-
N.value.style.chart.graduations.show && ["both", "left"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
646
|
-
key: 1,
|
|
647
|
-
x1: e.x,
|
|
648
|
-
x2: e.x + 2.5,
|
|
649
|
-
y1: e.qYLess,
|
|
650
|
-
y2: e.qYLess,
|
|
651
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth / 2,
|
|
652
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
653
|
-
"stroke-linecap": "round"
|
|
654
|
-
}, null, 8, Xe)) : p("", !0),
|
|
655
|
-
N.value.style.chart.graduations.show && ["both", "left"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
656
|
-
key: 2,
|
|
657
|
-
x1: e.x,
|
|
658
|
-
x2: e.x + 2.5,
|
|
659
|
-
y1: e.qYMore,
|
|
660
|
-
y2: e.qYMore,
|
|
661
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth / 2,
|
|
662
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
663
|
-
"stroke-linecap": "round"
|
|
664
|
-
}, null, 8, Ze)) : p("", !0)
|
|
665
|
-
], 64)) : p("", !0),
|
|
666
|
-
N.value.style.chart.graduations.show && ["both", "right"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
667
|
-
key: 2,
|
|
668
|
-
x1: J.value.right,
|
|
669
|
-
x2: J.value.right - 10,
|
|
670
|
-
y1: e.y,
|
|
671
|
-
y2: e.y,
|
|
672
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth,
|
|
673
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
674
|
-
"stroke-linecap": "round"
|
|
675
|
-
}, null, 8, Qe)) : p("", !0),
|
|
676
|
-
N.value.style.chart.graduations.showIntermediate ? (y(), m(u, { key: 3 }, [
|
|
677
|
-
N.value.style.chart.graduations.show && ["both", "right"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
678
|
-
key: 0,
|
|
679
|
-
x1: J.value.right,
|
|
680
|
-
x2: J.value.right - 5,
|
|
681
|
-
y1: e.halfY,
|
|
682
|
-
y2: e.halfY,
|
|
683
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth / 2,
|
|
684
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
685
|
-
"stroke-linecap": "round"
|
|
686
|
-
}, null, 8, $e)) : p("", !0),
|
|
687
|
-
N.value.style.chart.graduations.show && ["both", "right"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
688
|
-
key: 1,
|
|
689
|
-
x1: J.value.right,
|
|
690
|
-
x2: J.value.right - 2.5,
|
|
691
|
-
y1: e.qYLess,
|
|
692
|
-
y2: e.qYLess,
|
|
693
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth / 2,
|
|
694
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
695
|
-
"stroke-linecap": "round"
|
|
696
|
-
}, null, 8, et)) : p("", !0),
|
|
697
|
-
N.value.style.chart.graduations.show && ["both", "right"].includes(N.value.style.chart.graduations.sides) ? (y(), m("line", {
|
|
698
|
-
key: 2,
|
|
699
|
-
x1: J.value.right,
|
|
700
|
-
x2: J.value.right - 2.5,
|
|
701
|
-
y1: e.qYMore,
|
|
702
|
-
y2: e.qYMore,
|
|
703
|
-
"stroke-width": N.value.style.chart.graduations.strokeWidth / 2,
|
|
704
|
-
stroke: N.value.style.chart.graduations.stroke,
|
|
705
|
-
"stroke-linecap": "round"
|
|
706
|
-
}, null, 8, tt)) : p("", !0)
|
|
707
|
-
], 64)) : p("", !0)
|
|
708
|
-
]))), 128)),
|
|
709
|
-
h("rect", {
|
|
710
|
-
class: _({ "vue-ui-thermometer-temperature": N.value.style.chart.animation.use }),
|
|
711
|
-
x: J.value.left,
|
|
712
|
-
y: J.value.top,
|
|
713
|
-
height: Y.value,
|
|
714
|
-
width: J.value.thermoWidth,
|
|
715
|
-
fill: "#FFFFFF66"
|
|
716
|
-
}, null, 10, nt)
|
|
717
|
-
], 8, Ge),
|
|
718
|
-
N.value.style.chart.label.show ? (y(), m("g", {
|
|
719
|
-
key: 1,
|
|
720
|
-
role: "status",
|
|
721
|
-
"aria-live": "polite",
|
|
722
|
-
"aria-label": C(I) ? "Loading data" : qt.value
|
|
723
|
-
}, [C(I) ? (y(), m("rect", {
|
|
724
|
-
key: 0,
|
|
725
|
-
x: J.value.left - 60,
|
|
726
|
-
y: Y.value + J.value.top - $.value / 2,
|
|
727
|
-
width: 50,
|
|
728
|
-
height: $.value,
|
|
729
|
-
fill: "#6A6A6A40",
|
|
730
|
-
rx: "3"
|
|
731
|
-
}, null, 8, it)) : (y(), m("text", {
|
|
732
|
-
key: 1,
|
|
733
|
-
"aria-hidden": "true",
|
|
734
|
-
class: _({
|
|
735
|
-
"vue-ui-thermometer-temperature-value": N.value.style.chart.animation.use,
|
|
736
|
-
"vue-ui-thermometer-label": !0
|
|
737
|
-
}),
|
|
738
|
-
y: Y.value + J.value.top + $.value / 3,
|
|
739
|
-
x: J.value.left - 10,
|
|
740
|
-
"text-anchor": "end",
|
|
741
|
-
fill: N.value.style.chart.label.color,
|
|
742
|
-
"font-size": $.value,
|
|
743
|
-
"font-weight": N.value.style.chart.label.bold ? "bold" : "normal"
|
|
744
|
-
}, S(qt.value), 11, at))], 8, rt)) : p("", !0),
|
|
745
|
-
x(e.$slots, "svg", { svg: {
|
|
746
|
-
...At.value,
|
|
747
|
-
isPrintingImg: C(V) || C(H) || j.value,
|
|
748
|
-
isPrintingSvg: M.value
|
|
749
|
-
} }, void 0, !0)
|
|
750
|
-
], 10, Fe)),
|
|
751
|
-
e.$slots.watermark ? (y(), m("div", ot, [x(e.$slots, "watermark", v(g({ isPrinting: C(V) || C(H) || j.value || M.value })), void 0, !0)])) : p("", !0),
|
|
752
|
-
e.$slots.source ? (y(), m("div", {
|
|
753
|
-
key: 5,
|
|
754
|
-
ref_key: "source",
|
|
755
|
-
ref: _t,
|
|
756
|
-
dir: "auto"
|
|
757
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
758
|
-
x(e.$slots, "skeleton", {}, () => [C(I) ? (y(), f(le, { key: 0 })) : p("", !0)], !0)
|
|
759
|
-
], 46, Ne));
|
|
760
|
-
}
|
|
761
|
-
}, [["__scopeId", "data-v-c1de98e8"]]);
|
|
762
|
-
//#endregion
|
|
763
|
-
export { Me as n, T as t };
|