vue-data-ui 2.4.51 → 2.4.53
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-2a_SwBgz.cjs → Arrow-BGjtcB03.cjs} +1 -1
- package/dist/{Arrow-BUz63pb2.js → Arrow-XbzVXHDF.js} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-CiQzR1fE.js} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-DGRZS55E.cjs} +1 -1
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-DWQiMziO.cjs} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-jvL0XGWl.js} +2 -2
- package/dist/{Legend-BiuPlEMg.cjs → Legend-BstxUr4T.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-DcIfRSNC.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-CeJ2R9gK.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Ve0s76sL.js} +1 -1
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DQPbe0G_.cjs} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-IHG7xTmx.js} +3 -3
- package/dist/{Shape-yducHWd0.cjs → Shape-Bzx4qKcd.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-Rg6yW7m3.js} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-CP2Z31Lc.js} +2 -2
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-CPp7_WWa.cjs} +1 -1
- package/dist/{Title-Bk_55doC.cjs → Title-CSyDhu3S.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-DLo3Zo2_.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-CA1QhFeE.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-D88h1zvE.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-C3wsuQ2C.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-DhxnZ6ZS.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-BcqToEU0.js} +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-CFwQtnNB.cjs} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-Dglf1bsw.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-mDGfOQZA.js} +1 -1
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-BM5qFlPf.cjs} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-C6tJVggL.js} +60 -60
- 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-BFzCyxbR.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-DiL5x37F.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-DDp8hUlk.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kv5FuXqU.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-ORFLMq65.js} +42 -42
- package/dist/vue-ui-age-pyramid-xYMc6DPS.cjs +1 -0
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-CYyuSx8D.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-J_Ssv585.cjs} +1 -1
- package/dist/vue-ui-bullet-BbOqOHbK.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-D8w5qQKc.js} +41 -41
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-B7jJlgII.js} +61 -61
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BbKj6Lt5.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-3ntrCePt.js} +50 -50
- package/dist/vue-ui-carousel-table-Cazhvs3E.cjs +1 -0
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-DyFTfNZi.cjs} +3 -3
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-apUInPn_.js} +66 -66
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CFTO66GQ.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-CsNO0-Tw.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-C-pDSWwi.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-DddJvm7i.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-DSqN9pA7.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-DWAbSFx3.js} +2 -2
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-DSeDfu4H.js} +57 -57
- package/dist/vue-ui-donut-DrAes-Cb.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CYtTDj7r.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-D7h33-ti.js} +66 -66
- package/dist/vue-ui-dumbbell-DAK7iUrl.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-LF5uy2pG.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-ClPKB4R5.js} +43 -43
- package/dist/vue-ui-flow-u3UVnWTH.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-BIXUXI8z.js} +59 -59
- package/dist/vue-ui-funnel-BY7rqfpW.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-CEnGrqn3.js} +54 -54
- package/dist/vue-ui-galaxy-DBnbXO8c.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-C7Qchm0R.js} +70 -70
- package/dist/vue-ui-gauge-CJYWRyeq.cjs +1 -0
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-C9_Ciat_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-CKZRt29V.js} +3 -3
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-BlbOJnS0.js} +87 -87
- package/dist/vue-ui-heatmap-olBNo_Ui.cjs +1 -0
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CBpL_OyR.js} +75 -75
- package/dist/vue-ui-history-plot-Cyd53pxt.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-C2XDua17.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-CkcQ40VT.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-CpeOqmXd.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-DXF2Zpi6.js} +2 -2
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-ekgpnwl8.js} +52 -52
- package/dist/vue-ui-molecule-qQjh4AkD.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-CV30YU_f.js} +35 -35
- package/dist/vue-ui-mood-radar-KoW8hhxL.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-AkaYvLCi.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-DZ_eS-bB.js} +90 -90
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-Bl1UUCFU.cjs} +2 -2
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-YfHn7AeD.js} +52 -52
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-BEqbS5A6.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-Dv_UD2bi.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-BU_pD15l.js} +50 -50
- package/dist/vue-ui-quadrant-DO6afeTp.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-ByDBV3lo.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-U-1paiOI.js} +9 -9
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-B5FUXS1e.js} +59 -59
- package/dist/vue-ui-radar-DLsIiPBR.cjs +1 -0
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-D4-ebrWA.cjs} +1 -1
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-DcCUrP6L.js} +2 -2
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-2i7B4Yf-.js} +56 -56
- package/dist/vue-ui-relation-circle-jPx6gmw1.cjs +1 -0
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-6JF72UH8.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-DG0DQD21.js} +65 -65
- package/dist/vue-ui-scatter-CfbMuDQy.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-j6SU-TUb.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-B6hhgFz_.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-BKfP266_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-99lBQ_mF.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-pdtGfiV6.js} +3 -3
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-8UembS7P.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-fOlIEhGS.js} +2 -2
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-BkPSkOrh.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-CV5Uq241.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-DUNqm_AP.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-qB9reaJo.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-D0hLQuMH.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-Mmm3mt-c.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-9yQ-E0co.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CuB-M26R.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-D_QkkgS-.js} +4 -4
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-Du8Hm28x.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-BDubVDPN.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-B_I1tmuS.cjs} +1 -1
- package/dist/vue-ui-stackbar-DHnilreT.cjs +6 -0
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-rNiqr7aF.js} +43 -43
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-DPn3qgdB.js} +78 -78
- package/dist/vue-ui-strip-plot-DlRej1u9.cjs +1 -0
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BrZ__Cd2.js} +1 -1
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-DLcFdjyM.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-DIkXPyqe.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-DQXI2uPZ.js} +38 -38
- package/dist/vue-ui-table-sparkline-BUNsAEVY.js +647 -0
- package/dist/vue-ui-table-sparkline-BazGMr3R.cjs +1 -0
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-DMkD9fS8.js} +74 -74
- package/dist/vue-ui-thermometer-_gbnwB1j.cjs +1 -0
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-BTfgxjIc.cjs} +1 -1
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-Dv-GSUf1.js} +5 -5
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-CEMrBJPF.js} +46 -46
- package/dist/vue-ui-tiremarks-Ct9y13Sl.cjs +1 -0
- package/dist/vue-ui-treemap-D7SBHWJ2.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-D8AkLDqM.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BnhysoC9.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-_EQI8SXm.cjs} +2 -2
- package/dist/vue-ui-waffle-DOhi1BWD.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-DfRmWfrG.js} +48 -48
- package/dist/vue-ui-wheel-BbDtndmW.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-CU6-VBD1.js} +36 -36
- package/dist/vue-ui-word-cloud-CRarnngT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-CbuHwEkP.js} +66 -66
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-BRTegbdr.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-DsTqLLWp.js} +53 -53
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-hn3ncIFk.cjs} +2 -2
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-pSvq591u.js} +14 -14
- 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-table-sparkline-YV8DUOqh.js +0 -600
- 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,15 +1,15 @@
|
|
|
1
|
-
import { computed as y, ref as d, watch as me, onMounted as Ae, onBeforeUnmount as Re, openBlock as o, createElementBlock as u, normalizeClass as pe, normalizeStyle as
|
|
2
|
-
import { u as Ue, c as We, t as Te, a as je, p as ge, b as Le, o as ke, d as De, e as E, g as be, m as
|
|
1
|
+
import { computed as y, ref as d, watch as me, onMounted as Ae, onBeforeUnmount as Re, openBlock as o, createElementBlock as u, normalizeClass as pe, normalizeStyle as L, unref as i, createBlock as R, createCommentVNode as h, withCtx as X, toDisplayString as C, createSlots as Ge, renderSlot as w, normalizeProps as D, guardReactiveProps as B, createVNode as Ee, createElementVNode as p, Fragment as x, renderList as S, mergeProps as G } from "vue";
|
|
2
|
+
import { u as Ue, c as We, t as Te, a as je, p as ge, b as Le, o as ke, d as De, e as E, g as be, m as V, I as z, X as Be, s as q, k as Ve, i as H, f as Z, F as J } from "./index-DhxnZ6ZS.js";
|
|
3
3
|
import { t as qe, u as He } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { u as Ze, U as Je } from "./usePrinter-
|
|
5
|
-
import Ke from "./vue-ui-skeleton-
|
|
6
|
-
import { _ as Qe } from "./Title-
|
|
7
|
-
import { u as xe } from "./useNestedProp-
|
|
8
|
-
import { _ as et } from "./PackageVersion-
|
|
9
|
-
import { P as tt } from "./PenAndPaper-
|
|
4
|
+
import { u as Ze, U as Je } from "./usePrinter-mDGfOQZA.js";
|
|
5
|
+
import Ke from "./vue-ui-skeleton-pdtGfiV6.js";
|
|
6
|
+
import { _ as Qe } from "./Title-DLo3Zo2_.js";
|
|
7
|
+
import { u as xe } from "./useNestedProp-BcqToEU0.js";
|
|
8
|
+
import { _ as et } from "./PackageVersion-Ve0s76sL.js";
|
|
9
|
+
import { P as tt } from "./PenAndPaper-IHG7xTmx.js";
|
|
10
10
|
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt = ["stop-color"], it = ["stop-color"], ct = ["stop-color"], vt = ["id"], ht = ["stdDeviation"], dt = ["d", "fill", "stroke"], yt = ["id", "d"], ft = ["fill", "font-size", "font-weight"], mt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], gt = ["d", "filter"], kt = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = { key: 4 }, St = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], $t = { key: 6 }, Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"],
|
|
12
|
+
const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt = ["stop-color"], it = ["stop-color"], ct = ["stop-color"], vt = ["id"], ht = ["stdDeviation"], dt = ["d", "fill", "stroke"], yt = ["id", "d"], ft = ["fill", "font-size", "font-weight"], mt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], gt = ["d", "filter"], kt = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = { key: 4 }, St = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], $t = { key: 6 }, Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ot = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Mt = { key: 7 }, Pt = ["d", "fill", "stroke", "stroke-width"], Nt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Xt = ["x", "y", "font-size", "fill"], Yt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, It = {
|
|
@@ -29,12 +29,12 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(U, { expose: _e }) {
|
|
32
|
-
const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null),
|
|
32
|
+
const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), K = d(0), O = d(null), Q = d(null), ee = d(null), te = d(null), ae = d(null), le = d(0), e = y({
|
|
33
33
|
get: () => oe(),
|
|
34
34
|
set: (a) => a
|
|
35
|
-
}), { userOptionsVisible:
|
|
35
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: se, keepUserOptionState: re } = at({ config: e.value });
|
|
36
36
|
me(() => v.config, (a) => {
|
|
37
|
-
e.value = oe(), he(),
|
|
37
|
+
e.value = oe(), W.value = !e.value.showOnChartHover, he(), le.value += 1;
|
|
38
38
|
}, { deep: !0 });
|
|
39
39
|
function oe() {
|
|
40
40
|
const a = xe({
|
|
@@ -91,12 +91,12 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
91
91
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
92
92
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
93
93
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
94
|
-
}),
|
|
94
|
+
}), M = d(0), P = d(0), f = d(e.value.style.chart.animation.use ? 0 : v.dataset.value);
|
|
95
95
|
me(() => v.dataset.value, () => {
|
|
96
96
|
de(v.dataset.value);
|
|
97
97
|
});
|
|
98
98
|
const n = y(() => {
|
|
99
|
-
const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (
|
|
99
|
+
const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI;
|
|
100
100
|
return {
|
|
101
101
|
x1: a,
|
|
102
102
|
y1: s,
|
|
@@ -104,9 +104,9 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
104
104
|
y2: s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t)
|
|
105
105
|
};
|
|
106
106
|
}), ve = y(() => {
|
|
107
|
-
const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (
|
|
107
|
+
const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI, r = a + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t), k = s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t), b = l.value.pointerRadius, Ne = a + b * Math.cos(t + Math.PI / 2), Xe = s + b * Math.sin(t + Math.PI / 2), Ye = a + b * Math.cos(t - Math.PI / 2), Ie = s + b * Math.sin(t - Math.PI / 2);
|
|
108
108
|
return isNaN(r) ? null : `M ${r},${k} ${Ne},${Xe} ${Ye},${Ie} Z`;
|
|
109
|
-
}),
|
|
109
|
+
}), T = y(() => {
|
|
110
110
|
for (let a = 0; a < $.value.series.length; a += 1) {
|
|
111
111
|
const { color: s, from: t, to: r } = $.value.series[a];
|
|
112
112
|
if (f.value >= t && f.value <= r)
|
|
@@ -146,25 +146,25 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
146
146
|
}))), de(v.dataset.value || 0), e.value.responsive) {
|
|
147
147
|
const a = qe(() => {
|
|
148
148
|
const { width: s, height: t } = He({
|
|
149
|
-
chart:
|
|
150
|
-
title: e.value.style.chart.title.text ?
|
|
151
|
-
legend:
|
|
152
|
-
source:
|
|
153
|
-
noTitle:
|
|
149
|
+
chart: O.value,
|
|
150
|
+
title: e.value.style.chart.title.text ? Q.value : null,
|
|
151
|
+
legend: ee.value,
|
|
152
|
+
source: te.value,
|
|
153
|
+
noTitle: ae.value
|
|
154
154
|
});
|
|
155
|
-
l.value.width = s, l.value.height = t, l.value.centerX = s / 2, l.value.centerY = g.value / 2 / 358.4 * t, l.value.bottom = t, l.value.labelFontSize = 18 / g.value * Math.min(t, s) < 10 ? 10 : 18 / g.value * Math.min(t, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / g.value * Math.min(t, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / g.value * Math.min(t, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / g.value * Math.min(t, s), l.value.trackSize = e.value.style.chart.layout.track.size / g.value * Math.min(t, s), l.value.pointerStrokeWidth =
|
|
155
|
+
l.value.width = s, l.value.height = t, l.value.centerX = s / 2, l.value.centerY = g.value / 2 / 358.4 * t, l.value.bottom = t, l.value.labelFontSize = 18 / g.value * Math.min(t, s) < 10 ? 10 : 18 / g.value * Math.min(t, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / g.value * Math.min(t, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / g.value * Math.min(t, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / g.value * Math.min(t, s), l.value.trackSize = e.value.style.chart.layout.track.size / g.value * Math.min(t, s), l.value.pointerStrokeWidth = J({
|
|
156
156
|
relator: Math.min(s, t),
|
|
157
157
|
adjuster: g.value,
|
|
158
158
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
159
159
|
threshold: 2,
|
|
160
160
|
fallback: 2
|
|
161
|
-
}), l.value.markerOffset =
|
|
161
|
+
}), l.value.markerOffset = J({
|
|
162
162
|
relator: Math.max(s, t),
|
|
163
163
|
adjuster: g.value,
|
|
164
164
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
165
165
|
threshold: 2,
|
|
166
166
|
fallback: 2
|
|
167
|
-
}), l.value.segmentFontSize =
|
|
167
|
+
}), l.value.segmentFontSize = J({
|
|
168
168
|
relator: Math.min(s, t),
|
|
169
169
|
adjuster: g.value,
|
|
170
170
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
@@ -172,7 +172,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
172
172
|
fallback: 8
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
|
-
I.value = new ResizeObserver(a), I.value.observe(
|
|
175
|
+
I.value = new ResizeObserver(a), I.value.observe(O.value.parentNode);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
Ae(() => {
|
|
@@ -184,7 +184,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
184
184
|
const s = [];
|
|
185
185
|
($.value.series || []).forEach((b) => {
|
|
186
186
|
s.push(b.from || 0), s.push(b.to || 0);
|
|
187
|
-
}),
|
|
187
|
+
}), M.value = Math.max(...s), P.value = Math.min(...s);
|
|
188
188
|
let t = e.value.style.chart.animation.speed;
|
|
189
189
|
const r = Math.abs(a - f.value) / (t * 60);
|
|
190
190
|
function k() {
|
|
@@ -201,7 +201,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
201
201
|
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
202
202
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
203
203
|
};
|
|
204
|
-
}), m = y(() =>
|
|
204
|
+
}), m = y(() => V(
|
|
205
205
|
{ series: $.value.series },
|
|
206
206
|
l.value.width / 2,
|
|
207
207
|
c.value.base,
|
|
@@ -213,7 +213,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
213
213
|
180,
|
|
214
214
|
109.9495,
|
|
215
215
|
40 * l.value.trackSize
|
|
216
|
-
)), Fe = y(() =>
|
|
216
|
+
)), Fe = y(() => V(
|
|
217
217
|
{ series: $.value.series },
|
|
218
218
|
l.value.width / 2,
|
|
219
219
|
c.value.base,
|
|
@@ -263,7 +263,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
263
263
|
let r = 0;
|
|
264
264
|
return a.map((k) => (r += k, `${r / 100 * t - k / 4}%`));
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const Oe = y(() => Ce(m.value.map((a) => a.proportion * 100))), Me = y(() => V(
|
|
267
267
|
{ series: $.value.series },
|
|
268
268
|
l.value.width / 2,
|
|
269
269
|
c.value.base,
|
|
@@ -277,48 +277,48 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
277
277
|
2 * l.value.trackSize
|
|
278
278
|
)), N = d(!1);
|
|
279
279
|
function Pe(a) {
|
|
280
|
-
N.value = a,
|
|
280
|
+
N.value = a, K.value += 1;
|
|
281
281
|
}
|
|
282
282
|
const A = d(!1);
|
|
283
|
-
function
|
|
283
|
+
function j() {
|
|
284
284
|
A.value = !A.value;
|
|
285
285
|
}
|
|
286
286
|
return _e({
|
|
287
287
|
generatePdf: ie,
|
|
288
288
|
generateImage: ce,
|
|
289
|
-
toggleAnnotator:
|
|
289
|
+
toggleAnnotator: j
|
|
290
290
|
}), (a, s) => (o(), u("div", {
|
|
291
291
|
class: pe(`vue-ui-gauge ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
292
292
|
ref_key: "gaugeChart",
|
|
293
|
-
ref:
|
|
293
|
+
ref: O,
|
|
294
294
|
id: `vue-ui-gauge_${_.value}`,
|
|
295
|
-
style:
|
|
295
|
+
style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
296
296
|
onMouseenter: s[0] || (s[0] = () => i(se)(!0)),
|
|
297
297
|
onMouseleave: s[1] || (s[1] = () => i(se)(!1))
|
|
298
298
|
}, [
|
|
299
299
|
e.value.userOptions.buttons.annotator ? (o(), R(tt, {
|
|
300
300
|
key: 0,
|
|
301
|
-
parent:
|
|
301
|
+
parent: O.value,
|
|
302
302
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
303
303
|
color: e.value.style.chart.color,
|
|
304
304
|
active: A.value,
|
|
305
|
-
onClose:
|
|
305
|
+
onClose: j
|
|
306
306
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
|
|
307
307
|
ze.value ? (o(), u("div", {
|
|
308
308
|
key: 1,
|
|
309
309
|
ref_key: "noTitle",
|
|
310
|
-
ref:
|
|
310
|
+
ref: ae,
|
|
311
311
|
class: "vue-data-ui-no-title-space",
|
|
312
312
|
style: "height:36px; width: 100%;background:transparent"
|
|
313
313
|
}, null, 512)) : h("", !0),
|
|
314
314
|
e.value.style.chart.title.text ? (o(), u("div", {
|
|
315
315
|
key: 2,
|
|
316
316
|
ref_key: "chartTitle",
|
|
317
|
-
ref:
|
|
317
|
+
ref: Q,
|
|
318
318
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
319
319
|
}, [
|
|
320
320
|
(o(), R(Qe, {
|
|
321
|
-
key: `title_${
|
|
321
|
+
key: `title_${le.value}`,
|
|
322
322
|
config: {
|
|
323
323
|
title: {
|
|
324
324
|
cy: "gauge-div-title",
|
|
@@ -336,10 +336,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
336
336
|
_: 1
|
|
337
337
|
}, 8, ["config"]))
|
|
338
338
|
], 512)) : h("", !0),
|
|
339
|
-
e.value.userOptions.show && Y.value && (i(re) || i(
|
|
339
|
+
e.value.userOptions.show && Y.value && (i(re) || i(W)) ? (o(), R(Je, {
|
|
340
340
|
ref_key: "details",
|
|
341
341
|
ref: Se,
|
|
342
|
-
key: `user_options_${
|
|
342
|
+
key: `user_options_${K.value}`,
|
|
343
343
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
344
344
|
color: e.value.style.chart.color,
|
|
345
345
|
isImaging: i(ne),
|
|
@@ -351,16 +351,16 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
351
351
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
352
352
|
isFullscreen: N.value,
|
|
353
353
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
354
|
-
chartElement:
|
|
354
|
+
chartElement: O.value,
|
|
355
355
|
position: e.value.userOptions.position,
|
|
356
356
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
357
357
|
isAnnotation: A.value,
|
|
358
358
|
onToggleFullscreen: Pe,
|
|
359
359
|
onGeneratePdf: i(ie),
|
|
360
360
|
onGenerateImage: i(ce),
|
|
361
|
-
onToggleAnnotator:
|
|
362
|
-
style:
|
|
363
|
-
visibility: i(re) ? i(
|
|
361
|
+
onToggleAnnotator: j,
|
|
362
|
+
style: L({
|
|
363
|
+
visibility: i(re) ? i(W) ? "visible" : "hidden" : "visible"
|
|
364
364
|
})
|
|
365
365
|
}, Ge({ _: 2 }, [
|
|
366
366
|
a.$slots.optionPdf ? {
|
|
@@ -380,14 +380,14 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
380
380
|
a.$slots.optionFullscreen ? {
|
|
381
381
|
name: "optionFullscreen",
|
|
382
382
|
fn: X(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
383
|
-
w(a.$slots, "optionFullscreen",
|
|
383
|
+
w(a.$slots, "optionFullscreen", D(B({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
384
384
|
]),
|
|
385
385
|
key: "2"
|
|
386
386
|
} : void 0,
|
|
387
387
|
a.$slots.optionAnnotator ? {
|
|
388
388
|
name: "optionAnnotator",
|
|
389
389
|
fn: X(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
390
|
-
w(a.$slots, "optionAnnotator",
|
|
390
|
+
w(a.$slots, "optionAnnotator", D(B({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
391
391
|
]),
|
|
392
392
|
key: "3"
|
|
393
393
|
} : void 0
|
|
@@ -397,7 +397,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
397
397
|
xmlns: i(Be),
|
|
398
398
|
class: pe({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
399
399
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
400
|
-
style:
|
|
400
|
+
style: L(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
401
401
|
}, [
|
|
402
402
|
Ee(et),
|
|
403
403
|
p("defs", null, [
|
|
@@ -411,15 +411,15 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
411
411
|
}, [
|
|
412
412
|
p("stop", {
|
|
413
413
|
offset: "0%",
|
|
414
|
-
"stop-color": i(
|
|
414
|
+
"stop-color": i(q)("#FFFFFF", 1)
|
|
415
415
|
}, null, 8, nt),
|
|
416
416
|
p("stop", {
|
|
417
417
|
offset: "80%",
|
|
418
|
-
"stop-color": i(
|
|
418
|
+
"stop-color": i(q)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
419
419
|
}, null, 8, it),
|
|
420
420
|
p("stop", {
|
|
421
421
|
offset: "100%",
|
|
422
|
-
"stop-color": i(
|
|
422
|
+
"stop-color": i(q)("#FFFFFF", 1)
|
|
423
423
|
}, null, 8, ct)
|
|
424
424
|
], 8, ut)
|
|
425
425
|
]),
|
|
@@ -458,7 +458,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
458
458
|
}, [
|
|
459
459
|
p("textPath", {
|
|
460
460
|
href: `#curve_${_.value}_${r}`,
|
|
461
|
-
startOffset:
|
|
461
|
+
startOffset: Oe.value[r]
|
|
462
462
|
}, C(t.name || ""), 9, mt)
|
|
463
463
|
], 8, ft))), 256))
|
|
464
464
|
], 64)) : h("", !0),
|
|
@@ -470,7 +470,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
470
470
|
"font-size": l.value.segmentFontSize,
|
|
471
471
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
472
472
|
}, C(t.name || ""), 9, pt))), 256)) : h("", !0),
|
|
473
|
-
e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 2 }, S(
|
|
473
|
+
e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 2 }, S(Me.value, (t, r) => (o(), u("path", {
|
|
474
474
|
key: `arc_${r}`,
|
|
475
475
|
d: t.arcSlice,
|
|
476
476
|
fill: "#FFFFFF",
|
|
@@ -520,10 +520,10 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
520
520
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
521
521
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
522
522
|
fill: e.value.style.chart.layout.markers.color
|
|
523
|
-
}, C(i(
|
|
523
|
+
}, C(i(H)(
|
|
524
524
|
e.value.style.chart.layout.markers.formatter,
|
|
525
525
|
t.from,
|
|
526
|
-
i(
|
|
526
|
+
i(Z)({
|
|
527
527
|
p: e.value.style.chart.layout.markers.prefix,
|
|
528
528
|
v: t.from,
|
|
529
529
|
s: e.value.style.chart.layout.markers.suffix,
|
|
@@ -551,12 +551,12 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
551
551
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
552
552
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
553
553
|
fill: e.value.style.chart.layout.markers.color
|
|
554
|
-
}, C(i(
|
|
554
|
+
}, C(i(H)(
|
|
555
555
|
e.value.style.chart.layout.markers.formatter,
|
|
556
|
-
|
|
557
|
-
i(
|
|
556
|
+
M.value,
|
|
557
|
+
i(Z)({
|
|
558
558
|
p: e.value.style.chart.layout.markers.prefix,
|
|
559
|
-
v:
|
|
559
|
+
v: M.value,
|
|
560
560
|
s: e.value.style.chart.layout.markers.suffix,
|
|
561
561
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
562
562
|
})
|
|
@@ -578,7 +578,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
578
578
|
y1: n.value.y1,
|
|
579
579
|
x2: n.value.x2,
|
|
580
580
|
y2: n.value.y2,
|
|
581
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
581
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
|
|
582
582
|
"stroke-linecap": "round",
|
|
583
583
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
584
584
|
}, null, 8, Ct)),
|
|
@@ -592,12 +592,12 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
592
592
|
"stroke-linecap": "round",
|
|
593
593
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
594
594
|
filter: `url(#blur_${_.value})`
|
|
595
|
-
}, null, 8,
|
|
596
|
-
])) : (o(), u("g",
|
|
595
|
+
}, null, 8, Ot)) : h("", !0)
|
|
596
|
+
])) : (o(), u("g", Mt, [
|
|
597
597
|
ve.value ? (o(), u("path", {
|
|
598
598
|
key: 0,
|
|
599
599
|
d: ve.value,
|
|
600
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
600
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
|
|
601
601
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
602
602
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
603
603
|
"stroke-linejoin": "round"
|
|
@@ -618,11 +618,11 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
618
618
|
"text-anchor": "middle",
|
|
619
619
|
"font-size": l.value.legendFontSize,
|
|
620
620
|
"font-weight": "bold",
|
|
621
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
622
|
-
}, C(i(
|
|
621
|
+
fill: e.value.style.chart.legend.useRatingColor ? T.value : e.value.style.chart.legend.color
|
|
622
|
+
}, C(i(H)(
|
|
623
623
|
e.value.style.chart.legend.formatter,
|
|
624
624
|
f.value,
|
|
625
|
-
i(
|
|
625
|
+
i(Z)({
|
|
626
626
|
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
|
|
627
627
|
v: f.value,
|
|
628
628
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -632,7 +632,7 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
632
632
|
w(a.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
633
633
|
], 14, ot)) : h("", !0),
|
|
634
634
|
a.$slots.watermark ? (o(), u("div", Yt, [
|
|
635
|
-
w(a.$slots, "watermark",
|
|
635
|
+
w(a.$slots, "watermark", D(B({ isPrinting: i(ue) || i(ne) })), void 0, !0)
|
|
636
636
|
])) : h("", !0),
|
|
637
637
|
Y.value ? h("", !0) : (o(), R(Ke, {
|
|
638
638
|
key: 6,
|
|
@@ -648,21 +648,21 @@ const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt =
|
|
|
648
648
|
}, null, 8, ["config"])),
|
|
649
649
|
p("div", {
|
|
650
650
|
ref_key: "chartLegend",
|
|
651
|
-
ref:
|
|
651
|
+
ref: ee
|
|
652
652
|
}, [
|
|
653
653
|
w(a.$slots, "legend", { legend: $.value }, void 0, !0)
|
|
654
654
|
], 512),
|
|
655
655
|
a.$slots.source ? (o(), u("div", {
|
|
656
656
|
key: 7,
|
|
657
657
|
ref_key: "source",
|
|
658
|
-
ref:
|
|
658
|
+
ref: te,
|
|
659
659
|
dir: "auto"
|
|
660
660
|
}, [
|
|
661
661
|
w(a.$slots, "source", {}, void 0, !0)
|
|
662
662
|
], 512)) : h("", !0)
|
|
663
663
|
], 46, st));
|
|
664
664
|
}
|
|
665
|
-
}, Vt = /* @__PURE__ */ lt(It, [["__scopeId", "data-v-
|
|
665
|
+
}, Vt = /* @__PURE__ */ lt(It, [["__scopeId", "data-v-8de26327"]]);
|
|
666
666
|
export {
|
|
667
667
|
Vt as default
|
|
668
668
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-C3wsuQ2C.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-Dglf1bsw.cjs"),ve=require("./vue-ui-skeleton-99lBQ_mF.cjs"),de=require("./Title-CSyDhu3S.cjs"),Z=require("./useNestedProp-CFwQtnNB.cjs"),he=require("./PackageVersion-CeJ2R9gK.cjs"),me=require("./PenAndPaper-DQPbe0G_.cjs"),fe=require("./useUserOptionState-BgepsfED.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],ke={key:0},ge=["xmlns","viewBox"],be=["id"],xe=["stop-color"],Se=["stop-color"],_e=["stop-color"],Be=["id"],we=["stdDeviation"],Ce=["d","fill","stroke"],Ne=["id","d"],Fe=["fill","font-size","font-weight"],ze=["href","startOffset"],Pe=["x","y","text-anchor","fill","font-size","font-weight"],Ee=["d","filter"],$e=["stroke","stroke-width"],Oe=["stroke","stroke-width"],Me=["stroke","stroke-width"],Ve=["stroke","stroke-width"],Xe={key:4},Ye=["x","y","text-anchor","font-size","font-weight","fill"],Ie=["x","y","font-size","font-weight","fill"],Ae={key:6},Re=["x1","y1","x2","y2","stroke","stroke-width"],Le=["x1","y1","x2","y2","stroke","stroke-width"],De=["x1","y1","x2","y2","stroke-width","filter"],Ge={key:7},qe=["d","fill","stroke","stroke-width"],Te=["cx","cy","fill","r","stroke-width","stroke"],Ue=["x","y","font-size","fill"],je={key:5,class:"vue-data-ui-watermark"},We={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=n.useConfig(),_=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),y=e.ref(n.createUid()),Q=e.ref(null),P=e.ref(0),g=e.ref(null),E=e.ref(null),$=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>I(),set:o=>o}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:Y}=fe.useUserOptionState({config:t.value});e.watch(()=>c.config,o=>{t.value=I(),N.value=!t.value.showOnChartHover,q(),V.value+=1},{deep:!0});function I(){const o=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return o.theme?{...Z.useNestedProp({userConfig:n.themes.vue_ui_gauge[o.theme]||c.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const{isPrinting:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!_.value||n.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const o=[];(c.dataset.series||[]).forEach(a=>{o.push(a.from||1e-7),o.push(a.to||1e-7)});const r=Math.max(...o);return{...c.dataset,series:(c.dataset.series||[]).map((a,s)=>({...a,color:n.convertColorToHex(a.color)||te.value[s]||n.palette[s],value:((a.to||0)-(a.from||0))/r*100}))}}),h=e.ref(512),l=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),x=e.ref(0),v=e.ref(t.value.style.chart.animation.use?0:c.dataset.value);e.watch(()=>c.dataset.value,()=>{T(c.dataset.value)});const u=e.computed(()=>{const o=l.value.width/2,r=i.value.base,a=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI;return{x1:o,y1:r,x2:o+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(a),y2:r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(a)}}),G=e.computed(()=>{const o=l.value.width/2,r=i.value.base,a=Math.PI*((v.value+0-x.value)/(b.value-x.value))+Math.PI,s=o+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(a),m=r+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(a),f=l.value.pointerRadius,se=o+f*Math.cos(a+Math.PI/2),ue=r+f*Math.sin(a+Math.PI/2),ie=o+f*Math.cos(a-Math.PI/2),ce=r+f*Math.sin(a-Math.PI/2);return isNaN(s)?null:`M ${s},${m} ${se},${ue} ${ie},${ce} Z`}),F=e.computed(()=>{for(let o=0;o<p.value.series.length;o+=1){const{color:r,from:a,to:s}=p.value.series[o];if(v.value>=a&&v.value<=s)return r}return"#2D353C"}),B=e.ref(null);function q(){if(n.objectIsEmpty(c.dataset)?n.error({componentName:"VueUiGauge",type:"dataset"}):(n.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(o=>{n.error({componentName:"VueUiGauge",type:"datasetAttribute",property:o})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((o,r)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["from","to"]}).forEach(a=>{n.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:a,index:r})})}):n.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),T(c.dataset.value||0),t.value.responsive){const o=W.throttle(()=>{const{width:r,height:a}=W.useResponsive({chart:g.value,title:t.value.style.chart.title.text?E.value:null,legend:$.value,source:O.value,noTitle:M.value});l.value.width=r,l.value.height=a,l.value.centerX=r/2,l.value.centerY=h.value/2/358.4*a,l.value.bottom=a,l.value.labelFontSize=18/h.value*Math.min(a,r)<10?10:18/h.value*Math.min(a,r),l.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(a,r)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(a,r),l.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(a,r),l.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(a,r),l.value.pointerStrokeWidth=n.translateSize({relator:Math.min(r,a),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),l.value.markerOffset=n.translateSize({relator:Math.max(r,a),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),l.value.segmentFontSize=n.translateSize({relator:Math.min(r,a),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})});B.value=new ResizeObserver(o),B.value.observe(g.value.parentNode)}}e.onMounted(()=>{q()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});function T(o){const r=[];(p.value.series||[]).forEach(f=>{r.push(f.from||0),r.push(f.to||0)}),b.value=Math.max(...r),x.value=Math.min(...r);let a=t.value.style.chart.animation.speed;const s=Math.abs(o-v.value)/(a*60);function m(){v.value<o?v.value=Math.min(v.value+s,o):v.value>o&&(v.value=Math.max(v.value-s,o)),v.value!==o&&requestAnimationFrame(m)}m()}const i=e.computed(()=>{const o=t.value.responsive?Math.min(l.value.width,l.value.height):l.value.width,r=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:o/r,gradients:o/(r*1.1),base:t.value.responsive?l.value.height/2:l.value.height*.7,ratingBase:t.value.responsive?l.value.height/2+l.value.height/4:l.value.height*.9,pointerSize:t.value.responsive?Math.min(l.value.width,l.value.height)/3:l.value.width/3.2}}),d=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*l.value.trackSize)),ae=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*l.value.trackSize)),k=e.computed(()=>d.value.map(o=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(o.nameOffsetRatio||1))),U=e.computed(()=>{const{x:o,y:r}=n.offsetFromCenterPoint({initX:d.value[0].firstSeparator.x,initY:d.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:a,y:s}=n.offsetFromCenterPoint({initX:d.value[0].startX,initY:d.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:o,y1:r,x2:a,y2:s}}),j=e.computed(()=>d.value.map(o=>{const{x:r,y:a}=n.offsetFromCenterPoint({initX:o.separator.x,initY:o.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:s,y:m}=n.offsetFromCenterPoint({initX:o.endX,initY:o.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:r,y1:a,x2:s,y2:m}}));function oe(o){if(o.reduce((m,f)=>m+f,0)>100)throw new Error("Total % must not exceed 100");const a=50;let s=0;return o.map(m=>(s+=m,`${s/100*a-m/4}%`))}const le=e.computed(()=>oe(d.value.map(o=>o.proportion*100))),re=e.computed(()=>n.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*l.value.trackSize)),S=e.ref(!1);function ne(o){S.value=o,P.value+=1}const w=e.ref(!1);function z(){w.value=!w.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:z}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${S.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:g,id:`vue-ui-gauge_${y.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(X)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(me.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:E,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(Y)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${P.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(A),uid:y.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:z,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:s})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:s})),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),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${y.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,xe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)("#FFFFFF",1)},null,8,_e)],8,be)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,we)],8,Be)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:a.arcSlice,fill:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ce))),128)),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,s)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${y.value}_${s}`,d:`M ${u.value.x1},${u.value.y1} m -${k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 ${2*k.value[s]},0 a ${k.value[s]},${k.value[s]} 0 1,1 -${2*k.value[s]},0`,fill:"transparent"},null,8,Ne))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${y.value}_${s}`,startOffset:le.value[s]},e.toDisplayString(a.name||""),9,ze)],8,Fe))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(ae.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:a.center.endX,y:a.center.endY,"text-anchor":e.unref(n.calcMarkerOffsetX)(a,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(a.name||""),9,Pe))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(re.value,(a,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:a.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${y.value})`},null,8,Ee))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("line",e.mergeProps(U.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,$e),e.createElementVNode("line",e.mergeProps(U.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Oe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,a=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(a,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,a=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(a,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Ve))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:a.center.startX,initY:a.center.startY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:a.center.startX,initY:a.center.startY,offset:l.value.markerOffset}).y,"text-anchor":a.center.startX<u.value.x1-5?"end":a.center.startX>u.value.x1+5?"start":"middle","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,a.from,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:a.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ye))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:5,x:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).x,y:e.unref(n.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:l.value.markerOffset}).y,"text-anchor":"start","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ie)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Ae,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":l.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Re)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.7},null,8,Le)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.3,filter:`url(#blur_${y.value})`},null,8,De)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Ge,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,qe)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:l.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:l.value.pointerRadius<=0?1e-4:l.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Te),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:8,x:l.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":l.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Ue)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:l.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:$},[e.renderSlot(o.$slots,"legend",{legend:p.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,pe))}},He=ye._export_sfc(We,[["__scopeId","data-v-8de26327"]]);exports.default=He;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-C3wsuQ2C.cjs"),m=require("./useNestedProp-CFwQtnNB.cjs"),_=require("./PackageVersion-CeJ2R9gK.cjs"),k=["viewBox","width"],p={key:0},g=["id"],v=["stop-color"],y=["stop-color"],N=["stroke"],C=["stroke"],V=["width","fill"],w=["fill"],x={key:0},B=["id"],E=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),b=[E],L=["stroke"],z=["stroke","stroke-dasharray","stroke-dashoffset"],G=["filter"],F=["stroke","stroke-dasharray","stroke-dashoffset"],P=["fill"],$={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const o=i,{vue_ui_gizmo:f}=a.useConfig(),n=e.ref(a.createUid());e.onMounted(()=>{c()});function c(){!o.dataset&&o.dataset!==0&&a.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:r=>r});function d(){return m.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,r=>{t.value=d(),c()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,h=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:h}});return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",p,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,v),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,y)],8,g)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,N),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,C),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(i.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,V),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,w)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",x,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},b,8,B)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,L),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,z),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,F)],8,G)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,P)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,k))}};exports.default=$;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as x, onMounted as C, computed as c, watch as z, openBlock as a, createElementBlock as s, normalizeStyle as G, createVNode as L, createElementVNode as t, createCommentVNode as r, Fragment as g, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as b, c as N, e as $, i as p, f as m } from "./index-
|
|
3
|
-
import { u as F } from "./useNestedProp-
|
|
4
|
-
import { _ as B } from "./PackageVersion-
|
|
2
|
+
import { u as b, c as N, e as $, i as p, f as m } from "./index-DhxnZ6ZS.js";
|
|
3
|
+
import { u as F } from "./useNestedProp-BcqToEU0.js";
|
|
4
|
+
import { _ as B } from "./PackageVersion-Ve0s76sL.js";
|
|
5
5
|
const P = ["viewBox", "width"], V = { key: 0 }, D = ["id"], I = ["stop-color"], M = ["stop-color"], U = ["stroke"], E = ["stroke"], O = ["width", "fill"], S = ["fill"], A = { key: 0 }, j = ["id"], T = /* @__PURE__ */ t("feGaussianBlur", {
|
|
6
6
|
in: "SourceGraphic",
|
|
7
7
|
stdDeviation: 1
|