vue-data-ui 3.3.3 → 3.4.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/dist/{Arrow-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-VpPtLYhK.js} +1 -1
- package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CJXSEhan.js → UserOptions-C0YT60JN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- 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 +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-BzVpWnNO.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-oDJui39L.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-wycTM073.js} +56 -56
- package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +39 -39
- package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-CIsX5UJw.js} +7 -7
- package/dist/vue-ui-candlestick-BRFx3_KK.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-hJySHJTu.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-D4GjvQh0.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-By2NOs0N.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-OCmAkTNs.js} +59 -59
- package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-C7fwU9xb.js} +67 -67
- package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-dVVBUQJz.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-BoWGaQP0.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-YMPZ3CVA.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-BE62rVS3.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-kNpDFAWo.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-BBBiXXyk.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-PQNTTl3Y.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-D3gQxQz3.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-CKWQButF.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DYFzdR4Z.js} +91 -91
- package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-Cklyb74B.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-Cvq4ZuLe.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-Bm78P1ES.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-Bh5jTb31.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BPhJzots.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-DbJR9CN3.js} +86 -86
- package/dist/vue-ui-radar-CrenQprr.js +938 -0
- package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-BJ5RuZ0j.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-CKuom5Bu.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-B84GAEf4.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-CBX-g9w3.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-CZ8xxpEU.js} +3 -3
- package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-DOf7-cIf.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-D-MPA2zf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9xRiVSU.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-BWb0lqQP.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-BF-qr8Ti.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-DnCUpk50.js} +17 -17
- package/dist/vue-ui-stackbar-DvJ8Hahn.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-SAh1gIs5.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BJdDfMYD.js} +18 -18
- package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-BBFEJ8c6.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-D8DH6QSN.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-CaUdAHBE.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-_sUH1d3J.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-DXduzuW4.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-JdjmgwQj.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-h8zoi4Rc.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-Ck1Mx37j.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-CjWvuukM.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-Dw71_Mu2.js} +6 -6
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/dist/vue-ui-xy-tSMgXqqb.js +3375 -0
- package/package.json +2 -2
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- package/dist/vue-ui-radar-Csznqw19.js +0 -891
- package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
- package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
- package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as nt, t as it, b as ct, p as Fe, e as vt, o as Ae, h as ht, f as
|
|
1
|
+
import { defineAsyncComponent as K, computed as h, ref as f, toRefs as at, watch as Q, shallowRef as ze, onMounted as lt, onBeforeUnmount as st, createElementBlock as o, openBlock as r, unref as n, normalizeStyle as ee, normalizeClass as Ce, createBlock as U, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as R, createSlots as rt, renderSlot as x, normalizeProps as j, guardReactiveProps as W, createVNode as ot, Fragment as k, renderList as $, mergeProps as T, nextTick as ut } from "vue";
|
|
2
|
+
import { c as nt, t as it, b as ct, p as Fe, e as vt, o as Ae, h as ht, f as D, g as Oe, T as te, _ as F, a6 as dt, x as ft, X as yt, s as ae, M as gt, Y as mt, a as le, d as se, R as re } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as pt, u as kt } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as bt, B as _t } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as St } from "./usePrinter-
|
|
6
|
-
import { u as wt, a as Me } from "./useNestedProp-
|
|
5
|
+
import { u as St } from "./usePrinter-C1GiglOH.js";
|
|
6
|
+
import { u as wt, a as Me } from "./useNestedProp-B7CiTRDS.js";
|
|
7
7
|
import { u as xt } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import { u as Ct } from "./useAutoSizeLabelsInsideViewbox-
|
|
11
|
-
import Ft from "./img-
|
|
10
|
+
import { u as Ct } from "./useAutoSizeLabelsInsideViewbox-BHq4FD8x.js";
|
|
11
|
+
import Ft from "./img-CFY3JivG.js";
|
|
12
12
|
import { t as At } from "./themes-Dw-dDudK.js";
|
|
13
|
-
import Ot from "./Title-
|
|
13
|
+
import Ot from "./Title-CFmv95In.js";
|
|
14
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"],
|
|
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"], sa = { key: 0 }, ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], oa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ua = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], na = { key: 1 }, ia = ["d", "fill", "stroke", "stroke-width"], ca = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], va = ["x", "y", "font-size", "fill"], ha = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, da = {
|
|
@@ -32,7 +32,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(Ne, { expose: Pe }) {
|
|
35
|
-
const Ie =
|
|
35
|
+
const Ie = K(() => import("./PenAndPaper-Dj2diYr0.js")), Xe = K(() => import("./UserOptions-C0YT60JN.js")), Re = K(() => import("./PackageVersion-VpPtLYhK.js")), { vue_ui_gauge: Ye } = wt(), m = Ne, Te = h(() => !!m.dataset && Object.keys(m.dataset).length > 0 && m.dataset.series && m.dataset.series.length), S = f(nt()), Ee = f(null), oe = f(0), A = f(null), ue = f(null), ne = f(null), ie = f(null), ce = f(null), ve = f(0), e = f(H()), { loading: he, FINAL_DATASET: w, manualLoading: N } = bt({
|
|
36
36
|
...at(m),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: H,
|
|
@@ -78,10 +78,10 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
78
78
|
}
|
|
79
79
|
})
|
|
80
80
|
}), { userOptionsVisible: V, setUserOptionsVisibility: de, keepUserOptionState: fe } = $t({ config: e.value }), { svgRef: E } = zt({ config: e.value.style.chart.title });
|
|
81
|
-
|
|
82
|
-
he.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover,
|
|
83
|
-
}, { deep: !0 }),
|
|
84
|
-
|
|
81
|
+
Q(() => m.config, (t) => {
|
|
82
|
+
he.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Z(), ve.value += 1;
|
|
83
|
+
}, { deep: !0 }), Q(() => m.dataset, (t) => {
|
|
84
|
+
Z(), t && Object.keys(t).length > 0 && (N.value = e.value?.loading ?? !1);
|
|
85
85
|
}, { deep: !0, immediate: !1 });
|
|
86
86
|
function H() {
|
|
87
87
|
const t = Me({
|
|
@@ -100,7 +100,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
100
100
|
elementId: `vue-ui-gauge_${S.value}`,
|
|
101
101
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
102
102
|
options: e.value.userOptions.print
|
|
103
|
-
}),
|
|
103
|
+
}), Le = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = h(() => vt(e.value.customPalette)), O = h(() => {
|
|
104
104
|
if (Ae(w.value.series || {}))
|
|
105
105
|
return {
|
|
106
106
|
value: 0,
|
|
@@ -142,7 +142,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
142
142
|
}), P = f(0), z = f(0), y = f(
|
|
143
143
|
e.value.style.chart.animation.use ? Math.min(...w.value.series.map((t) => t.from)) : w.value.value
|
|
144
144
|
);
|
|
145
|
-
|
|
145
|
+
Q(() => w.value.value, () => {
|
|
146
146
|
_e(w.value.value);
|
|
147
147
|
});
|
|
148
148
|
const i = h(() => {
|
|
@@ -154,8 +154,8 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
154
154
|
y2: u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a)
|
|
155
155
|
};
|
|
156
156
|
}), ke = h(() => {
|
|
157
|
-
const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI, l = t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a), g = u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a), _ = s.value.pointerRadius,
|
|
158
|
-
return isNaN(l) ? null : `M ${l},${g} ${
|
|
157
|
+
const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI, l = t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a), g = u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a), _ = s.value.pointerRadius, Ke = t + _ * Math.cos(a + Math.PI / 2), Qe = u + _ * Math.sin(a + Math.PI / 2), et = t + _ * Math.cos(a - Math.PI / 2), tt = u + _ * Math.sin(a - Math.PI / 2);
|
|
158
|
+
return isNaN(l) ? null : `M ${l},${g} ${Ke},${Qe} ${et},${tt} Z`;
|
|
159
159
|
}), q = h(() => {
|
|
160
160
|
for (let t = 0; t < O.value.series.length; t += 1) {
|
|
161
161
|
const { color: u, from: a, to: l } = O.value.series[t];
|
|
@@ -163,19 +163,19 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
163
163
|
return u;
|
|
164
164
|
}
|
|
165
165
|
return "#2D353C";
|
|
166
|
-
}), C = ze(null), I = ze(null),
|
|
166
|
+
}), C = ze(null), I = ze(null), L = h({
|
|
167
167
|
get: () => s.value.segmentFontSize,
|
|
168
168
|
set: (t) => t
|
|
169
169
|
}), { autoSizeLabels: be } = Ct({
|
|
170
170
|
svgRef: E,
|
|
171
171
|
fontSize: s.value.segmentFontSize,
|
|
172
172
|
minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
|
|
173
|
-
sizeRef:
|
|
173
|
+
sizeRef: L,
|
|
174
174
|
labelClass: ".vue-ui-gauge-label-flat"
|
|
175
175
|
}), G = h(() => !!e.value.debug);
|
|
176
|
-
function
|
|
176
|
+
function Z() {
|
|
177
177
|
let t = !1;
|
|
178
|
-
if (Ae(m.dataset) ? (
|
|
178
|
+
if (Ae(m.dataset) ? (D({
|
|
179
179
|
componentName: "VueUiGauge",
|
|
180
180
|
type: "dataset",
|
|
181
181
|
debug: G.value
|
|
@@ -183,7 +183,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
183
183
|
datasetObject: m.dataset,
|
|
184
184
|
requiredAttributes: ["value", "series"]
|
|
185
185
|
}).forEach((u) => {
|
|
186
|
-
|
|
186
|
+
D({
|
|
187
187
|
componentName: "VueUiGauge",
|
|
188
188
|
type: "datasetAttribute",
|
|
189
189
|
property: u,
|
|
@@ -194,7 +194,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
194
194
|
datasetObject: u,
|
|
195
195
|
requiredAttributes: ["from", "to"]
|
|
196
196
|
}).forEach((l) => {
|
|
197
|
-
|
|
197
|
+
D({
|
|
198
198
|
componentName: "VueUiGauge",
|
|
199
199
|
type: "datasetSerieAttribute",
|
|
200
200
|
property: l,
|
|
@@ -202,7 +202,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
202
202
|
debug: G.value
|
|
203
203
|
}), N.value = !0, t = !0;
|
|
204
204
|
});
|
|
205
|
-
}) : (
|
|
205
|
+
}) : (D({
|
|
206
206
|
componentName: "VueUiGauge",
|
|
207
207
|
type: "datasetAttributeEmpty",
|
|
208
208
|
property: "series",
|
|
@@ -243,7 +243,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
243
243
|
be();
|
|
244
244
|
}
|
|
245
245
|
lt(() => {
|
|
246
|
-
|
|
246
|
+
Z();
|
|
247
247
|
}), st(() => {
|
|
248
248
|
C.value && (I.value && C.value.unobserve(I.value), C.value.disconnect());
|
|
249
249
|
});
|
|
@@ -330,7 +330,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
330
330
|
let l = 0;
|
|
331
331
|
return t.map((g) => (l += g, `${l / 100 * a - g / 4}%`));
|
|
332
332
|
}
|
|
333
|
-
const je = h(() => Ue(d.value.map((t) => t.proportion * 100))),
|
|
333
|
+
const je = h(() => Ue(d.value.map((t) => t.proportion * 100))), We = h(() => te(
|
|
334
334
|
{ series: O.value.series },
|
|
335
335
|
s.value.width / 2,
|
|
336
336
|
v.value.base,
|
|
@@ -342,7 +342,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
342
342
|
180,
|
|
343
343
|
110.02,
|
|
344
344
|
2 * s.value.trackSize
|
|
345
|
-
)),
|
|
345
|
+
)), De = h(() => {
|
|
346
346
|
const t = z.value >= 0 ? -z.value : Math.abs(z.value);
|
|
347
347
|
return dt({
|
|
348
348
|
radius: e.value.style.chart.layout.indicatorArc.radius * s.value.trackSize,
|
|
@@ -355,7 +355,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
355
355
|
Y.value = t, oe.value += 1;
|
|
356
356
|
}
|
|
357
357
|
const B = f(!1);
|
|
358
|
-
function
|
|
358
|
+
function J() {
|
|
359
359
|
B.value = !B.value;
|
|
360
360
|
}
|
|
361
361
|
async function Ve({ scale: t = 2 } = {}) {
|
|
@@ -370,24 +370,24 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
370
370
|
aspectRatio: l
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
const He = h(() => e.value.style.chart.backgroundColor), qe = h(() => e.value.style.chart.title), { exportSvg:
|
|
373
|
+
const He = h(() => e.value.style.chart.backgroundColor), qe = h(() => e.value.style.chart.title), { exportSvg: Ze, getSvg: Je } = xt({
|
|
374
374
|
svg: E,
|
|
375
375
|
title: qe,
|
|
376
376
|
backgroundColor: He
|
|
377
377
|
});
|
|
378
378
|
async function $e({ isCb: t }) {
|
|
379
379
|
if (t) {
|
|
380
|
-
const { blob: u, url: a, text: l, dataUrl: g } = await
|
|
380
|
+
const { blob: u, url: a, text: l, dataUrl: g } = await Je();
|
|
381
381
|
e.value.userOptions.callbacks.svg({ blob: u, url: a, text: l, dataUrl: g });
|
|
382
382
|
} else
|
|
383
|
-
|
|
383
|
+
Ze();
|
|
384
384
|
}
|
|
385
385
|
return Pe({
|
|
386
386
|
getImage: Ve,
|
|
387
387
|
generatePdf: me,
|
|
388
388
|
generateImage: pe,
|
|
389
389
|
generateSvg: $e,
|
|
390
|
-
toggleAnnotator:
|
|
390
|
+
toggleAnnotator: J,
|
|
391
391
|
toggleFullscreen: xe
|
|
392
392
|
}), (t, u) => (r(), o("div", {
|
|
393
393
|
class: Ce(`vue-data-ui-component vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
@@ -404,9 +404,9 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
404
404
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
405
405
|
color: e.value.style.chart.color,
|
|
406
406
|
active: B.value,
|
|
407
|
-
onClose:
|
|
407
|
+
onClose: J
|
|
408
408
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
409
|
-
|
|
409
|
+
Le.value ? (r(), o("div", {
|
|
410
410
|
key: 1,
|
|
411
411
|
ref_key: "noTitle",
|
|
412
412
|
ref: ce,
|
|
@@ -438,7 +438,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
438
438
|
_: 1
|
|
439
439
|
}, 8, ["config"]))
|
|
440
440
|
], 512)) : c("", !0),
|
|
441
|
-
e.value.userOptions.show &&
|
|
441
|
+
e.value.userOptions.show && Te.value && (n(fe) || n(V)) ? (r(), U(n(Xe), {
|
|
442
442
|
ref_key: "details",
|
|
443
443
|
ref: Ee,
|
|
444
444
|
key: `user_options_${oe.value}`,
|
|
@@ -464,7 +464,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
464
464
|
onGeneratePdf: n(me),
|
|
465
465
|
onGenerateImage: n(pe),
|
|
466
466
|
onGenerateSvg: $e,
|
|
467
|
-
onToggleAnnotator:
|
|
467
|
+
onToggleAnnotator: J,
|
|
468
468
|
style: ee({
|
|
469
469
|
visibility: n(fe) ? n(V) ? "visible" : "hidden" : "visible"
|
|
470
470
|
})
|
|
@@ -472,7 +472,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
472
472
|
t.$slots.menuIcon ? {
|
|
473
473
|
name: "menuIcon",
|
|
474
474
|
fn: X(({ isOpen: a, color: l }) => [
|
|
475
|
-
x(t.$slots, "menuIcon", j(
|
|
475
|
+
x(t.$slots, "menuIcon", j(W({ isOpen: a, color: l })), void 0, !0)
|
|
476
476
|
]),
|
|
477
477
|
key: "0"
|
|
478
478
|
} : void 0,
|
|
@@ -493,14 +493,14 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
493
493
|
t.$slots.optionFullscreen ? {
|
|
494
494
|
name: "optionFullscreen",
|
|
495
495
|
fn: X(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
496
|
-
x(t.$slots, "optionFullscreen", j(
|
|
496
|
+
x(t.$slots, "optionFullscreen", j(W({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
497
497
|
]),
|
|
498
498
|
key: "3"
|
|
499
499
|
} : void 0,
|
|
500
500
|
t.$slots.optionAnnotator ? {
|
|
501
501
|
name: "optionAnnotator",
|
|
502
502
|
fn: X(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
503
|
-
x(t.$slots, "optionAnnotator", j(
|
|
503
|
+
x(t.$slots, "optionAnnotator", j(W({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
504
504
|
]),
|
|
505
505
|
key: "4"
|
|
506
506
|
} : void 0
|
|
@@ -542,7 +542,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
542
542
|
p("stop", {
|
|
543
543
|
offset: "80%",
|
|
544
544
|
"stop-color": n(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
545
|
-
}, null, 8,
|
|
545
|
+
}, null, 8, Tt),
|
|
546
546
|
p("stop", {
|
|
547
547
|
offset: "100%",
|
|
548
548
|
"stop-color": n(ae)("#FFFFFF", 1)
|
|
@@ -561,11 +561,11 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
561
561
|
in: "SourceGraphic",
|
|
562
562
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
563
563
|
}, null, 8, Gt)
|
|
564
|
-
], 8,
|
|
564
|
+
], 8, Lt)
|
|
565
565
|
]),
|
|
566
566
|
t.$slots.pattern ? (r(), o("g", Bt, [
|
|
567
567
|
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("defs", null, [
|
|
568
|
-
x(t.$slots, "pattern",
|
|
568
|
+
x(t.$slots, "pattern", T({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${S.value}_${l}` }), void 0, !0)
|
|
569
569
|
]))), 256))
|
|
570
570
|
])) : c("", !0),
|
|
571
571
|
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("path", {
|
|
@@ -584,18 +584,18 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
584
584
|
}, null, 8, jt))), 128)) : c("", !0),
|
|
585
585
|
e.value.style.chart.layout.indicatorArc.show ? (r(), o("path", {
|
|
586
586
|
key: 3,
|
|
587
|
-
d:
|
|
587
|
+
d: De.value,
|
|
588
588
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
589
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, Wt)) : c("", !0),
|
|
590
590
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), o(k, { key: 4 }, [
|
|
591
591
|
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("path", {
|
|
592
592
|
id: `curve_${S.value}_${l}`,
|
|
593
593
|
d: `M ${i.value.x1},${i.value.y1} m -${M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 ${2 * M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 -${2 * M.value[l]},0`,
|
|
594
594
|
fill: "transparent"
|
|
595
|
-
}, null, 8,
|
|
595
|
+
}, null, 8, Dt))), 256)),
|
|
596
596
|
(r(!0), o(k, null, $(d.value, (a, l) => (r(), o("text", {
|
|
597
597
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
598
|
-
"font-size":
|
|
598
|
+
"font-size": L.value,
|
|
599
599
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
600
600
|
"text-anchor": "middle"
|
|
601
601
|
}, [
|
|
@@ -609,41 +609,41 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
609
609
|
class: "vue-ui-gauge-label-flat",
|
|
610
610
|
"text-anchor": n(mt)(a, !1, 12).anchor,
|
|
611
611
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
612
|
-
"font-size":
|
|
612
|
+
"font-size": L.value,
|
|
613
613
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
614
614
|
innerHTML: n(gt)({
|
|
615
615
|
content: String(a.name ?? ""),
|
|
616
|
-
fontSize:
|
|
616
|
+
fontSize: L.value,
|
|
617
617
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
618
618
|
x: a.center.endX,
|
|
619
619
|
y: a.center.endY
|
|
620
620
|
})
|
|
621
621
|
}, null, 8, qt))), 256)) : c("", !0),
|
|
622
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 }, $(
|
|
622
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 }, $(We.value, (a, l) => (r(), o("path", {
|
|
623
623
|
key: `arc_${l}`,
|
|
624
624
|
d: a.arcSlice,
|
|
625
625
|
fill: "#FFFFFF",
|
|
626
626
|
stroke: "none",
|
|
627
627
|
"stroke-linecap": "round",
|
|
628
628
|
filter: `url(#blur_${S.value})`
|
|
629
|
-
}, null, 8,
|
|
629
|
+
}, null, 8, Zt))), 128)) : c("", !0),
|
|
630
630
|
e.value.style.chart.layout.segmentSeparators.show ? (r(), o(k, { key: 7 }, [
|
|
631
|
-
p("line",
|
|
631
|
+
p("line", T(Se.value, {
|
|
632
632
|
stroke: e.value.style.chart.backgroundColor,
|
|
633
633
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
634
634
|
"stroke-linecap": "round"
|
|
635
|
-
}), null, 16,
|
|
636
|
-
p("line",
|
|
635
|
+
}), null, 16, Jt),
|
|
636
|
+
p("line", T(Se.value, {
|
|
637
637
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
638
638
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
639
639
|
"stroke-linecap": "round"
|
|
640
|
-
}), null, 16,
|
|
641
|
-
(r(!0), o(k, null, $(we.value, (a) => (r(), o("line",
|
|
640
|
+
}), null, 16, Kt),
|
|
641
|
+
(r(!0), o(k, null, $(we.value, (a) => (r(), o("line", T({ ref_for: !0 }, a, {
|
|
642
642
|
stroke: e.value.style.chart.backgroundColor,
|
|
643
643
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
644
644
|
"stroke-linecap": "round"
|
|
645
|
-
}), null, 16,
|
|
646
|
-
(r(!0), o(k, null, $(we.value, (a) => (r(), o("line",
|
|
645
|
+
}), null, 16, Qt))), 256)),
|
|
646
|
+
(r(!0), o(k, null, $(we.value, (a) => (r(), o("line", T({ ref_for: !0 }, a, {
|
|
647
647
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
648
648
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
649
649
|
"stroke-linecap": "round"
|
|
@@ -783,7 +783,7 @@ const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "h
|
|
|
783
783
|
x(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
784
784
|
], 14, It)),
|
|
785
785
|
t.$slots.watermark ? (r(), o("div", ha, [
|
|
786
|
-
x(t.$slots, "watermark", j(
|
|
786
|
+
x(t.$slots, "watermark", j(W({ isPrinting: n(ye) || n(ge) })), void 0, !0)
|
|
787
787
|
])) : c("", !0),
|
|
788
788
|
p("div", {
|
|
789
789
|
ref_key: "chartLegend",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as V, ref as k, useSlots as $, onMounted as y, computed as i, toRefs as D, watch as F, createElementBlock as a, openBlock as o, createBlock as I, createCommentVNode as r, normalizeStyle as M, createVNode as S, unref as l, createElementVNode as t, Fragment as C, toDisplayString as x } from "vue";
|
|
2
|
-
import { u as U, a as P } from "./useNestedProp-
|
|
3
|
-
import { c as E, f as O, t as T, a as w, d as b } from "./lib-
|
|
2
|
+
import { u as U, a as P } from "./useNestedProp-B7CiTRDS.js";
|
|
3
|
+
import { c as E, f as O, t as T, a as w, d as b } from "./lib-BcBZIm6u.js";
|
|
4
4
|
import { u as j, B as R } from "./BaseScanner-BgWxam9d.js";
|
|
5
5
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const H = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, J = ["viewBox", "width"], K = { key: 0 }, Q = ["id"], W = ["stop-color"], X = ["stop-color"], Y = ["stroke"], Z = ["stroke"], ee = ["width", "fill"], te = ["fill"], oe = { key: 0 }, ae = ["id"], se = ["stroke"], re = ["stroke", "stroke-dasharray", "stroke-dashoffset"], ne = ["filter"], le = ["stroke", "stroke-dasharray", "stroke-dashoffset"], ie = ["fill"], ue = {
|
|
@@ -17,7 +17,7 @@ const H = { class: "vue-data-ui-component vue-ui-gizmo-wrapper" }, J = ["viewBox
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
setup(z) {
|
|
20
|
-
const A = V(() => import("./PackageVersion-
|
|
20
|
+
const A = V(() => import("./PackageVersion-VpPtLYhK.js")), { vue_ui_gizmo: G } = U(), s = z, u = k(E()), L = $();
|
|
21
21
|
y(() => {
|
|
22
22
|
g();
|
|
23
23
|
}), y(() => {
|