vue-data-ui 3.1.17 → 3.1.18
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-DFX_NfRh.js → Arrow-BC5klzOh.js} +1 -1
- package/dist/{BaseDraggableDialog-CrCjMg89.js → BaseDraggableDialog-CkjMZyIs.js} +2 -2
- package/dist/{BaseIcon-7s-tCFcQ.js → BaseIcon-BPiT94Lb.js} +1 -1
- package/dist/{ColorPicker-BoLH_m_Z.js → ColorPicker-bx5e2RB2.js} +2 -2
- package/dist/{DataTable-Dw6dxJk3.js → DataTable-CywujQw9.js} +2 -2
- package/dist/{Legend-CjdnJGHq.js → Legend-h35dp0Qf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-tX2IXHuz.js → NonSvgPenAndPaper-CvnlQ378.js} +3 -3
- package/dist/{PackageVersion-D1HToLlZ.js → PackageVersion-BzGzkGiC.js} +1 -1
- package/dist/{PenAndPaper-BKnXOYre.js → PenAndPaper-Deh70G9d.js} +3 -3
- package/dist/{Shape-6PexQroB.js → Shape-sVxD_SDm.js} +1 -1
- package/dist/{Slicer-BJkhMBk4.js → Slicer-CQB967He.js} +2 -2
- package/dist/{SparkTooltip-BtO1j0i1.js → SparkTooltip-DFRSPT3_.js} +1 -1
- package/dist/{Title-BVMfF0uu.js → Title-B_WMW2Bp.js} +1 -1
- package/dist/{Tooltip-DBvmoYXU.js → Tooltip-Db9jy0Iu.js} +1 -1
- package/dist/{UserOptions-CKzW9w0Q.js → UserOptions-CtECQwBN.js} +2 -2
- package/dist/{dom-to-png-D0wlWRL9.js → dom-to-png-BHpS3cMi.js} +1 -1
- package/dist/{img-CeCjiMpr.js → img-BArHHegM.js} +1 -1
- package/dist/{index-Lg17rmB1.js → index-smzxfsyV.js} +2 -2
- package/dist/{pdf-D5bgIg6W.js → pdf-D1L3r23x.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BxqMb3sU.js → useAutoSizeLabelsInsideViewbox-DeqXeTNw.js} +1 -1
- package/dist/{useNestedProp-DpwLJMsW.js → useNestedProp-DeKmJzsE.js} +1 -1
- package/dist/{usePrinter-DGI4Mlad.js → usePrinter-nFj0xF0a.js} +2 -2
- package/dist/{vue-data-ui-lki09wwK.js → vue-data-ui-DcBYykse.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-8b3VZcUI.js → vue-ui-3d-bar-D4rc8PD3.js} +57 -57
- package/dist/{vue-ui-accordion-BJG-ogQj.js → vue-ui-accordion-7cfJUVx5.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cr_dhyTO.js → vue-ui-age-pyramid-BXMIUNB_.js} +6 -6
- package/dist/{vue-ui-annotator-ttaqcMTz.js → vue-ui-annotator-aCDhQ-m2.js} +2 -2
- package/dist/{vue-ui-bullet-DXvTj07g.js → vue-ui-bullet-Cd_iix-z.js} +7 -7
- package/dist/{vue-ui-candlestick-B5NqFTXr.js → vue-ui-candlestick-C-TTTgiW.js} +7 -7
- package/dist/{vue-ui-carousel-table-B0bpCRFh.js → vue-ui-carousel-table-C58J4zpm.js} +4 -4
- package/dist/{vue-ui-chestnut-Cby7Wcbu.js → vue-ui-chestnut-C7u6GW-T.js} +5 -5
- package/dist/{vue-ui-chord-Cxg8nwzZ.js → vue-ui-chord-DxLU3Fg1.js} +8 -8
- package/dist/{vue-ui-circle-pack-Cc5e6dE3.js → vue-ui-circle-pack--a_KE7qz.js} +6 -6
- package/dist/{vue-ui-cursor-D6MvR7jD.js → vue-ui-cursor-DJQWAIj8.js} +2 -2
- package/dist/{vue-ui-dashboard-CaUM9n5b.js → vue-ui-dashboard-CIACUYB-.js} +67 -67
- package/dist/{vue-ui-digits-DsoHRv9p.js → vue-ui-digits-CLV8h-P8.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CFu9WNVV.js → vue-ui-donut-evolution-XGJvBQIm.js} +8 -8
- package/dist/{vue-ui-donut-Dxsq1gpz.js → vue-ui-donut-sO6G5oor.js} +8 -8
- package/dist/{vue-ui-dumbbell-Cgb7ijQS.js → vue-ui-dumbbell-Bi11rDL7.js} +7 -7
- package/dist/{vue-ui-flow-Ucb9PdWP.js → vue-ui-flow-RP2v-aZJ.js} +7 -7
- package/dist/{vue-ui-funnel-CV29tksj.js → vue-ui-funnel-TVQXGyw7.js} +6 -6
- package/dist/{vue-ui-galaxy-CVJb9_hA.js → vue-ui-galaxy-CUURaWgH.js} +7 -7
- package/dist/{vue-ui-gauge-ofpIH29X.js → vue-ui-gauge-hTRlwARA.js} +125 -125
- package/dist/{vue-ui-gizmo-Ci9kN9VQ.js → vue-ui-gizmo-CZIgBvWV.js} +3 -3
- package/dist/{vue-ui-heatmap-BK_jorrw.js → vue-ui-heatmap-RKtFMgDP.js} +7 -7
- package/dist/{vue-ui-history-plot-Ce8BB4Tn.js → vue-ui-history-plot-fbTG7Mke.js} +7 -7
- package/dist/{vue-ui-kpi-DAHT9q6j.js → vue-ui-kpi-CfX-zUDS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CuilTrcI.js → vue-ui-mini-loader-C1nANuMy.js} +2 -2
- package/dist/{vue-ui-molecule-C6suewK-.js → vue-ui-molecule-BU7T1ysb.js} +5 -5
- package/dist/{vue-ui-mood-radar-DPvGhgPI.js → vue-ui-mood-radar-Cb8cFWzE.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BvPWp9Du.js → vue-ui-nested-donuts-DTZD8BTA.js} +7 -7
- package/dist/{vue-ui-onion-BZ0tfRV_.js → vue-ui-onion-5xmlEUsJ.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DqFj8hbo.js → vue-ui-parallel-coordinate-plot-Wc0TbyJH.js} +8 -8
- package/dist/{vue-ui-quadrant-Cg5e73ny.js → vue-ui-quadrant-BC99Cua7.js} +8 -8
- package/dist/{vue-ui-quick-chart-sABlk5nb.js → vue-ui-quick-chart-Cbv2UcEu.js} +6 -6
- package/dist/{vue-ui-radar-DYcoGzSu.js → vue-ui-radar-B-ey_fDA.js} +8 -8
- package/dist/{vue-ui-rating-1eguB-TH.js → vue-ui-rating-BNCKLcCa.js} +2 -2
- package/dist/{vue-ui-relation-circle-BeWuQDkk.js → vue-ui-relation-circle-CYFQcAgc.js} +7 -7
- package/dist/{vue-ui-ridgeline-CG7FefqU.js → vue-ui-ridgeline-B_6K1FTc.js} +8 -8
- package/dist/{vue-ui-rings-2eedFGuC.js → vue-ui-rings-D_BTgxYc.js} +8 -8
- package/dist/{vue-ui-scatter-CNtgNP5j.js → vue-ui-scatter-B69SYOfv.js} +8 -8
- package/dist/{vue-ui-skeleton-fqG3bKSz.js → vue-ui-skeleton-CpkwgALO.js} +3 -3
- package/dist/{vue-ui-smiley-D4bvSF9S.js → vue-ui-smiley-t16dEIoQ.js} +2 -2
- package/dist/vue-ui-spark-trend-DskdjYw4.js +336 -0
- package/dist/{vue-ui-sparkbar-D1FXZyQE.js → vue-ui-sparkbar-C-evQIq2.js} +81 -81
- package/dist/{vue-ui-sparkgauge-CHbbxg13.js → vue-ui-sparkgauge-DycVSHAs.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BxYes64D.js → vue-ui-sparkhistogram-CZLnlSUD.js} +4 -4
- package/dist/{vue-ui-sparkline-CS3F5TFN.js → vue-ui-sparkline-C1nZRVTa.js} +169 -169
- package/dist/{vue-ui-sparkstackbar-CUSBwkUS.js → vue-ui-sparkstackbar-CUUeuwAI.js} +3 -3
- package/dist/{vue-ui-stackbar-CDihyp-i.js → vue-ui-stackbar-D27Wq8Y4.js} +9 -9
- package/dist/{vue-ui-strip-plot-D6MFuKnN.js → vue-ui-strip-plot-D-srKJUr.js} +7 -7
- package/dist/{vue-ui-table-COT59wVb.js → vue-ui-table-LcImk124.js} +4 -4
- package/dist/{vue-ui-table-heatmap--e8yw5yS.js → vue-ui-table-heatmap-BfXe_f0K.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DnSLwUNN.js → vue-ui-table-sparkline-DyrnPNGv.js} +4 -4
- package/dist/{vue-ui-thermometer-ByiRARW0.js → vue-ui-thermometer-DxRDmz-L.js} +7 -7
- package/dist/{vue-ui-timer-DOQVdVN2.js → vue-ui-timer-Bbzb09O8.js} +5 -5
- package/dist/{vue-ui-tiremarks-BFXeJQNZ.js → vue-ui-tiremarks-DWy1Dkub.js} +6 -6
- package/dist/{vue-ui-treemap-s_O9rQUT.js → vue-ui-treemap-C3Ek_E4n.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Bn-m5GKU.js → vue-ui-vertical-bar-CV3Mc1cX.js} +9 -9
- package/dist/{vue-ui-waffle-DmxaWHSw.js → vue-ui-waffle-D2mQJdcV.js} +8 -8
- package/dist/{vue-ui-wheel-zJ5U-h_D.js → vue-ui-wheel-zbog7bII.js} +6 -6
- package/dist/{vue-ui-word-cloud-BEnkOZdv.js → vue-ui-word-cloud-D9iZRkQP.js} +6 -6
- package/dist/{vue-ui-world-CkqoTL4V.js → vue-ui-world-D5dR5VdK.js} +6 -6
- package/dist/{vue-ui-xy-Uqdl2nk-.js → vue-ui-xy-Cll76_i9.js} +404 -414
- package/dist/{vue-ui-xy-canvas-cIU8Y1sD.js → vue-ui-xy-canvas-DJVXAfpL.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-spark-trend-GML5JJxY.js +0 -315
|
@@ -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-smzxfsyV.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-DeKmJzsE.js";
|
|
4
|
+
import y from "./PackageVersion-BzGzkGiC.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, f as J, k as x, i as b, X as f, x as m } from "./index-
|
|
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-smzxfsyV.js";
|
|
3
|
+
import { u as Q } from "./useNestedProp-DeKmJzsE.js";
|
|
4
4
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const Z = {
|
|
6
6
|
key: 0,
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { defineAsyncComponent as ce, ref as f, toRefs as he, computed as u, watch as G, nextTick as J, onMounted as ye, createElementBlock as r, openBlock as o, normalizeStyle as pe, createCommentVNode as h, createBlock as ge, unref as i, createVNode as me, createElementVNode as z, renderSlot as K, toDisplayString as Q } from "vue";
|
|
2
|
+
import { u as ke, c as be, t as _e, b as we, a7 as Y, o as R, f as xe, h as x, a8 as $e, X as Le, s as Z, V as ee, i as te, k as Ce } from "./index-smzxfsyV.js";
|
|
3
|
+
import { t as Ae, u as Te } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ne, B as Se } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as ze } from "./useFitSvgText-2crs6Fv5.js";
|
|
6
|
+
import { u as le } from "./useNestedProp-DeKmJzsE.js";
|
|
7
|
+
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const Me = ["id"], Ie = ["xmlns", "viewBox"], je = ["width", "height"], Ee = ["id"], Ve = ["stop-color"], Be = ["stop-color"], De = { key: 1 }, Oe = ["d", "fill"], Ge = ["d", "fill"], Re = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Ze = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], We = ["d"], He = ["fill", "d"], Ue = ["x", "y", "width", "height"], qe = ["x", "y", "fill", "font-size", "font-weight"], Pe = ["stroke", "cx", "cy", "fill"], Xe = ["x", "y", "font-size", "fill", "font-weight"], Je = {
|
|
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(ae) {
|
|
25
|
+
const ne = ce(() => import("./PackageVersion-BzGzkGiC.js")), { vue_ui_spark_trend: ue } = ke(), m = ae, F = f(null), W = f(null), H = f(null), $ = f(null), C = f(null), A = f(!1), y = f(null), L = f(be()), e = f(j()), { loading: _, FINAL_DATASET: M, manualLoading: I } = Ne({
|
|
26
|
+
...he(m),
|
|
27
|
+
FINAL_CONFIG: e,
|
|
28
|
+
prepareConfig: j,
|
|
29
|
+
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233],
|
|
30
|
+
skeletonConfig: _e({
|
|
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 j() {
|
|
46
|
+
const t = le({
|
|
47
|
+
userConfig: m.config,
|
|
48
|
+
defaultConfig: ue
|
|
49
|
+
});
|
|
50
|
+
return t.theme ? {
|
|
51
|
+
...le({
|
|
52
|
+
userConfig: we.vue_ui_spark_trend[t.theme] || m.config,
|
|
53
|
+
defaultConfig: t
|
|
54
|
+
})
|
|
55
|
+
} : t;
|
|
56
|
+
}
|
|
57
|
+
const p = u(() => Y({
|
|
58
|
+
data: M.value,
|
|
59
|
+
threshold: e.value.downsample.threshold
|
|
60
|
+
}));
|
|
61
|
+
G(() => m.config, (t) => {
|
|
62
|
+
e.value = j(), B.value = e.value.style.width, w.value = e.value.style.height, U();
|
|
63
|
+
}, { deep: !0 });
|
|
64
|
+
function E(t) {
|
|
65
|
+
return t.map((l) => x(l));
|
|
66
|
+
}
|
|
67
|
+
const b = f(Y({
|
|
68
|
+
data: M.value,
|
|
69
|
+
threshold: e.value.downsample.threshold
|
|
70
|
+
}).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t));
|
|
71
|
+
G(p, (t) => {
|
|
72
|
+
y.value && (cancelAnimationFrame(y.value), y.value = null), e.value.style.animation.show ? b.value = Array(t.length).fill(null) : b.value = t.map(
|
|
73
|
+
(l) => ![void 0, 1 / 0, -1 / 0, null].includes(l) && !Number.isNaN(l) ? l : null
|
|
74
|
+
), V(), J(() => S(".vue-ui-sparktrend-progress-label", 6));
|
|
75
|
+
}, { deep: !0, immediate: !0 }), G(
|
|
76
|
+
() => JSON.stringify(m.dataset),
|
|
77
|
+
() => {
|
|
78
|
+
y.value && (cancelAnimationFrame(y.value), y.value = null), I.value = R(m.dataset);
|
|
79
|
+
const t = p.value;
|
|
80
|
+
b.value = e.value.style.animation.show ? Array(t.length).fill(null) : t.map((l) => Number.isFinite(l) ? l : null), V(), J(() => S(".vue-ui-sparktrend-progress-label", 6));
|
|
81
|
+
},
|
|
82
|
+
{ deep: !1, immediate: !0 }
|
|
83
|
+
);
|
|
84
|
+
function V() {
|
|
85
|
+
let l = 1e3 / e.value.style.animation.animationFrames, s = performance.now();
|
|
86
|
+
if (!_.value && e.value.style.animation.show && e.value.style.animation.animationFrames && M.value.length > 1) {
|
|
87
|
+
let k = function() {
|
|
88
|
+
A.value = !0;
|
|
89
|
+
let P = performance.now(), X = P - s;
|
|
90
|
+
X > l ? (s = P - X % l, c < p.value.length ? (b.value.push(p.value[c]), c += 1, y.value = requestAnimationFrame(k)) : (cancelAnimationFrame(y.value), b.value = E(p.value), A.value = !1, S(".vue-ui-sparktrend-progress-label", 6))) : y.value = requestAnimationFrame(k);
|
|
91
|
+
};
|
|
92
|
+
b.value = [];
|
|
93
|
+
let c = 0;
|
|
94
|
+
k();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
ye(() => {
|
|
98
|
+
U();
|
|
99
|
+
});
|
|
100
|
+
const se = u(() => e.value.debug);
|
|
101
|
+
function U() {
|
|
102
|
+
if (R(m.dataset) && (xe({
|
|
103
|
+
componentName: "VueUiSparkTrend",
|
|
104
|
+
type: "dataset",
|
|
105
|
+
debug: se.value
|
|
106
|
+
}), I.value = !0), R(m.dataset) || (I.value = !1), e.value.responsive) {
|
|
107
|
+
const t = Ae(() => {
|
|
108
|
+
const { width: l, height: s } = Te({
|
|
109
|
+
chart: F.value,
|
|
110
|
+
source: H.value
|
|
111
|
+
});
|
|
112
|
+
requestAnimationFrame(() => {
|
|
113
|
+
B.value = l, w.value = s;
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
$.value && (C.value && $.value.unobserve(C.value), $.value.disconnect()), $.value = new ResizeObserver(t), C.value = F.value.parentNode, $.value.observe(C.value);
|
|
117
|
+
}
|
|
118
|
+
V(), S(".vue-ui-sparktrend-progress-label", 6);
|
|
119
|
+
}
|
|
120
|
+
const B = f(e.value.style.width), w = f(e.value.style.height), v = u(() => ({
|
|
121
|
+
height: w.value,
|
|
122
|
+
width: B.value
|
|
123
|
+
})), n = u(() => ({
|
|
124
|
+
top: e.value.style.padding.top,
|
|
125
|
+
left: e.value.style.padding.left,
|
|
126
|
+
right: v.value.width - e.value.style.padding.right,
|
|
127
|
+
bottom: v.value.height - e.value.style.padding.bottom,
|
|
128
|
+
height: v.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
|
|
129
|
+
width: v.value.width - (e.value.style.padding.left + e.value.style.padding.right)
|
|
130
|
+
})), D = u(() => {
|
|
131
|
+
const t = E(p.value).filter(Number.isFinite);
|
|
132
|
+
if (!t.length) return { max: 0, min: 0 };
|
|
133
|
+
let l = t[0], s = t[0];
|
|
134
|
+
for (let c = 1; c < t.length; c++) {
|
|
135
|
+
const k = t[c];
|
|
136
|
+
k > l && (l = k), k < s && (s = k);
|
|
137
|
+
}
|
|
138
|
+
return { max: l, min: s };
|
|
139
|
+
}), oe = u(() => {
|
|
140
|
+
const t = p.value, l = t.length ? t[t.length - 1] : "x";
|
|
141
|
+
return [
|
|
142
|
+
L.value,
|
|
143
|
+
t.length,
|
|
144
|
+
Number.isFinite(l) ? l : "x",
|
|
145
|
+
e.value.downsample.threshold,
|
|
146
|
+
e.value.style.line.smooth ? "s" : "l"
|
|
147
|
+
].join("-");
|
|
148
|
+
}), T = u(() => {
|
|
149
|
+
const t = D.value.min >= 0 ? 0 : D.value.min;
|
|
150
|
+
return Math.abs(t);
|
|
151
|
+
}), re = u(() => D.value.max + T.value);
|
|
152
|
+
function q(t) {
|
|
153
|
+
return t / re.value;
|
|
154
|
+
}
|
|
155
|
+
const ie = u(() => p.value.length), a = u(() => b.value.map((t, l) => {
|
|
156
|
+
const s = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
|
|
157
|
+
return {
|
|
158
|
+
value: x(t),
|
|
159
|
+
absoluteValue: x(s),
|
|
160
|
+
plotValue: x(s + T.value),
|
|
161
|
+
toMax: q(s + T.value),
|
|
162
|
+
x: n.value.left + x(l * (n.value.width / (ie.value - 1))) - e.value.style.padding.right,
|
|
163
|
+
y: n.value.bottom - x(n.value.height * q(s + T.value))
|
|
164
|
+
};
|
|
165
|
+
})), N = u(() => {
|
|
166
|
+
const t = E(p.value);
|
|
167
|
+
return e.value.style.trendLabel.trendType === "global" ? $e(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;
|
|
168
|
+
}), O = u(() => A.value || N.value === 0 ? "neutral" : N.value > 0 ? "positive" : "negative"), g = u(() => e.value.style.arrow.colors[O.value]), ve = u(() => {
|
|
169
|
+
const t = { x: a.value[0].x, y: v.value.height - 6 }, l = { x: a.value[a.value.length - 1].x, y: v.value.height - 6 }, s = [];
|
|
170
|
+
return a.value.forEach((c) => {
|
|
171
|
+
s.push(`${c.x},${c.y} `);
|
|
172
|
+
}), [t.x, t.y, ...s, l.x, l.y].toString();
|
|
173
|
+
}), de = u(() => {
|
|
174
|
+
let t = [];
|
|
175
|
+
return a.value.forEach((l) => {
|
|
176
|
+
t.push(`${l.x},${l.y} `);
|
|
177
|
+
}), `M ${t.toString()}`;
|
|
178
|
+
}), d = u(() => w.value / 2 - e.value.style.trendLabel.fontSize), fe = u(() => n.value.left * 0.8), { fitText: S } = ze({
|
|
179
|
+
svgRef: W,
|
|
180
|
+
unitWidth: fe,
|
|
181
|
+
fontSize: e.value.style.trendLabel.fontSize
|
|
182
|
+
});
|
|
183
|
+
return (t, l) => (o(), r("div", {
|
|
184
|
+
ref_key: "sparkTrendChart",
|
|
185
|
+
ref: F,
|
|
186
|
+
class: "vue-ui-spark-trend",
|
|
187
|
+
id: L.value,
|
|
188
|
+
style: pe(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
|
|
189
|
+
}, [
|
|
190
|
+
(o(), r("svg", {
|
|
191
|
+
key: oe.value,
|
|
192
|
+
ref_key: "svgRef",
|
|
193
|
+
ref: W,
|
|
194
|
+
xmlns: i(Le),
|
|
195
|
+
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
196
|
+
style: "width:100%;background:transparent;overflow:visible"
|
|
197
|
+
}, [
|
|
198
|
+
me(i(ne)),
|
|
199
|
+
t.$slots["chart-background"] ? (o(), r("foreignObject", {
|
|
200
|
+
key: 0,
|
|
201
|
+
x: 0,
|
|
202
|
+
y: 0,
|
|
203
|
+
width: v.value.width <= 0 ? 10 : v.value.width,
|
|
204
|
+
height: v.value.height <= 0 ? 10 : v.value.height,
|
|
205
|
+
style: {
|
|
206
|
+
pointerEvents: "none"
|
|
207
|
+
}
|
|
208
|
+
}, [
|
|
209
|
+
K(t.$slots, "chart-background", {}, void 0, !0)
|
|
210
|
+
], 8, je)) : h("", !0),
|
|
211
|
+
z("defs", null, [
|
|
212
|
+
z("linearGradient", {
|
|
213
|
+
x1: "0%",
|
|
214
|
+
y1: "0%",
|
|
215
|
+
x2: "0%",
|
|
216
|
+
y2: "100%",
|
|
217
|
+
id: `pill_gradient_${L.value}`
|
|
218
|
+
}, [
|
|
219
|
+
z("stop", {
|
|
220
|
+
offset: "0%",
|
|
221
|
+
"stop-color": i(Z)(e.value.style.line.useColorTrend ? g.value : e.value.style.line.stroke, e.value.style.area.opacity)
|
|
222
|
+
}, null, 8, Ve),
|
|
223
|
+
z("stop", {
|
|
224
|
+
offset: "100%",
|
|
225
|
+
"stop-color": e.value.style.backgroundColor
|
|
226
|
+
}, null, 8, Be)
|
|
227
|
+
], 8, Ee)
|
|
228
|
+
]),
|
|
229
|
+
e.value.style.area.show && a.value[0] ? (o(), r("g", De, [
|
|
230
|
+
e.value.style.line.smooth ? (o(), r("path", {
|
|
231
|
+
key: 0,
|
|
232
|
+
d: `M ${a.value[0].x},${n.value.bottom} ${i(ee)(a.value)} L ${a.value.at(-1).x},${n.value.bottom} Z`,
|
|
233
|
+
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : i(Z)(e.value.style.line.useColorTrend ? g.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
234
|
+
stroke: "none"
|
|
235
|
+
}, null, 8, Oe)) : (o(), r("path", {
|
|
236
|
+
key: 1,
|
|
237
|
+
d: `M${ve.value}Z`,
|
|
238
|
+
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : i(Z)(e.value.style.line.useColorTrend ? g.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
239
|
+
stroke: "none"
|
|
240
|
+
}, null, 8, Ge))
|
|
241
|
+
])) : h("", !0),
|
|
242
|
+
e.value.style.line.smooth && a.value.length ? (o(), r("path", {
|
|
243
|
+
key: 2,
|
|
244
|
+
d: `M ${i(ee)(a.value)}`,
|
|
245
|
+
stroke: e.value.style.line.useColorTrend ? g.value : e.value.style.line.stroke,
|
|
246
|
+
fill: "none",
|
|
247
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
248
|
+
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
249
|
+
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
250
|
+
}, null, 8, Re)) : h("", !0),
|
|
251
|
+
!e.value.style.line.smooth && a.value.length ? (o(), r("path", {
|
|
252
|
+
key: 3,
|
|
253
|
+
d: de.value,
|
|
254
|
+
stroke: e.value.style.line.useColorTrend ? g.value : e.value.style.line.stroke,
|
|
255
|
+
fill: "none",
|
|
256
|
+
"stroke-width": e.value.style.line.strokeWidth,
|
|
257
|
+
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
258
|
+
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
259
|
+
}, null, 8, Ze)) : h("", !0),
|
|
260
|
+
i(_) ? (o(), r("path", {
|
|
261
|
+
key: 4,
|
|
262
|
+
fill: "#6A6A6A",
|
|
263
|
+
d: `M ${n.value.left / 2 + 6}, ${d.value + 7} ${n.value.left / 2 - 7}, ${d.value} ${n.value.left / 2 - 7}, ${d.value + 14} Z`
|
|
264
|
+
}, null, 8, We)) : (o(), r("path", {
|
|
265
|
+
key: 5,
|
|
266
|
+
fill: g.value,
|
|
267
|
+
d: O.value === "positive" ? `M ${n.value.left / 2}, ${d.value} ${n.value.left / 2 - 7}, ${d.value + 12} ${n.value.left / 2 + 7}, ${d.value + 12} Z` : O.value === "negative" ? `M ${n.value.left / 2}, ${d.value + 12} ${n.value.left / 2 - 7}, ${d.value} ${n.value.left / 2 + 7}, ${d.value} Z` : `M ${n.value.left / 2 + 6}, ${d.value + 7} ${n.value.left / 2 - 7}, ${d.value} ${n.value.left / 2 - 7}, ${d.value + 14} Z`
|
|
268
|
+
}, null, 8, He)),
|
|
269
|
+
i(_) ? (o(), r("rect", {
|
|
270
|
+
key: 6,
|
|
271
|
+
x: n.value.left / 2 - e.value.style.trendLabel.fontSize - 2,
|
|
272
|
+
y: w.value / 2 + e.value.style.trendLabel.fontSize - 2,
|
|
273
|
+
width: e.value.style.trendLabel.fontSize * 2,
|
|
274
|
+
height: e.value.style.trendLabel.fontSize,
|
|
275
|
+
fill: "#6A6A6A80",
|
|
276
|
+
rx: "3"
|
|
277
|
+
}, null, 8, Ue)) : h("", !0),
|
|
278
|
+
!A.value && !i(_) ? (o(), r("text", {
|
|
279
|
+
key: 7,
|
|
280
|
+
class: "vue-ui-sparktrend-progress-label",
|
|
281
|
+
x: n.value.left / 2,
|
|
282
|
+
y: w.value / 2 + e.value.style.trendLabel.fontSize * 2,
|
|
283
|
+
"text-anchor": "middle",
|
|
284
|
+
fill: e.value.style.trendLabel.useColorTrend ? g.value : e.value.style.trendLabel.color,
|
|
285
|
+
"font-size": e.value.style.trendLabel.fontSize,
|
|
286
|
+
"font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
|
|
287
|
+
}, Q(i(te)({
|
|
288
|
+
p: N.value > 0 ? "+" : "",
|
|
289
|
+
v: N.value,
|
|
290
|
+
s: "%",
|
|
291
|
+
r: e.value.style.trendLabel.rounding
|
|
292
|
+
})), 9, qe)) : h("", !0),
|
|
293
|
+
a.value.length && a.value.at(-1).x !== void 0 ? (o(), r("circle", {
|
|
294
|
+
key: 8,
|
|
295
|
+
stroke: e.value.style.backgroundColor,
|
|
296
|
+
"stroke-width": 2,
|
|
297
|
+
cx: a.value.at(-1).x,
|
|
298
|
+
cy: a.value.at(-1).y,
|
|
299
|
+
r: 4,
|
|
300
|
+
fill: i(_) ? "#6A6A6A" : g.value
|
|
301
|
+
}, null, 8, Pe)) : h("", !0),
|
|
302
|
+
a.value.length && a.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (o(), r("text", {
|
|
303
|
+
key: 9,
|
|
304
|
+
"text-anchor": "middle",
|
|
305
|
+
x: a.value.at(-1).x,
|
|
306
|
+
y: a.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
|
|
307
|
+
"font-size": e.value.style.dataLabel.fontSize,
|
|
308
|
+
fill: e.value.style.dataLabel.useColorTrend ? g.value : e.value.style.dataLabel.color,
|
|
309
|
+
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
310
|
+
}, Q(i(Ce)(
|
|
311
|
+
e.value.style.dataLabel.formatter,
|
|
312
|
+
a.value.at(-1).value,
|
|
313
|
+
i(te)({
|
|
314
|
+
p: e.value.style.dataLabel.prefix,
|
|
315
|
+
v: a.value.at(-1).value,
|
|
316
|
+
s: e.value.style.dataLabel.suffix,
|
|
317
|
+
r: e.value.style.dataLabel.rounding
|
|
318
|
+
}),
|
|
319
|
+
{ datapoint: a.value.at(-1) }
|
|
320
|
+
)), 9, Xe)) : h("", !0)
|
|
321
|
+
], 8, Ie)),
|
|
322
|
+
t.$slots.source ? (o(), r("div", {
|
|
323
|
+
key: 0,
|
|
324
|
+
ref_key: "source",
|
|
325
|
+
ref: H,
|
|
326
|
+
dir: "auto"
|
|
327
|
+
}, [
|
|
328
|
+
K(t.$slots, "source", {}, void 0, !0)
|
|
329
|
+
], 512)) : h("", !0),
|
|
330
|
+
i(_) ? (o(), ge(Se, { key: 1 })) : h("", !0)
|
|
331
|
+
], 12, Me));
|
|
332
|
+
}
|
|
333
|
+
}, nt = /* @__PURE__ */ Fe(Je, [["__scopeId", "data-v-95dc56d2"]]);
|
|
334
|
+
export {
|
|
335
|
+
nt as default
|
|
336
|
+
};
|