vue-data-ui 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -44
- package/dist/{Arrow-BIs_9yK8.js → Arrow-C7lNL7sY.js} +1 -1
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-Dz6AomGr.cjs} +1 -1
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-BbvG1AlW.js} +7 -4
- package/dist/BaseIcon-uALK38Ov.cjs +1 -0
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DTzynbND.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DYqC2pqu.js} +2 -2
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-Cgw4lO2O.cjs} +1 -1
- package/dist/{Legend-DXLiSLHd.js → Legend-DNgTCgEK.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-VkaUzgmt.js} +1 -1
- package/dist/PenAndPaper-CDFVOo7X.cjs +1 -0
- package/dist/PenAndPaper-DAZYA8Ew.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-Bwon0l0g.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-D2Dpshg1.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-TfpN2Cr4.js} +3 -3
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-uSjfNJjG.cjs} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-0Tp4hZ4u.cjs} +1 -1
- package/dist/{Title-DYNLqCCT.js → Title-C5pIfQAz.js} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cz24YLfw.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-Bya_q1J-.js} +883 -842
- package/dist/index-eFox7weK.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +22 -17
- package/dist/types/vue-data-ui.d.ts +22 -17
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-B33hazbH.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
- package/dist/usePrinter-CSRFnDBU.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-CiHd1FwD.js} +230 -185
- package/dist/useResponsive-BY8tgM1n.js +188 -0
- package/dist/useResponsive-CodiGUOE.cjs +1 -0
- package/dist/vue-data-ui-BTtxyUc3.cjs +9 -0
- package/dist/vue-data-ui-Bduq4f2p.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-B-P7PMHs.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BUEq_VdY.js} +421 -390
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CH72tAMb.js} +255 -222
- package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-DPeJ2its.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
- package/dist/vue-ui-bullet-CtP3MlUT.js +464 -0
- package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
- package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DDil13a0.js} +278 -245
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
- package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-BczSJF6S.js} +322 -291
- package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
- package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-DUcp-fat.js} +376 -343
- package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-C_YMbTwq.js} +375 -344
- package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Buwngz_V.js} +294 -261
- package/dist/vue-ui-flow-Bz3c0K5P.js +515 -0
- package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-Cjh0XGTX.js} +212 -181
- package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
- package/dist/vue-ui-gauge-B1UvGkQa.js +527 -0
- package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-C-poazUw.js} +308 -277
- package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
- package/dist/vue-ui-molecule-BaJpDZND.js +805 -0
- package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-BUNDwsEI.js} +259 -228
- package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
- package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-mDy2hXa6.js} +371 -338
- package/dist/vue-ui-onion-DwFG3HAI.js +650 -0
- package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
- package/dist/vue-ui-parallel-coordinate-plot-ImET_zeo.js +719 -0
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-BeveRihK.js} +359 -326
- package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-DAhllTfa.js} +585 -552
- package/dist/vue-ui-quick-chart-DgFDBzjS.cjs +15 -0
- package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-BllatzRa.js} +279 -246
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-D1ykV4xO.js} +2 -2
- package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
- package/dist/vue-ui-relation-circle-xv2l5Be9.js +358 -0
- package/dist/vue-ui-rings-B-ZcX6y1.js +602 -0
- package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-DG43ck1g.js} +440 -407
- package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
- package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
- package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
- package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
- package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
- package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
- package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
- package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
- package/dist/vue-ui-stackbar-ByOuJSdM.js +947 -0
- package/dist/vue-ui-stackbar-wun4S3C0.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-CMD0MSqY.js} +297 -264
- package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-B75DJ39t.js} +1 -1
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
- package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
- package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
- package/dist/vue-ui-thermometer-Pq4PvSIP.js +447 -0
- package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
- package/dist/vue-ui-tiremarks-CU9HJIqf.js +310 -0
- package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
- package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
- package/dist/vue-ui-treemap-DY-lRAhC.js +825 -0
- package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
- package/dist/vue-ui-vertical-bar-CtnIKsM1.js +861 -0
- package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
- package/dist/vue-ui-waffle-reOsx-gJ.js +791 -0
- package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
- package/dist/vue-ui-wheel-kYxny3vn.js +291 -0
- package/dist/vue-ui-word-cloud-DbMqrHAf.js +607 -0
- package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
- package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-B0HTR7OV.js} +441 -408
- package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-rbACig0h.js} +824 -791
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/useResponsive-B3TrDDIG.cjs +0 -1
- package/dist/useResponsive-NZB-WLRF.js +0 -187
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-carousel-table-C0GDDSW9.cjs +0 -1
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-D9o6Rcgu.js +0 -617
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BcYrYXhG.js +0 -686
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-skeleton-CGV1dEUD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BfoEoJEy.cjs +0 -1
- package/dist/vue-ui-sparkbar-DB2DeXti.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CJepIY2u.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B7B36LLT.cjs +0 -1
- package/dist/vue-ui-sparkline-BcqmwDAb.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-DT3aKNeV.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-table-heatmap-Chvdf2Gi.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DUUYQ5dH.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-CieqHVD5.js +0 -828
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { useCssVars as ve, computed as h, onMounted as ye, ref as g, watch as fe, openBlock as l, createElementBlock as n, normalizeClass as P, normalizeStyle as ge, createBlock as F, createCommentVNode as i, unref as v, createSlots as me, withCtx as I, renderSlot as m, normalizeProps as G, guardReactiveProps as V, createVNode as pe, createElementVNode as d, Fragment as A, renderList as K, toDisplayString as ke } from "vue";
|
|
2
|
+
import { u as be, o as _e, e as Q, g as xe, c as we, t as Ce, a as $e, p as _, b as Pe, v as f, d as O, X as Fe, s as Ie, i as Ae, f as Oe } from "./index-Bya_q1J-.js";
|
|
3
|
+
import { _ as Ye } from "./Title-C5pIfQAz.js";
|
|
4
|
+
import { u as Me, U as Ne } from "./usePrinter-CiHd1FwD.js";
|
|
5
|
+
import Se from "./vue-ui-skeleton-BYssP0K4.js";
|
|
6
|
+
import { u as Z } from "./useNestedProp-B33hazbH.js";
|
|
7
|
+
import { _ as Ue } from "./PackageVersion-VkaUzgmt.js";
|
|
8
|
+
import { P as qe } from "./PenAndPaper-DAZYA8Ew.js";
|
|
9
|
+
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const Te = ["id"], Ge = {
|
|
11
|
+
key: 1,
|
|
12
|
+
style: "width:100%"
|
|
13
|
+
}, Ve = ["xmlns", "viewBox"], We = {
|
|
14
|
+
id: "vueUiPill",
|
|
15
|
+
clipPathUnits: "objectBoundingBox"
|
|
16
|
+
}, Ee = ["fill"], ze = ["id"], Be = ["stop-color"], je = ["stop-color"], De = ["stop-color"], He = { "clip-path": "url(#vueUiPill)" }, Xe = ["x", "y", "height", "width"], Re = ["x", "y", "height", "width", "fill"], Je = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ke = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Qe = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Ze = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], tt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], st = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x", "y", "height", "width"], lt = ["y", "x", "fill", "font-size", "font-weight"], rt = {
|
|
17
|
+
key: 4,
|
|
18
|
+
class: "vue-data-ui-watermark"
|
|
19
|
+
}, ut = {
|
|
20
|
+
key: 5,
|
|
21
|
+
ref: "source",
|
|
22
|
+
dir: "auto"
|
|
23
|
+
}, nt = {
|
|
24
|
+
__name: "vue-ui-thermometer",
|
|
25
|
+
props: {
|
|
26
|
+
dataset: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default() {
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
config: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default() {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
setup(x, { expose: ee }) {
|
|
40
|
+
const a = x;
|
|
41
|
+
ve((o) => ({
|
|
42
|
+
"067bf1c5": re.value,
|
|
43
|
+
"94b8612e": le.value,
|
|
44
|
+
"29802a96": ae.value
|
|
45
|
+
}));
|
|
46
|
+
const { vue_ui_thermometer: te } = be(), Y = h(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
47
|
+
ye(() => {
|
|
48
|
+
W();
|
|
49
|
+
});
|
|
50
|
+
function W() {
|
|
51
|
+
_e(a.dataset) ? Q({
|
|
52
|
+
componentName: "VueUiThermometer",
|
|
53
|
+
type: "dataset"
|
|
54
|
+
}) : xe({
|
|
55
|
+
datasetObject: a.dataset,
|
|
56
|
+
requiredAttributes: ["value", "from", "to"]
|
|
57
|
+
}).forEach((o) => {
|
|
58
|
+
Q({
|
|
59
|
+
componentName: "VueUiThermometer",
|
|
60
|
+
type: "datasetAttribute",
|
|
61
|
+
property: o
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
const p = g(we()), M = g(null), E = g(0), z = g(0), e = h({
|
|
66
|
+
get: () => B(),
|
|
67
|
+
set: (o) => o
|
|
68
|
+
});
|
|
69
|
+
function B() {
|
|
70
|
+
const o = Z({
|
|
71
|
+
userConfig: a.config,
|
|
72
|
+
defaultConfig: te
|
|
73
|
+
});
|
|
74
|
+
return o.theme ? {
|
|
75
|
+
...Z({
|
|
76
|
+
userConfig: Ce.vue_ui_thermometer[o.theme] || a.config,
|
|
77
|
+
defaultConfig: o
|
|
78
|
+
}),
|
|
79
|
+
customPalette: $e[o.theme] || _
|
|
80
|
+
} : o;
|
|
81
|
+
}
|
|
82
|
+
fe(() => a.config, (o) => {
|
|
83
|
+
e.value = B(), W(), z.value += 1;
|
|
84
|
+
}, { deep: !0 });
|
|
85
|
+
const { isPrinting: j, isImaging: D, generatePdf: H, generateImage: X } = Me({
|
|
86
|
+
elementId: `thermometer__${p.value}`,
|
|
87
|
+
fileName: e.value.style.title.text || "vue-ui-thermometer"
|
|
88
|
+
}), w = h(() => Pe(e.value.customPalette)), oe = h(() => e.value.style.chart.thermometer.width), y = h(() => a.dataset.steps || 10), c = g({
|
|
89
|
+
top: e.value.style.chart.padding.top,
|
|
90
|
+
left: e.value.style.chart.padding.left,
|
|
91
|
+
right: e.value.style.chart.padding.right,
|
|
92
|
+
bottom: e.value.style.chart.padding.bottom
|
|
93
|
+
});
|
|
94
|
+
function C(o, u, t) {
|
|
95
|
+
const r = [], L = R(o), T = R(u);
|
|
96
|
+
for (let b = 0; b < t; b++) {
|
|
97
|
+
const ie = N(L.red, T.red, b, t), ce = N(L.green, T.green, b, t), he = N(L.blue, T.blue, b, t), de = `#${S(ie)}${S(ce)}${S(he)}`;
|
|
98
|
+
r.push(de);
|
|
99
|
+
}
|
|
100
|
+
return r;
|
|
101
|
+
}
|
|
102
|
+
function R(o) {
|
|
103
|
+
const u = o.slice(1);
|
|
104
|
+
return {
|
|
105
|
+
red: parseInt(u.slice(0, 2), 16),
|
|
106
|
+
green: parseInt(u.slice(2, 4), 16),
|
|
107
|
+
blue: parseInt(u.slice(4, 6), 16)
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function N(o, u, t, r) {
|
|
111
|
+
return Math.round(o + (u - o) * t / r);
|
|
112
|
+
}
|
|
113
|
+
function S(o) {
|
|
114
|
+
return o.toString(16).padStart(2, "0");
|
|
115
|
+
}
|
|
116
|
+
const s = h(() => {
|
|
117
|
+
const o = oe.value + c.value.left + c.value.right, u = e.value.style.chart.height;
|
|
118
|
+
return {
|
|
119
|
+
width: o,
|
|
120
|
+
left: c.value.left,
|
|
121
|
+
right: o - c.value.right,
|
|
122
|
+
top: c.value.top,
|
|
123
|
+
bottom: u - c.value.bottom,
|
|
124
|
+
height: u
|
|
125
|
+
};
|
|
126
|
+
}), se = h(() => s.value), U = h(() => {
|
|
127
|
+
const o = f(a.dataset.from) < 0 ? Math.abs(f(a.dataset.from)) : f(a.dataset.from), u = f(a.dataset.to) < 0 ? Math.abs(f(a.dataset.to)) : f(a.dataset.to);
|
|
128
|
+
let t = 0;
|
|
129
|
+
return f(a.dataset.to) > 0 ? t = o + u : o > u ? t = o - u : t = u - o, (1 - (Math.abs(f(a.dataset.from)) + f(a.dataset.value)) / t) * (s.value.height - c.value.top - c.value.bottom);
|
|
130
|
+
}), ae = h(() => `${U.value}px`), le = h(() => `${s.value.height - e.value.style.chart.padding.bottom - c.value.top}px`), re = h(() => `${e.value.style.chart.animation.speedMs}ms`), ue = h(() => {
|
|
131
|
+
if (a.dataset.colors) {
|
|
132
|
+
if (!a.dataset.colors.from)
|
|
133
|
+
return C(w.value[0] || _[0], O(a.dataset.colors.to), y.value || 10);
|
|
134
|
+
if (!a.dataset.colors.to)
|
|
135
|
+
return C(O(a.dataset.colors.from), w.value[1] || _[1], y.value || 10);
|
|
136
|
+
} else
|
|
137
|
+
return C(w.value[1] || _[1], w.value[0] || _[0], y.value || 10);
|
|
138
|
+
return C(O(a.dataset.colors.from), O(a.dataset.colors.to), y.value || 10);
|
|
139
|
+
}), J = h(() => {
|
|
140
|
+
const o = [];
|
|
141
|
+
let u = 0;
|
|
142
|
+
const t = s.value.height - c.value.top - c.value.bottom;
|
|
143
|
+
for (let r = 0; r < t - 1; r += t / y.value)
|
|
144
|
+
o.push({
|
|
145
|
+
x: s.value.left,
|
|
146
|
+
y: s.value.top + r,
|
|
147
|
+
qYLess: s.value.top + r + t / y.value / 4,
|
|
148
|
+
halfY: s.value.top + r + t / y.value / 2,
|
|
149
|
+
qYMore: s.value.top + r + t / y.value / 4 * 3,
|
|
150
|
+
color: ue.value[u],
|
|
151
|
+
height: t / y.value
|
|
152
|
+
}), u += 1;
|
|
153
|
+
return o;
|
|
154
|
+
}), k = g(!1);
|
|
155
|
+
function ne(o) {
|
|
156
|
+
k.value = o, E.value += 1;
|
|
157
|
+
}
|
|
158
|
+
const $ = g(!1);
|
|
159
|
+
function q() {
|
|
160
|
+
$.value = !$.value;
|
|
161
|
+
}
|
|
162
|
+
return ee({
|
|
163
|
+
generatePdf: H,
|
|
164
|
+
generateImage: X,
|
|
165
|
+
toggleAnnotator: q
|
|
166
|
+
}), (o, u) => (l(), n("div", {
|
|
167
|
+
ref_key: "thermoChart",
|
|
168
|
+
ref: M,
|
|
169
|
+
class: P(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
170
|
+
style: ge(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
171
|
+
id: `thermometer__${p.value}`
|
|
172
|
+
}, [
|
|
173
|
+
e.value.userOptions.buttons.annotator ? (l(), F(qe, {
|
|
174
|
+
key: 0,
|
|
175
|
+
parent: M.value,
|
|
176
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
177
|
+
color: e.value.style.chart.color,
|
|
178
|
+
active: $.value,
|
|
179
|
+
onClose: q
|
|
180
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
|
|
181
|
+
e.value.style.title.text ? (l(), n("div", Ge, [
|
|
182
|
+
(l(), F(Ye, {
|
|
183
|
+
key: `title_${z.value}`,
|
|
184
|
+
config: {
|
|
185
|
+
title: {
|
|
186
|
+
cy: "thermometer-div-title",
|
|
187
|
+
...e.value.style.title
|
|
188
|
+
},
|
|
189
|
+
subtitle: {
|
|
190
|
+
cy: "thermometer-div-subtitle",
|
|
191
|
+
...e.value.style.title.subtitle
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}, null, 8, ["config"]))
|
|
195
|
+
])) : i("", !0),
|
|
196
|
+
e.value.userOptions.show && Y.value ? (l(), F(Ne, {
|
|
197
|
+
ref: "details",
|
|
198
|
+
key: `user_options_${E.value}`,
|
|
199
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
200
|
+
color: e.value.style.chart.color,
|
|
201
|
+
isImaging: v(D),
|
|
202
|
+
isPrinting: v(j),
|
|
203
|
+
uid: p.value,
|
|
204
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
205
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
206
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
207
|
+
hasXls: !1,
|
|
208
|
+
isFullscreen: k.value,
|
|
209
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
210
|
+
chartElement: M.value,
|
|
211
|
+
position: e.value.userOptions.position,
|
|
212
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
213
|
+
isAnnotation: $.value,
|
|
214
|
+
onToggleFullscreen: ne,
|
|
215
|
+
onGeneratePdf: v(H),
|
|
216
|
+
onGenerateImage: v(X),
|
|
217
|
+
onToggleAnnotator: q
|
|
218
|
+
}, me({ _: 2 }, [
|
|
219
|
+
o.$slots.optionPdf ? {
|
|
220
|
+
name: "optionPdf",
|
|
221
|
+
fn: I(() => [
|
|
222
|
+
m(o.$slots, "optionPdf", {}, void 0, !0)
|
|
223
|
+
]),
|
|
224
|
+
key: "0"
|
|
225
|
+
} : void 0,
|
|
226
|
+
o.$slots.optionImg ? {
|
|
227
|
+
name: "optionImg",
|
|
228
|
+
fn: I(() => [
|
|
229
|
+
m(o.$slots, "optionImg", {}, void 0, !0)
|
|
230
|
+
]),
|
|
231
|
+
key: "1"
|
|
232
|
+
} : void 0,
|
|
233
|
+
o.$slots.optionFullscreen ? {
|
|
234
|
+
name: "optionFullscreen",
|
|
235
|
+
fn: I(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
236
|
+
m(o.$slots, "optionFullscreen", G(V({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
237
|
+
]),
|
|
238
|
+
key: "2"
|
|
239
|
+
} : void 0,
|
|
240
|
+
o.$slots.optionAnnotator ? {
|
|
241
|
+
name: "optionAnnotator",
|
|
242
|
+
fn: I(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
243
|
+
m(o.$slots, "optionAnnotator", G(V({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
244
|
+
]),
|
|
245
|
+
key: "3"
|
|
246
|
+
} : void 0
|
|
247
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : i("", !0),
|
|
248
|
+
Y.value ? (l(), n("svg", {
|
|
249
|
+
key: 3,
|
|
250
|
+
xmlns: v(Fe),
|
|
251
|
+
class: P({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
|
|
252
|
+
width: "100%",
|
|
253
|
+
viewBox: `0 0 ${s.value.width} ${s.value.height}`,
|
|
254
|
+
style: "background:transparent"
|
|
255
|
+
}, [
|
|
256
|
+
pe(Ue),
|
|
257
|
+
d("defs", null, [
|
|
258
|
+
d("clipPath", We, [
|
|
259
|
+
d("rect", {
|
|
260
|
+
x: "0",
|
|
261
|
+
y: "0",
|
|
262
|
+
width: "1",
|
|
263
|
+
height: "1",
|
|
264
|
+
rx: "0.5",
|
|
265
|
+
ry: "0.07",
|
|
266
|
+
fill: e.value.style.chart.backgroundColor
|
|
267
|
+
}, null, 8, Ee)
|
|
268
|
+
]),
|
|
269
|
+
(l(!0), n(A, null, K(J.value, (t, r) => (l(), n("linearGradient", {
|
|
270
|
+
id: `vueUiThermometerGradient_${r}_${p.value}`,
|
|
271
|
+
x1: "0%",
|
|
272
|
+
y1: "0%",
|
|
273
|
+
x2: "100%",
|
|
274
|
+
y2: "0%"
|
|
275
|
+
}, [
|
|
276
|
+
d("stop", {
|
|
277
|
+
offset: "0%",
|
|
278
|
+
"stop-color": t.color
|
|
279
|
+
}, null, 8, Be),
|
|
280
|
+
d("stop", {
|
|
281
|
+
offset: "50%",
|
|
282
|
+
"stop-color": v(Ie)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
|
|
283
|
+
}, null, 8, je),
|
|
284
|
+
d("stop", {
|
|
285
|
+
offset: "100%",
|
|
286
|
+
"stop-color": t.color
|
|
287
|
+
}, null, 8, De)
|
|
288
|
+
], 8, ze))), 256))
|
|
289
|
+
]),
|
|
290
|
+
d("g", He, [
|
|
291
|
+
d("rect", {
|
|
292
|
+
x: s.value.left,
|
|
293
|
+
y: s.value.top,
|
|
294
|
+
height: s.value.height - c.value.top - c.value.bottom,
|
|
295
|
+
width: s.value.width - c.value.left - c.value.right,
|
|
296
|
+
fill: "#FFFFFF"
|
|
297
|
+
}, null, 8, Xe),
|
|
298
|
+
(l(!0), n(A, null, K(J.value, (t, r) => (l(), n("g", {
|
|
299
|
+
key: `graduation_${r}`
|
|
300
|
+
}, [
|
|
301
|
+
d("rect", {
|
|
302
|
+
x: t.x,
|
|
303
|
+
y: t.y,
|
|
304
|
+
height: t.height,
|
|
305
|
+
width: s.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
306
|
+
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${r}_${p.value})` : t.color,
|
|
307
|
+
"shape-rendering": "crispEdges"
|
|
308
|
+
}, null, 8, Re),
|
|
309
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
310
|
+
key: 0,
|
|
311
|
+
x1: t.x,
|
|
312
|
+
x2: t.x + 10,
|
|
313
|
+
y1: t.y,
|
|
314
|
+
y2: t.y,
|
|
315
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
316
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
317
|
+
"stroke-linecap": "round"
|
|
318
|
+
}, null, 8, Je)) : i("", !0),
|
|
319
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), n(A, { key: 1 }, [
|
|
320
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
321
|
+
key: 0,
|
|
322
|
+
x1: t.x,
|
|
323
|
+
x2: t.x + 5,
|
|
324
|
+
y1: t.halfY,
|
|
325
|
+
y2: t.halfY,
|
|
326
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
327
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
328
|
+
"stroke-linecap": "round"
|
|
329
|
+
}, null, 8, Ke)) : i("", !0),
|
|
330
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
331
|
+
key: 1,
|
|
332
|
+
x1: t.x,
|
|
333
|
+
x2: t.x + 2.5,
|
|
334
|
+
y1: t.qYLess,
|
|
335
|
+
y2: t.qYLess,
|
|
336
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
337
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
338
|
+
"stroke-linecap": "round"
|
|
339
|
+
}, null, 8, Qe)) : i("", !0),
|
|
340
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
341
|
+
key: 2,
|
|
342
|
+
x1: t.x,
|
|
343
|
+
x2: t.x + 2.5,
|
|
344
|
+
y1: t.qYMore,
|
|
345
|
+
y2: t.qYMore,
|
|
346
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
347
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
348
|
+
"stroke-linecap": "round"
|
|
349
|
+
}, null, 8, Ze)) : i("", !0)
|
|
350
|
+
], 64)) : i("", !0),
|
|
351
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
352
|
+
key: 2,
|
|
353
|
+
x1: s.value.right,
|
|
354
|
+
x2: s.value.right - 10,
|
|
355
|
+
y1: t.y,
|
|
356
|
+
y2: t.y,
|
|
357
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
358
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
359
|
+
"stroke-linecap": "round"
|
|
360
|
+
}, null, 8, et)) : i("", !0),
|
|
361
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), n(A, { key: 3 }, [
|
|
362
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
363
|
+
key: 0,
|
|
364
|
+
x1: s.value.right,
|
|
365
|
+
x2: s.value.right - 5,
|
|
366
|
+
y1: t.halfY,
|
|
367
|
+
y2: t.halfY,
|
|
368
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
369
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
370
|
+
"stroke-linecap": "round"
|
|
371
|
+
}, null, 8, tt)) : i("", !0),
|
|
372
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
373
|
+
key: 1,
|
|
374
|
+
x1: s.value.right,
|
|
375
|
+
x2: s.value.right - 2.5,
|
|
376
|
+
y1: t.qYLess,
|
|
377
|
+
y2: t.qYLess,
|
|
378
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
379
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
380
|
+
"stroke-linecap": "round"
|
|
381
|
+
}, null, 8, ot)) : i("", !0),
|
|
382
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
383
|
+
key: 2,
|
|
384
|
+
x1: s.value.right,
|
|
385
|
+
x2: s.value.right - 2.5,
|
|
386
|
+
y1: t.qYMore,
|
|
387
|
+
y2: t.qYMore,
|
|
388
|
+
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
389
|
+
stroke: e.value.style.chart.graduations.stroke,
|
|
390
|
+
"stroke-linecap": "round"
|
|
391
|
+
}, null, 8, st)) : i("", !0)
|
|
392
|
+
], 64)) : i("", !0)
|
|
393
|
+
]))), 128)),
|
|
394
|
+
d("rect", {
|
|
395
|
+
class: P({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
396
|
+
x: s.value.left,
|
|
397
|
+
y: s.value.top,
|
|
398
|
+
height: U.value,
|
|
399
|
+
width: s.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
400
|
+
fill: "#FFFFFF66"
|
|
401
|
+
}, null, 10, at)
|
|
402
|
+
]),
|
|
403
|
+
d("text", {
|
|
404
|
+
class: P({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
|
|
405
|
+
y: U.value + s.value.top + e.value.style.chart.label.fontSize / 3,
|
|
406
|
+
x: s.value.left - 10,
|
|
407
|
+
"text-anchor": "end",
|
|
408
|
+
fill: e.value.style.chart.label.color,
|
|
409
|
+
"font-size": e.value.style.chart.label.fontSize,
|
|
410
|
+
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
411
|
+
}, ke(v(Ae)(
|
|
412
|
+
e.value.style.chart.label.formatter,
|
|
413
|
+
x.dataset.value,
|
|
414
|
+
v(Oe)({
|
|
415
|
+
p: e.value.style.chart.label.prefix,
|
|
416
|
+
v: x.dataset.value,
|
|
417
|
+
s: e.value.style.chart.label.suffix,
|
|
418
|
+
r: e.value.style.chart.label.rounding
|
|
419
|
+
}),
|
|
420
|
+
{ datapoint: x.dataset }
|
|
421
|
+
)), 11, lt),
|
|
422
|
+
m(o.$slots, "svg", { svg: se.value }, void 0, !0)
|
|
423
|
+
], 10, Ve)) : i("", !0),
|
|
424
|
+
o.$slots.watermark ? (l(), n("div", rt, [
|
|
425
|
+
m(o.$slots, "watermark", G(V({ isPrinting: v(j) || v(D) })), void 0, !0)
|
|
426
|
+
])) : i("", !0),
|
|
427
|
+
o.$slots.source ? (l(), n("div", ut, [
|
|
428
|
+
m(o.$slots, "source", {}, void 0, !0)
|
|
429
|
+
], 512)) : i("", !0),
|
|
430
|
+
Y.value ? i("", !0) : (l(), F(Se, {
|
|
431
|
+
key: 6,
|
|
432
|
+
config: {
|
|
433
|
+
type: "thermometer",
|
|
434
|
+
style: {
|
|
435
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
436
|
+
thermometer: {
|
|
437
|
+
color: "#CCCCCC"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}, null, 8, ["config"]))
|
|
442
|
+
], 14, Te));
|
|
443
|
+
}
|
|
444
|
+
}, pt = /* @__PURE__ */ Le(nt, [["__scopeId", "data-v-ae62bd8a"]]);
|
|
445
|
+
export {
|
|
446
|
+
pt as default
|
|
447
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-eFox7weK.cjs"),K=require("./Title-0Tp4hZ4u.cjs"),O=require("./usePrinter-CSRFnDBU.cjs"),Q=require("./vue-ui-skeleton-BqKzuhkB.cjs"),T=require("./useNestedProp-BkgEhTQY.cjs"),Z=require("./PackageVersion-DwI-KhXH.cjs"),ee=require("./PenAndPaper-CDFVOo7X.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=["id"],le={key:1,style:"width:100%"},re=["xmlns","viewBox"],ae={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},se=["fill"],ne=["id"],ue=["stop-color"],ce=["stop-color"],ie=["stop-color"],de={"clip-path":"url(#vueUiPill)"},he=["x","y","height","width"],ve=["x","y","height","width","fill"],me=["x1","x2","y1","y2","stroke-width","stroke"],pe=["x1","x2","y1","y2","stroke-width","stroke"],ye=["x1","x2","y1","y2","stroke-width","stroke"],fe=["x1","x2","y1","y2","stroke-width","stroke"],ge=["x1","x2","y1","y2","stroke-width","stroke"],ke=["x1","x2","y1","y2","stroke-width","stroke"],be=["x1","x2","y1","y2","stroke-width","stroke"],xe=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x","y","height","width"],Ce=["y","x","fill","font-size","font-weight"],we={key:4,class:"vue-data-ui-watermark"},Ne={key:5,ref:"source",dir:"auto"},Be={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:Y}){const s=m;e.useCssVars(l=>({"067bf1c5":W.value,"94b8612e":G.value,"29802a96":U.value}));const{vue_ui_thermometer:M}=r.useConfig(),g=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{B()});function B(){r.objectIsEmpty(s.dataset)?r.error({componentName:"VueUiThermometer",type:"dataset"}):r.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","from","to"]}).forEach(l=>{r.error({componentName:"VueUiThermometer",type:"datasetAttribute",property:l})})}const d=e.ref(r.createUid()),k=e.ref(null),P=e.ref(0),V=e.ref(0),t=e.computed({get:()=>E(),set:l=>l});function E(){const l=T.useNestedProp({userConfig:s.config,defaultConfig:M});return l.theme?{...T.useNestedProp({userConfig:r.themes.vue_ui_thermometer[l.theme]||s.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>s.config,l=>{t.value=E(),B(),V.value+=1},{deep:!0});const{isPrinting:$,isImaging:F,generatePdf:I,generateImage:q}=O.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),p=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),z=e.computed(()=>t.value.style.chart.thermometer.width),i=e.computed(()=>s.dataset.steps||10),c=e.ref({top:t.value.style.chart.padding.top,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right,bottom:t.value.style.chart.padding.bottom});function y(l,u,o){const n=[],w=S(l),N=S(u);for(let v=0;v<o;v++){const D=b(w.red,N.red,v,o),R=b(w.green,N.green,v,o),X=b(w.blue,N.blue,v,o),J=`#${x(D)}${x(R)}${x(X)}`;n.push(J)}return n}function S(l){const u=l.slice(1);return{red:parseInt(u.slice(0,2),16),green:parseInt(u.slice(2,4),16),blue:parseInt(u.slice(4,6),16)}}function b(l,u,o,n){return Math.round(l+(u-l)*o/n)}function x(l){return l.toString(16).padStart(2,"0")}const a=e.computed(()=>{const l=z.value+c.value.left+c.value.right,u=t.value.style.chart.height;return{width:l,left:c.value.left,right:l-c.value.right,top:c.value.top,bottom:u-c.value.bottom,height:u}}),L=e.computed(()=>a.value),_=e.computed(()=>{const l=r.checkNaN(s.dataset.from)<0?Math.abs(r.checkNaN(s.dataset.from)):r.checkNaN(s.dataset.from),u=r.checkNaN(s.dataset.to)<0?Math.abs(r.checkNaN(s.dataset.to)):r.checkNaN(s.dataset.to);let o=0;return r.checkNaN(s.dataset.to)>0?o=l+u:l>u?o=l-u:o=u-l,(1-(Math.abs(r.checkNaN(s.dataset.from))+r.checkNaN(s.dataset.value))/o)*(a.value.height-c.value.top-c.value.bottom)}),U=e.computed(()=>`${_.value}px`),G=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-c.value.top}px`),W=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),H=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return y(p.value[0]||r.palette[0],r.convertColorToHex(s.dataset.colors.to),i.value||10);if(!s.dataset.colors.to)return y(r.convertColorToHex(s.dataset.colors.from),p.value[1]||r.palette[1],i.value||10)}else return y(p.value[1]||r.palette[1],p.value[0]||r.palette[0],i.value||10);return y(r.convertColorToHex(s.dataset.colors.from),r.convertColorToHex(s.dataset.colors.to),i.value||10)}),A=e.computed(()=>{const l=[];let u=0;const o=a.value.height-c.value.top-c.value.bottom;for(let n=0;n<o-1;n+=o/i.value)l.push({x:a.value.left,y:a.value.top+n,qYLess:a.value.top+n+o/i.value/4,halfY:a.value.top+n+o/i.value/2,qYMore:a.value.top+n+o/i.value/4*3,color:H.value[u],height:o/i.value}),u+=1;return l}),h=e.ref(!1);function j(l){h.value=l,P.value+=1}const f=e.ref(!1);function C(){f.value=!f.value}return Y({generatePdf:I,generateImage:q,toggleAnnotator:C}),(l,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:k,class:e.normalizeClass(`vue-ui-thermometer ${h.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}`),id:`thermometer__${d.value}`},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ee.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:C},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",le,[(e.openBlock(),e.createBlock(K._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"thermometer-div-title",...t.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&g.value?(e.openBlock(),e.createBlock(O.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(F),isPrinting:e.unref($),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:j,onGeneratePdf:e.unref(I),onGenerateImage:e.unref(q),onToggleAnnotator:C},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),width:"100%",viewBox:`0 0 ${a.value.width} ${a.value.height}`,style:"background:transparent"},[e.createVNode(Z._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",ae,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:t.value.style.chart.backgroundColor},null,8,se)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(o,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${n}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,ue),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(r.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,ce),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,ie)],8,ne))),256))]),e.createElementVNode("g",de,[e.createElementVNode("rect",{x:a.value.left,y:a.value.top,height:a.value.height-c.value.top-c.value.bottom,width:a.value.width-c.value.left-c.value.right,fill:"#FFFFFF"},null,8,he),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${n}`},[e.createElementVNode("rect",{x:o.x,y:o.y,height:o.height,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:t.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${n}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,ve),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,me)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,pe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x+2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ye)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x+2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,fe)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ge)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.value.right,x2:a.value.right-5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,ke)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,be)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.value.right,x2:a.value.right-2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,xe)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":t.value.style.chart.animation.use}),x:a.value.left,y:a.value.top,height:_.value,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,_e)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:_.value+a.value.top+t.value.style.chart.label.fontSize/3,x:a.value.left-10,"text-anchor":"end",fill:t.value.style.chart.label.color,"font-size":t.value.style.chart.label.fontSize,"font-weight":t.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.label.formatter,m.dataset.value,e.unref(r.dataLabel)({p:t.value.style.chart.label.prefix,v:m.dataset.value,s:t.value.style.chart.label.suffix,r:t.value.style.chart.label.rounding}),{datapoint:m.dataset})),11,Ce),e.renderSlot(l.$slots,"svg",{svg:L.value},void 0,!0)],10,re)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref($)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Q.default,{key:6,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,oe))}},Pe=te._export_sfc(Be,[["__scopeId","data-v-ae62bd8a"]]);exports.default=Pe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-BkgEhTQY.cjs"),g=require("./index-eFox7weK.cjs"),$=require("./useResponsive-CodiGUOE.cjs"),B=require("./BaseIcon-uALK38Ov.cjs"),j=require("./Title-0Tp4hZ4u.cjs"),q=require("./PackageVersion-DwI-KhXH.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class U{constructor(T,v,y,E=!0,b=!0){this.interval=v,this.elapsed=0,this.isPaused=!1;const S=`
|
|
2
2
|
let interval;
|
|
3
3
|
let elapsed = 0;
|
|
4
4
|
let paused = false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as n, onMounted as Q, onBeforeUnmount as Y, computed as z, watch as Z, openBlock as l, createElementBlock as r, normalizeStyle as f, createBlock as ee, createCommentVNode as v, unref as te, createVNode as M, createElementVNode as C, mergeProps as V, renderSlot as E, normalizeProps as O, guardReactiveProps as U, toDisplayString as ae } from "vue";
|
|
2
|
-
import { u as se } from "./useNestedProp-
|
|
3
|
-
import { u as le, c as oe, X as re, E as W } from "./index-
|
|
4
|
-
import { t as ue, u as ie } from "./useResponsive-
|
|
5
|
-
import P from "./BaseIcon-
|
|
6
|
-
import { _ as ne } from "./Title-
|
|
7
|
-
import { _ as ce } from "./PackageVersion-
|
|
2
|
+
import { u as se } from "./useNestedProp-B33hazbH.js";
|
|
3
|
+
import { u as le, c as oe, X as re, E as W } from "./index-Bya_q1J-.js";
|
|
4
|
+
import { t as ue, u as ie } from "./useResponsive-BY8tgM1n.js";
|
|
5
|
+
import P from "./BaseIcon-BbvG1AlW.js";
|
|
6
|
+
import { _ as ne } from "./Title-C5pIfQAz.js";
|
|
7
|
+
import { _ as ce } from "./PackageVersion-VkaUzgmt.js";
|
|
8
8
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
class he {
|
|
10
10
|
constructor(A, k, T, H = !0, x = !0) {
|