vue-data-ui 2.12.6 → 2.12.7-beta.0
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-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
7
|
-
import { u as xe } from "./useChartAccessibility-BWojgys7.js";
|
|
8
|
-
import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-color"], Fe = ["stop-color"], Ne = {
|
|
1
|
+
import { defineAsyncComponent as V, useSlots as pe, onMounted as G, computed as b, ref as d, watch as q, createElementBlock as r, openBlock as s, normalizeStyle as v, createCommentVNode as y, createBlock as ge, createVNode as H, createElementVNode as p, toDisplayString as C, unref as m, Fragment as x, renderList as $, normalizeClass as D, withCtx as X, renderSlot as T, normalizeProps as J, guardReactiveProps as K } from "vue";
|
|
2
|
+
import { u as fe, c as Q, t as he, p as i, a as ye, d as F, b as me, o as be, e as Z, g as ke, f as U, X as _e, s as we, w as Ce, i as ee, x as xe } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as te } from "./useNestedProp-tRqS0ZAM.js";
|
|
4
|
+
import { u as $e } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const Pe = ["xmlns", "viewBox"], ze = ["id"], Ae = ["stop-color"], De = ["stop-color"], Fe = ["stop-color"], Ne = {
|
|
10
7
|
id: "stackPill",
|
|
11
8
|
clipPathUnits: "objectBoundingBox"
|
|
12
|
-
},
|
|
9
|
+
}, Le = ["fill"], Be = {
|
|
13
10
|
key: 0,
|
|
14
11
|
"clip-path": "url(#stackPill)"
|
|
15
|
-
},
|
|
12
|
+
}, Oe = ["x", "width", "height", "fill"], Ve = ["x", "width", "height", "fill", "stroke"], Te = ["onClick", "x", "width", "height", "onMouseenter"], Ue = ["width", "height", "rx"], je = ["onClick"], Ee = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, Me = ["height", "width"], Re = ["fill"], Ie = {
|
|
16
13
|
key: 4,
|
|
17
14
|
ref: "source",
|
|
18
15
|
dir: "auto"
|
|
19
|
-
},
|
|
16
|
+
}, We = {
|
|
20
17
|
__name: "vue-ui-sparkstackbar",
|
|
21
18
|
props: {
|
|
22
19
|
config: {
|
|
@@ -33,70 +30,70 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
33
30
|
}
|
|
34
31
|
},
|
|
35
32
|
emits: ["selectDatapoint"],
|
|
36
|
-
setup(
|
|
37
|
-
const { vue_ui_sparkstackbar:
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
setup(le, { emit: oe }) {
|
|
34
|
+
const ae = V(() => import("./PackageVersion-CLY-udAA.js")), se = V(() => import("./vue-ui-skeleton-CbYQYRvD.js")), re = V(() => import("./Tooltip-C9rxJ-Ru.js")), { vue_ui_sparkstackbar: ne } = fe(), u = le, ue = pe();
|
|
35
|
+
G(() => {
|
|
36
|
+
ue["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
40
37
|
});
|
|
41
|
-
const j =
|
|
38
|
+
const j = b(() => !!u.dataset && u.dataset.length), E = d(null), M = d(Q()), N = d(!1), L = d(""), e = b({
|
|
42
39
|
get: () => R(),
|
|
43
40
|
set: (t) => t
|
|
44
|
-
}), { svgRef:
|
|
41
|
+
}), { svgRef: ie } = $e({ config: e.value.style.title });
|
|
45
42
|
function R() {
|
|
46
|
-
const t =
|
|
43
|
+
const t = te({
|
|
47
44
|
userConfig: u.config,
|
|
48
|
-
defaultConfig:
|
|
45
|
+
defaultConfig: ne
|
|
49
46
|
});
|
|
50
47
|
return t.theme ? {
|
|
51
|
-
...
|
|
52
|
-
userConfig:
|
|
48
|
+
...te({
|
|
49
|
+
userConfig: ye.vue_ui_sparkstackbar[t.theme] || u.config,
|
|
53
50
|
defaultConfig: t
|
|
54
51
|
}),
|
|
55
|
-
customPalette:
|
|
52
|
+
customPalette: he[t.theme] || i
|
|
56
53
|
} : t;
|
|
57
54
|
}
|
|
58
|
-
|
|
59
|
-
e.value = R(),
|
|
60
|
-
}, { deep: !0 }),
|
|
55
|
+
q(() => u.config, (t) => {
|
|
56
|
+
e.value = R(), I();
|
|
57
|
+
}, { deep: !0 }), q(() => u.dataset, (t) => {
|
|
61
58
|
k.value = u.dataset.map((a, l) => ({
|
|
62
59
|
...a,
|
|
63
|
-
color: a.color ?
|
|
60
|
+
color: a.color ? F(a.color) : S.value[l] || i[l] || i[l % i.length]
|
|
64
61
|
}));
|
|
65
62
|
}, { deep: !0 });
|
|
66
|
-
const S =
|
|
63
|
+
const S = b(() => me(e.value.customPalette)), k = d(u.dataset.map((t, a) => ({
|
|
67
64
|
...t,
|
|
68
65
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
69
|
-
color: t.color ?
|
|
70
|
-
}))),
|
|
71
|
-
|
|
72
|
-
if (
|
|
66
|
+
color: t.color ? F(t.color) : S.value[a] || i[a] || i[a % i.length]
|
|
67
|
+
}))), w = d(!0);
|
|
68
|
+
G(() => {
|
|
69
|
+
if (I(), e.value.style.animation.show) {
|
|
73
70
|
let h = function() {
|
|
74
71
|
o += l / t, o < l ? (k.value = k.value.map((n, c) => ({
|
|
75
72
|
...n,
|
|
76
73
|
value: n.value += a[c],
|
|
77
|
-
color: n.color ?
|
|
78
|
-
})), requestAnimationFrame(h)) : (
|
|
74
|
+
color: n.color ? F(n.color) : S.value[c] || i[c] || i[c % i.length]
|
|
75
|
+
})), requestAnimationFrame(h)) : (w.value = !1, k.value = u.dataset.map((n, c) => ({
|
|
79
76
|
...n,
|
|
80
77
|
value: n.value || 0,
|
|
81
|
-
color: n.color ?
|
|
82
|
-
id:
|
|
78
|
+
color: n.color ? F(n.color) : S.value[c] || i[c] || i[c % i.length],
|
|
79
|
+
id: Q()
|
|
83
80
|
})));
|
|
84
81
|
};
|
|
85
82
|
const t = e.value.style.animation.animationFrames, a = u.dataset.map((n, c) => n.value / t), l = u.dataset.map((n) => n.value || 0).reduce((n, c) => n + c, 0);
|
|
86
83
|
let o = 0;
|
|
87
|
-
|
|
84
|
+
w.value = !0, h();
|
|
88
85
|
}
|
|
89
86
|
});
|
|
90
|
-
function
|
|
91
|
-
|
|
87
|
+
function I() {
|
|
88
|
+
be(u.dataset) ? Z({
|
|
92
89
|
componentName: "VueUiSparkStackbar",
|
|
93
90
|
type: "dataset"
|
|
94
91
|
}) : u.dataset.forEach((t, a) => {
|
|
95
|
-
|
|
92
|
+
ke({
|
|
96
93
|
datasetObject: t,
|
|
97
94
|
requiredAttributes: ["name", "value"]
|
|
98
95
|
}).forEach((l) => {
|
|
99
|
-
|
|
96
|
+
Z({
|
|
100
97
|
componentName: "VueUiSparkStackbar",
|
|
101
98
|
type: "datasetSerieAttribute",
|
|
102
99
|
property: l,
|
|
@@ -108,24 +105,24 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
108
105
|
const g = d({
|
|
109
106
|
width: 500,
|
|
110
107
|
height: 16
|
|
111
|
-
}), f = d([]),
|
|
112
|
-
const l = t.value || 0, o = l /
|
|
108
|
+
}), f = d([]), W = b(() => u.dataset.map((t) => t.value || 0).filter((t, a) => !f.value.includes(a)).reduce((t, a) => t + a, 0)), P = b(() => k.value.map((t, a) => {
|
|
109
|
+
const l = t.value || 0, o = l / W.value, h = isNaN(o) ? 0 : o, n = h * g.value.width;
|
|
113
110
|
return {
|
|
114
111
|
...t,
|
|
115
112
|
value: l,
|
|
116
113
|
proportion: h,
|
|
117
114
|
width: n,
|
|
118
|
-
proportionLabel:
|
|
115
|
+
proportionLabel: U({
|
|
119
116
|
v: h * 100,
|
|
120
117
|
s: "%",
|
|
121
118
|
r: e.value.style.legend.percentage.rounding
|
|
122
119
|
})
|
|
123
120
|
};
|
|
124
|
-
})), B =
|
|
125
|
-
function
|
|
121
|
+
})), B = b(() => P.value.filter((t, a) => !f.value.includes(a)));
|
|
122
|
+
function ce(t) {
|
|
126
123
|
f.value.includes(t) ? f.value = f.value.filter((a) => a !== t) : f.value.length < k.value.length - 1 && f.value.push(t);
|
|
127
124
|
}
|
|
128
|
-
const
|
|
125
|
+
const z = b(() => {
|
|
129
126
|
let t = 0;
|
|
130
127
|
const a = [];
|
|
131
128
|
for (let l = 0; l < B.value.length; l += 1)
|
|
@@ -134,34 +131,34 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
134
131
|
start: t
|
|
135
132
|
}), t += B.value[l].width;
|
|
136
133
|
return a;
|
|
137
|
-
}),
|
|
138
|
-
function
|
|
139
|
-
|
|
134
|
+
}), de = oe;
|
|
135
|
+
function Y(t, a) {
|
|
136
|
+
de("selectDatapoint", { datapoint: t, index: a });
|
|
140
137
|
}
|
|
141
|
-
const O = d(null),
|
|
142
|
-
function
|
|
138
|
+
const O = d(null), A = d(!1), _ = d(null);
|
|
139
|
+
function ve({ datapoint: t, seriesIndex: a }) {
|
|
143
140
|
if (!e.value.style.tooltip.show)
|
|
144
141
|
return;
|
|
145
|
-
O.value = { datapoint: t, seriesIndex: a, config: e.value, series:
|
|
142
|
+
O.value = { datapoint: t, seriesIndex: a, config: e.value, series: P.value }, N.value = !0, _.value = a;
|
|
146
143
|
const l = e.value.style.tooltip.customFormat;
|
|
147
|
-
if (
|
|
144
|
+
if (xe(l))
|
|
148
145
|
try {
|
|
149
146
|
const o = l({
|
|
150
147
|
seriesIndex: a,
|
|
151
148
|
datapoint: t,
|
|
152
|
-
series:
|
|
149
|
+
series: P.value,
|
|
153
150
|
config: e.value
|
|
154
151
|
});
|
|
155
|
-
typeof o == "string" && (L.value = o,
|
|
152
|
+
typeof o == "string" && (L.value = o, A.value = !0);
|
|
156
153
|
} catch {
|
|
157
|
-
console.warn("Custom format cannot be applied."),
|
|
154
|
+
console.warn("Custom format cannot be applied."), A.value = !1;
|
|
158
155
|
}
|
|
159
|
-
if (!
|
|
156
|
+
if (!A.value) {
|
|
160
157
|
let o = "";
|
|
161
|
-
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, o += `<b>${t.proportionLabel}</b>`, o += `<span>(${
|
|
158
|
+
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, o += `<b>${t.proportionLabel}</b>`, o += `<span>(${ee(
|
|
162
159
|
e.value.style.legend.value.formatter,
|
|
163
160
|
t.value,
|
|
164
|
-
|
|
161
|
+
U({
|
|
165
162
|
p: e.value.style.legend.value.prefix,
|
|
166
163
|
v: t.value,
|
|
167
164
|
s: e.value.style.legend.value.suffix,
|
|
@@ -187,24 +184,24 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
187
184
|
p("div", {
|
|
188
185
|
class: "atom-title",
|
|
189
186
|
style: v(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
190
|
-
},
|
|
187
|
+
}, C(e.value.style.title.text), 5),
|
|
191
188
|
e.value.style.title.subtitle.text ? (s(), r("div", {
|
|
192
189
|
key: 0,
|
|
193
190
|
class: "atom-subtitle",
|
|
194
191
|
style: v(`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"}`)
|
|
195
|
-
},
|
|
192
|
+
}, C(e.value.style.title.subtitle.text), 5)) : y("", !0)
|
|
196
193
|
], 4)) : y("", !0),
|
|
197
194
|
j.value ? (s(), r("svg", {
|
|
198
195
|
key: 1,
|
|
199
196
|
ref_key: "svgRef",
|
|
200
|
-
ref:
|
|
201
|
-
xmlns:
|
|
197
|
+
ref: ie,
|
|
198
|
+
xmlns: m(_e),
|
|
202
199
|
width: "100%",
|
|
203
200
|
viewBox: `0 0 ${g.value.width} ${g.value.height}`
|
|
204
201
|
}, [
|
|
205
|
-
|
|
202
|
+
H(m(ae)),
|
|
206
203
|
p("defs", null, [
|
|
207
|
-
(s(!0), r(x, null, $(
|
|
204
|
+
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("linearGradient", {
|
|
208
205
|
key: `stack_gradient_${o}`,
|
|
209
206
|
gradientTransform: "rotate(90)",
|
|
210
207
|
id: `stack_gradient_${o}_${M.value}`
|
|
@@ -212,10 +209,10 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
212
209
|
p("stop", {
|
|
213
210
|
offset: "0%",
|
|
214
211
|
"stop-color": l.color
|
|
215
|
-
}, null, 8,
|
|
212
|
+
}, null, 8, Ae),
|
|
216
213
|
p("stop", {
|
|
217
214
|
offset: "50%",
|
|
218
|
-
"stop-color":
|
|
215
|
+
"stop-color": m(we)(m(Ce)(l.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
219
216
|
}, null, 8, De),
|
|
220
217
|
p("stop", {
|
|
221
218
|
offset: "100%",
|
|
@@ -231,23 +228,23 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
231
228
|
rx: "3",
|
|
232
229
|
ry: "3",
|
|
233
230
|
fill: e.value.style.backgroundColor
|
|
234
|
-
}, null, 8,
|
|
231
|
+
}, null, 8, Le)
|
|
235
232
|
])
|
|
236
233
|
]),
|
|
237
|
-
|
|
238
|
-
(s(!0), r(x, null, $(
|
|
234
|
+
W.value > 0 ? (s(), r("g", Be, [
|
|
235
|
+
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
|
|
239
236
|
key: `stack_underlayer_${o}`,
|
|
240
237
|
x: l.start,
|
|
241
238
|
y: 0,
|
|
242
239
|
width: l.width,
|
|
243
240
|
height: g.value.height,
|
|
244
241
|
fill: e.value.style.bar.gradient.underlayerColor,
|
|
245
|
-
class:
|
|
242
|
+
class: D({ animated: !w.value }),
|
|
246
243
|
style: v({
|
|
247
|
-
opacity:
|
|
244
|
+
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
248
245
|
})
|
|
249
|
-
}, null, 14,
|
|
250
|
-
(s(!0), r(x, null, $(
|
|
246
|
+
}, null, 14, Oe))), 128)),
|
|
247
|
+
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
|
|
251
248
|
key: `stack_${o}`,
|
|
252
249
|
x: l.start,
|
|
253
250
|
y: 0,
|
|
@@ -256,26 +253,26 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
256
253
|
fill: e.value.style.bar.gradient.show ? `url(#stack_gradient_${o}_${M.value})` : l.color,
|
|
257
254
|
stroke: e.value.style.backgroundColor,
|
|
258
255
|
"stroke-linecap": "round",
|
|
259
|
-
class:
|
|
256
|
+
class: D({ animated: !w.value }),
|
|
260
257
|
style: v({
|
|
261
|
-
opacity:
|
|
258
|
+
opacity: _.value !== null && e.value.style.tooltip.show ? _.value === o ? 1 : 0.5 : 1
|
|
262
259
|
})
|
|
263
|
-
}, null, 14,
|
|
264
|
-
(s(!0), r(x, null, $(
|
|
260
|
+
}, null, 14, Ve))), 128)),
|
|
261
|
+
(s(!0), r(x, null, $(z.value, (l, o) => (s(), r("rect", {
|
|
265
262
|
key: `stack_trap_${o}`,
|
|
266
|
-
onClick: () =>
|
|
263
|
+
onClick: () => Y(l, o),
|
|
267
264
|
x: l.start,
|
|
268
265
|
y: 0,
|
|
269
266
|
width: l.width,
|
|
270
267
|
height: g.value.height,
|
|
271
268
|
fill: "transparent",
|
|
272
269
|
stroke: "none",
|
|
273
|
-
class:
|
|
274
|
-
onMouseenter: () =>
|
|
270
|
+
class: D({ animated: !w.value }),
|
|
271
|
+
onMouseenter: () => ve({ datapoint: l, seriesIndex: o }),
|
|
275
272
|
onMouseleave: a[0] || (a[0] = (h) => {
|
|
276
|
-
|
|
273
|
+
N.value = !1, _.value = null;
|
|
277
274
|
})
|
|
278
|
-
}, null, 42,
|
|
275
|
+
}, null, 42, Te))), 128))
|
|
279
276
|
])) : (s(), r("rect", {
|
|
280
277
|
key: 1,
|
|
281
278
|
x: 2,
|
|
@@ -286,9 +283,9 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
286
283
|
"stroke-width": "2",
|
|
287
284
|
fill: "transparent",
|
|
288
285
|
rx: (g.value.height - 4) / 2
|
|
289
|
-
}, null, 8,
|
|
290
|
-
], 8,
|
|
291
|
-
j.value ? y("", !0) : (s(),
|
|
286
|
+
}, null, 8, Ue))
|
|
287
|
+
], 8, Pe)) : y("", !0),
|
|
288
|
+
j.value ? y("", !0) : (s(), ge(m(se), {
|
|
292
289
|
key: 2,
|
|
293
290
|
config: {
|
|
294
291
|
type: "sparkStackbar",
|
|
@@ -305,11 +302,11 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
305
302
|
style: v(`background:transparent;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"}`),
|
|
306
303
|
class: "vue-ui-sparkstackbar-legend"
|
|
307
304
|
}, [
|
|
308
|
-
(s(!0), r(x, null, $(
|
|
305
|
+
(s(!0), r(x, null, $(P.value, (l, o) => (s(), r("div", {
|
|
309
306
|
style: v(`font-size:${e.value.style.legend.fontSize}px;`),
|
|
310
|
-
class:
|
|
307
|
+
class: D({ "vue-ui-sparkstackbar-legend-item": !0, "vue-ui-sparkstackbar-legend-item-unselected": f.value.includes(o) }),
|
|
311
308
|
onClick: (h) => {
|
|
312
|
-
|
|
309
|
+
ce(o), Y(l, o);
|
|
313
310
|
}
|
|
314
311
|
}, [
|
|
315
312
|
p("div", Ee, [
|
|
@@ -327,18 +324,18 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
327
324
|
], 8, Me)),
|
|
328
325
|
p("span", {
|
|
329
326
|
style: v(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
330
|
-
},
|
|
327
|
+
}, C(l.name), 5),
|
|
331
328
|
e.value.style.legend.percentage.show ? (s(), r("span", {
|
|
332
329
|
key: 0,
|
|
333
330
|
style: v(`font-weight:${e.value.style.legend.percentage.bold ? "bold" : "normal"};color:${e.value.style.legend.percentage.color}`)
|
|
334
|
-
},
|
|
331
|
+
}, C(f.value.includes(o) ? " - " : l.proportionLabel), 5)) : y("", !0),
|
|
335
332
|
e.value.style.legend.value.show ? (s(), r("span", {
|
|
336
333
|
key: 1,
|
|
337
334
|
style: v(`font-weight:${e.value.style.legend.value.bold ? "bold" : "normal"};color:${e.value.style.legend.value.color}`)
|
|
338
|
-
}, " (" +
|
|
335
|
+
}, " (" + C(m(ee)(
|
|
339
336
|
e.value.style.legend.value.formatter,
|
|
340
337
|
l.value,
|
|
341
|
-
|
|
338
|
+
m(U)({
|
|
342
339
|
p: e.value.style.legend.value.prefix,
|
|
343
340
|
v: l.value,
|
|
344
341
|
s: e.value.style.legend.value.suffix,
|
|
@@ -349,8 +346,8 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
349
346
|
])
|
|
350
347
|
], 14, je))), 256))
|
|
351
348
|
], 4)) : y("", !0),
|
|
352
|
-
|
|
353
|
-
show:
|
|
349
|
+
H(m(re), {
|
|
350
|
+
show: N.value && e.value.style.tooltip.show,
|
|
354
351
|
parent: E.value,
|
|
355
352
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
356
353
|
color: e.value.style.tooltip.color,
|
|
@@ -361,24 +358,24 @@ const Se = ["xmlns", "viewBox"], ze = ["id"], Pe = ["stop-color"], De = ["stop-c
|
|
|
361
358
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
362
359
|
position: e.value.style.tooltip.position,
|
|
363
360
|
content: L.value,
|
|
364
|
-
isCustom:
|
|
361
|
+
isCustom: A.value,
|
|
365
362
|
offsetY: -124 + e.value.style.tooltip.offsetY,
|
|
366
363
|
blockShiftY: !0
|
|
367
364
|
}, {
|
|
368
|
-
"tooltip-before":
|
|
369
|
-
|
|
365
|
+
"tooltip-before": X(() => [
|
|
366
|
+
T(t.$slots, "tooltip-before", J(K({ ...O.value })), void 0, !0)
|
|
370
367
|
]),
|
|
371
|
-
"tooltip-after":
|
|
372
|
-
|
|
368
|
+
"tooltip-after": X(() => [
|
|
369
|
+
T(t.$slots, "tooltip-after", J(K({ ...O.value })), void 0, !0)
|
|
373
370
|
]),
|
|
374
371
|
_: 3
|
|
375
372
|
}, 8, ["show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY"]),
|
|
376
|
-
t.$slots.source ? (s(), r("div",
|
|
377
|
-
|
|
373
|
+
t.$slots.source ? (s(), r("div", Ie, [
|
|
374
|
+
T(t.$slots, "source", {}, void 0, !0)
|
|
378
375
|
], 512)) : y("", !0)
|
|
379
376
|
], 4));
|
|
380
377
|
}
|
|
381
|
-
},
|
|
378
|
+
}, Je = /* @__PURE__ */ Se(We, [["__scopeId", "data-v-bd91b3ec"]]);
|
|
382
379
|
export {
|
|
383
|
-
|
|
380
|
+
Je as default
|
|
384
381
|
};
|