vue-data-ui 3.1.16 → 3.1.18
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-5vUlLOBt.js → Arrow-BC5klzOh.js} +1 -1
- package/dist/{BaseDraggableDialog-RzeiqHjP.js → BaseDraggableDialog-CkjMZyIs.js} +2 -2
- package/dist/{BaseIcon-wGdAhoaF.js → BaseIcon-BPiT94Lb.js} +1 -1
- package/dist/{ColorPicker-DNOgu-Rw.js → ColorPicker-bx5e2RB2.js} +2 -2
- package/dist/{DataTable-JX5MWop0.js → DataTable-CywujQw9.js} +2 -2
- package/dist/{Legend-QXKyEiPD.js → Legend-h35dp0Qf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BG4C0Flj.js → NonSvgPenAndPaper-CvnlQ378.js} +3 -3
- package/dist/{PackageVersion-BSXHahdf.js → PackageVersion-BzGzkGiC.js} +1 -1
- package/dist/{PenAndPaper-ScGkrINJ.js → PenAndPaper-Deh70G9d.js} +3 -3
- package/dist/{Shape-B5nsWKct.js → Shape-sVxD_SDm.js} +1 -1
- package/dist/{Slicer-BP5JybRr.js → Slicer-CQB967He.js} +2 -2
- package/dist/{SparkTooltip-qH7jdTTV.js → SparkTooltip-DFRSPT3_.js} +1 -1
- package/dist/{Title-Cs26H3hX.js → Title-B_WMW2Bp.js} +1 -1
- package/dist/{Tooltip-BAx7Btsw.js → Tooltip-Db9jy0Iu.js} +1 -1
- package/dist/{UserOptions-BLVLaZDQ.js → UserOptions-CtECQwBN.js} +2 -2
- package/dist/{dom-to-png-8xSfWIE3.js → dom-to-png-BHpS3cMi.js} +1 -1
- package/dist/{img-DYi-2xfu.js → img-BArHHegM.js} +1 -1
- package/dist/{index-D6OjIQeq.js → index-smzxfsyV.js} +2 -2
- package/dist/{pdf-BE8YApaL.js → pdf-D1L3r23x.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-CeJVwNle.js → useAutoSizeLabelsInsideViewbox-DeqXeTNw.js} +1 -1
- package/dist/{useNestedProp-QUe0ze7N.js → useNestedProp-DeKmJzsE.js} +1 -1
- package/dist/{usePrinter-BZ8rT5v2.js → usePrinter-nFj0xF0a.js} +2 -2
- package/dist/{vue-data-ui-C8k4Y_oL.js → vue-data-ui-DcBYykse.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Bt5Fz91G.js → vue-ui-3d-bar-D4rc8PD3.js} +57 -57
- package/dist/{vue-ui-accordion-Cq060UfJ.js → vue-ui-accordion-7cfJUVx5.js} +3 -3
- package/dist/{vue-ui-age-pyramid-8y3q3bso.js → vue-ui-age-pyramid-BXMIUNB_.js} +6 -6
- package/dist/{vue-ui-annotator-CiYwSoCc.js → vue-ui-annotator-aCDhQ-m2.js} +2 -2
- package/dist/{vue-ui-bullet-1eQWn7Q3.js → vue-ui-bullet-Cd_iix-z.js} +7 -7
- package/dist/{vue-ui-candlestick-CIlTxwGr.js → vue-ui-candlestick-C-TTTgiW.js} +7 -7
- package/dist/{vue-ui-carousel-table-CgwL2hyg.js → vue-ui-carousel-table-C58J4zpm.js} +4 -4
- package/dist/{vue-ui-chestnut-DlpqIPgH.js → vue-ui-chestnut-C7u6GW-T.js} +5 -5
- package/dist/{vue-ui-chord-EjxXbSFh.js → vue-ui-chord-DxLU3Fg1.js} +8 -8
- package/dist/{vue-ui-circle-pack-DTCERNzf.js → vue-ui-circle-pack--a_KE7qz.js} +6 -6
- package/dist/{vue-ui-cursor-DvUoY7hb.js → vue-ui-cursor-DJQWAIj8.js} +2 -2
- package/dist/{vue-ui-dashboard-CXhJYlHM.js → vue-ui-dashboard-CIACUYB-.js} +67 -67
- package/dist/{vue-ui-digits-BIyBotSz.js → vue-ui-digits-CLV8h-P8.js} +2 -2
- package/dist/{vue-ui-donut-evolution-UXTR4300.js → vue-ui-donut-evolution-XGJvBQIm.js} +8 -8
- package/dist/{vue-ui-donut-BQZwtNJm.js → vue-ui-donut-sO6G5oor.js} +8 -8
- package/dist/{vue-ui-dumbbell-g6zDDlZe.js → vue-ui-dumbbell-Bi11rDL7.js} +7 -7
- package/dist/{vue-ui-flow-Ca_dZjw9.js → vue-ui-flow-RP2v-aZJ.js} +7 -7
- package/dist/{vue-ui-funnel-Om9LCUCJ.js → vue-ui-funnel-TVQXGyw7.js} +6 -6
- package/dist/{vue-ui-galaxy-BLUw06YE.js → vue-ui-galaxy-CUURaWgH.js} +7 -7
- package/dist/{vue-ui-gauge-CK-pZBWT.js → vue-ui-gauge-hTRlwARA.js} +125 -125
- package/dist/{vue-ui-gizmo-BSxlb7sM.js → vue-ui-gizmo-CZIgBvWV.js} +3 -3
- package/dist/{vue-ui-heatmap-DZg46_w0.js → vue-ui-heatmap-RKtFMgDP.js} +7 -7
- package/dist/{vue-ui-history-plot-D8sq7qDo.js → vue-ui-history-plot-fbTG7Mke.js} +7 -7
- package/dist/{vue-ui-kpi-CK4Sz-AD.js → vue-ui-kpi-CfX-zUDS.js} +3 -3
- package/dist/{vue-ui-mini-loader-D-potdmP.js → vue-ui-mini-loader-C1nANuMy.js} +2 -2
- package/dist/{vue-ui-molecule-B36nPur5.js → vue-ui-molecule-BU7T1ysb.js} +5 -5
- package/dist/{vue-ui-mood-radar-DaacpsBj.js → vue-ui-mood-radar-Cb8cFWzE.js} +7 -7
- package/dist/{vue-ui-nested-donuts-UgIV0zrL.js → vue-ui-nested-donuts-DTZD8BTA.js} +7 -7
- package/dist/{vue-ui-onion-DWUFUuVG.js → vue-ui-onion-5xmlEUsJ.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DleqNzzO.js → vue-ui-parallel-coordinate-plot-Wc0TbyJH.js} +8 -8
- package/dist/{vue-ui-quadrant-B_dlGzjJ.js → vue-ui-quadrant-BC99Cua7.js} +8 -8
- package/dist/{vue-ui-quick-chart-Dyo1b6H6.js → vue-ui-quick-chart-Cbv2UcEu.js} +6 -6
- package/dist/{vue-ui-radar-NbR2uHg4.js → vue-ui-radar-B-ey_fDA.js} +8 -8
- package/dist/{vue-ui-rating-CryvFvr7.js → vue-ui-rating-BNCKLcCa.js} +2 -2
- package/dist/{vue-ui-relation-circle-DF6dE4zW.js → vue-ui-relation-circle-CYFQcAgc.js} +7 -7
- package/dist/{vue-ui-ridgeline-8-dQ3bbv.js → vue-ui-ridgeline-B_6K1FTc.js} +8 -8
- package/dist/{vue-ui-rings-B147Pr4Q.js → vue-ui-rings-D_BTgxYc.js} +8 -8
- package/dist/{vue-ui-scatter-yKBu-zLG.js → vue-ui-scatter-B69SYOfv.js} +8 -8
- package/dist/{vue-ui-skeleton-C-jwsbrt.js → vue-ui-skeleton-CpkwgALO.js} +3 -3
- package/dist/{vue-ui-smiley-DFJ2-pxP.js → vue-ui-smiley-t16dEIoQ.js} +2 -2
- package/dist/vue-ui-spark-trend-DskdjYw4.js +336 -0
- package/dist/{vue-ui-sparkbar-DRsv3ulD.js → vue-ui-sparkbar-C-evQIq2.js} +81 -81
- package/dist/{vue-ui-sparkgauge-BfoO71Ji.js → vue-ui-sparkgauge-DycVSHAs.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DJtyI7Bl.js → vue-ui-sparkhistogram-CZLnlSUD.js} +4 -4
- package/dist/{vue-ui-sparkline-dHdyjp0m.js → vue-ui-sparkline-C1nZRVTa.js} +169 -169
- package/dist/{vue-ui-sparkstackbar-DQhZm6u2.js → vue-ui-sparkstackbar-CUUeuwAI.js} +3 -3
- package/dist/{vue-ui-stackbar-BEoSEdhL.js → vue-ui-stackbar-D27Wq8Y4.js} +9 -9
- package/dist/{vue-ui-strip-plot-CNqY9uEA.js → vue-ui-strip-plot-D-srKJUr.js} +7 -7
- package/dist/{vue-ui-table-ywthhZy0.js → vue-ui-table-LcImk124.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DDR4_yLN.js → vue-ui-table-heatmap-BfXe_f0K.js} +5 -5
- package/dist/{vue-ui-table-sparkline-qFmRMBGM.js → vue-ui-table-sparkline-DyrnPNGv.js} +4 -4
- package/dist/{vue-ui-thermometer-Dk534ePJ.js → vue-ui-thermometer-DxRDmz-L.js} +7 -7
- package/dist/{vue-ui-timer-UVZZcr4T.js → vue-ui-timer-Bbzb09O8.js} +5 -5
- package/dist/{vue-ui-tiremarks-BaFMrJSV.js → vue-ui-tiremarks-DWy1Dkub.js} +6 -6
- package/dist/{vue-ui-treemap-CuHOtSzw.js → vue-ui-treemap-C3Ek_E4n.js} +8 -8
- package/dist/{vue-ui-vertical-bar-C-_UEN9K.js → vue-ui-vertical-bar-CV3Mc1cX.js} +9 -9
- package/dist/{vue-ui-waffle-BTUdTAI_.js → vue-ui-waffle-D2mQJdcV.js} +8 -8
- package/dist/{vue-ui-wheel-BaqvZwV1.js → vue-ui-wheel-zbog7bII.js} +6 -6
- package/dist/{vue-ui-word-cloud-Iry997aF.js → vue-ui-word-cloud-D9iZRkQP.js} +6 -6
- package/dist/{vue-ui-world-B-iFEOiQ.js → vue-ui-world-D5dR5VdK.js} +6 -6
- package/dist/{vue-ui-xy-LlykHLgF.js → vue-ui-xy-Cll76_i9.js} +1254 -1250
- package/dist/{vue-ui-xy-canvas-CvkmWMXw.js → vue-ui-xy-canvas-DJVXAfpL.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-spark-trend-BU0OIb8g.js +0 -315
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as lt, c as st, t as rt, a as ot, p as
|
|
1
|
+
import { defineAsyncComponent as K, computed as h, ref as f, toRefs as Je, watch as Q, shallowRef as $e, onMounted as Ke, onBeforeUnmount as Qe, createElementBlock as o, openBlock as r, unref as n, normalizeStyle as ee, normalizeClass as ze, createBlock as j, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as R, createSlots as et, renderSlot as x, normalizeProps as B, guardReactiveProps as U, createVNode as tt, Fragment as k, renderList as $, mergeProps as E, nextTick as at } from "vue";
|
|
2
|
+
import { u as lt, c as st, t as rt, a as ot, p as Fe, b as ut, d as nt, o as Ae, e as it, f as W, g as Ce, m as te, N as A, O as ct, h as vt, X as ht, s as ae, I as dt, r as ft, k as le, i as se, E as re } from "./index-smzxfsyV.js";
|
|
3
3
|
import { t as yt, u as mt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as gt } from "./usePrinter-
|
|
4
|
+
import { u as Oe } from "./useNestedProp-DeKmJzsE.js";
|
|
5
|
+
import { u as gt } from "./usePrinter-nFj0xF0a.js";
|
|
6
6
|
import { u as pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import bt from "./Title-
|
|
9
|
-
import _t from "./img-
|
|
8
|
+
import bt from "./Title-B_WMW2Bp.js";
|
|
9
|
+
import _t from "./img-BArHHegM.js";
|
|
10
10
|
import { u as wt, B as St } from "./BaseScanner-BgWxam9d.js";
|
|
11
|
-
import { u as xt } from "./useAutoSizeLabelsInsideViewbox-
|
|
11
|
+
import { u as xt } from "./useAutoSizeLabelsInsideViewbox-DeqXeTNw.js";
|
|
12
12
|
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "height"], Ot = ["id"], Nt = ["stop-color"], Mt = ["stop-color"], Pt = ["stop-color"], It = ["id"], Xt = ["stdDeviation"], Rt = { key: 1 }, Yt = ["d", "fill", "stroke"], Et = ["d", "fill", "stroke"], Lt = ["d", "fill"], Tt = ["id", "d"], Gt = ["fill", "font-size", "font-weight"], jt = ["href", "startOffset"], Bt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Ut = ["d", "filter"], Wt = ["stroke", "stroke-width"], Dt = ["stroke", "stroke-width"], Vt = ["stroke", "stroke-width"], Ht = ["stroke", "stroke-width"], qt = { key: 8 }, Zt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Jt = ["x", "y", "font-size", "font-weight", "fill"], Kt = { key: 0 }, Qt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ea = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ta = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], aa = { key: 1 }, la = ["d", "fill", "stroke", "stroke-width"], sa = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], ra = ["x", "y", "font-size", "fill"], oa = {
|
|
14
14
|
key: 4,
|
|
@@ -29,11 +29,11 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const Pe =
|
|
32
|
+
setup(Ne, { expose: Me }) {
|
|
33
|
+
const Pe = K(() => import("./PenAndPaper-Deh70G9d.js")), Ie = K(() => import("./UserOptions-CtECQwBN.js")), Xe = K(() => import("./PackageVersion-BzGzkGiC.js")), { vue_ui_gauge: Re } = lt(), m = Ne, Ye = h(() => !!m.dataset && Object.keys(m.dataset).length > 0 && m.dataset.series && m.dataset.series.length), w = f(st()), Ee = f(null), oe = f(0), C = f(null), ue = f(null), ne = f(null), ie = f(null), ce = f(null), ve = f(0), e = f(H()), { loading: he, FINAL_DATASET: S, manualLoading: M } = wt({
|
|
34
34
|
...Je(m),
|
|
35
35
|
FINAL_CONFIG: e,
|
|
36
|
-
prepareConfig:
|
|
36
|
+
prepareConfig: H,
|
|
37
37
|
callback: () => {
|
|
38
38
|
Promise.resolve().then(async () => {
|
|
39
39
|
await at();
|
|
@@ -75,31 +75,31 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
})
|
|
78
|
-
}), { userOptionsVisible:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}, { deep: !0 }),
|
|
82
|
-
|
|
78
|
+
}), { userOptionsVisible: D, setUserOptionsVisibility: de, keepUserOptionState: fe } = pt({ config: e.value }), { svgRef: V } = kt({ config: e.value.style.chart.title });
|
|
79
|
+
Q(() => m.config, (t) => {
|
|
80
|
+
he.value || (e.value = H()), D.value = !e.value.userOptions.showOnChartHover, Z(), ve.value += 1;
|
|
81
|
+
}, { deep: !0 }), Q(() => m.dataset, (t) => {
|
|
82
|
+
Z(), t && Object.keys(t).length > 0 && (M.value = e.value?.loading ?? !1);
|
|
83
83
|
}, { deep: !0, immediate: !1 });
|
|
84
|
-
function
|
|
85
|
-
const t =
|
|
84
|
+
function H() {
|
|
85
|
+
const t = Oe({
|
|
86
86
|
userConfig: m.config,
|
|
87
87
|
defaultConfig: Re
|
|
88
88
|
});
|
|
89
89
|
return t.theme ? {
|
|
90
|
-
...
|
|
90
|
+
...Oe({
|
|
91
91
|
userConfig: ut.vue_ui_gauge[t.theme] || m.config,
|
|
92
92
|
defaultConfig: t
|
|
93
93
|
}),
|
|
94
|
-
customPalette: ot[t.theme] ||
|
|
94
|
+
customPalette: ot[t.theme] || Fe
|
|
95
95
|
} : t;
|
|
96
96
|
}
|
|
97
|
-
const { isPrinting:
|
|
97
|
+
const { isPrinting: ye, isImaging: me, generatePdf: ge, generateImage: pe } = gt({
|
|
98
98
|
elementId: `vue-ui-gauge_${w.value}`,
|
|
99
99
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
100
100
|
options: e.value.userOptions.print
|
|
101
101
|
}), Le = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Te = h(() => nt(e.value.customPalette)), O = h(() => {
|
|
102
|
-
if (
|
|
102
|
+
if (Ae(S.value.series || {}))
|
|
103
103
|
return {
|
|
104
104
|
value: 0,
|
|
105
105
|
series: [
|
|
@@ -110,15 +110,15 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
110
110
|
]
|
|
111
111
|
};
|
|
112
112
|
const t = [];
|
|
113
|
-
(
|
|
113
|
+
(S.value.series || []).forEach((a) => {
|
|
114
114
|
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
115
115
|
});
|
|
116
116
|
const u = Math.max(...t);
|
|
117
117
|
return {
|
|
118
|
-
|
|
119
|
-
series: (
|
|
118
|
+
...S.value,
|
|
119
|
+
series: (S.value.series || []).map((a, s) => ({
|
|
120
120
|
...a,
|
|
121
|
-
color: it(a.color) || Te.value[s] ||
|
|
121
|
+
color: it(a.color) || Te.value[s] || Fe[s],
|
|
122
122
|
value: ((a.to || 0) - (a.from || 0)) / u * 100
|
|
123
123
|
}))
|
|
124
124
|
};
|
|
@@ -138,10 +138,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
138
138
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
139
139
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
140
140
|
}), P = f(0), z = f(0), y = f(
|
|
141
|
-
e.value.style.chart.animation.use ? Math.min(
|
|
141
|
+
e.value.style.chart.animation.use ? Math.min(...S.value.series.map((t) => t.from)) : S.value.value
|
|
142
142
|
);
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
Q(() => S.value.value, () => {
|
|
144
|
+
_e(S.value.value);
|
|
145
145
|
});
|
|
146
146
|
const i = h(() => {
|
|
147
147
|
const t = l.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI;
|
|
@@ -151,33 +151,33 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
151
151
|
x2: t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
|
|
152
152
|
y2: u + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
153
153
|
};
|
|
154
|
-
}),
|
|
154
|
+
}), ke = h(() => {
|
|
155
155
|
const t = l.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), g = u + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), _ = l.value.pointerRadius, Ve = t + _ * Math.cos(a + Math.PI / 2), He = u + _ * Math.sin(a + Math.PI / 2), qe = t + _ * Math.cos(a - Math.PI / 2), Ze = u + _ * Math.sin(a - Math.PI / 2);
|
|
156
156
|
return isNaN(s) ? null : `M ${s},${g} ${Ve},${He} ${qe},${Ze} Z`;
|
|
157
|
-
}),
|
|
157
|
+
}), q = h(() => {
|
|
158
158
|
for (let t = 0; t < O.value.series.length; t += 1) {
|
|
159
159
|
const { color: u, from: a, to: s } = O.value.series[t];
|
|
160
160
|
if (y.value >= a && y.value <= s)
|
|
161
161
|
return u;
|
|
162
162
|
}
|
|
163
163
|
return "#2D353C";
|
|
164
|
-
}), F =
|
|
164
|
+
}), F = $e(null), I = $e(null), L = h({
|
|
165
165
|
get: () => l.value.segmentFontSize,
|
|
166
166
|
set: (t) => t
|
|
167
|
-
}), { autoSizeLabels:
|
|
168
|
-
svgRef:
|
|
167
|
+
}), { autoSizeLabels: be } = xt({
|
|
168
|
+
svgRef: V,
|
|
169
169
|
fontSize: l.value.segmentFontSize,
|
|
170
170
|
minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
|
|
171
171
|
sizeRef: L,
|
|
172
172
|
labelClass: ".vue-ui-gauge-label-flat"
|
|
173
173
|
}), T = h(() => !!e.value.debug);
|
|
174
|
-
function
|
|
174
|
+
function Z() {
|
|
175
175
|
let t = !1;
|
|
176
|
-
if (
|
|
176
|
+
if (Ae(m.dataset) ? (W({
|
|
177
177
|
componentName: "VueUiGauge",
|
|
178
178
|
type: "dataset",
|
|
179
179
|
debug: T.value
|
|
180
|
-
}), M.value = !0, t = !0) : (
|
|
180
|
+
}), M.value = !0, t = !0) : (Ce({
|
|
181
181
|
datasetObject: m.dataset,
|
|
182
182
|
requiredAttributes: ["value", "series"]
|
|
183
183
|
}).forEach((u) => {
|
|
@@ -188,7 +188,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
188
188
|
debug: T.value
|
|
189
189
|
}), M.value = !0, t = !0;
|
|
190
190
|
}), Object.hasOwn(m.dataset, "series") && (m.dataset.series.length ? m.dataset.series.forEach((u, a) => {
|
|
191
|
-
|
|
191
|
+
Ce({
|
|
192
192
|
datasetObject: u,
|
|
193
193
|
requiredAttributes: ["from", "to"]
|
|
194
194
|
}).forEach((s) => {
|
|
@@ -205,47 +205,47 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
205
205
|
type: "datasetAttributeEmpty",
|
|
206
206
|
property: "series",
|
|
207
207
|
debug: T.value
|
|
208
|
-
}), M.value = !0, t = !0))), M.value = t,
|
|
208
|
+
}), M.value = !0, t = !0))), M.value = t, _e(S.value.value || 0), e.value.responsive) {
|
|
209
209
|
const u = yt(() => {
|
|
210
210
|
let { width: a, height: s } = mt({
|
|
211
211
|
chart: C.value,
|
|
212
|
-
title: e.value.style.chart.title.text ?
|
|
213
|
-
legend:
|
|
214
|
-
source:
|
|
215
|
-
noTitle:
|
|
212
|
+
title: e.value.style.chart.title.text ? ue.value : null,
|
|
213
|
+
legend: ne.value,
|
|
214
|
+
source: ie.value,
|
|
215
|
+
noTitle: ce.value
|
|
216
216
|
});
|
|
217
217
|
s -= 12, requestAnimationFrame(() => {
|
|
218
|
-
l.value.width = a, l.value.height = s, l.value.centerX = a / 2, l.value.centerY = b.value / 2 / 358.4 * s, l.value.bottom = s, l.value.labelFontSize = 18 / b.value * Math.min(s, a) < 10 ? 10 : 18 / b.value * Math.min(s, a), l.value.legendFontSize = e.value.style.chart.legend.fontSize / b.value * Math.min(s, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / b.value * Math.min(s, a), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / b.value * Math.min(s, a), l.value.trackSize = e.value.style.chart.layout.track.size / b.value * Math.min(s, a), l.value.pointerStrokeWidth =
|
|
218
|
+
l.value.width = a, l.value.height = s, l.value.centerX = a / 2, l.value.centerY = b.value / 2 / 358.4 * s, l.value.bottom = s, l.value.labelFontSize = 18 / b.value * Math.min(s, a) < 10 ? 10 : 18 / b.value * Math.min(s, a), l.value.legendFontSize = e.value.style.chart.legend.fontSize / b.value * Math.min(s, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / b.value * Math.min(s, a), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / b.value * Math.min(s, a), l.value.trackSize = e.value.style.chart.layout.track.size / b.value * Math.min(s, a), l.value.pointerStrokeWidth = re({
|
|
219
219
|
relator: Math.min(a, s),
|
|
220
220
|
adjuster: b.value,
|
|
221
221
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
222
222
|
threshold: 2,
|
|
223
223
|
fallback: 2
|
|
224
|
-
}), l.value.markerOffset =
|
|
224
|
+
}), l.value.markerOffset = re({
|
|
225
225
|
relator: Math.max(a, s),
|
|
226
226
|
adjuster: b.value,
|
|
227
227
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
228
228
|
threshold: 2,
|
|
229
229
|
fallback: 2
|
|
230
|
-
}), l.value.segmentFontSize =
|
|
230
|
+
}), l.value.segmentFontSize = re({
|
|
231
231
|
relator: Math.min(a, s),
|
|
232
232
|
adjuster: b.value,
|
|
233
233
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
234
234
|
threshold: 8,
|
|
235
235
|
fallback: 8
|
|
236
236
|
});
|
|
237
|
-
}),
|
|
237
|
+
}), be();
|
|
238
238
|
});
|
|
239
239
|
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(u), I.value = C.value.parentNode, F.value.observe(I.value);
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
be();
|
|
242
242
|
}
|
|
243
243
|
Ke(() => {
|
|
244
|
-
|
|
244
|
+
Z();
|
|
245
245
|
}), Qe(() => {
|
|
246
246
|
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect());
|
|
247
247
|
});
|
|
248
|
-
function
|
|
248
|
+
function _e(t) {
|
|
249
249
|
const u = [];
|
|
250
250
|
(O.value.series || []).forEach((_) => {
|
|
251
251
|
u.push(_.from || 0), u.push(_.to || 0);
|
|
@@ -266,7 +266,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
266
266
|
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
267
267
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
268
268
|
};
|
|
269
|
-
}), d = h(() =>
|
|
269
|
+
}), d = h(() => te(
|
|
270
270
|
{ series: O.value.series },
|
|
271
271
|
l.value.width / 2,
|
|
272
272
|
v.value.base,
|
|
@@ -278,7 +278,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
278
278
|
180,
|
|
279
279
|
109.9495,
|
|
280
280
|
40 * l.value.trackSize
|
|
281
|
-
)), Ge = h(() =>
|
|
281
|
+
)), Ge = h(() => te(
|
|
282
282
|
{ series: O.value.series },
|
|
283
283
|
l.value.width / 2,
|
|
284
284
|
v.value.base,
|
|
@@ -290,7 +290,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
290
290
|
180,
|
|
291
291
|
109.9495,
|
|
292
292
|
40 * l.value.trackSize
|
|
293
|
-
)), N = h(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))),
|
|
293
|
+
)), N = h(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), we = h(() => {
|
|
294
294
|
const { x: t, y: u } = A({
|
|
295
295
|
initX: d.value[0].firstSeparator.x,
|
|
296
296
|
initY: d.value[0].firstSeparator.y,
|
|
@@ -305,7 +305,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
305
305
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
306
306
|
});
|
|
307
307
|
return { x1: t, y1: u, x2: a, y2: s };
|
|
308
|
-
}),
|
|
308
|
+
}), Se = h(() => d.value.map((t) => {
|
|
309
309
|
const { x: u, y: a } = A({
|
|
310
310
|
initX: t.separator.x,
|
|
311
311
|
initY: t.separator.y,
|
|
@@ -328,7 +328,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
328
328
|
let s = 0;
|
|
329
329
|
return t.map((g) => (s += g, `${s / 100 * a - g / 4}%`));
|
|
330
330
|
}
|
|
331
|
-
const Be = h(() => je(d.value.map((t) => t.proportion * 100))), Ue = h(() =>
|
|
331
|
+
const Be = h(() => je(d.value.map((t) => t.proportion * 100))), Ue = h(() => te(
|
|
332
332
|
{ series: O.value.series },
|
|
333
333
|
l.value.width / 2,
|
|
334
334
|
v.value.base,
|
|
@@ -349,11 +349,11 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
349
349
|
percentage: vt((y.value + t) / (P.value + t))
|
|
350
350
|
});
|
|
351
351
|
}), Y = f(!1);
|
|
352
|
-
function
|
|
353
|
-
Y.value = t,
|
|
352
|
+
function xe(t) {
|
|
353
|
+
Y.value = t, oe.value += 1;
|
|
354
354
|
}
|
|
355
355
|
const G = f(!1);
|
|
356
|
-
function
|
|
356
|
+
function J() {
|
|
357
357
|
G.value = !G.value;
|
|
358
358
|
}
|
|
359
359
|
async function De({ scale: t = 2 } = {}) {
|
|
@@ -370,42 +370,42 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
370
370
|
}
|
|
371
371
|
return Me({
|
|
372
372
|
getImage: De,
|
|
373
|
-
generatePdf:
|
|
374
|
-
generateImage:
|
|
375
|
-
toggleAnnotator:
|
|
376
|
-
toggleFullscreen:
|
|
373
|
+
generatePdf: ge,
|
|
374
|
+
generateImage: pe,
|
|
375
|
+
toggleAnnotator: J,
|
|
376
|
+
toggleFullscreen: xe
|
|
377
377
|
}), (t, u) => (r(), o("div", {
|
|
378
|
-
class:
|
|
378
|
+
class: ze(`vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
379
379
|
ref_key: "gaugeChart",
|
|
380
380
|
ref: C,
|
|
381
381
|
id: `vue-ui-gauge_${w.value}`,
|
|
382
|
-
style:
|
|
383
|
-
onMouseenter: u[0] || (u[0] = () => n(
|
|
384
|
-
onMouseleave: u[1] || (u[1] = () => n(
|
|
382
|
+
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
383
|
+
onMouseenter: u[0] || (u[0] = () => n(de)(!0)),
|
|
384
|
+
onMouseleave: u[1] || (u[1] = () => n(de)(!1))
|
|
385
385
|
}, [
|
|
386
386
|
e.value.userOptions.buttons.annotator ? (r(), j(n(Pe), {
|
|
387
387
|
key: 0,
|
|
388
|
-
svgRef: n(
|
|
388
|
+
svgRef: n(V),
|
|
389
389
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
390
390
|
color: e.value.style.chart.color,
|
|
391
391
|
active: G.value,
|
|
392
|
-
onClose:
|
|
392
|
+
onClose: J
|
|
393
393
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
394
394
|
Le.value ? (r(), o("div", {
|
|
395
395
|
key: 1,
|
|
396
396
|
ref_key: "noTitle",
|
|
397
|
-
ref:
|
|
397
|
+
ref: ce,
|
|
398
398
|
class: "vue-data-ui-no-title-space",
|
|
399
399
|
style: "height:36px; width: 100%;background:transparent"
|
|
400
400
|
}, null, 512)) : c("", !0),
|
|
401
401
|
e.value.style.chart.title.text ? (r(), o("div", {
|
|
402
402
|
key: 2,
|
|
403
403
|
ref_key: "chartTitle",
|
|
404
|
-
ref:
|
|
404
|
+
ref: ue,
|
|
405
405
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
406
406
|
}, [
|
|
407
407
|
(r(), j(bt, {
|
|
408
|
-
key: `title_${
|
|
408
|
+
key: `title_${ve.value}`,
|
|
409
409
|
config: {
|
|
410
410
|
title: {
|
|
411
411
|
cy: "gauge-div-title",
|
|
@@ -418,19 +418,19 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
418
418
|
}
|
|
419
419
|
}, {
|
|
420
420
|
default: X(() => [
|
|
421
|
-
e.value.translations.base &&
|
|
421
|
+
e.value.translations.base && n(S).base ? (r(), o("span", Ft, R(e.value.translations.base) + ": " + R(n(S).base), 1)) : c("", !0)
|
|
422
422
|
]),
|
|
423
423
|
_: 1
|
|
424
424
|
}, 8, ["config"]))
|
|
425
425
|
], 512)) : c("", !0),
|
|
426
|
-
e.value.userOptions.show && Ye.value && (n(
|
|
426
|
+
e.value.userOptions.show && Ye.value && (n(fe) || n(D)) ? (r(), j(n(Ie), {
|
|
427
427
|
ref_key: "details",
|
|
428
428
|
ref: Ee,
|
|
429
|
-
key: `user_options_${
|
|
429
|
+
key: `user_options_${oe.value}`,
|
|
430
430
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
431
431
|
color: e.value.style.chart.color,
|
|
432
|
-
isImaging: n(
|
|
433
|
-
isPrinting: n(
|
|
432
|
+
isImaging: n(me),
|
|
433
|
+
isPrinting: n(ye),
|
|
434
434
|
uid: w.value,
|
|
435
435
|
hasXls: !1,
|
|
436
436
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -444,57 +444,57 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
444
444
|
position: e.value.userOptions.position,
|
|
445
445
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
446
446
|
isAnnotation: G.value,
|
|
447
|
-
onToggleFullscreen:
|
|
448
|
-
onGeneratePdf: n(
|
|
449
|
-
onGenerateImage: n(
|
|
450
|
-
onToggleAnnotator:
|
|
451
|
-
style:
|
|
452
|
-
visibility: n(
|
|
447
|
+
onToggleFullscreen: xe,
|
|
448
|
+
onGeneratePdf: n(ge),
|
|
449
|
+
onGenerateImage: n(pe),
|
|
450
|
+
onToggleAnnotator: J,
|
|
451
|
+
style: ee({
|
|
452
|
+
visibility: n(fe) ? n(D) ? "visible" : "hidden" : "visible"
|
|
453
453
|
})
|
|
454
454
|
}, et({ _: 2 }, [
|
|
455
455
|
t.$slots.menuIcon ? {
|
|
456
456
|
name: "menuIcon",
|
|
457
457
|
fn: X(({ isOpen: a, color: s }) => [
|
|
458
|
-
|
|
458
|
+
x(t.$slots, "menuIcon", B(U({ isOpen: a, color: s })), void 0, !0)
|
|
459
459
|
]),
|
|
460
460
|
key: "0"
|
|
461
461
|
} : void 0,
|
|
462
462
|
t.$slots.optionPdf ? {
|
|
463
463
|
name: "optionPdf",
|
|
464
464
|
fn: X(() => [
|
|
465
|
-
|
|
465
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
466
466
|
]),
|
|
467
467
|
key: "1"
|
|
468
468
|
} : void 0,
|
|
469
469
|
t.$slots.optionImg ? {
|
|
470
470
|
name: "optionImg",
|
|
471
471
|
fn: X(() => [
|
|
472
|
-
|
|
472
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
473
473
|
]),
|
|
474
474
|
key: "2"
|
|
475
475
|
} : void 0,
|
|
476
476
|
t.$slots.optionFullscreen ? {
|
|
477
477
|
name: "optionFullscreen",
|
|
478
478
|
fn: X(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
479
|
-
|
|
479
|
+
x(t.$slots, "optionFullscreen", B(U({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
480
480
|
]),
|
|
481
481
|
key: "3"
|
|
482
482
|
} : void 0,
|
|
483
483
|
t.$slots.optionAnnotator ? {
|
|
484
484
|
name: "optionAnnotator",
|
|
485
485
|
fn: X(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
486
|
-
|
|
486
|
+
x(t.$slots, "optionAnnotator", B(U({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
487
487
|
]),
|
|
488
488
|
key: "4"
|
|
489
489
|
} : void 0
|
|
490
490
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
491
491
|
(r(), o("svg", {
|
|
492
492
|
ref_key: "svgRef",
|
|
493
|
-
ref:
|
|
493
|
+
ref: V,
|
|
494
494
|
xmlns: n(ht),
|
|
495
|
-
class:
|
|
495
|
+
class: ze({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
496
496
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
497
|
-
style:
|
|
497
|
+
style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
498
498
|
}, [
|
|
499
499
|
tt(n(Xe)),
|
|
500
500
|
t.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
@@ -507,7 +507,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
507
507
|
pointerEvents: "none"
|
|
508
508
|
}
|
|
509
509
|
}, [
|
|
510
|
-
|
|
510
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
511
511
|
], 8, Ct)) : c("", !0),
|
|
512
512
|
p("defs", null, [
|
|
513
513
|
p("radialGradient", {
|
|
@@ -520,15 +520,15 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
520
520
|
}, [
|
|
521
521
|
p("stop", {
|
|
522
522
|
offset: "0%",
|
|
523
|
-
"stop-color": n(
|
|
523
|
+
"stop-color": n(ae)("#FFFFFF", 1)
|
|
524
524
|
}, null, 8, Nt),
|
|
525
525
|
p("stop", {
|
|
526
526
|
offset: "80%",
|
|
527
|
-
"stop-color": n(
|
|
527
|
+
"stop-color": n(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
528
528
|
}, null, 8, Mt),
|
|
529
529
|
p("stop", {
|
|
530
530
|
offset: "100%",
|
|
531
|
-
"stop-color": n(
|
|
531
|
+
"stop-color": n(ae)("#FFFFFF", 1)
|
|
532
532
|
}, null, 8, Pt)
|
|
533
533
|
], 8, Ot)
|
|
534
534
|
]),
|
|
@@ -547,18 +547,18 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
547
547
|
], 8, It)
|
|
548
548
|
]),
|
|
549
549
|
t.$slots.pattern ? (r(), o("g", Rt, [
|
|
550
|
-
(r(!0), o(k, null,
|
|
551
|
-
|
|
550
|
+
(r(!0), o(k, null, $(d.value, (a, s) => (r(), o("defs", null, [
|
|
551
|
+
x(t.$slots, "pattern", E({ ref_for: !0 }, { seriesIndex: s, patternId: `pattern_${w.value}_${s}` }), void 0, !0)
|
|
552
552
|
]))), 256))
|
|
553
553
|
])) : c("", !0),
|
|
554
|
-
(r(!0), o(k, null,
|
|
554
|
+
(r(!0), o(k, null, $(d.value, (a, s) => (r(), o("path", {
|
|
555
555
|
key: `arc_${s}`,
|
|
556
556
|
d: a.arcSlice,
|
|
557
557
|
fill: a.color,
|
|
558
558
|
stroke: e.value.style.chart.backgroundColor,
|
|
559
559
|
"stroke-linecap": "round"
|
|
560
560
|
}, null, 8, Yt))), 128)),
|
|
561
|
-
t.$slots.pattern ? (r(!0), o(k, { key: 2 },
|
|
561
|
+
t.$slots.pattern ? (r(!0), o(k, { key: 2 }, $(d.value, (a, s) => (r(), o("path", {
|
|
562
562
|
key: `arc_${s}`,
|
|
563
563
|
d: a.arcSlice,
|
|
564
564
|
fill: `url(#pattern_${w.value}_${s})`,
|
|
@@ -571,12 +571,12 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
571
571
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
572
572
|
}, null, 8, Lt)) : c("", !0),
|
|
573
573
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), o(k, { key: 4 }, [
|
|
574
|
-
(r(!0), o(k, null,
|
|
574
|
+
(r(!0), o(k, null, $(d.value, (a, s) => (r(), o("path", {
|
|
575
575
|
id: `curve_${w.value}_${s}`,
|
|
576
576
|
d: `M ${i.value.x1},${i.value.y1} m -${N.value[s]},0 a ${N.value[s]},${N.value[s]} 0 1,1 ${2 * N.value[s]},0 a ${N.value[s]},${N.value[s]} 0 1,1 -${2 * N.value[s]},0`,
|
|
577
577
|
fill: "transparent"
|
|
578
578
|
}, null, 8, Tt))), 256)),
|
|
579
|
-
(r(!0), o(k, null,
|
|
579
|
+
(r(!0), o(k, null, $(d.value, (a, s) => (r(), o("text", {
|
|
580
580
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
581
581
|
"font-size": L.value,
|
|
582
582
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
@@ -588,7 +588,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
588
588
|
}, R(a.name || ""), 9, jt)
|
|
589
589
|
], 8, Gt))), 256))
|
|
590
590
|
], 64)) : c("", !0),
|
|
591
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), o(k, { key: 5 },
|
|
591
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), o(k, { key: 5 }, $(Ge.value, (a, s) => (r(), o("text", {
|
|
592
592
|
class: "vue-ui-gauge-label-flat",
|
|
593
593
|
"text-anchor": n(ft)(a, !1, 12).anchor,
|
|
594
594
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
@@ -602,7 +602,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
602
602
|
y: a.center.endY
|
|
603
603
|
})
|
|
604
604
|
}, null, 8, Bt))), 256)) : c("", !0),
|
|
605
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 },
|
|
605
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 }, $(Ue.value, (a, s) => (r(), o("path", {
|
|
606
606
|
key: `arc_${s}`,
|
|
607
607
|
d: a.arcSlice,
|
|
608
608
|
fill: "#FFFFFF",
|
|
@@ -611,29 +611,29 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
611
611
|
filter: `url(#blur_${w.value})`
|
|
612
612
|
}, null, 8, Ut))), 128)) : c("", !0),
|
|
613
613
|
e.value.style.chart.layout.segmentSeparators.show ? (r(), o(k, { key: 7 }, [
|
|
614
|
-
p("line", E(
|
|
614
|
+
p("line", E(we.value, {
|
|
615
615
|
stroke: e.value.style.chart.backgroundColor,
|
|
616
616
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
617
617
|
"stroke-linecap": "round"
|
|
618
618
|
}), null, 16, Wt),
|
|
619
|
-
p("line", E(
|
|
619
|
+
p("line", E(we.value, {
|
|
620
620
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
621
621
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
622
622
|
"stroke-linecap": "round"
|
|
623
623
|
}), null, 16, Dt),
|
|
624
|
-
(r(!0), o(k, null,
|
|
624
|
+
(r(!0), o(k, null, $(Se.value, (a) => (r(), o("line", E({ ref_for: !0 }, a, {
|
|
625
625
|
stroke: e.value.style.chart.backgroundColor,
|
|
626
626
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
627
627
|
"stroke-linecap": "round"
|
|
628
628
|
}), null, 16, Vt))), 256)),
|
|
629
|
-
(r(!0), o(k, null,
|
|
629
|
+
(r(!0), o(k, null, $(Se.value, (a) => (r(), o("line", E({ ref_for: !0 }, a, {
|
|
630
630
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
631
631
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
632
632
|
"stroke-linecap": "round"
|
|
633
633
|
}), null, 16, Ht))), 256))
|
|
634
634
|
], 64)) : c("", !0),
|
|
635
635
|
e.value.style.chart.layout.markers.show ? (r(), o("g", qt, [
|
|
636
|
-
(r(!0), o(k, null,
|
|
636
|
+
(r(!0), o(k, null, $(d.value, (a, s) => (r(), o("text", {
|
|
637
637
|
x: n(A)({
|
|
638
638
|
centerX: i.value.x1,
|
|
639
639
|
centerY: v.value.base,
|
|
@@ -652,10 +652,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
652
652
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
653
653
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
654
654
|
fill: e.value.style.chart.layout.markers.color
|
|
655
|
-
}, R(n(
|
|
655
|
+
}, R(n(le)(
|
|
656
656
|
e.value.style.chart.layout.markers.formatter,
|
|
657
657
|
a.from,
|
|
658
|
-
n(
|
|
658
|
+
n(se)({
|
|
659
659
|
p: e.value.style.chart.layout.markers.prefix,
|
|
660
660
|
v: a.from,
|
|
661
661
|
s: e.value.style.chart.layout.markers.suffix,
|
|
@@ -683,10 +683,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
683
683
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
684
684
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
685
685
|
fill: e.value.style.chart.layout.markers.color
|
|
686
|
-
}, R(n(
|
|
686
|
+
}, R(n(le)(
|
|
687
687
|
e.value.style.chart.layout.markers.formatter,
|
|
688
688
|
P.value,
|
|
689
|
-
n(
|
|
689
|
+
n(se)({
|
|
690
690
|
p: e.value.style.chart.layout.markers.prefix,
|
|
691
691
|
v: P.value,
|
|
692
692
|
s: e.value.style.chart.layout.markers.suffix,
|
|
@@ -711,7 +711,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
711
711
|
y1: i.value.y1,
|
|
712
712
|
x2: i.value.x2,
|
|
713
713
|
y2: i.value.y2,
|
|
714
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
714
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
715
715
|
"stroke-linecap": "round",
|
|
716
716
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
717
717
|
}, null, 8, ea)),
|
|
@@ -727,10 +727,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
727
727
|
filter: `url(#blur_${w.value})`
|
|
728
728
|
}, null, 8, ta)) : c("", !0)
|
|
729
729
|
])) : (r(), o("g", aa, [
|
|
730
|
-
|
|
730
|
+
ke.value ? (r(), o("path", {
|
|
731
731
|
key: 0,
|
|
732
|
-
d:
|
|
733
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
732
|
+
d: ke.value,
|
|
733
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
734
734
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
735
735
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
736
736
|
"stroke-linejoin": "round"
|
|
@@ -752,40 +752,40 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
752
752
|
"text-anchor": "middle",
|
|
753
753
|
"font-size": l.value.legendFontSize,
|
|
754
754
|
"font-weight": "bold",
|
|
755
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
756
|
-
}, R(n(
|
|
755
|
+
fill: e.value.style.chart.legend.useRatingColor ? q.value : e.value.style.chart.legend.color
|
|
756
|
+
}, R(n(le)(
|
|
757
757
|
e.value.style.chart.legend.formatter,
|
|
758
758
|
y.value,
|
|
759
|
-
n(
|
|
759
|
+
n(se)({
|
|
760
760
|
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && y.value > 0 ? "+" : ""),
|
|
761
761
|
v: y.value,
|
|
762
762
|
s: e.value.style.chart.legend.suffix,
|
|
763
763
|
r: e.value.style.chart.legend.roundingValue
|
|
764
764
|
})
|
|
765
765
|
)), 9, ra)) : c("", !0),
|
|
766
|
-
|
|
766
|
+
x(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
767
767
|
], 14, At)),
|
|
768
768
|
t.$slots.watermark ? (r(), o("div", oa, [
|
|
769
|
-
|
|
769
|
+
x(t.$slots, "watermark", B(U({ isPrinting: n(ye) || n(me) })), void 0, !0)
|
|
770
770
|
])) : c("", !0),
|
|
771
771
|
p("div", {
|
|
772
772
|
ref_key: "chartLegend",
|
|
773
|
-
ref:
|
|
773
|
+
ref: ne
|
|
774
774
|
}, [
|
|
775
|
-
|
|
775
|
+
x(t.$slots, "legend", { legend: O.value }, void 0, !0)
|
|
776
776
|
], 512),
|
|
777
777
|
t.$slots.source ? (r(), o("div", {
|
|
778
778
|
key: 5,
|
|
779
779
|
ref_key: "source",
|
|
780
|
-
ref:
|
|
780
|
+
ref: ie,
|
|
781
781
|
dir: "auto"
|
|
782
782
|
}, [
|
|
783
|
-
|
|
783
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
784
784
|
], 512)) : c("", !0),
|
|
785
|
-
n(
|
|
785
|
+
n(he) ? (r(), j(St, { key: 6 })) : c("", !0)
|
|
786
786
|
], 46, zt));
|
|
787
787
|
}
|
|
788
|
-
}, ba = /* @__PURE__ */ $t(ua, [["__scopeId", "data-v-
|
|
788
|
+
}, ba = /* @__PURE__ */ $t(ua, [["__scopeId", "data-v-415be812"]]);
|
|
789
789
|
export {
|
|
790
790
|
ba as default
|
|
791
791
|
};
|