vue-data-ui 2.3.74 → 2.3.75
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-CYCrAySW.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-DK6F5Fq3.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-Cj7T-DqJ.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-DZjnxQdN.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-D5cATWsL.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-Bj6kEIpq.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-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-BA43_uHV.js} +314 -299
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { computed as p, ref as m, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { computed as p, ref as m, watch as I, onMounted as X, openBlock as n, createElementBlock as u, normalizeStyle as g, createElementVNode as c, toDisplayString as k, createCommentVNode as h, unref as _, Fragment as z, renderList as A, normalizeClass as P, createBlock as J } from "vue";
|
|
2
|
+
import { u as K, c as U, t as Q, a as R, p as i, d as w, b as W, o as Y, e as O, g as Z, f as V, X as ee, v as te, w as le, i as ae } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { u as G } from "./useNestedProp-CurQIHTa.js";
|
|
4
|
+
import oe from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
5
|
+
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const ne = ["xmlns", "viewBox"], re = ["id"], ue = ["stop-color"], ie = ["stop-color"], ce = ["stop-color"], de = {
|
|
7
7
|
id: "stackPill",
|
|
8
8
|
clipPathUnits: "objectBoundingBox"
|
|
9
|
-
},
|
|
9
|
+
}, ve = ["fill"], ge = { "clip-path": "url(#stackPill)" }, pe = ["height", "width", "fill"], he = ["onClick", "x", "width", "height", "fill", "stroke"], fe = ["onClick"], ye = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, me = ["height", "width"], ke = ["fill"], _e = {
|
|
10
10
|
__name: "vue-ui-sparkstackbar",
|
|
11
11
|
props: {
|
|
12
12
|
config: {
|
|
@@ -23,76 +23,92 @@ const ae = ["xmlns", "viewBox"], oe = ["id"], se = ["stop-color"], ne = ["stop-c
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
emits: ["selectDatapoint"],
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
setup(M, { emit: T }) {
|
|
27
|
+
const r = M, { vue_ui_sparkstackbar: q } = K(), L = p(() => !!r.dataset && r.dataset.length), N = m(U()), e = p({
|
|
28
|
+
get: () => B(),
|
|
29
|
+
set: (t) => t
|
|
30
|
+
});
|
|
31
|
+
function B() {
|
|
32
|
+
const t = G({
|
|
33
|
+
userConfig: r.config,
|
|
34
|
+
defaultConfig: q
|
|
31
35
|
});
|
|
32
36
|
return t.theme ? {
|
|
33
|
-
...
|
|
34
|
-
userConfig:
|
|
37
|
+
...G({
|
|
38
|
+
userConfig: Q.vue_ui_sparkstackbar[t.theme] || r.config,
|
|
35
39
|
defaultConfig: t
|
|
36
40
|
}),
|
|
37
|
-
customPalette:
|
|
41
|
+
customPalette: R[t.theme] || i
|
|
38
42
|
} : t;
|
|
39
|
-
}
|
|
43
|
+
}
|
|
44
|
+
I(() => r.config, (t) => {
|
|
45
|
+
e.value = B(), F();
|
|
46
|
+
}, { deep: !0 }), I(() => r.dataset, (t) => {
|
|
47
|
+
f.value = r.dataset.map((a, l) => ({
|
|
48
|
+
...a,
|
|
49
|
+
color: a.color ? w(a.color) : b.value[l] || i[l] || i[l % i.length]
|
|
50
|
+
}));
|
|
51
|
+
}, { deep: !0 });
|
|
52
|
+
const b = p(() => W(e.value.customPalette)), f = m(r.dataset.map((t, a) => ({
|
|
40
53
|
...t,
|
|
41
54
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
42
|
-
color: t.color ?
|
|
43
|
-
}))),
|
|
44
|
-
|
|
45
|
-
if (
|
|
55
|
+
color: t.color ? w(t.color) : b.value[a] || i[a] || i[a % i.length]
|
|
56
|
+
}))), x = m(!0);
|
|
57
|
+
X(() => {
|
|
58
|
+
if (F(), e.value.style.animation.show) {
|
|
59
|
+
let D = function() {
|
|
60
|
+
o += l / t, o < l ? (f.value = f.value.map((s, d) => ({
|
|
61
|
+
...s,
|
|
62
|
+
value: s.value += a[d],
|
|
63
|
+
color: s.color ? w(s.color) : b.value[d] || i[d] || i[d % i.length]
|
|
64
|
+
})), requestAnimationFrame(D)) : (x.value = !1, f.value = r.dataset.map((s, d) => ({
|
|
65
|
+
...s,
|
|
66
|
+
value: s.value || 0,
|
|
67
|
+
color: s.color ? w(s.color) : b.value[d] || i[d] || i[d % i.length],
|
|
68
|
+
id: U()
|
|
69
|
+
})));
|
|
70
|
+
};
|
|
71
|
+
const t = e.value.style.animation.animationFrames, a = r.dataset.map((s, d) => s.value / t), l = r.dataset.map((s) => s.value || 0).reduce((s, d) => s + d, 0);
|
|
72
|
+
let o = 0;
|
|
73
|
+
x.value = !0, D();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
function F() {
|
|
77
|
+
Y(r.dataset) ? O({
|
|
46
78
|
componentName: "VueUiSparkStackbar",
|
|
47
79
|
type: "dataset"
|
|
48
|
-
}) :
|
|
49
|
-
|
|
80
|
+
}) : r.dataset.forEach((t, a) => {
|
|
81
|
+
Z({
|
|
50
82
|
datasetObject: t,
|
|
51
83
|
requiredAttributes: ["name", "value"]
|
|
52
84
|
}).forEach((l) => {
|
|
53
|
-
|
|
85
|
+
O({
|
|
54
86
|
componentName: "VueUiSparkStackbar",
|
|
55
87
|
type: "datasetSerieAttribute",
|
|
56
88
|
property: l,
|
|
57
89
|
index: a
|
|
58
90
|
});
|
|
59
91
|
});
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
...s,
|
|
64
|
-
value: s.value += a[c],
|
|
65
|
-
color: s.color ? P(s.color) : x.value[c] || d[c] || d[c % d.length]
|
|
66
|
-
})), requestAnimationFrame(S)) : (_.value = !1, y.value = i.dataset.map((s, c) => ({
|
|
67
|
-
...s,
|
|
68
|
-
value: s.value || 0,
|
|
69
|
-
color: s.color ? P(s.color) : x.value[c] || d[c] || d[c % d.length],
|
|
70
|
-
id: j()
|
|
71
|
-
})));
|
|
72
|
-
};
|
|
73
|
-
const t = e.value.style.animation.animationFrames, a = i.dataset.map((s, c) => s.value / t), l = i.dataset.map((s) => s.value || 0).reduce((s, c) => s + c, 0);
|
|
74
|
-
let o = 0;
|
|
75
|
-
_.value = !0, S();
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
const f = m({
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const y = m({
|
|
79
95
|
width: 500,
|
|
80
96
|
height: 16
|
|
81
|
-
}), v = m([]),
|
|
97
|
+
}), v = m([]), C = p(() => r.dataset.map((t) => t.value || 0).filter((t, a) => !v.value.includes(a)).reduce((t, a) => t + a, 0)), j = p(() => f.value.map((t, a) => ({
|
|
82
98
|
...t,
|
|
83
99
|
value: t.value || 0,
|
|
84
|
-
proportion: (t.value || 0) /
|
|
85
|
-
width: (t.value || 0) /
|
|
86
|
-
proportionLabel:
|
|
87
|
-
v: (t.value || 0) /
|
|
100
|
+
proportion: (t.value || 0) / C.value,
|
|
101
|
+
width: (t.value || 0) / C.value * y.value.width,
|
|
102
|
+
proportionLabel: V({
|
|
103
|
+
v: (t.value || 0) / C.value * 100,
|
|
88
104
|
s: "%",
|
|
89
105
|
r: e.value.style.legend.percentage.rounding
|
|
90
106
|
})
|
|
91
|
-
}))), $ = p(() =>
|
|
92
|
-
function
|
|
93
|
-
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.length <
|
|
107
|
+
}))), $ = p(() => j.value.filter((t, a) => !v.value.includes(a)));
|
|
108
|
+
function H(t) {
|
|
109
|
+
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.length < f.value.length - 1 && v.value.push(t);
|
|
94
110
|
}
|
|
95
|
-
const
|
|
111
|
+
const S = p(() => {
|
|
96
112
|
let t = 0;
|
|
97
113
|
const a = [];
|
|
98
114
|
for (let l = 0; l < $.value.length; l += 1)
|
|
@@ -102,51 +118,51 @@ const ae = ["xmlns", "viewBox"], oe = ["id"], se = ["stop-color"], ne = ["stop-c
|
|
|
102
118
|
}), t += $.value[l].width;
|
|
103
119
|
return a;
|
|
104
120
|
});
|
|
105
|
-
function
|
|
106
|
-
|
|
121
|
+
function E(t, a) {
|
|
122
|
+
T("selectDatapoint", { datapoint: t, index: a });
|
|
107
123
|
}
|
|
108
|
-
return (t, a) => (n(),
|
|
124
|
+
return (t, a) => (n(), u("div", {
|
|
109
125
|
style: g(`width:100%; background:${e.value.style.backgroundColor}`)
|
|
110
126
|
}, [
|
|
111
|
-
e.value.style.title.text ? (n(),
|
|
127
|
+
e.value.style.title.text ? (n(), u("div", {
|
|
112
128
|
key: 0,
|
|
113
129
|
style: g(`width:calc(100% - 12px);background:${e.value.style.backgroundColor};margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
114
130
|
}, [
|
|
115
|
-
|
|
131
|
+
c("div", {
|
|
116
132
|
style: g(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
117
133
|
}, k(e.value.style.title.text), 5),
|
|
118
|
-
e.value.style.title.subtitle.text ? (n(),
|
|
134
|
+
e.value.style.title.subtitle.text ? (n(), u("div", {
|
|
119
135
|
key: 0,
|
|
120
136
|
style: g(`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"}`)
|
|
121
137
|
}, k(e.value.style.title.subtitle.text), 5)) : h("", !0)
|
|
122
138
|
], 4)) : h("", !0),
|
|
123
|
-
L.value ? (n(),
|
|
139
|
+
L.value ? (n(), u("svg", {
|
|
124
140
|
key: 1,
|
|
125
|
-
xmlns:
|
|
141
|
+
xmlns: _(ee),
|
|
126
142
|
width: "100%",
|
|
127
|
-
viewBox: `0 0 ${
|
|
143
|
+
viewBox: `0 0 ${y.value.width} ${y.value.height}`
|
|
128
144
|
}, [
|
|
129
|
-
|
|
130
|
-
(n(!0),
|
|
145
|
+
c("defs", null, [
|
|
146
|
+
(n(!0), u(z, null, A(S.value, (l, o) => (n(), u("linearGradient", {
|
|
131
147
|
key: `stack_gradient_${o}`,
|
|
132
148
|
gradientTransform: "rotate(90)",
|
|
133
149
|
id: `stack_gradient_${o}_${N.value}`
|
|
134
150
|
}, [
|
|
135
|
-
|
|
151
|
+
c("stop", {
|
|
136
152
|
offset: "0%",
|
|
137
153
|
"stop-color": l.color
|
|
138
|
-
}, null, 8,
|
|
139
|
-
|
|
154
|
+
}, null, 8, ue),
|
|
155
|
+
c("stop", {
|
|
140
156
|
offset: "50%",
|
|
141
|
-
"stop-color": `${
|
|
142
|
-
}, null, 8,
|
|
143
|
-
|
|
157
|
+
"stop-color": `${_(te)(l.color, 0.05)}${_(le)[100 - e.value.style.bar.gradient.intensity]}`
|
|
158
|
+
}, null, 8, ie),
|
|
159
|
+
c("stop", {
|
|
144
160
|
offset: "100%",
|
|
145
161
|
"stop-color": l.color
|
|
146
|
-
}, null, 8,
|
|
147
|
-
], 8,
|
|
148
|
-
|
|
149
|
-
|
|
162
|
+
}, null, 8, ce)
|
|
163
|
+
], 8, re))), 128)),
|
|
164
|
+
c("clipPath", de, [
|
|
165
|
+
c("rect", {
|
|
150
166
|
x: "0.005",
|
|
151
167
|
y: "-2",
|
|
152
168
|
width: "0.99",
|
|
@@ -154,33 +170,33 @@ const ae = ["xmlns", "viewBox"], oe = ["id"], se = ["stop-color"], ne = ["stop-c
|
|
|
154
170
|
rx: "3",
|
|
155
171
|
ry: "3",
|
|
156
172
|
fill: e.value.style.backgroundColor
|
|
157
|
-
}, null, 8,
|
|
173
|
+
}, null, 8, ve)
|
|
158
174
|
])
|
|
159
175
|
]),
|
|
160
|
-
|
|
161
|
-
|
|
176
|
+
c("g", ge, [
|
|
177
|
+
c("rect", {
|
|
162
178
|
x: 0,
|
|
163
179
|
y: 0,
|
|
164
|
-
height:
|
|
165
|
-
width:
|
|
180
|
+
height: y.value.height,
|
|
181
|
+
width: S.value.map((l) => l.width).reduce((l, o) => l + o, 0),
|
|
166
182
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
167
|
-
class:
|
|
168
|
-
}, null, 10,
|
|
169
|
-
(n(!0),
|
|
183
|
+
class: P({ animated: !x.value })
|
|
184
|
+
}, null, 10, pe),
|
|
185
|
+
(n(!0), u(z, null, A(S.value, (l, o) => (n(), u("rect", {
|
|
170
186
|
key: `stack_${o}`,
|
|
171
|
-
onClick: () =>
|
|
187
|
+
onClick: () => E(l, o),
|
|
172
188
|
x: l.start,
|
|
173
189
|
y: 0,
|
|
174
190
|
width: l.width,
|
|
175
|
-
height:
|
|
191
|
+
height: y.value.height,
|
|
176
192
|
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${N.value})` : l.color,
|
|
177
193
|
stroke: e.value.style.backgroundColor,
|
|
178
194
|
"stroke-linecap": "round",
|
|
179
|
-
class:
|
|
180
|
-
}, null, 10,
|
|
195
|
+
class: P({ animated: !x.value })
|
|
196
|
+
}, null, 10, he))), 128))
|
|
181
197
|
])
|
|
182
|
-
], 8,
|
|
183
|
-
L.value ? h("", !0) : (n(),
|
|
198
|
+
], 8, ne)) : h("", !0),
|
|
199
|
+
L.value ? h("", !0) : (n(), J(oe, {
|
|
184
200
|
key: 2,
|
|
185
201
|
config: {
|
|
186
202
|
type: "sparkStackbar",
|
|
@@ -192,45 +208,45 @@ const ae = ["xmlns", "viewBox"], oe = ["id"], se = ["stop-color"], ne = ["stop-c
|
|
|
192
208
|
}
|
|
193
209
|
}
|
|
194
210
|
}, null, 8, ["config"])),
|
|
195
|
-
e.value.style.legend.show ? (n(),
|
|
211
|
+
e.value.style.legend.show ? (n(), u("div", {
|
|
196
212
|
key: 3,
|
|
197
213
|
style: g(`background:${e.value.style.backgroundColor};margin:0 auto;margin:${e.value.style.legend.margin};justify-content:${e.value.style.legend.textAlign === "left" ? "flex-start" : e.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
198
214
|
class: "vue-ui-sparkstackbar-legend"
|
|
199
215
|
}, [
|
|
200
|
-
(n(!0),
|
|
216
|
+
(n(!0), u(z, null, A(j.value, (l, o) => (n(), u("div", {
|
|
201
217
|
style: g(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
202
|
-
class:
|
|
203
|
-
onClick: (
|
|
204
|
-
|
|
218
|
+
class: P({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": v.value.includes(o) }),
|
|
219
|
+
onClick: (D) => {
|
|
220
|
+
H(o), E(l, o);
|
|
205
221
|
}
|
|
206
222
|
}, [
|
|
207
|
-
|
|
208
|
-
(n(),
|
|
223
|
+
c("div", ye, [
|
|
224
|
+
(n(), u("svg", {
|
|
209
225
|
height: `${e.value.style.legend.fontSize}px`,
|
|
210
226
|
width: `${e.value.style.legend.fontSize}px`,
|
|
211
227
|
viewBox: "0 0 10 10"
|
|
212
228
|
}, [
|
|
213
|
-
|
|
229
|
+
c("circle", {
|
|
214
230
|
cx: 5,
|
|
215
231
|
cy: 5,
|
|
216
232
|
r: 5,
|
|
217
233
|
fill: l.color
|
|
218
|
-
}, null, 8,
|
|
219
|
-
], 8,
|
|
220
|
-
|
|
234
|
+
}, null, 8, ke)
|
|
235
|
+
], 8, me)),
|
|
236
|
+
c("span", {
|
|
221
237
|
style: g(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
222
238
|
}, k(l.name), 5),
|
|
223
|
-
e.value.style.legend.percentage.show ? (n(),
|
|
239
|
+
e.value.style.legend.percentage.show ? (n(), u("span", {
|
|
224
240
|
key: 0,
|
|
225
241
|
style: g(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
226
242
|
}, k(v.value.includes(o) ? " - " : l.proportionLabel), 5)) : h("", !0),
|
|
227
|
-
e.value.style.legend.value.show ? (n(),
|
|
243
|
+
e.value.style.legend.value.show ? (n(), u("span", {
|
|
228
244
|
key: 1,
|
|
229
245
|
style: g(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
230
|
-
}, " (" + k(
|
|
246
|
+
}, " (" + k(_(ae)(
|
|
231
247
|
e.value.style.legend.value.formatter,
|
|
232
248
|
l.value,
|
|
233
|
-
|
|
249
|
+
_(V)({
|
|
234
250
|
p: e.value.style.legend.value.prefix,
|
|
235
251
|
v: l.value,
|
|
236
252
|
s: e.value.style.legend.value.suffix,
|
|
@@ -239,11 +255,11 @@ const ae = ["xmlns", "viewBox"], oe = ["id"], se = ["stop-color"], ne = ["stop-c
|
|
|
239
255
|
{ datapoint: l, seriesIndex: o }
|
|
240
256
|
)) + ") ", 5)) : h("", !0)
|
|
241
257
|
])
|
|
242
|
-
], 14,
|
|
258
|
+
], 14, fe))), 256))
|
|
243
259
|
], 4)) : h("", !0)
|
|
244
260
|
], 4));
|
|
245
261
|
}
|
|
246
|
-
},
|
|
262
|
+
}, Se = /* @__PURE__ */ se(_e, [["__scopeId", "data-v-27e88856"]]);
|
|
247
263
|
export {
|
|
248
|
-
|
|
264
|
+
Se as default
|
|
249
265
|
};
|