vue-data-ui 3.3.2 → 3.4.0
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-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.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-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.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-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -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-DyDViSOy.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-DyDViSOy.js")), { vue_ui_gizmo: G } = U(), s = z, u = k(E()), L = $();
|
|
21
21
|
y(() => {
|
|
22
22
|
g();
|
|
23
23
|
}), y(() => {
|