vue-data-ui 3.0.0-next.4 → 3.0.0-next.41
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-COeGcYaf.js → Arrow-FZbM_OMm.js} +1 -1
- package/dist/{BaseDraggableDialog-B6a_nUd1.js → BaseDraggableDialog-rjsCDxdM.js} +2 -2
- package/dist/{BaseIcon-C_m_NEgt.js → BaseIcon-d5M_8gn6.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-_xpvmgl6.js → ColorPicker-Br0iohs5.js} +2 -2
- package/dist/{DataTable-kd4xY9pT.js → DataTable-CyFoVhAB.js} +2 -2
- package/dist/{Legend-Bow74t3d.js → Legend-BY-3lPeC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-cUcAGGV2.js → NonSvgPenAndPaper-DjILEBYN.js} +3 -3
- package/dist/{PackageVersion-3ZfzB951.js → PackageVersion-QefvdSlr.js} +1 -1
- package/dist/{PenAndPaper-BZddJqUG.js → PenAndPaper-CeTnED7E.js} +3 -3
- package/dist/{Shape-BsptIVCm.js → Shape-ClINMlel.js} +43 -37
- package/dist/Slicer-CTVgtwAo.js +588 -0
- package/dist/{SparkTooltip-BdD0e0jv.js → SparkTooltip-D7iBCVUT.js} +7 -7
- package/dist/{Title-FiH2Kirc.js → Title-C2MeWc6b.js} +1 -1
- package/dist/{Tooltip-BLtR7DBZ.js → Tooltip-CyC0lofV.js} +23 -19
- package/dist/{UserOptions-DOwmMJId.js → UserOptions-Q4MLYmK1.js} +2 -2
- package/dist/{dom-to-png-DnsK-Zal.js → dom-to-png-Bmhnn6-_.js} +1 -1
- package/dist/{img-CP2uNkKq.js → img-1ZBpWF3A.js} +1 -1
- package/dist/{index-BnnNoGGd.js → index-D-ozSgn5.js} +1555 -1268
- package/dist/{pdf-urw1sGoX.js → pdf-Dm9wepT-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +245 -12
- package/dist/types/vue-data-ui.d.ts +245 -12
- package/dist/{useNestedProp-B6Dz15k2.js → useNestedProp-xgFDyd-D.js} +1 -1
- package/dist/{usePrinter-Dd-RkmL8.js → usePrinter-CyhyubAW.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-Dql75T3d.js → vue-data-ui-BvqaMmwo.js} +64 -64
- package/dist/vue-data-ui.js +26 -25
- package/dist/{vue-ui-3d-bar-CUDEgTKp.js → vue-ui-3d-bar-wFrj_nHo.js} +6 -6
- package/dist/{vue-ui-accordion-qNR0BQCP.js → vue-ui-accordion-CzcfvDc6.js} +3 -3
- package/dist/vue-ui-age-pyramid-C06opmye.js +834 -0
- package/dist/{vue-ui-annotator-CeMOjHpf.js → vue-ui-annotator-rLnZGNrU.js} +2 -2
- package/dist/vue-ui-bullet-BrtBslm2.js +571 -0
- package/dist/vue-ui-candlestick-CTHK4Nkb.js +999 -0
- package/dist/{vue-ui-carousel-table-CAr64-2F.js → vue-ui-carousel-table-BEot5M0l.js} +4 -4
- package/dist/{vue-ui-chestnut-B0zNp1jY.js → vue-ui-chestnut-C4xlmyWV.js} +5 -5
- package/dist/{vue-ui-chord-C-_tz6Tb.js → vue-ui-chord-odv0oGun.js} +8 -8
- package/dist/{vue-ui-circle-pack-BSTkkKx-.js → vue-ui-circle-pack-Dv7OO-jl.js} +26 -26
- package/dist/{vue-ui-cursor-Dqd6RkcK.js → vue-ui-cursor-CHPi6ptC.js} +2 -2
- package/dist/{vue-ui-dashboard-CspqjC6x.js → vue-ui-dashboard-yZ6EoUYB.js} +62 -62
- package/dist/{vue-ui-digits-CazGAGyM.js → vue-ui-digits-C502piFU.js} +2 -2
- package/dist/{vue-ui-donut-BK35Gt-7.js → vue-ui-donut-XKTZp6vn.js} +408 -381
- package/dist/vue-ui-donut-evolution-BETQ3m-1.js +1075 -0
- package/dist/{vue-ui-dumbbell-CJal89Ud.js → vue-ui-dumbbell-B0koyYHY.js} +7 -7
- package/dist/vue-ui-flow-BOXbr-B4.js +841 -0
- package/dist/{vue-ui-funnel-Dm0LCakq.js → vue-ui-funnel-BuLuXMWN.js} +6 -6
- package/dist/{vue-ui-galaxy-C9poCSSD.js → vue-ui-galaxy-Duo4_PQ0.js} +60 -58
- package/dist/{vue-ui-gauge-CYXXfMRC.js → vue-ui-gauge-CzvkhWyr.js} +6 -6
- package/dist/{vue-ui-gizmo-B-8rhor5.js → vue-ui-gizmo-C_s3Mad5.js} +3 -3
- package/dist/vue-ui-heatmap-BfPyDKrE.js +1078 -0
- package/dist/{vue-ui-history-plot-C_Si7S5S.js → vue-ui-history-plot-11zollOK.js} +12 -10
- package/dist/{vue-ui-kpi-BYYBkt55.js → vue-ui-kpi-BAFYYyfo.js} +3 -3
- package/dist/{vue-ui-mini-loader-DmHE-wrb.js → vue-ui-mini-loader-DUDhlnIj.js} +2 -2
- package/dist/{vue-ui-molecule-I2ZUVtal.js → vue-ui-molecule-Dng9xRXp.js} +46 -44
- package/dist/{vue-ui-mood-radar-BYUr9rcv.js → vue-ui-mood-radar-CZITumE0.js} +7 -7
- package/dist/vue-ui-nested-donuts-BvLGT-wp.js +1286 -0
- package/dist/{vue-ui-onion-BpGz1RFC.js → vue-ui-onion-BVXel8xL.js} +46 -44
- package/dist/vue-ui-parallel-coordinate-plot-CCVeKuyk.js +915 -0
- package/dist/{vue-ui-quadrant-CByC4r8k.js → vue-ui-quadrant-CvH-NZdr.js} +59 -57
- package/dist/vue-ui-quick-chart-Cw9hhg7p.js +1761 -0
- package/dist/{vue-ui-radar-CBVb6GyN.js → vue-ui-radar-CgOon7mZ.js} +12 -10
- package/dist/{vue-ui-rating-Thf6P6AF.js → vue-ui-rating-B5c-kqdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-Blg3GkeU.js → vue-ui-relation-circle-qt6Rkmmg.js} +6 -6
- package/dist/{vue-ui-ridgeline-D6kxALQN.js → vue-ui-ridgeline-BbLx23HV.js} +12 -10
- package/dist/{vue-ui-rings-bBHc4cwe.js → vue-ui-rings-CRRnF21q.js} +13 -11
- package/dist/{vue-ui-scatter-DS6-kGZL.js → vue-ui-scatter-CmFDRXa2.js} +99 -97
- package/dist/{vue-ui-skeleton-gHkpLBcj.js → vue-ui-skeleton-CIU55VVP.js} +3 -3
- package/dist/{vue-ui-smiley-S7qJ-dRf.js → vue-ui-smiley-BBTuuurS.js} +2 -2
- package/dist/{vue-ui-spark-trend-Co-sKoQX.js → vue-ui-spark-trend-CfCb4r4K.js} +3 -3
- package/dist/{vue-ui-sparkbar-G1Jhr305.js → vue-ui-sparkbar-CY2g4HPf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Bzm5X8us.js → vue-ui-sparkgauge-0xVecWxL.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-IGnxrQK9.js → vue-ui-sparkhistogram-DXT4M8c6.js} +4 -4
- package/dist/vue-ui-sparkline-BgUGZ1AX.js +489 -0
- package/dist/{vue-ui-sparkstackbar-C_cbbRT_.js → vue-ui-sparkstackbar-ic4Q92W2.js} +55 -53
- package/dist/vue-ui-stackbar-C1K77Eph.js +1370 -0
- package/dist/{vue-ui-strip-plot-Cw1CDIL0.js → vue-ui-strip-plot-B-EluNpw.js} +30 -28
- package/dist/{vue-ui-table-C4A73F9D.js → vue-ui-table-D8yiQSAZ.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DDlDAXMI.js → vue-ui-table-heatmap-BV03Xipx.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CQDLqNvX.js → vue-ui-table-sparkline-BJDrPMNM.js} +4 -4
- package/dist/{vue-ui-thermometer-DgBtT1Ts.js → vue-ui-thermometer-BfTaCEvy.js} +6 -6
- package/dist/{vue-ui-timer-DwL2EUHc.js → vue-ui-timer-yaD9CnrU.js} +5 -5
- package/dist/{vue-ui-tiremarks-J9v9JAmf.js → vue-ui-tiremarks-DZmn0x0x.js} +19 -19
- package/dist/{vue-ui-treemap-BSPd3wFo.js → vue-ui-treemap-cLoY4lkA.js} +47 -45
- package/dist/vue-ui-vertical-bar-CptPUybG.js +1108 -0
- package/dist/vue-ui-waffle-C6_JY56k.js +910 -0
- package/dist/{vue-ui-wheel-B_r_vUFd.js → vue-ui-wheel-CZa3V2a8.js} +6 -6
- package/dist/{vue-ui-word-cloud-DqvRfwF3.js → vue-ui-word-cloud-Bwa3o0gV.js} +12 -10
- package/dist/{vue-ui-world-DguPtgux.js → vue-ui-world-Dk4VR0iE.js} +11 -9
- package/dist/vue-ui-xy-CLRcmnNU.js +3755 -0
- package/dist/{vue-ui-xy-canvas-Cv4Fs6Jw.js → vue-ui-xy-canvas-CVW7Wok4.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-i0BAmgHn.js +0 -577
- package/dist/vue-ui-age-pyramid-BFWU1VGZ.js +0 -746
- package/dist/vue-ui-bullet-CmNollxj.js +0 -513
- package/dist/vue-ui-candlestick-CkoAVYNh.js +0 -873
- package/dist/vue-ui-donut-evolution-SomhFGJh.js +0 -903
- package/dist/vue-ui-flow-BFsmk2iL.js +0 -765
- package/dist/vue-ui-heatmap-BQzObiF9.js +0 -877
- package/dist/vue-ui-nested-donuts-DEm7s2uC.js +0 -1177
- package/dist/vue-ui-parallel-coordinate-plot-SkVvzSSQ.js +0 -807
- package/dist/vue-ui-quick-chart-GEYFXShR.js +0 -1612
- package/dist/vue-ui-sparkline-ezu4qjgC.js +0 -459
- package/dist/vue-ui-stackbar-BD9gyxAb.js +0 -1207
- package/dist/vue-ui-vertical-bar-B5b5tXjT.js +0 -1029
- package/dist/vue-ui-waffle-Bh_gS8y2.js +0 -863
- package/dist/vue-ui-xy-MFNbJqgb.js +0 -2980
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as w, computed as g, createElementBlock as e, openBlock as o, normalizeStyle as n, normalizeClass as N, createCommentVNode as a, unref as s, createVNode as d, createElementVNode as t, Fragment as k, renderList as h, createStaticVNode as $ } from "vue";
|
|
2
|
-
import { u as F, R as B, X as u, s as v, _ as O } from "./index-
|
|
3
|
-
import { u as V } from "./useNestedProp-
|
|
4
|
-
import y from "./PackageVersion-
|
|
2
|
+
import { u as F, R as B, X as u, s as v, _ as O } from "./index-D-ozSgn5.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-xgFDyd-D.js";
|
|
4
|
+
import y from "./PackageVersion-QefvdSlr.js";
|
|
5
5
|
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const G = ["id"], R = ["xmlns"], T = { transform: "translate(300, 300)" }, U = ["d", "fill", "stroke"], Y = ["xmlns"], D = ["id"], J = ["stop-color"], K = ["stop-color"], l1 = ["stop-color"], t1 = ["stop-color"], e1 = ["fill", "stroke"], o1 = ["fill", "stroke"], s1 = ["fill", "stroke"], r1 = ["fill", "stroke"], i1 = ["fill", "stroke"], n1 = ["xmlns"], a1 = ["stroke"], u1 = ["stroke"], c1 = ["stroke"], d1 = ["fill", "stroke"], y1 = ["fill"], k1 = ["fill", "stroke"], h1 = ["fill"], v1 = ["fill", "stroke"], _1 = ["fill"], x1 = ["fill", "stroke"], p1 = ["fill"], g1 = ["fill", "stroke"], f1 = ["fill"], w1 = ["fill", "stroke"], C1 = ["fill"], m1 = ["xmlns"], b1 = ["stroke"], M1 = ["stroke"], L1 = ["stroke"], A1 = ["stroke"], $1 = ["stroke"], B1 = ["stroke"], P1 = ["stroke"], W1 = ["stroke"], j1 = ["stroke"], z1 = ["xmlns"], Z1 = ["stroke", "fill"], q1 = ["xmlns"], H1 = ["stroke", "fill"], Q1 = ["xmlns"], E1 = ["fill"], S1 = ["fill"], I1 = ["fill"], N1 = ["fill"], F1 = ["xmlns"], O1 = ["stroke"], V1 = ["fill"], X1 = ["stroke", "fill"], G1 = ["stroke", "fill"], R1 = ["fill"], T1 = ["stroke", "fill"], U1 = ["stroke", "fill"], Y1 = ["fill"], D1 = ["stroke", "fill"], J1 = ["stroke", "fill"], K1 = ["fill"], ll = ["stroke", "fill"], tl = ["stroke", "fill"], el = ["fill"], ol = ["stroke", "fill"], sl = ["stroke", "fill"], rl = ["xmlns"], il = ["stroke"], nl = ["stroke"], al = ["stroke", "fill"], ul = ["stroke", "fill"], cl = ["stroke", "fill"], dl = ["stroke", "fill"], yl = ["stroke", "fill"], kl = ["stroke", "fill"], hl = ["stroke", "fill"], vl = ["stroke", "fill"], _l = ["stroke", "fill"], xl = ["stroke", "fill"], pl = ["stroke", "fill"], gl = ["stroke", "fill"], fl = ["stroke", "fill"], wl = ["stroke", "fill"], Cl = ["stroke", "fill"], ml = ["stroke", "fill"], bl = ["stroke", "fill"], Ml = ["stroke", "fill"], Ll = ["stroke", "fill"], Al = ["stroke", "fill"], $l = ["stroke", "fill"], Bl = ["stroke", "fill"], Pl = ["stroke", "fill"], Wl = ["xmlns"], jl = ["stroke"], zl = ["xmlns"], Zl = ["stroke"], ql = ["xmlns"], Hl = ["stroke"], Ql = ["xmlns"], El = ["fill"], Sl = ["fill"], Il = ["fill"], Nl = ["fill"], Fl = ["fill"], Ol = ["fill"], Vl = ["fill"], Xl = ["fill"], Gl = ["fill"], Rl = ["fill"], Tl = ["fill"], Ul = ["fill"], Yl = ["xmlns"], Dl = ["stroke"], Jl = ["stroke"], Kl = ["stroke"], l0 = ["stroke"], t0 = ["stroke"], e0 = ["stroke"], o0 = ["xmlns"], s0 = ["stroke"], r0 = ["stroke"], i0 = ["stroke"], n0 = ["stroke"], a0 = ["stroke"], u0 = ["stroke"], c0 = ["stroke"], d0 = ["stroke"], y0 = ["stroke"], k0 = ["xmlns"], h0 = ["stroke"], v0 = ["xmlns"], _0 = ["stroke"], x0 = ["stroke"], p0 = ["stroke"], g0 = ["stroke"], f0 = ["stroke"], w0 = ["stroke"], C0 = ["stroke"], m0 = ["stroke"], b0 = ["stroke"], M0 = ["xmlns"], L0 = ["x1", "x2", "stroke"], A0 = ["xmlns"], $0 = ["x", "y", "width", "height", "fill"], B0 = ["y", "width", "height", "fill"], P0 = ["xmlns"], W0 = ["fill"], j0 = ["fill"], z0 = ["fill"], Z0 = ["xmlns"], q0 = ["x1", "x2", "y1", "y2", "stroke"], H0 = ["stroke"], Q0 = ["fill"], E0 = ["xmlns"], S0 = ["fill"], I0 = ["fill"], N0 = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], F0 = ["xmlns"], O0 = { key: 0 }, V0 = ["stroke", "stroke-width"], X0 = ["stroke", "stroke-width"], G0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], R0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], T0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], U0 = ["x", "y", "height", "width", "fill"], Y0 = ["xmlns", "viewBox"], D0 = ["x", "y", "stroke", "fill"], J0 = ["xmlns"], K0 = ["d", "stroke"], lt = ["cx", "cy", "r", "fill", "stroke"], tt = ["cx", "cy", "r", "fill", "stroke"], et = ["x", "y", "width", "fill"], ot = ["cx", "cy", "fill"], st = ["cx", "cy", "fill"], rt = ["stroke"], it = ["xmlns"], nt = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ut = ["stroke", "stroke-width"], ct = ["fill"], dt = ["fill"], yt = ["fill"], kt = ["fill"], ht = ["fill"], vt = ["fill"], _t = ["xmlns"], xt = { key: 0 }, pt = ["stroke", "stroke-width"], gt = ["stroke", "stroke-width"], ft = ["stroke", "stroke-width"], wt = { key: 1 }, Ct = ["r", "fill"], mt = ["r", "fill"], bt = ["xmlns"], Mt = { key: 0 }, Lt = ["stroke", "stroke-width"], At = ["stroke", "stroke-width"], $t = ["fill", "rx", "x", "y", "width", "height"], Bt = ["xmlns"], Pt = ["stroke-width", "stroke"], Wt = ["stroke-width", "stroke"], jt = ["stroke-width", "stroke"], zt = ["xmlns"], Zt = ["stroke"], qt = ["stroke"], Ht = ["stroke"], Qt = ["stroke"], Et = ["fill"], St = ["stroke"], It = ["xmlns"], Nt = ["stroke", "stroke-width"], Ft = ["stroke", "stroke-width"], Ot = ["fill", "r"], Vt = ["fill", "r"], Xt = ["fill", "r"], Gt = ["fill", "r"], Rt = ["fill", "r"], Tt = ["fill", "r"], Ut = ["fill", "r"], Yt = ["fill", "r"], Dt = ["fill", "r"], Jt = ["xmlns"], Kt = ["d", "stroke", "stroke-width"], le = ["d", "stroke", "stroke-width"], te = ["d", "stroke", "stroke-width"], ee = ["d", "stroke", "stroke-width"], oe = ["stroke", "stroke-width"], se = ["stroke", "stroke-width"], re = ["stroke", "stroke-width"], ie = ["fill"], ne = ["fill"], ae = ["xmlns"], ue = ["x", "y", "fill"], ce = ["x", "y", "fill"], de = ["x", "y", "fill"], ye = ["xmlns"], ke = ["fill"], he = ["fill"], ve = ["y1", "y2", "stroke", "stroke-width"], _e = ["x1", "x2", "stroke", "stroke-width"], xe = ["xmlns", "stroke"], pe = ["fill"], ge = ["xmlns", "stroke"], fe = ["xmlns", "stroke"], we = ["fill"], Ce = ["xmlns", "stroke"], me = ["xmlns", "stroke"], be = ["fill"], Me = ["xmlns", "stroke"], Le = ["xmlns", "stroke"], Ae = ["fill"], $e = ["xmlns", "stroke"], Be = ["xmlns", "stroke"], Pe = ["fill"], We = ["xmlns", "stroke"], je = ["xmlns"], ze = ["points", "fill", "stroke", "stroke-width"], Ze = ["xmlns"], qe = { key: 0 }, He = ["stroke", "stroke-width"], Qe = ["y", "width", "fill", "rx"], Ee = {
|
|
7
7
|
__name: "vue-ui-skeleton",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSlots as E, onMounted as G, ref as R, computed as _, watch as T, createElementBlock as s, openBlock as i, normalizeStyle as a, createCommentVNode as d, createElementVNode as l, toDisplayString as c, unref as o, withKeys as z, normalizeClass as M, createTextVNode as S, createStaticVNode as $ } from "vue";
|
|
2
|
-
import { u as P, o as q, e as J, i as x, f as b, X as f,
|
|
3
|
-
import { u as Q } from "./useNestedProp-
|
|
2
|
+
import { u as P, o as q, e as J, i as x, f as b, X as f, x as k } from "./index-D-ozSgn5.js";
|
|
3
|
+
import { u as Q } from "./useNestedProp-xgFDyd-D.js";
|
|
4
4
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const Z = {
|
|
6
6
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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, a as oe, a5 as I, o as se, e as ue,
|
|
3
|
-
import { u as q } from "./useNestedProp-
|
|
2
|
+
import { u as le, c as ne, a as oe, a5 as I, o as se, e as ue, w as c, a6 as re, X as ie, s as F, V as U, f as P, i as de } from "./index-D-ozSgn5.js";
|
|
3
|
+
import { u as q } from "./useNestedProp-xgFDyd-D.js";
|
|
4
4
|
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
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
6
|
key: 2,
|
|
@@ -23,7 +23,7 @@ const he = ["id"], ce = ["xmlns", "viewBox"], ye = ["width", "height"], fe = ["i
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(W) {
|
|
26
|
-
const $ = M(() => import("./BaseIcon-
|
|
26
|
+
const $ = M(() => import("./BaseIcon-d5M_8gn6.js")), X = M(() => import("./PackageVersion-QefvdSlr.js")), Z = M(() => import("./vue-ui-skeleton-CIU55VVP.js")), { vue_ui_spark_trend: R } = le(), d = W, H = s(() => !!d.dataset && d.dataset.length), b = k(ne()), e = s({
|
|
27
27
|
get: () => j(),
|
|
28
28
|
set: (t) => t
|
|
29
29
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as V, useSlots as R, onMounted as z, computed as g, ref as k, watch as L, nextTick as Y, createElementBlock as c, openBlock as u, normalizeStyle as p, unref as o, renderSlot as _, createCommentVNode as v, createBlock as Z, normalizeProps as ee, mergeProps as O, createElementVNode as d, toDisplayString as f, Fragment as T, renderList as te, createVNode as le } from "vue";
|
|
2
|
-
import { u as ae, c as oe, t as se, p as x, a as ne, b as ue, o as re, e as E, g as ie, d as ce, s as $, i as b, f as w, X as ve,
|
|
3
|
-
import { u as B } from "./useNestedProp-
|
|
2
|
+
import { u as ae, c as oe, t as se, p as x, a as ne, b as ue, o as re, e as E, g as ie, d as ce, s as $, i as b, f as w, X as ve, x as de } from "./index-D-ozSgn5.js";
|
|
3
|
+
import { u as B } from "./useNestedProp-xgFDyd-D.js";
|
|
4
4
|
const pe = ["onClick"], fe = { key: 1 }, ye = ["xmlns", "viewBox"], me = ["id"], ge = ["stop-color"], he = ["stop-color"], ke = ["height", "width", "fill", "rx"], xe = ["height", "width", "fill", "rx"], be = ["height", "width", "fill", "rx"], we = {
|
|
5
5
|
key: 2,
|
|
6
6
|
ref: "source",
|
|
@@ -30,7 +30,7 @@ const pe = ["onClick"], fe = { key: 1 }, ye = ["xmlns", "viewBox"], me = ["id"],
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectDatapoint"],
|
|
32
32
|
setup(C, { emit: M }) {
|
|
33
|
-
const U = V(() => import("./PackageVersion-
|
|
33
|
+
const U = V(() => import("./PackageVersion-QefvdSlr.js")), j = V(() => import("./vue-ui-skeleton-CIU55VVP.js")), { vue_ui_sparkbar: G } = ae(), a = C, W = R();
|
|
34
34
|
z(() => {
|
|
35
35
|
W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
36
36
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as A, computed as s, onMounted as N, ref as M, watch as S, createElementBlock as r, openBlock as n, normalizeStyle as y, createCommentVNode as v, createBlock as R, toDisplayString as g, unref as i, createVNode as U, createElementVNode as d, renderSlot as z, normalizeClass as q } from "vue";
|
|
2
|
-
import { u as O } from "./useNestedProp-
|
|
3
|
-
import { u as T, o as V, e as j, g as X, c as H, a as Y, P as J, X as K, i as Q,
|
|
2
|
+
import { u as O } from "./useNestedProp-xgFDyd-D.js";
|
|
3
|
+
import { u as T, o as V, e as j, g as X, c as H, a as Y, P as J, X as K, i as Q, w as m, f as W } from "./index-D-ozSgn5.js";
|
|
4
4
|
import { u as Z } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
5
|
const ee = ["xmlns", "viewBox"], te = ["width", "height"], ae = ["id"], le = ["stop-color"], oe = ["stop-color"], se = ["d", "stroke", "stroke-linecap"], ue = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ne = ["x", "y", "font-size", "fill", "font-weight"], ie = {
|
|
6
6
|
key: 4,
|
|
@@ -23,7 +23,7 @@ const ee = ["xmlns", "viewBox"], te = ["width", "height"], ae = ["id"], le = ["s
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(E) {
|
|
26
|
-
const F = A(() => import("./PackageVersion-
|
|
26
|
+
const F = A(() => import("./PackageVersion-QefvdSlr.js")), B = A(() => import("./vue-ui-skeleton-CIU55VVP.js")), { vue_ui_sparkgauge: D } = T(), a = E, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
27
27
|
N(() => {
|
|
28
28
|
h();
|
|
29
29
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCssVars as le, computed as _, defineAsyncComponent as N, onMounted as ae, ref as D, watch as se, createElementBlock as s, openBlock as a, normalizeStyle as $, createCommentVNode as c, createBlock as V, createElementVNode as h, createTextVNode as oe, toDisplayString as p, unref as n, createVNode as ie, renderSlot as I, Fragment as f, renderList as g, normalizeClass as E } from "vue";
|
|
2
|
-
import { u as ue, o as re, e as H, g as ne, c as ve, a as de, s as b, i as F, f as O, X as ce,
|
|
3
|
-
import { u as W } from "./useNestedProp-
|
|
2
|
+
import { u as ue, o as re, e as H, g as ne, c as ve, a as de, s as b, i as F, f as O, X as ce, x as z } from "./index-D-ozSgn5.js";
|
|
3
|
+
import { u as W } from "./useNestedProp-xgFDyd-D.js";
|
|
4
4
|
import { u as ye } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
-
import { _ as he } from "./Shape-
|
|
5
|
+
import { _ as he } from "./Shape-ClINMlel.js";
|
|
6
6
|
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const ge = { key: 0 }, pe = { key: 1 }, be = ["xmlns", "viewBox"], me = ["width", "height"], _e = ["id"], xe = ["stop-color"], ke = ["stop-color"], we = ["id"], $e = ["stop-color"], Ce = ["stop-color"], Le = ["id"], ze = ["stop-color"], Se = ["stop-color"], Ae = { key: 1 }, Me = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ne = { key: 2 }, De = ["x", "y", "font-size", "font-weight", "fill"], Ve = ["x", "y", "font-size", "fill"], Ie = ["x", "y", "font-size", "fill"], Ee = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], He = {
|
|
8
8
|
key: 2,
|
|
@@ -29,7 +29,7 @@ const ge = { key: 0 }, pe = { key: 1 }, be = ["xmlns", "viewBox"], me = ["width"
|
|
|
29
29
|
le((l) => ({
|
|
30
30
|
"2d6ebc7a": J.value
|
|
31
31
|
}));
|
|
32
|
-
const j = N(() => import("./PackageVersion-
|
|
32
|
+
const j = N(() => import("./PackageVersion-QefvdSlr.js")), R = N(() => import("./vue-ui-skeleton-CIU55VVP.js")), { vue_ui_sparkhistogram: X } = ue(), d = B, S = _(() => !!d.dataset && d.dataset.length);
|
|
33
33
|
ae(() => {
|
|
34
34
|
A();
|
|
35
35
|
});
|
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import { defineAsyncComponent as le, computed as h, ref as g, toRefs as $e, watch as ue, shallowRef as oe, onMounted as Ce, onBeforeUnmount as Me, createElementBlock as d, openBlock as r, normalizeStyle as V, renderSlot as M, createCommentVNode as y, createBlock as se, normalizeProps as ne, guardReactiveProps as re, createElementVNode as f, toDisplayString as z, unref as i, createVNode as Ie, Fragment as G, renderList as U, withCtx as Se, createTextVNode as Ve, nextTick as ze } from "vue";
|
|
2
|
+
import { u as De, c as We, v as Pe, a as Re, C as ie, a7 as j, o as ve, e as de, g as Te, x as D, a8 as Ee, a9 as Oe, X as Be, s as W, V as ce, U as Fe, aa as he, i as X, f as Y, ab as Ge } from "./index-D-ozSgn5.js";
|
|
3
|
+
import { u as ye } from "./useNestedProp-xgFDyd-D.js";
|
|
4
|
+
import { t as Ue, u as je } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Xe } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { u as Ye, B as qe } from "./BaseScanner-DIK2NTdp.js";
|
|
7
|
+
import { u as Ze } from "./useTimeLabels-DkzmKfZn.js";
|
|
8
|
+
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const Je = ["id"], Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], et = ["id"], tt = ["stop-color"], at = ["stop-color"], lt = ["id"], ut = ["stop-color"], ot = ["stop-color"], st = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = { key: 1 }, vt = ["d", "fill"], dt = ["d", "fill"], ct = ["d", "stroke", "stroke-width"], ht = ["d", "stroke", "stroke-width"], yt = ["x", "y", "width", "height", "fill", "rx"], ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bt = ["x", "y", "font-size", "font-weight", "fill"], mt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], kt = {
|
|
10
|
+
__name: "vue-ui-sparkline",
|
|
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
|
+
showInfo: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
selectedIndex: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: void 0
|
|
31
|
+
},
|
|
32
|
+
heightRatio: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: 1
|
|
35
|
+
},
|
|
36
|
+
forcedPadding: {
|
|
37
|
+
type: Number,
|
|
38
|
+
default: 30
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["hoverIndex", "selectDatapoint"],
|
|
42
|
+
setup(_, { emit: fe }) {
|
|
43
|
+
const pe = le(() => import("./PackageVersion-QefvdSlr.js")), ge = le(() => import("./SparkTooltip-D7iBCVUT.js")), { vue_ui_sparkline: be } = De(), n = _, q = h(() => Array.isArray(n.dataset) && n.dataset.length > 0), p = g(We()), P = g(null), Z = g(null), H = g(null), e = g(E());
|
|
44
|
+
function me(t) {
|
|
45
|
+
return Ge(t).map((a) => ({ period: "-", value: a }));
|
|
46
|
+
}
|
|
47
|
+
const { loading: R, FINAL_DATASET: I, manualLoading: T } = Ye({
|
|
48
|
+
...$e(n),
|
|
49
|
+
FINAL_CONFIG: e,
|
|
50
|
+
prepareConfig: E,
|
|
51
|
+
callback: () => {
|
|
52
|
+
Promise.resolve().then(async () => {
|
|
53
|
+
await ze(), K();
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
skeletonDataset: me(12),
|
|
57
|
+
skeletonConfig: Pe({
|
|
58
|
+
defaultConfig: e.value,
|
|
59
|
+
userConfig: {
|
|
60
|
+
style: {
|
|
61
|
+
backgroundColor: "#99999930",
|
|
62
|
+
scaleMin: 0,
|
|
63
|
+
scaleMax: 89,
|
|
64
|
+
animation: { show: !1 },
|
|
65
|
+
line: { color: "#AAAAAA" },
|
|
66
|
+
bar: { color: "#AAAAAA" },
|
|
67
|
+
area: { color: "#CACACA" },
|
|
68
|
+
zeroLine: { color: "#6A6A6A" },
|
|
69
|
+
dataLabel: { show: !1 },
|
|
70
|
+
tooltip: { show: !1 }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
})
|
|
74
|
+
}), { svgRef: J } = Xe({ config: e.value.style.title });
|
|
75
|
+
function E() {
|
|
76
|
+
const t = ye({
|
|
77
|
+
userConfig: n.config,
|
|
78
|
+
defaultConfig: be
|
|
79
|
+
});
|
|
80
|
+
let a = {};
|
|
81
|
+
return t.theme ? a = {
|
|
82
|
+
...ye({
|
|
83
|
+
userConfig: Re.vue_ui_sparkline[t.theme] || n.config,
|
|
84
|
+
defaultConfig: t
|
|
85
|
+
})
|
|
86
|
+
} : a = t, n.config && ie(n.config, "style.scaleMin") ? a.style.scaleMin = n.config.style.scaleMin : a.style.scaleMin = null, n.config && ie(n.config, "style.scaleMax") ? a.style.scaleMax = n.config.style.scaleMax : a.style.scaleMax = null, a;
|
|
87
|
+
}
|
|
88
|
+
const k = h(() => j({
|
|
89
|
+
data: I.value,
|
|
90
|
+
threshold: e.value.downsample.threshold
|
|
91
|
+
}));
|
|
92
|
+
ue(() => n.config, (t) => {
|
|
93
|
+
R.value || (e.value = E()), ee(), u.value.chartWidth = e.value.style.chartWidth;
|
|
94
|
+
}, { deep: !0 }), ue(() => n.dataset, (t) => {
|
|
95
|
+
Array.isArray(t) && t.length > 0 && (T.value = !1), x.value = j({
|
|
96
|
+
data: I.value.map((a) => ({
|
|
97
|
+
...a,
|
|
98
|
+
value: [void 0].includes(a.value) ? null : a.value
|
|
99
|
+
})),
|
|
100
|
+
threshold: e.value.downsample.threshold
|
|
101
|
+
});
|
|
102
|
+
}, { deep: !0 });
|
|
103
|
+
const x = g(ke());
|
|
104
|
+
function ke() {
|
|
105
|
+
return j({
|
|
106
|
+
data: I.value.map((t) => e.value.style.animation.show && I.value.length > 1 ? {
|
|
107
|
+
...t,
|
|
108
|
+
value: null
|
|
109
|
+
} : {
|
|
110
|
+
...t,
|
|
111
|
+
value: [void 0].includes(t.value) ? null : t.value
|
|
112
|
+
}),
|
|
113
|
+
threshold: e.value.downsample.threshold
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
const b = oe(null), L = oe(null);
|
|
117
|
+
function K() {
|
|
118
|
+
if (e.value.style.animation.show && n.dataset.length > 1 && !R.value) {
|
|
119
|
+
let l = function() {
|
|
120
|
+
a < k.value.length ? (x.value.push(k.value[a]), setTimeout(() => {
|
|
121
|
+
requestAnimationFrame(l);
|
|
122
|
+
}, t)) : x.value = k.value, a += 1;
|
|
123
|
+
};
|
|
124
|
+
x.value = [];
|
|
125
|
+
const t = e.value.style.animation.animationFrames / n.dataset.length;
|
|
126
|
+
let a = 0;
|
|
127
|
+
l();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
Ce(() => {
|
|
131
|
+
ee(), K();
|
|
132
|
+
});
|
|
133
|
+
const Q = h(() => !!e.value.debug);
|
|
134
|
+
function ee() {
|
|
135
|
+
if (ve(n.dataset) ? (de({
|
|
136
|
+
componentName: "VueUiSparkline",
|
|
137
|
+
type: "dataset",
|
|
138
|
+
debug: Q.value
|
|
139
|
+
}), T.value = !0) : n.dataset.forEach((t, a) => {
|
|
140
|
+
Te({
|
|
141
|
+
datasetObject: t,
|
|
142
|
+
requiredAttributes: ["period", "value"]
|
|
143
|
+
}).forEach((l) => {
|
|
144
|
+
de({
|
|
145
|
+
componentName: "VueUiSparkline",
|
|
146
|
+
type: "datasetSerieAttribute",
|
|
147
|
+
property: l,
|
|
148
|
+
index: a,
|
|
149
|
+
debug: Q.value
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
}), ve(n.dataset) || (T.value = e.value.loading), e.value.responsive) {
|
|
153
|
+
const t = Ue(() => {
|
|
154
|
+
const { width: a, height: l } = je({
|
|
155
|
+
chart: P.value,
|
|
156
|
+
title: e.value.style.title.show && n.showInfo ? Z.value : null,
|
|
157
|
+
source: H.value
|
|
158
|
+
});
|
|
159
|
+
requestAnimationFrame(() => {
|
|
160
|
+
u.value.width = a, u.value.height = l, u.value.chartWidth = e.value.style.chartWidth / 500 * a, u.value.padding = n.forcedPadding / 500 * a;
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
b.value && (L.value && b.value.unobserve(L.value), b.value.disconnect()), b.value = new ResizeObserver(t), L.value = P.value.parentNode, b.value.observe(L.value);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
Me(() => {
|
|
167
|
+
b.value && (L.value && b.value.unobserve(L.value), b.value.disconnect());
|
|
168
|
+
});
|
|
169
|
+
const u = g({
|
|
170
|
+
height: 80 * n.heightRatio,
|
|
171
|
+
width: 500,
|
|
172
|
+
chartWidth: e.value.style.chartWidth,
|
|
173
|
+
padding: n.forcedPadding
|
|
174
|
+
}), O = fe, o = h(() => {
|
|
175
|
+
const { top: t, right: a, bottom: l, left: s } = e.value.style.padding;
|
|
176
|
+
return {
|
|
177
|
+
top: t,
|
|
178
|
+
left: s,
|
|
179
|
+
right: u.value.width - a,
|
|
180
|
+
bottom: u.value.height - l,
|
|
181
|
+
start: n.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? u.value.width - u.value.chartWidth + s : u.value.padding + s,
|
|
182
|
+
width: n.showInfo && e.value.style.dataLabel.show ? u.value.chartWidth - s - a : u.value.width - u.value.padding - s - a,
|
|
183
|
+
height: u.value.height - t - l
|
|
184
|
+
};
|
|
185
|
+
}), B = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...x.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), xe = h(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...x.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), $ = h(() => {
|
|
186
|
+
const t = B.value >= 0 ? 0 : B.value;
|
|
187
|
+
return Math.abs(t);
|
|
188
|
+
}), te = h(() => xe.value + $.value), A = h(() => o.value.bottom - o.value.height * F($.value));
|
|
189
|
+
function F(t) {
|
|
190
|
+
return isNaN(t / te.value) ? 0 : t / te.value;
|
|
191
|
+
}
|
|
192
|
+
const w = h(() => k.value.length - 1), S = h(() => Ze({
|
|
193
|
+
values: k.value.map((t) => t.period),
|
|
194
|
+
maxDatapoints: k.value.length,
|
|
195
|
+
formatter: e.value.style.dataLabel.datetimeFormatter,
|
|
196
|
+
start: 0,
|
|
197
|
+
end: k.value.length
|
|
198
|
+
})), c = h(() => x.value.map((t, a) => {
|
|
199
|
+
const l = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, s = o.value.width / (w.value + 1) > u.padding ? u.padding : o.value.width / (w.value + 1);
|
|
200
|
+
return {
|
|
201
|
+
absoluteValue: l,
|
|
202
|
+
period: S.value && S.value[a] && S.value[a].text ? S.value[a].text : t.period,
|
|
203
|
+
plotValue: l + $.value,
|
|
204
|
+
toMax: F(l + $.value),
|
|
205
|
+
x: o.value.start + a * (s > o.value.width / 12 ? o.value.width / 12 : s),
|
|
206
|
+
y: o.value.bottom - o.value.height * F(l + $.value),
|
|
207
|
+
id: `plot_${p.value}_${a}`,
|
|
208
|
+
color: C.value ? e.value.style.bar.color : e.value.style.area.useGradient ? D(e.value.style.line.color, 0.05 * (1 - a / w.value)) : e.value.style.line.color,
|
|
209
|
+
width: s > o.value.width / 12 ? o.value.width / 12 : s
|
|
210
|
+
};
|
|
211
|
+
})), we = h(() => {
|
|
212
|
+
const t = { x: c.value[0].x || 0, y: (u.value.height || 0) - 6 }, a = { x: c.value[c.value.length - 1].x || 0, y: (u.value.height || 0) - 6 }, l = [];
|
|
213
|
+
return c.value.forEach((s) => {
|
|
214
|
+
l.push(`${s.x || 0},${s.y || 0} `);
|
|
215
|
+
}), [t.x, t.y, ...l, a.x, a.y].toString();
|
|
216
|
+
}), v = g(void 0), N = g(void 0);
|
|
217
|
+
function _e(t, a) {
|
|
218
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), v.value = t, N.value || (N.value = t), O("hoverIndex", { index: a });
|
|
219
|
+
}
|
|
220
|
+
function Le(t, a) {
|
|
221
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), N.value = v.value, v.value = void 0, O("hoverIndex", { index: void 0 });
|
|
222
|
+
}
|
|
223
|
+
const m = h(() => {
|
|
224
|
+
if (q.value) {
|
|
225
|
+
const t = c.value.map((l) => l.absoluteValue), a = t.reduce((l, s) => l + s, 0);
|
|
226
|
+
return {
|
|
227
|
+
latest: c.value[c.value.length - 1].absoluteValue,
|
|
228
|
+
sum: a,
|
|
229
|
+
average: a / c.value.length,
|
|
230
|
+
median: Oe(t),
|
|
231
|
+
trend: Ee(c.value.map(({ x: l, y: s, absoluteValue: Ne }) => ({
|
|
232
|
+
x: l,
|
|
233
|
+
y: s,
|
|
234
|
+
value: Ne
|
|
235
|
+
}))).trend
|
|
236
|
+
};
|
|
237
|
+
} else
|
|
238
|
+
return {
|
|
239
|
+
latest: null,
|
|
240
|
+
sum: null,
|
|
241
|
+
average: null,
|
|
242
|
+
median: null,
|
|
243
|
+
trend: null
|
|
244
|
+
};
|
|
245
|
+
}), ae = h(() => q.value ? e.value.style.dataLabel.valueType === "latest" ? m.value.latest : e.value.style.dataLabel.valueType === "sum" ? m.value.sum : e.value.style.dataLabel.valueType === "average" ? m.value.average : 0 : 0), C = h(() => e.value.type && e.value.type === "bar");
|
|
246
|
+
function Ae(t, a) {
|
|
247
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), O("selectDatapoint", { datapoint: t, index: a });
|
|
248
|
+
}
|
|
249
|
+
return (t, a) => (r(), d("div", {
|
|
250
|
+
ref_key: "sparklineChart",
|
|
251
|
+
ref: P,
|
|
252
|
+
class: "vue-ui-sparkline",
|
|
253
|
+
id: p.value,
|
|
254
|
+
style: V(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
255
|
+
}, [
|
|
256
|
+
M(t.$slots, "before", ne(re({
|
|
257
|
+
selected: v.value,
|
|
258
|
+
latest: m.value.latest,
|
|
259
|
+
sum: m.value.sum,
|
|
260
|
+
average: m.value.average,
|
|
261
|
+
median: m.value.median,
|
|
262
|
+
trend: m.value.trend
|
|
263
|
+
})), void 0, !0),
|
|
264
|
+
e.value.style.title.show && _.showInfo ? (r(), d("div", {
|
|
265
|
+
key: 0,
|
|
266
|
+
ref_key: "chartTitle",
|
|
267
|
+
ref: Z,
|
|
268
|
+
class: "vue-ui-sparkline-title",
|
|
269
|
+
style: V(`display:flex;align-items:center;width:100%;color:${e.value.style.title.color};background:${e.value.style.backgroundColor};justify-content:${e.value.style.title.textAlign === "left" ? "flex-start" : e.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${e.value.style.title.fontSize * 2}px;font-size:${e.value.style.title.fontSize}px;font-weight:${e.value.style.title.bold ? "bold" : "normal"};`)
|
|
270
|
+
}, [
|
|
271
|
+
f("span", {
|
|
272
|
+
style: V(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
273
|
+
}, z(v.value ? v.value.period : e.value.style.title.text), 5)
|
|
274
|
+
], 4)) : y("", !0),
|
|
275
|
+
(r(), d("svg", {
|
|
276
|
+
ref_key: "svgRef",
|
|
277
|
+
ref: J,
|
|
278
|
+
xmlns: i(Be),
|
|
279
|
+
viewBox: `0 0 ${u.value.width} ${u.value.height}`,
|
|
280
|
+
style: V(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
281
|
+
onMouseleave: a[0] || (a[0] = (l) => N.value = void 0)
|
|
282
|
+
}, [
|
|
283
|
+
Ie(i(pe)),
|
|
284
|
+
t.$slots["chart-background"] ? (r(), d("foreignObject", {
|
|
285
|
+
key: 0,
|
|
286
|
+
x: 0,
|
|
287
|
+
y: 0,
|
|
288
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
289
|
+
height: u.value.height <= 0 ? 10 : u.value.height,
|
|
290
|
+
style: {
|
|
291
|
+
pointerEvents: "none"
|
|
292
|
+
}
|
|
293
|
+
}, [
|
|
294
|
+
M(t.$slots, "chart-background", {}, void 0, !0)
|
|
295
|
+
], 8, Qe)) : y("", !0),
|
|
296
|
+
f("defs", null, [
|
|
297
|
+
f("linearGradient", {
|
|
298
|
+
x1: "0%",
|
|
299
|
+
y1: "0%",
|
|
300
|
+
x2: "100%",
|
|
301
|
+
y2: "0%",
|
|
302
|
+
id: `sparkline_gradient_${p.value}`
|
|
303
|
+
}, [
|
|
304
|
+
f("stop", {
|
|
305
|
+
offset: "0%",
|
|
306
|
+
"stop-color": i(W)(i(D)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
307
|
+
}, null, 8, tt),
|
|
308
|
+
f("stop", {
|
|
309
|
+
offset: "100%",
|
|
310
|
+
"stop-color": i(W)(e.value.style.area.color, e.value.style.area.opacity)
|
|
311
|
+
}, null, 8, at)
|
|
312
|
+
], 8, et),
|
|
313
|
+
f("linearGradient", {
|
|
314
|
+
x2: "0%",
|
|
315
|
+
y2: "100%",
|
|
316
|
+
id: `sparkline_bar_gradient_pos_${p.value}`
|
|
317
|
+
}, [
|
|
318
|
+
f("stop", {
|
|
319
|
+
offset: "0%",
|
|
320
|
+
"stop-color": e.value.style.bar.color
|
|
321
|
+
}, null, 8, ut),
|
|
322
|
+
f("stop", {
|
|
323
|
+
offset: "100%",
|
|
324
|
+
"stop-color": i(D)(e.value.style.bar.color, 0.05)
|
|
325
|
+
}, null, 8, ot)
|
|
326
|
+
], 8, lt),
|
|
327
|
+
f("linearGradient", {
|
|
328
|
+
x2: "0%",
|
|
329
|
+
y2: "100%",
|
|
330
|
+
id: `sparkline_bar_gradient_neg_${p.value}`
|
|
331
|
+
}, [
|
|
332
|
+
f("stop", {
|
|
333
|
+
offset: "0%",
|
|
334
|
+
"stop-color": i(D)(e.value.style.bar.color, 0.05)
|
|
335
|
+
}, null, 8, nt),
|
|
336
|
+
f("stop", {
|
|
337
|
+
offset: "100%",
|
|
338
|
+
"stop-color": e.value.style.bar.color
|
|
339
|
+
}, null, 8, rt)
|
|
340
|
+
], 8, st)
|
|
341
|
+
]),
|
|
342
|
+
e.value.style.area.show && !C.value && c.value[0] ? (r(), d("g", it, [
|
|
343
|
+
e.value.style.line.smooth ? (r(), d("path", {
|
|
344
|
+
key: 0,
|
|
345
|
+
d: `M ${c.value[0].x},${o.value.bottom} ${i(ce)(c.value)} L ${c.value.at(-1).x},${o.value.bottom} Z`,
|
|
346
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : i(W)(e.value.style.area.color, e.value.style.area.opacity)
|
|
347
|
+
}, null, 8, vt)) : (r(), d("path", {
|
|
348
|
+
key: 1,
|
|
349
|
+
d: `M${we.value}Z`,
|
|
350
|
+
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : i(W)(e.value.style.area.color, e.value.style.area.opacity)
|
|
351
|
+
}, null, 8, dt))
|
|
352
|
+
])) : y("", !0),
|
|
353
|
+
e.value.style.line.smooth && !C.value ? (r(), d("path", {
|
|
354
|
+
key: 2,
|
|
355
|
+
d: `M ${i(ce)(c.value)}`,
|
|
356
|
+
stroke: e.value.style.line.color,
|
|
357
|
+
fill: "none",
|
|
358
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
359
|
+
"stroke-linecap": "round"
|
|
360
|
+
}, null, 8, ct)) : y("", !0),
|
|
361
|
+
!e.value.style.line.smooth && !C.value ? (r(), d("path", {
|
|
362
|
+
key: 3,
|
|
363
|
+
d: `M ${i(Fe)(c.value)}`,
|
|
364
|
+
stroke: e.value.style.line.color,
|
|
365
|
+
fill: "none",
|
|
366
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
367
|
+
"stroke-linecap": "round"
|
|
368
|
+
}, null, 8, ht)) : y("", !0),
|
|
369
|
+
(r(!0), d(G, null, U(c.value, (l, s) => (r(), d("g", null, [
|
|
370
|
+
C.value ? (r(), d("rect", {
|
|
371
|
+
key: 0,
|
|
372
|
+
x: l.x - l.width / 2,
|
|
373
|
+
y: isNaN(l.absoluteValue > 0 ? l.y : A.value) ? 0 : l.absoluteValue > 0 ? l.y : A.value,
|
|
374
|
+
width: l.width,
|
|
375
|
+
height: isNaN(Math.abs(l.y - A.value)) ? 0 : Math.abs(l.y - A.value),
|
|
376
|
+
fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
|
|
377
|
+
rx: e.value.style.bar.borderRadius
|
|
378
|
+
}, null, 8, yt)) : y("", !0),
|
|
379
|
+
e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || _.selectedIndex === s) ? (r(), d("line", {
|
|
380
|
+
key: 1,
|
|
381
|
+
x1: l.x,
|
|
382
|
+
x2: l.x,
|
|
383
|
+
y1: o.value.top - 6,
|
|
384
|
+
y2: o.value.bottom,
|
|
385
|
+
stroke: e.value.style.verticalIndicator.color || l.color,
|
|
386
|
+
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
387
|
+
"stroke-linecap": "round",
|
|
388
|
+
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
389
|
+
}, null, 8, ft)) : y("", !0)
|
|
390
|
+
]))), 256)),
|
|
391
|
+
B.value < 0 ? (r(), d("line", {
|
|
392
|
+
key: 4,
|
|
393
|
+
x1: o.value.start,
|
|
394
|
+
x2: o.value.start + o.value.width - 16,
|
|
395
|
+
y1: i(he)(A.value, o.value.bottom),
|
|
396
|
+
y2: i(he)(A.value, o.value.bottom),
|
|
397
|
+
stroke: e.value.style.zeroLine.color,
|
|
398
|
+
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
399
|
+
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
400
|
+
"stroke-linecap": "round"
|
|
401
|
+
}, null, 8, pt)) : y("", !0),
|
|
402
|
+
e.value.style.plot.show ? (r(!0), d(G, { key: 5 }, U(c.value, (l, s) => (r(), d("g", null, [
|
|
403
|
+
v.value && l.id === v.value.id || _.selectedIndex === s || _.dataset.length === 1 ? (r(), d("circle", {
|
|
404
|
+
key: 0,
|
|
405
|
+
cx: l.x,
|
|
406
|
+
cy: l.y,
|
|
407
|
+
r: e.value.style.plot.radius,
|
|
408
|
+
fill: l.color,
|
|
409
|
+
stroke: e.value.style.plot.stroke,
|
|
410
|
+
"stroke-width": e.value.style.plot.strokeWidth
|
|
411
|
+
}, null, 8, gt)) : y("", !0)
|
|
412
|
+
]))), 256)) : y("", !0),
|
|
413
|
+
_.showInfo && e.value.style.dataLabel.show ? (r(), d("text", {
|
|
414
|
+
key: 6,
|
|
415
|
+
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : o.value.width + 12 + e.value.style.dataLabel.offsetX,
|
|
416
|
+
y: u.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
|
|
417
|
+
"font-size": e.value.style.dataLabel.fontSize,
|
|
418
|
+
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
419
|
+
fill: e.value.style.dataLabel.color
|
|
420
|
+
}, z(v.value ? i(X)(
|
|
421
|
+
e.value.style.dataLabel.formatter,
|
|
422
|
+
v.value.absoluteValue,
|
|
423
|
+
i(Y)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
424
|
+
{ datapoint: v.value }
|
|
425
|
+
) : i(X)(
|
|
426
|
+
e.value.style.dataLabel.formatter,
|
|
427
|
+
ae.value,
|
|
428
|
+
i(Y)({ p: e.value.style.dataLabel.prefix, v: ae.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
429
|
+
)), 9, bt)) : y("", !0),
|
|
430
|
+
(r(!0), d(G, null, U(c.value, (l, s) => (r(), d("rect", {
|
|
431
|
+
x: l.x - (o.value.width / (w.value + 1) > u.value.padding ? u.value.padding : o.value.width / (w.value + 1)) / 2,
|
|
432
|
+
y: o.value.top - 6,
|
|
433
|
+
height: o.value.height + 6,
|
|
434
|
+
width: o.value.width / (w.value + 1) > u.value.padding ? u.value.padding : o.value.width / (w.value + 1),
|
|
435
|
+
fill: "transparent",
|
|
436
|
+
onMouseenter: () => _e(l, s),
|
|
437
|
+
onMouseleave: () => Le(l, s),
|
|
438
|
+
onClick: () => Ae(l, s)
|
|
439
|
+
}, null, 40, mt))), 256)),
|
|
440
|
+
M(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
441
|
+
], 44, Ke)),
|
|
442
|
+
v.value && e.value.style.tooltip.show ? (r(), se(i(ge), {
|
|
443
|
+
key: 1,
|
|
444
|
+
x: v.value.x,
|
|
445
|
+
y: v.value.y,
|
|
446
|
+
prevX: N.value.x,
|
|
447
|
+
prevY: N.value.y,
|
|
448
|
+
offsetY: e.value.style.plot.radius * 3 + e.value.style.tooltip.offsetY,
|
|
449
|
+
svgRef: i(J),
|
|
450
|
+
background: e.value.style.tooltip.backgroundColor,
|
|
451
|
+
color: e.value.style.tooltip.color,
|
|
452
|
+
fontSize: e.value.style.tooltip.fontSize,
|
|
453
|
+
borderWidth: e.value.style.tooltip.borderWidth,
|
|
454
|
+
borderColor: e.value.style.tooltip.borderColor,
|
|
455
|
+
borderRadius: e.value.style.tooltip.borderRadius,
|
|
456
|
+
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
457
|
+
}, {
|
|
458
|
+
default: Se(() => [
|
|
459
|
+
M(t.$slots, "tooltip", ne(re({ ...v.value })), () => [
|
|
460
|
+
Ve(z(v.value.period) + ": " + z(i(X)(
|
|
461
|
+
e.value.style.dataLabel.formatter,
|
|
462
|
+
v.value.absoluteValue,
|
|
463
|
+
i(Y)({
|
|
464
|
+
p: e.value.style.dataLabel.prefix,
|
|
465
|
+
v: v.value.absoluteValue,
|
|
466
|
+
s: e.value.style.dataLabel.suffix,
|
|
467
|
+
r: e.value.style.dataLabel.roundingValue
|
|
468
|
+
}),
|
|
469
|
+
{ datapoint: v.value }
|
|
470
|
+
)), 1)
|
|
471
|
+
], !0)
|
|
472
|
+
]),
|
|
473
|
+
_: 3
|
|
474
|
+
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : y("", !0),
|
|
475
|
+
t.$slots.source ? (r(), d("div", {
|
|
476
|
+
key: 2,
|
|
477
|
+
ref_key: "source",
|
|
478
|
+
ref: H,
|
|
479
|
+
dir: "auto"
|
|
480
|
+
}, [
|
|
481
|
+
M(t.$slots, "source", {}, void 0, !0)
|
|
482
|
+
], 512)) : y("", !0),
|
|
483
|
+
i(R) ? (r(), se(qe, { key: 3 })) : y("", !0)
|
|
484
|
+
], 12, Je));
|
|
485
|
+
}
|
|
486
|
+
}, Mt = /* @__PURE__ */ He(kt, [["__scopeId", "data-v-251d35ec"]]);
|
|
487
|
+
export {
|
|
488
|
+
Mt as default
|
|
489
|
+
};
|