vue-data-ui 2.3.76 → 2.3.78
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-DY9RKUmG.js → Arrow-BCYtOwX7.js} +1 -1
- package/dist/{Arrow-D7M4-bW7.cjs → Arrow-DWkvIpW8.cjs} +1 -1
- package/dist/{BaseIcon-rwm-10Hu.js → BaseIcon-BIQXWVMS.js} +1 -1
- package/dist/{BaseIcon-DB7Apwv_.cjs → BaseIcon-Bcpzfk34.cjs} +1 -1
- package/dist/{DataTable-CsNozyz7.cjs → DataTable-C5TOiC61.cjs} +1 -1
- package/dist/{DataTable-e2fnfjXV.js → DataTable-y1lX5jVj.js} +2 -2
- package/dist/{Legend-5cQ0xZjK.js → Legend-BLXcdrri.js} +1 -1
- package/dist/{Legend-DgFd-O0m.cjs → Legend-CGGD8NhP.cjs} +1 -1
- package/dist/{Shape-CiTElr_0.js → Shape-CsoTtJx6.js} +1 -1
- package/dist/{Shape-yPECDLiP.cjs → Shape-qJYTY2BC.cjs} +1 -1
- package/dist/{Slicer-DaZgCKV7.cjs → Slicer-CZJXKSeE.cjs} +1 -1
- package/dist/{Slicer-DwBBu3kB.js → Slicer-DzJZ4axa.js} +12 -12
- package/dist/{Title-3EduyW4p.cjs → Title-BSpa3uge.cjs} +1 -1
- package/dist/{Title-gUz6GDA3.js → Title-Bx-VO3md.js} +1 -1
- package/dist/{Tooltip-DfSM1mNP.js → Tooltip-Dk-cimhQ.js} +23 -23
- package/dist/Tooltip-rmhZhv96.cjs +1 -0
- package/dist/index-CzjC8LfY.cjs +4 -0
- package/dist/{index-CaV1s-yZ.js → index-DP8dqFNd.js} +1147 -1145
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tWCzZrLx.js → useNestedProp-B-oZxD4x.js} +1 -1
- package/dist/{useNestedProp-CisbRRo_.cjs → useNestedProp-CY7DebVH.cjs} +1 -1
- package/dist/{usePrinter-DzTaA1eh.cjs → usePrinter-DiLM6jav.cjs} +1 -1
- package/dist/{usePrinter-rvJyT65A.js → usePrinter-DiuHo4LO.js} +1 -1
- package/dist/{vue-data-ui-BGkWRPUY.cjs → vue-data-ui-Ce5IFSYA.cjs} +1 -1
- package/dist/{vue-data-ui-BO89gTtq.js → vue-data-ui-Ct7n5wkM.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +9 -9
- package/dist/vue-ui-3d-bar-B_i2EoFu.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CcTMIHiB.js → vue-ui-3d-bar-O3fB5J7V.js} +342 -342
- package/dist/{vue-ui-accordion-CpzGQ63y.js → vue-ui-accordion-Dl8zkZPk.js} +3 -3
- package/dist/{vue-ui-accordion-7e4Myhcg.cjs → vue-ui-accordion-DpI7fTKZ.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-D71ZLkVV.js → vue-ui-age-pyramid-BeiREI6d.js} +22 -22
- package/dist/vue-ui-age-pyramid-BsAfxkN4.cjs +1 -0
- package/dist/{vue-ui-annotator-B8Iu6cYt.js → vue-ui-annotator-0yje27Qq.js} +39 -39
- package/dist/{vue-ui-annotator-BKQrweqm.cjs → vue-ui-annotator-DpN-6IwB.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bx4QVkY0.js → vue-ui-candlestick-D9UteVvx.js} +34 -34
- package/dist/{vue-ui-candlestick-DAc1FQ-i.cjs → vue-ui-candlestick-lv78wnpS.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-uFRqkghO.cjs → vue-ui-carousel-table-Br6FwMKM.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-xuQG6bcH.js → vue-ui-carousel-table-jxZ3h5pq.js} +31 -31
- package/dist/{vue-ui-chestnut-Bo6rDcU7.js → vue-ui-chestnut-DXuHRJy4.js} +291 -288
- package/dist/vue-ui-chestnut-DbYHeNaL.cjs +6 -0
- package/dist/{vue-ui-cursor-C0KOqEOq.js → vue-ui-cursor-BzPbdVRJ.js} +20 -20
- package/dist/vue-ui-cursor-iss6SJ1Y.cjs +1 -0
- package/dist/{vue-ui-dashboard-BT71xS7P.js → vue-ui-dashboard-CGjWuFrI.js} +2 -2
- package/dist/{vue-ui-dashboard-0Hsjx-bO.cjs → vue-ui-dashboard-DKT82yQ4.cjs} +1 -1
- package/dist/{vue-ui-digits-BRqpKYvD.js → vue-ui-digits-BCguvLxB.js} +2 -2
- package/dist/{vue-ui-digits-C2ReH6w0.cjs → vue-ui-digits-BfwDCfYp.cjs} +1 -1
- package/dist/{vue-ui-donut-NQW-3prf.js → vue-ui-donut-DJTeGLVG.js} +209 -212
- package/dist/{vue-ui-donut-evolution-jbXQQGTc.js → vue-ui-donut-evolution-BaLDZNDG.js} +106 -106
- package/dist/vue-ui-donut-evolution-Bil1AIhX.cjs +1 -0
- package/dist/vue-ui-donut-uVPdO4UH.cjs +1 -0
- package/dist/{vue-ui-dumbbell-Dyz8xdtC.js → vue-ui-dumbbell-BqtDdV5w.js} +17 -17
- package/dist/{vue-ui-dumbbell-DXQSg6wa.cjs → vue-ui-dumbbell-DiL3xhKY.cjs} +1 -1
- package/dist/{vue-ui-flow-UqSNwH9d.cjs → vue-ui-flow-BVTbbsCK.cjs} +1 -1
- package/dist/{vue-ui-flow-BL3JWW1m.js → vue-ui-flow-zfTGon4s.js} +28 -28
- package/dist/{vue-ui-galaxy-Dx9nsOuM.js → vue-ui-galaxy-5iRb5sQ-.js} +22 -22
- package/dist/{vue-ui-galaxy-DTQWGvRH.cjs → vue-ui-galaxy-GSO_6KIe.cjs} +1 -1
- package/dist/vue-ui-gauge-Bz7oLa51.cjs +1 -0
- package/dist/{vue-ui-gauge-CLaKGi0-.js → vue-ui-gauge-DljHYdCS.js} +101 -110
- package/dist/{vue-ui-gizmo-of-4s5HG.js → vue-ui-gizmo-B-fxFOZy.js} +2 -2
- package/dist/{vue-ui-gizmo-Kitfqu0J.cjs → vue-ui-gizmo-KL0OJY2K.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BIzjOMXO.js → vue-ui-heatmap-ketn_NV3.js} +17 -17
- package/dist/{vue-ui-heatmap-DUw2350O.cjs → vue-ui-heatmap-thMJPCfo.cjs} +1 -1
- package/dist/{vue-ui-kpi-By3YPwgo.js → vue-ui-kpi-Bxu8uZ21.js} +3 -3
- package/dist/{vue-ui-kpi-DyL2Hcz-.cjs → vue-ui-kpi-e1QWa8D4.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DnK3V2z2.js → vue-ui-mini-loader-BZ_2aV8O.js} +2 -2
- package/dist/{vue-ui-mini-loader-C048-8Kd.cjs → vue-ui-mini-loader-paRZQU8H.cjs} +1 -1
- package/dist/{vue-ui-molecule-BfhbIqa5.js → vue-ui-molecule-Bpp5unvI.js} +33 -33
- package/dist/{vue-ui-molecule-D-ahly6R.cjs → vue-ui-molecule-VOBL4Osc.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DXxEKr3x.js → vue-ui-mood-radar-BY8XP_Q5.js} +129 -132
- package/dist/vue-ui-mood-radar-CwtMLwP8.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BdUdHFd-.js → vue-ui-nested-donuts-5uuLi3If.js} +98 -98
- package/dist/{vue-ui-nested-donuts-C7qM_FRw.cjs → vue-ui-nested-donuts-CLnVnAiD.cjs} +2 -2
- package/dist/{vue-ui-onion-DX3gofXZ.cjs → vue-ui-onion-CMSPSSSG.cjs} +1 -1
- package/dist/{vue-ui-onion-D0vF5jBt.js → vue-ui-onion-zDy4ecPl.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs → vue-ui-parallel-coordinate-plot-1PFxiI__.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CTZY-pY8.js → vue-ui-parallel-coordinate-plot-BeEkL7Dq.js} +24 -24
- package/dist/vue-ui-quadrant-Cx5z_c90.cjs +1 -0
- package/dist/{vue-ui-quadrant-ByY8GP3y.js → vue-ui-quadrant-MCIlbbsW.js} +35 -35
- package/dist/{vue-ui-quick-chart-DWZEgUJF.cjs → vue-ui-quick-chart-Xn-47NQG.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DTxJ__7j.js → vue-ui-quick-chart-r6Qa7qg_.js} +69 -69
- package/dist/{vue-ui-radar-DEED0rTz.cjs → vue-ui-radar-ANQ1wXFc.cjs} +1 -1
- package/dist/{vue-ui-radar-5UBmAU6W.js → vue-ui-radar-DFV5cFkl.js} +39 -39
- package/dist/{vue-ui-rating-Ce_Ewqtl.cjs → vue-ui-rating-BVzCbQbv.cjs} +1 -1
- package/dist/{vue-ui-rating-Dr6jquxh.js → vue-ui-rating-DYu1EuJF.js} +6 -6
- package/dist/{vue-ui-relation-circle-BU8i2miI.js → vue-ui-relation-circle-BAcmDQB_.js} +29 -29
- package/dist/vue-ui-relation-circle-DEM6C6Or.cjs +1 -0
- package/dist/{vue-ui-rings-Ctl3Jywh.js → vue-ui-rings-BiLlYpgu.js} +31 -31
- package/dist/{vue-ui-rings-OQ8a1Ruw.cjs → vue-ui-rings-Ce4G4hat.cjs} +2 -2
- package/dist/{vue-ui-scatter-BwJ_koWT.js → vue-ui-scatter-D2ndYfkQ.js} +95 -95
- package/dist/vue-ui-scatter-OtlcTCUF.cjs +1 -0
- package/dist/{vue-ui-screenshot-BS3L5vhN.js → vue-ui-screenshot-CKCNPn-e.js} +4 -4
- package/dist/{vue-ui-screenshot-bAVk3EPl.cjs → vue-ui-screenshot-DTQx4VsM.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CvFX_ExX.js → vue-ui-skeleton-B30ZhUV7.js} +96 -96
- package/dist/vue-ui-skeleton-CwqzJlQf.cjs +41 -0
- package/dist/{vue-ui-smiley-CGYZpNt9.js → vue-ui-smiley-DzLvZR1k.js} +2 -2
- package/dist/{vue-ui-smiley-sF8QIso1.cjs → vue-ui-smiley-L6o24M6h.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B4XSSKl9.js → vue-ui-spark-trend-BKsmENbH.js} +21 -21
- package/dist/vue-ui-spark-trend-BoWeviHk.cjs +1 -0
- package/dist/{vue-ui-sparkbar-BbsJGDMZ.js → vue-ui-sparkbar-DNzZkp8z.js} +10 -10
- package/dist/vue-ui-sparkbar-DY3iOLo4.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D4w_i_QJ.js → vue-ui-sparkgauge-B2DngjVP.js} +8 -8
- package/dist/{vue-ui-sparkgauge-BKyQoI7C.cjs → vue-ui-sparkgauge-BlZ-lJm4.cjs} +1 -1
- package/dist/vue-ui-sparkhistogram-BUBewgdH.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CYybrW-6.js → vue-ui-sparkhistogram-Co9N3BeQ.js} +111 -101
- package/dist/vue-ui-sparkline-BhL0mxXD.cjs +1 -0
- package/dist/{vue-ui-sparkline-DjN1SVdO.js → vue-ui-sparkline-Dpqo4aRJ.js} +34 -34
- package/dist/{vue-ui-sparkstackbar-BZ2bESBi.cjs → vue-ui-sparkstackbar-DtNbx3EV.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BLMhJxaN.js → vue-ui-sparkstackbar-_JwfRxF8.js} +5 -5
- package/dist/{vue-ui-stackbar-BTKOHUYc.js → vue-ui-stackbar-BtN7ZM7-.js} +202 -200
- package/dist/{vue-ui-stackbar-DRHaJFR8.cjs → vue-ui-stackbar-C7AWHP6m.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-o6GTsGAT.js → vue-ui-strip-plot-6L9a7BSw.js} +26 -26
- package/dist/{vue-ui-strip-plot-DxQxFbWg.cjs → vue-ui-strip-plot-cgOFTunJ.cjs} +1 -1
- package/dist/{vue-ui-table-BFIj1Rgh.cjs → vue-ui-table-4Pf9tmFg.cjs} +1 -1
- package/dist/{vue-ui-table-CnquiTpr.js → vue-ui-table-BFYHRMCS.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CZRIwv-Q.js → vue-ui-table-heatmap--kPCu8mA.js} +24 -24
- package/dist/{vue-ui-table-heatmap-CCGK12Fa.cjs → vue-ui-table-heatmap-CltKb2V9.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DYmgfHz4.cjs → vue-ui-table-sparkline-B5OjJud8.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-B3zEeq6Z.js → vue-ui-table-sparkline-CsWx1Ksy.js} +26 -26
- package/dist/{vue-ui-thermometer-CzPRBt6c.cjs → vue-ui-thermometer-62_4QovL.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BopiohUh.js → vue-ui-thermometer-nTD7sp8r.js} +40 -40
- package/dist/{vue-ui-timer-Bonw69Lt.cjs → vue-ui-timer-BU0s7Vt9.cjs} +1 -1
- package/dist/{vue-ui-timer-C7WkW8hK.js → vue-ui-timer-DMFHjnzA.js} +8 -8
- package/dist/{vue-ui-tiremarks-BurRtFv4.js → vue-ui-tiremarks-1X9B1VKM.js} +18 -18
- package/dist/{vue-ui-tiremarks-DkIGfq8t.cjs → vue-ui-tiremarks-mwBeBMJY.cjs} +1 -1
- package/dist/{vue-ui-treemap-DWy4voIr.js → vue-ui-treemap-CVTwqPFA.js} +29 -29
- package/dist/{vue-ui-treemap-CalhJmnp.cjs → vue-ui-treemap-DQmBbm7e.cjs} +1 -1
- package/dist/vue-ui-vertical-bar-BXiy8KRC.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CJW1YhtY.js → vue-ui-vertical-bar-Br6Z0A3F.js} +14 -14
- package/dist/{vue-ui-waffle-faQMBYNx.cjs → vue-ui-waffle-CLCsHw9j.cjs} +1 -1
- package/dist/{vue-ui-waffle-DB7X6nTS.js → vue-ui-waffle-DEXMh07q.js} +84 -84
- package/dist/{vue-ui-wheel-CryKap2E.js → vue-ui-wheel-CwjuVi6U.js} +24 -24
- package/dist/{vue-ui-wheel-BzjbGP6a.cjs → vue-ui-wheel-DSFKKX65.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-COqUkvei.js → vue-ui-word-cloud-BKeD3fHb.js} +19 -19
- package/dist/{vue-ui-word-cloud-DJN9I4q4.cjs → vue-ui-word-cloud-DZS4hCeR.cjs} +1 -1
- package/dist/vue-ui-xy-B5aCogSL.cjs +3 -0
- package/dist/{vue-ui-xy-b1Z_HPsx.js → vue-ui-xy-DA3qqL8u.js} +351 -350
- package/dist/{vue-ui-xy-canvas-BgbLnY5B.js → vue-ui-xy-canvas-B7DH4RK5.js} +18 -18
- package/dist/vue-ui-xy-canvas-heCdqh5X.cjs +9 -0
- package/package.json +1 -1
- package/dist/Tooltip-DScSrYXJ.cjs +0 -1
- package/dist/index-BTgtr0F8.cjs +0 -4
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +0 -19
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +0 -1
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +0 -6
- package/dist/vue-ui-cursor-BQbeuW-k.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +0 -1
- package/dist/vue-ui-donut-v81suIOX.cjs +0 -1
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +0 -1
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +0 -1
- package/dist/vue-ui-quadrant-CgApzie6.cjs +0 -1
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +0 -1
- package/dist/vue-ui-scatter-B8StSjt8.cjs +0 -1
- package/dist/vue-ui-skeleton-CMQzFTs9.cjs +0 -41
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +0 -1
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +0 -1
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +0 -1
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +0 -4
- package/dist/vue-ui-xy-BmA0tspd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +0 -9
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as p, ref as h, watch as Q, onMounted as ke, onBeforeUnmount as be, openBlock as
|
|
2
|
-
import { u as xe, c as we, t as Fe, a as Se, p as le, b as ze, o as se, d as
|
|
1
|
+
import { computed as p, ref as h, watch as Q, onMounted as ke, onBeforeUnmount as be, openBlock as o, createElementBlock as i, normalizeClass as ee, normalizeStyle as G, createBlock as R, withCtx as I, toDisplayString as S, createCommentVNode as g, unref as c, createSlots as _e, renderSlot as x, normalizeProps as te, guardReactiveProps as ae, createElementVNode as f, Fragment as E, renderList as A } from "vue";
|
|
2
|
+
import { u as xe, c as we, t as Fe, a as Se, p as le, b as ze, o as se, d as Ce, e as O, g as re, m as oe, X as $e, s as j, K as X, i as Me, f as Pe, E as ue } from "./index-DP8dqFNd.js";
|
|
3
3
|
import { t as Ie, u as Oe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { u as Xe, U as Ne } from "./usePrinter-
|
|
5
|
-
import Ye from "./vue-ui-skeleton-
|
|
6
|
-
import { _ as Ge } from "./Title-
|
|
7
|
-
import { u as ne } from "./useNestedProp-
|
|
4
|
+
import { u as Xe, U as Ne } from "./usePrinter-DiuHo4LO.js";
|
|
5
|
+
import Ye from "./vue-ui-skeleton-B30ZhUV7.js";
|
|
6
|
+
import { _ as Ge } from "./Title-Bx-VO3md.js";
|
|
7
|
+
import { u as ne } from "./useNestedProp-B-oZxD4x.js";
|
|
8
8
|
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const Ee = ["id"], Ae = { key: 0 },
|
|
9
|
+
const Ee = ["id"], Ae = { key: 0 }, je = ["xmlns", "viewBox"], De = ["id"], Ue = ["stop-color"], Be = ["stop-color"], Le = ["stop-color"], We = ["id"], Te = ["stdDeviation"], Ve = ["d", "fill", "stroke"], qe = ["d", "filter"], He = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Ke = ["x", "y", "font-size", "font-weight", "fill"], Ze = { key: 1 }, Je = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Qe = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], et = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], tt = { key: 2 }, at = ["d", "fill", "stroke", "stroke-width"], lt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], st = ["x", "y", "font-size", "fill"], rt = {
|
|
10
10
|
key: 3,
|
|
11
11
|
class: "vue-data-ui-watermark"
|
|
12
|
-
},
|
|
12
|
+
}, ot = {
|
|
13
13
|
__name: "vue-ui-gauge",
|
|
14
14
|
props: {
|
|
15
15
|
config: {
|
|
@@ -25,22 +25,22 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
const
|
|
28
|
+
setup(N, { expose: ie }) {
|
|
29
|
+
const r = N, { vue_ui_gauge: ce } = xe(), z = p(() => !!r.dataset && Object.keys(r.dataset).length > 0 && r.dataset.series && r.dataset.series.length), m = h(we()), ve = h(null), D = h(0), C = h(null), U = h(null), B = h(null), L = h(0), e = p({
|
|
30
30
|
get: () => W(),
|
|
31
31
|
set: (a) => a
|
|
32
32
|
});
|
|
33
|
-
Q(() =>
|
|
33
|
+
Q(() => r.config, (a) => {
|
|
34
34
|
e.value = W(), Z(), L.value += 1;
|
|
35
35
|
}, { deep: !0 });
|
|
36
36
|
function W() {
|
|
37
37
|
const a = ne({
|
|
38
|
-
userConfig:
|
|
38
|
+
userConfig: r.config,
|
|
39
39
|
defaultConfig: ce
|
|
40
40
|
});
|
|
41
41
|
return a.theme ? {
|
|
42
42
|
...ne({
|
|
43
|
-
userConfig: Fe.vue_ui_gauge[a.theme] ||
|
|
43
|
+
userConfig: Fe.vue_ui_gauge[a.theme] || r.config,
|
|
44
44
|
defaultConfig: a
|
|
45
45
|
}),
|
|
46
46
|
customPalette: Se[a.theme] || le
|
|
@@ -50,7 +50,7 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
50
50
|
elementId: `vue-ui-gauge_${m.value}`,
|
|
51
51
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
52
52
|
}), de = p(() => ze(e.value.customPalette)), b = p(() => {
|
|
53
|
-
if (!z.value || se(
|
|
53
|
+
if (!z.value || se(r.dataset.series || {}))
|
|
54
54
|
return {
|
|
55
55
|
value: 0,
|
|
56
56
|
series: [
|
|
@@ -61,15 +61,15 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
61
61
|
]
|
|
62
62
|
};
|
|
63
63
|
const a = [];
|
|
64
|
-
(
|
|
64
|
+
(r.dataset.series || []).forEach((l) => {
|
|
65
65
|
a.push(l.from || 0), a.push(l.to || 0);
|
|
66
66
|
});
|
|
67
67
|
const s = Math.max(...a);
|
|
68
68
|
return {
|
|
69
|
-
...
|
|
70
|
-
series: (
|
|
69
|
+
...r.dataset,
|
|
70
|
+
series: (r.dataset.series || []).map((l, n) => ({
|
|
71
71
|
...l,
|
|
72
|
-
color:
|
|
72
|
+
color: Ce(l.color) || de.value[n] || le[n],
|
|
73
73
|
value: ((l.to || 0) - (l.from || 0)) / s * 100
|
|
74
74
|
}))
|
|
75
75
|
};
|
|
@@ -87,62 +87,62 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
87
87
|
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
88
88
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
89
89
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3
|
|
90
|
-
}),
|
|
91
|
-
Q(() =>
|
|
92
|
-
|
|
90
|
+
}), $ = h(0), w = h(0), v = h(e.value.style.chart.animation.use ? 0 : r.dataset.value);
|
|
91
|
+
Q(() => r.dataset.value, () => {
|
|
92
|
+
J(r.dataset.value);
|
|
93
93
|
});
|
|
94
94
|
const d = p(() => {
|
|
95
|
-
const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / (
|
|
95
|
+
const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / ($.value - w.value)) + Math.PI;
|
|
96
96
|
return {
|
|
97
97
|
x1: a,
|
|
98
98
|
y1: s,
|
|
99
99
|
x2: a + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l),
|
|
100
100
|
y2: s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l)
|
|
101
101
|
};
|
|
102
|
-
}),
|
|
103
|
-
const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / (
|
|
104
|
-
return isNaN(
|
|
105
|
-
}),
|
|
102
|
+
}), K = p(() => {
|
|
103
|
+
const a = t.value.width / 2, s = u.value.base, l = Math.PI * ((v.value + 0 - w.value) / ($.value - w.value)) + Math.PI, n = a + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.cos(l), P = s + u.value.pointerSize * t.value.pointerSize * 0.9 * Math.sin(l), k = t.value.pointerRadius, ye = a + k * Math.cos(l + Math.PI / 2), ge = s + k * Math.sin(l + Math.PI / 2), pe = a + k * Math.cos(l - Math.PI / 2), me = s + k * Math.sin(l - Math.PI / 2);
|
|
104
|
+
return isNaN(n) ? null : `M ${n},${P} ${ye},${ge} ${pe},${me} Z`;
|
|
105
|
+
}), Y = p(() => {
|
|
106
106
|
for (let a = 0; a < b.value.series.length; a += 1) {
|
|
107
|
-
const { color: s, from: l, to:
|
|
108
|
-
if (v.value >= l && v.value <=
|
|
107
|
+
const { color: s, from: l, to: n } = b.value.series[a];
|
|
108
|
+
if (v.value >= l && v.value <= n)
|
|
109
109
|
return s;
|
|
110
110
|
}
|
|
111
111
|
return "#2D353C";
|
|
112
112
|
}), M = h(null);
|
|
113
113
|
function Z() {
|
|
114
|
-
if (se(
|
|
114
|
+
if (se(r.dataset) ? O({
|
|
115
115
|
componentName: "VueUiGauge",
|
|
116
116
|
type: "dataset"
|
|
117
117
|
}) : (re({
|
|
118
|
-
datasetObject:
|
|
118
|
+
datasetObject: r.dataset,
|
|
119
119
|
requiredAttributes: ["value", "series"]
|
|
120
120
|
}).forEach((a) => {
|
|
121
|
-
|
|
121
|
+
O({
|
|
122
122
|
componentName: "VueUiGauge",
|
|
123
123
|
type: "datasetAttribute",
|
|
124
124
|
property: a
|
|
125
125
|
});
|
|
126
|
-
}), Object.hasOwn(
|
|
126
|
+
}), Object.hasOwn(r.dataset, "series") && (r.dataset.series.length ? r.dataset.series.forEach((a, s) => {
|
|
127
127
|
re({
|
|
128
128
|
datasetObject: a,
|
|
129
129
|
requiredAttributes: ["from", "to"]
|
|
130
130
|
}).forEach((l) => {
|
|
131
|
-
|
|
131
|
+
O({
|
|
132
132
|
componentName: "VueUiGauge",
|
|
133
133
|
type: "datasetSerieAttribute",
|
|
134
134
|
property: l,
|
|
135
135
|
index: s
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
|
-
}) :
|
|
138
|
+
}) : O({
|
|
139
139
|
componentName: "VueUiGauge",
|
|
140
140
|
type: "datasetAttributeEmpty",
|
|
141
141
|
property: "series"
|
|
142
|
-
}))),
|
|
142
|
+
}))), J(r.dataset.value || 0), e.value.responsive) {
|
|
143
143
|
const a = Ie(() => {
|
|
144
144
|
const { width: s, height: l } = Oe({
|
|
145
|
-
chart:
|
|
145
|
+
chart: C.value,
|
|
146
146
|
title: e.value.style.chart.title.text ? U.value : null,
|
|
147
147
|
legend: B.value
|
|
148
148
|
});
|
|
@@ -160,7 +160,7 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
160
160
|
fallback: 2
|
|
161
161
|
});
|
|
162
162
|
});
|
|
163
|
-
M.value = new ResizeObserver(a), M.value.observe(
|
|
163
|
+
M.value = new ResizeObserver(a), M.value.observe(C.value.parentNode);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
ke(() => {
|
|
@@ -168,15 +168,15 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
168
168
|
}), be(() => {
|
|
169
169
|
M.value && M.value.disconnect();
|
|
170
170
|
});
|
|
171
|
-
function
|
|
171
|
+
function J(a) {
|
|
172
172
|
const s = [];
|
|
173
173
|
(b.value.series || []).forEach((k) => {
|
|
174
174
|
s.push(k.from || 0), s.push(k.to || 0);
|
|
175
|
-
}),
|
|
175
|
+
}), $.value = Math.max(...s), w.value = Math.min(...s);
|
|
176
176
|
let l = e.value.style.chart.animation.speed;
|
|
177
|
-
const
|
|
177
|
+
const n = Math.abs(a - v.value) / (l * 60);
|
|
178
178
|
function P() {
|
|
179
|
-
v.value < a ? v.value = Math.min(v.value +
|
|
179
|
+
v.value < a ? v.value = Math.min(v.value + n, a) : v.value > a && (v.value = Math.max(v.value - n, a)), v.value !== a && requestAnimationFrame(P);
|
|
180
180
|
}
|
|
181
181
|
P();
|
|
182
182
|
}
|
|
@@ -207,33 +207,33 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
207
207
|
u.value.base,
|
|
208
208
|
u.value.gradients,
|
|
209
209
|
u.value.gradients,
|
|
210
|
-
|
|
210
|
+
0.95,
|
|
211
211
|
1,
|
|
212
212
|
1,
|
|
213
213
|
180,
|
|
214
|
-
|
|
214
|
+
110.02,
|
|
215
215
|
2 * t.value.trackSize
|
|
216
216
|
)), F = h(!1);
|
|
217
217
|
function fe(a) {
|
|
218
|
-
F.value = a,
|
|
218
|
+
F.value = a, D.value += 1;
|
|
219
219
|
}
|
|
220
220
|
return ie({
|
|
221
221
|
generatePdf: q,
|
|
222
222
|
generateImage: H
|
|
223
|
-
}), (a, s) => (
|
|
223
|
+
}), (a, s) => (o(), i("div", {
|
|
224
224
|
class: ee(`vue-ui-gauge ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
225
225
|
ref_key: "gaugeChart",
|
|
226
|
-
ref:
|
|
226
|
+
ref: C,
|
|
227
227
|
id: `vue-ui-gauge_${m.value}`,
|
|
228
|
-
style:
|
|
228
|
+
style: G(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
229
229
|
}, [
|
|
230
|
-
e.value.style.chart.title.text ? (
|
|
230
|
+
e.value.style.chart.title.text ? (o(), i("div", {
|
|
231
231
|
key: 0,
|
|
232
232
|
ref_key: "chartTitle",
|
|
233
233
|
ref: U,
|
|
234
|
-
style:
|
|
234
|
+
style: G(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
235
235
|
}, [
|
|
236
|
-
(
|
|
236
|
+
(o(), R(Ge, {
|
|
237
237
|
key: `title_${L.value}`,
|
|
238
238
|
config: {
|
|
239
239
|
title: {
|
|
@@ -247,15 +247,15 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
247
247
|
}
|
|
248
248
|
}, {
|
|
249
249
|
default: I(() => [
|
|
250
|
-
e.value.translations.base &&
|
|
250
|
+
e.value.translations.base && N.dataset.base ? (o(), i("span", Ae, S(e.value.translations.base) + ": " + S(N.dataset.base), 1)) : g("", !0)
|
|
251
251
|
]),
|
|
252
252
|
_: 1
|
|
253
253
|
}, 8, ["config"]))
|
|
254
254
|
], 4)) : g("", !0),
|
|
255
|
-
e.value.userOptions.show && z.value ? (
|
|
255
|
+
e.value.userOptions.show && z.value ? (o(), R(Ne, {
|
|
256
256
|
ref_key: "details",
|
|
257
257
|
ref: ve,
|
|
258
|
-
key: `user_options_${
|
|
258
|
+
key: `user_options_${D.value}`,
|
|
259
259
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
260
260
|
color: e.value.style.chart.color,
|
|
261
261
|
isImaging: c(V),
|
|
@@ -267,7 +267,7 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
267
267
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
268
268
|
isFullscreen: F.value,
|
|
269
269
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
270
|
-
chartElement:
|
|
270
|
+
chartElement: C.value,
|
|
271
271
|
onToggleFullscreen: fe,
|
|
272
272
|
onGeneratePdf: c(q),
|
|
273
273
|
onGenerateImage: c(H)
|
|
@@ -288,18 +288,18 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
288
288
|
} : void 0,
|
|
289
289
|
a.$slots.optionFullscreen ? {
|
|
290
290
|
name: "optionFullscreen",
|
|
291
|
-
fn: I(({ toggleFullscreen: l, isFullscreen:
|
|
292
|
-
x(a.$slots, "optionFullscreen", te(ae({ toggleFullscreen: l, isFullscreen:
|
|
291
|
+
fn: I(({ toggleFullscreen: l, isFullscreen: n }) => [
|
|
292
|
+
x(a.$slots, "optionFullscreen", te(ae({ toggleFullscreen: l, isFullscreen: n })), void 0, !0)
|
|
293
293
|
]),
|
|
294
294
|
key: "2"
|
|
295
295
|
} : void 0
|
|
296
296
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : g("", !0),
|
|
297
|
-
z.value ? (
|
|
297
|
+
z.value ? (o(), i("svg", {
|
|
298
298
|
key: 2,
|
|
299
|
-
xmlns: c(
|
|
299
|
+
xmlns: c($e),
|
|
300
300
|
class: ee({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
301
301
|
viewBox: `0 0 ${t.value.width <= 0 ? 10 : t.value.width} ${t.value.height <= 0 ? 10 : t.value.height}`,
|
|
302
|
-
style:
|
|
302
|
+
style: G(`max-width:100%;overflow:hidden !important;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
303
303
|
}, [
|
|
304
304
|
f("defs", null, [
|
|
305
305
|
f("radialGradient", {
|
|
@@ -312,17 +312,17 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
312
312
|
}, [
|
|
313
313
|
f("stop", {
|
|
314
314
|
offset: "0%",
|
|
315
|
-
"stop-color":
|
|
315
|
+
"stop-color": c(j)("#FFFFFF", 1)
|
|
316
316
|
}, null, 8, Ue),
|
|
317
317
|
f("stop", {
|
|
318
318
|
offset: "80%",
|
|
319
|
-
"stop-color":
|
|
319
|
+
"stop-color": c(j)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
320
320
|
}, null, 8, Be),
|
|
321
321
|
f("stop", {
|
|
322
322
|
offset: "100%",
|
|
323
|
-
"stop-color":
|
|
323
|
+
"stop-color": c(j)("#FFFFFF", 1)
|
|
324
324
|
}, null, 8, Le)
|
|
325
|
-
], 8,
|
|
325
|
+
], 8, De)
|
|
326
326
|
]),
|
|
327
327
|
f("defs", null, [
|
|
328
328
|
f("filter", {
|
|
@@ -338,39 +338,30 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
338
338
|
}, null, 8, Te)
|
|
339
339
|
], 8, We)
|
|
340
340
|
]),
|
|
341
|
-
(
|
|
342
|
-
key: `arc_${
|
|
341
|
+
(o(!0), i(E, null, A(_.value, (l, n) => (o(), i("path", {
|
|
342
|
+
key: `arc_${n}`,
|
|
343
343
|
d: l.arcSlice,
|
|
344
344
|
fill: l.color,
|
|
345
345
|
stroke: e.value.style.chart.backgroundColor,
|
|
346
346
|
"stroke-linecap": "round"
|
|
347
347
|
}, null, 8, Ve))), 128)),
|
|
348
|
-
e.value.style.chart.layout.track.useGradient ? (
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
x: 0,
|
|
359
|
-
y: u.value.base,
|
|
360
|
-
width: t.value.width <= 0 ? 1e-4 : t.value.width,
|
|
361
|
-
height: t.value.height * 0.3 <= 0 ? 1e-4 : t.value.height * 0.3,
|
|
362
|
-
fill: e.value.style.chart.backgroundColor
|
|
363
|
-
}, null, 8, He)
|
|
364
|
-
], 64)) : g("", !0),
|
|
365
|
-
(r(!0), n(O, null, A(_.value, (l, i) => (r(), n("text", {
|
|
366
|
-
x: c(N)({
|
|
348
|
+
e.value.style.chart.layout.track.useGradient ? (o(!0), i(E, { key: 0 }, A(he.value, (l, n) => (o(), i("path", {
|
|
349
|
+
key: `arc_${n}`,
|
|
350
|
+
d: l.arcSlice,
|
|
351
|
+
fill: "#FFFFFF",
|
|
352
|
+
stroke: "none",
|
|
353
|
+
"stroke-linecap": "round",
|
|
354
|
+
filter: `url(#blur_${m.value})`
|
|
355
|
+
}, null, 8, qe))), 128)) : g("", !0),
|
|
356
|
+
(o(!0), i(E, null, A(_.value, (l, n) => (o(), i("text", {
|
|
357
|
+
x: c(X)({
|
|
367
358
|
centerX: t.value.width / 2,
|
|
368
359
|
centerY: u.value.base,
|
|
369
360
|
initX: l.center.startX,
|
|
370
361
|
initY: l.center.startY,
|
|
371
362
|
offset: t.value.markerOffset
|
|
372
363
|
}).x,
|
|
373
|
-
y: c(
|
|
364
|
+
y: c(X)({
|
|
374
365
|
centerX: t.value.width / 2,
|
|
375
366
|
centerY: u.value.base,
|
|
376
367
|
initX: l.center.startX,
|
|
@@ -381,16 +372,16 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
381
372
|
"font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
382
373
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
383
374
|
fill: e.value.style.chart.layout.markers.color
|
|
384
|
-
}, S(l.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9,
|
|
375
|
+
}, S(l.from.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, He))), 256)),
|
|
385
376
|
f("text", {
|
|
386
|
-
x: c(
|
|
377
|
+
x: c(X)({
|
|
387
378
|
centerX: t.value.width / 2,
|
|
388
379
|
centerY: u.value.base,
|
|
389
380
|
initX: _.value.at(-1).endX,
|
|
390
381
|
initY: _.value.at(-1).endY,
|
|
391
382
|
offset: t.value.markerOffset
|
|
392
383
|
}).x,
|
|
393
|
-
y: c(
|
|
384
|
+
y: c(X)({
|
|
394
385
|
centerX: t.value.width / 2,
|
|
395
386
|
centerY: u.value.base,
|
|
396
387
|
initX: _.value.at(-1).endX,
|
|
@@ -401,9 +392,9 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
401
392
|
"font-size": t.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
402
393
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
403
394
|
fill: e.value.style.chart.layout.markers.color
|
|
404
|
-
}, S(
|
|
405
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (
|
|
406
|
-
isNaN(d.value.x2) ? g("", !0) : (
|
|
395
|
+
}, S($.value.toFixed(e.value.style.chart.layout.markers.roundingValue)), 9, Ke),
|
|
396
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (o(), i("g", Ze, [
|
|
397
|
+
isNaN(d.value.x2) ? g("", !0) : (o(), i("line", {
|
|
407
398
|
key: 0,
|
|
408
399
|
x1: d.value.x1,
|
|
409
400
|
y1: d.value.y1,
|
|
@@ -412,18 +403,18 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
412
403
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
413
404
|
"stroke-width": t.value.pointerStrokeWidth,
|
|
414
405
|
"stroke-linecap": "round"
|
|
415
|
-
}, null, 8,
|
|
416
|
-
isNaN(d.value.x2) ? g("", !0) : (
|
|
406
|
+
}, null, 8, Je)),
|
|
407
|
+
isNaN(d.value.x2) ? g("", !0) : (o(), i("line", {
|
|
417
408
|
key: 1,
|
|
418
409
|
x1: d.value.x1,
|
|
419
410
|
y1: d.value.y1,
|
|
420
411
|
x2: d.value.x2,
|
|
421
412
|
y2: d.value.y2,
|
|
422
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
413
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? Y.value : e.value.style.chart.layout.pointer.color,
|
|
423
414
|
"stroke-linecap": "round",
|
|
424
415
|
"stroke-width": t.value.pointerStrokeWidth * 0.7
|
|
425
|
-
}, null, 8,
|
|
426
|
-
!isNaN(d.value.x2) && e.value.style.chart.layout.track.useGradient ? (
|
|
416
|
+
}, null, 8, Qe)),
|
|
417
|
+
!isNaN(d.value.x2) && e.value.style.chart.layout.track.useGradient ? (o(), i("line", {
|
|
427
418
|
key: 2,
|
|
428
419
|
x1: d.value.x1,
|
|
429
420
|
y1: d.value.y1,
|
|
@@ -433,16 +424,16 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
433
424
|
"stroke-linecap": "round",
|
|
434
425
|
"stroke-width": t.value.pointerStrokeWidth * 0.3,
|
|
435
426
|
filter: `url(#blur_${m.value})`
|
|
436
|
-
}, null, 8,
|
|
437
|
-
])) : (
|
|
438
|
-
|
|
427
|
+
}, null, 8, et)) : g("", !0)
|
|
428
|
+
])) : (o(), i("g", tt, [
|
|
429
|
+
K.value ? (o(), i("path", {
|
|
439
430
|
key: 0,
|
|
440
|
-
d:
|
|
441
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
431
|
+
d: K.value,
|
|
432
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? Y.value : e.value.style.chart.layout.pointer.color,
|
|
442
433
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
443
434
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
444
435
|
"stroke-linejoin": "round"
|
|
445
|
-
}, null, 8,
|
|
436
|
+
}, null, 8, at)) : g("", !0)
|
|
446
437
|
])),
|
|
447
438
|
f("circle", {
|
|
448
439
|
cx: t.value.width / 2,
|
|
@@ -451,14 +442,14 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
451
442
|
r: t.value.pointerRadius <= 0 ? 1e-4 : t.value.pointerRadius,
|
|
452
443
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
453
444
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
454
|
-
}, null, 8,
|
|
445
|
+
}, null, 8, lt),
|
|
455
446
|
f("text", {
|
|
456
447
|
x: t.value.width / 2,
|
|
457
448
|
y: u.value.ratingBase,
|
|
458
449
|
"text-anchor": "middle",
|
|
459
450
|
"font-size": t.value.legendFontSize,
|
|
460
451
|
"font-weight": "bold",
|
|
461
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
452
|
+
fill: e.value.style.chart.legend.useRatingColor ? Y.value : e.value.style.chart.legend.color
|
|
462
453
|
}, S(c(Me)(
|
|
463
454
|
e.value.style.chart.legend.formatter,
|
|
464
455
|
v.value,
|
|
@@ -468,13 +459,13 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
468
459
|
s: e.value.style.chart.legend.suffix,
|
|
469
460
|
r: e.value.style.chart.legend.roundingValue
|
|
470
461
|
})
|
|
471
|
-
)), 9,
|
|
462
|
+
)), 9, st),
|
|
472
463
|
x(a.$slots, "svg", { svg: t.value }, void 0, !0)
|
|
473
|
-
], 14,
|
|
474
|
-
a.$slots.watermark ? (
|
|
464
|
+
], 14, je)) : g("", !0),
|
|
465
|
+
a.$slots.watermark ? (o(), i("div", rt, [
|
|
475
466
|
x(a.$slots, "watermark", te(ae({ isPrinting: c(T) || c(V) })), void 0, !0)
|
|
476
467
|
])) : g("", !0),
|
|
477
|
-
z.value ? g("", !0) : (
|
|
468
|
+
z.value ? g("", !0) : (o(), R(Ye, {
|
|
478
469
|
key: 4,
|
|
479
470
|
config: {
|
|
480
471
|
type: "gauge",
|
|
@@ -494,7 +485,7 @@ const Ee = ["id"], Ae = { key: 0 }, De = ["xmlns", "viewBox"], je = ["id"], Ue =
|
|
|
494
485
|
], 512)
|
|
495
486
|
], 14, Ee));
|
|
496
487
|
}
|
|
497
|
-
},
|
|
488
|
+
}, yt = /* @__PURE__ */ Re(ot, [["__scopeId", "data-v-0b442e48"]]);
|
|
498
489
|
export {
|
|
499
|
-
|
|
490
|
+
yt as default
|
|
500
491
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as C, computed as c, watch as z, openBlock as a, createElementBlock as s, normalizeStyle as G, createElementVNode as t, createCommentVNode as r, Fragment as g, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as L, c as b, e as N, i as p, f as k } from "./index-
|
|
3
|
-
import { u as $ } from "./useNestedProp-
|
|
2
|
+
import { u as L, c as b, e as N, i as p, f as k } from "./index-DP8dqFNd.js";
|
|
3
|
+
import { u as $ } from "./useNestedProp-B-oZxD4x.js";
|
|
4
4
|
const F = ["viewBox", "width"], B = { key: 0 }, P = ["id"], D = ["stop-color"], I = ["stop-color"], M = ["stroke"], U = ["stroke"], V = ["width", "fill"], E = ["fill"], O = { key: 0 }, S = ["id"], A = /* @__PURE__ */ t("feGaussianBlur", {
|
|
5
5
|
in: "SourceGraphic",
|
|
6
6
|
stdDeviation: 1
|
|
@@ -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-CzjC8LfY.cjs"),m=require("./useNestedProp-CY7DebVH.cjs"),k=["viewBox","width"],_={key:0},p=["id"],v=["stop-color"],g=["stop-color"],y=["stroke"],C=["stroke"],N=["width","fill"],w=["fill"],x={key:0},B=["id"],E=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),V=[E],b=["stroke"],L=["stroke","stroke-dasharray","stroke-dashoffset"],z=["filter"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["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})},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",_,[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,g)],8,p)])):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,y),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,N),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%"},V,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,b),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,L),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,G)],8,z)):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,F)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,k))}};exports.default=$;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useCssVars as Me, computed as h, ref as g, watch as be, onMounted as Se, openBlock as s, createElementBlock as n, normalizeClass as U, normalizeStyle as m, createBlock as Y, createCommentVNode as c, unref as i, createSlots as Ne, withCtx as k, renderSlot as x, normalizeProps as j, guardReactiveProps as W, Fragment as A, renderList as S, createElementVNode as u, toDisplayString as f, createVNode as me, withKeys as Oe, createTextVNode as Fe, nextTick as Ve } from "vue";
|
|
2
|
-
import { u as Pe, o as Ie, e as xe, c as te, t as Be,
|
|
3
|
-
import { _ as Ye } from "./Title-
|
|
4
|
-
import { u as je, U as We } from "./usePrinter-
|
|
5
|
-
import { _ as
|
|
6
|
-
import
|
|
7
|
-
import Je from "./BaseIcon-
|
|
8
|
-
import Qe from "./vue-ui-accordion-
|
|
9
|
-
import { u as we } from "./useNestedProp-
|
|
2
|
+
import { u as Pe, o as Ie, e as xe, c as te, t as Be, L as Re, g as Ee, M as ae, X as Ge, F as oe, i as F, f as N, v as z, x as Xe, y as He, q as De, r as Ue } from "./index-DP8dqFNd.js";
|
|
3
|
+
import { _ as Ye } from "./Title-Bx-VO3md.js";
|
|
4
|
+
import { u as je, U as We } from "./usePrinter-DiuHo4LO.js";
|
|
5
|
+
import { _ as qe } from "./Tooltip-Dk-cimhQ.js";
|
|
6
|
+
import Ke from "./vue-ui-skeleton-B30ZhUV7.js";
|
|
7
|
+
import Je from "./BaseIcon-BIQXWVMS.js";
|
|
8
|
+
import Qe from "./vue-ui-accordion-Dl8zkZPk.js";
|
|
9
|
+
import { u as we } from "./useNestedProp-B-oZxD4x.js";
|
|
10
10
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width"], ol = ["font-size", "font-weight", "fill", "x", "y"], sl = ["x", "y", "width", "height", "onMouseover"], ul = { key: 0 }, nl = ["font-size", "fill", "x", "y", "font-weight"], il = { key: 0 }, rl = ["text-anchor", "font-size", "fill", "font-weight", "transform"], vl = { key: 1 }, dl = ["x", "y", "width", "height", "stroke", "stroke-width"], yl = { key: 2 }, cl = ["id"], hl = ["stop-color"], gl = ["stop-color"], pl = ["x", "y", "font-size", "fill"], fl = ["x", "y", "height", "rx", "fill"], bl = ["x", "y", "font-size", "fill"], ml = ["stroke", "x1", "x2", "y1", "y2"], xl = ["fill", "d"], wl = { key: 3 }, _l = {
|
|
12
12
|
id: "colorScaleHorizontal",
|
|
@@ -43,7 +43,7 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
43
43
|
componentName: "VueUiHeatmap",
|
|
44
44
|
type: "dataset"
|
|
45
45
|
});
|
|
46
|
-
const V = g(te()),
|
|
46
|
+
const V = g(te()), q = g(null), $e = g(null), K = g(!1), J = g(""), se = g(void 0), P = g(null), ue = g(0), ne = g(null), ie = g(!1), re = g(0), e = h({
|
|
47
47
|
get: () => ve(),
|
|
48
48
|
set: (l) => l
|
|
49
49
|
});
|
|
@@ -149,7 +149,7 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
149
149
|
seriesIndex: a,
|
|
150
150
|
series: D.value,
|
|
151
151
|
config: e.value
|
|
152
|
-
},
|
|
152
|
+
}, K.value = !0;
|
|
153
153
|
let ee = "";
|
|
154
154
|
const le = e.value.style.tooltip.customFormat;
|
|
155
155
|
Xe(le) && He(() => le({
|
|
@@ -212,7 +212,7 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
212
212
|
toggleTooltip: fe
|
|
213
213
|
}), (l, a) => (s(), n("div", {
|
|
214
214
|
ref_key: "heatmapChart",
|
|
215
|
-
ref:
|
|
215
|
+
ref: q,
|
|
216
216
|
class: U(`vue-ui-heatmap ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
217
217
|
style: m(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor}`),
|
|
218
218
|
id: `heatmap__${V.value}`
|
|
@@ -253,7 +253,7 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
253
253
|
isFullscreen: E.value,
|
|
254
254
|
isTooltip: w.value.showTooltip,
|
|
255
255
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
256
|
-
chartElement:
|
|
256
|
+
chartElement: q.value,
|
|
257
257
|
onToggleFullscreen: ze,
|
|
258
258
|
onGeneratePdf: i(ce),
|
|
259
259
|
onGenerateCsv: ge,
|
|
@@ -361,7 +361,7 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
361
361
|
stroke: "none",
|
|
362
362
|
onMouseover: (L) => Ae(y, v, t.value.left + d.value.width * p, t.value.top + d.value.height * v),
|
|
363
363
|
onMouseout: a[0] || (a[0] = (L) => {
|
|
364
|
-
|
|
364
|
+
K.value = !1, se.value = void 0, C.value = null, P.value = null;
|
|
365
365
|
})
|
|
366
366
|
}, null, 40, sl)
|
|
367
367
|
]))), 256)),
|
|
@@ -548,7 +548,7 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
548
548
|
l.$slots.watermark ? (s(), n("div", Ml, [
|
|
549
549
|
x(l.$slots, "watermark", j(W({ isPrinting: i(de) || i(ye) })), void 0, !0)
|
|
550
550
|
])) : c("", !0),
|
|
551
|
-
X.value ? c("", !0) : (s(), Y(
|
|
551
|
+
X.value ? c("", !0) : (s(), Y(Ke, {
|
|
552
552
|
key: 4,
|
|
553
553
|
config: {
|
|
554
554
|
type: "heatmap",
|
|
@@ -560,8 +560,8 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
}, null, 8, ["config"])),
|
|
563
|
-
me(
|
|
564
|
-
show: w.value.showTooltip &&
|
|
563
|
+
me(qe, {
|
|
564
|
+
show: w.value.showTooltip && K.value,
|
|
565
565
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
566
566
|
color: e.value.style.tooltip.color,
|
|
567
567
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -571,7 +571,7 @@ const el = ["id"], ll = ["xmlns", "viewBox"], tl = ["x", "y", "width", "height",
|
|
|
571
571
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
572
572
|
position: e.value.style.tooltip.position,
|
|
573
573
|
offsetY: e.value.style.tooltip.offsetY,
|
|
574
|
-
parent:
|
|
574
|
+
parent: q.value,
|
|
575
575
|
content: J.value,
|
|
576
576
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
577
577
|
}, {
|