vue-data-ui 3.6.0 → 3.7.1
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/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
- package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
- package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
- package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
- package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
- package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
- package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
- package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
- package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
- package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
- package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
- package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
- package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
- package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
- package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
- package/dist/vue-ui-rings-BowsO9I8.js +884 -0
- package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
- package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
- package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
- package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
- package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
- package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
- package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
- package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
- package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
- package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
- package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
- package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
- package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
- package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -1,835 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, computed as d, ref as y, toRefs as at, watch as Q, shallowRef as ze, onMounted as lt, onBeforeUnmount as ot, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as ee, normalizeClass as Ce, createBlock as W, createCommentVNode as c, createElementVNode as k, withCtx as b, renderSlot as h, normalizeProps as C, guardReactiveProps as F, toDisplayString as T, createSlots as st, createVNode as rt, Fragment as S, renderList as z, mergeProps as L, nextTick as nt } from "vue";
|
|
2
|
-
import { c as ut, t as it, b as ct, p as Fe, e as vt, o as Ae, h as dt, f as D, g as Oe, T as te, _ as M, a6 as ht, x as ft, X as yt, s as ae, M as gt, Y as mt, a as le, d as oe, R as se } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { t as pt, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as bt, B as St } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as _t } from "./usePrinter-DTzqpYKF.js";
|
|
6
|
-
import { u as wt, a as Me } from "./useNestedProp-CIoDlpHu.js";
|
|
7
|
-
import { u as xt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
-
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
-
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import { u as Ct } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
|
|
11
|
-
import Ft from "./img-BecE5qXd.js";
|
|
12
|
-
import { t as At } from "./themes-DH-N_ePR.js";
|
|
13
|
-
import Ot from "./Title-Bb1VWCtR.js";
|
|
14
|
-
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "height"], Rt = ["id"], Yt = ["stop-color"], Tt = ["stop-color"], Et = ["stop-color"], Lt = ["id"], Gt = ["stdDeviation"], Bt = { key: 1 }, Ut = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Wt = ["d", "fill"], Dt = ["id", "d"], Vt = ["fill", "font-size", "font-weight"], Ht = ["href", "startOffset"], qt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Zt = ["d", "filter"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], Qt = ["stroke", "stroke-width"], ea = ["stroke", "stroke-width"], ta = { key: 8 }, aa = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], la = ["x", "y", "font-size", "font-weight", "fill"], oa = { key: 0 }, sa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], na = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ua = { key: 1 }, ia = ["d", "fill", "stroke", "stroke-width"], ca = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], va = ["x", "y", "font-size", "fill"], da = {
|
|
16
|
-
key: 4,
|
|
17
|
-
class: "vue-data-ui-watermark"
|
|
18
|
-
}, ha = {
|
|
19
|
-
__name: "vue-ui-gauge",
|
|
20
|
-
props: {
|
|
21
|
-
config: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default() {
|
|
24
|
-
return {};
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
dataset: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default() {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
setup(Ne, { expose: Pe }) {
|
|
35
|
-
const Ie = K(() => import("./PenAndPaper-BJSMejV9.js")), Xe = K(() => import("./UserOptions-BqmUW9Kp.js")), Re = K(() => import("./PackageVersion-D_4Hr4S4.js")), { vue_ui_gauge: Ye } = wt(), p = Ne, Te = d(() => !!p.dataset && Object.keys(p.dataset).length > 0 && p.dataset.series && p.dataset.series.length), x = y(ut()), Ee = y(null), re = y(0), N = y(null), ne = y(null), ue = y(null), ie = y(null), ce = y(null), ve = y(0), e = y(H()), { loading: de, FINAL_DATASET: $, manualLoading: X } = bt({
|
|
36
|
-
...at(p),
|
|
37
|
-
FINAL_CONFIG: e,
|
|
38
|
-
prepareConfig: H,
|
|
39
|
-
callback: () => {
|
|
40
|
-
Promise.resolve().then(async () => {
|
|
41
|
-
await nt();
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
skeletonDataset: {
|
|
45
|
-
value: 0,
|
|
46
|
-
series: [
|
|
47
|
-
{ from: -1, to: 0, name: "_", color: "#A1A1A1" },
|
|
48
|
-
{ from: 0, to: 1, name: "__", color: "#CACACA" }
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
skeletonConfig: it({
|
|
52
|
-
defaultConfig: e.value,
|
|
53
|
-
userConfig: {
|
|
54
|
-
userOptions: { show: !1 },
|
|
55
|
-
style: {
|
|
56
|
-
chart: {
|
|
57
|
-
backgroundColor: "#99999930",
|
|
58
|
-
animation: { use: !1 },
|
|
59
|
-
layout: {
|
|
60
|
-
markers: { show: !1 },
|
|
61
|
-
segmentSeparators: { stroke: "#6A6A6A" },
|
|
62
|
-
segmentNames: { show: !1 },
|
|
63
|
-
indicatorArc: { fill: "#6A6A6A50" },
|
|
64
|
-
pointer: {
|
|
65
|
-
stroke: "#6A6A6A",
|
|
66
|
-
useRatingColor: !0,
|
|
67
|
-
circle: {
|
|
68
|
-
stroke: "#6A6A6A",
|
|
69
|
-
color: "#6A6A6A"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
legend: {
|
|
74
|
-
show: !1
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
})
|
|
80
|
-
}), { userOptionsVisible: V, setUserOptionsVisibility: he, keepUserOptionState: fe } = $t({ config: e.value }), { svgRef: G } = zt({ config: e.value.style.chart.title });
|
|
81
|
-
Q(() => p.config, (t) => {
|
|
82
|
-
de.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Z(), ve.value += 1;
|
|
83
|
-
}, { deep: !0 }), Q(() => p.dataset, (t) => {
|
|
84
|
-
Z(), t && Object.keys(t).length > 0 && (X.value = e.value?.loading ?? !1);
|
|
85
|
-
}, { deep: !0, immediate: !1 });
|
|
86
|
-
function H() {
|
|
87
|
-
const t = Me({
|
|
88
|
-
userConfig: p.config,
|
|
89
|
-
defaultConfig: Ye
|
|
90
|
-
});
|
|
91
|
-
return t.theme ? {
|
|
92
|
-
...Me({
|
|
93
|
-
userConfig: At.vue_ui_gauge[t.theme] || p.config,
|
|
94
|
-
defaultConfig: t
|
|
95
|
-
}),
|
|
96
|
-
customPalette: ct[t.theme] || Fe
|
|
97
|
-
} : t;
|
|
98
|
-
}
|
|
99
|
-
const { isPrinting: ye, isImaging: ge, generatePdf: me, generateImage: pe } = _t({
|
|
100
|
-
elementId: `vue-ui-gauge_${x.value}`,
|
|
101
|
-
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
102
|
-
options: e.value.userOptions.print
|
|
103
|
-
}), Le = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = d(() => vt(e.value.customPalette)), P = d(() => {
|
|
104
|
-
if (Ae($.value.series || {}))
|
|
105
|
-
return {
|
|
106
|
-
value: 0,
|
|
107
|
-
series: [
|
|
108
|
-
{
|
|
109
|
-
from: 0,
|
|
110
|
-
to: 0
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
};
|
|
114
|
-
const t = [];
|
|
115
|
-
($.value.series || []).forEach((a) => {
|
|
116
|
-
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
117
|
-
});
|
|
118
|
-
const n = Math.max(...t);
|
|
119
|
-
return {
|
|
120
|
-
...$.value,
|
|
121
|
-
series: ($.value.series || []).map((a, l) => ({
|
|
122
|
-
...a,
|
|
123
|
-
color: dt(a.color) || Ge.value[l] || Fe[l],
|
|
124
|
-
value: ((a.to || 0) - (a.from || 0)) / n * 100
|
|
125
|
-
}))
|
|
126
|
-
};
|
|
127
|
-
}), _ = y(512), o = y({
|
|
128
|
-
height: 358.4,
|
|
129
|
-
width: _.value,
|
|
130
|
-
top: 0,
|
|
131
|
-
bottom: 358.4,
|
|
132
|
-
centerX: 179.2,
|
|
133
|
-
centerY: _.value / 2,
|
|
134
|
-
labelFontSize: 18,
|
|
135
|
-
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
136
|
-
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
137
|
-
trackSize: e.value.style.chart.layout.track.size,
|
|
138
|
-
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
139
|
-
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
140
|
-
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
141
|
-
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
142
|
-
}), R = y(0), A = y(0), g = y(
|
|
143
|
-
e.value.style.chart.animation.use ? Math.min(...$.value.series.map((t) => t.from)) : $.value.value
|
|
144
|
-
);
|
|
145
|
-
Q(() => $.value.value, () => {
|
|
146
|
-
Se($.value.value);
|
|
147
|
-
});
|
|
148
|
-
const i = d(() => {
|
|
149
|
-
const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI;
|
|
150
|
-
return {
|
|
151
|
-
x1: t,
|
|
152
|
-
y1: n,
|
|
153
|
-
x2: t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a),
|
|
154
|
-
y2: n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a)
|
|
155
|
-
};
|
|
156
|
-
}), ke = d(() => {
|
|
157
|
-
const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI, l = t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a), m = n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a), w = o.value.pointerRadius, Ke = t + w * Math.cos(a + Math.PI / 2), Qe = n + w * Math.sin(a + Math.PI / 2), et = t + w * Math.cos(a - Math.PI / 2), tt = n + w * Math.sin(a - Math.PI / 2);
|
|
158
|
-
return isNaN(l) ? null : `M ${l},${m} ${Ke},${Qe} ${et},${tt} Z`;
|
|
159
|
-
}), q = d(() => {
|
|
160
|
-
for (let t = 0; t < P.value.series.length; t += 1) {
|
|
161
|
-
const { color: n, from: a, to: l } = P.value.series[t];
|
|
162
|
-
if (g.value >= a && g.value <= l)
|
|
163
|
-
return n;
|
|
164
|
-
}
|
|
165
|
-
return "#2D353C";
|
|
166
|
-
}), O = ze(null), Y = ze(null), B = d({
|
|
167
|
-
get: () => o.value.segmentFontSize,
|
|
168
|
-
set: (t) => t
|
|
169
|
-
}), { autoSizeLabels: be } = Ct({
|
|
170
|
-
svgRef: G,
|
|
171
|
-
fontSize: o.value.segmentFontSize,
|
|
172
|
-
minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
|
|
173
|
-
sizeRef: B,
|
|
174
|
-
labelClass: ".vue-ui-gauge-label-flat"
|
|
175
|
-
}), U = d(() => !!e.value.debug);
|
|
176
|
-
function Z() {
|
|
177
|
-
let t = !1;
|
|
178
|
-
if (Ae(p.dataset) ? (D({
|
|
179
|
-
componentName: "VueUiGauge",
|
|
180
|
-
type: "dataset",
|
|
181
|
-
debug: U.value
|
|
182
|
-
}), X.value = !0, t = !0) : (Oe({
|
|
183
|
-
datasetObject: p.dataset,
|
|
184
|
-
requiredAttributes: ["value", "series"]
|
|
185
|
-
}).forEach((n) => {
|
|
186
|
-
D({
|
|
187
|
-
componentName: "VueUiGauge",
|
|
188
|
-
type: "datasetAttribute",
|
|
189
|
-
property: n,
|
|
190
|
-
debug: U.value
|
|
191
|
-
}), X.value = !0, t = !0;
|
|
192
|
-
}), Object.hasOwn(p.dataset, "series") && (p.dataset.series.length ? p.dataset.series.forEach((n, a) => {
|
|
193
|
-
Oe({
|
|
194
|
-
datasetObject: n,
|
|
195
|
-
requiredAttributes: ["from", "to"]
|
|
196
|
-
}).forEach((l) => {
|
|
197
|
-
D({
|
|
198
|
-
componentName: "VueUiGauge",
|
|
199
|
-
type: "datasetSerieAttribute",
|
|
200
|
-
property: l,
|
|
201
|
-
index: a,
|
|
202
|
-
debug: U.value
|
|
203
|
-
}), X.value = !0, t = !0;
|
|
204
|
-
});
|
|
205
|
-
}) : (D({
|
|
206
|
-
componentName: "VueUiGauge",
|
|
207
|
-
type: "datasetAttributeEmpty",
|
|
208
|
-
property: "series",
|
|
209
|
-
debug: U.value
|
|
210
|
-
}), X.value = !0, t = !0))), X.value = t, Se($.value.value || 0), e.value.responsive) {
|
|
211
|
-
const n = pt(() => {
|
|
212
|
-
let { width: a, height: l } = kt({
|
|
213
|
-
chart: N.value,
|
|
214
|
-
title: e.value.style.chart.title.text ? ne.value : null,
|
|
215
|
-
legend: ue.value,
|
|
216
|
-
source: ie.value,
|
|
217
|
-
noTitle: ce.value
|
|
218
|
-
});
|
|
219
|
-
l -= 12, requestAnimationFrame(() => {
|
|
220
|
-
o.value.width = a, o.value.height = l, o.value.centerX = a / 2, o.value.centerY = _.value / 2 / 358.4 * l, o.value.bottom = l, o.value.labelFontSize = 18 / _.value * Math.min(l, a) < 10 ? 10 : 18 / _.value * Math.min(l, a), o.value.legendFontSize = e.value.style.chart.legend.fontSize / _.value * Math.min(l, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / _.value * Math.min(l, a), o.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / _.value * Math.min(l, a), o.value.trackSize = e.value.style.chart.layout.track.size / _.value * Math.min(l, a), o.value.pointerStrokeWidth = se({
|
|
221
|
-
relator: Math.min(a, l),
|
|
222
|
-
adjuster: _.value,
|
|
223
|
-
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
224
|
-
threshold: 2,
|
|
225
|
-
fallback: 2
|
|
226
|
-
}), o.value.markerOffset = se({
|
|
227
|
-
relator: Math.max(a, l),
|
|
228
|
-
adjuster: _.value,
|
|
229
|
-
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
230
|
-
threshold: 2,
|
|
231
|
-
fallback: 2
|
|
232
|
-
}), o.value.segmentFontSize = se({
|
|
233
|
-
relator: Math.min(a, l),
|
|
234
|
-
adjuster: _.value,
|
|
235
|
-
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
236
|
-
threshold: 8,
|
|
237
|
-
fallback: 8
|
|
238
|
-
});
|
|
239
|
-
}), be();
|
|
240
|
-
});
|
|
241
|
-
O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect()), O.value = new ResizeObserver(n), Y.value = N.value.parentNode, O.value.observe(Y.value);
|
|
242
|
-
}
|
|
243
|
-
be();
|
|
244
|
-
}
|
|
245
|
-
lt(() => {
|
|
246
|
-
Z();
|
|
247
|
-
}), ot(() => {
|
|
248
|
-
O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect());
|
|
249
|
-
});
|
|
250
|
-
function Se(t) {
|
|
251
|
-
const n = [];
|
|
252
|
-
(P.value.series || []).forEach((w) => {
|
|
253
|
-
n.push(w.from || 0), n.push(w.to || 0);
|
|
254
|
-
}), R.value = Math.max(...n), A.value = Math.min(...n);
|
|
255
|
-
let a = e.value.style.chart.animation.speed;
|
|
256
|
-
const l = Math.abs(t - g.value) / (a * 60);
|
|
257
|
-
function m() {
|
|
258
|
-
g.value < t ? g.value = Math.min(g.value + l, t) : g.value > t && (g.value = Math.max(g.value - l, t)), g.value !== t && requestAnimationFrame(m);
|
|
259
|
-
}
|
|
260
|
-
m();
|
|
261
|
-
}
|
|
262
|
-
const v = d(() => {
|
|
263
|
-
const t = e.value.responsive ? Math.min(o.value.width, o.value.height) : o.value.width, n = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
264
|
-
return {
|
|
265
|
-
arcs: t / n,
|
|
266
|
-
gradients: t / (n * 1.1),
|
|
267
|
-
base: e.value.responsive ? o.value.height / 1.618 : o.value.height * 0.7,
|
|
268
|
-
ratingBase: e.value.responsive ? o.value.height / 2 + o.value.height / 4 : o.value.height * 0.9,
|
|
269
|
-
pointerSize: e.value.responsive ? Math.min(o.value.width, o.value.height) / 3 : o.value.width / 3.2
|
|
270
|
-
};
|
|
271
|
-
}), f = d(() => te(
|
|
272
|
-
{ series: P.value.series },
|
|
273
|
-
o.value.width / 2,
|
|
274
|
-
v.value.base,
|
|
275
|
-
v.value.arcs,
|
|
276
|
-
v.value.arcs,
|
|
277
|
-
1,
|
|
278
|
-
1,
|
|
279
|
-
1,
|
|
280
|
-
180,
|
|
281
|
-
109.9495,
|
|
282
|
-
40 * o.value.trackSize
|
|
283
|
-
)), Be = d(() => te(
|
|
284
|
-
{ series: P.value.series },
|
|
285
|
-
o.value.width / 2,
|
|
286
|
-
v.value.base,
|
|
287
|
-
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
288
|
-
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
289
|
-
1,
|
|
290
|
-
1,
|
|
291
|
-
1,
|
|
292
|
-
180,
|
|
293
|
-
109.9495,
|
|
294
|
-
40 * o.value.trackSize
|
|
295
|
-
)), I = d(() => f.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), _e = d(() => {
|
|
296
|
-
const { x: t, y: n } = M({
|
|
297
|
-
initX: f.value[0].firstSeparator.x,
|
|
298
|
-
initY: f.value[0].firstSeparator.y,
|
|
299
|
-
centerX: i.value.x1,
|
|
300
|
-
centerY: i.value.y1,
|
|
301
|
-
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
302
|
-
}), { x: a, y: l } = M({
|
|
303
|
-
initX: f.value[0].startX,
|
|
304
|
-
initY: f.value[0].startY,
|
|
305
|
-
centerX: i.value.x1,
|
|
306
|
-
centerY: i.value.y1,
|
|
307
|
-
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
308
|
-
});
|
|
309
|
-
return { x1: t, y1: n, x2: a, y2: l };
|
|
310
|
-
}), we = d(() => f.value.map((t) => {
|
|
311
|
-
const { x: n, y: a } = M({
|
|
312
|
-
initX: t.separator.x,
|
|
313
|
-
initY: t.separator.y,
|
|
314
|
-
centerX: i.value.x1,
|
|
315
|
-
centerY: i.value.y1,
|
|
316
|
-
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
317
|
-
}), { x: l, y: m } = M({
|
|
318
|
-
initX: t.endX,
|
|
319
|
-
initY: t.endY,
|
|
320
|
-
centerX: i.value.x1,
|
|
321
|
-
centerY: i.value.y1,
|
|
322
|
-
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
323
|
-
});
|
|
324
|
-
return { x1: n, y1: a, x2: l, y2: m };
|
|
325
|
-
}));
|
|
326
|
-
function Ue(t) {
|
|
327
|
-
if (t.reduce((m, w) => m + w, 0) > 100)
|
|
328
|
-
throw new Error("Total % must not exceed 100");
|
|
329
|
-
const a = 50;
|
|
330
|
-
let l = 0;
|
|
331
|
-
return t.map((m) => (l += m, `${l / 100 * a - m / 4}%`));
|
|
332
|
-
}
|
|
333
|
-
const je = d(() => Ue(f.value.map((t) => t.proportion * 100))), We = d(() => te(
|
|
334
|
-
{ series: P.value.series },
|
|
335
|
-
o.value.width / 2,
|
|
336
|
-
v.value.base,
|
|
337
|
-
v.value.gradients,
|
|
338
|
-
v.value.gradients,
|
|
339
|
-
0.95,
|
|
340
|
-
1,
|
|
341
|
-
1,
|
|
342
|
-
180,
|
|
343
|
-
110.02,
|
|
344
|
-
2 * o.value.trackSize
|
|
345
|
-
)), De = d(() => {
|
|
346
|
-
const t = A.value >= 0 ? -A.value : Math.abs(A.value);
|
|
347
|
-
return ht({
|
|
348
|
-
radius: e.value.style.chart.layout.indicatorArc.radius * o.value.trackSize,
|
|
349
|
-
centerX: o.value.width / 2,
|
|
350
|
-
centerY: v.value.base,
|
|
351
|
-
percentage: ft((g.value + t) / (R.value + t))
|
|
352
|
-
});
|
|
353
|
-
}), E = y(!1);
|
|
354
|
-
function xe(t) {
|
|
355
|
-
E.value = t, re.value += 1;
|
|
356
|
-
}
|
|
357
|
-
const j = y(!1);
|
|
358
|
-
function J() {
|
|
359
|
-
j.value = !j.value;
|
|
360
|
-
}
|
|
361
|
-
async function Ve({ scale: t = 2 } = {}) {
|
|
362
|
-
if (!N.value) return;
|
|
363
|
-
const { width: n, height: a } = N.value.getBoundingClientRect(), l = n / a, { imageUri: m, base64: w } = await Ft({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
364
|
-
return {
|
|
365
|
-
imageUri: m,
|
|
366
|
-
base64: w,
|
|
367
|
-
title: e.value.style.chart.title.text,
|
|
368
|
-
width: n,
|
|
369
|
-
height: a,
|
|
370
|
-
aspectRatio: l
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
const He = d(() => e.value.style.chart.backgroundColor), qe = d(() => e.value.style.chart.title), { exportSvg: Ze, getSvg: Je } = xt({
|
|
374
|
-
svg: G,
|
|
375
|
-
title: qe,
|
|
376
|
-
backgroundColor: He
|
|
377
|
-
});
|
|
378
|
-
async function $e({ isCb: t }) {
|
|
379
|
-
if (t) {
|
|
380
|
-
const { blob: n, url: a, text: l, dataUrl: m } = await Je();
|
|
381
|
-
e.value.userOptions.callbacks.svg({ blob: n, url: a, text: l, dataUrl: m });
|
|
382
|
-
} else
|
|
383
|
-
Ze();
|
|
384
|
-
}
|
|
385
|
-
return Pe({
|
|
386
|
-
getImage: Ve,
|
|
387
|
-
generatePdf: me,
|
|
388
|
-
generateImage: pe,
|
|
389
|
-
generateSvg: $e,
|
|
390
|
-
toggleAnnotator: J,
|
|
391
|
-
toggleFullscreen: xe
|
|
392
|
-
}), (t, n) => (s(), r("div", {
|
|
393
|
-
class: Ce(`vue-data-ui-component vue-ui-gauge ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
394
|
-
ref_key: "gaugeChart",
|
|
395
|
-
ref: N,
|
|
396
|
-
id: `vue-ui-gauge_${x.value}`,
|
|
397
|
-
style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
398
|
-
onMouseenter: n[0] || (n[0] = () => u(he)(!0)),
|
|
399
|
-
onMouseleave: n[1] || (n[1] = () => u(he)(!1))
|
|
400
|
-
}, [
|
|
401
|
-
e.value.userOptions.buttons.annotator ? (s(), W(u(Ie), {
|
|
402
|
-
key: 0,
|
|
403
|
-
svgRef: u(G),
|
|
404
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
405
|
-
color: e.value.style.chart.color,
|
|
406
|
-
active: j.value,
|
|
407
|
-
onClose: J
|
|
408
|
-
}, {
|
|
409
|
-
"annotator-action-close": b(() => [
|
|
410
|
-
h(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
411
|
-
]),
|
|
412
|
-
"annotator-action-color": b(({ color: a }) => [
|
|
413
|
-
h(t.$slots, "annotator-action-color", C(F({ color: a })), void 0, !0)
|
|
414
|
-
]),
|
|
415
|
-
"annotator-action-draw": b(({ mode: a }) => [
|
|
416
|
-
h(t.$slots, "annotator-action-draw", C(F({ mode: a })), void 0, !0)
|
|
417
|
-
]),
|
|
418
|
-
"annotator-action-undo": b(({ disabled: a }) => [
|
|
419
|
-
h(t.$slots, "annotator-action-undo", C(F({ disabled: a })), void 0, !0)
|
|
420
|
-
]),
|
|
421
|
-
"annotator-action-redo": b(({ disabled: a }) => [
|
|
422
|
-
h(t.$slots, "annotator-action-redo", C(F({ disabled: a })), void 0, !0)
|
|
423
|
-
]),
|
|
424
|
-
"annotator-action-delete": b(({ disabled: a }) => [
|
|
425
|
-
h(t.$slots, "annotator-action-delete", C(F({ disabled: a })), void 0, !0)
|
|
426
|
-
]),
|
|
427
|
-
_: 3
|
|
428
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
429
|
-
Le.value ? (s(), r("div", {
|
|
430
|
-
key: 1,
|
|
431
|
-
ref_key: "noTitle",
|
|
432
|
-
ref: ce,
|
|
433
|
-
class: "vue-data-ui-no-title-space",
|
|
434
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
435
|
-
}, null, 512)) : c("", !0),
|
|
436
|
-
e.value.style.chart.title.text ? (s(), r("div", {
|
|
437
|
-
key: 2,
|
|
438
|
-
ref_key: "chartTitle",
|
|
439
|
-
ref: ne,
|
|
440
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
441
|
-
}, [
|
|
442
|
-
(s(), W(Ot, {
|
|
443
|
-
key: `title_${ve.value}`,
|
|
444
|
-
config: {
|
|
445
|
-
title: {
|
|
446
|
-
cy: "gauge-div-title",
|
|
447
|
-
...e.value.style.chart.title
|
|
448
|
-
},
|
|
449
|
-
subtitle: {
|
|
450
|
-
cy: "gauge-div-subtitle",
|
|
451
|
-
...e.value.style.chart.title.subtitle
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}, {
|
|
455
|
-
default: b(() => [
|
|
456
|
-
e.value.translations.base && u($).base ? (s(), r("span", Pt, T(e.value.translations.base) + ": " + T(u($).base), 1)) : c("", !0)
|
|
457
|
-
]),
|
|
458
|
-
_: 1
|
|
459
|
-
}, 8, ["config"]))
|
|
460
|
-
], 512)) : c("", !0),
|
|
461
|
-
e.value.userOptions.show && Te.value && (u(fe) || u(V)) ? (s(), W(u(Xe), {
|
|
462
|
-
ref_key: "details",
|
|
463
|
-
ref: Ee,
|
|
464
|
-
key: `user_options_${re.value}`,
|
|
465
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
466
|
-
color: e.value.style.chart.color,
|
|
467
|
-
isImaging: u(ge),
|
|
468
|
-
isPrinting: u(ye),
|
|
469
|
-
uid: x.value,
|
|
470
|
-
hasXls: !1,
|
|
471
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
472
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
473
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
474
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
475
|
-
isFullscreen: E.value,
|
|
476
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
477
|
-
chartElement: N.value,
|
|
478
|
-
callbacks: e.value.userOptions.callbacks,
|
|
479
|
-
printScale: e.value.userOptions.print.scale,
|
|
480
|
-
position: e.value.userOptions.position,
|
|
481
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
482
|
-
isAnnotation: j.value,
|
|
483
|
-
onToggleFullscreen: xe,
|
|
484
|
-
onGeneratePdf: u(me),
|
|
485
|
-
onGenerateImage: u(pe),
|
|
486
|
-
onGenerateSvg: $e,
|
|
487
|
-
onToggleAnnotator: J,
|
|
488
|
-
style: ee({
|
|
489
|
-
visibility: u(fe) ? u(V) ? "visible" : "hidden" : "visible"
|
|
490
|
-
})
|
|
491
|
-
}, st({ _: 2 }, [
|
|
492
|
-
t.$slots.menuIcon ? {
|
|
493
|
-
name: "menuIcon",
|
|
494
|
-
fn: b(({ isOpen: a, color: l }) => [
|
|
495
|
-
h(t.$slots, "menuIcon", C(F({ isOpen: a, color: l })), void 0, !0)
|
|
496
|
-
]),
|
|
497
|
-
key: "0"
|
|
498
|
-
} : void 0,
|
|
499
|
-
t.$slots.optionPdf ? {
|
|
500
|
-
name: "optionPdf",
|
|
501
|
-
fn: b(() => [
|
|
502
|
-
h(t.$slots, "optionPdf", {}, void 0, !0)
|
|
503
|
-
]),
|
|
504
|
-
key: "1"
|
|
505
|
-
} : void 0,
|
|
506
|
-
t.$slots.optionImg ? {
|
|
507
|
-
name: "optionImg",
|
|
508
|
-
fn: b(() => [
|
|
509
|
-
h(t.$slots, "optionImg", {}, void 0, !0)
|
|
510
|
-
]),
|
|
511
|
-
key: "2"
|
|
512
|
-
} : void 0,
|
|
513
|
-
t.$slots.optionSvg ? {
|
|
514
|
-
name: "optionSvg",
|
|
515
|
-
fn: b(() => [
|
|
516
|
-
h(t.$slots, "optionSvg", {}, void 0, !0)
|
|
517
|
-
]),
|
|
518
|
-
key: "3"
|
|
519
|
-
} : void 0,
|
|
520
|
-
t.$slots.optionFullscreen ? {
|
|
521
|
-
name: "optionFullscreen",
|
|
522
|
-
fn: b(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
523
|
-
h(t.$slots, "optionFullscreen", C(F({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
524
|
-
]),
|
|
525
|
-
key: "4"
|
|
526
|
-
} : void 0,
|
|
527
|
-
t.$slots.optionAnnotator ? {
|
|
528
|
-
name: "optionAnnotator",
|
|
529
|
-
fn: b(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
530
|
-
h(t.$slots, "optionAnnotator", C(F({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
531
|
-
]),
|
|
532
|
-
key: "5"
|
|
533
|
-
} : void 0
|
|
534
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
535
|
-
(s(), r("svg", {
|
|
536
|
-
ref_key: "svgRef",
|
|
537
|
-
ref: G,
|
|
538
|
-
xmlns: u(yt),
|
|
539
|
-
class: Ce({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
540
|
-
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
541
|
-
style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
542
|
-
}, [
|
|
543
|
-
rt(u(Re)),
|
|
544
|
-
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
545
|
-
key: 0,
|
|
546
|
-
x: 0,
|
|
547
|
-
y: 0,
|
|
548
|
-
width: o.value.width <= 0 ? 10 : o.value.width,
|
|
549
|
-
height: o.value.height <= 0 ? 10 : o.value.height,
|
|
550
|
-
style: {
|
|
551
|
-
pointerEvents: "none"
|
|
552
|
-
}
|
|
553
|
-
}, [
|
|
554
|
-
h(t.$slots, "chart-background", {}, void 0, !0)
|
|
555
|
-
], 8, Xt)) : c("", !0),
|
|
556
|
-
k("defs", null, [
|
|
557
|
-
k("radialGradient", {
|
|
558
|
-
id: `gradient_${x.value}`,
|
|
559
|
-
cx: "50%",
|
|
560
|
-
cy: "50%",
|
|
561
|
-
r: "50%",
|
|
562
|
-
fx: "50%",
|
|
563
|
-
fy: "50%"
|
|
564
|
-
}, [
|
|
565
|
-
k("stop", {
|
|
566
|
-
offset: "0%",
|
|
567
|
-
"stop-color": u(ae)("#FFFFFF", 1)
|
|
568
|
-
}, null, 8, Yt),
|
|
569
|
-
k("stop", {
|
|
570
|
-
offset: "80%",
|
|
571
|
-
"stop-color": u(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
572
|
-
}, null, 8, Tt),
|
|
573
|
-
k("stop", {
|
|
574
|
-
offset: "100%",
|
|
575
|
-
"stop-color": u(ae)("#FFFFFF", 1)
|
|
576
|
-
}, null, 8, Et)
|
|
577
|
-
], 8, Rt)
|
|
578
|
-
]),
|
|
579
|
-
k("defs", null, [
|
|
580
|
-
k("filter", {
|
|
581
|
-
id: `blur_${x.value}`,
|
|
582
|
-
x: "-50%",
|
|
583
|
-
y: "-50%",
|
|
584
|
-
width: "200%",
|
|
585
|
-
height: "200%"
|
|
586
|
-
}, [
|
|
587
|
-
k("feGaussianBlur", {
|
|
588
|
-
in: "SourceGraphic",
|
|
589
|
-
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
590
|
-
}, null, 8, Gt)
|
|
591
|
-
], 8, Lt)
|
|
592
|
-
]),
|
|
593
|
-
t.$slots.pattern ? (s(), r("g", Bt, [
|
|
594
|
-
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("defs", null, [
|
|
595
|
-
h(t.$slots, "pattern", L({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${x.value}_${l}` }), void 0, !0)
|
|
596
|
-
]))), 256))
|
|
597
|
-
])) : c("", !0),
|
|
598
|
-
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
|
|
599
|
-
key: `arc_${l}`,
|
|
600
|
-
d: a.arcSlice,
|
|
601
|
-
fill: a.color,
|
|
602
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
603
|
-
"stroke-linecap": "round"
|
|
604
|
-
}, null, 8, Ut))), 128)),
|
|
605
|
-
t.$slots.pattern ? (s(!0), r(S, { key: 2 }, z(f.value, (a, l) => (s(), r("path", {
|
|
606
|
-
key: `arc_${l}`,
|
|
607
|
-
d: a.arcSlice,
|
|
608
|
-
fill: `url(#pattern_${x.value}_${l})`,
|
|
609
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
610
|
-
"stroke-linecap": "round"
|
|
611
|
-
}, null, 8, jt))), 128)) : c("", !0),
|
|
612
|
-
e.value.style.chart.layout.indicatorArc.show ? (s(), r("path", {
|
|
613
|
-
key: 3,
|
|
614
|
-
d: De.value,
|
|
615
|
-
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
616
|
-
}, null, 8, Wt)) : c("", !0),
|
|
617
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), r(S, { key: 4 }, [
|
|
618
|
-
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
|
|
619
|
-
id: `curve_${x.value}_${l}`,
|
|
620
|
-
d: `M ${i.value.x1},${i.value.y1} m -${I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 ${2 * I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 -${2 * I.value[l]},0`,
|
|
621
|
-
fill: "transparent"
|
|
622
|
-
}, null, 8, Dt))), 256)),
|
|
623
|
-
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
|
|
624
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
625
|
-
"font-size": B.value,
|
|
626
|
-
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
627
|
-
"text-anchor": "middle"
|
|
628
|
-
}, [
|
|
629
|
-
k("textPath", {
|
|
630
|
-
href: `#curve_${x.value}_${l}`,
|
|
631
|
-
startOffset: je.value[l]
|
|
632
|
-
}, T(a.name || ""), 9, Ht)
|
|
633
|
-
], 8, Vt))), 256))
|
|
634
|
-
], 64)) : c("", !0),
|
|
635
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), r(S, { key: 5 }, z(Be.value, (a, l) => (s(), r("text", {
|
|
636
|
-
class: "vue-ui-gauge-label-flat",
|
|
637
|
-
"text-anchor": u(mt)(a, !1, 12).anchor,
|
|
638
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
639
|
-
"font-size": B.value,
|
|
640
|
-
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
641
|
-
innerHTML: u(gt)({
|
|
642
|
-
content: String(a.name ?? ""),
|
|
643
|
-
fontSize: B.value,
|
|
644
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
645
|
-
x: a.center.endX,
|
|
646
|
-
y: a.center.endY
|
|
647
|
-
})
|
|
648
|
-
}, null, 8, qt))), 256)) : c("", !0),
|
|
649
|
-
e.value.style.chart.layout.track.useGradient ? (s(!0), r(S, { key: 6 }, z(We.value, (a, l) => (s(), r("path", {
|
|
650
|
-
key: `arc_${l}`,
|
|
651
|
-
d: a.arcSlice,
|
|
652
|
-
fill: "#FFFFFF",
|
|
653
|
-
stroke: "none",
|
|
654
|
-
"stroke-linecap": "round",
|
|
655
|
-
filter: `url(#blur_${x.value})`
|
|
656
|
-
}, null, 8, Zt))), 128)) : c("", !0),
|
|
657
|
-
e.value.style.chart.layout.segmentSeparators.show ? (s(), r(S, { key: 7 }, [
|
|
658
|
-
k("line", L(_e.value, {
|
|
659
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
660
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
661
|
-
"stroke-linecap": "round"
|
|
662
|
-
}), null, 16, Jt),
|
|
663
|
-
k("line", L(_e.value, {
|
|
664
|
-
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
665
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
666
|
-
"stroke-linecap": "round"
|
|
667
|
-
}), null, 16, Kt),
|
|
668
|
-
(s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
|
|
669
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
670
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
671
|
-
"stroke-linecap": "round"
|
|
672
|
-
}), null, 16, Qt))), 256)),
|
|
673
|
-
(s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
|
|
674
|
-
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
675
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
676
|
-
"stroke-linecap": "round"
|
|
677
|
-
}), null, 16, ea))), 256))
|
|
678
|
-
], 64)) : c("", !0),
|
|
679
|
-
e.value.style.chart.layout.markers.show ? (s(), r("g", ta, [
|
|
680
|
-
(s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
|
|
681
|
-
x: u(M)({
|
|
682
|
-
centerX: i.value.x1,
|
|
683
|
-
centerY: v.value.base,
|
|
684
|
-
initX: a.center.startX,
|
|
685
|
-
initY: a.center.startY,
|
|
686
|
-
offset: o.value.markerOffset
|
|
687
|
-
}).x,
|
|
688
|
-
y: u(M)({
|
|
689
|
-
centerX: i.value.x1,
|
|
690
|
-
centerY: v.value.base,
|
|
691
|
-
initX: a.center.startX,
|
|
692
|
-
initY: a.center.startY,
|
|
693
|
-
offset: o.value.markerOffset
|
|
694
|
-
}).y,
|
|
695
|
-
"text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
|
|
696
|
-
"font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
697
|
-
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
698
|
-
fill: e.value.style.chart.layout.markers.color
|
|
699
|
-
}, T(u(le)(
|
|
700
|
-
e.value.style.chart.layout.markers.formatter,
|
|
701
|
-
a.from,
|
|
702
|
-
u(oe)({
|
|
703
|
-
p: e.value.style.chart.layout.markers.prefix,
|
|
704
|
-
v: a.from,
|
|
705
|
-
s: e.value.style.chart.layout.markers.suffix,
|
|
706
|
-
r: e.value.style.chart.layout.markers.roundingValue
|
|
707
|
-
})
|
|
708
|
-
)), 9, aa))), 256))
|
|
709
|
-
])) : c("", !0),
|
|
710
|
-
e.value.style.chart.layout.markers.show ? (s(), r("text", {
|
|
711
|
-
key: 9,
|
|
712
|
-
x: u(M)({
|
|
713
|
-
centerX: o.value.width / 2,
|
|
714
|
-
centerY: v.value.base,
|
|
715
|
-
initX: f.value.at(-1).endX,
|
|
716
|
-
initY: f.value.at(-1).endY,
|
|
717
|
-
offset: o.value.markerOffset
|
|
718
|
-
}).x,
|
|
719
|
-
y: u(M)({
|
|
720
|
-
centerX: o.value.width / 2,
|
|
721
|
-
centerY: v.value.base,
|
|
722
|
-
initX: f.value.at(-1).endX,
|
|
723
|
-
initY: f.value.at(-1).endY,
|
|
724
|
-
offset: o.value.markerOffset
|
|
725
|
-
}).y,
|
|
726
|
-
"text-anchor": "start",
|
|
727
|
-
"font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
728
|
-
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
729
|
-
fill: e.value.style.chart.layout.markers.color
|
|
730
|
-
}, T(u(le)(
|
|
731
|
-
e.value.style.chart.layout.markers.formatter,
|
|
732
|
-
R.value,
|
|
733
|
-
u(oe)({
|
|
734
|
-
p: e.value.style.chart.layout.markers.prefix,
|
|
735
|
-
v: R.value,
|
|
736
|
-
s: e.value.style.chart.layout.markers.suffix,
|
|
737
|
-
r: e.value.style.chart.layout.markers.roundingValue
|
|
738
|
-
})
|
|
739
|
-
)), 9, la)) : c("", !0),
|
|
740
|
-
e.value.style.chart.layout.pointer.show ? (s(), r(S, { key: 10 }, [
|
|
741
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), r("g", oa, [
|
|
742
|
-
isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
|
|
743
|
-
key: 0,
|
|
744
|
-
x1: i.value.x1,
|
|
745
|
-
y1: i.value.y1,
|
|
746
|
-
x2: i.value.x2,
|
|
747
|
-
y2: i.value.y2,
|
|
748
|
-
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
749
|
-
"stroke-width": o.value.pointerStrokeWidth,
|
|
750
|
-
"stroke-linecap": "round"
|
|
751
|
-
}, null, 8, sa)),
|
|
752
|
-
isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
|
|
753
|
-
key: 1,
|
|
754
|
-
x1: i.value.x1,
|
|
755
|
-
y1: i.value.y1,
|
|
756
|
-
x2: i.value.x2,
|
|
757
|
-
y2: i.value.y2,
|
|
758
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
759
|
-
"stroke-linecap": "round",
|
|
760
|
-
"stroke-width": o.value.pointerStrokeWidth * 0.7
|
|
761
|
-
}, null, 8, ra)),
|
|
762
|
-
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), r("line", {
|
|
763
|
-
key: 2,
|
|
764
|
-
x1: i.value.x1,
|
|
765
|
-
y1: i.value.y1,
|
|
766
|
-
x2: i.value.x2,
|
|
767
|
-
y2: i.value.y2,
|
|
768
|
-
stroke: "white",
|
|
769
|
-
"stroke-linecap": "round",
|
|
770
|
-
"stroke-width": o.value.pointerStrokeWidth * 0.3,
|
|
771
|
-
filter: `url(#blur_${x.value})`
|
|
772
|
-
}, null, 8, na)) : c("", !0)
|
|
773
|
-
])) : (s(), r("g", ua, [
|
|
774
|
-
ke.value ? (s(), r("path", {
|
|
775
|
-
key: 0,
|
|
776
|
-
d: ke.value,
|
|
777
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
|
|
778
|
-
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
779
|
-
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
780
|
-
"stroke-linejoin": "round"
|
|
781
|
-
}, null, 8, ia)) : c("", !0)
|
|
782
|
-
])),
|
|
783
|
-
k("circle", {
|
|
784
|
-
cx: o.value.width / 2,
|
|
785
|
-
cy: v.value.base,
|
|
786
|
-
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
787
|
-
r: o.value.pointerRadius <= 0 ? 1e-4 : o.value.pointerRadius,
|
|
788
|
-
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
789
|
-
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
790
|
-
}, null, 8, ca)
|
|
791
|
-
], 64)) : c("", !0),
|
|
792
|
-
e.value.style.chart.legend.show ? (s(), r("text", {
|
|
793
|
-
key: 11,
|
|
794
|
-
x: o.value.width / 2,
|
|
795
|
-
y: v.value.ratingBase,
|
|
796
|
-
"text-anchor": "middle",
|
|
797
|
-
"font-size": o.value.legendFontSize,
|
|
798
|
-
"font-weight": "bold",
|
|
799
|
-
fill: e.value.style.chart.legend.useRatingColor ? q.value : e.value.style.chart.legend.color
|
|
800
|
-
}, T(u(le)(
|
|
801
|
-
e.value.style.chart.legend.formatter,
|
|
802
|
-
g.value,
|
|
803
|
-
u(oe)({
|
|
804
|
-
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && g.value > 0 ? "+" : ""),
|
|
805
|
-
v: g.value,
|
|
806
|
-
s: e.value.style.chart.legend.suffix,
|
|
807
|
-
r: e.value.style.chart.legend.roundingValue
|
|
808
|
-
})
|
|
809
|
-
)), 9, va)) : c("", !0),
|
|
810
|
-
h(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
811
|
-
], 14, It)),
|
|
812
|
-
t.$slots.watermark ? (s(), r("div", da, [
|
|
813
|
-
h(t.$slots, "watermark", C(F({ isPrinting: u(ye) || u(ge) })), void 0, !0)
|
|
814
|
-
])) : c("", !0),
|
|
815
|
-
k("div", {
|
|
816
|
-
ref_key: "chartLegend",
|
|
817
|
-
ref: ue
|
|
818
|
-
}, [
|
|
819
|
-
h(t.$slots, "legend", { legend: P.value }, void 0, !0)
|
|
820
|
-
], 512),
|
|
821
|
-
t.$slots.source ? (s(), r("div", {
|
|
822
|
-
key: 5,
|
|
823
|
-
ref_key: "source",
|
|
824
|
-
ref: ie,
|
|
825
|
-
dir: "auto"
|
|
826
|
-
}, [
|
|
827
|
-
h(t.$slots, "source", {}, void 0, !0)
|
|
828
|
-
], 512)) : c("", !0),
|
|
829
|
-
u(de) ? (s(), W(St, { key: 6 })) : c("", !0)
|
|
830
|
-
], 46, Nt));
|
|
831
|
-
}
|
|
832
|
-
}, Fa = /* @__PURE__ */ Mt(ha, [["__scopeId", "data-v-90ebd1c4"]]);
|
|
833
|
-
export {
|
|
834
|
-
Fa as default
|
|
835
|
-
};
|