vue-data-ui 3.0.0-next.7 → 3.0.0-next.71
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-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
- package/dist/Slicer-DYuvPkEM.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
- package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +610 -22
- package/dist/types/vue-data-ui.d.ts +610 -22
- package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-D-8c0o4p.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.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-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
- package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
- package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
- package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
- package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
- package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
- package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
- package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
- package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
- package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
- package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
- package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
- package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
- package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
- package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
- package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
- package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
- package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
- package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
- package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
- package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
- package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
- package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
- package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
- package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
- package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
- package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
- package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
- package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
- package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
- package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
- package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
- package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
- package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
- package/dist/vue-ui-wheel-De1spwLh.js +379 -0
- package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
- package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.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-DKpp7RIH.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-D-8c0o4p.js";
|
|
4
|
+
import y from "./PackageVersion-6s4eI8W7.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,12 +1,12 @@
|
|
|
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,
|
|
3
|
-
import { u as Q } from "./useNestedProp-
|
|
2
|
+
import { u as P, o as q, f as J, k as x, i as b, X as f, x as m } from "./index-DKpp7RIH.js";
|
|
3
|
+
import { u as Q } from "./useNestedProp-D-8c0o4p.js";
|
|
4
4
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const Z = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "vue-ui-rating-title",
|
|
8
8
|
style: { width: "100%" }
|
|
9
|
-
}, tt = ["xmlns", "stroke"], et = { id: "vueUiSmiley0" }, lt = ["stop-color"], ot = ["stop-color"], at = ["fill"], st = ["stroke"], it = ["xmlns", "viewBox", "stroke"], nt = { id: "vueUiSmiley0" }, rt = ["stop-color"], dt = ["stop-color"], ut = ["fill"], vt = ["viewBox", "stroke"], pt = ["xmlns", "stroke"], yt = { id: "vueUiSmiley1" }, ft = ["stop-color"], ht = ["stop-color"], ct = ["fill"], gt = ["xmlns", "stroke"],
|
|
9
|
+
}, tt = ["xmlns", "stroke"], et = { id: "vueUiSmiley0" }, lt = ["stop-color"], ot = ["stop-color"], at = ["fill"], st = ["stroke"], it = ["xmlns", "viewBox", "stroke"], nt = { id: "vueUiSmiley0" }, rt = ["stop-color"], dt = ["stop-color"], ut = ["fill"], vt = ["viewBox", "stroke"], pt = ["xmlns", "stroke"], yt = { id: "vueUiSmiley1" }, ft = ["stop-color"], ht = ["stop-color"], ct = ["fill"], gt = ["xmlns", "stroke"], kt = ["xmlns", "viewBox", "stroke"], mt = { id: "vueUiSmiley1" }, xt = ["stop-color"], bt = ["stop-color"], $t = ["fill"], wt = ["viewBox", "stroke"], zt = ["xmlns", "stroke"], Mt = { id: "vueUiSmiley2" }, St = ["stop-color"], _t = ["stop-color"], Rt = ["fill"], Ct = ["xmlns", "stroke"], Bt = ["xmlns", "viewBox", "stroke"], jt = { id: "vueUiSmiley2" }, Ht = ["stop-color"], Ut = ["stop-color"], Gt = ["fill"], Vt = ["xmlns", "viewBox", "stroke"], At = ["xmlns", "stroke"], Xt = { id: "vueUiSmiley3" }, Yt = ["stop-color"], Nt = ["stop-color"], Ft = ["fill"], It = ["xmlns", "stroke"], Kt = ["xmlns", "viewBox", "stroke"], Ot = { id: "vueUiSmiley3" }, Lt = ["stop-color"], Dt = ["stop-color"], Et = ["fill"], Tt = ["xmlns", "viewBox", "stroke"], Pt = ["xmlns", "stroke"], qt = { id: "vueUiSmiley4" }, Jt = ["stop-color"], Qt = ["stop-color"], Wt = ["fill"], Zt = ["xmlns", "stroke"], te = ["xmlns", "viewBox", "stroke"], ee = { id: "vueUiSmiley4" }, le = ["stop-color"], oe = ["stop-color"], ae = ["fill"], se = ["xmlns", "viewBox", "stroke"], ie = {
|
|
10
10
|
__name: "vue-ui-smiley",
|
|
11
11
|
props: {
|
|
12
12
|
config: {
|
|
@@ -71,7 +71,7 @@ const Z = {
|
|
|
71
71
|
return e * n;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function k(r) {
|
|
75
75
|
y.value || (p.value = r, F("rate", r));
|
|
76
76
|
}
|
|
77
77
|
function O() {
|
|
@@ -139,8 +139,8 @@ const Z = {
|
|
|
139
139
|
position:relative`),
|
|
140
140
|
onMouseenter: e[0] || (e[0] = (n) => v.value = 0),
|
|
141
141
|
onMouseleave: e[1] || (e[1] = (n) => v.value = void 0),
|
|
142
|
-
onClick: e[2] || (e[2] = (n) =>
|
|
143
|
-
onKeyup: e[3] || (e[3] = z((n) =>
|
|
142
|
+
onClick: e[2] || (e[2] = (n) => k(1)),
|
|
143
|
+
onKeyup: e[3] || (e[3] = z((n) => k(1), ["enter"]))
|
|
144
144
|
}, [
|
|
145
145
|
t.value.style.tooltip.show && w.value && y.value ? (i(), s("div", {
|
|
146
146
|
key: 0,
|
|
@@ -186,7 +186,7 @@ const Z = {
|
|
|
186
186
|
l("radialGradient", et, [
|
|
187
187
|
l("stop", {
|
|
188
188
|
offset: "0%",
|
|
189
|
-
"stop-color": o(
|
|
189
|
+
"stop-color": o(m)(t.value.style.colors.active[0], 0.05)
|
|
190
190
|
}, null, 8, lt),
|
|
191
191
|
l("stop", {
|
|
192
192
|
offset: "100%",
|
|
@@ -233,7 +233,7 @@ const Z = {
|
|
|
233
233
|
l("radialGradient", nt, [
|
|
234
234
|
l("stop", {
|
|
235
235
|
offset: "0%",
|
|
236
|
-
"stop-color": o(
|
|
236
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[0], 0.05)
|
|
237
237
|
}, null, 8, rt),
|
|
238
238
|
l("stop", {
|
|
239
239
|
offset: "100%",
|
|
@@ -272,8 +272,8 @@ const Z = {
|
|
|
272
272
|
style: a(`cursor:${t.value.readonly ? "default" : "pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),
|
|
273
273
|
onMouseenter: e[4] || (e[4] = (n) => v.value = 1),
|
|
274
274
|
onMouseleave: e[5] || (e[5] = (n) => v.value = void 0),
|
|
275
|
-
onClick: e[6] || (e[6] = (n) =>
|
|
276
|
-
onKeyup: e[7] || (e[7] = z((n) =>
|
|
275
|
+
onClick: e[6] || (e[6] = (n) => k(2)),
|
|
276
|
+
onKeyup: e[7] || (e[7] = z((n) => k(2), ["enter"]))
|
|
277
277
|
}, [
|
|
278
278
|
t.value.style.tooltip.show && w.value && y.value ? (i(), s("div", {
|
|
279
279
|
key: 0,
|
|
@@ -319,7 +319,7 @@ const Z = {
|
|
|
319
319
|
l("radialGradient", yt, [
|
|
320
320
|
l("stop", {
|
|
321
321
|
offset: "0%",
|
|
322
|
-
"stop-color": o(
|
|
322
|
+
"stop-color": o(m)(t.value.style.colors.active[1], 0.05)
|
|
323
323
|
}, null, 8, ft),
|
|
324
324
|
l("stop", {
|
|
325
325
|
offset: "100%",
|
|
@@ -364,10 +364,10 @@ const Z = {
|
|
|
364
364
|
"stroke-linejoin": "round"
|
|
365
365
|
}, [
|
|
366
366
|
l("defs", null, [
|
|
367
|
-
l("radialGradient",
|
|
367
|
+
l("radialGradient", mt, [
|
|
368
368
|
l("stop", {
|
|
369
369
|
offset: "0%",
|
|
370
|
-
"stop-color": o(
|
|
370
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[1], 0.05)
|
|
371
371
|
}, null, 8, xt),
|
|
372
372
|
l("stop", {
|
|
373
373
|
offset: "100%",
|
|
@@ -385,7 +385,7 @@ const Z = {
|
|
|
385
385
|
"stroke-width": "0",
|
|
386
386
|
fill: t.value.style.icons.useGradient ? "url(#vueUiSmiley1)" : t.value.style.colors.activeReadonly[1]
|
|
387
387
|
}, null, 8, $t)
|
|
388
|
-
], 8,
|
|
388
|
+
], 8, kt)) : d("", !0),
|
|
389
389
|
!t.value.style.icons.filled && y.value ? (i(), s("svg", {
|
|
390
390
|
key: 4,
|
|
391
391
|
style: { position: "absolute", top: "0", left: "0", transition: "all 0.1s ease-in-out" },
|
|
@@ -406,8 +406,8 @@ const Z = {
|
|
|
406
406
|
style: a(`cursor:${t.value.readonly ? "default" : "pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),
|
|
407
407
|
onMouseenter: e[8] || (e[8] = (n) => v.value = 2),
|
|
408
408
|
onMouseleave: e[9] || (e[9] = (n) => v.value = void 0),
|
|
409
|
-
onClick: e[10] || (e[10] = (n) =>
|
|
410
|
-
onKeyup: e[11] || (e[11] = z((n) =>
|
|
409
|
+
onClick: e[10] || (e[10] = (n) => k(3)),
|
|
410
|
+
onKeyup: e[11] || (e[11] = z((n) => k(3), ["enter"]))
|
|
411
411
|
}, [
|
|
412
412
|
t.value.style.tooltip.show && w.value && y.value ? (i(), s("div", {
|
|
413
413
|
key: 0,
|
|
@@ -453,7 +453,7 @@ const Z = {
|
|
|
453
453
|
l("radialGradient", Mt, [
|
|
454
454
|
l("stop", {
|
|
455
455
|
offset: "0%",
|
|
456
|
-
"stop-color": o(
|
|
456
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[2], 0.05)
|
|
457
457
|
}, null, 8, St),
|
|
458
458
|
l("stop", {
|
|
459
459
|
offset: "100%",
|
|
@@ -513,7 +513,7 @@ const Z = {
|
|
|
513
513
|
l("radialGradient", jt, [
|
|
514
514
|
l("stop", {
|
|
515
515
|
offset: "0%",
|
|
516
|
-
"stop-color": o(
|
|
516
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[2], 0.05)
|
|
517
517
|
}, null, 8, Ht),
|
|
518
518
|
l("stop", {
|
|
519
519
|
offset: "100%",
|
|
@@ -555,8 +555,8 @@ const Z = {
|
|
|
555
555
|
style: a(`cursor:${t.value.readonly ? "default" : "pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),
|
|
556
556
|
onMouseenter: e[12] || (e[12] = (n) => v.value = 3),
|
|
557
557
|
onMouseleave: e[13] || (e[13] = (n) => v.value = void 0),
|
|
558
|
-
onClick: e[14] || (e[14] = (n) =>
|
|
559
|
-
onKeyup: e[15] || (e[15] = z((n) =>
|
|
558
|
+
onClick: e[14] || (e[14] = (n) => k(4)),
|
|
559
|
+
onKeyup: e[15] || (e[15] = z((n) => k(4), ["enter"]))
|
|
560
560
|
}, [
|
|
561
561
|
t.value.style.tooltip.show && w.value && y.value ? (i(), s("div", {
|
|
562
562
|
key: 0,
|
|
@@ -602,7 +602,7 @@ const Z = {
|
|
|
602
602
|
l("radialGradient", Xt, [
|
|
603
603
|
l("stop", {
|
|
604
604
|
offset: "0%",
|
|
605
|
-
"stop-color": o(
|
|
605
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[3], 0.95)
|
|
606
606
|
}, null, 8, Yt),
|
|
607
607
|
l("stop", {
|
|
608
608
|
offset: "100%",
|
|
@@ -655,7 +655,7 @@ const Z = {
|
|
|
655
655
|
l("radialGradient", Ot, [
|
|
656
656
|
l("stop", {
|
|
657
657
|
offset: "0%",
|
|
658
|
-
"stop-color": o(
|
|
658
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[3], 0.95)
|
|
659
659
|
}, null, 8, Lt),
|
|
660
660
|
l("stop", {
|
|
661
661
|
offset: "100%",
|
|
@@ -690,8 +690,8 @@ const Z = {
|
|
|
690
690
|
style: a(`cursor:${t.value.readonly ? "default" : "pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),
|
|
691
691
|
onMouseenter: e[16] || (e[16] = (n) => v.value = 4),
|
|
692
692
|
onMouseleave: e[17] || (e[17] = (n) => v.value = void 0),
|
|
693
|
-
onClick: e[18] || (e[18] = (n) =>
|
|
694
|
-
onKeyup: e[19] || (e[19] = z((n) =>
|
|
693
|
+
onClick: e[18] || (e[18] = (n) => k(5)),
|
|
694
|
+
onKeyup: e[19] || (e[19] = z((n) => k(5), ["enter"]))
|
|
695
695
|
}, [
|
|
696
696
|
t.value.style.tooltip.show && w.value && y.value ? (i(), s("div", {
|
|
697
697
|
key: 0,
|
|
@@ -737,7 +737,7 @@ const Z = {
|
|
|
737
737
|
l("radialGradient", qt, [
|
|
738
738
|
l("stop", {
|
|
739
739
|
offset: "0%",
|
|
740
|
-
"stop-color": o(
|
|
740
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[4], 0.9)
|
|
741
741
|
}, null, 8, Jt),
|
|
742
742
|
l("stop", {
|
|
743
743
|
offset: "100%",
|
|
@@ -790,7 +790,7 @@ const Z = {
|
|
|
790
790
|
l("radialGradient", ee, [
|
|
791
791
|
l("stop", {
|
|
792
792
|
offset: "0%",
|
|
793
|
-
"stop-color": o(
|
|
793
|
+
"stop-color": o(m)(t.value.style.colors.activeReadonly[4], 0.9)
|
|
794
794
|
}, null, 8, le),
|
|
795
795
|
l("stop", {
|
|
796
796
|
offset: "100%",
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { defineAsyncComponent as de, ref as f, toRefs as fe, computed as u, watch as X, onMounted as ce, createElementBlock as o, openBlock as s, normalizeStyle as he, createCommentVNode as c, createBlock as ye, unref as r, createVNode as pe, createElementVNode as S, renderSlot as J, toDisplayString as K } from "vue";
|
|
2
|
+
import { u as ge, c as me, t as ke, b as be, a5 as D, o as Q, f as _e, h as y, a6 as we, X as $e, s as O, V as Y, i as ee, k as xe } from "./index-DKpp7RIH.js";
|
|
3
|
+
import { t as Le, u as Ce } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ae, B as Te } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as Se } from "./useFitSvgText-2crs6Fv5.js";
|
|
6
|
+
import { u as te } from "./useNestedProp-D-8c0o4p.js";
|
|
7
|
+
import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const ze = ["id"], Me = ["xmlns", "viewBox"], Fe = ["width", "height"], Ie = ["id"], Ee = ["stop-color"], Ve = ["stop-color"], je = { key: 1 }, Be = ["d", "fill"], De = ["d", "fill"], Oe = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Ge = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Re = ["d"], Ze = ["fill", "d"], We = ["x", "y", "width", "height"], He = ["x", "y", "fill", "font-size", "font-weight"], Ue = ["stroke", "cx", "cy", "fill"], qe = ["x", "y", "font-size", "fill", "font-weight"], Pe = {
|
|
9
|
+
__name: "vue-ui-spark-trend",
|
|
10
|
+
props: {
|
|
11
|
+
config: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default() {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
dataset: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default() {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(le) {
|
|
25
|
+
const ae = de(() => import("./PackageVersion-6s4eI8W7.js")), { vue_ui_spark_trend: ne } = ge(), p = le, N = f(null), G = f(null), R = f(null), _ = f(null), x = f(null), L = f(me()), e = f(z()), { loading: g, FINAL_DATASET: w, manualLoading: Z } = Ae({
|
|
26
|
+
...fe(p),
|
|
27
|
+
FINAL_CONFIG: e,
|
|
28
|
+
prepareConfig: z,
|
|
29
|
+
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233],
|
|
30
|
+
skeletonConfig: ke({
|
|
31
|
+
defaultConfig: e.value,
|
|
32
|
+
userConfig: {
|
|
33
|
+
style: {
|
|
34
|
+
animation: { show: !1 },
|
|
35
|
+
backgroundColor: "#99999930",
|
|
36
|
+
line: {
|
|
37
|
+
stroke: "#6A6A6A",
|
|
38
|
+
useColorTrend: !1
|
|
39
|
+
},
|
|
40
|
+
dataLabel: { show: !1, useColorTrend: !1, color: "#6A6A6A" }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
function z() {
|
|
46
|
+
const t = te({
|
|
47
|
+
userConfig: p.config,
|
|
48
|
+
defaultConfig: ne
|
|
49
|
+
});
|
|
50
|
+
return t.theme ? {
|
|
51
|
+
...te({
|
|
52
|
+
userConfig: be.vue_ui_spark_trend[t.theme] || p.config,
|
|
53
|
+
defaultConfig: t
|
|
54
|
+
})
|
|
55
|
+
} : t;
|
|
56
|
+
}
|
|
57
|
+
const m = u(() => D({
|
|
58
|
+
data: w.value,
|
|
59
|
+
threshold: e.value.downsample.threshold
|
|
60
|
+
}));
|
|
61
|
+
X(() => p.config, (t) => {
|
|
62
|
+
e.value = z(), I.value = e.value.style.width, k.value = e.value.style.height, H();
|
|
63
|
+
}, { deep: !0 }), X(() => w.value, (t) => {
|
|
64
|
+
$.value = D({
|
|
65
|
+
data: w.value,
|
|
66
|
+
threshold: e.value.downsample.threshold
|
|
67
|
+
}).map((a) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(a) ? null : a), W(), j(".vue-ui-sparktrend-progress-label", 6);
|
|
68
|
+
}, { deep: !0 });
|
|
69
|
+
function M(t) {
|
|
70
|
+
return t.map((a) => y(a));
|
|
71
|
+
}
|
|
72
|
+
const $ = f(D({
|
|
73
|
+
data: w.value,
|
|
74
|
+
threshold: e.value.downsample.threshold
|
|
75
|
+
}).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), C = f(!1), F = f(null);
|
|
76
|
+
function W() {
|
|
77
|
+
let a = 1e3 / e.value.style.animation.animationFrames, d = performance.now();
|
|
78
|
+
if (!g.value && e.value.style.animation.show && e.value.style.animation.animationFrames && w.value.length > 1) {
|
|
79
|
+
let B = function() {
|
|
80
|
+
C.value = !0;
|
|
81
|
+
let q = performance.now(), P = q - d;
|
|
82
|
+
P > a ? (d = q - P % a, b < m.value.length ? ($.value.push(m.value[b]), b += 1, F.value = requestAnimationFrame(B)) : (cancelAnimationFrame(F.value), $.value = M(m.value), C.value = !1, j(".vue-ui-sparktrend-progress-label", 6))) : F.value = requestAnimationFrame(B);
|
|
83
|
+
};
|
|
84
|
+
$.value = [];
|
|
85
|
+
let b = 0;
|
|
86
|
+
B();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
ce(() => {
|
|
90
|
+
H();
|
|
91
|
+
});
|
|
92
|
+
const ue = u(() => e.value.debug);
|
|
93
|
+
function H() {
|
|
94
|
+
if (Q(p.dataset) && (_e({
|
|
95
|
+
componentName: "VueUiSparkTrend",
|
|
96
|
+
type: "dataset",
|
|
97
|
+
debug: ue.value
|
|
98
|
+
}), Z.value = !0), Q(p.dataset) || (Z.value = !1), e.value.responsive) {
|
|
99
|
+
const t = Le(() => {
|
|
100
|
+
const { width: a, height: d } = Ce({
|
|
101
|
+
chart: N.value,
|
|
102
|
+
source: R.value
|
|
103
|
+
});
|
|
104
|
+
requestAnimationFrame(() => {
|
|
105
|
+
I.value = a, k.value = d;
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
_.value && (x.value && _.value.unobserve(x.value), _.value.disconnect()), _.value = new ResizeObserver(t), x.value = N.value.parentNode, _.value.observe(x.value);
|
|
109
|
+
}
|
|
110
|
+
W(), j(".vue-ui-sparktrend-progress-label", 6);
|
|
111
|
+
}
|
|
112
|
+
const I = f(e.value.style.width), k = f(e.value.style.height), i = u(() => ({
|
|
113
|
+
height: k.value,
|
|
114
|
+
width: I.value
|
|
115
|
+
})), n = u(() => ({
|
|
116
|
+
top: e.value.style.padding.top,
|
|
117
|
+
left: e.value.style.padding.left,
|
|
118
|
+
right: i.value.width - e.value.style.padding.right,
|
|
119
|
+
bottom: i.value.height - e.value.style.padding.bottom,
|
|
120
|
+
height: i.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
|
|
121
|
+
width: i.value.width - (e.value.style.padding.left + e.value.style.padding.right)
|
|
122
|
+
})), E = u(() => {
|
|
123
|
+
const t = M(m.value);
|
|
124
|
+
return {
|
|
125
|
+
max: Math.max(...t.map((a) => y(a))),
|
|
126
|
+
min: Math.min(...t.map((a) => y(a)))
|
|
127
|
+
};
|
|
128
|
+
}), A = u(() => {
|
|
129
|
+
const t = E.value.min >= 0 ? 0 : E.value.min;
|
|
130
|
+
return Math.abs(t);
|
|
131
|
+
}), se = u(() => E.value.max + A.value);
|
|
132
|
+
function U(t) {
|
|
133
|
+
return t / se.value;
|
|
134
|
+
}
|
|
135
|
+
const oe = u(() => m.value.length), l = u(() => $.value.map((t, a) => {
|
|
136
|
+
const d = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
|
|
137
|
+
return {
|
|
138
|
+
value: y(t),
|
|
139
|
+
absoluteValue: y(d),
|
|
140
|
+
plotValue: y(d + A.value),
|
|
141
|
+
toMax: U(d + A.value),
|
|
142
|
+
x: n.value.left + y(a * (n.value.width / (oe.value - 1))) - e.value.style.padding.right,
|
|
143
|
+
y: n.value.bottom - y(n.value.height * U(d + A.value))
|
|
144
|
+
};
|
|
145
|
+
})), T = u(() => {
|
|
146
|
+
const t = M(m.value);
|
|
147
|
+
return e.value.style.trendLabel.trendType === "global" ? we(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;
|
|
148
|
+
}), V = u(() => C.value || T.value === 0 ? "neutral" : T.value > 0 ? "positive" : "negative"), h = u(() => e.value.style.arrow.colors[V.value]), re = u(() => {
|
|
149
|
+
const t = { x: l.value[0].x, y: i.value.height - 6 }, a = { x: l.value[l.value.length - 1].x, y: i.value.height - 6 }, d = [];
|
|
150
|
+
return l.value.forEach((b) => {
|
|
151
|
+
d.push(`${b.x},${b.y} `);
|
|
152
|
+
}), [t.x, t.y, ...d, a.x, a.y].toString();
|
|
153
|
+
}), ie = u(() => {
|
|
154
|
+
let t = [];
|
|
155
|
+
return l.value.forEach((a) => {
|
|
156
|
+
t.push(`${a.x},${a.y} `);
|
|
157
|
+
}), `M ${t.toString()}`;
|
|
158
|
+
}), v = u(() => k.value / 2 - e.value.style.trendLabel.fontSize), ve = u(() => n.value.left * 0.8), { fitText: j } = Se({
|
|
159
|
+
svgRef: G,
|
|
160
|
+
unitWidth: ve,
|
|
161
|
+
fontSize: e.value.style.trendLabel.fontSize
|
|
162
|
+
});
|
|
163
|
+
return (t, a) => (s(), o("div", {
|
|
164
|
+
ref_key: "sparkTrendChart",
|
|
165
|
+
ref: N,
|
|
166
|
+
class: "vue-ui-spark-trend",
|
|
167
|
+
id: L.value,
|
|
168
|
+
style: he(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
|
|
169
|
+
}, [
|
|
170
|
+
(s(), o("svg", {
|
|
171
|
+
ref_key: "svgRef",
|
|
172
|
+
ref: G,
|
|
173
|
+
xmlns: r($e),
|
|
174
|
+
viewBox: `0 0 ${i.value.width} ${i.value.height}`,
|
|
175
|
+
style: "width:100%;background:transparent;overflow:visible"
|
|
176
|
+
}, [
|
|
177
|
+
pe(r(ae)),
|
|
178
|
+
t.$slots["chart-background"] ? (s(), o("foreignObject", {
|
|
179
|
+
key: 0,
|
|
180
|
+
x: 0,
|
|
181
|
+
y: 0,
|
|
182
|
+
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
183
|
+
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
184
|
+
style: {
|
|
185
|
+
pointerEvents: "none"
|
|
186
|
+
}
|
|
187
|
+
}, [
|
|
188
|
+
J(t.$slots, "chart-background", {}, void 0, !0)
|
|
189
|
+
], 8, Fe)) : c("", !0),
|
|
190
|
+
S("defs", null, [
|
|
191
|
+
S("linearGradient", {
|
|
192
|
+
x1: "0%",
|
|
193
|
+
y1: "0%",
|
|
194
|
+
x2: "0%",
|
|
195
|
+
y2: "100%",
|
|
196
|
+
id: `pill_gradient_${L.value}`
|
|
197
|
+
}, [
|
|
198
|
+
S("stop", {
|
|
199
|
+
offset: "0%",
|
|
200
|
+
"stop-color": r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity)
|
|
201
|
+
}, null, 8, Ee),
|
|
202
|
+
S("stop", {
|
|
203
|
+
offset: "100%",
|
|
204
|
+
"stop-color": e.value.style.backgroundColor
|
|
205
|
+
}, null, 8, Ve)
|
|
206
|
+
], 8, Ie)
|
|
207
|
+
]),
|
|
208
|
+
e.value.style.area.show && l.value[0] ? (s(), o("g", je, [
|
|
209
|
+
e.value.style.line.smooth ? (s(), o("path", {
|
|
210
|
+
key: 0,
|
|
211
|
+
d: `M ${l.value[0].x},${n.value.bottom} ${r(Y)(l.value)} L ${l.value.at(-1).x},${n.value.bottom} Z`,
|
|
212
|
+
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
213
|
+
stroke: "none"
|
|
214
|
+
}, null, 8, Be)) : (s(), o("path", {
|
|
215
|
+
key: 1,
|
|
216
|
+
d: `M${re.value}Z`,
|
|
217
|
+
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
218
|
+
stroke: "none"
|
|
219
|
+
}, null, 8, De))
|
|
220
|
+
])) : c("", !0),
|
|
221
|
+
e.value.style.line.smooth && l.value.length ? (s(), o("path", {
|
|
222
|
+
key: 2,
|
|
223
|
+
d: `M ${r(Y)(l.value)}`,
|
|
224
|
+
stroke: e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke,
|
|
225
|
+
fill: "none",
|
|
226
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
227
|
+
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
228
|
+
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
229
|
+
}, null, 8, Oe)) : c("", !0),
|
|
230
|
+
!e.value.style.line.smooth && l.value.length ? (s(), o("path", {
|
|
231
|
+
key: 3,
|
|
232
|
+
d: ie.value,
|
|
233
|
+
stroke: e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke,
|
|
234
|
+
fill: "none",
|
|
235
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
236
|
+
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
237
|
+
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
238
|
+
}, null, 8, Ge)) : c("", !0),
|
|
239
|
+
r(g) ? (s(), o("path", {
|
|
240
|
+
key: 4,
|
|
241
|
+
fill: "#6A6A6A",
|
|
242
|
+
d: `M ${n.value.left / 2 + 6}, ${v.value + 7} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 14} Z`
|
|
243
|
+
}, null, 8, Re)) : (s(), o("path", {
|
|
244
|
+
key: 5,
|
|
245
|
+
fill: h.value,
|
|
246
|
+
d: V.value === "positive" ? `M ${n.value.left / 2}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 12} ${n.value.left / 2 + 7}, ${v.value + 12} Z` : V.value === "negative" ? `M ${n.value.left / 2}, ${v.value + 12} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 + 7}, ${v.value} Z` : `M ${n.value.left / 2 + 6}, ${v.value + 7} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 14} Z`
|
|
247
|
+
}, null, 8, Ze)),
|
|
248
|
+
r(g) ? (s(), o("rect", {
|
|
249
|
+
key: 6,
|
|
250
|
+
x: n.value.left / 2 - e.value.style.trendLabel.fontSize - 2,
|
|
251
|
+
y: k.value / 2 + e.value.style.trendLabel.fontSize - 2,
|
|
252
|
+
width: e.value.style.trendLabel.fontSize * 2,
|
|
253
|
+
height: e.value.style.trendLabel.fontSize,
|
|
254
|
+
fill: "#6A6A6A80",
|
|
255
|
+
rx: "3"
|
|
256
|
+
}, null, 8, We)) : c("", !0),
|
|
257
|
+
!C.value && !r(g) ? (s(), o("text", {
|
|
258
|
+
key: 7,
|
|
259
|
+
class: "vue-ui-sparktrend-progress-label",
|
|
260
|
+
x: n.value.left / 2,
|
|
261
|
+
y: k.value / 2 + e.value.style.trendLabel.fontSize * 2,
|
|
262
|
+
"text-anchor": "middle",
|
|
263
|
+
fill: e.value.style.trendLabel.useColorTrend ? h.value : e.value.style.trendLabel.color,
|
|
264
|
+
"font-size": e.value.style.trendLabel.fontSize,
|
|
265
|
+
"font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
|
|
266
|
+
}, K(r(ee)({
|
|
267
|
+
p: T.value > 0 ? "+" : "",
|
|
268
|
+
v: T.value,
|
|
269
|
+
s: "%",
|
|
270
|
+
r: e.value.style.trendLabel.rounding
|
|
271
|
+
})), 9, He)) : c("", !0),
|
|
272
|
+
l.value.length && l.value.at(-1).x !== void 0 ? (s(), o("circle", {
|
|
273
|
+
key: 8,
|
|
274
|
+
stroke: e.value.style.backgroundColor,
|
|
275
|
+
"stroke-width": 2,
|
|
276
|
+
cx: l.value.at(-1).x,
|
|
277
|
+
cy: l.value.at(-1).y,
|
|
278
|
+
r: 4,
|
|
279
|
+
fill: r(g) ? "#6A6A6A" : h.value
|
|
280
|
+
}, null, 8, Ue)) : c("", !0),
|
|
281
|
+
l.value.length && l.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (s(), o("text", {
|
|
282
|
+
key: 9,
|
|
283
|
+
"text-anchor": "middle",
|
|
284
|
+
x: l.value.at(-1).x,
|
|
285
|
+
y: l.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
|
|
286
|
+
"font-size": e.value.style.dataLabel.fontSize,
|
|
287
|
+
fill: e.value.style.dataLabel.useColorTrend ? h.value : e.value.style.dataLabel.color,
|
|
288
|
+
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
289
|
+
}, K(r(xe)(
|
|
290
|
+
e.value.style.dataLabel.formatter,
|
|
291
|
+
l.value.at(-1).value,
|
|
292
|
+
r(ee)({
|
|
293
|
+
p: e.value.style.dataLabel.prefix,
|
|
294
|
+
v: l.value.at(-1).value,
|
|
295
|
+
s: e.value.style.dataLabel.suffix,
|
|
296
|
+
r: e.value.style.dataLabel.rounding
|
|
297
|
+
}),
|
|
298
|
+
{ datapoint: l.value.at(-1) }
|
|
299
|
+
)), 9, qe)) : c("", !0)
|
|
300
|
+
], 8, Me)),
|
|
301
|
+
t.$slots.source ? (s(), o("div", {
|
|
302
|
+
key: 0,
|
|
303
|
+
ref_key: "source",
|
|
304
|
+
ref: R,
|
|
305
|
+
dir: "auto"
|
|
306
|
+
}, [
|
|
307
|
+
J(t.$slots, "source", {}, void 0, !0)
|
|
308
|
+
], 512)) : c("", !0),
|
|
309
|
+
r(g) ? (s(), ye(Te, { key: 1 })) : c("", !0)
|
|
310
|
+
], 12, ze));
|
|
311
|
+
}
|
|
312
|
+
}, lt = /* @__PURE__ */ Ne(Pe, [["__scopeId", "data-v-7034e800"]]);
|
|
313
|
+
export {
|
|
314
|
+
lt as default
|
|
315
|
+
};
|