vue-data-ui 2.3.74 → 2.3.75
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-CYCrAySW.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-DK6F5Fq3.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-Cj7T-DqJ.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-DZjnxQdN.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-D5cATWsL.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-Bj6kEIpq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-BA43_uHV.js} +314 -299
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
8
|
-
const
|
|
1
|
+
import { useCssVars as de, computed as c, onMounted as ve, ref as g, watch as ye, openBlock as o, createElementBlock as n, normalizeClass as $, normalizeStyle as H, createBlock as U, createCommentVNode as h, unref as v, createSlots as fe, withCtx as q, renderSlot as x, normalizeProps as X, guardReactiveProps as R, createElementVNode as d, Fragment as F, renderList as J, toDisplayString as ge } from "vue";
|
|
2
|
+
import { u as me, o as pe, e as K, g as ke, c as xe, t as _e, a as be, p as _, b as we, s as f, d as P, X as Ce, w as $e, i as Fe, f as Pe } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { _ as Ie } from "./Title-C26I_HC3.js";
|
|
4
|
+
import { u as Ye, U as Me } from "./usePrinter-B8RnF8_q.js";
|
|
5
|
+
import Ne from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
6
|
+
import { u as Q } from "./useNestedProp-CurQIHTa.js";
|
|
7
|
+
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const Se = ["id"], Ue = {
|
|
9
9
|
key: 0,
|
|
10
10
|
style: "width:100%"
|
|
11
|
-
},
|
|
11
|
+
}, qe = ["xmlns", "viewBox"], Le = {
|
|
12
12
|
id: "vueUiPill",
|
|
13
13
|
clipPathUnits: "objectBoundingBox"
|
|
14
|
-
},
|
|
14
|
+
}, Te = ["fill"], Ge = ["id"], We = ["stop-color"], Ee = ["stop-color"], Ve = ["stop-color"], ze = { "clip-path": "url(#vueUiPill)" }, Be = ["x", "y", "height", "width"], je = ["x", "y", "height", "width", "fill"], Ae = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], De = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], He = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Xe = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Re = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], 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 = ["x", "y", "height", "width"], et = ["y", "x", "fill", "font-size", "font-weight"], tt = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, st = {
|
|
18
18
|
__name: "vue-ui-thermometer",
|
|
19
19
|
props: {
|
|
20
20
|
dataset: {
|
|
@@ -30,59 +30,70 @@ const Me = ["id"], Ne = {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const a =
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
33
|
+
setup(b, { expose: Z }) {
|
|
34
|
+
const a = b;
|
|
35
|
+
de((s) => ({
|
|
36
|
+
"0a35d02c": oe.value,
|
|
37
|
+
"2925bde2": ae.value,
|
|
38
|
+
"636d634f": le.value
|
|
39
39
|
}));
|
|
40
|
-
const { vue_ui_thermometer:
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
const { vue_ui_thermometer: ee } = me(), I = c(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
41
|
+
ve(() => {
|
|
42
|
+
L();
|
|
43
|
+
});
|
|
44
|
+
function L() {
|
|
45
|
+
pe(a.dataset) ? K({
|
|
43
46
|
componentName: "VueUiThermometer",
|
|
44
47
|
type: "dataset"
|
|
45
|
-
}) :
|
|
48
|
+
}) : ke({
|
|
46
49
|
datasetObject: a.dataset,
|
|
47
50
|
requiredAttributes: ["value", "from", "to"]
|
|
48
51
|
}).forEach((s) => {
|
|
49
|
-
|
|
52
|
+
K({
|
|
50
53
|
componentName: "VueUiThermometer",
|
|
51
54
|
type: "datasetAttribute",
|
|
52
55
|
property: s
|
|
53
56
|
});
|
|
54
57
|
});
|
|
58
|
+
}
|
|
59
|
+
const m = g(xe()), T = g(null), G = g(0), W = g(0), e = c({
|
|
60
|
+
get: () => E(),
|
|
61
|
+
set: (s) => s
|
|
55
62
|
});
|
|
56
|
-
|
|
57
|
-
const s =
|
|
63
|
+
function E() {
|
|
64
|
+
const s = Q({
|
|
58
65
|
userConfig: a.config,
|
|
59
|
-
defaultConfig:
|
|
66
|
+
defaultConfig: ee
|
|
60
67
|
});
|
|
61
68
|
return s.theme ? {
|
|
62
|
-
...
|
|
63
|
-
userConfig:
|
|
69
|
+
...Q({
|
|
70
|
+
userConfig: _e.vue_ui_thermometer[s.theme] || a.config,
|
|
64
71
|
defaultConfig: s
|
|
65
72
|
}),
|
|
66
|
-
customPalette:
|
|
73
|
+
customPalette: be[s.theme] || _
|
|
67
74
|
} : s;
|
|
68
|
-
}
|
|
75
|
+
}
|
|
76
|
+
ye(() => a.config, (s) => {
|
|
77
|
+
e.value = E(), L(), W.value += 1;
|
|
78
|
+
}, { deep: !0 });
|
|
79
|
+
const { isPrinting: V, isImaging: z, generatePdf: B, generateImage: j } = Ye({
|
|
69
80
|
elementId: `thermometer__${m.value}`,
|
|
70
81
|
fileName: e.value.style.title.text || "vue-ui-thermometer"
|
|
71
|
-
}), w = c(() =>
|
|
82
|
+
}), w = c(() => we(e.value.customPalette)), te = c(() => e.value.style.chart.thermometer.width), y = c(() => a.dataset.steps || 10), i = g({
|
|
72
83
|
top: e.value.style.chart.padding.top,
|
|
73
84
|
left: e.value.style.chart.padding.left,
|
|
74
85
|
right: e.value.style.chart.padding.right,
|
|
75
86
|
bottom: e.value.style.chart.padding.bottom
|
|
76
87
|
});
|
|
77
88
|
function C(s, r, t) {
|
|
78
|
-
const u = [], O =
|
|
79
|
-
for (let
|
|
80
|
-
const
|
|
81
|
-
u.push(
|
|
89
|
+
const u = [], O = A(s), S = A(r);
|
|
90
|
+
for (let k = 0; k < t; k++) {
|
|
91
|
+
const ne = Y(O.red, S.red, k, t), ie = Y(O.green, S.green, k, t), he = Y(O.blue, S.blue, k, t), ce = `#${M(ne)}${M(ie)}${M(he)}`;
|
|
92
|
+
u.push(ce);
|
|
82
93
|
}
|
|
83
94
|
return u;
|
|
84
95
|
}
|
|
85
|
-
function
|
|
96
|
+
function A(s) {
|
|
86
97
|
const r = s.slice(1);
|
|
87
98
|
return {
|
|
88
99
|
red: parseInt(r.slice(0, 2), 16),
|
|
@@ -97,7 +108,7 @@ const Me = ["id"], Ne = {
|
|
|
97
108
|
return s.toString(16).padStart(2, "0");
|
|
98
109
|
}
|
|
99
110
|
const l = c(() => {
|
|
100
|
-
const s =
|
|
111
|
+
const s = te.value + i.value.left + i.value.right, r = e.value.style.chart.height;
|
|
101
112
|
return {
|
|
102
113
|
width: s,
|
|
103
114
|
left: i.value.left,
|
|
@@ -106,20 +117,20 @@ const Me = ["id"], Ne = {
|
|
|
106
117
|
bottom: r - i.value.bottom,
|
|
107
118
|
height: r
|
|
108
119
|
};
|
|
109
|
-
}),
|
|
120
|
+
}), se = c(() => l.value), N = c(() => {
|
|
110
121
|
const s = f(a.dataset.from) < 0 ? Math.abs(f(a.dataset.from)) : f(a.dataset.from), r = f(a.dataset.to) < 0 ? Math.abs(f(a.dataset.to)) : f(a.dataset.to);
|
|
111
122
|
let t = 0;
|
|
112
123
|
return f(a.dataset.to) > 0 ? t = s + r : s > r ? t = s - r : t = r - s, (1 - (Math.abs(f(a.dataset.from)) + f(a.dataset.value)) / t) * (l.value.height - i.value.top - i.value.bottom);
|
|
113
|
-
}),
|
|
124
|
+
}), le = c(() => `${N.value}px`), ae = c(() => `${l.value.height - e.value.style.chart.padding.bottom - i.value.top}px`), oe = c(() => `${e.value.style.chart.animation.speedMs}ms`), re = c(() => {
|
|
114
125
|
if (a.dataset.colors) {
|
|
115
126
|
if (!a.dataset.colors.from)
|
|
116
|
-
return C(w.value[0] ||
|
|
127
|
+
return C(w.value[0] || _[0], P(a.dataset.colors.to), y.value || 10);
|
|
117
128
|
if (!a.dataset.colors.to)
|
|
118
|
-
return C(P(a.dataset.colors.from), w.value[1] ||
|
|
129
|
+
return C(P(a.dataset.colors.from), w.value[1] || _[1], y.value || 10);
|
|
119
130
|
} else
|
|
120
|
-
return C(w.value[1] ||
|
|
131
|
+
return C(w.value[1] || _[1], w.value[0] || _[0], y.value || 10);
|
|
121
132
|
return C(P(a.dataset.colors.from), P(a.dataset.colors.to), y.value || 10);
|
|
122
|
-
}),
|
|
133
|
+
}), D = c(() => {
|
|
123
134
|
const s = [];
|
|
124
135
|
let r = 0;
|
|
125
136
|
const t = l.value.height - i.value.top - i.value.bottom;
|
|
@@ -130,26 +141,27 @@ const Me = ["id"], Ne = {
|
|
|
130
141
|
qYLess: l.value.top + u + t / y.value / 4,
|
|
131
142
|
halfY: l.value.top + u + t / y.value / 2,
|
|
132
143
|
qYMore: l.value.top + u + t / y.value / 4 * 3,
|
|
133
|
-
color:
|
|
144
|
+
color: re.value[r],
|
|
134
145
|
height: t / y.value
|
|
135
146
|
}), r += 1;
|
|
136
147
|
return s;
|
|
137
|
-
}),
|
|
138
|
-
function
|
|
139
|
-
|
|
148
|
+
}), p = g(!1);
|
|
149
|
+
function ue(s) {
|
|
150
|
+
p.value = s, G.value += 1;
|
|
140
151
|
}
|
|
141
|
-
return
|
|
142
|
-
generatePdf:
|
|
143
|
-
generateImage:
|
|
152
|
+
return Z({
|
|
153
|
+
generatePdf: B,
|
|
154
|
+
generateImage: j
|
|
144
155
|
}), (s, r) => (o(), n("div", {
|
|
145
156
|
ref_key: "thermoChart",
|
|
146
|
-
ref:
|
|
147
|
-
class: $(`vue-ui-thermometer ${
|
|
148
|
-
style:
|
|
157
|
+
ref: T,
|
|
158
|
+
class: $(`vue-ui-thermometer ${p.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
159
|
+
style: H(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
149
160
|
id: `thermometer__${m.value}`
|
|
150
161
|
}, [
|
|
151
|
-
e.value.style.title.text ? (o(), n("div",
|
|
152
|
-
|
|
162
|
+
e.value.style.title.text ? (o(), n("div", Ue, [
|
|
163
|
+
(o(), U(Ie, {
|
|
164
|
+
key: `title_${W.value}`,
|
|
153
165
|
config: {
|
|
154
166
|
title: {
|
|
155
167
|
cy: "thermometer-div-title",
|
|
@@ -160,27 +172,27 @@ const Me = ["id"], Ne = {
|
|
|
160
172
|
...e.value.style.title.subtitle
|
|
161
173
|
}
|
|
162
174
|
}
|
|
163
|
-
}, null, 8, ["config"])
|
|
175
|
+
}, null, 8, ["config"]))
|
|
164
176
|
])) : h("", !0),
|
|
165
|
-
e.value.userOptions.show && I.value ? (o(),
|
|
177
|
+
e.value.userOptions.show && I.value ? (o(), U(Me, {
|
|
166
178
|
ref: "details",
|
|
167
|
-
key: `user_options_${
|
|
179
|
+
key: `user_options_${G.value}`,
|
|
168
180
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
169
181
|
color: e.value.style.chart.color,
|
|
170
|
-
isImaging: v(
|
|
171
|
-
isPrinting: v(
|
|
182
|
+
isImaging: v(z),
|
|
183
|
+
isPrinting: v(V),
|
|
172
184
|
uid: m.value,
|
|
173
185
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
174
186
|
hasImg: e.value.userOptions.buttons.img,
|
|
175
187
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
176
188
|
hasXls: !1,
|
|
177
|
-
isFullscreen:
|
|
189
|
+
isFullscreen: p.value,
|
|
178
190
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
179
|
-
chartElement:
|
|
180
|
-
onToggleFullscreen:
|
|
181
|
-
onGeneratePdf: v(
|
|
182
|
-
onGenerateImage: v(
|
|
183
|
-
},
|
|
191
|
+
chartElement: T.value,
|
|
192
|
+
onToggleFullscreen: ue,
|
|
193
|
+
onGeneratePdf: v(B),
|
|
194
|
+
onGenerateImage: v(j)
|
|
195
|
+
}, fe({ _: 2 }, [
|
|
184
196
|
s.$slots.optionPdf ? {
|
|
185
197
|
name: "optionPdf",
|
|
186
198
|
fn: q(() => [
|
|
@@ -198,21 +210,21 @@ const Me = ["id"], Ne = {
|
|
|
198
210
|
s.$slots.optionFullscreen ? {
|
|
199
211
|
name: "optionFullscreen",
|
|
200
212
|
fn: q(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
201
|
-
x(s.$slots, "optionFullscreen",
|
|
213
|
+
x(s.$slots, "optionFullscreen", X(R({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
202
214
|
]),
|
|
203
215
|
key: "2"
|
|
204
216
|
} : void 0
|
|
205
217
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
|
|
206
218
|
I.value ? (o(), n("svg", {
|
|
207
219
|
key: 2,
|
|
208
|
-
xmlns: v(
|
|
209
|
-
class: $({ "vue-data-ui-fullscreen--on":
|
|
220
|
+
xmlns: v(Ce),
|
|
221
|
+
class: $({ "vue-data-ui-fullscreen--on": p.value, "vue-data-ui-fulscreen--off": !p.value }),
|
|
210
222
|
width: "100%",
|
|
211
223
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
212
|
-
style:
|
|
224
|
+
style: H(`background:${e.value.style.chart.backgroundColor}`)
|
|
213
225
|
}, [
|
|
214
226
|
d("defs", null, [
|
|
215
|
-
d("clipPath",
|
|
227
|
+
d("clipPath", Le, [
|
|
216
228
|
d("rect", {
|
|
217
229
|
x: "0",
|
|
218
230
|
y: "0",
|
|
@@ -221,9 +233,9 @@ const Me = ["id"], Ne = {
|
|
|
221
233
|
rx: "0.5",
|
|
222
234
|
ry: "0.07",
|
|
223
235
|
fill: e.value.style.chart.backgroundColor
|
|
224
|
-
}, null, 8,
|
|
236
|
+
}, null, 8, Te)
|
|
225
237
|
]),
|
|
226
|
-
(o(!0), n(F, null,
|
|
238
|
+
(o(!0), n(F, null, J(D.value, (t, u) => (o(), n("linearGradient", {
|
|
227
239
|
id: `vueUiThermometerGradient_${u}_${m.value}`,
|
|
228
240
|
x1: "0%",
|
|
229
241
|
y1: "0%",
|
|
@@ -233,26 +245,26 @@ const Me = ["id"], Ne = {
|
|
|
233
245
|
d("stop", {
|
|
234
246
|
offset: "0%",
|
|
235
247
|
"stop-color": t.color
|
|
236
|
-
}, null, 8,
|
|
248
|
+
}, null, 8, We),
|
|
237
249
|
d("stop", {
|
|
238
250
|
offset: "50%",
|
|
239
|
-
"stop-color": `${t.color}${v(
|
|
240
|
-
}, null, 8,
|
|
251
|
+
"stop-color": `${t.color}${v($e)[100 - e.value.style.chart.graduations.gradient.intensity]}`
|
|
252
|
+
}, null, 8, Ee),
|
|
241
253
|
d("stop", {
|
|
242
254
|
offset: "100%",
|
|
243
255
|
"stop-color": t.color
|
|
244
|
-
}, null, 8,
|
|
245
|
-
], 8,
|
|
256
|
+
}, null, 8, Ve)
|
|
257
|
+
], 8, Ge))), 256))
|
|
246
258
|
]),
|
|
247
|
-
d("g",
|
|
259
|
+
d("g", ze, [
|
|
248
260
|
d("rect", {
|
|
249
261
|
x: l.value.left,
|
|
250
262
|
y: l.value.top,
|
|
251
263
|
height: l.value.height - i.value.top - i.value.bottom,
|
|
252
264
|
width: l.value.width - i.value.left - i.value.right,
|
|
253
265
|
fill: "#FFFFFF"
|
|
254
|
-
}, null, 8,
|
|
255
|
-
(o(!0), n(F, null,
|
|
266
|
+
}, null, 8, Be),
|
|
267
|
+
(o(!0), n(F, null, J(D.value, (t, u) => (o(), n("g", {
|
|
256
268
|
key: `graduation_${u}`
|
|
257
269
|
}, [
|
|
258
270
|
d("rect", {
|
|
@@ -262,7 +274,7 @@ const Me = ["id"], Ne = {
|
|
|
262
274
|
width: l.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
263
275
|
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${u}_${m.value})` : t.color,
|
|
264
276
|
"shape-rendering": "crispEdges"
|
|
265
|
-
}, null, 8,
|
|
277
|
+
}, null, 8, je),
|
|
266
278
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
267
279
|
key: 0,
|
|
268
280
|
x1: t.x,
|
|
@@ -272,7 +284,7 @@ const Me = ["id"], Ne = {
|
|
|
272
284
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
273
285
|
stroke: e.value.style.chart.graduations.stroke,
|
|
274
286
|
"stroke-linecap": "round"
|
|
275
|
-
}, null, 8,
|
|
287
|
+
}, null, 8, Ae)) : h("", !0),
|
|
276
288
|
e.value.style.chart.graduations.showIntermediate ? (o(), n(F, { key: 1 }, [
|
|
277
289
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
278
290
|
key: 0,
|
|
@@ -283,7 +295,7 @@ const Me = ["id"], Ne = {
|
|
|
283
295
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
284
296
|
stroke: e.value.style.chart.graduations.stroke,
|
|
285
297
|
"stroke-linecap": "round"
|
|
286
|
-
}, null, 8,
|
|
298
|
+
}, null, 8, De)) : h("", !0),
|
|
287
299
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
288
300
|
key: 1,
|
|
289
301
|
x1: t.x,
|
|
@@ -293,7 +305,7 @@ const Me = ["id"], Ne = {
|
|
|
293
305
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
294
306
|
stroke: e.value.style.chart.graduations.stroke,
|
|
295
307
|
"stroke-linecap": "round"
|
|
296
|
-
}, null, 8,
|
|
308
|
+
}, null, 8, He)) : h("", !0),
|
|
297
309
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
298
310
|
key: 2,
|
|
299
311
|
x1: t.x,
|
|
@@ -303,7 +315,7 @@ const Me = ["id"], Ne = {
|
|
|
303
315
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
304
316
|
stroke: e.value.style.chart.graduations.stroke,
|
|
305
317
|
"stroke-linecap": "round"
|
|
306
|
-
}, null, 8,
|
|
318
|
+
}, null, 8, Xe)) : h("", !0)
|
|
307
319
|
], 64)) : h("", !0),
|
|
308
320
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
309
321
|
key: 2,
|
|
@@ -314,7 +326,7 @@ const Me = ["id"], Ne = {
|
|
|
314
326
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
315
327
|
stroke: e.value.style.chart.graduations.stroke,
|
|
316
328
|
"stroke-linecap": "round"
|
|
317
|
-
}, null, 8,
|
|
329
|
+
}, null, 8, Re)) : h("", !0),
|
|
318
330
|
e.value.style.chart.graduations.showIntermediate ? (o(), n(F, { key: 3 }, [
|
|
319
331
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
320
332
|
key: 0,
|
|
@@ -325,7 +337,7 @@ const Me = ["id"], Ne = {
|
|
|
325
337
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
326
338
|
stroke: e.value.style.chart.graduations.stroke,
|
|
327
339
|
"stroke-linecap": "round"
|
|
328
|
-
}, null, 8,
|
|
340
|
+
}, null, 8, Je)) : h("", !0),
|
|
329
341
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
330
342
|
key: 1,
|
|
331
343
|
x1: l.value.right,
|
|
@@ -335,7 +347,7 @@ const Me = ["id"], Ne = {
|
|
|
335
347
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
336
348
|
stroke: e.value.style.chart.graduations.stroke,
|
|
337
349
|
"stroke-linecap": "round"
|
|
338
|
-
}, null, 8,
|
|
350
|
+
}, null, 8, Ke)) : h("", !0),
|
|
339
351
|
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (o(), n("line", {
|
|
340
352
|
key: 2,
|
|
341
353
|
x1: l.value.right,
|
|
@@ -345,7 +357,7 @@ const Me = ["id"], Ne = {
|
|
|
345
357
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
346
358
|
stroke: e.value.style.chart.graduations.stroke,
|
|
347
359
|
"stroke-linecap": "round"
|
|
348
|
-
}, null, 8,
|
|
360
|
+
}, null, 8, Qe)) : h("", !0)
|
|
349
361
|
], 64)) : h("", !0)
|
|
350
362
|
]))), 128)),
|
|
351
363
|
d("rect", {
|
|
@@ -355,7 +367,7 @@ const Me = ["id"], Ne = {
|
|
|
355
367
|
height: N.value,
|
|
356
368
|
width: l.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
357
369
|
fill: "#FFFFFF66"
|
|
358
|
-
}, null, 10,
|
|
370
|
+
}, null, 10, Ze)
|
|
359
371
|
]),
|
|
360
372
|
d("text", {
|
|
361
373
|
class: $({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
|
|
@@ -365,23 +377,23 @@ const Me = ["id"], Ne = {
|
|
|
365
377
|
fill: e.value.style.chart.label.color,
|
|
366
378
|
"font-size": e.value.style.chart.label.fontSize,
|
|
367
379
|
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
368
|
-
},
|
|
380
|
+
}, ge(v(Fe)(
|
|
369
381
|
e.value.style.chart.label.formatter,
|
|
370
|
-
|
|
371
|
-
v(
|
|
382
|
+
b.dataset.value,
|
|
383
|
+
v(Pe)({
|
|
372
384
|
p: e.value.style.chart.label.prefix,
|
|
373
|
-
v:
|
|
385
|
+
v: b.dataset.value,
|
|
374
386
|
s: e.value.style.chart.label.suffix,
|
|
375
387
|
r: e.value.style.chart.label.rounding
|
|
376
388
|
}),
|
|
377
|
-
{ datapoint:
|
|
378
|
-
)), 11,
|
|
379
|
-
x(s.$slots, "svg", { svg:
|
|
380
|
-
], 14,
|
|
381
|
-
s.$slots.watermark ? (o(), n("div",
|
|
382
|
-
x(s.$slots, "watermark",
|
|
389
|
+
{ datapoint: b.dataset }
|
|
390
|
+
)), 11, et),
|
|
391
|
+
x(s.$slots, "svg", { svg: se.value }, void 0, !0)
|
|
392
|
+
], 14, qe)) : h("", !0),
|
|
393
|
+
s.$slots.watermark ? (o(), n("div", tt, [
|
|
394
|
+
x(s.$slots, "watermark", X(R({ isPrinting: v(V) || v(z) })), void 0, !0)
|
|
383
395
|
])) : h("", !0),
|
|
384
|
-
I.value ? h("", !0) : (o(),
|
|
396
|
+
I.value ? h("", !0) : (o(), U(Ne, {
|
|
385
397
|
key: 4,
|
|
386
398
|
config: {
|
|
387
399
|
type: "thermometer",
|
|
@@ -393,9 +405,9 @@ const Me = ["id"], Ne = {
|
|
|
393
405
|
}
|
|
394
406
|
}
|
|
395
407
|
}, null, 8, ["config"]))
|
|
396
|
-
], 14,
|
|
408
|
+
], 14, Se));
|
|
397
409
|
}
|
|
398
|
-
},
|
|
410
|
+
}, ht = /* @__PURE__ */ Oe(st, [["__scopeId", "data-v-900932c6"]]);
|
|
399
411
|
export {
|
|
400
|
-
|
|
412
|
+
ht as default
|
|
401
413
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DYUBiaGS.cjs"),X=require("./Title-XBiDFYKD.cjs"),q=require("./usePrinter-ZlHxdaEz.cjs"),J=require("./vue-ui-skeleton-ClpTCY1x.cjs"),T=require("./useNestedProp-w7AMWWmz.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=["id"],Z={key:0,style:"width:100%"},ee=["xmlns","viewBox"],te={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},oe=["fill"],le=["id"],re=["stop-color"],ae=["stop-color"],se=["stop-color"],ne={"clip-path":"url(#vueUiPill)"},ue=["x","y","height","width"],ce=["x","y","height","width","fill"],ie=["x1","x2","y1","y2","stroke-width","stroke"],de=["x1","x2","y1","y2","stroke-width","stroke"],he=["x1","x2","y1","y2","stroke-width","stroke"],ve=["x1","x2","y1","y2","stroke-width","stroke"],me=["x1","x2","y1","y2","stroke-width","stroke"],ye=["x1","x2","y1","y2","stroke-width","stroke"],pe=["x1","x2","y1","y2","stroke-width","stroke"],fe=["x1","x2","y1","y2","stroke-width","stroke"],ge=["x","y","height","width"],ke=["y","x","fill","font-size","font-weight"],xe={key:3,class:"vue-data-ui-watermark"},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=>({"0a35d02c":G.value,"2925bde2":U.value,"636d634f":L.value}));const{vue_ui_thermometer:M}=r.useConfig(),f=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{w()});function w(){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()),C=e.ref(null),N=e.ref(0),B=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(),w(),B.value+=1},{deep:!0});const{isPrinting:V,isImaging:$,generatePdf:P,generateImage:F}=q.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),y=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),O=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 p(l,n,o){const u=[],b=I(l),_=I(n);for(let v=0;v<o;v++){const j=g(b.red,_.red,v,o),A=g(b.green,_.green,v,o),D=g(b.blue,_.blue,v,o),R=`#${k(j)}${k(A)}${k(D)}`;u.push(R)}return u}function I(l){const n=l.slice(1);return{red:parseInt(n.slice(0,2),16),green:parseInt(n.slice(2,4),16),blue:parseInt(n.slice(4,6),16)}}function g(l,n,o,u){return Math.round(l+(n-l)*o/u)}function k(l){return l.toString(16).padStart(2,"0")}const a=e.computed(()=>{const l=O.value+c.value.left+c.value.right,n=t.value.style.chart.height;return{width:l,left:c.value.left,right:l-c.value.right,top:c.value.top,bottom:n-c.value.bottom,height:n}}),z=e.computed(()=>a.value),x=e.computed(()=>{const l=r.checkNaN(s.dataset.from)<0?Math.abs(r.checkNaN(s.dataset.from)):r.checkNaN(s.dataset.from),n=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+n:l>n?o=l-n:o=n-l,(1-(Math.abs(r.checkNaN(s.dataset.from))+r.checkNaN(s.dataset.value))/o)*(a.value.height-c.value.top-c.value.bottom)}),L=e.computed(()=>`${x.value}px`),U=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-c.value.top}px`),G=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),W=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return p(y.value[0]||r.palette[0],r.convertColorToHex(s.dataset.colors.to),i.value||10);if(!s.dataset.colors.to)return p(r.convertColorToHex(s.dataset.colors.from),y.value[1]||r.palette[1],i.value||10)}else return p(y.value[1]||r.palette[1],y.value[0]||r.palette[0],i.value||10);return p(r.convertColorToHex(s.dataset.colors.from),r.convertColorToHex(s.dataset.colors.to),i.value||10)}),S=e.computed(()=>{const l=[];let n=0;const o=a.value.height-c.value.top-c.value.bottom;for(let u=0;u<o-1;u+=o/i.value)l.push({x:a.value.left,y:a.value.top+u,qYLess:a.value.top+u+o/i.value/4,halfY:a.value.top+u+o/i.value/2,qYMore:a.value.top+u+o/i.value/4*3,color:W.value[n],height:o/i.value}),n+=1;return l}),h=e.ref(!1);function H(l){h.value=l,N.value+=1}return Y({generatePdf:P,generateImage:F}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:C,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.style.title.text?(e.openBlock(),e.createElementBlock("div",Z,[(e.openBlock(),e.createBlock(X._sfc_main,{key:`title_${B.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&&f.value?(e.openBlock(),e.createBlock(q.UserOptions,{ref:"details",key:`user_options_${N.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref($),isPrinting:e.unref(V),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:C.value,onToggleFullscreen:H,onGeneratePdf:e.unref(P),onGenerateImage:e.unref(F)},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:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,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:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor}`)},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",te,[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,oe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(o,u)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${u}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,re),e.createElementVNode("stop",{offset:"50%","stop-color":`${o.color}${e.unref(r.opacity)[100-t.value.style.chart.graduations.gradient.intensity]}`},null,8,ae),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,se)],8,le))),256))]),e.createElementVNode("g",ne,[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,ue),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(o,u)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${u}`},[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_${u}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,ce),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,ie)):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,de)):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,he)):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,ve)):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,me)):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,ye)):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,pe)):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,fe)):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:x.value,width:a.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,ge)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:x.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,ke),e.renderSlot(l.$slots,"svg",{svg:z.value},void 0,!0)],14,ee)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(V)||e.unref($)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:4,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],14,Q))}},_e=K._export_sfc(be,[["__scopeId","data-v-900932c6"]]);exports.default=_e;
|