vue-data-ui 3.1.3 → 3.1.5
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-DBaAWGvq.js → Arrow-BFbcF5Sq.js} +1 -1
- package/dist/{BaseDraggableDialog-BmN9jTP8.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
- package/dist/{BaseIcon-BcOSijbz.js → BaseIcon-BQQGRQ2U.js} +1 -1
- package/dist/{ColorPicker-D1yNPt76.js → ColorPicker-d1kmGapq.js} +2 -2
- package/dist/{DataTable-Cm8Tt9PQ.js → DataTable-D6voeZvO.js} +2 -2
- package/dist/{Legend-5qvgVkrY.js → Legend-nPGcCxG_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D3QGd7vP.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
- package/dist/{PackageVersion-0XlRFsI_.js → PackageVersion-BeStrsPr.js} +1 -1
- package/dist/{PenAndPaper-CyH7Ip2i.js → PenAndPaper-C6tiapdo.js} +3 -3
- package/dist/{Shape-DiplSMFy.js → Shape-DBVq0fdK.js} +1 -1
- package/dist/Slicer-Duqm7KZK.js +597 -0
- package/dist/{SparkTooltip-VveQSwlw.js → SparkTooltip-wNGmXZSx.js} +1 -1
- package/dist/{Title-CqYBs02Y.js → Title-ydtId0LC.js} +1 -1
- package/dist/Tooltip-oeu9knGI.js +200 -0
- package/dist/{UserOptions-ZmwlARCV.js → UserOptions-CnJxN2Vo.js} +29 -29
- package/dist/{dom-to-png-DGA4a3xT.js → dom-to-png-CMCYtLrX.js} +1 -1
- package/dist/{img-DSrvx9J6.js → img-Neec0VVb.js} +1 -1
- package/dist/{index-CaxArMHL.js → index-BkfuZCRT.js} +7 -2
- package/dist/{pdf-BG8PiGFH.js → pdf-CpQ-dqJh.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -0
- package/dist/types/vue-data-ui.d.ts +12 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DmtFf4bt.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
- package/dist/{useNestedProp-tWT02_6S.js → useNestedProp-BMzw9VUz.js} +1 -1
- package/dist/{usePrinter-BYtPmEo8.js → usePrinter-CEdg3j8S.js} +2 -2
- package/dist/{vue-data-ui-DVb8r5z7.js → vue-data-ui-D5B7a84o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BLKyWpz7.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
- package/dist/{vue-ui-accordion-DUlNpLir.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-LLqbXP1m.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
- package/dist/{vue-ui-annotator-CcYIlcKF.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
- package/dist/{vue-ui-bullet-BKmts_u4.js → vue-ui-bullet-VPchh2r2.js} +7 -7
- package/dist/{vue-ui-candlestick-C9l_NpXu.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
- package/dist/{vue-ui-carousel-table-H7xS6aBC.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
- package/dist/{vue-ui-chestnut-CAW0IOdY.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
- package/dist/{vue-ui-chord-CK5YhCqM.js → vue-ui-chord-DVSBY9ou.js} +8 -8
- package/dist/{vue-ui-circle-pack-NLyZgTGF.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
- package/dist/{vue-ui-cursor-CyGUrKWU.js → vue-ui-cursor-BIuc6nds.js} +2 -2
- package/dist/{vue-ui-dashboard-Cf5pvEzD.js → vue-ui-dashboard-C7xIcrvD.js} +79 -80
- package/dist/{vue-ui-digits-BZWwwp7c.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
- package/dist/{vue-ui-donut-g1WHrj6G.js → vue-ui-donut-BApz1ho5.js} +52 -50
- package/dist/{vue-ui-donut-evolution-CaEYMVZj.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
- package/dist/{vue-ui-dumbbell-BArS1nXS.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
- package/dist/{vue-ui-flow-BR0CB5qt.js → vue-ui-flow-COtJRNLE.js} +40 -38
- package/dist/{vue-ui-funnel-D2OCItvq.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
- package/dist/{vue-ui-galaxy-qgGF1AAf.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
- package/dist/{vue-ui-gauge-BIXmGyQL.js → vue-ui-gauge-CFUA5ORH.js} +8 -8
- package/dist/{vue-ui-gizmo-DHEoS051.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
- package/dist/{vue-ui-heatmap-tRzq9BnI.js → vue-ui-heatmap-DakytdCv.js} +68 -66
- package/dist/{vue-ui-history-plot-DmwHhrDk.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
- package/dist/{vue-ui-kpi-C2b2R5i1.js → vue-ui-kpi-UmcKQftv.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bs1Mi1tD.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
- package/dist/{vue-ui-molecule-BsUvf2v7.js → vue-ui-molecule-BZrmSVps.js} +63 -61
- package/dist/{vue-ui-mood-radar-D3JIpVvX.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
- package/dist/{vue-ui-nested-donuts-dJEgQXTH.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
- package/dist/{vue-ui-onion-D8dF1DdA.js → vue-ui-onion-aHCc3r7L.js} +38 -36
- package/dist/{vue-ui-parallel-coordinate-plot-LmFsg7UA.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
- package/dist/{vue-ui-quadrant-C4O8ki4N.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
- package/dist/{vue-ui-quick-chart-6bEtTQBG.js → vue-ui-quick-chart-CJ2Wdln9.js} +152 -150
- package/dist/{vue-ui-radar-CfjGWGk3.js → vue-ui-radar-Cgnooz7-.js} +121 -119
- package/dist/{vue-ui-rating-D3WSs2OD.js → vue-ui-rating-DF71ymNG.js} +2 -2
- package/dist/{vue-ui-relation-circle-DzTfi7Tf.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
- package/dist/{vue-ui-ridgeline-NtYOJvDy.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
- package/dist/{vue-ui-rings-CYQ4i71V.js → vue-ui-rings-C4hKgrft.js} +162 -160
- package/dist/{vue-ui-scatter-meJEHdAD.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
- package/dist/{vue-ui-skeleton-BtILTxx-.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
- package/dist/{vue-ui-smiley-B5bELpYD.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
- package/dist/{vue-ui-spark-trend-lixdWq_N.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
- package/dist/{vue-ui-sparkbar-CaGPav-J.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BZBGYDjs.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Bp6KxpjH.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
- package/dist/{vue-ui-sparkline-CF-EAZa6.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Cj1LAYC8.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
- package/dist/{vue-ui-stackbar-BrzKhqAK.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
- package/dist/{vue-ui-strip-plot-BfVVaSFn.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
- package/dist/{vue-ui-table-CBzNgzVP.js → vue-ui-table-BItmKbvF.js} +156 -121
- package/dist/{vue-ui-table-heatmap-CKz5bA7N.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
- package/dist/{vue-ui-table-sparkline-O-Z0YH6u.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
- package/dist/{vue-ui-thermometer-DpNyTGNH.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
- package/dist/{vue-ui-timer-uvshaRMI.js → vue-ui-timer-BIv2sfQA.js} +5 -5
- package/dist/{vue-ui-tiremarks-A8Akuz-q.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
- package/dist/{vue-ui-treemap-Dvmuo3tM.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
- package/dist/{vue-ui-vertical-bar-eMgRMSKN.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
- package/dist/{vue-ui-waffle-Cm8VfnG8.js → vue-ui-waffle-CewP8k-W.js} +67 -65
- package/dist/{vue-ui-wheel-Bhsklf_m.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
- package/dist/{vue-ui-word-cloud-C9HGLsG4.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
- package/dist/{vue-ui-world-B_MrjwGJ.js → vue-ui-world-CuwXMI3D.js} +11 -9
- package/dist/{vue-ui-xy-DnYJw2aS.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
- package/dist/{vue-ui-xy-canvas-C0Snw0Dz.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
- package/package.json +1 -1
- package/dist/Slicer-DG99wPTy.js +0 -604
- package/dist/Tooltip-CP0tVHAf.js +0 -161
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { useCssVars as Ut, defineAsyncComponent as K, useSlots as Xt, computed as y, ref as i, toRefs as Wt, watch as Ae, shallowRef as vt, onMounted as ze, nextTick as de, onBeforeUnmount as Gt, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as d, normalizeClass as U, createBlock as X, createCommentVNode as f, renderSlot as _, createVNode as J, createSlots as he, withCtx as m, normalizeProps as Q, guardReactiveProps as Z, createElementVNode as n, toDisplayString as h, Fragment as ee, renderList as te, mergeProps as ct, resolveDynamicComponent as Ht, withKeys as jt, createTextVNode as dt } from "vue";
|
|
2
|
-
import { u as qt, c as Yt, t as Kt, a as Jt, p as W, b as Qt, C as Ve, d as Zt, h as L, o as
|
|
2
|
+
import { u as qt, c as Yt, t as Kt, a as Jt, p as W, b as Qt, C as Ve, d as Zt, h as L, o as Fe, f as ue, e as Ie, k as pe, i as G, X as ea, s as Oe, x as ta, v as aa, w as la, y as oa, z as na } from "./index-BkfuZCRT.js";
|
|
3
3
|
import { t as ua, u as sa } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as ra, B as ia } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as va } from "./usePrinter-
|
|
6
|
-
import { u as ht } from "./useNestedProp-
|
|
5
|
+
import { u as va } from "./usePrinter-CEdg3j8S.js";
|
|
6
|
+
import { u as ht } from "./useNestedProp-BMzw9VUz.js";
|
|
7
7
|
import { u as ca } from "./useTableResponsive-Cbx-ACcP.js";
|
|
8
8
|
import { u as da } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as ha } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import pt from "./Legend-
|
|
11
|
-
import pa from "./vue-ui-accordion-
|
|
12
|
-
import fa from "./Title-
|
|
13
|
-
import { _ as ft } from "./Shape-
|
|
14
|
-
import ga from "./img-
|
|
10
|
+
import pt from "./Legend-nPGcCxG_.js";
|
|
11
|
+
import pa from "./vue-ui-accordion-DFxAHGEZ.js";
|
|
12
|
+
import fa from "./Title-ydtId0LC.js";
|
|
13
|
+
import { _ as ft } from "./Shape-DBVq0fdK.js";
|
|
14
|
+
import ga from "./img-Neec0VVb.js";
|
|
15
15
|
import { _ as ya } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "width", "height"], _a = ["id"], wa = ["stop-color"], $a = ["stop-color"], Ca = { key: 1 }, Ta = ["x", "y", "width", "height", "fill", "rx"], Sa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], La = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = { class: "vue-ui-horizontal-bar-child-label" }, za = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Va = ["x", "y", "font-size", "fill", "font-weight"],
|
|
16
|
+
const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "width", "height"], _a = ["id"], wa = ["stop-color"], $a = ["stop-color"], Ca = { key: 1 }, Ta = ["x", "y", "width", "height", "fill", "rx"], Sa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], La = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Pa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Na = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = { class: "vue-ui-horizontal-bar-child-label" }, za = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Va = ["x", "y", "font-size", "fill", "font-weight"], Fa = { class: "vue-ui-horizontal-bar-parent-label" }, Ia = ["x", "y", "font-size", "fill", "font-weight"], Oa = ["x", "y", "font-size", "fill", "font-weight"], Ma = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Da = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Ba = ["onClick"], Ra = { style: "width:100%;padding-top: 36px;position:relative" }, Ea = { class: "vue-ui-data-table" }, Ua = { key: 0 }, Xa = { style: { width: "100%" } }, Wa = ["data-cell"], Ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ha = ["data-cell"], ja = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, qa = ["data-cell"], Ya = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ka = ["data-cell"], Ja = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Qa = ["data-cell"], Za = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, el = ["data-cell"], tl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, al = ["data-cell"], ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ol = {
|
|
@@ -35,9 +35,9 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(gt, { expose: yt, emit: bt }) {
|
|
37
37
|
Ut((t) => ({
|
|
38
|
-
|
|
38
|
+
cbb69808: t.tdo
|
|
39
39
|
}));
|
|
40
|
-
const mt = K(() => import("./Tooltip-
|
|
40
|
+
const mt = K(() => import("./Tooltip-oeu9knGI.js")), Me = K(() => import("./BaseIcon-BQQGRQ2U.js")), kt = K(() => import("./PenAndPaper-C6tiapdo.js")), xt = K(() => import("./UserOptions-CnJxN2Vo.js")), _t = K(() => import("./PackageVersion-BeStrsPr.js")), wt = K(() => import("./BaseDraggableDialog-BO4B1Kwa.js")), { vue_ui_vertical_bar: $t } = qt(), Ct = Xt(), b = gt, fe = y({
|
|
41
41
|
get() {
|
|
42
42
|
return !!b.dataset && b.dataset.length;
|
|
43
43
|
},
|
|
@@ -57,7 +57,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
57
57
|
prepareConfig: $e,
|
|
58
58
|
callback: () => {
|
|
59
59
|
Promise.resolve().then(async () => {
|
|
60
|
-
q(), $.value.showTable = e.value.table.show, await
|
|
60
|
+
q(), $.value.showTable = e.value.table.show, await I();
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
63
|
skeletonDataset: Lt.value,
|
|
@@ -131,14 +131,14 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
131
131
|
elementId: `vue-ui-vertical-bar_${S.value}`,
|
|
132
132
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
133
133
|
options: e.value.userOptions.print
|
|
134
|
-
}), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Je = y(() => Zt(e.value.customPalette)), Qe = i(null), Nt = y(() => e.value.table.responsiveBreakpoint),
|
|
134
|
+
}), Pt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Je = y(() => Zt(e.value.customPalette)), Qe = i(null), Nt = y(() => e.value.table.responsiveBreakpoint), F = vt(null), j = vt(null), se = i("0 0 10 10"), N = y(() => {
|
|
135
135
|
const [t, l, a, o] = se.value.split(" ").map(Number);
|
|
136
136
|
return { x: t, y: l, width: a, height: o };
|
|
137
137
|
});
|
|
138
138
|
ze(async () => {
|
|
139
|
-
await de(), et(),
|
|
139
|
+
await de(), et(), I();
|
|
140
140
|
});
|
|
141
|
-
async function
|
|
141
|
+
async function I() {
|
|
142
142
|
if (se.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !H.value) return;
|
|
143
143
|
const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
144
144
|
if (t && t.length) {
|
|
@@ -172,7 +172,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
172
172
|
const { width: a, height: o } = l.contentRect;
|
|
173
173
|
if (a > 0 && o > 0) {
|
|
174
174
|
Promise.resolve().then(async () => {
|
|
175
|
-
q(), await
|
|
175
|
+
q(), await I();
|
|
176
176
|
});
|
|
177
177
|
break;
|
|
178
178
|
}
|
|
@@ -181,11 +181,11 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
181
181
|
});
|
|
182
182
|
const re = y(() => !!e.value.debug), Ce = i(0);
|
|
183
183
|
function et() {
|
|
184
|
-
if (
|
|
184
|
+
if (Fe(b.dataset) && (ue({
|
|
185
185
|
componentName: "VueUiVerticalBar",
|
|
186
186
|
type: "dataset",
|
|
187
187
|
debug: re.value
|
|
188
|
-
}), fe.value = !1, _e.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0),
|
|
188
|
+
}), fe.value = !1, _e.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Fe(b.dataset) || (_e.value = e.value.loading), e.value.responsive) {
|
|
189
189
|
const t = ua(() => {
|
|
190
190
|
const { width: l, height: a } = sa({
|
|
191
191
|
chart: P.value,
|
|
@@ -197,26 +197,26 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
197
197
|
Ce.value = a / 3, requestAnimationFrame(async () => {
|
|
198
198
|
lt.value = l;
|
|
199
199
|
const o = k.value * (ae.value - 1);
|
|
200
|
-
p.value = (a - o) / ae.value, await de(),
|
|
200
|
+
p.value = (a - o) / ae.value, await de(), I();
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
F.value && (j.value && F.value.unobserve(j.value), F.value.disconnect()), F.value = new ResizeObserver(t), j.value = P.value.parentNode, F.value.observe(j.value), e.value.autoSize && I();
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
Gt(() => {
|
|
207
|
-
|
|
207
|
+
F.value && (j.value && F.value.unobserve(j.value), F.value.disconnect());
|
|
208
208
|
});
|
|
209
209
|
const $ = i({
|
|
210
210
|
showTable: e.value.table.show,
|
|
211
211
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
212
212
|
showTooltip: e.value.style.chart.tooltip.show
|
|
213
|
-
}), tt = y(() => $.value.sortDesc),
|
|
213
|
+
}), tt = y(() => $.value.sortDesc), O = y(() => (xe.value.forEach((t, l) => {
|
|
214
214
|
!t.value && !t.children && ue({
|
|
215
215
|
componentName: "VueUiVerticalBar",
|
|
216
216
|
type: "datasetAttributeEmpty",
|
|
217
217
|
property: `value (index ${l})`,
|
|
218
218
|
debug: re.value
|
|
219
|
-
}), t.children && (
|
|
219
|
+
}), t.children && (Fe(t.children) ? ue({
|
|
220
220
|
componentName: "VueUiVerticalBar",
|
|
221
221
|
type: "datasetAttributeEmpty",
|
|
222
222
|
property: `children (index ${l})`,
|
|
@@ -245,7 +245,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
245
245
|
isChild: !1,
|
|
246
246
|
segregate: () => oe(a),
|
|
247
247
|
isSegregated: A.value.includes(a),
|
|
248
|
-
color:
|
|
248
|
+
color: Ie(t.color) || Je.value[l] || W[l] || W[l % W.length],
|
|
249
249
|
children: !t.children || !t.children.length ? [] : t.children.toSorted(ie.value ? () => 0 : (c, x) => tt.value ? x.value - c.value : c.value - x.value).map((c, x) => ({
|
|
250
250
|
...c,
|
|
251
251
|
value: L(Math.abs(c.value)),
|
|
@@ -258,7 +258,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
258
258
|
parentSign: w,
|
|
259
259
|
id: `vertical_child_${l}_${x}_${S.value}`,
|
|
260
260
|
childIndex: x,
|
|
261
|
-
color:
|
|
261
|
+
color: Ie(c.color) || Ie(t.color) || Je.value[l] || W[l] || W[l % W.length]
|
|
262
262
|
})).map((c, x) => ({
|
|
263
263
|
...c,
|
|
264
264
|
isFirstChild: x === 0,
|
|
@@ -290,19 +290,19 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
290
290
|
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
291
291
|
}));
|
|
292
292
|
async function q() {
|
|
293
|
-
ae.value = D.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await
|
|
293
|
+
ae.value = D.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await I();
|
|
294
294
|
}
|
|
295
295
|
const A = i([]);
|
|
296
296
|
async function oe(t) {
|
|
297
297
|
if (A.value.includes(t))
|
|
298
298
|
A.value = A.value.filter((l) => l !== t);
|
|
299
299
|
else {
|
|
300
|
-
if (A.value.length ===
|
|
300
|
+
if (A.value.length === O.value.length - 1) return;
|
|
301
301
|
A.value.push(t);
|
|
302
302
|
}
|
|
303
|
-
q(), await de(), e.value.autoSize &&
|
|
303
|
+
q(), await de(), e.value.autoSize && I(), St("selectLegend", D.value);
|
|
304
304
|
}
|
|
305
|
-
const D = y(() =>
|
|
305
|
+
const D = y(() => O.value.filter((t) => !A.value.includes(t.id))), V = y(() => D.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
306
306
|
function ot(t, l = !1, a = 0) {
|
|
307
307
|
return l ? G({
|
|
308
308
|
v: L(Math.abs(t) / V.value * 100),
|
|
@@ -328,33 +328,33 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
328
328
|
sign: a.sign
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ft() {
|
|
332
332
|
return D.value;
|
|
333
333
|
}
|
|
334
334
|
const Te = i(null), Se = i(null);
|
|
335
|
-
function
|
|
335
|
+
function It({ datapoint: t, seriesIndex: l }) {
|
|
336
336
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ot({ datapoint: t, seriesIndex: l }) {
|
|
339
339
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Tt.value = null, ge.value = !1, Te.value = null;
|
|
340
340
|
}
|
|
341
341
|
function Mt(t, l) {
|
|
342
342
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
|
|
343
343
|
datapoint: t,
|
|
344
344
|
seriesIndex: l,
|
|
345
|
-
series:
|
|
345
|
+
series: O.value,
|
|
346
346
|
config: e.value
|
|
347
347
|
}, ge.value = !0, Te.value = t.id;
|
|
348
348
|
let a = "";
|
|
349
349
|
const o = t.isChild ? t.parentName : t.name, g = t.isChild ? t.name : "", w = e.value.style.chart.tooltip.customFormat;
|
|
350
350
|
oa(w) && na(() => w({
|
|
351
351
|
datapoint: t,
|
|
352
|
-
series:
|
|
352
|
+
series: O.value,
|
|
353
353
|
config: e.value,
|
|
354
354
|
seriesIndex: l
|
|
355
355
|
})) ? ye.value = w({
|
|
356
356
|
datapoint: t,
|
|
357
|
-
series:
|
|
357
|
+
series: O.value,
|
|
358
358
|
config: e.value,
|
|
359
359
|
seriesIndex: l
|
|
360
360
|
}) : (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
@@ -530,9 +530,9 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
530
530
|
$.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
|
|
531
531
|
}
|
|
532
532
|
return yt({
|
|
533
|
-
autoSize:
|
|
533
|
+
autoSize: I,
|
|
534
534
|
// v3
|
|
535
|
-
getData:
|
|
535
|
+
getData: Ft,
|
|
536
536
|
getImage: Rt,
|
|
537
537
|
recalculateHeight: q,
|
|
538
538
|
generatePdf: Ye,
|
|
@@ -703,7 +703,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
703
703
|
}, [
|
|
704
704
|
(u(), X(pt, {
|
|
705
705
|
key: `legend_top_${me.value}`,
|
|
706
|
-
legendSet:
|
|
706
|
+
legendSet: O.value,
|
|
707
707
|
config: at.value,
|
|
708
708
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
709
709
|
}, he({
|
|
@@ -779,7 +779,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
779
779
|
}, null, 8, wa),
|
|
780
780
|
n("stop", {
|
|
781
781
|
offset: "100%",
|
|
782
|
-
"stop-color": s(
|
|
782
|
+
"stop-color": s(Oe)(s(ta)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
783
783
|
}, null, 8, $a)
|
|
784
784
|
], 8, _a))), 256)),
|
|
785
785
|
t.$slots.pattern ? (u(), v("g", Ca, [
|
|
@@ -804,7 +804,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
804
804
|
y: r.value.top + (k.value + p.value) * o,
|
|
805
805
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
806
806
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
807
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(
|
|
807
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Oe)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
808
808
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
809
809
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
810
810
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
@@ -862,7 +862,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
862
862
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
863
863
|
}, h(a.name), 9, Va)) : f("", !0)
|
|
864
864
|
]),
|
|
865
|
-
n("g",
|
|
865
|
+
n("g", Fa, [
|
|
866
866
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
867
867
|
key: 0,
|
|
868
868
|
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -871,7 +871,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
871
871
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
872
872
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
873
873
|
"text-anchor": "start"
|
|
874
|
-
}, h(ne(a, o).name), 9,
|
|
874
|
+
}, h(ne(a, o).name), 9, Ia)) : f("", !0),
|
|
875
875
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
876
876
|
key: 1,
|
|
877
877
|
x: e.value.autoSize ? void 0 : N.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -880,17 +880,17 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
880
880
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
881
881
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
882
882
|
"text-anchor": "start"
|
|
883
|
-
}, h(nt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9,
|
|
883
|
+
}, h(nt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, Oa)) : f("", !0)
|
|
884
884
|
]),
|
|
885
885
|
n("rect", {
|
|
886
886
|
x: N.value.x,
|
|
887
887
|
y: r.value.top + (k.value + p.value) * o - k.value / 2,
|
|
888
888
|
width: N.value.width,
|
|
889
889
|
height: p.value + k.value <= 0 ? 1e-4 : p.value + k.value,
|
|
890
|
-
fill: Te.value === a.id ? s(
|
|
890
|
+
fill: Te.value === a.id ? s(Oe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
891
891
|
onMouseenter: (g) => Mt(a, o),
|
|
892
|
-
onMouseleave: (g) =>
|
|
893
|
-
onClick: (g) =>
|
|
892
|
+
onMouseleave: (g) => Ot({ datapoint: a, seriesIndex: o }),
|
|
893
|
+
onClick: (g) => It({ datapoint: a, seriesIndex: o })
|
|
894
894
|
}, null, 40, Ma)
|
|
895
895
|
]))), 256)),
|
|
896
896
|
_(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
@@ -906,7 +906,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
906
906
|
}, [
|
|
907
907
|
(u(), X(pt, {
|
|
908
908
|
key: `legend_bottom_${me.value}`,
|
|
909
|
-
legendSet:
|
|
909
|
+
legendSet: O.value,
|
|
910
910
|
config: at.value,
|
|
911
911
|
onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
|
|
912
912
|
}, he({
|
|
@@ -943,7 +943,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
943
943
|
} : void 0
|
|
944
944
|
]), 1032, ["legendSet", "config"]))
|
|
945
945
|
], 512)) : f("", !0),
|
|
946
|
-
_(t.$slots, "legend", { legend:
|
|
946
|
+
_(t.$slots, "legend", { legend: O.value }, void 0, !0),
|
|
947
947
|
t.$slots.source ? (u(), v("div", {
|
|
948
948
|
key: 7,
|
|
949
949
|
ref_key: "source",
|
|
@@ -968,7 +968,9 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
968
968
|
isFullscreen: E.value,
|
|
969
969
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
970
970
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
971
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
971
|
+
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
972
|
+
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
973
|
+
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
972
974
|
}, {
|
|
973
975
|
"tooltip-before": m(() => [
|
|
974
976
|
_(t.$slots, "tooltip-before", Q(Z({ ...Se.value })), void 0, !0)
|
|
@@ -977,7 +979,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
977
979
|
_(t.$slots, "tooltip-after", Q(Z({ ...Se.value })), void 0, !0)
|
|
978
980
|
]),
|
|
979
981
|
_: 3
|
|
980
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
982
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
981
983
|
fe.value ? (u(), X(Ht(ce.value.component), ct({ key: 8 }, ce.value.props, {
|
|
982
984
|
ref_key: "tableUnit",
|
|
983
985
|
ref: le,
|
|
@@ -1149,7 +1151,7 @@ const ba = ["id"], ma = ["onClick"], ka = ["xmlns", "viewBox"], xa = ["x", "widt
|
|
|
1149
1151
|
s(Xe) ? (u(), X(ia, { key: 9 })) : f("", !0)
|
|
1150
1152
|
], 46, ba));
|
|
1151
1153
|
}
|
|
1152
|
-
}, kl = /* @__PURE__ */ ya(ol, [["__scopeId", "data-v-
|
|
1154
|
+
}, kl = /* @__PURE__ */ ya(ol, [["__scopeId", "data-v-5f6bbba1"]]);
|
|
1153
1155
|
export {
|
|
1154
1156
|
kl as default
|
|
1155
1157
|
};
|