vue-data-ui 3.0.0-next.62 → 3.0.0-next.64
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-vPQ5umgl.js → Arrow-_dRaTXfx.js} +1 -1
- package/dist/{BaseDraggableDialog-rmweWafM.js → BaseDraggableDialog-Y4PtzAqS.js} +2 -2
- package/dist/{BaseIcon-BdOuqa-n.js → BaseIcon-BOZCh7hC.js} +1 -1
- package/dist/{ColorPicker-BJYD-Akc.js → ColorPicker-BQEc3SYL.js} +2 -2
- package/dist/{DataTable-DKhkUltp.js → DataTable-CrVglLHi.js} +2 -2
- package/dist/{Legend-DJVidRKZ.js → Legend-C_GWb8Tk.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BO1MTyPj.js → NonSvgPenAndPaper-BevmW24f.js} +3 -3
- package/dist/{PackageVersion-CvXTVTaQ.js → PackageVersion-fw3Fpue8.js} +1 -1
- package/dist/{PenAndPaper-B_AMsItI.js → PenAndPaper-ibw3_ryE.js} +3 -3
- package/dist/{Shape-CVE1tn78.js → Shape-b_M7NPSO.js} +1 -1
- package/dist/{Slicer-Bu8DjZuX.js → Slicer-DK75_ACv.js} +2 -2
- package/dist/{SparkTooltip-CZVDoHxg.js → SparkTooltip-B03ChzvC.js} +1 -1
- package/dist/{Title-Cr_usVXc.js → Title-9MNHamcm.js} +1 -1
- package/dist/{Tooltip-7jDTalyv.js → Tooltip-JOEXaEhx.js} +1 -1
- package/dist/{UserOptions-UTvI0Q98.js → UserOptions-CbRVE0fX.js} +2 -2
- package/dist/{dom-to-png-ONrUYTRb.js → dom-to-png-B1W9a821.js} +1 -1
- package/dist/{img-iMtnfYdI.js → img-BcHBT2JO.js} +1 -1
- package/dist/{index-CwGyyfTA.js → index-0fJgjA-1.js} +13 -1
- package/dist/{pdf-DiMYy8s9.js → pdf-DTzQjfx7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +7 -0
- package/dist/types/vue-data-ui.d.ts +7 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CqI-y0RH.js → useAutoSizeLabelsInsideViewbox-C24nULUT.js} +1 -1
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/{useNestedProp-Dd5rDkqs.js → useNestedProp-DzIeL81v.js} +1 -1
- package/dist/{usePrinter-Ctvv8qBg.js → usePrinter-DhTGExI3.js} +2 -2
- package/dist/{vue-data-ui-DwvF4C9M.js → vue-data-ui-CIOtiB78.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-zgyRNuSO.js → vue-ui-3d-bar-CH1OfSA0.js} +7 -7
- package/dist/{vue-ui-accordion-5YUMPNG1.js → vue-ui-accordion-CYbAD2Cu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DW6p9iWS.js → vue-ui-age-pyramid-DNmAspwQ.js} +7 -7
- package/dist/{vue-ui-annotator-C2CMEveI.js → vue-ui-annotator-BqhLJYq4.js} +2 -2
- package/dist/{vue-ui-bullet-I1UZAw0O.js → vue-ui-bullet-YqnpMaTn.js} +8 -8
- package/dist/{vue-ui-candlestick-N2rX18KX.js → vue-ui-candlestick-ChRXb3fv.js} +8 -8
- package/dist/{vue-ui-carousel-table-CXe6ghc3.js → vue-ui-carousel-table-CB4i1JJO.js} +4 -4
- package/dist/{vue-ui-chestnut-Dkeqv0lM.js → vue-ui-chestnut-DU5gAUlD.js} +5 -5
- package/dist/{vue-ui-chord-Dp_n9sP9.js → vue-ui-chord-CTZo4n_C.js} +8 -8
- package/dist/{vue-ui-circle-pack-DrPM1UXc.js → vue-ui-circle-pack-BOWRNWEB.js} +6 -6
- package/dist/{vue-ui-cursor-BcS6aiX1.js → vue-ui-cursor-Ovg4CIQS.js} +2 -2
- package/dist/{vue-ui-dashboard-BcyCNmVV.js → vue-ui-dashboard-DY0pvfeV.js} +62 -62
- package/dist/{vue-ui-digits-BvNRrVgl.js → vue-ui-digits-BU-srr0f.js} +2 -2
- package/dist/{vue-ui-donut-Rvu6m-aE.js → vue-ui-donut-CWkcy1Rk.js} +9 -9
- package/dist/{vue-ui-donut-evolution-D2ZcgYhJ.js → vue-ui-donut-evolution-D88B3FNf.js} +9 -9
- package/dist/{vue-ui-dumbbell-CvYVCA6I.js → vue-ui-dumbbell-BOXQkCkq.js} +8 -8
- package/dist/{vue-ui-flow-_6zAZMI6.js → vue-ui-flow-DLXNCckt.js} +8 -8
- package/dist/{vue-ui-funnel-CIEJVq4d.js → vue-ui-funnel-C5vQWBzr.js} +6 -6
- package/dist/{vue-ui-galaxy-DcZ04iAF.js → vue-ui-galaxy-DqtQYXvs.js} +5 -5
- package/dist/{vue-ui-gauge-C5j1wKcj.js → vue-ui-gauge-B5pv9QSM.js} +8 -8
- package/dist/vue-ui-gizmo-P9yME_eY.js +210 -0
- package/dist/{vue-ui-heatmap-DDZ8g5dM.js → vue-ui-heatmap-CThqLejn.js} +8 -8
- package/dist/{vue-ui-history-plot-C7ZRZHzl.js → vue-ui-history-plot-DFmZWxNc.js} +8 -8
- package/dist/{vue-ui-kpi-DZ5FITOL.js → vue-ui-kpi-BuQjfvDE.js} +3 -3
- package/dist/{vue-ui-mini-loader-BaQpwyu-.js → vue-ui-mini-loader-BG4jCHYQ.js} +2 -2
- package/dist/{vue-ui-molecule-B8Ob6p-h.js → vue-ui-molecule-CF6nNGqg.js} +5 -5
- package/dist/{vue-ui-mood-radar-BrTY3gyR.js → vue-ui-mood-radar-lmarmY6M.js} +7 -7
- package/dist/{vue-ui-nested-donuts-yN_txLmU.js → vue-ui-nested-donuts-DQcO2sVr.js} +10 -10
- package/dist/{vue-ui-onion-C613Zf1i.js → vue-ui-onion-B-DVoqrQ.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-B-aXg4S4.js → vue-ui-parallel-coordinate-plot-DN-5rOWz.js} +9 -9
- package/dist/{vue-ui-quadrant-C2AeZvmZ.js → vue-ui-quadrant-DymklVce.js} +8 -8
- package/dist/{vue-ui-quick-chart-CkE6ybPo.js → vue-ui-quick-chart-9bCSYCAi.js} +7 -7
- package/dist/{vue-ui-radar-BbiqR92L.js → vue-ui-radar-Cd6IjWur.js} +7 -7
- package/dist/{vue-ui-rating-CbRUCAxl.js → vue-ui-rating-YDYoCU7s.js} +2 -2
- package/dist/{vue-ui-relation-circle-vWsjRm3W.js → vue-ui-relation-circle-B7Di_-Xd.js} +6 -6
- package/dist/{vue-ui-ridgeline-CaiytuOs.js → vue-ui-ridgeline-B35ZvK07.js} +9 -9
- package/dist/{vue-ui-rings-AFUuMvpu.js → vue-ui-rings-CM-ozCci.js} +9 -9
- package/dist/{vue-ui-scatter-Dcb9tLMu.js → vue-ui-scatter-CGped1H5.js} +9 -9
- package/dist/{vue-ui-skeleton-B1SFKW_l.js → vue-ui-skeleton-CdMOS9db.js} +3 -3
- package/dist/{vue-ui-smiley-Ba-ctrns.js → vue-ui-smiley-BOVjTGMV.js} +2 -2
- package/dist/vue-ui-spark-trend-BfGjo_5k.js +315 -0
- package/dist/{vue-ui-sparkbar-D8-HNaN_.js → vue-ui-sparkbar-DoDi9kY9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Dfnr6Bjc.js → vue-ui-sparkgauge-DX5cAEIp.js} +4 -4
- package/dist/vue-ui-sparkhistogram-D0PPQ2rc.js +380 -0
- package/dist/{vue-ui-sparkline-BA_5ICer.js → vue-ui-sparkline-3eT2bcvr.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-BQkH5ltm.js → vue-ui-sparkstackbar-1LJTj6tk.js} +4 -4
- package/dist/{vue-ui-stackbar-C7iPaQOn.js → vue-ui-stackbar-BEZAxfR1.js} +10 -10
- package/dist/{vue-ui-strip-plot-CnfeJeRi.js → vue-ui-strip-plot-BAfLo0vI.js} +8 -8
- package/dist/{vue-ui-table-Dz6RLYoS.js → vue-ui-table-UiSCuadc.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Cbgogx6N.js → vue-ui-table-heatmap-PvykXq35.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CLEfp8d2.js → vue-ui-table-sparkline-BVozLRNm.js} +4 -4
- package/dist/{vue-ui-thermometer-CzNFOqrV.js → vue-ui-thermometer-DH_gsOJF.js} +8 -8
- package/dist/{vue-ui-timer-CI7VUX-B.js → vue-ui-timer-KKNQN0Cn.js} +5 -5
- package/dist/{vue-ui-tiremarks-C0QDwzEt.js → vue-ui-tiremarks-DllwYxpL.js} +7 -7
- package/dist/{vue-ui-treemap-D-5MOqu3.js → vue-ui-treemap-CD95yJMU.js} +9 -9
- package/dist/{vue-ui-vertical-bar-sZjQranC.js → vue-ui-vertical-bar-D2Z6Sp77.js} +10 -10
- package/dist/{vue-ui-waffle-6zNYC1rh.js → vue-ui-waffle-CwO7xePC.js} +9 -9
- package/dist/{vue-ui-wheel-kx79XCaH.js → vue-ui-wheel-a5KUmx_R.js} +7 -7
- package/dist/{vue-ui-word-cloud-DI8bEQrN.js → vue-ui-word-cloud-D__Zow1C.js} +7 -7
- package/dist/{vue-ui-world-Ba2tdGRe.js → vue-ui-world-xHsSiEXj.js} +6 -6
- package/dist/{vue-ui-xy-TM3uzoN-.js → vue-ui-xy-D5g7rG2a.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DFqIhqzJ.js → vue-ui-xy-canvas-DP03hrIU.js} +8 -8
- package/package.json +1 -1
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/vue-ui-gizmo-BD9EY4bZ.js +0 -192
- package/dist/vue-ui-spark-trend-BshA2mRL.js +0 -291
- package/dist/vue-ui-sparkhistogram-BMtpx_0l.js +0 -444
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as Ja, computed as y, ref as p, onMounted as Lt, onBeforeUnmount as nt, watch as sl, nextTick as Zl, onUpdated as Ka, createElementBlock as s, openBlock as u, createElementVNode as m, createCommentVNode as h, renderSlot as K, normalizeStyle as $, createVNode as Ul, withDirectives as Bt, unref as v, Fragment as f, renderList as L, normalizeClass as Re, vModelText as ba, toDisplayString as ae, defineAsyncComponent as yl, useSlots as Qa, getCurrentInstance as ja, toRefs as eo, watchEffect as lo, createBlock as Ke, createSlots as to, withCtx as pe, normalizeProps as vl, guardReactiveProps as kl, mergeProps as kt, vModelCheckbox as ao, createTextVNode as oo } from "vue";
|
|
2
|
-
import { c as _t, V as Mt, U as At, X as uo, F as je, u as io, f as Vt, t as so, a5 as ul, d as no, D as st, ad as Nl, e as ro, p as co, ae as wt, aa as Y, af as vo, h as V, ag as pa, ah as ya, ai as ho, aj as ka, ak as wa, k as we, y as fo, z as go, _ as Sa, R as il, i as De, x as Rl, s as Qe, a8 as ee, L as mo, al as St, I as xo, am as wl, C as Xe, a as bo, b as po, o as $a, v as yo, w as ko, E as Gl } from "./index-
|
|
2
|
+
import { c as _t, V as Mt, U as At, X as uo, F as je, u as io, f as Vt, t as so, a5 as ul, d as no, D as st, ad as Nl, e as ro, p as co, ae as wt, aa as Y, af as vo, h as V, ag as pa, ah as ya, ai as ho, aj as ka, ak as wa, k as we, y as fo, z as go, _ as Sa, R as il, i as De, x as Rl, s as Qe, a8 as ee, L as mo, al as St, I as xo, am as wl, C as Xe, a as bo, b as po, o as $a, v as yo, w as ko, E as Gl } from "./index-0fJgjA-1.js";
|
|
3
3
|
import { t as Ft, u as wo } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as So } from "./usePrinter-
|
|
5
|
-
import { u as $o, B as _o } from "./useLoading-
|
|
6
|
-
import { u as Et } from "./useNestedProp-
|
|
4
|
+
import { u as So } from "./usePrinter-DhTGExI3.js";
|
|
5
|
+
import { u as $o, B as _o } from "./useLoading-D7YHNtLX.js";
|
|
6
|
+
import { u as Et } from "./useNestedProp-DzIeL81v.js";
|
|
7
7
|
import { u as _a } from "./useTimeLabels-DkzmKfZn.js";
|
|
8
8
|
import { u as Lo } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import Mo from "./img-
|
|
10
|
-
import Ao from "./Title-
|
|
11
|
-
import { S as Co } from "./Slicer-
|
|
12
|
-
import { _ as $t } from "./Shape-
|
|
13
|
-
import zo from "./BaseIcon-
|
|
9
|
+
import Mo from "./img-BcHBT2JO.js";
|
|
10
|
+
import Ao from "./Title-9MNHamcm.js";
|
|
11
|
+
import { S as Co } from "./Slicer-DK75_ACv.js";
|
|
12
|
+
import { _ as $t } from "./Shape-b_M7NPSO.js";
|
|
13
|
+
import zo from "./BaseIcon-BOZCh7hC.js";
|
|
14
14
|
import { _ as La } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const To = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -709,7 +709,7 @@ const To = {
|
|
|
709
709
|
},
|
|
710
710
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
711
711
|
setup(C, { expose: Ct, emit: zt }) {
|
|
712
|
-
const d = C, Pe = yl(() => import("./DataTable-
|
|
712
|
+
const d = C, Pe = yl(() => import("./DataTable-CrVglLHi.js")), ie = yl(() => import("./Tooltip-JOEXaEhx.js")), re = yl(() => import("./UserOptions-CbRVE0fX.js")), Sl = yl(() => import("./BaseIcon-BOZCh7hC.js")), ql = yl(() => import("./vue-ui-table-sparkline-BVozLRNm.js")), Pl = yl(() => import("./vue-ui-accordion-CYbAD2Cu.js")), $l = yl(() => import("./PackageVersion-fw3Fpue8.js")), _l = yl(() => import("./PenAndPaper-ibw3_ryE.js")), dl = zt, Jl = Qa(), Kl = ja(), { vue_ui_xy: Ql } = io(), fe = p(null), ye = p(null), ze = p(null), el = p(null), Ll = p(null), Ml = p(null), Tt = p(null), He = p(null), Hl = p(null), nl = p(null), Al = p(null), D = p(null), ll = p(null), ge = p(0), M = p(null), Ve = p(!0), se = p(600), ne = p(1e3), Vl = p("0 0 1000 600"), Cl = p({ x: 0, y: 0 }), Ge = p({ line: "line", bar: "bar", plot: "plot" }), hl = p(!1), rl = p(!1), El = p(!1), Te = p(null), oe = p([]), Q = p(_t()), rt = p(0), ct = p(0), jl = p(0), Me = p(!0), Ee = p(0), O = p(null), Ue = p(!1), Bl = p(!0), Fl = p(!0), Se = p(null), Be = p({}), Wl = p(null), S = p(null), vt = y(() => ({
|
|
713
713
|
height: se.value,
|
|
714
714
|
width: ne.value
|
|
715
715
|
})), fl = d.config.downsample && d.config.downsample.threshold ? d.config.downsample.threshold : 500, b = p({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as K, ref as d, computed as L, useSlots as Va, onMounted as ua, watch as D, nextTick as sa, shallowRef as ze, onBeforeUnmount as Ga, createElementBlock as se, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as X, createBlock as N, createElementVNode as ne, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
|
|
2
|
-
import { u as Ka, c as Qa, a as el, p as V, b as al, C as ge, d as ll, D as $e, k as ee, i as ae, e as ia, a5 as tl, G as ol, af as rl, o as ul, f as sl, y as va, v as nl, w as il, z as vl, s as ie, l as cl } from "./index-
|
|
2
|
+
import { u as Ka, c as Qa, a as el, p as V, b as al, C as ge, d as ll, D as $e, k as ee, i as ae, e as ia, a5 as tl, G as ol, af as rl, o as ul, f as sl, y as va, v as nl, w as il, z as vl, s as ie, l as cl } from "./index-0fJgjA-1.js";
|
|
3
3
|
import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Ie, b as R, p as da } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ha } from "./useNestedProp-
|
|
5
|
-
import { u as gl } from "./usePrinter-
|
|
4
|
+
import { u as ha } from "./useNestedProp-DzIeL81v.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-DhTGExI3.js";
|
|
6
6
|
import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import bl from "./Legend-
|
|
9
|
-
import xl from "./Title-
|
|
10
|
-
import { S as Ll } from "./Slicer-
|
|
8
|
+
import bl from "./Legend-C_GWb8Tk.js";
|
|
9
|
+
import xl from "./Title-9MNHamcm.js";
|
|
10
|
+
import { S as Ll } from "./Slicer-DK75_ACv.js";
|
|
11
11
|
import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
|
|
12
|
-
import Cl from "./img-
|
|
12
|
+
import Cl from "./img-BcHBT2JO.js";
|
|
13
13
|
import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Sl = ["id"], zl = ["onClick"], $l = {
|
|
15
15
|
key: 2,
|
|
@@ -32,7 +32,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(Me, { expose: ya, emit: fa }) {
|
|
35
|
-
const ga = K(() => import("./vue-ui-accordion-
|
|
35
|
+
const ga = K(() => import("./vue-ui-accordion-CYbAD2Cu.js")), pa = K(() => import("./DataTable-CrVglLHi.js")), ma = K(() => import("./NonSvgPenAndPaper-BevmW24f.js")), ba = K(() => import("./vue-ui-skeleton-CdMOS9db.js")), xa = K(() => import("./Tooltip-JOEXaEhx.js")), La = K(() => import("./UserOptions-CbRVE0fX.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
|
|
36
36
|
ua(() => {
|
|
37
37
|
wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
38
38
|
});
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as p, openBlock as v, ref as d, computed as g, unref as c, watchEffect as h } from "vue";
|
|
2
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const y = {}, B = { class: "vue-data-ui-scanner" };
|
|
4
|
-
function E(a, n) {
|
|
5
|
-
return v(), p("div", B);
|
|
6
|
-
}
|
|
7
|
-
const I = /* @__PURE__ */ A(y, [["render", E], ["__scopeId", "data-v-d6376e44"]]);
|
|
8
|
-
function S({
|
|
9
|
-
config: a,
|
|
10
|
-
dataset: n,
|
|
11
|
-
skeletonDataset: r,
|
|
12
|
-
skeletonConfig: t,
|
|
13
|
-
FINAL_CONFIG: i,
|
|
14
|
-
prepareConfig: _,
|
|
15
|
-
callback: s = null
|
|
16
|
-
}) {
|
|
17
|
-
const u = d(!1), o = g(() => {
|
|
18
|
-
const f = c(a)?.loading ?? !1, e = c(n), m = e == null || Array.isArray(e) && e.length === 0 || Object.keys(e).length === 0;
|
|
19
|
-
return u.value || f || m;
|
|
20
|
-
}), l = d(c(n));
|
|
21
|
-
return h(() => {
|
|
22
|
-
l.value = o.value ? r : c(n), i.value = o.value ? t : _(), s && s();
|
|
23
|
-
}), { loading: o, FINAL_DATASET: l, manualLoading: u, skeletonDataset: r, skeletonConfig: t };
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
I as B,
|
|
27
|
-
S as u
|
|
28
|
-
};
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as z, ref as G, useSlots as L, onMounted as _, computed as c, watch as N, createElementBlock as s, openBlock as a, normalizeStyle as $, createVNode as F, createCommentVNode as n, unref as l, createElementVNode as t, Fragment as p, toDisplayString as y } from "vue";
|
|
2
|
-
import { u as V, c as B, f as P, k, i as m } from "./index-CwGyyfTA.js";
|
|
3
|
-
import { u as U } from "./useNestedProp-Dd5rDkqs.js";
|
|
4
|
-
const D = ["viewBox", "width"], I = { key: 0 }, M = ["id"], S = ["stop-color"], A = ["stop-color"], E = ["stroke"], O = ["stroke"], j = ["width", "fill"], T = ["fill"], q = { key: 0 }, H = ["id"], J = ["stroke"], K = ["stroke", "stroke-dasharray", "stroke-dashoffset"], Q = ["filter"], R = ["stroke", "stroke-dasharray", "stroke-dashoffset"], W = ["fill"], ee = {
|
|
5
|
-
__name: "vue-ui-gizmo",
|
|
6
|
-
props: {
|
|
7
|
-
config: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default() {
|
|
10
|
-
return {};
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
dataset: {
|
|
14
|
-
type: Number,
|
|
15
|
-
default: 0
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(f) {
|
|
19
|
-
const w = z(() => import("./PackageVersion-CvXTVTaQ.js")), { vue_ui_gizmo: x } = V(), o = f, u = G(B()), C = L();
|
|
20
|
-
_(() => {
|
|
21
|
-
h();
|
|
22
|
-
}), _(() => {
|
|
23
|
-
C["chart-background"] && console.warn("VueUiGizmo does not support the #chart-background slot.");
|
|
24
|
-
});
|
|
25
|
-
function h() {
|
|
26
|
-
!o.dataset && o.dataset !== 0 && P({
|
|
27
|
-
componentName: "VueUiGizmo",
|
|
28
|
-
type: "dataset"
|
|
29
|
-
}), o.dataset < 0 && console.warn("VueUiGizmo: dataset cannot be negative.");
|
|
30
|
-
}
|
|
31
|
-
const e = c({
|
|
32
|
-
get: () => g(),
|
|
33
|
-
set: (i) => i
|
|
34
|
-
});
|
|
35
|
-
function g() {
|
|
36
|
-
return U({
|
|
37
|
-
userConfig: o.config,
|
|
38
|
-
defaultConfig: x
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
N(() => o.config, (i) => {
|
|
42
|
-
e.value = g(), h();
|
|
43
|
-
}, { deep: !0 });
|
|
44
|
-
const v = c(() => ({
|
|
45
|
-
battery: { width: e.value.showPercentage ? 140 : 80, height: 50 },
|
|
46
|
-
gauge: { width: 80, height: 80 }
|
|
47
|
-
})[e.value.type]), d = c(() => {
|
|
48
|
-
const r = 2 * Math.PI * 35, b = r - o.dataset / 100 * r;
|
|
49
|
-
return {
|
|
50
|
-
dasharray: `${r} ${r}`,
|
|
51
|
-
dashoffset: b
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
return (i, r) => (a(), s("svg", {
|
|
55
|
-
class: "vue-ui-gizmo",
|
|
56
|
-
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
57
|
-
width: e.value.size,
|
|
58
|
-
style: $({
|
|
59
|
-
background: "transparent",
|
|
60
|
-
fontFamily: e.value.fontFamily
|
|
61
|
-
})
|
|
62
|
-
}, [
|
|
63
|
-
F(l(w)),
|
|
64
|
-
e.value.useGradient ? (a(), s("defs", I, [
|
|
65
|
-
t("linearGradient", {
|
|
66
|
-
id: `gizmo_gradient_${u.value}`,
|
|
67
|
-
x1: "0%",
|
|
68
|
-
x2: "100%",
|
|
69
|
-
y1: "0%",
|
|
70
|
-
y2: "0%"
|
|
71
|
-
}, [
|
|
72
|
-
t("stop", {
|
|
73
|
-
offset: "0%",
|
|
74
|
-
"stop-color": e.value.gradientColor
|
|
75
|
-
}, null, 8, S),
|
|
76
|
-
t("stop", {
|
|
77
|
-
offset: "100%",
|
|
78
|
-
"stop-color": e.value.color
|
|
79
|
-
}, null, 8, A)
|
|
80
|
-
], 8, M)
|
|
81
|
-
])) : n("", !0),
|
|
82
|
-
e.value.type === "battery" ? (a(), s(p, { key: 1 }, [
|
|
83
|
-
t("path", {
|
|
84
|
-
d: "M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",
|
|
85
|
-
stroke: e.value.stroke,
|
|
86
|
-
"stroke-width": 2,
|
|
87
|
-
fill: "none"
|
|
88
|
-
}, null, 8, E),
|
|
89
|
-
t("path", {
|
|
90
|
-
d: "M 70 16 L 70 34",
|
|
91
|
-
stroke: e.value.stroke,
|
|
92
|
-
"stroke-width": 2,
|
|
93
|
-
fill: "none",
|
|
94
|
-
style: { opacity: "0.5" }
|
|
95
|
-
}, null, 8, O),
|
|
96
|
-
t("rect", {
|
|
97
|
-
x: 10,
|
|
98
|
-
y: 10,
|
|
99
|
-
height: 30,
|
|
100
|
-
width: 55 * (f.dataset / 100),
|
|
101
|
-
fill: e.value.useGradient ? `url(#gizmo_gradient_${u.value})` : e.value.color,
|
|
102
|
-
rx: 2
|
|
103
|
-
}, null, 8, j),
|
|
104
|
-
e.value.showPercentage ? (a(), s("text", {
|
|
105
|
-
key: 0,
|
|
106
|
-
x: 85,
|
|
107
|
-
y: 32,
|
|
108
|
-
"text-anchor": "start",
|
|
109
|
-
"font-size": "20",
|
|
110
|
-
fill: e.value.textColor
|
|
111
|
-
}, y(l(k)(
|
|
112
|
-
e.value.formatter,
|
|
113
|
-
o.dataset,
|
|
114
|
-
l(m)({
|
|
115
|
-
v: o.dataset,
|
|
116
|
-
s: "%"
|
|
117
|
-
})
|
|
118
|
-
)), 9, T)) : n("", !0)
|
|
119
|
-
], 64)) : n("", !0),
|
|
120
|
-
e.value.type === "gauge" ? (a(), s(p, { key: 2 }, [
|
|
121
|
-
e.value.useGradient ? (a(), s("defs", q, [
|
|
122
|
-
t("filter", {
|
|
123
|
-
id: `blur_${u.value}`,
|
|
124
|
-
x: "-50%",
|
|
125
|
-
y: "-50%",
|
|
126
|
-
width: "200%",
|
|
127
|
-
height: "200%"
|
|
128
|
-
}, r[0] || (r[0] = [
|
|
129
|
-
t("feGaussianBlur", {
|
|
130
|
-
in: "SourceGraphic",
|
|
131
|
-
stdDeviation: 1
|
|
132
|
-
}, null, -1)
|
|
133
|
-
]), 8, H)
|
|
134
|
-
])) : n("", !0),
|
|
135
|
-
t("circle", {
|
|
136
|
-
cx: 40,
|
|
137
|
-
cy: 40,
|
|
138
|
-
r: 35,
|
|
139
|
-
stroke: e.value.stroke,
|
|
140
|
-
"stroke-width": 2 * 4,
|
|
141
|
-
fill: "none"
|
|
142
|
-
}, null, 8, J),
|
|
143
|
-
t("circle", {
|
|
144
|
-
cx: 40,
|
|
145
|
-
cy: 40,
|
|
146
|
-
r: 35,
|
|
147
|
-
stroke: e.value.color,
|
|
148
|
-
"stroke-width": 2 * 4,
|
|
149
|
-
"stroke-dasharray": d.value.dasharray,
|
|
150
|
-
"stroke-dashoffset": d.value.dashoffset,
|
|
151
|
-
"stroke-linecap": "round",
|
|
152
|
-
fill: "none",
|
|
153
|
-
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
154
|
-
}, null, 8, K),
|
|
155
|
-
e.value.useGradient ? (a(), s("g", {
|
|
156
|
-
key: 1,
|
|
157
|
-
filter: `url(#blur_${u.value})`
|
|
158
|
-
}, [
|
|
159
|
-
t("circle", {
|
|
160
|
-
cx: 40,
|
|
161
|
-
cy: 40,
|
|
162
|
-
r: 35,
|
|
163
|
-
stroke: e.value.gradientColor,
|
|
164
|
-
"stroke-width": 1,
|
|
165
|
-
fill: "none",
|
|
166
|
-
"stroke-dasharray": d.value.dasharray,
|
|
167
|
-
"stroke-dashoffset": d.value.dashoffset,
|
|
168
|
-
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
169
|
-
}, null, 8, R)
|
|
170
|
-
], 8, Q)) : n("", !0),
|
|
171
|
-
e.value.showPercentage ? (a(), s("text", {
|
|
172
|
-
key: 2,
|
|
173
|
-
x: 40,
|
|
174
|
-
y: 47,
|
|
175
|
-
"text-anchor": "middle",
|
|
176
|
-
"font-size": "20",
|
|
177
|
-
fill: e.value.textColor
|
|
178
|
-
}, y(l(k)(
|
|
179
|
-
e.value.formatter,
|
|
180
|
-
o.dataset,
|
|
181
|
-
l(m)({
|
|
182
|
-
v: o.dataset,
|
|
183
|
-
s: "%"
|
|
184
|
-
})
|
|
185
|
-
)), 9, W)) : n("", !0)
|
|
186
|
-
], 64)) : n("", !0)
|
|
187
|
-
], 12, D));
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
export {
|
|
191
|
-
ee as default
|
|
192
|
-
};
|
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as M, computed as s, ref as k, watch as D, onMounted as ee, createElementBlock as r, openBlock as o, normalizeStyle as te, createBlock as L, createCommentVNode as i, unref as u, createVNode as ae, createElementVNode as _, renderSlot as O, toDisplayString as G } from "vue";
|
|
2
|
-
import { u as le, c as ne, b as oe, a5 as I, o as se, f as ue, h as c, a6 as re, X as ie, s as F, V as U, i as P, k as de } from "./index-CwGyyfTA.js";
|
|
3
|
-
import { u as q } from "./useNestedProp-Dd5rDkqs.js";
|
|
4
|
-
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const he = ["id"], ce = ["xmlns", "viewBox"], ye = ["width", "height"], fe = ["id"], pe = ["stop-color"], ge = ["stop-color"], me = { key: 1 }, ke = ["d", "fill"], _e = ["d", "fill"], be = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], we = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], xe = ["height", "width", "x"], Ce = { style: { width: "100%" } }, Le = ["x", "y", "fill", "font-size", "font-weight"], $e = ["stroke", "cx", "cy", "fill"], Ne = ["x", "y", "font-size", "fill", "font-weight"], Te = {
|
|
6
|
-
key: 2,
|
|
7
|
-
ref: "source",
|
|
8
|
-
dir: "auto"
|
|
9
|
-
}, ze = {
|
|
10
|
-
__name: "vue-ui-spark-trend",
|
|
11
|
-
props: {
|
|
12
|
-
config: {
|
|
13
|
-
type: Object,
|
|
14
|
-
default() {
|
|
15
|
-
return {};
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
dataset: {
|
|
19
|
-
type: Array,
|
|
20
|
-
default() {
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(W) {
|
|
26
|
-
const $ = M(() => import("./BaseIcon-BdOuqa-n.js")), X = M(() => import("./PackageVersion-CvXTVTaQ.js")), Z = M(() => import("./vue-ui-skeleton-B1SFKW_l.js")), { vue_ui_spark_trend: R } = le(), d = W, H = s(() => !!d.dataset && d.dataset.length), b = k(ne()), e = s({
|
|
27
|
-
get: () => j(),
|
|
28
|
-
set: (t) => t
|
|
29
|
-
});
|
|
30
|
-
function j() {
|
|
31
|
-
const t = q({
|
|
32
|
-
userConfig: d.config,
|
|
33
|
-
defaultConfig: R
|
|
34
|
-
});
|
|
35
|
-
return t.theme ? {
|
|
36
|
-
...q({
|
|
37
|
-
userConfig: oe.vue_ui_spark_trend[t.theme] || d.config,
|
|
38
|
-
defaultConfig: t
|
|
39
|
-
})
|
|
40
|
-
} : t;
|
|
41
|
-
}
|
|
42
|
-
const f = s(() => I({
|
|
43
|
-
data: d.dataset,
|
|
44
|
-
threshold: e.value.downsample.threshold
|
|
45
|
-
}));
|
|
46
|
-
D(() => d.config, (t) => {
|
|
47
|
-
e.value = j(), A();
|
|
48
|
-
}, { deep: !0 }), D(() => d.dataset, (t) => {
|
|
49
|
-
g.value = I({
|
|
50
|
-
data: d.dataset,
|
|
51
|
-
threshold: e.value.downsample.threshold
|
|
52
|
-
}).map((n) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(n) ? null : n);
|
|
53
|
-
}, { deep: !0 });
|
|
54
|
-
function N(t) {
|
|
55
|
-
return t.map((n) => c(n));
|
|
56
|
-
}
|
|
57
|
-
const g = k(I({
|
|
58
|
-
data: d.dataset,
|
|
59
|
-
threshold: e.value.downsample.threshold
|
|
60
|
-
}).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), m = k(!1), T = k(null);
|
|
61
|
-
ee(() => {
|
|
62
|
-
A();
|
|
63
|
-
let n = 1e3 / e.value.style.animation.animationFrames, h = performance.now();
|
|
64
|
-
if (e.value.style.animation.show && e.value.style.animation.animationFrames && d.dataset.length > 1) {
|
|
65
|
-
let S = function() {
|
|
66
|
-
m.value = !0;
|
|
67
|
-
let B = performance.now(), E = B - h;
|
|
68
|
-
E > n ? (h = B - E % n, p < f.value.length ? (g.value.push(f.value[p]), p += 1, T.value = requestAnimationFrame(S)) : (cancelAnimationFrame(T.value), g.value = N(f.value), m.value = !1)) : T.value = requestAnimationFrame(S);
|
|
69
|
-
};
|
|
70
|
-
g.value = [];
|
|
71
|
-
let p = 0;
|
|
72
|
-
S();
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
function A() {
|
|
76
|
-
se(d.dataset) && ue({
|
|
77
|
-
componentName: "VueUiSparkTrend",
|
|
78
|
-
type: "dataset"
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
const l = k({
|
|
82
|
-
height: 80,
|
|
83
|
-
width: 300
|
|
84
|
-
}), y = s(() => ({
|
|
85
|
-
top: e.value.style.padding.top,
|
|
86
|
-
left: e.value.style.padding.left,
|
|
87
|
-
right: l.value.width - e.value.style.padding.right,
|
|
88
|
-
bottom: l.value.height - e.value.style.padding.bottom,
|
|
89
|
-
height: l.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
|
|
90
|
-
width: l.value.width - (e.value.style.padding.left + e.value.style.padding.right)
|
|
91
|
-
})), z = s(() => {
|
|
92
|
-
const t = N(f.value);
|
|
93
|
-
return {
|
|
94
|
-
max: Math.max(...t.map((n) => c(n))),
|
|
95
|
-
min: Math.min(...t.map((n) => c(n)))
|
|
96
|
-
};
|
|
97
|
-
}), w = s(() => {
|
|
98
|
-
const t = z.value.min >= 0 ? 0 : z.value.min;
|
|
99
|
-
return Math.abs(t);
|
|
100
|
-
}), J = s(() => z.value.max + w.value);
|
|
101
|
-
function V(t) {
|
|
102
|
-
return t / J.value;
|
|
103
|
-
}
|
|
104
|
-
const K = s(() => f.value.length), a = s(() => g.value.map((t, n) => {
|
|
105
|
-
const h = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
|
|
106
|
-
return {
|
|
107
|
-
value: c(t),
|
|
108
|
-
absoluteValue: c(h),
|
|
109
|
-
plotValue: c(h + w.value),
|
|
110
|
-
toMax: V(h + w.value),
|
|
111
|
-
x: y.value.left + c(n * (y.value.width / (K.value - 1))) - e.value.style.padding.right,
|
|
112
|
-
y: y.value.bottom - c(y.value.height * V(h + w.value))
|
|
113
|
-
};
|
|
114
|
-
})), x = s(() => {
|
|
115
|
-
const t = N(f.value);
|
|
116
|
-
return e.value.style.trendLabel.trendType === "global" ? re(t) : e.value.style.trendLabel.trendType === "n-1" && t.length > 1 ? (t.at(-1) / t.at(-2) - 1) * 100 : e.value.style.trendLabel.trendType === "lastToFirst" ? (t.at(-1) / t[0] - 1) * 100 : 0;
|
|
117
|
-
}), C = s(() => m.value || x.value === 0 ? "neutral" : x.value > 0 ? "positive" : "negative"), v = s(() => e.value.style.arrow.colors[C.value]), Q = s(() => {
|
|
118
|
-
const t = { x: a.value[0].x, y: l.value.height - 6 }, n = { x: a.value[a.value.length - 1].x, y: l.value.height - 6 }, h = [];
|
|
119
|
-
return a.value.forEach((p) => {
|
|
120
|
-
h.push(`${p.x},${p.y} `);
|
|
121
|
-
}), [t.x, t.y, ...h, n.x, n.y].toString();
|
|
122
|
-
}), Y = s(() => {
|
|
123
|
-
let t = [];
|
|
124
|
-
return a.value.forEach((n) => {
|
|
125
|
-
t.push(`${n.x},${n.y} `);
|
|
126
|
-
}), `M ${t.toString()}`;
|
|
127
|
-
});
|
|
128
|
-
return (t, n) => (o(), r("div", {
|
|
129
|
-
class: "vue-ui-spark-trend",
|
|
130
|
-
id: b.value,
|
|
131
|
-
style: te(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
|
|
132
|
-
}, [
|
|
133
|
-
H.value ? (o(), r("svg", {
|
|
134
|
-
key: 1,
|
|
135
|
-
xmlns: u(ie),
|
|
136
|
-
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
137
|
-
style: "width:100%;background:transparent;overflow:visible"
|
|
138
|
-
}, [
|
|
139
|
-
ae(u(X)),
|
|
140
|
-
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
141
|
-
key: 0,
|
|
142
|
-
x: 0,
|
|
143
|
-
y: 0,
|
|
144
|
-
width: l.value.width <= 0 ? 10 : l.value.width,
|
|
145
|
-
height: l.value.height <= 0 ? 10 : l.value.height,
|
|
146
|
-
style: {
|
|
147
|
-
pointerEvents: "none"
|
|
148
|
-
}
|
|
149
|
-
}, [
|
|
150
|
-
O(t.$slots, "chart-background", {}, void 0, !0)
|
|
151
|
-
], 8, ye)) : i("", !0),
|
|
152
|
-
_("defs", null, [
|
|
153
|
-
_("linearGradient", {
|
|
154
|
-
x1: "0%",
|
|
155
|
-
y1: "0%",
|
|
156
|
-
x2: "0%",
|
|
157
|
-
y2: "100%",
|
|
158
|
-
id: `pill_gradient_${b.value}`
|
|
159
|
-
}, [
|
|
160
|
-
_("stop", {
|
|
161
|
-
offset: "0%",
|
|
162
|
-
"stop-color": u(F)(e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke, e.value.style.area.opacity)
|
|
163
|
-
}, null, 8, pe),
|
|
164
|
-
_("stop", {
|
|
165
|
-
offset: "100%",
|
|
166
|
-
"stop-color": e.value.style.backgroundColor
|
|
167
|
-
}, null, 8, ge)
|
|
168
|
-
], 8, fe)
|
|
169
|
-
]),
|
|
170
|
-
e.value.style.area.show && a.value[0] ? (o(), r("g", me, [
|
|
171
|
-
e.value.style.line.smooth ? (o(), r("path", {
|
|
172
|
-
key: 0,
|
|
173
|
-
d: `M ${a.value[0].x},${y.value.bottom} ${u(U)(a.value)} L ${a.value.at(-1).x},${y.value.bottom} Z`,
|
|
174
|
-
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : u(F)(e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
175
|
-
stroke: "none"
|
|
176
|
-
}, null, 8, ke)) : (o(), r("path", {
|
|
177
|
-
key: 1,
|
|
178
|
-
d: `M${Q.value}Z`,
|
|
179
|
-
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${b.value})` : u(F)(e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
180
|
-
stroke: "none"
|
|
181
|
-
}, null, 8, _e))
|
|
182
|
-
])) : i("", !0),
|
|
183
|
-
e.value.style.line.smooth && a.value.length ? (o(), r("path", {
|
|
184
|
-
key: 2,
|
|
185
|
-
d: `M ${u(U)(a.value)}`,
|
|
186
|
-
stroke: e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke,
|
|
187
|
-
fill: "none",
|
|
188
|
-
"stroke-width": e.value.style.line.strokeWidth,
|
|
189
|
-
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
190
|
-
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
191
|
-
}, null, 8, be)) : i("", !0),
|
|
192
|
-
!e.value.style.line.smooth && a.value.length ? (o(), r("path", {
|
|
193
|
-
key: 3,
|
|
194
|
-
d: Y.value,
|
|
195
|
-
stroke: e.value.style.line.useColorTrend ? v.value : e.value.style.line.stroke,
|
|
196
|
-
fill: "none",
|
|
197
|
-
"stroke-width": e.value.style.line.strokeWidth,
|
|
198
|
-
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
199
|
-
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
200
|
-
}, null, 8, we)) : i("", !0),
|
|
201
|
-
m.value ? i("", !0) : (o(), r("foreignObject", {
|
|
202
|
-
key: 4,
|
|
203
|
-
height: l.value.height / 2,
|
|
204
|
-
width: l.value.height / 2,
|
|
205
|
-
x: l.value.height / 5,
|
|
206
|
-
y: 8
|
|
207
|
-
}, [
|
|
208
|
-
_("div", Ce, [
|
|
209
|
-
C.value === "positive" ? (o(), L(u($), {
|
|
210
|
-
key: 0,
|
|
211
|
-
stroke: v.value,
|
|
212
|
-
name: "arrowTop",
|
|
213
|
-
size: l.value.height / 2
|
|
214
|
-
}, null, 8, ["stroke", "size"])) : i("", !0),
|
|
215
|
-
C.value === "negative" ? (o(), L(u($), {
|
|
216
|
-
key: 1,
|
|
217
|
-
stroke: v.value,
|
|
218
|
-
name: "arrowBottom",
|
|
219
|
-
size: l.value.height / 2
|
|
220
|
-
}, null, 8, ["stroke", "size"])) : i("", !0),
|
|
221
|
-
C.value === "neutral" ? (o(), L(u($), {
|
|
222
|
-
key: 2,
|
|
223
|
-
stroke: v.value,
|
|
224
|
-
name: "arrowRight",
|
|
225
|
-
size: l.value.height / 2
|
|
226
|
-
}, null, 8, ["stroke", "size"])) : i("", !0)
|
|
227
|
-
])
|
|
228
|
-
], 8, xe)),
|
|
229
|
-
m.value ? i("", !0) : (o(), r("text", {
|
|
230
|
-
key: 5,
|
|
231
|
-
x: l.value.height / 2 - l.value.height / 20,
|
|
232
|
-
y: y.value.bottom,
|
|
233
|
-
"text-anchor": "middle",
|
|
234
|
-
fill: e.value.style.trendLabel.useColorTrend ? v.value : e.value.style.trendLabel.color,
|
|
235
|
-
"font-size": e.value.style.trendLabel.fontSize,
|
|
236
|
-
"font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
|
|
237
|
-
}, G(u(P)({
|
|
238
|
-
p: x.value > 0 ? "+" : "",
|
|
239
|
-
v: x.value,
|
|
240
|
-
s: "%",
|
|
241
|
-
r: e.value.style.trendLabel.rounding
|
|
242
|
-
})), 9, Le)),
|
|
243
|
-
a.value.length && a.value.at(-1).x !== void 0 ? (o(), r("circle", {
|
|
244
|
-
key: 6,
|
|
245
|
-
stroke: e.value.style.backgroundColor,
|
|
246
|
-
"stroke-width": 2,
|
|
247
|
-
cx: a.value.at(-1).x,
|
|
248
|
-
cy: a.value.at(-1).y,
|
|
249
|
-
r: 4,
|
|
250
|
-
fill: v.value
|
|
251
|
-
}, null, 8, $e)) : i("", !0),
|
|
252
|
-
a.value.length && a.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (o(), r("text", {
|
|
253
|
-
key: 7,
|
|
254
|
-
"text-anchor": "middle",
|
|
255
|
-
x: a.value.at(-1).x,
|
|
256
|
-
y: a.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
|
|
257
|
-
"font-size": e.value.style.dataLabel.fontSize,
|
|
258
|
-
fill: e.value.style.dataLabel.useColorTrend ? v.value : e.value.style.dataLabel.color,
|
|
259
|
-
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
260
|
-
}, G(u(de)(
|
|
261
|
-
e.value.style.dataLabel.formatter,
|
|
262
|
-
a.value.at(-1).value,
|
|
263
|
-
u(P)({
|
|
264
|
-
p: e.value.style.dataLabel.prefix,
|
|
265
|
-
v: a.value.at(-1).value,
|
|
266
|
-
s: e.value.style.dataLabel.suffix,
|
|
267
|
-
r: e.value.style.dataLabel.rounding
|
|
268
|
-
}),
|
|
269
|
-
{ datapoint: a.value.at(-1) }
|
|
270
|
-
)), 9, Ne)) : i("", !0)
|
|
271
|
-
], 8, ce)) : (o(), L(u(Z), {
|
|
272
|
-
key: 0,
|
|
273
|
-
config: {
|
|
274
|
-
type: "sparkline",
|
|
275
|
-
style: {
|
|
276
|
-
backgroundColor: e.value.style.backgroundColor,
|
|
277
|
-
sparkline: {
|
|
278
|
-
color: "#CCCCCC"
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}, null, 8, ["config"])),
|
|
283
|
-
t.$slots.source ? (o(), r("div", Te, [
|
|
284
|
-
O(t.$slots, "source", {}, void 0, !0)
|
|
285
|
-
], 512)) : i("", !0)
|
|
286
|
-
], 12, he));
|
|
287
|
-
}
|
|
288
|
-
}, je = /* @__PURE__ */ ve(ze, [["__scopeId", "data-v-1a673d38"]]);
|
|
289
|
-
export {
|
|
290
|
-
je as default
|
|
291
|
-
};
|