vue-data-ui 2.3.89 → 2.3.91
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-6DWnAEHt.js → Arrow-CHTslrAF.js} +1 -1
- package/dist/{Arrow-CW5gDSmt.cjs → Arrow-DpuaFuue.cjs} +1 -1
- package/dist/{BaseIcon-Dj8EbAXm.js → BaseIcon-DfaCNBgc.js} +1 -1
- package/dist/{BaseIcon-B_MrASni.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
- package/dist/{DataTable-BmYcdJ1w.js → DataTable-BKc3r3k3.js} +2 -2
- package/dist/{DataTable-DAwK5x3h.cjs → DataTable-CnkdsvIo.cjs} +1 -1
- package/dist/{Legend-DhQ-a1RH.cjs → Legend-BQJV6Xk4.cjs} +1 -1
- package/dist/{Legend-BRG8ddDy.js → Legend-WNL92WSx.js} +1 -1
- package/dist/PackageVersion-D9PU8glB.js +10 -0
- package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
- package/dist/{Shape-D7jva0XA.cjs → Shape-CgW0V2Og.cjs} +1 -1
- package/dist/{Shape-BcL3EDZ5.js → Shape-DPvoEBm9.js} +1 -1
- package/dist/{Slicer-DI1kgq9D.js → Slicer-DE9nFM_c.js} +2 -2
- package/dist/{Slicer-DV29nclP.cjs → Slicer-Dma3nlzi.cjs} +1 -1
- package/dist/{Title-DYwo_Q5b.cjs → Title-Bg_BK11V.cjs} +1 -1
- package/dist/{Title-fAvrqioZ.js → Title-CECK1w9L.js} +1 -1
- package/dist/{Tooltip-TZYYFvPe.js → Tooltip-Ci3AprCm.js} +1 -1
- package/dist/{Tooltip-03RvVGln.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
- package/dist/{index-BKTciLz4.cjs → index-BhH89oF0.cjs} +1 -1
- package/dist/{index-Ca4RHJ4t.js → index-mBy4elhB.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-vP7uimPz.js → useNestedProp-BrIRtQj1.js} +1 -1
- package/dist/{useNestedProp-BFnXnY0k.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
- package/dist/{usePrinter-CxYg-Dw-.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
- package/dist/{usePrinter-5fwXghqP.js → usePrinter-Ck-yukK2.js} +1 -1
- package/dist/{vue-data-ui-BaLkNH7M.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
- package/dist/{vue-data-ui-4VG00HFR.js → vue-data-ui-BuL-2aYA.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DPJWcxqV.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
- package/dist/{vue-ui-accordion-SXHdW20_.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
- package/dist/{vue-ui-accordion-vYoYjedX.js → vue-ui-accordion-dyF20BlD.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BEC4SHLl.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
- package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
- package/dist/{vue-ui-annotator-B1NZRuJJ.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
- package/dist/{vue-ui-annotator-DFpv61wn.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
- package/dist/{vue-ui-candlestick-AEKT8X3p.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
- package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
- package/dist/{vue-ui-carousel-table-DhzVxOvp.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
- package/dist/{vue-ui-carousel-table-DCk2p-1k.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
- package/dist/{vue-ui-chestnut-qqcIpMGB.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
- package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
- package/dist/{vue-ui-cursor-CgSghVjL.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
- package/dist/{vue-ui-cursor-CvJgJk1M.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CtJdVmtu.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CYzkic0X.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
- package/dist/{vue-ui-digits-C0dMG-hR.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
- package/dist/{vue-ui-digits-BO1hSjoq.js → vue-ui-digits-DZJI0YuX.js} +2 -2
- package/dist/{vue-ui-donut-DP-yxiw3.js → vue-ui-donut-CBG9ECp8.js} +118 -116
- package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-C-yDyglF.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
- package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
- package/dist/{vue-ui-dumbbell-D2SQ4cKV.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
- package/dist/{vue-ui-flow-D_E9V2A1.js → vue-ui-flow-CXqGztWj.js} +65 -63
- package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
- package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
- package/dist/{vue-ui-galaxy-DqE2UiA3.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
- package/dist/{vue-ui-gauge-CFYXDw2p.js → vue-ui-gauge-BEludqYn.js} +56 -54
- package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
- package/dist/{vue-ui-gizmo-BWztIJ3j.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
- package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
- package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
- package/dist/{vue-ui-heatmap-E1MlhSCs.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
- package/dist/{vue-ui-kpi-BWDPF-9X.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
- package/dist/{vue-ui-kpi-DeP0XmP7.js → vue-ui-kpi-zr721ux9.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bal12IrX.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
- package/dist/{vue-ui-mini-loader-D5e8uW_d.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
- package/dist/{vue-ui-molecule-DHrHeQgF.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
- package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
- package/dist/{vue-ui-mood-radar-dJaJotNf.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
- package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
- package/dist/{vue-ui-nested-donuts--K9ygdH3.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
- package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
- package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
- package/dist/{vue-ui-onion-Bm1inM56.js → vue-ui-onion-CmUXelhy.js} +82 -80
- package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-9PSGD-LR.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
- package/dist/{vue-ui-quadrant-iGQbx93I.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
- package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
- package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DeEQcx6A.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
- package/dist/{vue-ui-radar-DfnhsNQV.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
- package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
- package/dist/{vue-ui-rating-D0rgVdkT.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
- package/dist/{vue-ui-rating-CCesFD6e.js → vue-ui-rating-DuRLpMwk.js} +2 -2
- package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
- package/dist/{vue-ui-relation-circle-D2GXm_Fk.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
- package/dist/{vue-ui-rings-B7_-G3JM.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
- package/dist/{vue-ui-rings-CScmcQ1n.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
- package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
- package/dist/{vue-ui-scatter-DdhiNjLc.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
- package/dist/{vue-ui-screenshot-BrhjnTwn.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Cpy2qbf1.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
- package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
- package/dist/{vue-ui-skeleton-D7aLznpP.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
- package/dist/{vue-ui-smiley-Cj0yi7_H.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
- package/dist/{vue-ui-smiley-vcpYARLj.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
- package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
- package/dist/{vue-ui-spark-trend-CFJSCQnf.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
- package/dist/{vue-ui-sparkbar-CgRdDfk6.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
- package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-CCPMNge0.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
- package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-D5z2Wtpk.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
- package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
- package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
- package/dist/{vue-ui-sparkline-KYN0oKt1.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
- package/dist/{vue-ui-sparkstackbar-7lurD9-4.js → vue-ui-sparkstackbar-BS9I8en7.js} +102 -87
- package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
- package/dist/{vue-ui-stackbar-CsVmAvl3.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
- package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
- package/dist/{vue-ui-strip-plot-B63AgKts.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
- package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
- package/dist/{vue-ui-table-hPqdMR-m.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
- package/dist/{vue-ui-table-G5O8K-F_.js → vue-ui-table-Dtfv71zG.js} +1 -1
- package/dist/{vue-ui-table-heatmap-t9Ngijvp.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BhVuTdSS.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DtjJrGve.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BX4en1c-.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
- package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
- package/dist/{vue-ui-thermometer-BWGyDQ7_.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
- package/dist/{vue-ui-timer-8AlVLAJi.js → vue-ui-timer-2PRDq1w6.js} +62 -60
- package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
- package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DYIHGkBU.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
- package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
- package/dist/{vue-ui-treemap-mmvdTHiX.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
- package/dist/{vue-ui-vertical-bar-DAKHNRoR.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
- package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
- package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
- package/dist/{vue-ui-waffle-B-A4NYNd.js → vue-ui-waffle-wikAjwZY.js} +72 -70
- package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
- package/dist/{vue-ui-wheel-DN9WvA6Z.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
- package/dist/{vue-ui-word-cloud-BWTyaGAT.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
- package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
- package/dist/{vue-ui-xy-Dzp4qCjk.js → vue-ui-xy-CUjllUSv.js} +507 -504
- package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CAcTkk_r.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-9NPbm7dE.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-rOT9iPsm.cjs +0 -19
- package/dist/vue-ui-age-pyramid-HElID9Ax.cjs +0 -1
- package/dist/vue-ui-candlestick-p1s0Av21.cjs +0 -2
- package/dist/vue-ui-chestnut-oFfB3fBF.cjs +0 -6
- package/dist/vue-ui-donut-Dnnoj71c.cjs +0 -1
- package/dist/vue-ui-donut-evolution-vBUH5VVx.cjs +0 -1
- package/dist/vue-ui-dumbbell-BUA_uSse.cjs +0 -9
- package/dist/vue-ui-flow-B-AFlw-n.cjs +0 -1
- package/dist/vue-ui-galaxy-CbL5nONj.cjs +0 -1
- package/dist/vue-ui-gauge-BUV_hQND.cjs +0 -1
- package/dist/vue-ui-gizmo-B-LxuvDh.cjs +0 -1
- package/dist/vue-ui-heatmap-DW5StHKM.cjs +0 -1
- package/dist/vue-ui-molecule-DHBId4h4.cjs +0 -1
- package/dist/vue-ui-mood-radar-DSXB9l99.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CEX2cvop.cjs +0 -17
- package/dist/vue-ui-onion-Iekdjs8b.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs +0 -8
- package/dist/vue-ui-quadrant-CgJeo2zZ.cjs +0 -1
- package/dist/vue-ui-quick-chart-Du8lDPmh.cjs +0 -15
- package/dist/vue-ui-radar-BYk9DWnM.cjs +0 -1
- package/dist/vue-ui-relation-circle-8eoBav4O.cjs +0 -1
- package/dist/vue-ui-scatter-BnBI8qdt.cjs +0 -1
- package/dist/vue-ui-skeleton-pDeQ3NcD.cjs +0 -41
- package/dist/vue-ui-spark-trend-BW8k0jDd.cjs +0 -1
- package/dist/vue-ui-sparkbar-BbJHfAQj.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BESRB8_4.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BYnSfLdb.cjs +0 -1
- package/dist/vue-ui-sparkline-D5WUy4p5.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +0 -1
- package/dist/vue-ui-stackbar-Ch-fmE9l.cjs +0 -6
- package/dist/vue-ui-strip-plot-BLRl-tF6.cjs +0 -1
- package/dist/vue-ui-thermometer-B07RI9fZ.cjs +0 -1
- package/dist/vue-ui-timer-CXrENAVg.cjs +0 -64
- package/dist/vue-ui-tiremarks-C43c4_IR.cjs +0 -1
- package/dist/vue-ui-treemap-BN90ISQv.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BRDO_Rsu.cjs +0 -4
- package/dist/vue-ui-waffle-BN_yZEtJ.cjs +0 -1
- package/dist/vue-ui-wheel-50_zeiIW.cjs +0 -1
- package/dist/vue-ui-word-cloud-BVoFIb_q.cjs +0 -1
- package/dist/vue-ui-xy-CJHHesUD.cjs +0 -3
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { computed as v, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as q } from "./useNestedProp-
|
|
4
|
-
import
|
|
5
|
-
import { t as
|
|
6
|
-
import { _ as
|
|
7
|
-
|
|
1
|
+
import { computed as v, ref as k, watch as E, onMounted as ue, openBlock as n, createElementBlock as i, normalizeStyle as N, renderSlot as O, normalizeProps as se, guardReactiveProps as oe, createElementVNode as f, toDisplayString as j, createCommentVNode as y, unref as c, createVNode as ne, Fragment as W, renderList as P, createBlock as re } from "vue";
|
|
2
|
+
import { u as ie, c as de, t as ve, o as ce, e as R, g as he, w as C, V as ye, W as fe, X as pe, s as I, Q as U, i as X, f as Z } from "./index-mBy4elhB.js";
|
|
3
|
+
import { u as q } from "./useNestedProp-BrIRtQj1.js";
|
|
4
|
+
import ge from "./vue-ui-skeleton-DDhwPZd_.js";
|
|
5
|
+
import { t as me, u as ke } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
+
import { _ as _e } from "./PackageVersion-D9PU8glB.js";
|
|
7
|
+
import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const xe = ["id"], we = ["xmlns", "viewBox"], Le = ["id"], $e = ["stop-color"], Ne = ["stop-color"], Ce = ["id"], Ie = ["stop-color"], Me = ["stop-color"], Ve = ["id"], ze = ["stop-color"], Se = ["stop-color"], We = { key: 0 }, Pe = ["d", "fill"], Ae = ["d", "fill"], De = ["d", "stroke", "stroke-width"], Fe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ge = ["x", "y", "width", "height", "fill", "rx"], Te = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Be = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ee = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Oe = ["x", "y", "font-size", "font-weight", "fill"], je = ["x", "y", "height", "width", "onMouseenter", "onClick"], Re = {
|
|
8
9
|
__name: "vue-ui-sparkline",
|
|
9
10
|
props: {
|
|
10
11
|
config: {
|
|
@@ -29,8 +30,8 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
32
|
-
setup(
|
|
33
|
-
const r =
|
|
33
|
+
setup(b, { emit: M }) {
|
|
34
|
+
const r = b, { vue_ui_sparkline: H } = ie(), L = v(() => !!r.dataset && r.dataset.length), p = k(de()), V = k(null), A = k(null), e = v({
|
|
34
35
|
get: () => D(),
|
|
35
36
|
set: (t) => t
|
|
36
37
|
});
|
|
@@ -41,7 +42,7 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
41
42
|
});
|
|
42
43
|
return t.theme ? {
|
|
43
44
|
...q({
|
|
44
|
-
userConfig:
|
|
45
|
+
userConfig: ve.vue_ui_sparkline[t.theme] || r.config,
|
|
45
46
|
defaultConfig: t
|
|
46
47
|
})
|
|
47
48
|
} : t;
|
|
@@ -49,12 +50,12 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
49
50
|
E(() => r.config, (t) => {
|
|
50
51
|
e.value = D(), G(), l.value.chartWidth = e.value.style.chartWidth;
|
|
51
52
|
}, { deep: !0 }), E(() => r.dataset, (t) => {
|
|
52
|
-
|
|
53
|
+
_.value = r.dataset.map((u) => ({
|
|
53
54
|
...u,
|
|
54
55
|
value: [void 0].includes(u.value) ? null : u.value
|
|
55
56
|
}));
|
|
56
57
|
}, { deep: !0 });
|
|
57
|
-
const
|
|
58
|
+
const _ = k(Q());
|
|
58
59
|
function Q() {
|
|
59
60
|
return r.dataset.map((t) => e.value.style.animation.show ? {
|
|
60
61
|
...t,
|
|
@@ -64,26 +65,26 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
64
65
|
value: [void 0].includes(t.value) ? null : t.value
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
const F =
|
|
68
|
+
const F = k(null);
|
|
68
69
|
ue(() => {
|
|
69
70
|
if (G(), e.value.style.animation.show && r.dataset.length > 1) {
|
|
70
71
|
let a = function() {
|
|
71
|
-
u < r.dataset.length ? (
|
|
72
|
+
u < r.dataset.length ? (_.value.push(r.dataset[u]), setTimeout(() => {
|
|
72
73
|
requestAnimationFrame(a);
|
|
73
|
-
}, t)) :
|
|
74
|
+
}, t)) : _.value = r.dataset, u += 1;
|
|
74
75
|
};
|
|
75
|
-
|
|
76
|
+
_.value = [];
|
|
76
77
|
const t = e.value.style.animation.animationFrames / r.dataset.length;
|
|
77
78
|
let u = 0;
|
|
78
79
|
a();
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
82
|
function G() {
|
|
82
|
-
if (
|
|
83
|
+
if (ce(r.dataset) ? R({
|
|
83
84
|
componentName: "VueUiSparkline",
|
|
84
85
|
type: "dataset"
|
|
85
86
|
}) : r.dataset.forEach((t, u) => {
|
|
86
|
-
|
|
87
|
+
he({
|
|
87
88
|
datasetObject: t,
|
|
88
89
|
requiredAttributes: ["period", "value"]
|
|
89
90
|
}).forEach((a) => {
|
|
@@ -95,7 +96,7 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
95
96
|
});
|
|
96
97
|
});
|
|
97
98
|
}), e.value.responsive) {
|
|
98
|
-
const t =
|
|
99
|
+
const t = me(() => {
|
|
99
100
|
const { width: u, height: a } = ke({
|
|
100
101
|
chart: V.value,
|
|
101
102
|
title: e.value.style.title.show && r.showInfo ? A.value : null
|
|
@@ -105,12 +106,12 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
105
106
|
F.value = new ResizeObserver(t), F.value.observe(V.value.parentNode);
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
|
-
const l =
|
|
109
|
+
const l = k({
|
|
109
110
|
height: 80,
|
|
110
111
|
width: 500,
|
|
111
112
|
chartWidth: e.value.style.chartWidth,
|
|
112
113
|
padding: 30
|
|
113
|
-
}), Y =
|
|
114
|
+
}), Y = k(6), s = v(() => ({
|
|
114
115
|
top: 12,
|
|
115
116
|
left: 0,
|
|
116
117
|
right: l.value.width,
|
|
@@ -118,14 +119,14 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
118
119
|
start: r.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? l.value.width - l.value.chartWidth : l.value.padding,
|
|
119
120
|
width: r.showInfo && e.value.style.dataLabel.show ? l.value.chartWidth : l.value.width - l.value.padding,
|
|
120
121
|
height: l.value.height - 12
|
|
121
|
-
})), z = v(() => Math.min(...
|
|
122
|
+
})), z = v(() => Math.min(..._.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), J = v(() => Math.max(..._.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0))), x = v(() => {
|
|
122
123
|
const t = z.value >= 0 ? 0 : z.value;
|
|
123
124
|
return Math.abs(t);
|
|
124
125
|
}), K = v(() => J.value + x.value + Y.value), $ = v(() => s.value.bottom - s.value.height * S(x.value));
|
|
125
126
|
function S(t) {
|
|
126
127
|
return t / K.value;
|
|
127
128
|
}
|
|
128
|
-
const g = v(() => r.dataset.length - 1), o = v(() =>
|
|
129
|
+
const g = v(() => r.dataset.length - 1), o = v(() => _.value.map((t, u) => {
|
|
129
130
|
const a = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0;
|
|
130
131
|
return {
|
|
131
132
|
absoluteValue: a,
|
|
@@ -143,22 +144,22 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
143
144
|
return o.value.forEach((d) => {
|
|
144
145
|
a.push(`${d.x},${d.y} `);
|
|
145
146
|
}), [t.x, t.y, ...a, u.x, u.y].toString();
|
|
146
|
-
}), h =
|
|
147
|
+
}), h = k(void 0);
|
|
147
148
|
function te(t, u) {
|
|
148
149
|
h.value = t, M("hoverIndex", { index: u });
|
|
149
150
|
}
|
|
150
151
|
function ae() {
|
|
151
152
|
h.value = void 0, M("hoverIndex", { index: void 0 });
|
|
152
153
|
}
|
|
153
|
-
const
|
|
154
|
+
const m = v(() => {
|
|
154
155
|
if (L.value) {
|
|
155
156
|
const t = o.value.map((a) => a.absoluteValue), u = t.reduce((a, d) => a + d, 0);
|
|
156
157
|
return {
|
|
157
158
|
latest: o.value[o.value.length - 1].absoluteValue,
|
|
158
159
|
sum: u,
|
|
159
160
|
average: u / o.value.length,
|
|
160
|
-
median:
|
|
161
|
-
trend:
|
|
161
|
+
median: ye(t),
|
|
162
|
+
trend: fe(o.value.map(({ x: a, y: d, absoluteValue: B }) => ({
|
|
162
163
|
x: a,
|
|
163
164
|
y: d,
|
|
164
165
|
value: B
|
|
@@ -172,7 +173,7 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
172
173
|
median: null,
|
|
173
174
|
trend: null
|
|
174
175
|
};
|
|
175
|
-
}), T = v(() => L.value ? e.value.style.dataLabel.valueType === "latest" ?
|
|
176
|
+
}), T = v(() => L.value ? e.value.style.dataLabel.valueType === "latest" ? m.value.latest : e.value.style.dataLabel.valueType === "sum" ? m.value.sum : e.value.style.dataLabel.valueType === "average" ? m.value.average : 0 : 0), w = v(() => e.value.type && e.value.type === "bar");
|
|
176
177
|
function le(t, u) {
|
|
177
178
|
M("selectDatapoint", { datapoint: t, index: u });
|
|
178
179
|
}
|
|
@@ -185,13 +186,13 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
185
186
|
}, [
|
|
186
187
|
O(t.$slots, "before", se(oe({
|
|
187
188
|
selected: h.value,
|
|
188
|
-
latest:
|
|
189
|
-
sum:
|
|
190
|
-
average:
|
|
191
|
-
median:
|
|
192
|
-
trend:
|
|
189
|
+
latest: m.value.latest,
|
|
190
|
+
sum: m.value.sum,
|
|
191
|
+
average: m.value.average,
|
|
192
|
+
median: m.value.median,
|
|
193
|
+
trend: m.value.trend
|
|
193
194
|
})), void 0, !0),
|
|
194
|
-
e.value.style.title.show &&
|
|
195
|
+
e.value.style.title.show && b.showInfo ? (n(), i("div", {
|
|
195
196
|
key: 0,
|
|
196
197
|
ref_key: "chartTitle",
|
|
197
198
|
ref: A,
|
|
@@ -204,10 +205,11 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
204
205
|
], 4)) : y("", !0),
|
|
205
206
|
L.value ? (n(), i("svg", {
|
|
206
207
|
key: 1,
|
|
207
|
-
xmlns: c(
|
|
208
|
+
xmlns: c(pe),
|
|
208
209
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
209
210
|
style: N(`background:${e.value.style.backgroundColor};overflow:visible`)
|
|
210
211
|
}, [
|
|
212
|
+
ne(_e),
|
|
211
213
|
f("defs", null, [
|
|
212
214
|
f("linearGradient", {
|
|
213
215
|
x1: "0%",
|
|
@@ -219,12 +221,12 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
219
221
|
f("stop", {
|
|
220
222
|
offset: "0%",
|
|
221
223
|
"stop-color": c(I)(c(C)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
222
|
-
}, null, 8,
|
|
224
|
+
}, null, 8, $e),
|
|
223
225
|
f("stop", {
|
|
224
226
|
offset: "100%",
|
|
225
227
|
"stop-color": c(I)(e.value.style.area.color, e.value.style.area.opacity)
|
|
226
|
-
}, null, 8,
|
|
227
|
-
], 8,
|
|
228
|
+
}, null, 8, Ne)
|
|
229
|
+
], 8, Le),
|
|
228
230
|
f("linearGradient", {
|
|
229
231
|
x2: "0%",
|
|
230
232
|
y2: "100%",
|
|
@@ -233,12 +235,12 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
233
235
|
f("stop", {
|
|
234
236
|
offset: "0%",
|
|
235
237
|
"stop-color": e.value.style.bar.color
|
|
236
|
-
}, null, 8,
|
|
238
|
+
}, null, 8, Ie),
|
|
237
239
|
f("stop", {
|
|
238
240
|
offset: "100%",
|
|
239
241
|
"stop-color": c(C)(e.value.style.bar.color, 0.05)
|
|
240
|
-
}, null, 8,
|
|
241
|
-
], 8,
|
|
242
|
+
}, null, 8, Me)
|
|
243
|
+
], 8, Ce),
|
|
242
244
|
f("linearGradient", {
|
|
243
245
|
x2: "0%",
|
|
244
246
|
y2: "100%",
|
|
@@ -247,23 +249,23 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
247
249
|
f("stop", {
|
|
248
250
|
offset: "0%",
|
|
249
251
|
"stop-color": c(C)(e.value.style.bar.color, 0.05)
|
|
250
|
-
}, null, 8,
|
|
252
|
+
}, null, 8, ze),
|
|
251
253
|
f("stop", {
|
|
252
254
|
offset: "100%",
|
|
253
255
|
"stop-color": e.value.style.bar.color
|
|
254
|
-
}, null, 8,
|
|
255
|
-
], 8,
|
|
256
|
+
}, null, 8, Se)
|
|
257
|
+
], 8, Ve)
|
|
256
258
|
]),
|
|
257
|
-
e.value.style.area.show && !w.value && o.value[0] ? (n(), i("g",
|
|
259
|
+
e.value.style.area.show && !w.value && o.value[0] ? (n(), i("g", We, [
|
|
258
260
|
e.value.style.line.smooth ? (n(), i("path", {
|
|
259
261
|
key: 0,
|
|
260
262
|
d: `M ${o.value[0].x},${s.value.bottom} ${c(U)(o.value)} L ${o.value.at(-1).x},${s.value.bottom} Z`,
|
|
261
263
|
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(I)(e.value.style.area.color, e.value.style.area.opacity)
|
|
262
|
-
}, null, 8,
|
|
264
|
+
}, null, 8, Pe)) : (n(), i("path", {
|
|
263
265
|
key: 1,
|
|
264
266
|
d: `M${ee.value}Z`,
|
|
265
267
|
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${p.value})` : c(I)(e.value.style.area.color, e.value.style.area.opacity)
|
|
266
|
-
}, null, 8,
|
|
268
|
+
}, null, 8, Ae))
|
|
267
269
|
])) : y("", !0),
|
|
268
270
|
e.value.style.line.smooth && !w.value ? (n(), i("path", {
|
|
269
271
|
key: 1,
|
|
@@ -272,7 +274,7 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
272
274
|
fill: "none",
|
|
273
275
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
274
276
|
"stroke-linecap": "round"
|
|
275
|
-
}, null, 8,
|
|
277
|
+
}, null, 8, De)) : y("", !0),
|
|
276
278
|
(n(!0), i(W, null, P(o.value, (a, d) => (n(), i("g", null, [
|
|
277
279
|
d < o.value.length - 1 && !e.value.style.line.smooth && !w.value ? (n(), i("line", {
|
|
278
280
|
key: 0,
|
|
@@ -285,7 +287,7 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
285
287
|
"stroke-linecap": "round",
|
|
286
288
|
"stroke-linejoin": "round",
|
|
287
289
|
"shape-rendering": "geometricPrecision"
|
|
288
|
-
}, null, 8,
|
|
290
|
+
}, null, 8, Fe)) : y("", !0),
|
|
289
291
|
w.value ? (n(), i("rect", {
|
|
290
292
|
key: 1,
|
|
291
293
|
x: a.x - a.width / 2,
|
|
@@ -294,8 +296,8 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
294
296
|
height: Math.abs(a.y - $.value),
|
|
295
297
|
fill: a.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${p.value})` : `url(#sparkline_bar_gradient_neg_${p.value})`,
|
|
296
298
|
rx: e.value.style.bar.borderRadius
|
|
297
|
-
}, null, 8,
|
|
298
|
-
e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id ||
|
|
299
|
+
}, null, 8, Ge)) : y("", !0),
|
|
300
|
+
e.value.style.verticalIndicator.show && (h.value && a.id === h.value.id || b.selectedIndex === d) ? (n(), i("line", {
|
|
299
301
|
key: 2,
|
|
300
302
|
x1: a.x,
|
|
301
303
|
x2: a.x,
|
|
@@ -305,7 +307,7 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
305
307
|
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
306
308
|
"stroke-linecap": "round",
|
|
307
309
|
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
308
|
-
}, null, 8,
|
|
310
|
+
}, null, 8, Te)) : y("", !0)
|
|
309
311
|
]))), 256)),
|
|
310
312
|
z.value < 0 ? (n(), i("line", {
|
|
311
313
|
key: 2,
|
|
@@ -317,9 +319,9 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
317
319
|
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
318
320
|
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
319
321
|
"stroke-linecap": "round"
|
|
320
|
-
}, null, 8,
|
|
322
|
+
}, null, 8, Be)) : y("", !0),
|
|
321
323
|
e.value.style.plot.show ? (n(!0), i(W, { key: 3 }, P(o.value, (a, d) => (n(), i("g", null, [
|
|
322
|
-
h.value && a.id === h.value.id ||
|
|
324
|
+
h.value && a.id === h.value.id || b.selectedIndex === d ? (n(), i("circle", {
|
|
323
325
|
key: 0,
|
|
324
326
|
cx: a.x,
|
|
325
327
|
cy: a.y,
|
|
@@ -327,9 +329,9 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
327
329
|
fill: a.color,
|
|
328
330
|
stroke: e.value.style.plot.stroke,
|
|
329
331
|
"stroke-width": e.value.style.plot.strokeWidth
|
|
330
|
-
}, null, 8,
|
|
332
|
+
}, null, 8, Ee)) : y("", !0)
|
|
331
333
|
]))), 256)) : y("", !0),
|
|
332
|
-
|
|
334
|
+
b.showInfo && e.value.style.dataLabel.show ? (n(), i("text", {
|
|
333
335
|
key: 4,
|
|
334
336
|
x: e.value.style.dataLabel.position === "left" ? 12 + e.value.style.dataLabel.offsetX : s.value.width + 12 + e.value.style.dataLabel.offsetX,
|
|
335
337
|
y: l.value.height / 2 + e.value.style.dataLabel.fontSize / 2.5 + e.value.style.dataLabel.offsetY,
|
|
@@ -345,7 +347,7 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
345
347
|
e.value.style.dataLabel.formatter,
|
|
346
348
|
T.value,
|
|
347
349
|
c(Z)({ p: e.value.style.dataLabel.prefix, v: T.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
348
|
-
)), 9,
|
|
350
|
+
)), 9, Oe)) : y("", !0),
|
|
349
351
|
(n(!0), i(W, null, P(o.value, (a, d) => (n(), i("rect", {
|
|
350
352
|
x: a.x - (s.value.width / (g.value + 1) > l.value.padding ? l.value.padding : s.value.width / (g.value + 1)) / 2,
|
|
351
353
|
y: s.value.top - 6,
|
|
@@ -355,10 +357,10 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
355
357
|
onMouseenter: (B) => te(a, d),
|
|
356
358
|
onMouseleave: ae,
|
|
357
359
|
onClick: () => le(a, d)
|
|
358
|
-
}, null, 40,
|
|
360
|
+
}, null, 40, je))), 256)),
|
|
359
361
|
O(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
360
|
-
], 12,
|
|
361
|
-
L.value ? y("", !0) : (n(),
|
|
362
|
+
], 12, we)) : y("", !0),
|
|
363
|
+
L.value ? y("", !0) : (n(), re(ge, {
|
|
362
364
|
key: 2,
|
|
363
365
|
config: {
|
|
364
366
|
type: "sparkline",
|
|
@@ -370,9 +372,9 @@ const be = ["id"], _e = ["xmlns", "viewBox"], xe = ["id"], we = ["stop-color"],
|
|
|
370
372
|
}
|
|
371
373
|
}
|
|
372
374
|
}, null, 8, ["config"]))
|
|
373
|
-
], 12,
|
|
375
|
+
], 12, xe));
|
|
374
376
|
}
|
|
375
|
-
},
|
|
377
|
+
}, Je = /* @__PURE__ */ be(Re, [["__scopeId", "data-v-9481e22a"]]);
|
|
376
378
|
export {
|
|
377
|
-
|
|
379
|
+
Je as default
|
|
378
380
|
};
|