vue-data-ui 2.4.51 → 2.4.52
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-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
- package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
- package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
- package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
- package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
- package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
- package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
- package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
- package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
- package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
- package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
- package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
- package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
- package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
- package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
- package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
- package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
- package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
- package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
- package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
- package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
- package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
- package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
- package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
- package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
- package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
- package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
- package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
- package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
- package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
- package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
- package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
- package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
- package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
- package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
- package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useCssVars as me, computed as d, onMounted as ke, ref as g, watch as be, openBlock as l, createElementBlock as
|
|
2
|
-
import { u as Ce, o as $e, e as se, g as Pe, c as Fe, t as Ie, a as Oe, p as x, b as Ae, v as f, d as A, X as Me, s as Ue, i as Ye, f as Ne } from "./index-
|
|
3
|
-
import { _ as Se } from "./Title-
|
|
4
|
-
import { u as Te, U as qe } from "./usePrinter-
|
|
5
|
-
import Le from "./vue-ui-skeleton-
|
|
6
|
-
import { u as oe } from "./useNestedProp-
|
|
7
|
-
import { _ as Ve } from "./PackageVersion-
|
|
8
|
-
import { P as Ge } from "./PenAndPaper-
|
|
1
|
+
import { useCssVars as me, computed as d, onMounted as ke, ref as g, watch as be, openBlock as l, createElementBlock as n, normalizeClass as P, normalizeStyle as ee, unref as c, createBlock as F, createCommentVNode as i, createSlots as xe, withCtx as I, renderSlot as p, normalizeProps as G, guardReactiveProps as W, createVNode as _e, createElementVNode as v, Fragment as O, renderList as te, toDisplayString as we } from "vue";
|
|
2
|
+
import { u as Ce, o as $e, e as se, g as Pe, c as Fe, t as Ie, a as Oe, p as x, b as Ae, v as f, d as A, X as Me, s as Ue, i as Ye, f as Ne } from "./index-K5uyh1gA.js";
|
|
3
|
+
import { _ as Se } from "./Title-aMb2ETf7.js";
|
|
4
|
+
import { u as Te, U as qe } from "./usePrinter-p_ZZlGc9.js";
|
|
5
|
+
import Le from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
6
|
+
import { u as oe } from "./useNestedProp-DifqJZAs.js";
|
|
7
|
+
import { _ as Ve } from "./PackageVersion-Dz3KcTL4.js";
|
|
8
|
+
import { P as Ge } from "./PenAndPaper-BycdTwSP.js";
|
|
9
9
|
import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const ze = ["id"], Be = {
|
|
@@ -19,7 +19,7 @@ const ze = ["id"], Be = {
|
|
|
19
19
|
}, De = ["xmlns", "viewBox"], He = {
|
|
20
20
|
id: "vueUiPill",
|
|
21
21
|
clipPathUnits: "objectBoundingBox"
|
|
22
|
-
}, Xe = ["fill"], Re = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = { "clip-path": "url(#vueUiPill)" }, et = ["x", "y", "height", "width"], tt = ["x", "y", "height", "width", "fill"], st = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], lt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"],
|
|
22
|
+
}, Xe = ["fill"], Re = ["id"], Je = ["stop-color"], Ke = ["stop-color"], Qe = ["stop-color"], Ze = { "clip-path": "url(#vueUiPill)" }, et = ["x", "y", "height", "width"], tt = ["x", "y", "height", "width", "fill"], st = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ot = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], lt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], rt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], nt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x", "y", "height", "width"], ht = ["y", "x", "fill", "font-size", "font-weight"], dt = {
|
|
23
23
|
key: 5,
|
|
24
24
|
class: "vue-data-ui-watermark"
|
|
25
25
|
}, vt = {
|
|
@@ -45,15 +45,15 @@ const ze = ["id"], Be = {
|
|
|
45
45
|
setup(_, { expose: ae }) {
|
|
46
46
|
const a = _;
|
|
47
47
|
me((s) => ({
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"
|
|
48
|
+
"47ac6abe": he.value,
|
|
49
|
+
cafb14e0: ce.value,
|
|
50
|
+
"02502e7d": ie.value
|
|
51
51
|
}));
|
|
52
52
|
const { vue_ui_thermometer: le } = Ce(), M = d(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
53
53
|
ke(() => {
|
|
54
|
-
|
|
54
|
+
E();
|
|
55
55
|
});
|
|
56
|
-
function
|
|
56
|
+
function E() {
|
|
57
57
|
$e(a.dataset) ? se({
|
|
58
58
|
componentName: "VueUiThermometer",
|
|
59
59
|
type: "dataset"
|
|
@@ -68,10 +68,10 @@ const ze = ["id"], Be = {
|
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
const m = g(Fe()), U = g(null),
|
|
71
|
+
const m = g(Fe()), U = g(null), z = g(0), B = g(0), e = d({
|
|
72
72
|
get: () => H(),
|
|
73
73
|
set: (s) => s
|
|
74
|
-
}), { userOptionsVisible:
|
|
74
|
+
}), { userOptionsVisible: Y, setUserOptionsVisibility: j, keepUserOptionState: D } = We({ config: e.value });
|
|
75
75
|
function H() {
|
|
76
76
|
const s = oe({
|
|
77
77
|
userConfig: a.config,
|
|
@@ -86,24 +86,24 @@ const ze = ["id"], Be = {
|
|
|
86
86
|
} : s;
|
|
87
87
|
}
|
|
88
88
|
be(() => a.config, (s) => {
|
|
89
|
-
e.value = H(),
|
|
89
|
+
e.value = H(), Y.value = !e.value.showOnChartHover, E(), B.value += 1;
|
|
90
90
|
}, { deep: !0 });
|
|
91
91
|
const { isPrinting: X, isImaging: R, generatePdf: J, generateImage: K } = Te({
|
|
92
92
|
elementId: `thermometer__${m.value}`,
|
|
93
93
|
fileName: e.value.style.title.text || "vue-ui-thermometer"
|
|
94
|
-
}), re = d(() => e.value.userOptions.show && !e.value.style.title.text), w = d(() => Ae(e.value.customPalette)),
|
|
94
|
+
}), re = d(() => e.value.userOptions.show && !e.value.style.title.text), w = d(() => Ae(e.value.customPalette)), ue = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), h = g({
|
|
95
95
|
top: e.value.style.chart.padding.top,
|
|
96
96
|
left: e.value.style.chart.padding.left,
|
|
97
97
|
right: e.value.style.chart.padding.right,
|
|
98
98
|
bottom: e.value.style.chart.padding.bottom
|
|
99
99
|
});
|
|
100
100
|
function C(s, r, t) {
|
|
101
|
-
const
|
|
101
|
+
const u = [], L = Q(s), V = Q(r);
|
|
102
102
|
for (let b = 0; b < t; b++) {
|
|
103
|
-
const ye =
|
|
104
|
-
|
|
103
|
+
const ye = N(L.red, V.red, b, t), fe = N(L.green, V.green, b, t), ge = N(L.blue, V.blue, b, t), pe = `#${S(ye)}${S(fe)}${S(ge)}`;
|
|
104
|
+
u.push(pe);
|
|
105
105
|
}
|
|
106
|
-
return
|
|
106
|
+
return u;
|
|
107
107
|
}
|
|
108
108
|
function Q(s) {
|
|
109
109
|
const r = s.slice(1);
|
|
@@ -113,14 +113,14 @@ const ze = ["id"], Be = {
|
|
|
113
113
|
blue: parseInt(r.slice(4, 6), 16)
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return Math.round(s + (r - s) * t /
|
|
116
|
+
function N(s, r, t, u) {
|
|
117
|
+
return Math.round(s + (r - s) * t / u);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function S(s) {
|
|
120
120
|
return s.toString(16).padStart(2, "0");
|
|
121
121
|
}
|
|
122
122
|
const o = d(() => {
|
|
123
|
-
const s =
|
|
123
|
+
const s = ue.value + h.value.left + h.value.right, r = e.value.style.chart.height;
|
|
124
124
|
return {
|
|
125
125
|
width: s,
|
|
126
126
|
left: h.value.left,
|
|
@@ -129,11 +129,11 @@ const ze = ["id"], Be = {
|
|
|
129
129
|
bottom: r - h.value.bottom,
|
|
130
130
|
height: r
|
|
131
131
|
};
|
|
132
|
-
}),
|
|
132
|
+
}), ne = d(() => o.value), T = d(() => {
|
|
133
133
|
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);
|
|
134
134
|
let t = 0;
|
|
135
135
|
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) * (o.value.height - h.value.top - h.value.bottom);
|
|
136
|
-
}), ie = d(() => `${
|
|
136
|
+
}), ie = d(() => `${T.value}px`), ce = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), he = d(() => `${e.value.style.chart.animation.speedMs}ms`), de = d(() => {
|
|
137
137
|
if (a.dataset.colors) {
|
|
138
138
|
if (!a.dataset.colors.from)
|
|
139
139
|
return C(w.value[0] || x[0], A(a.dataset.colors.to), y.value || 10);
|
|
@@ -146,30 +146,30 @@ const ze = ["id"], Be = {
|
|
|
146
146
|
const s = [];
|
|
147
147
|
let r = 0;
|
|
148
148
|
const t = o.value.height - h.value.top - h.value.bottom;
|
|
149
|
-
for (let
|
|
149
|
+
for (let u = 0; u < t - 1; u += t / y.value)
|
|
150
150
|
s.push({
|
|
151
151
|
x: o.value.left,
|
|
152
|
-
y: o.value.top +
|
|
153
|
-
qYLess: o.value.top +
|
|
154
|
-
halfY: o.value.top +
|
|
155
|
-
qYMore: o.value.top +
|
|
152
|
+
y: o.value.top + u,
|
|
153
|
+
qYLess: o.value.top + u + t / y.value / 4,
|
|
154
|
+
halfY: o.value.top + u + t / y.value / 2,
|
|
155
|
+
qYMore: o.value.top + u + t / y.value / 4 * 3,
|
|
156
156
|
color: de.value[r],
|
|
157
157
|
height: t / y.value
|
|
158
158
|
}), r += 1;
|
|
159
159
|
return s;
|
|
160
160
|
}), k = g(!1);
|
|
161
161
|
function ve(s) {
|
|
162
|
-
k.value = s,
|
|
162
|
+
k.value = s, z.value += 1;
|
|
163
163
|
}
|
|
164
164
|
const $ = g(!1);
|
|
165
|
-
function
|
|
165
|
+
function q() {
|
|
166
166
|
$.value = !$.value;
|
|
167
167
|
}
|
|
168
168
|
return ae({
|
|
169
169
|
generatePdf: J,
|
|
170
170
|
generateImage: K,
|
|
171
|
-
toggleAnnotator:
|
|
172
|
-
}), (s, r) => (l(),
|
|
171
|
+
toggleAnnotator: q
|
|
172
|
+
}), (s, r) => (l(), n("div", {
|
|
173
173
|
ref_key: "thermoChart",
|
|
174
174
|
ref: U,
|
|
175
175
|
class: P(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
@@ -184,12 +184,12 @@ const ze = ["id"], Be = {
|
|
|
184
184
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
185
185
|
color: e.value.style.chart.color,
|
|
186
186
|
active: $.value,
|
|
187
|
-
onClose:
|
|
187
|
+
onClose: q
|
|
188
188
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : i("", !0),
|
|
189
|
-
re.value ? (l(),
|
|
190
|
-
e.value.style.title.text ? (l(),
|
|
189
|
+
re.value ? (l(), n("div", Be, null, 512)) : i("", !0),
|
|
190
|
+
e.value.style.title.text ? (l(), n("div", je, [
|
|
191
191
|
(l(), F(Se, {
|
|
192
|
-
key: `title_${
|
|
192
|
+
key: `title_${B.value}`,
|
|
193
193
|
config: {
|
|
194
194
|
title: {
|
|
195
195
|
cy: "thermometer-div-title",
|
|
@@ -202,9 +202,9 @@ const ze = ["id"], Be = {
|
|
|
202
202
|
}
|
|
203
203
|
}, null, 8, ["config"]))
|
|
204
204
|
])) : i("", !0),
|
|
205
|
-
e.value.userOptions.show && M.value && (c(D) || c(
|
|
205
|
+
e.value.userOptions.show && M.value && (c(D) || c(Y)) ? (l(), F(qe, {
|
|
206
206
|
ref: "details",
|
|
207
|
-
key: `user_options_${
|
|
207
|
+
key: `user_options_${z.value}`,
|
|
208
208
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
209
209
|
color: e.value.style.chart.color,
|
|
210
210
|
isImaging: c(R),
|
|
@@ -223,9 +223,9 @@ const ze = ["id"], Be = {
|
|
|
223
223
|
onToggleFullscreen: ve,
|
|
224
224
|
onGeneratePdf: c(J),
|
|
225
225
|
onGenerateImage: c(K),
|
|
226
|
-
onToggleAnnotator:
|
|
226
|
+
onToggleAnnotator: q,
|
|
227
227
|
style: ee({
|
|
228
|
-
visibility: c(D) ? c(
|
|
228
|
+
visibility: c(D) ? c(Y) ? "visible" : "hidden" : "visible"
|
|
229
229
|
})
|
|
230
230
|
}, xe({ _: 2 }, [
|
|
231
231
|
s.$slots.optionPdf ? {
|
|
@@ -244,20 +244,20 @@ const ze = ["id"], Be = {
|
|
|
244
244
|
} : void 0,
|
|
245
245
|
s.$slots.optionFullscreen ? {
|
|
246
246
|
name: "optionFullscreen",
|
|
247
|
-
fn: I(({ toggleFullscreen: t, isFullscreen:
|
|
248
|
-
p(s.$slots, "optionFullscreen",
|
|
247
|
+
fn: I(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
248
|
+
p(s.$slots, "optionFullscreen", G(W({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
249
249
|
]),
|
|
250
250
|
key: "2"
|
|
251
251
|
} : void 0,
|
|
252
252
|
s.$slots.optionAnnotator ? {
|
|
253
253
|
name: "optionAnnotator",
|
|
254
|
-
fn: I(({ toggleAnnotator: t, isAnnotator:
|
|
255
|
-
p(s.$slots, "optionAnnotator",
|
|
254
|
+
fn: I(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
255
|
+
p(s.$slots, "optionAnnotator", G(W({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
256
256
|
]),
|
|
257
257
|
key: "3"
|
|
258
258
|
} : void 0
|
|
259
259
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
260
|
-
M.value ? (l(),
|
|
260
|
+
M.value ? (l(), n("svg", {
|
|
261
261
|
key: 4,
|
|
262
262
|
xmlns: c(Me),
|
|
263
263
|
class: P({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
|
|
@@ -278,8 +278,8 @@ const ze = ["id"], Be = {
|
|
|
278
278
|
fill: e.value.style.chart.backgroundColor
|
|
279
279
|
}, null, 8, Xe)
|
|
280
280
|
]),
|
|
281
|
-
(l(!0),
|
|
282
|
-
id: `vueUiThermometerGradient_${
|
|
281
|
+
(l(!0), n(O, null, te(Z.value, (t, u) => (l(), n("linearGradient", {
|
|
282
|
+
id: `vueUiThermometerGradient_${u}_${m.value}`,
|
|
283
283
|
x1: "0%",
|
|
284
284
|
y1: "0%",
|
|
285
285
|
x2: "100%",
|
|
@@ -307,18 +307,18 @@ const ze = ["id"], Be = {
|
|
|
307
307
|
width: o.value.width - h.value.left - h.value.right,
|
|
308
308
|
fill: "#FFFFFF"
|
|
309
309
|
}, null, 8, et),
|
|
310
|
-
(l(!0),
|
|
311
|
-
key: `graduation_${
|
|
310
|
+
(l(!0), n(O, null, te(Z.value, (t, u) => (l(), n("g", {
|
|
311
|
+
key: `graduation_${u}`
|
|
312
312
|
}, [
|
|
313
313
|
v("rect", {
|
|
314
314
|
x: t.x,
|
|
315
315
|
y: t.y,
|
|
316
316
|
height: t.height,
|
|
317
317
|
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
318
|
-
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${
|
|
318
|
+
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${u}_${m.value})` : t.color,
|
|
319
319
|
"shape-rendering": "crispEdges"
|
|
320
320
|
}, null, 8, tt),
|
|
321
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
321
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
322
322
|
key: 0,
|
|
323
323
|
x1: t.x,
|
|
324
324
|
x2: t.x + 10,
|
|
@@ -328,8 +328,8 @@ const ze = ["id"], Be = {
|
|
|
328
328
|
stroke: e.value.style.chart.graduations.stroke,
|
|
329
329
|
"stroke-linecap": "round"
|
|
330
330
|
}, null, 8, st)) : i("", !0),
|
|
331
|
-
e.value.style.chart.graduations.showIntermediate ? (l(),
|
|
332
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
331
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), n(O, { key: 1 }, [
|
|
332
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
333
333
|
key: 0,
|
|
334
334
|
x1: t.x,
|
|
335
335
|
x2: t.x + 5,
|
|
@@ -339,7 +339,7 @@ const ze = ["id"], Be = {
|
|
|
339
339
|
stroke: e.value.style.chart.graduations.stroke,
|
|
340
340
|
"stroke-linecap": "round"
|
|
341
341
|
}, null, 8, ot)) : i("", !0),
|
|
342
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
342
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
343
343
|
key: 1,
|
|
344
344
|
x1: t.x,
|
|
345
345
|
x2: t.x + 2.5,
|
|
@@ -349,7 +349,7 @@ const ze = ["id"], Be = {
|
|
|
349
349
|
stroke: e.value.style.chart.graduations.stroke,
|
|
350
350
|
"stroke-linecap": "round"
|
|
351
351
|
}, null, 8, at)) : i("", !0),
|
|
352
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
352
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
353
353
|
key: 2,
|
|
354
354
|
x1: t.x,
|
|
355
355
|
x2: t.x + 2.5,
|
|
@@ -360,7 +360,7 @@ const ze = ["id"], Be = {
|
|
|
360
360
|
"stroke-linecap": "round"
|
|
361
361
|
}, null, 8, lt)) : i("", !0)
|
|
362
362
|
], 64)) : i("", !0),
|
|
363
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
363
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
364
364
|
key: 2,
|
|
365
365
|
x1: o.value.right,
|
|
366
366
|
x2: o.value.right - 10,
|
|
@@ -370,8 +370,8 @@ const ze = ["id"], Be = {
|
|
|
370
370
|
stroke: e.value.style.chart.graduations.stroke,
|
|
371
371
|
"stroke-linecap": "round"
|
|
372
372
|
}, null, 8, rt)) : i("", !0),
|
|
373
|
-
e.value.style.chart.graduations.showIntermediate ? (l(),
|
|
374
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
373
|
+
e.value.style.chart.graduations.showIntermediate ? (l(), n(O, { key: 3 }, [
|
|
374
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
375
375
|
key: 0,
|
|
376
376
|
x1: o.value.right,
|
|
377
377
|
x2: o.value.right - 5,
|
|
@@ -380,8 +380,8 @@ const ze = ["id"], Be = {
|
|
|
380
380
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
381
381
|
stroke: e.value.style.chart.graduations.stroke,
|
|
382
382
|
"stroke-linecap": "round"
|
|
383
|
-
}, null, 8,
|
|
384
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
383
|
+
}, null, 8, ut)) : i("", !0),
|
|
384
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
385
385
|
key: 1,
|
|
386
386
|
x1: o.value.right,
|
|
387
387
|
x2: o.value.right - 2.5,
|
|
@@ -390,8 +390,8 @@ const ze = ["id"], Be = {
|
|
|
390
390
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
391
391
|
stroke: e.value.style.chart.graduations.stroke,
|
|
392
392
|
"stroke-linecap": "round"
|
|
393
|
-
}, null, 8,
|
|
394
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(),
|
|
393
|
+
}, null, 8, nt)) : i("", !0),
|
|
394
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), n("line", {
|
|
395
395
|
key: 2,
|
|
396
396
|
x1: o.value.right,
|
|
397
397
|
x2: o.value.right - 2.5,
|
|
@@ -407,14 +407,14 @@ const ze = ["id"], Be = {
|
|
|
407
407
|
class: P({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
408
408
|
x: o.value.left,
|
|
409
409
|
y: o.value.top,
|
|
410
|
-
height:
|
|
410
|
+
height: T.value,
|
|
411
411
|
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
412
412
|
fill: "#FFFFFF66"
|
|
413
413
|
}, null, 10, ct)
|
|
414
414
|
]),
|
|
415
415
|
v("text", {
|
|
416
416
|
class: P({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
|
|
417
|
-
y:
|
|
417
|
+
y: T.value + o.value.top + e.value.style.chart.label.fontSize / 3,
|
|
418
418
|
x: o.value.left - 10,
|
|
419
419
|
"text-anchor": "end",
|
|
420
420
|
fill: e.value.style.chart.label.color,
|
|
@@ -431,12 +431,12 @@ const ze = ["id"], Be = {
|
|
|
431
431
|
}),
|
|
432
432
|
{ datapoint: _.dataset }
|
|
433
433
|
)), 11, ht),
|
|
434
|
-
p(s.$slots, "svg", { svg:
|
|
434
|
+
p(s.$slots, "svg", { svg: ne.value }, void 0, !0)
|
|
435
435
|
], 10, De)) : i("", !0),
|
|
436
|
-
s.$slots.watermark ? (l(),
|
|
437
|
-
p(s.$slots, "watermark",
|
|
436
|
+
s.$slots.watermark ? (l(), n("div", dt, [
|
|
437
|
+
p(s.$slots, "watermark", G(W({ isPrinting: c(X) || c(R) })), void 0, !0)
|
|
438
438
|
])) : i("", !0),
|
|
439
|
-
s.$slots.source ? (l(),
|
|
439
|
+
s.$slots.source ? (l(), n("div", vt, [
|
|
440
440
|
p(s.$slots, "source", {}, void 0, !0)
|
|
441
441
|
], 512)) : i("", !0),
|
|
442
442
|
M.value ? i("", !0) : (l(), F(Le, {
|
|
@@ -453,7 +453,7 @@ const ze = ["id"], Be = {
|
|
|
453
453
|
}, null, 8, ["config"]))
|
|
454
454
|
], 46, ze));
|
|
455
455
|
}
|
|
456
|
-
}, $t = /* @__PURE__ */ Ee(yt, [["__scopeId", "data-v-
|
|
456
|
+
}, $t = /* @__PURE__ */ Ee(yt, [["__scopeId", "data-v-90584bea"]]);
|
|
457
457
|
export {
|
|
458
458
|
$t as default
|
|
459
459
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BkXYJDpD.cjs"),te=require("./Title-B7ruS8yl.cjs"),U=require("./usePrinter-DHv-BwME.cjs"),oe=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Y=require("./useNestedProp-C6IvqE-r.cjs"),le=require("./PackageVersion-C1F3QLoY.cjs"),re=require("./PenAndPaper-DDheVRNG.cjs"),ae=require("./useUserOptionState-BgepsfED.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=["id"],ue={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ie={key:2,style:"width:100%"},ce=["xmlns","viewBox"],de={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},he=["fill"],ve=["id"],me=["stop-color"],pe=["stop-color"],ye=["stop-color"],fe={"clip-path":"url(#vueUiPill)"},ke=["x","y","height","width"],ge=["x","y","height","width","fill"],be=["x1","x2","y1","y2","stroke-width","stroke"],xe=["x1","x2","y1","y2","stroke-width","stroke"],Ce=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x1","x2","y1","y2","stroke-width","stroke"],we=["x1","x2","y1","y2","stroke-width","stroke"],Ne=["x1","x2","y1","y2","stroke-width","stroke"],Be=["x1","x2","y1","y2","stroke-width","stroke"],Ve=["x1","x2","y1","y2","stroke-width","stroke"],Pe=["x","y","height","width"],Ee=["y","x","fill","font-size","font-weight"],$e={key:5,class:"vue-data-ui-watermark"},Fe={key:6,ref:"source",dir:"auto"},Oe={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:z}){const s=m;e.useCssVars(l=>({"47ac6abe":R.value,cafb14e0:D.value,"02502e7d":j.value}));const{vue_ui_thermometer:L}=r.useConfig(),k=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{V()});function V(){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()),g=e.ref(null),P=e.ref(0),E=e.ref(0),t=e.computed({get:()=>O(),set:l=>l}),{userOptionsVisible:b,setUserOptionsVisibility:$,keepUserOptionState:F}=ae.useUserOptionState({config:t.value});function O(){const l=Y.useNestedProp({userConfig:s.config,defaultConfig:L});return l.theme?{...Y.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=O(),b.value=!t.value.showOnChartHover,V(),E.value+=1},{deep:!0});const{isPrinting:S,isImaging:I,generatePdf:q,generateImage:A}=U.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer"}),G=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),H=e.computed(()=>t.value.style.chart.thermometer.width),c=e.computed(()=>s.dataset.steps||10),i=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,n,o){const u=[],N=T(l),B=T(n);for(let v=0;v<o;v++){const K=x(N.red,B.red,v,o),Q=x(N.green,B.green,v,o),Z=x(N.blue,B.blue,v,o),ee=`#${C(K)}${C(Q)}${C(Z)}`;u.push(ee)}return u}function T(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 x(l,n,o,u){return Math.round(l+(n-l)*o/u)}function C(l){return l.toString(16).padStart(2,"0")}const a=e.computed(()=>{const l=H.value+i.value.left+i.value.right,n=t.value.style.chart.height;return{width:l,left:i.value.left,right:l-i.value.right,top:i.value.top,bottom:n-i.value.bottom,height:n}}),W=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),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-i.value.top-i.value.bottom)}),j=e.computed(()=>`${_.value}px`),D=e.computed(()=>`${a.value.height-t.value.style.chart.padding.bottom-i.value.top}px`),R=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),X=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),c.value||10);if(!s.dataset.colors.to)return y(r.convertColorToHex(s.dataset.colors.from),p.value[1]||r.palette[1],c.value||10)}else return y(p.value[1]||r.palette[1],p.value[0]||r.palette[0],c.value||10);return y(r.convertColorToHex(s.dataset.colors.from),r.convertColorToHex(s.dataset.colors.to),c.value||10)}),M=e.computed(()=>{const l=[];let n=0;const o=a.value.height-i.value.top-i.value.bottom;for(let u=0;u<o-1;u+=o/c.value)l.push({x:a.value.left,y:a.value.top+u,qYLess:a.value.top+u+o/c.value/4,halfY:a.value.top+u+o/c.value/2,qYMore:a.value.top+u+o/c.value/4*3,color:X.value[n],height:o/c.value}),n+=1;return l}),h=e.ref(!1);function J(l){h.value=l,P.value+=1}const f=e.ref(!1);function w(){f.value=!f.value}return z({generatePdf:q,generateImage:A,toggleAnnotator:w}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:g,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}`,onMouseenter:n[0]||(n[0]=()=>e.unref($)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref($)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(re.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:w},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),G.value?(e.openBlock(),e.createElementBlock("div",ue,null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(te._sfc_main,{key:`title_${E.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&&k.value&&(e.unref(F)||e.unref(b))?(e.openBlock(),e.createBlock(U.UserOptions,{ref:"details",key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(I),isPrinting:e.unref(S),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:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:J,onGeneratePdf:e.unref(q),onGenerateImage:e.unref(A),onToggleAnnotator:w,style:e.normalizeStyle({visibility:e.unref(F)?e.unref(b)?"visible":"hidden":"visible"})},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,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("svg",{key:4,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(le._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",de,[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,he)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.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,me),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(r.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,pe),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,ye)],8,ve))),256))]),e.createElementVNode("g",fe,[e.createElementVNode("rect",{x:a.value.left,y:a.value.top,height:a.value.height-i.value.top-i.value.bottom,width:a.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,ke),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.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,ge),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,be)):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,xe)):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,Ce)):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,_e)):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,we)):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,Ne)):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,Ve)):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,Pe)]),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,Ee),e.renderSlot(l.$slots,"svg",{svg:W.value},void 0,!0)],10,ce)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe.default,{key:7,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],46,ne))}},Se=se._export_sfc(Oe,[["__scopeId","data-v-90584bea"]]);exports.default=Se;
|
|
@@ -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 O, normalizeProps as U, guardReactiveProps as E, toDisplayString as ae } from "vue";
|
|
2
|
-
import { u as se } from "./useNestedProp-
|
|
3
|
-
import { u as le, c as oe, X as re, F as W } from "./index-
|
|
2
|
+
import { u as se } from "./useNestedProp-DifqJZAs.js";
|
|
3
|
+
import { u as le, c as oe, X as re, F as W } from "./index-K5uyh1gA.js";
|
|
4
4
|
import { t as ue, u as ie } from "./useResponsive-CoxXLe23.js";
|
|
5
|
-
import P from "./BaseIcon-
|
|
6
|
-
import { _ as ne } from "./Title-
|
|
7
|
-
import { _ as ce } from "./PackageVersion-
|
|
5
|
+
import P from "./BaseIcon-zmxwsaLW.js";
|
|
6
|
+
import { _ as ne } from "./Title-aMb2ETf7.js";
|
|
7
|
+
import { _ as ce } from "./PackageVersion-Dz3KcTL4.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) {
|
|
@@ -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-C6IvqE-r.cjs"),g=require("./index-BkXYJDpD.cjs"),$=require("./useResponsive-BJ7DTGpm.cjs"),B=require("./BaseIcon-CfhoS_qC.cjs"),j=require("./Title-B7ruS8yl.cjs"),q=require("./PackageVersion-C1F3QLoY.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;
|