vue-data-ui 2.4.44 → 2.4.46
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-DabU4Tq7.js → Arrow-CfjJrWHe.js} +1 -1
- package/dist/{Arrow-D7FfpPjv.cjs → Arrow-iQXl1f2j.cjs} +1 -1
- package/dist/{BaseIcon-DgOZGFA6.js → BaseIcon-BA9HUUaA.js} +1 -1
- package/dist/{BaseIcon-vmPfwVXS.cjs → BaseIcon-Cy5dUKeV.cjs} +1 -1
- package/dist/{DataTable-WzoXT7XP.cjs → DataTable-Cj3bRKxc.cjs} +1 -1
- package/dist/{DataTable-ByILXTgq.js → DataTable-CoZ6Xn0I.js} +2 -2
- package/dist/{Legend-eRHr8IFu.cjs → Legend-CEDlovx8.cjs} +1 -1
- package/dist/{Legend-CJAbBncx.js → Legend-DJlRifH8.js} +1 -1
- package/dist/{PackageVersion-DylCZJMA.cjs → PackageVersion-DL3c2r_c.cjs} +1 -1
- package/dist/{PackageVersion-2fR7Awu1.js → PackageVersion-TpOTCEFd.js} +1 -1
- package/dist/{PenAndPaper-2aIJsXNH.cjs → PenAndPaper-DgVnjC40.cjs} +1 -1
- package/dist/{PenAndPaper-wVL9QD9U.js → PenAndPaper-cjAU-PUf.js} +3 -3
- package/dist/{Shape-JMJZs7By.js → Shape--6BralbW.js} +1 -1
- package/dist/{Shape-nGoGILeB.cjs → Shape-DYtj-lqw.cjs} +1 -1
- package/dist/{Slicer-Ce0VzdTY.js → Slicer-6DPtWIL0.js} +2 -2
- package/dist/{Slicer-BLuFaL8r.cjs → Slicer-dbxY46t5.cjs} +1 -1
- package/dist/{Title-Dj5wajqV.js → Title-BavNfnuK.js} +1 -1
- package/dist/{Title-CtfsoH8U.cjs → Title-a1zU7S4D.cjs} +1 -1
- package/dist/{Tooltip-6D9aABEX.cjs → Tooltip-BBmtXJ3a.cjs} +1 -1
- package/dist/{Tooltip-Zrcwpy3T.js → Tooltip-CK5rPyXN.js} +1 -1
- package/dist/{index-D3_dyp9t.js → index-D6Fux0KL.js} +120 -109
- package/dist/index-DQqE9z_u.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -0
- package/dist/types/vue-data-ui.d.ts +12 -0
- package/dist/{useNestedProp-qwG6HgrL.js → useNestedProp-CcZBkd4B.js} +1 -1
- package/dist/{useNestedProp-C8Y0yWDq.cjs → useNestedProp-DqEFKuPz.cjs} +1 -1
- package/dist/{usePrinter-Cw4E_LYe.cjs → usePrinter-1s8-9A7g.cjs} +1 -1
- package/dist/{usePrinter-41NUZdgl.js → usePrinter-BfVNshkJ.js} +1 -1
- package/dist/{vue-data-ui-CKlgRX2w.js → vue-data-ui-BZHviOU-.js} +60 -60
- package/dist/{vue-data-ui-DPujYnT2.cjs → vue-data-ui-nyvnXOBP.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-CURLeBAg.cjs → vue-ui-3d-bar-Amvwu6fD.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DFqYSjKF.js → vue-ui-3d-bar-BAYRAgaW.js} +9 -9
- package/dist/{vue-ui-accordion-zOz2K8wY.cjs → vue-ui-accordion-CNQ8JBuy.cjs} +1 -1
- package/dist/{vue-ui-accordion-DbKFz7vP.js → vue-ui-accordion-CyCBwLDa.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DVjZHG-c.js → vue-ui-age-pyramid-BWg8L30G.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BzwQxubx.cjs → vue-ui-age-pyramid-Dx-k5K7o.cjs} +1 -1
- package/dist/{vue-ui-annotator-CU8bDkP0.cjs → vue-ui-annotator-Bj3j-VvQ.cjs} +1 -1
- package/dist/{vue-ui-annotator-ZDqHg-kV.js → vue-ui-annotator-Drlh2nsy.js} +1 -1
- package/dist/{vue-ui-bullet-BaQJ3acV.js → vue-ui-bullet-CskzW_No.js} +8 -8
- package/dist/{vue-ui-bullet-Dt0Ki37L.cjs → vue-ui-bullet-KJKcyE57.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C5Pzu7U1.js → vue-ui-candlestick-9ARbLuQr.js} +11 -11
- package/dist/{vue-ui-candlestick-CMubhqre.cjs → vue-ui-candlestick-Bcem-LL5.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CPE1nggj.js → vue-ui-carousel-table-BgabRnN7.js} +4 -4
- package/dist/{vue-ui-carousel-table-CL6njZH4.cjs → vue-ui-carousel-table-CCzXqrOD.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B7zSDFfA.js → vue-ui-chestnut-B7q0vmXj.js} +8 -8
- package/dist/{vue-ui-chestnut-DHF2jlte.cjs → vue-ui-chestnut-BEKG7vJs.cjs} +1 -1
- package/dist/{vue-ui-cursor-GKguDqwJ.js → vue-ui-cursor-BW6KFYih.js} +2 -2
- package/dist/{vue-ui-cursor-PG2njvGA.cjs → vue-ui-cursor-gRV29a6z.cjs} +1 -1
- package/dist/{vue-ui-dashboard-u_haUFHY.js → vue-ui-dashboard-B1GgQpTW.js} +2 -2
- package/dist/{vue-ui-dashboard-D2w_aK31.cjs → vue-ui-dashboard-BU3gco0W.cjs} +1 -1
- package/dist/{vue-ui-digits-DQetGFnZ.cjs → vue-ui-digits-B-de-AoF.cjs} +1 -1
- package/dist/{vue-ui-digits-DjMZxTuZ.js → vue-ui-digits-pTJfyk6w.js} +2 -2
- package/dist/{vue-ui-donut-CmRH-JB2.js → vue-ui-donut-3zJvxMAI.js} +11 -11
- package/dist/{vue-ui-donut-DQcISN6U.cjs → vue-ui-donut-CV4QfMM6.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-XrPuyr-U.cjs → vue-ui-donut-evolution-CHmMquL3.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-YntzBUIL.js → vue-ui-donut-evolution-DwWDUev5.js} +11 -11
- package/dist/{vue-ui-dumbbell-DmgUkc9m.js → vue-ui-dumbbell-BupMAioY.js} +10 -10
- package/dist/{vue-ui-dumbbell-CCwYiUwP.cjs → vue-ui-dumbbell-CwKisd1V.cjs} +1 -1
- package/dist/{vue-ui-flow-Ca2cA45D.cjs → vue-ui-flow-DjaSPlMc.cjs} +1 -1
- package/dist/{vue-ui-flow-CZkXzt4D.js → vue-ui-flow-Gio5LZfS.js} +9 -9
- package/dist/{vue-ui-funnel-z2OgL3Q1.js → vue-ui-funnel-B20LEzYC.js} +8 -8
- package/dist/{vue-ui-funnel-CJAT8_1R.cjs → vue-ui-funnel-CqcM5pkO.cjs} +1 -1
- package/dist/{vue-ui-galaxy-bgA3s7VZ.cjs → vue-ui-galaxy-B6LzA_6c.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CGhDJ3tA.js → vue-ui-galaxy-BlqZ7ul1.js} +11 -11
- package/dist/vue-ui-gauge-C5OATvE7.cjs +1 -0
- package/dist/vue-ui-gauge-C6-5yI2V.js +610 -0
- package/dist/{vue-ui-gizmo-DBIefin8.cjs → vue-ui-gizmo-CLNN3Udr.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bq56LDKo.js → vue-ui-gizmo-CsyW__L-.js} +3 -3
- package/dist/{vue-ui-heatmap-C0NUwPN7.cjs → vue-ui-heatmap-DLJKnqc8.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dbrlismo.js → vue-ui-heatmap-DlyP8IiX.js} +10 -10
- package/dist/{vue-ui-history-plot-CMAu0w0K.js → vue-ui-history-plot-BcxMCSa5.js} +11 -11
- package/dist/{vue-ui-history-plot-Cd0Qgkox.cjs → vue-ui-history-plot-DGFH-CY8.cjs} +1 -1
- package/dist/{vue-ui-kpi-CkRUVNcg.js → vue-ui-kpi-BL3vZgx7.js} +3 -3
- package/dist/{vue-ui-kpi-C1a3ONse.cjs → vue-ui-kpi-pnZp2CvF.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DZ1q-GO6.cjs → vue-ui-mini-loader-BNKPERuk.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BVvBbruK.js → vue-ui-mini-loader-BwmbFCFV.js} +2 -2
- package/dist/{vue-ui-molecule-DlXNe42L.js → vue-ui-molecule-BbpCIJe5.js} +11 -11
- package/dist/{vue-ui-molecule-C-tmrnHA.cjs → vue-ui-molecule-CZ6KhD_5.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DYXE1dDD.cjs → vue-ui-mood-radar-9ShpSF_Q.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DzHvFqno.js → vue-ui-mood-radar-DQ-UPdoZ.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BpcKwKFO.cjs → vue-ui-nested-donuts-4-Y7Vn9p.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DDpYr89I.js → vue-ui-nested-donuts-B0RhrWpS.js} +11 -11
- package/dist/{vue-ui-onion-_WXwSygI.cjs → vue-ui-onion-DzLCbEcB.cjs} +1 -1
- package/dist/{vue-ui-onion-B9CAGc1E.js → vue-ui-onion-kMrmbJZm.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs → vue-ui-parallel-coordinate-plot-BGfy-8GQ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CdvYxx2S.js → vue-ui-parallel-coordinate-plot-CdWo856d.js} +12 -12
- package/dist/{vue-ui-quadrant-CILC-e-o.js → vue-ui-quadrant-D3OhIIfq.js} +12 -12
- package/dist/{vue-ui-quadrant-ivKVYVXn.cjs → vue-ui-quadrant-D8HGb-Gb.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-NIE0zUjt.js → vue-ui-quick-chart-BWwbRuD2.js} +9 -9
- package/dist/{vue-ui-quick-chart-DW3XlvkG.cjs → vue-ui-quick-chart-BqJpkpjf.cjs} +1 -1
- package/dist/{vue-ui-radar-BonXp2ML.js → vue-ui-radar-BsAiDMi7.js} +12 -12
- package/dist/{vue-ui-radar-D9WtkmKW.cjs → vue-ui-radar-Ds66K46C.cjs} +1 -1
- package/dist/{vue-ui-rating-DblWs0Ay.js → vue-ui-rating-CcyKPjmP.js} +2 -2
- package/dist/{vue-ui-rating-3akEkZ0G.cjs → vue-ui-rating-ClQjIZ78.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Bv5QA1FA.cjs → vue-ui-relation-circle-DI24q9Zq.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BaPqJcbF.js → vue-ui-relation-circle-eOtVdQOL.js} +7 -7
- package/dist/{vue-ui-rings-DHa-dc3s.js → vue-ui-rings-9f1E8ktr.js} +11 -11
- package/dist/{vue-ui-rings-KRi0yCa1.cjs → vue-ui-rings-GJ-RllpC.cjs} +1 -1
- package/dist/{vue-ui-scatter-C-0G6tO_.cjs → vue-ui-scatter-B7Tm9kTK.cjs} +1 -1
- package/dist/{vue-ui-scatter-CKnKyeDJ.js → vue-ui-scatter-DjOO4sai.js} +12 -12
- package/dist/{vue-ui-screenshot-BIvS3Dva.cjs → vue-ui-screenshot-DQd-yU3g.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BnQlv1n0.js → vue-ui-screenshot-k2mC030r.js} +1 -1
- package/dist/{vue-ui-skeleton-urNi7er0.cjs → vue-ui-skeleton-DYKuE1ZW.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CaV7JuCg.js → vue-ui-skeleton-wHDgl1XV.js} +3 -3
- package/dist/{vue-ui-smiley-BkKHZRcE.js → vue-ui-smiley-C02LWJwt.js} +2 -2
- package/dist/{vue-ui-smiley-BDJWFNUb.cjs → vue-ui-smiley-Cds8LoUR.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Jrg-tgH_.cjs → vue-ui-spark-trend-5uxFq2pM.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C6B6URVX.js → vue-ui-spark-trend-D0shfbAA.js} +5 -5
- package/dist/{vue-ui-sparkbar-CcPXRX01.cjs → vue-ui-sparkbar-CGH0sUyT.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D7A9EKVi.js → vue-ui-sparkbar-DmPdCxF5.js} +4 -4
- package/dist/{vue-ui-sparkgauge-ZQOdaaF1.cjs → vue-ui-sparkgauge-BfyVKfCr.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-C1kcwrm9.js → vue-ui-sparkgauge-CqJz8p6J.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CZQzNQHQ.cjs → vue-ui-sparkhistogram-B-PxzLAe.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DkMaK9FC.js → vue-ui-sparkhistogram-vJBW3am7.js} +5 -5
- package/dist/{vue-ui-sparkline-JNv27Q7M.js → vue-ui-sparkline-BoHbGcLX.js} +4 -4
- package/dist/{vue-ui-sparkline-DuJlR_56.cjs → vue-ui-sparkline-D_RzcAKQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-4YKk6S2y.js → vue-ui-sparkstackbar-C6lyJ3Yf.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BStYMSiJ.cjs → vue-ui-sparkstackbar-DOqRrV5Q.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BrBToOgd.js → vue-ui-stackbar-Drzs1Eyl.js} +12 -12
- package/dist/{vue-ui-stackbar-BKhScZJ4.cjs → vue-ui-stackbar-aGhn0Cot.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BB9AjuXc.js → vue-ui-strip-plot-D1OnXpSS.js} +11 -11
- package/dist/{vue-ui-strip-plot-BSbIVJLB.cjs → vue-ui-strip-plot-VyISwa5R.cjs} +1 -1
- package/dist/{vue-ui-table-CTwEo09l.cjs → vue-ui-table-DLPofj0y.cjs} +1 -1
- package/dist/{vue-ui-table-BkfBNufP.js → vue-ui-table-H2AWSu1t.js} +1 -1
- package/dist/{vue-ui-table-heatmap-t6NXIulS.js → vue-ui-table-heatmap-D2Yub14q.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BRa-idSR.cjs → vue-ui-table-heatmap-wvpaD4ir.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CtVdHOeS.js → vue-ui-table-sparkline-DUTGELZ3.js} +5 -5
- package/dist/{vue-ui-table-sparkline-LRvAe8DG.cjs → vue-ui-table-sparkline-Doj1Qy-g.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Bkj9olK0.cjs → vue-ui-thermometer-B-0y1mlR.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dqy_A9Ka.js → vue-ui-thermometer-yoXfkNqw.js} +7 -7
- package/dist/{vue-ui-timer-C2WYUfS1.cjs → vue-ui-timer-BmdGu2OH.cjs} +1 -1
- package/dist/{vue-ui-timer-BkWR-FS3.js → vue-ui-timer-CrmRh82y.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dl881FpL.js → vue-ui-tiremarks--dQqSUAB.js} +7 -7
- package/dist/{vue-ui-tiremarks-BXumbUyZ.cjs → vue-ui-tiremarks-BTKsqFx9.cjs} +1 -1
- package/dist/{vue-ui-treemap-CvNWsOoE.cjs → vue-ui-treemap-CoHv7WB0.cjs} +1 -1
- package/dist/{vue-ui-treemap-Vl47y-4n.js → vue-ui-treemap-xf0R6iJv.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BzkqxE45.js → vue-ui-vertical-bar-CgyxeziQ.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D1EoKlII.cjs → vue-ui-vertical-bar-DkEKT7jg.cjs} +1 -1
- package/dist/{vue-ui-waffle-Bd4Wn4LE.js → vue-ui-waffle-BsWXzCto.js} +11 -11
- package/dist/{vue-ui-waffle-C6cN0uw8.cjs → vue-ui-waffle-CkwF305q.cjs} +1 -1
- package/dist/{vue-ui-wheel-D1SsLAru.js → vue-ui-wheel-BDG6vuLJ.js} +7 -7
- package/dist/{vue-ui-wheel-OGoTipOg.cjs → vue-ui-wheel-OyKC9U09.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-C6vq-XKZ.js → vue-ui-word-cloud-D-bzY5ks.js} +10 -10
- package/dist/{vue-ui-word-cloud-Da4dHp_U.cjs → vue-ui-word-cloud-NJ7fgwoa.cjs} +1 -1
- package/dist/{vue-ui-xy-Bbih4XkZ.js → vue-ui-xy-BRVzv2LA.js} +14 -14
- package/dist/{vue-ui-xy-DXLSyett.cjs → vue-ui-xy-ClUJG6UI.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-GffgFKCU.cjs → vue-ui-xy-canvas-CH-U7nNa.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-Dtv9a_jF.js → vue-ui-xy-canvas-CvLYBiAC.js} +11 -11
- package/package.json +1 -1
- package/dist/index-ZAR4YEAn.cjs +0 -9
- package/dist/vue-ui-gauge-F-bvIFfG.cjs +0 -1
- package/dist/vue-ui-gauge-NtnSEvX5.js +0 -557
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
import { computed as y, ref as d, watch as ie, onMounted as Pe, onBeforeUnmount as Ne, openBlock as r, createElementBlock as u, normalizeClass as ce, normalizeStyle as ve, createBlock as R, createCommentVNode as v, withCtx as O, toDisplayString as z, unref as i, createSlots as Oe, renderSlot as x, normalizeProps as L, guardReactiveProps as D, createVNode as Ie, createElementVNode as g, Fragment as $, renderList as F } from "vue";
|
|
2
|
+
import { u as Xe, c as Ae, t as Re, a as Ye, p as he, b as Ge, o as de, d as Ee, e as Y, g as fe, m as U, X as Te, s as B, k as je, I as G, i as W, f as V, F as q } from "./index-D6Fux0KL.js";
|
|
3
|
+
import { t as Le, u as De } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { u as Ue, U as Be } from "./usePrinter-BfVNshkJ.js";
|
|
5
|
+
import We from "./vue-ui-skeleton-wHDgl1XV.js";
|
|
6
|
+
import { _ as Ve } from "./Title-BavNfnuK.js";
|
|
7
|
+
import { u as ye } from "./useNestedProp-CcZBkd4B.js";
|
|
8
|
+
import { _ as qe } from "./PackageVersion-TpOTCEFd.js";
|
|
9
|
+
import { P as He } from "./PenAndPaper-cjAU-PUf.js";
|
|
10
|
+
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Je = ["id"], Ke = { key: 0 }, Qe = ["xmlns", "viewBox"], et = ["id"], tt = ["stop-color"], at = ["stop-color"], lt = ["stop-color"], ot = ["id"], st = ["stdDeviation"], rt = ["d", "fill", "stroke"], ut = ["id", "d"], nt = ["fill", "font-size", "font-weight"], it = ["href", "startOffset"], ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], vt = ["d", "filter"], ht = { key: 3 }, dt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], ft = ["x", "y", "font-size", "font-weight", "fill"], yt = { key: 5 }, mt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], kt = { key: 6 }, bt = ["d", "fill", "stroke", "stroke-width"], _t = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], xt = ["x", "y", "font-size", "fill"], wt = {
|
|
12
|
+
key: 5,
|
|
13
|
+
class: "vue-data-ui-watermark"
|
|
14
|
+
}, St = {
|
|
15
|
+
__name: "vue-ui-gauge",
|
|
16
|
+
props: {
|
|
17
|
+
config: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default() {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
dataset: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default() {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(E, { expose: me }) {
|
|
31
|
+
const c = E, { vue_ui_gauge: ge } = Xe(), I = y(() => !!c.dataset && Object.keys(c.dataset).length > 0 && c.dataset.series && c.dataset.series.length), b = d(Ae()), pe = d(null), H = d(0), C = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), e = y({
|
|
32
|
+
get: () => te(),
|
|
33
|
+
set: (t) => t
|
|
34
|
+
});
|
|
35
|
+
ie(() => c.config, (t) => {
|
|
36
|
+
e.value = te(), ue(), ee.value += 1;
|
|
37
|
+
}, { deep: !0 });
|
|
38
|
+
function te() {
|
|
39
|
+
const t = ye({
|
|
40
|
+
userConfig: c.config,
|
|
41
|
+
defaultConfig: ge
|
|
42
|
+
});
|
|
43
|
+
return t.theme ? {
|
|
44
|
+
...ye({
|
|
45
|
+
userConfig: Re.vue_ui_gauge[t.theme] || c.config,
|
|
46
|
+
defaultConfig: t
|
|
47
|
+
}),
|
|
48
|
+
customPalette: Ye[t.theme] || he
|
|
49
|
+
} : t;
|
|
50
|
+
}
|
|
51
|
+
const { isPrinting: ae, isImaging: le, generatePdf: oe, generateImage: se } = Ue({
|
|
52
|
+
elementId: `vue-ui-gauge_${b.value}`,
|
|
53
|
+
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
54
|
+
}), ke = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = y(() => Ge(e.value.customPalette)), w = y(() => {
|
|
55
|
+
if (!I.value || de(c.dataset.series || {}))
|
|
56
|
+
return {
|
|
57
|
+
value: 0,
|
|
58
|
+
series: [
|
|
59
|
+
{
|
|
60
|
+
from: 0,
|
|
61
|
+
to: 0
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
const t = [];
|
|
66
|
+
(c.dataset.series || []).forEach((a) => {
|
|
67
|
+
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
68
|
+
});
|
|
69
|
+
const s = Math.max(...t);
|
|
70
|
+
return {
|
|
71
|
+
...c.dataset,
|
|
72
|
+
series: (c.dataset.series || []).map((a, o) => ({
|
|
73
|
+
...a,
|
|
74
|
+
color: Ee(a.color) || be.value[o] || he[o],
|
|
75
|
+
value: ((a.to || 0) - (a.from || 0)) / s * 100
|
|
76
|
+
}))
|
|
77
|
+
};
|
|
78
|
+
}), m = d(512), l = d({
|
|
79
|
+
height: 358.4,
|
|
80
|
+
width: m.value,
|
|
81
|
+
top: 0,
|
|
82
|
+
bottom: 358.4,
|
|
83
|
+
centerX: 179.2,
|
|
84
|
+
centerY: m.value / 2,
|
|
85
|
+
labelFontSize: 18,
|
|
86
|
+
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
87
|
+
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
88
|
+
trackSize: e.value.style.chart.layout.track.size,
|
|
89
|
+
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
90
|
+
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
91
|
+
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
92
|
+
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
93
|
+
}), M = d(0), P = d(0), f = d(e.value.style.chart.animation.use ? 0 : c.dataset.value);
|
|
94
|
+
ie(() => c.dataset.value, () => {
|
|
95
|
+
ne(c.dataset.value);
|
|
96
|
+
});
|
|
97
|
+
const h = y(() => {
|
|
98
|
+
const t = l.value.width / 2, s = n.value.base, a = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI;
|
|
99
|
+
return {
|
|
100
|
+
x1: t,
|
|
101
|
+
y1: s,
|
|
102
|
+
x2: t + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
|
|
103
|
+
y2: s + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
104
|
+
};
|
|
105
|
+
}), re = y(() => {
|
|
106
|
+
const t = l.value.width / 2, s = n.value.base, a = Math.PI * ((f.value + 0 - P.value) / (M.value - P.value)) + Math.PI, o = t + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = s + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), k = l.value.pointerRadius, $e = t + k * Math.cos(a + Math.PI / 2), Fe = s + k * Math.sin(a + Math.PI / 2), Ce = t + k * Math.cos(a - Math.PI / 2), Me = s + k * Math.sin(a - Math.PI / 2);
|
|
107
|
+
return isNaN(o) ? null : `M ${o},${_} ${$e},${Fe} ${Ce},${Me} Z`;
|
|
108
|
+
}), T = y(() => {
|
|
109
|
+
for (let t = 0; t < w.value.series.length; t += 1) {
|
|
110
|
+
const { color: s, from: a, to: o } = w.value.series[t];
|
|
111
|
+
if (f.value >= a && f.value <= o)
|
|
112
|
+
return s;
|
|
113
|
+
}
|
|
114
|
+
return "#2D353C";
|
|
115
|
+
}), X = d(null);
|
|
116
|
+
function ue() {
|
|
117
|
+
if (de(c.dataset) ? Y({
|
|
118
|
+
componentName: "VueUiGauge",
|
|
119
|
+
type: "dataset"
|
|
120
|
+
}) : (fe({
|
|
121
|
+
datasetObject: c.dataset,
|
|
122
|
+
requiredAttributes: ["value", "series"]
|
|
123
|
+
}).forEach((t) => {
|
|
124
|
+
Y({
|
|
125
|
+
componentName: "VueUiGauge",
|
|
126
|
+
type: "datasetAttribute",
|
|
127
|
+
property: t
|
|
128
|
+
});
|
|
129
|
+
}), Object.hasOwn(c.dataset, "series") && (c.dataset.series.length ? c.dataset.series.forEach((t, s) => {
|
|
130
|
+
fe({
|
|
131
|
+
datasetObject: t,
|
|
132
|
+
requiredAttributes: ["from", "to"]
|
|
133
|
+
}).forEach((a) => {
|
|
134
|
+
Y({
|
|
135
|
+
componentName: "VueUiGauge",
|
|
136
|
+
type: "datasetSerieAttribute",
|
|
137
|
+
property: a,
|
|
138
|
+
index: s
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
}) : Y({
|
|
142
|
+
componentName: "VueUiGauge",
|
|
143
|
+
type: "datasetAttributeEmpty",
|
|
144
|
+
property: "series"
|
|
145
|
+
}))), ne(c.dataset.value || 0), e.value.responsive) {
|
|
146
|
+
const t = Le(() => {
|
|
147
|
+
const { width: s, height: a } = De({
|
|
148
|
+
chart: C.value,
|
|
149
|
+
title: e.value.style.chart.title.text ? Z.value : null,
|
|
150
|
+
legend: J.value,
|
|
151
|
+
source: K.value,
|
|
152
|
+
noTitle: Q.value
|
|
153
|
+
});
|
|
154
|
+
l.value.width = s, l.value.height = a, l.value.centerX = s / 2, l.value.centerY = m.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / m.value * Math.min(a, s) < 10 ? 10 : 18 / m.value * Math.min(a, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / m.value * Math.min(a, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / m.value * Math.min(a, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / m.value * Math.min(a, s), l.value.trackSize = e.value.style.chart.layout.track.size / m.value * Math.min(a, s), l.value.pointerStrokeWidth = q({
|
|
155
|
+
relator: Math.min(s, a),
|
|
156
|
+
adjuster: m.value,
|
|
157
|
+
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
158
|
+
threshold: 2,
|
|
159
|
+
fallback: 2
|
|
160
|
+
}), l.value.markerOffset = q({
|
|
161
|
+
relator: Math.max(s, a),
|
|
162
|
+
adjuster: m.value,
|
|
163
|
+
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
164
|
+
threshold: 2,
|
|
165
|
+
fallback: 2
|
|
166
|
+
}), l.value.segmentFontSize = q({
|
|
167
|
+
relator: Math.min(s, a),
|
|
168
|
+
adjuster: m.value,
|
|
169
|
+
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
170
|
+
threshold: 8,
|
|
171
|
+
fallback: 8
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
X.value = new ResizeObserver(t), X.value.observe(C.value.parentNode);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
Pe(() => {
|
|
178
|
+
ue();
|
|
179
|
+
}), Ne(() => {
|
|
180
|
+
X.value && X.value.disconnect();
|
|
181
|
+
});
|
|
182
|
+
function ne(t) {
|
|
183
|
+
const s = [];
|
|
184
|
+
(w.value.series || []).forEach((k) => {
|
|
185
|
+
s.push(k.from || 0), s.push(k.to || 0);
|
|
186
|
+
}), M.value = Math.max(...s), P.value = Math.min(...s);
|
|
187
|
+
let a = e.value.style.chart.animation.speed;
|
|
188
|
+
const o = Math.abs(t - f.value) / (a * 60);
|
|
189
|
+
function _() {
|
|
190
|
+
f.value < t ? f.value = Math.min(f.value + o, t) : f.value > t && (f.value = Math.max(f.value - o, t)), f.value !== t && requestAnimationFrame(_);
|
|
191
|
+
}
|
|
192
|
+
_();
|
|
193
|
+
}
|
|
194
|
+
const n = y(() => {
|
|
195
|
+
const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, s = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
196
|
+
return {
|
|
197
|
+
arcs: t / s,
|
|
198
|
+
gradients: t / (s * 1.1),
|
|
199
|
+
base: e.value.responsive ? l.value.height / 2 : l.value.height * 0.7,
|
|
200
|
+
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
201
|
+
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
202
|
+
};
|
|
203
|
+
}), p = y(() => U(
|
|
204
|
+
{ series: w.value.series },
|
|
205
|
+
l.value.width / 2,
|
|
206
|
+
n.value.base,
|
|
207
|
+
n.value.arcs,
|
|
208
|
+
n.value.arcs,
|
|
209
|
+
1,
|
|
210
|
+
1,
|
|
211
|
+
1,
|
|
212
|
+
180,
|
|
213
|
+
109.9495,
|
|
214
|
+
40 * l.value.trackSize
|
|
215
|
+
)), _e = y(() => U(
|
|
216
|
+
{ series: w.value.series },
|
|
217
|
+
l.value.width / 2,
|
|
218
|
+
n.value.base,
|
|
219
|
+
n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
220
|
+
n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
221
|
+
1,
|
|
222
|
+
1,
|
|
223
|
+
1,
|
|
224
|
+
180,
|
|
225
|
+
109.9495,
|
|
226
|
+
40 * l.value.trackSize
|
|
227
|
+
)), S = y(() => p.value.map((t) => n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1)));
|
|
228
|
+
function xe(t) {
|
|
229
|
+
if (t.reduce((_, k) => _ + k, 0) > 100)
|
|
230
|
+
throw new Error("Total % must not exceed 100");
|
|
231
|
+
const a = 50;
|
|
232
|
+
let o = 0;
|
|
233
|
+
return t.map((_) => (o += _, `${o / 100 * a - _ / 4}%`));
|
|
234
|
+
}
|
|
235
|
+
const we = y(() => xe(p.value.map((t) => t.proportion * 100))), Se = y(() => U(
|
|
236
|
+
{ series: w.value.series },
|
|
237
|
+
l.value.width / 2,
|
|
238
|
+
n.value.base,
|
|
239
|
+
n.value.gradients,
|
|
240
|
+
n.value.gradients,
|
|
241
|
+
0.95,
|
|
242
|
+
1,
|
|
243
|
+
1,
|
|
244
|
+
180,
|
|
245
|
+
110.02,
|
|
246
|
+
2 * l.value.trackSize
|
|
247
|
+
)), N = d(!1);
|
|
248
|
+
function ze(t) {
|
|
249
|
+
N.value = t, H.value += 1;
|
|
250
|
+
}
|
|
251
|
+
const A = d(!1);
|
|
252
|
+
function j() {
|
|
253
|
+
A.value = !A.value;
|
|
254
|
+
}
|
|
255
|
+
return me({
|
|
256
|
+
generatePdf: oe,
|
|
257
|
+
generateImage: se,
|
|
258
|
+
toggleAnnotator: j
|
|
259
|
+
}), (t, s) => (r(), u("div", {
|
|
260
|
+
class: ce(`vue-ui-gauge ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
261
|
+
ref_key: "gaugeChart",
|
|
262
|
+
ref: C,
|
|
263
|
+
id: `vue-ui-gauge_${b.value}`,
|
|
264
|
+
style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
265
|
+
}, [
|
|
266
|
+
e.value.userOptions.buttons.annotator ? (r(), R(He, {
|
|
267
|
+
key: 0,
|
|
268
|
+
parent: C.value,
|
|
269
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
270
|
+
color: e.value.style.chart.color,
|
|
271
|
+
active: A.value,
|
|
272
|
+
onClose: j
|
|
273
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
274
|
+
ke.value ? (r(), u("div", {
|
|
275
|
+
key: 1,
|
|
276
|
+
ref_key: "noTitle",
|
|
277
|
+
ref: Q,
|
|
278
|
+
class: "vue-data-ui-no-title-space",
|
|
279
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
280
|
+
}, null, 512)) : v("", !0),
|
|
281
|
+
e.value.style.chart.title.text ? (r(), u("div", {
|
|
282
|
+
key: 2,
|
|
283
|
+
ref_key: "chartTitle",
|
|
284
|
+
ref: Z,
|
|
285
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
286
|
+
}, [
|
|
287
|
+
(r(), R(Ve, {
|
|
288
|
+
key: `title_${ee.value}`,
|
|
289
|
+
config: {
|
|
290
|
+
title: {
|
|
291
|
+
cy: "gauge-div-title",
|
|
292
|
+
...e.value.style.chart.title
|
|
293
|
+
},
|
|
294
|
+
subtitle: {
|
|
295
|
+
cy: "gauge-div-subtitle",
|
|
296
|
+
...e.value.style.chart.title.subtitle
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}, {
|
|
300
|
+
default: O(() => [
|
|
301
|
+
e.value.translations.base && E.dataset.base ? (r(), u("span", Ke, z(e.value.translations.base) + ": " + z(E.dataset.base), 1)) : v("", !0)
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
}, 8, ["config"]))
|
|
305
|
+
], 512)) : v("", !0),
|
|
306
|
+
e.value.userOptions.show && I.value ? (r(), R(Be, {
|
|
307
|
+
ref_key: "details",
|
|
308
|
+
ref: pe,
|
|
309
|
+
key: `user_options_${H.value}`,
|
|
310
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
311
|
+
color: e.value.style.chart.color,
|
|
312
|
+
isImaging: i(le),
|
|
313
|
+
isPrinting: i(ae),
|
|
314
|
+
uid: b.value,
|
|
315
|
+
hasXls: !1,
|
|
316
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
317
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
318
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
319
|
+
isFullscreen: N.value,
|
|
320
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
321
|
+
chartElement: C.value,
|
|
322
|
+
position: e.value.userOptions.position,
|
|
323
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
324
|
+
isAnnotation: A.value,
|
|
325
|
+
onToggleFullscreen: ze,
|
|
326
|
+
onGeneratePdf: i(oe),
|
|
327
|
+
onGenerateImage: i(se),
|
|
328
|
+
onToggleAnnotator: j
|
|
329
|
+
}, Oe({ _: 2 }, [
|
|
330
|
+
t.$slots.optionPdf ? {
|
|
331
|
+
name: "optionPdf",
|
|
332
|
+
fn: O(() => [
|
|
333
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
334
|
+
]),
|
|
335
|
+
key: "0"
|
|
336
|
+
} : void 0,
|
|
337
|
+
t.$slots.optionImg ? {
|
|
338
|
+
name: "optionImg",
|
|
339
|
+
fn: O(() => [
|
|
340
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
341
|
+
]),
|
|
342
|
+
key: "1"
|
|
343
|
+
} : void 0,
|
|
344
|
+
t.$slots.optionFullscreen ? {
|
|
345
|
+
name: "optionFullscreen",
|
|
346
|
+
fn: O(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
347
|
+
x(t.$slots, "optionFullscreen", L(D({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
348
|
+
]),
|
|
349
|
+
key: "2"
|
|
350
|
+
} : void 0,
|
|
351
|
+
t.$slots.optionAnnotator ? {
|
|
352
|
+
name: "optionAnnotator",
|
|
353
|
+
fn: O(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
354
|
+
x(t.$slots, "optionAnnotator", L(D({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
355
|
+
]),
|
|
356
|
+
key: "3"
|
|
357
|
+
} : void 0
|
|
358
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
359
|
+
I.value ? (r(), u("svg", {
|
|
360
|
+
key: 4,
|
|
361
|
+
xmlns: i(Te),
|
|
362
|
+
class: ce({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
363
|
+
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
364
|
+
style: ve(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
365
|
+
}, [
|
|
366
|
+
Ie(qe),
|
|
367
|
+
g("defs", null, [
|
|
368
|
+
g("radialGradient", {
|
|
369
|
+
id: `gradient_${b.value}`,
|
|
370
|
+
cx: "50%",
|
|
371
|
+
cy: "50%",
|
|
372
|
+
r: "50%",
|
|
373
|
+
fx: "50%",
|
|
374
|
+
fy: "50%"
|
|
375
|
+
}, [
|
|
376
|
+
g("stop", {
|
|
377
|
+
offset: "0%",
|
|
378
|
+
"stop-color": i(B)("#FFFFFF", 1)
|
|
379
|
+
}, null, 8, tt),
|
|
380
|
+
g("stop", {
|
|
381
|
+
offset: "80%",
|
|
382
|
+
"stop-color": i(B)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
383
|
+
}, null, 8, at),
|
|
384
|
+
g("stop", {
|
|
385
|
+
offset: "100%",
|
|
386
|
+
"stop-color": i(B)("#FFFFFF", 1)
|
|
387
|
+
}, null, 8, lt)
|
|
388
|
+
], 8, et)
|
|
389
|
+
]),
|
|
390
|
+
g("defs", null, [
|
|
391
|
+
g("filter", {
|
|
392
|
+
id: `blur_${b.value}`,
|
|
393
|
+
x: "-50%",
|
|
394
|
+
y: "-50%",
|
|
395
|
+
width: "200%",
|
|
396
|
+
height: "200%"
|
|
397
|
+
}, [
|
|
398
|
+
g("feGaussianBlur", {
|
|
399
|
+
in: "SourceGraphic",
|
|
400
|
+
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
401
|
+
}, null, 8, st)
|
|
402
|
+
], 8, ot)
|
|
403
|
+
]),
|
|
404
|
+
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("path", {
|
|
405
|
+
key: `arc_${o}`,
|
|
406
|
+
d: a.arcSlice,
|
|
407
|
+
fill: a.color,
|
|
408
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
409
|
+
"stroke-linecap": "round"
|
|
410
|
+
}, null, 8, rt))), 128)),
|
|
411
|
+
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), u($, { key: 0 }, [
|
|
412
|
+
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("path", {
|
|
413
|
+
id: `curve_${b.value}_${o}`,
|
|
414
|
+
d: `M ${h.value.x1},${h.value.y1} m -${S.value[o]},0 a ${S.value[o]},${S.value[o]} 0 1,1 ${2 * S.value[o]},0 a ${S.value[o]},${S.value[o]} 0 1,1 -${2 * S.value[o]},0`,
|
|
415
|
+
fill: "transparent"
|
|
416
|
+
}, null, 8, ut))), 256)),
|
|
417
|
+
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("text", {
|
|
418
|
+
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
419
|
+
"font-size": l.value.segmentFontSize,
|
|
420
|
+
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
421
|
+
"text-anchor": "middle"
|
|
422
|
+
}, [
|
|
423
|
+
g("textPath", {
|
|
424
|
+
href: `#curve_${b.value}_${o}`,
|
|
425
|
+
startOffset: we.value[o]
|
|
426
|
+
}, z(a.name || ""), 9, it)
|
|
427
|
+
], 8, nt))), 256))
|
|
428
|
+
], 64)) : v("", !0),
|
|
429
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u($, { key: 1 }, F(_e.value, (a, o) => (r(), u("text", {
|
|
430
|
+
x: a.center.endX,
|
|
431
|
+
y: a.center.endY,
|
|
432
|
+
"text-anchor": i(je)(a, !1, 12).anchor,
|
|
433
|
+
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
434
|
+
"font-size": l.value.segmentFontSize,
|
|
435
|
+
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
436
|
+
}, z(a.name || ""), 9, ct))), 256)) : v("", !0),
|
|
437
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), u($, { key: 2 }, F(Se.value, (a, o) => (r(), u("path", {
|
|
438
|
+
key: `arc_${o}`,
|
|
439
|
+
d: a.arcSlice,
|
|
440
|
+
fill: "#FFFFFF",
|
|
441
|
+
stroke: "none",
|
|
442
|
+
"stroke-linecap": "round",
|
|
443
|
+
filter: `url(#blur_${b.value})`
|
|
444
|
+
}, null, 8, vt))), 128)) : v("", !0),
|
|
445
|
+
e.value.style.chart.layout.markers.show ? (r(), u("g", ht, [
|
|
446
|
+
(r(!0), u($, null, F(p.value, (a, o) => (r(), u("text", {
|
|
447
|
+
x: i(G)({
|
|
448
|
+
centerX: l.value.width / 2,
|
|
449
|
+
centerY: n.value.base,
|
|
450
|
+
initX: a.center.startX,
|
|
451
|
+
initY: a.center.startY,
|
|
452
|
+
offset: l.value.markerOffset
|
|
453
|
+
}).x,
|
|
454
|
+
y: i(G)({
|
|
455
|
+
centerX: l.value.width / 2,
|
|
456
|
+
centerY: n.value.base,
|
|
457
|
+
initX: a.center.startX,
|
|
458
|
+
initY: a.center.startY,
|
|
459
|
+
offset: l.value.markerOffset
|
|
460
|
+
}).y,
|
|
461
|
+
"text-anchor": a.center.startX < l.value.width / 2 - 5 ? "end" : a.center.startX > l.value.width / 2 + 5 ? "start" : "middle",
|
|
462
|
+
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
463
|
+
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
464
|
+
fill: e.value.style.chart.layout.markers.color
|
|
465
|
+
}, z(i(W)(
|
|
466
|
+
e.value.style.chart.layout.markers.formatter,
|
|
467
|
+
a.from,
|
|
468
|
+
i(V)({
|
|
469
|
+
p: e.value.style.chart.layout.markers.prefix,
|
|
470
|
+
v: a.from,
|
|
471
|
+
s: e.value.style.chart.layout.markers.suffix,
|
|
472
|
+
r: e.value.style.chart.layout.markers.roundingValue
|
|
473
|
+
})
|
|
474
|
+
)), 9, dt))), 256))
|
|
475
|
+
])) : v("", !0),
|
|
476
|
+
e.value.style.chart.layout.markers.show ? (r(), u("text", {
|
|
477
|
+
key: 4,
|
|
478
|
+
x: i(G)({
|
|
479
|
+
centerX: l.value.width / 2,
|
|
480
|
+
centerY: n.value.base,
|
|
481
|
+
initX: p.value.at(-1).endX,
|
|
482
|
+
initY: p.value.at(-1).endY,
|
|
483
|
+
offset: l.value.markerOffset
|
|
484
|
+
}).x,
|
|
485
|
+
y: i(G)({
|
|
486
|
+
centerX: l.value.width / 2,
|
|
487
|
+
centerY: n.value.base,
|
|
488
|
+
initX: p.value.at(-1).endX,
|
|
489
|
+
initY: p.value.at(-1).endY,
|
|
490
|
+
offset: l.value.markerOffset
|
|
491
|
+
}).y,
|
|
492
|
+
"text-anchor": "start",
|
|
493
|
+
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
494
|
+
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
495
|
+
fill: e.value.style.chart.layout.markers.color
|
|
496
|
+
}, z(i(W)(
|
|
497
|
+
e.value.style.chart.layout.markers.formatter,
|
|
498
|
+
M.value,
|
|
499
|
+
i(V)({
|
|
500
|
+
p: e.value.style.chart.layout.markers.prefix,
|
|
501
|
+
v: M.value,
|
|
502
|
+
s: e.value.style.chart.layout.markers.suffix,
|
|
503
|
+
r: e.value.style.chart.layout.markers.roundingValue
|
|
504
|
+
})
|
|
505
|
+
)), 9, ft)) : v("", !0),
|
|
506
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), u("g", yt, [
|
|
507
|
+
isNaN(h.value.x2) ? v("", !0) : (r(), u("line", {
|
|
508
|
+
key: 0,
|
|
509
|
+
x1: h.value.x1,
|
|
510
|
+
y1: h.value.y1,
|
|
511
|
+
x2: h.value.x2,
|
|
512
|
+
y2: h.value.y2,
|
|
513
|
+
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
514
|
+
"stroke-width": l.value.pointerStrokeWidth,
|
|
515
|
+
"stroke-linecap": "round"
|
|
516
|
+
}, null, 8, mt)),
|
|
517
|
+
isNaN(h.value.x2) ? v("", !0) : (r(), u("line", {
|
|
518
|
+
key: 1,
|
|
519
|
+
x1: h.value.x1,
|
|
520
|
+
y1: h.value.y1,
|
|
521
|
+
x2: h.value.x2,
|
|
522
|
+
y2: h.value.y2,
|
|
523
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
|
|
524
|
+
"stroke-linecap": "round",
|
|
525
|
+
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
526
|
+
}, null, 8, gt)),
|
|
527
|
+
!isNaN(h.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), u("line", {
|
|
528
|
+
key: 2,
|
|
529
|
+
x1: h.value.x1,
|
|
530
|
+
y1: h.value.y1,
|
|
531
|
+
x2: h.value.x2,
|
|
532
|
+
y2: h.value.y2,
|
|
533
|
+
stroke: "white",
|
|
534
|
+
"stroke-linecap": "round",
|
|
535
|
+
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
536
|
+
filter: `url(#blur_${b.value})`
|
|
537
|
+
}, null, 8, pt)) : v("", !0)
|
|
538
|
+
])) : (r(), u("g", kt, [
|
|
539
|
+
re.value ? (r(), u("path", {
|
|
540
|
+
key: 0,
|
|
541
|
+
d: re.value,
|
|
542
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
|
|
543
|
+
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
544
|
+
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
545
|
+
"stroke-linejoin": "round"
|
|
546
|
+
}, null, 8, bt)) : v("", !0)
|
|
547
|
+
])),
|
|
548
|
+
g("circle", {
|
|
549
|
+
cx: l.value.width / 2,
|
|
550
|
+
cy: n.value.base,
|
|
551
|
+
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
552
|
+
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
553
|
+
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
554
|
+
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
555
|
+
}, null, 8, _t),
|
|
556
|
+
e.value.style.chart.legend.show ? (r(), u("text", {
|
|
557
|
+
key: 7,
|
|
558
|
+
x: l.value.width / 2,
|
|
559
|
+
y: n.value.ratingBase,
|
|
560
|
+
"text-anchor": "middle",
|
|
561
|
+
"font-size": l.value.legendFontSize,
|
|
562
|
+
"font-weight": "bold",
|
|
563
|
+
fill: e.value.style.chart.legend.useRatingColor ? T.value : e.value.style.chart.legend.color
|
|
564
|
+
}, z(i(W)(
|
|
565
|
+
e.value.style.chart.legend.formatter,
|
|
566
|
+
f.value,
|
|
567
|
+
i(V)({
|
|
568
|
+
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
|
|
569
|
+
v: f.value,
|
|
570
|
+
s: e.value.style.chart.legend.suffix,
|
|
571
|
+
r: e.value.style.chart.legend.roundingValue
|
|
572
|
+
})
|
|
573
|
+
)), 9, xt)) : v("", !0),
|
|
574
|
+
x(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
575
|
+
], 14, Qe)) : v("", !0),
|
|
576
|
+
t.$slots.watermark ? (r(), u("div", wt, [
|
|
577
|
+
x(t.$slots, "watermark", L(D({ isPrinting: i(ae) || i(le) })), void 0, !0)
|
|
578
|
+
])) : v("", !0),
|
|
579
|
+
I.value ? v("", !0) : (r(), R(We, {
|
|
580
|
+
key: 6,
|
|
581
|
+
config: {
|
|
582
|
+
type: "gauge",
|
|
583
|
+
style: {
|
|
584
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
585
|
+
gauge: {
|
|
586
|
+
color: "#CCCCCC"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}, null, 8, ["config"])),
|
|
591
|
+
g("div", {
|
|
592
|
+
ref_key: "chartLegend",
|
|
593
|
+
ref: J
|
|
594
|
+
}, [
|
|
595
|
+
x(t.$slots, "legend", { legend: w.value }, void 0, !0)
|
|
596
|
+
], 512),
|
|
597
|
+
t.$slots.source ? (r(), u("div", {
|
|
598
|
+
key: 7,
|
|
599
|
+
ref_key: "source",
|
|
600
|
+
ref: K,
|
|
601
|
+
dir: "auto"
|
|
602
|
+
}, [
|
|
603
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
604
|
+
], 512)) : v("", !0)
|
|
605
|
+
], 14, Je));
|
|
606
|
+
}
|
|
607
|
+
}, At = /* @__PURE__ */ Ze(St, [["__scopeId", "data-v-813d685a"]]);
|
|
608
|
+
export {
|
|
609
|
+
At as default
|
|
610
|
+
};
|
|
@@ -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-DQqE9z_u.cjs"),m=require("./useNestedProp-DqEFKuPz.cjs"),_=require("./PackageVersion-DL3c2r_c.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-D6Fux0KL.js";
|
|
3
|
+
import { u as F } from "./useNestedProp-CcZBkd4B.js";
|
|
4
|
+
import { _ as B } from "./PackageVersion-TpOTCEFd.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
|