vue-data-ui 3.4.9 → 3.5.1
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/README.md +114 -37
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
- package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
- package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
- package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
- package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
- package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
- package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
- package/dist/vue-ui-onion-DTY2p87s.js +0 -873
- package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
- package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
- package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
- package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
- package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
- package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
- package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
- package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
|
@@ -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
2
|
import { k as B, X as c, s as v, j as F } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as O, a as V } from "./useNestedProp-
|
|
4
|
-
import y from "./PackageVersion-
|
|
3
|
+
import { u as O, a as V } from "./useNestedProp-DjGXw6S9.js";
|
|
4
|
+
import y from "./PackageVersion-DQvyATVa.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"], c1 = ["stroke"], u1 = ["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"], cl = ["stroke", "fill"], ul = ["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"], c0 = ["stroke"], u0 = ["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"], ct = ["stroke", "stroke-width"], ut = ["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"], ce = ["x", "y", "fill"], ue = ["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 u, createElementVNode as l, toDisplayString as c, unref as o, withKeys as z, normalizeClass as M, createTextVNode as S, createStaticVNode as $ } from "vue";
|
|
2
2
|
import { o as P, f as q, a as x, d as b, X as y, i as k } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as J, a as Q } from "./useNestedProp-
|
|
3
|
+
import { u as J, a as Q } from "./useNestedProp-DjGXw6S9.js";
|
|
4
4
|
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const Z = {
|
|
6
6
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
2
|
import { c as ke, t as be, u as Y, o as R, f as _e, x, ad as we, X as xe, s as Z, z as ee, d as te, a as $e } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Le, u as Ce } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ae, a as le } from "./useNestedProp-
|
|
4
|
+
import { u as Ae, a as le } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as Te, B as Ne } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Se } from "./useFitSvgText-2crs6Fv5.js";
|
|
7
7
|
import { t as ze } from "./themes-AUNCOb2G.js";
|
|
@@ -23,7 +23,7 @@ const Me = ["id"], Ie = ["xmlns", "viewBox"], je = ["width", "height"], Ee = ["i
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(ae) {
|
|
26
|
-
const ne = ce(() => import("./PackageVersion-
|
|
26
|
+
const ne = ce(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_spark_trend: ue } = Ae(), m = ae, F = f(null), W = f(null), H = f(null), $ = f(null), C = f(null), A = f(!1), y = f(null), L = f(ke()), e = f(j()), { loading: _, FINAL_DATASET: M, manualLoading: I } = Te({
|
|
27
27
|
...he(m),
|
|
28
28
|
FINAL_CONFIG: e,
|
|
29
29
|
prepareConfig: j,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as Z, useSlots as ee, onMounted as F, ref as x, toRefs as te, computed as w, watch as B, nextTick as le, createElementBlock as i, openBlock as s, normalizeStyle as d, unref as a, renderSlot as $, createCommentVNode as p, createBlock as ae, normalizeProps as oe, mergeProps as E, createElementVNode as v, toDisplayString as y, Fragment as M, renderList as ne, createVNode as se } from "vue";
|
|
2
2
|
import { c as ue, t as ie, b as re, p as _, e as ve, o as ce, f as P, g as de, h as pe, s as D, a as C, d as A, X as fe, i as ye } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as ge, a as V } from "./useNestedProp-
|
|
3
|
+
import { u as ge, a as V } from "./useNestedProp-DjGXw6S9.js";
|
|
4
4
|
import { t as me } from "./themes-AUNCOb2G.js";
|
|
5
5
|
import { u as he, B as xe } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["xmlns", "viewBox"], _e = ["id"], Ce = ["stop-color"], Ae = ["stop-color"], Se = ["height", "width", "fill", "rx"], $e = ["height", "width", "fill", "rx"], De = ["height", "width", "fill", "rx"], Ie = {
|
|
@@ -32,7 +32,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint"],
|
|
34
34
|
setup(O, { emit: j }) {
|
|
35
|
-
const U = Z(() => import("./PackageVersion-
|
|
35
|
+
const U = Z(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_sparkbar: R } = ge(), f = O, W = ee();
|
|
36
36
|
F(() => {
|
|
37
37
|
W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
38
38
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as T, ref as b, toRefs as U, onMounted as N, computed as s, watch as M, createElementBlock as r, openBlock as u, normalizeStyle as g, createCommentVNode as d, createBlock as P, toDisplayString as k, unref as i, createVNode as q, createElementVNode as m, renderSlot as F, normalizeClass as V } from "vue";
|
|
2
|
-
import { u as X, a as B } from "./useNestedProp-
|
|
2
|
+
import { u as X, a as B } from "./useNestedProp-DjGXw6S9.js";
|
|
3
3
|
import { c as Y, t as H, o as J, f as E, g as K, ae as Q, X as W, a as Z, x, d as ee } from "./lib-C_mNZmhD.js";
|
|
4
4
|
import { u as te, B as ae } from "./BaseScanner-BgWxam9d.js";
|
|
5
5
|
import { u as le } from "./useChartAccessibility-9icAAmYg.js";
|
|
@@ -25,7 +25,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(D) {
|
|
28
|
-
const O = T(() => import("./PackageVersion-
|
|
28
|
+
const O = T(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = te({
|
|
29
29
|
...U(c),
|
|
30
30
|
FINAL_CONFIG: e,
|
|
31
31
|
prepareConfig: p,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Se, a as
|
|
1
|
+
import { useCssVars as be, computed as x, defineAsyncComponent as pe, ref as h, toRefs as me, onMounted as X, watch as j, nextTick as G, createElementBlock as s, openBlock as a, normalizeStyle as M, createCommentVNode as d, createBlock as q, createElementVNode as g, createTextVNode as _e, toDisplayString as b, unref as n, createVNode as ke, renderSlot as Y, Fragment as y, renderList as f, normalizeClass as P } from "vue";
|
|
2
|
+
import { c as xe, t as Ce, o as Ae, f as J, g as we, s as p, a as K, d as Q, X as Le, i as H } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as $e, u as ze } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Se, a as Z } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as Me, B as Fe } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Ie } from "./useFitSvgText-2crs6Fv5.js";
|
|
7
7
|
import { u as Te } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { _ as Ee } from "./Shape-CNXKB8O0.js";
|
|
9
9
|
import { t as Ne } from "./themes-AUNCOb2G.js";
|
|
10
10
|
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const
|
|
11
|
+
const He = { key: 0 }, We = { key: 1 }, Ve = ["xmlns", "viewBox"], Oe = ["width", "height"], Re = ["id"], Be = ["stop-color"], Ue = ["stop-color"], Xe = ["id"], je = ["stop-color"], Ge = ["stop-color"], qe = ["id"], Ye = ["stop-color"], Pe = ["stop-color"], Je = ["height", "width", "fill", "x", "stroke", "stroke-width", "rx", "stroke-dasharray"], Ke = { key: 1 }, Qe = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ze = { key: 2 }, et = ["x", "y", "font-size", "font-weight", "fill"], tt = ["x", "y", "font-size", "fill"], lt = ["x", "y", "font-size", "fill"], at = ["height", "width", "x", "onMouseover", "onMouseleave", "onClick"], st = {
|
|
12
12
|
__name: "vue-ui-sparkhistogram",
|
|
13
13
|
props: {
|
|
14
14
|
config: {
|
|
@@ -25,14 +25,14 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
emits: ["selectDatapoint"],
|
|
28
|
-
setup(
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
setup(ee, { emit: te }) {
|
|
29
|
+
be((l) => ({
|
|
30
|
+
v151ed470: ce.value
|
|
31
31
|
}));
|
|
32
|
-
const
|
|
33
|
-
...
|
|
32
|
+
const le = pe(() => import("./PackageVersion-DQvyATVa.js")), { vue_ui_sparkhistogram: ae } = Se(), m = ee, _ = h(xe()), W = h(null), V = h(null), F = h(null), C = h(null), L = h(null), e = h(E()), { loading: O, FINAL_DATASET: A } = Me({
|
|
33
|
+
...me(m),
|
|
34
34
|
FINAL_CONFIG: e,
|
|
35
|
-
prepareConfig:
|
|
35
|
+
prepareConfig: E,
|
|
36
36
|
skeletonDataset: [
|
|
37
37
|
{ value: 1, intensity: 0.2, color: "#CACACA" },
|
|
38
38
|
{ value: 2, intensity: 0.3, color: "#CACACA" },
|
|
@@ -57,167 +57,167 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
|
-
}),
|
|
61
|
-
function
|
|
62
|
-
const l =
|
|
63
|
-
userConfig:
|
|
64
|
-
defaultConfig:
|
|
60
|
+
}), I = h(e.value.style.layout.width), T = h(e.value.style.layout.height), { svgRef: R } = Te({ config: e.value.style.title });
|
|
61
|
+
function E() {
|
|
62
|
+
const l = Z({
|
|
63
|
+
userConfig: m.config,
|
|
64
|
+
defaultConfig: ae
|
|
65
65
|
});
|
|
66
66
|
return l.theme ? {
|
|
67
|
-
...
|
|
68
|
-
userConfig: Ne.vue_ui_sparkhistogram[l.theme] ||
|
|
67
|
+
...Z({
|
|
68
|
+
userConfig: Ne.vue_ui_sparkhistogram[l.theme] || m.config,
|
|
69
69
|
defaultConfig: l
|
|
70
70
|
})
|
|
71
71
|
} : l;
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
X(() => {
|
|
74
|
+
U();
|
|
75
75
|
});
|
|
76
|
-
const
|
|
77
|
-
function
|
|
78
|
-
if (Ae(
|
|
76
|
+
const B = x(() => !!e.value.debug);
|
|
77
|
+
function U() {
|
|
78
|
+
if (Ae(m.dataset) ? J({
|
|
79
79
|
componentName: "VueUiSparkHistogram",
|
|
80
80
|
type: "dataset",
|
|
81
|
-
debug:
|
|
82
|
-
}) :
|
|
81
|
+
debug: B.value
|
|
82
|
+
}) : m.dataset.forEach((l, i) => {
|
|
83
83
|
we({
|
|
84
84
|
datasetObject: l,
|
|
85
85
|
requiredAttributes: ["value"]
|
|
86
86
|
}).forEach((t) => {
|
|
87
|
-
|
|
87
|
+
J({
|
|
88
88
|
componentName: "VueUiSparkHistogram",
|
|
89
89
|
type: "datasetSerieAttribute",
|
|
90
90
|
property: t,
|
|
91
|
-
index:
|
|
92
|
-
debug:
|
|
91
|
+
index: i,
|
|
92
|
+
debug: B.value
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
}), e.value.responsive) {
|
|
96
|
-
const l =
|
|
97
|
-
const { width:
|
|
98
|
-
chart:
|
|
96
|
+
const l = $e(() => {
|
|
97
|
+
const { width: i, height: t } = ze({
|
|
98
|
+
chart: F.value,
|
|
99
99
|
title: e.value.style.title.text ? V.value : null,
|
|
100
100
|
source: W.value
|
|
101
|
-
});
|
|
101
|
+
}), o = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, c = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0;
|
|
102
102
|
requestAnimationFrame(() => {
|
|
103
|
-
|
|
103
|
+
I.value = Math.max(10, i), T.value = Math.max(10, t - 12 - o - c);
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
|
-
C.value && (
|
|
106
|
+
C.value && (L.value && C.value.unobserve(L.value), C.value.disconnect()), C.value = new ResizeObserver(l), L.value = F.value.parentNode, C.value.observe(L.value);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
e.value =
|
|
109
|
+
j(() => m.config, (l) => {
|
|
110
|
+
e.value = E(), U();
|
|
111
111
|
}, { deep: !0 });
|
|
112
|
-
const v =
|
|
113
|
-
const l =
|
|
112
|
+
const v = x(() => {
|
|
113
|
+
const l = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, i = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0, t = T.value + l + i, o = I.value, c = e.value.style.layout.padding.top, $ = t - e.value.style.layout.padding.bottom, z = e.value.style.layout.padding.left, N = o - e.value.style.layout.padding.right, S = c + (t - c - e.value.style.layout.padding.bottom) / 2, D = t - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - l - i, w = o - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
114
114
|
return {
|
|
115
|
-
bottom:
|
|
116
|
-
centerY:
|
|
117
|
-
drawingHeight:
|
|
118
|
-
drawingWidth:
|
|
119
|
-
height:
|
|
120
|
-
left:
|
|
121
|
-
right:
|
|
122
|
-
top:
|
|
115
|
+
bottom: $,
|
|
116
|
+
centerY: S,
|
|
117
|
+
drawingHeight: D,
|
|
118
|
+
drawingWidth: w,
|
|
119
|
+
height: t,
|
|
120
|
+
left: z,
|
|
121
|
+
right: N,
|
|
122
|
+
top: c,
|
|
123
123
|
width: o
|
|
124
124
|
};
|
|
125
|
-
}),
|
|
126
|
-
function
|
|
127
|
-
return Math.abs(l) /
|
|
125
|
+
}), se = x(() => Math.max(...A.value.map((l) => Math.abs(l.value || 0))));
|
|
126
|
+
function oe(l) {
|
|
127
|
+
return Math.abs(l) / se.value;
|
|
128
128
|
}
|
|
129
|
-
const u =
|
|
130
|
-
const t =
|
|
129
|
+
const u = x(() => A.value.map((l, i) => {
|
|
130
|
+
const t = oe(l.value || 0), o = v.value.drawingHeight * t, c = v.value.drawingWidth / A.value.length, $ = c * (e.value.style.bars.gap / 100), z = c - $, N = v.value.centerY - o / 2, S = v.value.left + ($ / 2 + i * c), D = v.value.left + i * c, w = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), ye = l.color ? l.color : l.value >= 0 ? p(e.value.style.bars.colors.positive, w) : p(e.value.style.bars.colors.negative, w), he = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, fe = l.color ? `url(#gradient_datapoint_${i}_${_.value})` : l.value >= 0 ? `url(#gradient_positive_${i}_${_.value})` : `url(#gradient_negative_${i}_${_.value})`, ge = S + z / 2;
|
|
131
131
|
return {
|
|
132
132
|
...l,
|
|
133
133
|
color: ye,
|
|
134
134
|
gradient: fe,
|
|
135
|
-
height:
|
|
136
|
-
intensity:
|
|
135
|
+
height: o,
|
|
136
|
+
intensity: w,
|
|
137
137
|
proportion: t,
|
|
138
138
|
stroke: he,
|
|
139
139
|
textAnchor: ge,
|
|
140
|
-
trapX:
|
|
141
|
-
unitWidth:
|
|
142
|
-
width:
|
|
143
|
-
x:
|
|
144
|
-
y:
|
|
140
|
+
trapX: D,
|
|
141
|
+
unitWidth: c,
|
|
142
|
+
width: z,
|
|
143
|
+
x: S,
|
|
144
|
+
y: N
|
|
145
145
|
};
|
|
146
146
|
}));
|
|
147
|
-
function
|
|
148
|
-
return
|
|
147
|
+
function ie(l, i) {
|
|
148
|
+
return K(
|
|
149
149
|
e.value.style.labels.value.formatter,
|
|
150
150
|
l.value,
|
|
151
|
-
|
|
151
|
+
Q({
|
|
152
152
|
p: e.value.style.labels.value.prefix,
|
|
153
153
|
v: l.value,
|
|
154
154
|
s: e.value.style.labels.value.suffix,
|
|
155
155
|
r: e.value.style.labels.value.rounding
|
|
156
156
|
}),
|
|
157
|
-
{ datapoint: l, seriesIndex:
|
|
157
|
+
{ datapoint: l, seriesIndex: i }
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
const r =
|
|
161
|
-
function
|
|
162
|
-
|
|
160
|
+
const r = h(null), ue = te;
|
|
161
|
+
function ne(l, i) {
|
|
162
|
+
ue("selectDatapoint", { datapoint: l, index: i }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: i });
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
r.value =
|
|
164
|
+
function re(l, i) {
|
|
165
|
+
r.value = i, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: i });
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex:
|
|
167
|
+
function ve(l, i) {
|
|
168
|
+
r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: i });
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
svgRef:
|
|
172
|
-
unitWidth:
|
|
170
|
+
const ce = x(() => `${e.value.style.animation.speedMs}ms`), de = x(() => v.value.drawingWidth / A.value.length * 0.9), { fitText: k } = Ie({
|
|
171
|
+
svgRef: R,
|
|
172
|
+
unitWidth: de
|
|
173
173
|
});
|
|
174
|
-
return
|
|
175
|
-
await
|
|
176
|
-
}),
|
|
177
|
-
await
|
|
178
|
-
}), (l,
|
|
174
|
+
return X(async () => {
|
|
175
|
+
await G(), k(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), k(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), k(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
|
|
176
|
+
}), j([I, T, () => A.value], async () => {
|
|
177
|
+
await G(), k(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), k(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), k(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
|
|
178
|
+
}), (l, i) => (a(), s("div", {
|
|
179
179
|
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
180
180
|
ref_key: "histogramChart",
|
|
181
|
-
ref:
|
|
182
|
-
style:
|
|
183
|
-
onMouseleave:
|
|
181
|
+
ref: F,
|
|
182
|
+
style: M(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
183
|
+
onMouseleave: i[0] || (i[0] = (t) => r.value = null)
|
|
184
184
|
}, [
|
|
185
185
|
e.value.style.title.text ? (a(), s("div", {
|
|
186
186
|
key: 0,
|
|
187
187
|
ref_key: "chartTitle",
|
|
188
188
|
ref: V,
|
|
189
|
-
style:
|
|
189
|
+
style: M(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
190
190
|
}, [
|
|
191
191
|
g("div", {
|
|
192
|
-
style:
|
|
192
|
+
style: M(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
193
193
|
}, [
|
|
194
|
-
_e(
|
|
195
|
-
r.value !== null ? (a(), s("span",
|
|
194
|
+
_e(b(e.value.style.title.text) + " ", 1),
|
|
195
|
+
r.value !== null ? (a(), s("span", He, "- " + b(u.value[r.value].timeLabel || "") + " " + b(n(K)(
|
|
196
196
|
e.value.style.labels.value.formatter,
|
|
197
197
|
u.value[r.value].value,
|
|
198
|
-
n(
|
|
198
|
+
n(Q)({
|
|
199
199
|
p: e.value.style.labels.value.prefix,
|
|
200
200
|
v: u.value[r.value].value,
|
|
201
201
|
s: e.value.style.labels.value.suffix,
|
|
202
202
|
r: e.value.style.labels.value.rounding
|
|
203
203
|
}),
|
|
204
204
|
{ datapoint: u.value[r.value], seriesIndex: r.value }
|
|
205
|
-
)), 1)) :
|
|
206
|
-
![void 0, null].includes(r.value) && ![null, void 0].includes(u.value[r.value].valueLabel) ? (a(), s("span",
|
|
205
|
+
)), 1)) : d("", !0),
|
|
206
|
+
![void 0, null].includes(r.value) && ![null, void 0].includes(u.value[r.value].valueLabel) ? (a(), s("span", We, b(` (${u.value[r.value].valueLabel || 0})`), 1)) : d("", !0)
|
|
207
207
|
], 4),
|
|
208
208
|
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
209
209
|
key: 0,
|
|
210
|
-
style:
|
|
211
|
-
},
|
|
212
|
-
], 4)) :
|
|
210
|
+
style: M(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
211
|
+
}, b(e.value.style.title.subtitle.text), 5)) : d("", !0)
|
|
212
|
+
], 4)) : d("", !0),
|
|
213
213
|
(a(), s("svg", {
|
|
214
214
|
ref_key: "svgRef",
|
|
215
|
-
ref:
|
|
216
|
-
xmlns: n(
|
|
215
|
+
ref: R,
|
|
216
|
+
xmlns: n(Le),
|
|
217
217
|
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
218
218
|
style: { overflow: "visible" }
|
|
219
219
|
}, [
|
|
220
|
-
|
|
220
|
+
ke(n(le)),
|
|
221
221
|
l.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
222
222
|
key: 0,
|
|
223
223
|
x: 0,
|
|
@@ -228,11 +228,11 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
228
228
|
pointerEvents: "none"
|
|
229
229
|
}
|
|
230
230
|
}, [
|
|
231
|
-
|
|
232
|
-
], 8, Oe)) :
|
|
231
|
+
Y(l.$slots, "chart-background", {}, void 0, !0)
|
|
232
|
+
], 8, Oe)) : d("", !0),
|
|
233
233
|
g("defs", null, [
|
|
234
|
-
(a(!0), s(
|
|
235
|
-
id: `gradient_positive_${
|
|
234
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("radialGradient", {
|
|
235
|
+
id: `gradient_positive_${o}_${_.value}`,
|
|
236
236
|
cy: "50%",
|
|
237
237
|
cx: "50%",
|
|
238
238
|
r: "50%",
|
|
@@ -241,15 +241,15 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
241
241
|
}, [
|
|
242
242
|
g("stop", {
|
|
243
243
|
offset: "0%",
|
|
244
|
-
"stop-color": n(
|
|
244
|
+
"stop-color": n(p)(n(H)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
245
245
|
}, null, 8, Be),
|
|
246
246
|
g("stop", {
|
|
247
247
|
offset: "100%",
|
|
248
|
-
"stop-color": n(
|
|
248
|
+
"stop-color": n(p)(e.value.style.bars.colors.positive, t.intensity)
|
|
249
249
|
}, null, 8, Ue)
|
|
250
250
|
], 8, Re))), 256)),
|
|
251
|
-
(a(!0), s(
|
|
252
|
-
id: `gradient_negative_${
|
|
251
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("radialGradient", {
|
|
252
|
+
id: `gradient_negative_${o}_${_.value}`,
|
|
253
253
|
cy: "50%",
|
|
254
254
|
cx: "50%",
|
|
255
255
|
r: "50%",
|
|
@@ -258,15 +258,15 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
258
258
|
}, [
|
|
259
259
|
g("stop", {
|
|
260
260
|
offset: "0%",
|
|
261
|
-
"stop-color": n(
|
|
261
|
+
"stop-color": n(p)(n(H)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
262
262
|
}, null, 8, je),
|
|
263
263
|
g("stop", {
|
|
264
264
|
offset: "100%",
|
|
265
|
-
"stop-color": n(
|
|
265
|
+
"stop-color": n(p)(e.value.style.bars.colors.negative, t.intensity)
|
|
266
266
|
}, null, 8, Ge)
|
|
267
267
|
], 8, Xe))), 256)),
|
|
268
|
-
(a(!0), s(
|
|
269
|
-
id: `gradient_datapoint_${
|
|
268
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("radialGradient", {
|
|
269
|
+
id: `gradient_datapoint_${o}_${_.value}`,
|
|
270
270
|
cy: "50%",
|
|
271
271
|
cx: "50%",
|
|
272
272
|
r: "50%",
|
|
@@ -275,16 +275,16 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
275
275
|
}, [
|
|
276
276
|
g("stop", {
|
|
277
277
|
offset: "0%",
|
|
278
|
-
"stop-color": n(
|
|
278
|
+
"stop-color": n(p)(n(H)(t.color, 0.05), t.intensity)
|
|
279
279
|
}, null, 8, Ye),
|
|
280
280
|
g("stop", {
|
|
281
281
|
offset: "100%",
|
|
282
|
-
"stop-color": n(
|
|
282
|
+
"stop-color": n(p)(t.color, t.intensity)
|
|
283
283
|
}, null, 8, Pe)
|
|
284
284
|
], 8, qe))), 256))
|
|
285
285
|
]),
|
|
286
|
-
(a(!0), s(
|
|
287
|
-
r.value !== null && r.value ===
|
|
286
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
287
|
+
r.value !== null && r.value === o ? (a(), s("rect", {
|
|
288
288
|
key: 0,
|
|
289
289
|
height: v.value.height,
|
|
290
290
|
width: t.unitWidth,
|
|
@@ -295,10 +295,10 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
295
295
|
"stroke-width": e.value.style.selector.strokeWidth,
|
|
296
296
|
rx: e.value.style.selector.borderRadius,
|
|
297
297
|
"stroke-dasharray": e.value.style.selector.strokeDasharray
|
|
298
|
-
}, null, 8, Je)) :
|
|
298
|
+
}, null, 8, Je)) : d("", !0)
|
|
299
299
|
]))), 256)),
|
|
300
300
|
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", Ke, [
|
|
301
|
-
(a(!0), s(
|
|
301
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("rect", {
|
|
302
302
|
x: t.x,
|
|
303
303
|
y: t.y,
|
|
304
304
|
height: t.height,
|
|
@@ -307,29 +307,32 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
307
307
|
stroke: t.stroke,
|
|
308
308
|
"stroke-width": e.value.style.bars.strokeWidth,
|
|
309
309
|
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
310
|
-
class:
|
|
310
|
+
class: P({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
311
311
|
}, null, 10, Qe))), 256))
|
|
312
312
|
])) : (a(), s("g", Ze, [
|
|
313
|
-
(a(!0), s(
|
|
313
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), q(Ee, {
|
|
314
314
|
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
315
315
|
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
316
316
|
shape: e.value.style.bars.shape,
|
|
317
317
|
radius: Math.min(t.height * 0.4, t.width * 0.4),
|
|
318
|
-
class:
|
|
318
|
+
class: P({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
319
319
|
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
320
320
|
])),
|
|
321
|
-
n(
|
|
322
|
-
(a(!0), s(
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
321
|
+
n(O) ? d("", !0) : (a(), s(y, { key: 3 }, [
|
|
322
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
323
|
+
e.value.style.labels.value.show ? (a(), s("text", {
|
|
324
|
+
key: 0,
|
|
325
|
+
class: "vue-ui-sparkhistogram-top-label",
|
|
326
|
+
"text-anchor": "middle",
|
|
327
|
+
x: t.textAnchor,
|
|
328
|
+
y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
|
|
329
|
+
"font-size": e.value.style.labels.value.fontSize,
|
|
330
|
+
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
331
|
+
fill: e.value.style.labels.value.color
|
|
332
|
+
}, b(ie(t, o)), 9, et)) : d("", !0)
|
|
333
|
+
]))), 256)),
|
|
334
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
335
|
+
t.valueLabel && e.value.style.labels.valueLabel.show ? (a(), s("text", {
|
|
333
336
|
key: 0,
|
|
334
337
|
class: "vue-ui-sparkhistogram-bottom-label",
|
|
335
338
|
x: t.textAnchor,
|
|
@@ -337,45 +340,45 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
337
340
|
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
338
341
|
"text-anchor": "middle",
|
|
339
342
|
fill: e.value.style.labels.valueLabel.color
|
|
340
|
-
},
|
|
343
|
+
}, b(t.valueLabel), 9, tt)) : d("", !0)
|
|
341
344
|
]))), 256)),
|
|
342
|
-
(a(!0), s(
|
|
343
|
-
t.timeLabel ? (a(), s("text", {
|
|
345
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
346
|
+
t.timeLabel && e.value.style.labels.timeLabel.show ? (a(), s("text", {
|
|
344
347
|
key: 0,
|
|
345
348
|
class: "vue-ui-sparkhistogram-time-label",
|
|
346
349
|
x: t.textAnchor,
|
|
347
|
-
y: v.value.height
|
|
350
|
+
y: v.value.height,
|
|
348
351
|
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
349
352
|
fill: e.value.style.labels.timeLabel.color,
|
|
350
353
|
"text-anchor": "middle"
|
|
351
|
-
},
|
|
354
|
+
}, b(t.timeLabel), 9, lt)) : d("", !0)
|
|
352
355
|
]))), 256))
|
|
353
356
|
], 64)),
|
|
354
|
-
(a(!0), s(
|
|
357
|
+
(a(!0), s(y, null, f(u.value, (t, o) => (a(), s("g", null, [
|
|
355
358
|
g("rect", {
|
|
356
359
|
height: v.value.height,
|
|
357
360
|
width: t.unitWidth,
|
|
358
361
|
fill: "transparent",
|
|
359
362
|
x: t.trapX,
|
|
360
363
|
y: 0,
|
|
361
|
-
onMouseover: (
|
|
362
|
-
onMouseleave: (
|
|
363
|
-
onClick: () =>
|
|
364
|
+
onMouseover: (c) => re(t, o),
|
|
365
|
+
onMouseleave: (c) => ve(t, o),
|
|
366
|
+
onClick: () => ne(t, o)
|
|
364
367
|
}, null, 40, at)
|
|
365
368
|
]))), 256))
|
|
366
|
-
], 8,
|
|
369
|
+
], 8, Ve)),
|
|
367
370
|
l.$slots.source ? (a(), s("div", {
|
|
368
371
|
key: 1,
|
|
369
372
|
ref_key: "source",
|
|
370
373
|
ref: W,
|
|
371
374
|
dir: "auto"
|
|
372
375
|
}, [
|
|
373
|
-
|
|
374
|
-
], 512)) :
|
|
375
|
-
n(
|
|
376
|
+
Y(l.$slots, "source", {}, void 0, !0)
|
|
377
|
+
], 512)) : d("", !0),
|
|
378
|
+
n(O) ? (a(), q(Fe, { key: 2 })) : d("", !0)
|
|
376
379
|
], 36));
|
|
377
380
|
}
|
|
378
|
-
}, ft = /* @__PURE__ */ De(st, [["__scopeId", "data-v-
|
|
381
|
+
}, ft = /* @__PURE__ */ De(st, [["__scopeId", "data-v-7f6b6b54"]]);
|
|
379
382
|
export {
|
|
380
383
|
ft as default
|
|
381
384
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as n, normalizeStyle as D, renderSlot as S, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as T, unref as s, createVNode as Fe, Fragment as Q, renderList as ee, withCtx as Ee, createTextVNode as Oe, nextTick as Be } from "vue";
|
|
2
2
|
import { c as Ge, t as je, O as be, af as te, o as ke, f as xe, g as Ue, i as W, L as Xe, ag as Ye, X as qe, s as P, z as _e, B as Ze, r as we, a as ae, d as le, ah as Ke } from "./lib-C_mNZmhD.js";
|
|
3
|
-
import { u as He, a as Le } from "./useNestedProp-
|
|
3
|
+
import { u as He, a as Le } from "./useNestedProp-DjGXw6S9.js";
|
|
4
4
|
import { t as Je, u as Qe } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as et } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
6
|
import { u as tt, B as at } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -41,7 +41,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
41
41
|
},
|
|
42
42
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
43
43
|
setup($, { emit: Ae }) {
|
|
44
|
-
const $e = he(() => import("./PackageVersion-
|
|
44
|
+
const $e = he(() => import("./PackageVersion-DQvyATVa.js")), Ne = he(() => import("./SparkTooltip-BEewz-_Q.js")), { vue_ui_sparkline: Me } = He(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(Ge()), R = y(null), oe = y(null), se = y(null), e = y(O());
|
|
45
45
|
function Ce(t) {
|
|
46
46
|
return Ke(t).map((a) => ({ period: "-", value: a }));
|
|
47
47
|
}
|