vue-data-ui 2.3.27 → 2.3.29
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 +17 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
- package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-C6HTLT7L.cjs +0 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
- package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
- package/dist/vue-ui-donut-C33U3e8H.js +0 -751
- package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
- package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
- package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
- package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
- package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
- package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
- package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
- package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
- package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
- package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
- package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
- package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
- package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
- package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
- package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
- package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
- package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
- package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
- package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
- package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
- package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
- package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
- package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { computed as p, ref as m, onMounted as T, openBlock as n, createElementBlock as r, normalizeStyle as g, createElementVNode as u, toDisplayString as k, createCommentVNode as h, unref as
|
|
2
|
-
import { u as H, c as j, t as X, a as J, p as d, b as K, d as P, o as Q, e as E, g as R, f as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { computed as p, ref as m, onMounted as T, openBlock as n, createElementBlock as r, normalizeStyle as g, createElementVNode as u, toDisplayString as k, createCommentVNode as h, unref as b, Fragment as D, renderList as z, normalizeClass as A, createBlock as q } from "vue";
|
|
2
|
+
import { u as H, c as j, t as X, a as J, p as d, b as K, d as P, o as Q, e as E, g as R, f as I, X as W, s as Y, v as Z, i as ee } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { u as U } from "./useNestedProp-BoNl5H_z.js";
|
|
4
|
+
import te from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
5
|
+
import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const ae = ["xmlns", "viewBox"], oe = ["id"], se = ["stop-color"], ne = ["stop-color"], re = ["stop-color"], ue = {
|
|
7
7
|
id: "stackPill",
|
|
8
8
|
clipPathUnits: "objectBoundingBox"
|
|
9
|
-
},
|
|
9
|
+
}, ie = ["fill"], ce = { "clip-path": "url(#stackPill)" }, de = ["height", "width", "fill"], ve = ["onClick", "x", "width", "height", "fill", "stroke"], ge = ["onClick"], pe = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, he = ["height", "width"], ye = ["fill"], fe = {
|
|
10
10
|
__name: "vue-ui-sparkstackbar",
|
|
11
11
|
props: {
|
|
12
12
|
config: {
|
|
@@ -24,13 +24,13 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["selectDatapoint"],
|
|
26
26
|
setup(O, { emit: V }) {
|
|
27
|
-
const i = O, { vue_ui_sparkstackbar: G } = H(),
|
|
28
|
-
const t =
|
|
27
|
+
const i = O, { vue_ui_sparkstackbar: G } = H(), L = p(() => !!i.dataset && i.dataset.length), N = m(j()), e = p(() => {
|
|
28
|
+
const t = U({
|
|
29
29
|
userConfig: i.config,
|
|
30
30
|
defaultConfig: G
|
|
31
31
|
});
|
|
32
32
|
return t.theme ? {
|
|
33
|
-
...
|
|
33
|
+
...U({
|
|
34
34
|
userConfig: X.vue_ui_sparkstackbar[t.theme] || i.config,
|
|
35
35
|
defaultConfig: t
|
|
36
36
|
}),
|
|
@@ -40,7 +40,7 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
40
40
|
...t,
|
|
41
41
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
42
42
|
color: t.color ? P(t.color) : x.value[a] || d[a] || d[a % d.length]
|
|
43
|
-
}))),
|
|
43
|
+
}))), _ = m(!0);
|
|
44
44
|
T(() => {
|
|
45
45
|
if (Q(i.dataset) ? E({
|
|
46
46
|
componentName: "VueUiSparkStackbar",
|
|
@@ -63,7 +63,7 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
63
63
|
...s,
|
|
64
64
|
value: s.value += a[c],
|
|
65
65
|
color: s.color ? P(s.color) : x.value[c] || d[c] || d[c % d.length]
|
|
66
|
-
})), requestAnimationFrame(S)) : (
|
|
66
|
+
})), requestAnimationFrame(S)) : (_.value = !1, y.value = i.dataset.map((s, c) => ({
|
|
67
67
|
...s,
|
|
68
68
|
value: s.value || 0,
|
|
69
69
|
color: s.color ? P(s.color) : x.value[c] || d[c] || d[c % d.length],
|
|
@@ -72,23 +72,23 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
72
72
|
};
|
|
73
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
74
|
let o = 0;
|
|
75
|
-
|
|
75
|
+
_.value = !0, S();
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
const f = m({
|
|
79
79
|
width: 500,
|
|
80
80
|
height: 16
|
|
81
|
-
}), v = m([]), w = p(() => i.dataset.map((t) => t.value || 0).filter((t, a) => !v.value.includes(a)).reduce((t, a) => t + a, 0)),
|
|
81
|
+
}), v = m([]), w = p(() => i.dataset.map((t) => t.value || 0).filter((t, a) => !v.value.includes(a)).reduce((t, a) => t + a, 0)), B = p(() => y.value.map((t, a) => ({
|
|
82
82
|
...t,
|
|
83
83
|
value: t.value || 0,
|
|
84
84
|
proportion: (t.value || 0) / w.value,
|
|
85
85
|
width: (t.value || 0) / w.value * f.value.width,
|
|
86
|
-
proportionLabel:
|
|
86
|
+
proportionLabel: I({
|
|
87
87
|
v: (t.value || 0) / w.value * 100,
|
|
88
88
|
s: "%",
|
|
89
89
|
r: e.value.style.legend.percentage.rounding
|
|
90
90
|
})
|
|
91
|
-
}))), $ = p(() =>
|
|
91
|
+
}))), $ = p(() => B.value.filter((t, a) => !v.value.includes(a)));
|
|
92
92
|
function M(t) {
|
|
93
93
|
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.length < y.value.length - 1 && v.value.push(t);
|
|
94
94
|
}
|
|
@@ -120,9 +120,9 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
120
120
|
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
121
|
}, k(e.value.style.title.subtitle.text), 5)) : h("", !0)
|
|
122
122
|
], 4)) : h("", !0),
|
|
123
|
-
|
|
123
|
+
L.value ? (n(), r("svg", {
|
|
124
124
|
key: 1,
|
|
125
|
-
xmlns:
|
|
125
|
+
xmlns: b(W),
|
|
126
126
|
width: "100%",
|
|
127
127
|
viewBox: `0 0 ${f.value.width} ${f.value.height}`
|
|
128
128
|
}, [
|
|
@@ -130,22 +130,22 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
130
130
|
(n(!0), r(D, null, z(C.value, (l, o) => (n(), r("linearGradient", {
|
|
131
131
|
key: `stack_gradient_${o}`,
|
|
132
132
|
gradientTransform: "rotate(90)",
|
|
133
|
-
id: `stack_gradient_${o}_${
|
|
133
|
+
id: `stack_gradient_${o}_${N.value}`
|
|
134
134
|
}, [
|
|
135
135
|
u("stop", {
|
|
136
136
|
offset: "0%",
|
|
137
137
|
"stop-color": l.color
|
|
138
|
-
}, null, 8,
|
|
138
|
+
}, null, 8, se),
|
|
139
139
|
u("stop", {
|
|
140
140
|
offset: "50%",
|
|
141
|
-
"stop-color": `${
|
|
142
|
-
}, null, 8,
|
|
141
|
+
"stop-color": `${b(Y)(l.color, 0.05)}${b(Z)[100 - e.value.style.bar.gradient.intensity]}`
|
|
142
|
+
}, null, 8, ne),
|
|
143
143
|
u("stop", {
|
|
144
144
|
offset: "100%",
|
|
145
145
|
"stop-color": l.color
|
|
146
|
-
}, null, 8,
|
|
147
|
-
], 8,
|
|
148
|
-
u("clipPath",
|
|
146
|
+
}, null, 8, re)
|
|
147
|
+
], 8, oe))), 128)),
|
|
148
|
+
u("clipPath", ue, [
|
|
149
149
|
u("rect", {
|
|
150
150
|
x: "0.005",
|
|
151
151
|
y: "-2",
|
|
@@ -154,18 +154,18 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
154
154
|
rx: "3",
|
|
155
155
|
ry: "3",
|
|
156
156
|
fill: e.value.style.backgroundColor
|
|
157
|
-
}, null, 8,
|
|
157
|
+
}, null, 8, ie)
|
|
158
158
|
])
|
|
159
159
|
]),
|
|
160
|
-
u("g",
|
|
160
|
+
u("g", ce, [
|
|
161
161
|
u("rect", {
|
|
162
162
|
x: 0,
|
|
163
163
|
y: 0,
|
|
164
164
|
height: f.value.height,
|
|
165
165
|
width: C.value.map((l) => l.width).reduce((l, o) => l + o, 0),
|
|
166
166
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
167
|
-
class: A({ animated: !
|
|
168
|
-
}, null, 10,
|
|
167
|
+
class: A({ animated: !_.value })
|
|
168
|
+
}, null, 10, de),
|
|
169
169
|
(n(!0), r(D, null, z(C.value, (l, o) => (n(), r("rect", {
|
|
170
170
|
key: `stack_${o}`,
|
|
171
171
|
onClick: () => F(l, o),
|
|
@@ -173,14 +173,14 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
173
173
|
y: 0,
|
|
174
174
|
width: l.width,
|
|
175
175
|
height: f.value.height,
|
|
176
|
-
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${
|
|
176
|
+
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${N.value})` : l.color,
|
|
177
177
|
stroke: e.value.style.backgroundColor,
|
|
178
178
|
"stroke-linecap": "round",
|
|
179
|
-
class: A({ animated: !
|
|
180
|
-
}, null, 10,
|
|
179
|
+
class: A({ animated: !_.value })
|
|
180
|
+
}, null, 10, ve))), 128))
|
|
181
181
|
])
|
|
182
|
-
], 8,
|
|
183
|
-
|
|
182
|
+
], 8, ae)) : h("", !0),
|
|
183
|
+
L.value ? h("", !0) : (n(), q(te, {
|
|
184
184
|
key: 2,
|
|
185
185
|
config: {
|
|
186
186
|
type: "sparkStackbar",
|
|
@@ -197,14 +197,14 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
197
197
|
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
198
|
class: "vue-ui-sparkstackbar-legend"
|
|
199
199
|
}, [
|
|
200
|
-
(n(!0), r(D, null, z(
|
|
200
|
+
(n(!0), r(D, null, z(B.value, (l, o) => (n(), r("div", {
|
|
201
201
|
style: g(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
202
202
|
class: A({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": v.value.includes(o) }),
|
|
203
203
|
onClick: (S) => {
|
|
204
204
|
M(o), F(l, o);
|
|
205
205
|
}
|
|
206
206
|
}, [
|
|
207
|
-
u("div",
|
|
207
|
+
u("div", pe, [
|
|
208
208
|
(n(), r("svg", {
|
|
209
209
|
height: `${e.value.style.legend.fontSize}px`,
|
|
210
210
|
width: `${e.value.style.legend.fontSize}px`,
|
|
@@ -215,8 +215,8 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
215
215
|
cy: 5,
|
|
216
216
|
r: 5,
|
|
217
217
|
fill: l.color
|
|
218
|
-
}, null, 8,
|
|
219
|
-
], 8,
|
|
218
|
+
}, null, 8, ye)
|
|
219
|
+
], 8, he)),
|
|
220
220
|
u("span", {
|
|
221
221
|
style: g(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
222
222
|
}, k(l.name), 5),
|
|
@@ -227,18 +227,23 @@ const le = ["xmlns", "viewBox"], ae = ["id"], oe = ["stop-color"], se = ["stop-c
|
|
|
227
227
|
e.value.style.legend.value.show ? (n(), r("span", {
|
|
228
228
|
key: 1,
|
|
229
229
|
style: g(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
230
|
-
}, " (" + k(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
230
|
+
}, " (" + k(b(ee)(
|
|
231
|
+
e.value.style.legend.value.formatter,
|
|
232
|
+
l.value,
|
|
233
|
+
b(I)({
|
|
234
|
+
p: e.value.style.legend.value.prefix,
|
|
235
|
+
v: l.value,
|
|
236
|
+
s: e.value.style.legend.value.suffix,
|
|
237
|
+
r: e.value.style.legend.value.rounding
|
|
238
|
+
}),
|
|
239
|
+
{ datapoint: l, seriesIndex: o }
|
|
240
|
+
)) + ") ", 5)) : h("", !0)
|
|
236
241
|
])
|
|
237
|
-
], 14,
|
|
242
|
+
], 14, ge))), 256))
|
|
238
243
|
], 4)) : h("", !0)
|
|
239
244
|
], 4));
|
|
240
245
|
}
|
|
241
|
-
},
|
|
246
|
+
}, we = /* @__PURE__ */ le(fe, [["__scopeId", "data-v-86f11bbc"]]);
|
|
242
247
|
export {
|
|
243
|
-
|
|
248
|
+
we as default
|
|
244
249
|
};
|