vue-data-ui 3.5.0 → 3.5.1
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 +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { useCssVars as Zt, defineAsyncComponent as
|
|
2
|
-
import { c as na, t as ua, b as sa, p as
|
|
1
|
+
import { useCssVars as Zt, defineAsyncComponent as Z, useSlots as ea, computed as g, ref as i, toRefs as ta, watch as ze, shallowRef as ct, onMounted as Ve, nextTick as he, onBeforeUnmount as aa, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as c, normalizeClass as H, createBlock as j, createCommentVNode as m, renderSlot as y, createVNode as ee, withCtx as h, normalizeProps as O, guardReactiveProps as I, createSlots as pe, createElementVNode as n, toDisplayString as p, Fragment as te, renderList as ae, mergeProps as ht, resolveDynamicComponent as la, withKeys as oa, createTextVNode as pt } from "vue";
|
|
2
|
+
import { c as na, t as ua, b as sa, p as q, O as Oe, e as ra, x as P, o as Ie, f as ue, h as Fe, a as se, d as R, X as ia, s as Be, i as va, P as da, Q as ca, G as ha, H as pa } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as fa, u as ga } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ya, a as ft } from "./useNestedProp-
|
|
4
|
+
import { u as ya, a as ft } from "./useNestedProp-DjGXw6S9.js";
|
|
5
5
|
import { u as ba, B as ma } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as ka } from "./usePrinter-DTzqpYKF.js";
|
|
7
7
|
import { u as xa } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as wa } from "./useTableResponsive-Cbx-ACcP.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
9
|
+
import { u as $a } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as _a } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import { t as Ca } from "./themes-AUNCOb2G.js";
|
|
12
12
|
import gt from "./Legend-G6GMcdAc.js";
|
|
13
|
-
import Ta from "./vue-ui-accordion-
|
|
14
|
-
import Sa from "./Title-
|
|
13
|
+
import Ta from "./vue-ui-accordion-CqhVCfc2.js";
|
|
14
|
+
import Sa from "./Title-isbiM8i8.js";
|
|
15
15
|
import { _ as yt } from "./Shape-CNXKB8O0.js";
|
|
16
16
|
import La from "./img-BecE5qXd.js";
|
|
17
17
|
import { _ as Pa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "width", "height"], Oa = ["id"], Ia = ["stop-color"], Fa = ["stop-color"], Ba = { key: 1 }, Ma = ["x", "y", "width", "height", "fill", "rx"], Da = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ra = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ea = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ua = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xa = { class: "vue-ui-horizontal-bar-child-label" }, Ga = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Wa = ["x", "y", "font-size", "fill", "font-weight"], Ha = { class: "vue-ui-horizontal-bar-parent-label" }, ja = ["x", "y", "font-size", "fill", "font-weight"], qa = ["x", "y", "font-size", "fill", "font-weight"], Ya = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Ka = {
|
|
19
19
|
key: 5,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
}, Qa = ["onClick"], Ja = { style: "width:100%;padding-top: 36px;position:relative" }, Za = { class: "vue-ui-data-table" }, el = { key: 0 }, tl = { style: { width: "100%" } }, al = ["data-cell"], ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ol = ["data-cell"], nl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ul = ["data-cell"], sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, rl = ["data-cell"], il = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, vl = ["data-cell"],
|
|
21
|
+
}, Qa = ["onClick"], Ja = { style: "width:100%;padding-top: 36px;position:relative" }, Za = { class: "vue-ui-data-table" }, el = { key: 0 }, tl = { style: { width: "100%" } }, al = ["data-cell"], ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ol = ["data-cell"], nl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ul = ["data-cell"], sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, rl = ["data-cell"], il = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, vl = ["data-cell"], dl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, cl = ["data-cell"], hl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, gl = {
|
|
22
22
|
__name: "vue-ui-vertical-bar",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -37,16 +37,16 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
37
37
|
emits: ["selectLegend"],
|
|
38
38
|
setup(bt, { expose: mt, emit: kt }) {
|
|
39
39
|
Zt((t) => ({
|
|
40
|
-
|
|
40
|
+
bc1c4d4c: t.tdo
|
|
41
41
|
}));
|
|
42
|
-
const xt =
|
|
42
|
+
const xt = Z(() => import("./Tooltip-oWCO1HKy.js")), Me = Z(() => import("./BaseIcon-BmMbm4d0.js")), wt = Z(() => import("./PenAndPaper-SZQIAgkg.js")), $t = Z(() => import("./UserOptions-CGnQt6Fd.js")), _t = Z(() => import("./PackageVersion-DQvyATVa.js")), Ct = Z(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_vertical_bar: Tt } = ya(), St = ea(), k = bt, fe = g({
|
|
43
43
|
get() {
|
|
44
|
-
return !!
|
|
44
|
+
return !!k.dataset && k.dataset.length;
|
|
45
45
|
},
|
|
46
46
|
set(t) {
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
}), L = i(na()), ge = i(!1), ye = i(""), le = i(0), Lt = i(null), De = i(0), N = i(null), Re = i(null), be = i(null), Ee = i(null), Ue = i(null), Xe = i(0), me = i(0),
|
|
49
|
+
}), L = i(na()), ge = i(!1), ye = i(""), le = i(0), Lt = i(null), De = i(0), N = i(null), Re = i(null), be = i(null), Ee = i(null), Ue = i(null), Xe = i(0), me = i(0), Y = i(null), oe = i(null), ke = i(null), Pt = kt, e = i(Ce()), Nt = g(() => [
|
|
50
50
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
51
51
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
52
52
|
{ name: "", value: 4, color: "#d9d9d9" },
|
|
@@ -54,12 +54,12 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
54
54
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
55
55
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
56
56
|
]), { loading: Ge, FINAL_DATASET: xe, manualLoading: we } = ba({
|
|
57
|
-
...ta(
|
|
57
|
+
...ta(k),
|
|
58
58
|
FINAL_CONFIG: e,
|
|
59
59
|
prepareConfig: Ce,
|
|
60
60
|
callback: () => {
|
|
61
61
|
Promise.resolve().then(async () => {
|
|
62
|
-
|
|
62
|
+
Q(), _.value.showTable = e.value.table.show, await M();
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
65
|
skeletonDataset: Nt.value,
|
|
@@ -109,57 +109,57 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
})
|
|
112
|
-
}), { userOptionsVisible:
|
|
112
|
+
}), { userOptionsVisible: $e, setUserOptionsVisibility: We, keepUserOptionState: He } = $a({ config: e.value }), { svgRef: _e } = _a({ config: e.value.style.chart.title });
|
|
113
113
|
function Ce() {
|
|
114
114
|
const t = ft({
|
|
115
|
-
userConfig:
|
|
115
|
+
userConfig: k.config,
|
|
116
116
|
defaultConfig: Tt
|
|
117
117
|
});
|
|
118
118
|
let l = {};
|
|
119
119
|
return t.theme ? l = {
|
|
120
120
|
...ft({
|
|
121
|
-
userConfig: Ca.vue_ui_vertical_bar[t.theme] ||
|
|
121
|
+
userConfig: Ca.vue_ui_vertical_bar[t.theme] || k.config,
|
|
122
122
|
defaultConfig: t
|
|
123
123
|
}),
|
|
124
|
-
customPalette: sa[t.theme] ||
|
|
125
|
-
} : l = t,
|
|
124
|
+
customPalette: sa[t.theme] || q
|
|
125
|
+
} : l = t, k.config && Oe(k.config, "events.datapointEnter") ? l.events.datapointEnter = k.config.events.datapointEnter : l.events.datapointEnter = null, k.config && Oe(k.config, "events.datapointLeave") ? l.events.datapointLeave = k.config.events.datapointLeave : l.events.datapointLeave = null, k.config && Oe(k.config, "events.datapointClick") ? l.events.datapointClick = k.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
126
126
|
}
|
|
127
|
-
ze(() =>
|
|
128
|
-
Ge.value || (e.value = Ce()),
|
|
129
|
-
}, { deep: !0 }), ze(() =>
|
|
130
|
-
Array.isArray(t) && t.length > 0 && (we.value = !1),
|
|
127
|
+
ze(() => k.config, (t) => {
|
|
128
|
+
Ge.value || (e.value = Ce()), $e.value = !e.value.userOptions.showOnChartHover, et(), Xe.value += 1, me.value += 1, f.value = e.value.style.chart.layout.bars.height, x.value = e.value.style.chart.layout.bars.gap, _.value.showTable = e.value.table.show, _.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", _.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
129
|
+
}, { deep: !0 }), ze(() => k.dataset, (t) => {
|
|
130
|
+
Array.isArray(t) && t.length > 0 && (we.value = !1), Q();
|
|
131
131
|
}, { deep: !0 });
|
|
132
132
|
const { isPrinting: je, isImaging: qe, generatePdf: Ye, generateImage: Ke } = ka({
|
|
133
133
|
elementId: `vue-ui-vertical-bar_${L.value}`,
|
|
134
134
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
135
135
|
options: e.value.userOptions.print
|
|
136
|
-
}), At =
|
|
136
|
+
}), At = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = g(() => ra(e.value.customPalette)), Je = i(null), zt = g(() => e.value.table.responsiveBreakpoint), B = ct(null), K = ct(null), re = i("0 0 10 10"), A = g(() => {
|
|
137
137
|
const [t, l, a, o] = re.value.split(" ").map(Number);
|
|
138
138
|
return { x: t, y: l, width: a, height: o };
|
|
139
139
|
});
|
|
140
140
|
Ve(async () => {
|
|
141
|
-
await he(), et(),
|
|
141
|
+
await he(), et(), M();
|
|
142
142
|
});
|
|
143
|
-
async function
|
|
144
|
-
if (re.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !
|
|
145
|
-
const t =
|
|
143
|
+
async function M() {
|
|
144
|
+
if (re.value = `0 0 ${C.value.width} ${r.value.fullHeight}`, !e.value.autoSize || !Y.value) return;
|
|
145
|
+
const t = Y.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = Y.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
146
146
|
if (t && t.length) {
|
|
147
|
-
const
|
|
148
|
-
const w =
|
|
149
|
-
return w.length ? Array.from(w).map((
|
|
150
|
-
})),
|
|
151
|
-
const w =
|
|
152
|
-
return w.length ? Array.from(w).map((
|
|
147
|
+
const b = Math.max(...Array.from(t).flatMap((d) => {
|
|
148
|
+
const w = d.querySelectorAll("text");
|
|
149
|
+
return w.length ? Array.from(w).map((J) => J.getBBox().width) : 0;
|
|
150
|
+
})), $ = Math.max(...Array.from(l).flatMap((d) => {
|
|
151
|
+
const w = d.querySelectorAll("text");
|
|
152
|
+
return w.length ? Array.from(w).map((J) => J.getBBox().width) : 0;
|
|
153
153
|
}));
|
|
154
|
-
Array.from(t).forEach((
|
|
155
|
-
const w =
|
|
156
|
-
Array.from(w).forEach(async (
|
|
157
|
-
|
|
154
|
+
Array.from(t).forEach((d) => {
|
|
155
|
+
const w = d.querySelectorAll("text");
|
|
156
|
+
Array.from(w).forEach(async (J) => {
|
|
157
|
+
J.setAttribute("x", 0), J.setAttribute("x", P(-b - $));
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
await he();
|
|
162
|
-
const a =
|
|
162
|
+
const a = Y.value ? Y.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
|
|
163
163
|
re.value = [
|
|
164
164
|
a.x + -o,
|
|
165
165
|
0,
|
|
@@ -174,20 +174,20 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
174
174
|
const { width: a, height: o } = l.contentRect;
|
|
175
175
|
if (a > 0 && o > 0) {
|
|
176
176
|
Promise.resolve().then(async () => {
|
|
177
|
-
|
|
177
|
+
Q(), await M();
|
|
178
178
|
});
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
}), Ze.observe(N.value.parentElement));
|
|
183
183
|
});
|
|
184
|
-
const ie =
|
|
184
|
+
const ie = g(() => !!e.value.debug), Te = i(0);
|
|
185
185
|
function et() {
|
|
186
|
-
if (Ie(
|
|
186
|
+
if (Ie(k.dataset) && (ue({
|
|
187
187
|
componentName: "VueUiVerticalBar",
|
|
188
188
|
type: "dataset",
|
|
189
189
|
debug: ie.value
|
|
190
|
-
}), fe.value = !1, we.value = !0), le.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ie(
|
|
190
|
+
}), fe.value = !1, we.value = !0), le.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ie(k.dataset) || (we.value = e.value.loading), e.value.responsive) {
|
|
191
191
|
const t = fa(() => {
|
|
192
192
|
const { width: l, height: a } = ga({
|
|
193
193
|
chart: N.value,
|
|
@@ -199,20 +199,20 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
199
199
|
Te.value = a / 3, requestAnimationFrame(async () => {
|
|
200
200
|
lt.value = l;
|
|
201
201
|
const o = x.value * (le.value - 1);
|
|
202
|
-
|
|
202
|
+
f.value = (a - o) / le.value, await he(), M();
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
B.value && (K.value && B.value.unobserve(K.value), B.value.disconnect()), B.value = new ResizeObserver(t), K.value = N.value.parentNode, B.value.observe(K.value), e.value.autoSize && M();
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
aa(() => {
|
|
209
|
-
|
|
209
|
+
B.value && (K.value && B.value.unobserve(K.value), B.value.disconnect());
|
|
210
210
|
});
|
|
211
|
-
const
|
|
211
|
+
const _ = i({
|
|
212
212
|
showTable: e.value.table.show,
|
|
213
213
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
214
214
|
showTooltip: e.value.style.chart.tooltip.show
|
|
215
|
-
}), tt =
|
|
215
|
+
}), tt = g(() => _.value.sortDesc), z = g(() => (xe.value.forEach((t, l) => {
|
|
216
216
|
!t.value && !t.children && ue({
|
|
217
217
|
componentName: "VueUiVerticalBar",
|
|
218
218
|
type: "datasetAttributeEmpty",
|
|
@@ -234,47 +234,47 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
234
234
|
});
|
|
235
235
|
}));
|
|
236
236
|
}), xe.value.map((t, l) => {
|
|
237
|
-
const a = `vertical_parent_${l}_${L.value}`, o = t.children && t.children.length > 0,
|
|
237
|
+
const a = `vertical_parent_${l}_${L.value}`, o = t.children && t.children.length > 0, b = P(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, w) => d + w, 0) : 0), $ = b >= 0 ? 1 : -1;
|
|
238
238
|
return {
|
|
239
239
|
...t,
|
|
240
240
|
id: a,
|
|
241
241
|
absoluteIndex: l,
|
|
242
242
|
shape: "square",
|
|
243
243
|
opacity: T.value.includes(a) ? 0.5 : 1,
|
|
244
|
-
value: Math.abs(
|
|
245
|
-
sign:
|
|
244
|
+
value: Math.abs(b),
|
|
245
|
+
sign: $,
|
|
246
246
|
hasChildren: o,
|
|
247
247
|
isChild: !1,
|
|
248
|
-
segregate: () =>
|
|
248
|
+
segregate: () => E(a),
|
|
249
249
|
isSegregated: T.value.includes(a),
|
|
250
|
-
color: Fe(t.color) || Qe.value[l] ||
|
|
251
|
-
children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (
|
|
252
|
-
...
|
|
253
|
-
value: P(Math.abs(
|
|
250
|
+
color: Fe(t.color) || Qe.value[l] || q[l] || q[l % q.length],
|
|
251
|
+
children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (d, w) => tt.value ? w.value - d.value : d.value - w.value).map((d, w) => ({
|
|
252
|
+
...d,
|
|
253
|
+
value: P(Math.abs(d.value)),
|
|
254
254
|
absoluteIndex: l,
|
|
255
|
-
sign:
|
|
255
|
+
sign: d.value >= 0 ? 1 : -1,
|
|
256
256
|
isChild: !0,
|
|
257
257
|
parentId: a,
|
|
258
258
|
parentName: t.name,
|
|
259
|
-
parentValue:
|
|
260
|
-
parentSign:
|
|
259
|
+
parentValue: b,
|
|
260
|
+
parentSign: $,
|
|
261
261
|
id: `vertical_child_${l}_${w}_${L.value}`,
|
|
262
262
|
childIndex: w,
|
|
263
|
-
color: Fe(
|
|
264
|
-
})).map((
|
|
265
|
-
...
|
|
263
|
+
color: Fe(d.color) || Fe(t.color) || Qe.value[l] || q[l] || q[l % q.length]
|
|
264
|
+
})).map((d, w) => ({
|
|
265
|
+
...d,
|
|
266
266
|
isFirstChild: w === 0,
|
|
267
267
|
isLastChild: w === t.children.length - 1
|
|
268
268
|
}))
|
|
269
269
|
};
|
|
270
|
-
}).toSorted(ve.value ? () => 0 : (t, l) => tt.value ? l.value - t.value : t.value - l.value))), at =
|
|
270
|
+
}).toSorted(ve.value ? () => 0 : (t, l) => tt.value ? l.value - t.value : t.value - l.value))), at = g(() => ({
|
|
271
271
|
cy: "vertical-bar-div-legend",
|
|
272
272
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
273
273
|
color: e.value.style.chart.legend.color,
|
|
274
274
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
275
275
|
paddingBottom: 12,
|
|
276
276
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
277
|
-
})),
|
|
277
|
+
})), f = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap), Vt = g(() => (f.value + x.value) * le.value), lt = i(512), C = g(() => ({
|
|
278
278
|
width: lt.value,
|
|
279
279
|
height: Vt.value,
|
|
280
280
|
padding: {
|
|
@@ -283,7 +283,7 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
283
283
|
right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
|
|
284
284
|
bottom: 12
|
|
285
285
|
}
|
|
286
|
-
})), r =
|
|
286
|
+
})), r = g(() => ({
|
|
287
287
|
fullHeight: C.value.padding.top + C.value.padding.bottom + C.value.height,
|
|
288
288
|
top: C.value.padding.top,
|
|
289
289
|
left: C.value.padding.left,
|
|
@@ -291,18 +291,18 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
291
291
|
bottom: C.value.padding.top + C.value.height,
|
|
292
292
|
width: C.value.width - (C.value.padding.left + C.value.padding.right)
|
|
293
293
|
}));
|
|
294
|
-
async function
|
|
295
|
-
le.value =
|
|
294
|
+
async function Q() {
|
|
295
|
+
le.value = U.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await M();
|
|
296
296
|
}
|
|
297
297
|
const T = i([]);
|
|
298
|
-
async function
|
|
298
|
+
async function E(t) {
|
|
299
299
|
if (T.value.includes(t))
|
|
300
300
|
T.value = T.value.filter((l) => l !== t);
|
|
301
301
|
else {
|
|
302
302
|
if (T.value.length === z.value.length - 1) return;
|
|
303
303
|
T.value.push(t);
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
Q(), await he(), e.value.autoSize && M(), Pt("selectLegend", U.value);
|
|
306
306
|
}
|
|
307
307
|
function ot(t) {
|
|
308
308
|
if (!z.value.length)
|
|
@@ -312,40 +312,40 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
312
312
|
}
|
|
313
313
|
function Ot(t) {
|
|
314
314
|
const l = ot(t);
|
|
315
|
-
l !== null && T.value.includes(l.id) &&
|
|
315
|
+
l !== null && T.value.includes(l.id) && E(l.id);
|
|
316
316
|
}
|
|
317
317
|
function It(t) {
|
|
318
318
|
const l = ot(t);
|
|
319
|
-
l !== null && (T.value.includes(l.id) ||
|
|
319
|
+
l !== null && (T.value.includes(l.id) || E(l.id));
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const U = g(() => z.value.filter((t) => !T.value.includes(t.id))), F = g(() => U.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
322
322
|
function nt(t, l = !1, a = 0) {
|
|
323
|
-
return l ?
|
|
324
|
-
v: P(Math.abs(t) /
|
|
323
|
+
return l ? R({
|
|
324
|
+
v: P(Math.abs(t) / F.value * 100),
|
|
325
325
|
s: "%",
|
|
326
326
|
r: a
|
|
327
|
-
}) : Math.abs(t) /
|
|
327
|
+
}) : Math.abs(t) / F.value;
|
|
328
328
|
}
|
|
329
|
-
const
|
|
329
|
+
const X = g(() => U.value.flatMap((t) => t.hasChildren ? t.children : t)), G = g(() => X.value.map((t) => t.sign).includes(-1)), Ft = g(() => Math.max(...U.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
|
|
330
330
|
function S(t) {
|
|
331
331
|
const l = t / Ft.value;
|
|
332
|
-
return r.value.width / (
|
|
332
|
+
return r.value.width / (G.value ? 2 : 1) * l;
|
|
333
333
|
}
|
|
334
334
|
function Bt(t) {
|
|
335
335
|
return S(t) + r.value.left;
|
|
336
336
|
}
|
|
337
337
|
function ne(t, l) {
|
|
338
|
-
const a =
|
|
338
|
+
const a = U.value.find(($) => $.id === t.parentId), o = r.value.top + (x.value + f.value) * l, b = a.children.length * (x.value + f.value);
|
|
339
339
|
return {
|
|
340
|
-
y: o +
|
|
340
|
+
y: o + b / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
341
341
|
name: a.name,
|
|
342
342
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
343
|
-
percentageToTotal: isNaN(a.value /
|
|
343
|
+
percentageToTotal: isNaN(a.value / F.value) ? "" : nt(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
344
344
|
sign: a.sign
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
347
|
function Mt() {
|
|
348
|
-
return
|
|
348
|
+
return U.value;
|
|
349
349
|
}
|
|
350
350
|
const Se = i(null), Le = i(null);
|
|
351
351
|
function Dt({ datapoint: t, seriesIndex: l }) {
|
|
@@ -362,35 +362,35 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
362
362
|
config: e.value
|
|
363
363
|
}, ge.value = !0, Se.value = t.id;
|
|
364
364
|
let a = "";
|
|
365
|
-
const o = t.isChild ? t.parentName : t.name,
|
|
366
|
-
ha(
|
|
365
|
+
const o = t.isChild ? t.parentName : t.name, b = t.isChild ? t.name : "", $ = e.value.style.chart.tooltip.customFormat;
|
|
366
|
+
ha($) && pa(() => $({
|
|
367
367
|
datapoint: t,
|
|
368
368
|
series: z.value,
|
|
369
369
|
config: e.value,
|
|
370
370
|
seriesIndex: l
|
|
371
|
-
})) ? ye.value =
|
|
371
|
+
})) ? ye.value = $({
|
|
372
372
|
datapoint: t,
|
|
373
373
|
series: z.value,
|
|
374
374
|
config: e.value,
|
|
375
375
|
seriesIndex: l
|
|
376
376
|
}) : (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;">
|
|
377
377
|
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${St.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${L.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
378
|
-
${
|
|
378
|
+
${b ? `<div>${b}</div>` : ""}
|
|
379
379
|
</div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${se(
|
|
380
380
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
381
381
|
t.sign === 1 ? t.value : -t.value,
|
|
382
|
-
|
|
382
|
+
R({
|
|
383
383
|
p: e.value.style.chart.tooltip.prefix,
|
|
384
384
|
v: t.sign === 1 ? t.value : -t.value,
|
|
385
385
|
s: e.value.style.chart.tooltip.suffix,
|
|
386
386
|
r: e.value.style.chart.tooltip.roundingValue
|
|
387
387
|
}),
|
|
388
388
|
{ datapoint: t, seriesIndex: l }
|
|
389
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
390
|
-
v: Math.abs(t.value) /
|
|
389
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${R({
|
|
390
|
+
v: Math.abs(t.value) / F.value * 100,
|
|
391
391
|
s: "%",
|
|
392
392
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
393
|
-
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
393
|
+
})}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${R({
|
|
394
394
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
395
395
|
s: "%",
|
|
396
396
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -399,20 +399,20 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
399
399
|
function ut(t, l, a, o) {
|
|
400
400
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
401
401
|
return "";
|
|
402
|
-
const
|
|
402
|
+
const b = se(
|
|
403
403
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
404
404
|
P(o === -1 && t >= 0 ? -t : t),
|
|
405
|
-
|
|
405
|
+
R({
|
|
406
406
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
407
407
|
v: P(o === -1 && t >= 0 ? -t : t),
|
|
408
408
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
409
409
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
410
410
|
}),
|
|
411
411
|
{ datapoint: l, seriesIndex: a }
|
|
412
|
-
),
|
|
413
|
-
return `${
|
|
412
|
+
), $ = `(${nt(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
413
|
+
return `${b}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${$}` : ""}`;
|
|
414
414
|
}
|
|
415
|
-
const V =
|
|
415
|
+
const V = g(() => {
|
|
416
416
|
const t = [
|
|
417
417
|
e.value.translations.parentName,
|
|
418
418
|
e.value.translations.value,
|
|
@@ -421,15 +421,15 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
421
421
|
e.value.translations.value,
|
|
422
422
|
e.value.translations.percentageToSerie,
|
|
423
423
|
e.value.translations.percentageToTotal
|
|
424
|
-
], l =
|
|
424
|
+
], l = X.value.map((a) => a.isChild ? a.isFirstChild ? {
|
|
425
425
|
color: a.color,
|
|
426
426
|
parentName: a.parentName,
|
|
427
427
|
parentValue: a.parentValue,
|
|
428
|
-
percentageToTotal: a.parentValue /
|
|
428
|
+
percentageToTotal: a.parentValue / F.value,
|
|
429
429
|
childName: a.name,
|
|
430
430
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
431
431
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
432
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
432
|
+
childPercentageToTotal: Math.abs(a.value) / F.value
|
|
433
433
|
} : {
|
|
434
434
|
color: "",
|
|
435
435
|
parentName: "",
|
|
@@ -438,12 +438,12 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
438
438
|
childName: a.name,
|
|
439
439
|
childValue: a.sign === 1 ? a.value : -a.value,
|
|
440
440
|
childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
|
|
441
|
-
childPercentageToTotal: Math.abs(a.value) /
|
|
441
|
+
childPercentageToTotal: Math.abs(a.value) / F.value
|
|
442
442
|
} : {
|
|
443
443
|
color: a.color,
|
|
444
444
|
parentName: a.name,
|
|
445
445
|
parentValue: a.sign === 1 ? a.value : -a.value,
|
|
446
|
-
percentageToTotal: Math.abs(a.value) /
|
|
446
|
+
percentageToTotal: Math.abs(a.value) / F.value,
|
|
447
447
|
childName: "",
|
|
448
448
|
childValue: "",
|
|
449
449
|
childPercentageToParent: "",
|
|
@@ -452,64 +452,64 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
452
452
|
return { head: t, body: l };
|
|
453
453
|
});
|
|
454
454
|
function Pe(t = null) {
|
|
455
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = V.value.head, o = V.value.body.map((
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
]),
|
|
464
|
-
t ? t(
|
|
455
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = V.value.head, o = V.value.body.map((d) => [
|
|
456
|
+
d.parentName,
|
|
457
|
+
d.parentValue,
|
|
458
|
+
d.percentageToTotal,
|
|
459
|
+
d.childName,
|
|
460
|
+
d.childValue,
|
|
461
|
+
d.childPercentageToParent,
|
|
462
|
+
d.childPercentageToTotal
|
|
463
|
+
]), b = l.concat([a]).concat(o), $ = da(b);
|
|
464
|
+
t ? t($) : ca({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
465
465
|
}
|
|
466
|
-
const
|
|
466
|
+
const W = i(!1);
|
|
467
467
|
function st(t) {
|
|
468
|
-
|
|
468
|
+
W.value = t, De.value += 1;
|
|
469
469
|
}
|
|
470
470
|
function rt() {
|
|
471
|
-
|
|
471
|
+
_.value.showTable = !_.value.showTable;
|
|
472
472
|
}
|
|
473
473
|
const Ut = i({
|
|
474
474
|
none: 0,
|
|
475
475
|
asc: 1,
|
|
476
476
|
desc: 2
|
|
477
|
-
}),
|
|
477
|
+
}), D = i(0), ve = i(!1);
|
|
478
478
|
Ve(() => {
|
|
479
479
|
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
|
|
480
480
|
componentName: "VueUiVerticalBar",
|
|
481
481
|
type: "attributeWrongValue",
|
|
482
482
|
property: "style.chart.layout.bars.sort",
|
|
483
483
|
key: e.value.style.chart.layout.bars.sort
|
|
484
|
-
}),
|
|
484
|
+
}), D.value = Ut.value[e.value.style.chart.layout.bars.sort], _.value.sortDesc = D.value === 2, ve.value = D.value === 0;
|
|
485
485
|
});
|
|
486
486
|
function Xt() {
|
|
487
|
-
|
|
487
|
+
D.value += 1, D.value > 2 && (D.value = 0);
|
|
488
488
|
}
|
|
489
489
|
function it() {
|
|
490
|
-
Xt(),
|
|
490
|
+
Xt(), _.value.sortDesc = D.value === 2, ve.value = D.value === 0, Q();
|
|
491
491
|
}
|
|
492
492
|
function vt() {
|
|
493
|
-
|
|
493
|
+
_.value.showTooltip = !_.value.showTooltip;
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const de = i(!1);
|
|
496
496
|
function Ne() {
|
|
497
|
-
|
|
497
|
+
de.value = !de.value;
|
|
498
498
|
}
|
|
499
499
|
async function Gt({ scale: t = 2 } = {}) {
|
|
500
500
|
if (!N.value) return;
|
|
501
|
-
const { width: l, height: a } = N.value.getBoundingClientRect(), o = l / a, { imageUri:
|
|
501
|
+
const { width: l, height: a } = N.value.getBoundingClientRect(), o = l / a, { imageUri: b, base64: $ } = await La({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
502
502
|
return {
|
|
503
|
-
imageUri:
|
|
504
|
-
base64:
|
|
503
|
+
imageUri: b,
|
|
504
|
+
base64: $,
|
|
505
505
|
title: e.value.style.chart.title.text,
|
|
506
506
|
width: l,
|
|
507
507
|
height: a,
|
|
508
508
|
aspectRatio: o
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
const
|
|
512
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
511
|
+
const ce = g(() => {
|
|
512
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
|
|
513
513
|
return {
|
|
514
514
|
component: t ? Ct : Ta,
|
|
515
515
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -518,7 +518,7 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
518
518
|
color: e.value.table.th.color,
|
|
519
519
|
headerColor: e.value.table.th.color,
|
|
520
520
|
headerBg: e.value.table.th.backgroundColor,
|
|
521
|
-
isFullscreen:
|
|
521
|
+
isFullscreen: W.value,
|
|
522
522
|
fullscreenParent: N.value,
|
|
523
523
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
524
524
|
} : {
|
|
@@ -538,20 +538,20 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
});
|
|
541
|
-
ze(() =>
|
|
541
|
+
ze(() => _.value.showTable, (t) => {
|
|
542
542
|
e.value.table.show || (t && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
|
|
543
543
|
});
|
|
544
544
|
const { isResponsive: Wt } = wa(Je, zt);
|
|
545
545
|
function Ae() {
|
|
546
|
-
|
|
546
|
+
_.value.showTable = !1, ke.value && ke.value.setTableIconState(!1);
|
|
547
547
|
}
|
|
548
|
-
const Ht =
|
|
548
|
+
const Ht = g(() => z.value.map((t, l) => ({
|
|
549
549
|
...t,
|
|
550
550
|
shape: "square",
|
|
551
551
|
display: `${t.name}: ${se(
|
|
552
552
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
553
553
|
t.value,
|
|
554
|
-
|
|
554
|
+
R({
|
|
555
555
|
p: e.value.style.chart.legend.prefix,
|
|
556
556
|
v: t.value,
|
|
557
557
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -559,33 +559,33 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
559
559
|
}),
|
|
560
560
|
{ datapoint: t, seriesIndex: l }
|
|
561
561
|
)}`
|
|
562
|
-
}))), jt =
|
|
562
|
+
}))), jt = g(() => e.value.style.chart.backgroundColor), qt = g(() => e.value.style.chart.legend), Yt = g(() => e.value.style.chart.title), Kt = g(() => Ht.value.map((t) => ({
|
|
563
563
|
...t,
|
|
564
564
|
name: t.display
|
|
565
565
|
}))), { exportSvg: Qt, getSvg: Jt } = xa({
|
|
566
|
-
svg:
|
|
566
|
+
svg: _e,
|
|
567
567
|
title: Yt,
|
|
568
568
|
legend: qt,
|
|
569
569
|
legendItems: Kt,
|
|
570
570
|
backgroundColor: jt
|
|
571
571
|
});
|
|
572
|
-
async function
|
|
572
|
+
async function dt({ isCb: t }) {
|
|
573
573
|
if (t) {
|
|
574
|
-
const { blob: l, url: a, text: o, dataUrl:
|
|
575
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl:
|
|
574
|
+
const { blob: l, url: a, text: o, dataUrl: b } = await Jt();
|
|
575
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: b });
|
|
576
576
|
} else
|
|
577
577
|
Qt();
|
|
578
578
|
}
|
|
579
579
|
return mt({
|
|
580
|
-
autoSize:
|
|
580
|
+
autoSize: M,
|
|
581
581
|
// v3
|
|
582
582
|
getData: Mt,
|
|
583
583
|
getImage: Gt,
|
|
584
|
-
recalculateHeight:
|
|
584
|
+
recalculateHeight: Q,
|
|
585
585
|
generatePdf: Ye,
|
|
586
586
|
generateCsv: Pe,
|
|
587
587
|
generateImage: Ke,
|
|
588
|
-
generateSvg:
|
|
588
|
+
generateSvg: dt,
|
|
589
589
|
hideSeries: It,
|
|
590
590
|
showSeries: Ot,
|
|
591
591
|
toggleTable: rt,
|
|
@@ -594,36 +594,56 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
594
594
|
toggleAnnotator: Ne,
|
|
595
595
|
toggleFullscreen: st
|
|
596
596
|
}), (t, l) => (u(), v("div", {
|
|
597
|
-
class:
|
|
597
|
+
class: H(`vue-data-ui-component vue-ui-vertical-bar ${W.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
598
598
|
ref_key: "verticalBarChart",
|
|
599
599
|
ref: N,
|
|
600
600
|
id: `vue-ui-vertical-bar_${L.value}`,
|
|
601
|
-
style:
|
|
601
|
+
style: c(`padding-top:${e.value.responsive && e.value.autoSize ? `${Te.value / 2}px` : "0"}; font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? e.value.autoSize ? `height:calc(100% - ${Te.value}px` : "height: 100%" : ""}`),
|
|
602
602
|
onMouseenter: l[3] || (l[3] = () => s(We)(!0)),
|
|
603
603
|
onMouseleave: l[4] || (l[4] = () => s(We)(!1))
|
|
604
604
|
}, [
|
|
605
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
605
|
+
e.value.userOptions.buttons.annotator ? (u(), j(s(wt), {
|
|
606
606
|
key: 0,
|
|
607
|
-
svgRef: s(
|
|
607
|
+
svgRef: s(_e),
|
|
608
608
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
609
609
|
color: e.value.style.chart.color,
|
|
610
|
-
active:
|
|
610
|
+
active: de.value,
|
|
611
611
|
onClose: Ne
|
|
612
|
-
},
|
|
612
|
+
}, {
|
|
613
|
+
"annotator-action-close": h(() => [
|
|
614
|
+
y(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
615
|
+
]),
|
|
616
|
+
"annotator-action-color": h(({ color: a }) => [
|
|
617
|
+
y(t.$slots, "annotator-action-color", O(I({ color: a })), void 0, !0)
|
|
618
|
+
]),
|
|
619
|
+
"annotator-action-draw": h(({ mode: a }) => [
|
|
620
|
+
y(t.$slots, "annotator-action-draw", O(I({ mode: a })), void 0, !0)
|
|
621
|
+
]),
|
|
622
|
+
"annotator-action-undo": h(({ disabled: a }) => [
|
|
623
|
+
y(t.$slots, "annotator-action-undo", O(I({ disabled: a })), void 0, !0)
|
|
624
|
+
]),
|
|
625
|
+
"annotator-action-redo": h(({ disabled: a }) => [
|
|
626
|
+
y(t.$slots, "annotator-action-redo", O(I({ disabled: a })), void 0, !0)
|
|
627
|
+
]),
|
|
628
|
+
"annotator-action-delete": h(({ disabled: a }) => [
|
|
629
|
+
y(t.$slots, "annotator-action-delete", O(I({ disabled: a })), void 0, !0)
|
|
630
|
+
]),
|
|
631
|
+
_: 3
|
|
632
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
613
633
|
At.value ? (u(), v("div", {
|
|
614
634
|
key: 1,
|
|
615
635
|
ref_key: "noTitle",
|
|
616
636
|
ref: Ue,
|
|
617
637
|
class: "vue-data-ui-no-title-space",
|
|
618
638
|
style: "height:36px; width: 100%;background:transparent"
|
|
619
|
-
}, null, 512)) :
|
|
639
|
+
}, null, 512)) : m("", !0),
|
|
620
640
|
e.value.style.chart.title.text ? (u(), v("div", {
|
|
621
641
|
key: 2,
|
|
622
642
|
ref_key: "chartTitle",
|
|
623
643
|
ref: Re,
|
|
624
644
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
625
645
|
}, [
|
|
626
|
-
(u(),
|
|
646
|
+
(u(), j(Sa, {
|
|
627
647
|
key: `title_${Xe.value}`,
|
|
628
648
|
config: {
|
|
629
649
|
title: {
|
|
@@ -636,8 +656,8 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
636
656
|
}
|
|
637
657
|
}
|
|
638
658
|
}, null, 8, ["config"]))
|
|
639
|
-
], 512)) :
|
|
640
|
-
e.value.userOptions.show && fe.value && (s(He) || s(
|
|
659
|
+
], 512)) : m("", !0),
|
|
660
|
+
e.value.userOptions.show && fe.value && (s(He) || s($e)) ? (u(), j(s($t), {
|
|
641
661
|
ref_key: "userOptionsRef",
|
|
642
662
|
ref: ke,
|
|
643
663
|
key: `user_options_${De.value}`,
|
|
@@ -654,13 +674,13 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
654
674
|
hasTable: e.value.userOptions.buttons.table,
|
|
655
675
|
hasSort: e.value.userOptions.buttons.sort,
|
|
656
676
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
657
|
-
isFullscreen:
|
|
658
|
-
isTooltip:
|
|
677
|
+
isFullscreen: W.value,
|
|
678
|
+
isTooltip: _.value.showTooltip,
|
|
659
679
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
660
680
|
chartElement: N.value,
|
|
661
681
|
position: e.value.userOptions.position,
|
|
662
682
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
663
|
-
isAnnotation:
|
|
683
|
+
isAnnotation: de.value,
|
|
664
684
|
callbacks: e.value.userOptions.callbacks,
|
|
665
685
|
printScale: e.value.userOptions.print.scale,
|
|
666
686
|
tableDialog: e.value.table.useDialog,
|
|
@@ -668,112 +688,112 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
668
688
|
onGeneratePdf: s(Ye),
|
|
669
689
|
onGenerateCsv: Pe,
|
|
670
690
|
onGenerateImage: s(Ke),
|
|
671
|
-
onGenerateSvg:
|
|
691
|
+
onGenerateSvg: dt,
|
|
672
692
|
onToggleTable: rt,
|
|
673
693
|
onToggleSort: it,
|
|
674
694
|
onToggleTooltip: vt,
|
|
675
695
|
onToggleAnnotator: Ne,
|
|
676
|
-
style:
|
|
677
|
-
visibility: s(He) ? s(
|
|
696
|
+
style: c({
|
|
697
|
+
visibility: s(He) ? s($e) ? "visible" : "hidden" : "visible"
|
|
678
698
|
})
|
|
679
699
|
}, pe({ _: 2 }, [
|
|
680
700
|
t.$slots.menuIcon ? {
|
|
681
701
|
name: "menuIcon",
|
|
682
|
-
fn:
|
|
683
|
-
|
|
702
|
+
fn: h(({ isOpen: a, color: o }) => [
|
|
703
|
+
y(t.$slots, "menuIcon", O(I({ isOpen: a, color: o })), void 0, !0)
|
|
684
704
|
]),
|
|
685
705
|
key: "0"
|
|
686
706
|
} : void 0,
|
|
687
707
|
t.$slots.optionTooltip ? {
|
|
688
708
|
name: "optionTooltip",
|
|
689
|
-
fn:
|
|
690
|
-
|
|
709
|
+
fn: h(() => [
|
|
710
|
+
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
691
711
|
]),
|
|
692
712
|
key: "1"
|
|
693
713
|
} : void 0,
|
|
694
714
|
t.$slots.optionPdf ? {
|
|
695
715
|
name: "optionPdf",
|
|
696
|
-
fn:
|
|
697
|
-
|
|
716
|
+
fn: h(() => [
|
|
717
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
698
718
|
]),
|
|
699
719
|
key: "2"
|
|
700
720
|
} : void 0,
|
|
701
721
|
t.$slots.optionCsv ? {
|
|
702
722
|
name: "optionCsv",
|
|
703
|
-
fn:
|
|
704
|
-
|
|
723
|
+
fn: h(() => [
|
|
724
|
+
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
705
725
|
]),
|
|
706
726
|
key: "3"
|
|
707
727
|
} : void 0,
|
|
708
728
|
t.$slots.optionImg ? {
|
|
709
729
|
name: "optionImg",
|
|
710
|
-
fn:
|
|
711
|
-
|
|
730
|
+
fn: h(() => [
|
|
731
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
712
732
|
]),
|
|
713
733
|
key: "4"
|
|
714
734
|
} : void 0,
|
|
715
735
|
t.$slots.optionSvg ? {
|
|
716
736
|
name: "optionSvg",
|
|
717
|
-
fn:
|
|
718
|
-
|
|
737
|
+
fn: h(() => [
|
|
738
|
+
y(t.$slots, "optionSvg", {}, void 0, !0)
|
|
719
739
|
]),
|
|
720
740
|
key: "5"
|
|
721
741
|
} : void 0,
|
|
722
742
|
t.$slots.optionTable ? {
|
|
723
743
|
name: "optionTable",
|
|
724
|
-
fn:
|
|
725
|
-
|
|
744
|
+
fn: h(() => [
|
|
745
|
+
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
726
746
|
]),
|
|
727
747
|
key: "6"
|
|
728
748
|
} : void 0,
|
|
729
749
|
t.$slots.optionLabels ? {
|
|
730
750
|
name: "optionLabels",
|
|
731
|
-
fn:
|
|
732
|
-
|
|
751
|
+
fn: h(() => [
|
|
752
|
+
y(t.$slots, "optionLabels", {}, void 0, !0)
|
|
733
753
|
]),
|
|
734
754
|
key: "7"
|
|
735
755
|
} : void 0,
|
|
736
756
|
t.$slots.optionSort ? {
|
|
737
757
|
name: "optionSort",
|
|
738
|
-
fn:
|
|
739
|
-
|
|
758
|
+
fn: h(() => [
|
|
759
|
+
y(t.$slots, "optionSort", {}, void 0, !0)
|
|
740
760
|
]),
|
|
741
761
|
key: "8"
|
|
742
762
|
} : void 0,
|
|
743
763
|
t.$slots.optionFullscreen ? {
|
|
744
764
|
name: "optionFullscreen",
|
|
745
|
-
fn:
|
|
746
|
-
|
|
765
|
+
fn: h(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
766
|
+
y(t.$slots, "optionFullscreen", O(I({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
747
767
|
]),
|
|
748
768
|
key: "9"
|
|
749
769
|
} : void 0,
|
|
750
770
|
t.$slots.optionAnnotator ? {
|
|
751
771
|
name: "optionAnnotator",
|
|
752
|
-
fn:
|
|
753
|
-
|
|
772
|
+
fn: h(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
773
|
+
y(t.$slots, "optionAnnotator", O(I({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
754
774
|
]),
|
|
755
775
|
key: "10"
|
|
756
776
|
} : void 0
|
|
757
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
777
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
758
778
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
|
|
759
779
|
key: 4,
|
|
760
780
|
ref_key: "chartLegend",
|
|
761
781
|
ref: be
|
|
762
782
|
}, [
|
|
763
|
-
(u(),
|
|
783
|
+
(u(), j(gt, {
|
|
764
784
|
key: `legend_top_${me.value}`,
|
|
765
785
|
legendSet: z.value,
|
|
766
786
|
config: at.value,
|
|
767
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
787
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => E(a.id))
|
|
768
788
|
}, pe({
|
|
769
|
-
item:
|
|
789
|
+
item: h(({ legend: a, index: o }) => [
|
|
770
790
|
n("div", {
|
|
771
|
-
onClick: (
|
|
772
|
-
style:
|
|
773
|
-
},
|
|
791
|
+
onClick: (b) => E(a.id),
|
|
792
|
+
style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
|
|
793
|
+
}, p(a.name) + ": " + p(s(se)(
|
|
774
794
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
775
795
|
a.value,
|
|
776
|
-
s(
|
|
796
|
+
s(R)({
|
|
777
797
|
p: e.value.style.chart.legend.prefix,
|
|
778
798
|
v: a.value,
|
|
779
799
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -786,8 +806,8 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
786
806
|
}, [
|
|
787
807
|
t.$slots.pattern ? {
|
|
788
808
|
name: "legend-pattern",
|
|
789
|
-
fn:
|
|
790
|
-
|
|
809
|
+
fn: h(({ legend: a, index: o }) => [
|
|
810
|
+
ee(yt, {
|
|
791
811
|
shape: a.shape,
|
|
792
812
|
radius: 30,
|
|
793
813
|
stroke: "none",
|
|
@@ -798,21 +818,21 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
798
818
|
key: "0"
|
|
799
819
|
} : void 0
|
|
800
820
|
]), 1032, ["legendSet", "config"]))
|
|
801
|
-
], 512)) :
|
|
821
|
+
], 512)) : m("", !0),
|
|
802
822
|
(u(), v("svg", {
|
|
803
823
|
ref_key: "svgRef",
|
|
804
|
-
ref:
|
|
824
|
+
ref: _e,
|
|
805
825
|
xmlns: s(ia),
|
|
806
|
-
class:
|
|
826
|
+
class: H({ "vue-data-ui-fullscreen--on": W.value, "vue-data-ui-fulscreen--off": !W.value }),
|
|
807
827
|
viewBox: re.value,
|
|
808
|
-
style:
|
|
828
|
+
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
809
829
|
}, [
|
|
810
830
|
n("g", {
|
|
811
831
|
ref_key: "G",
|
|
812
|
-
ref:
|
|
832
|
+
ref: Y,
|
|
813
833
|
class: "vue-data-ui-g"
|
|
814
834
|
}, [
|
|
815
|
-
|
|
835
|
+
ee(s(_t)),
|
|
816
836
|
t.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
817
837
|
key: 0,
|
|
818
838
|
x: A.value.x,
|
|
@@ -823,9 +843,9 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
823
843
|
pointerEvents: "none"
|
|
824
844
|
}
|
|
825
845
|
}, [
|
|
826
|
-
|
|
827
|
-
], 8, Va)) :
|
|
828
|
-
(u(!0), v(te, null, ae(
|
|
846
|
+
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
847
|
+
], 8, Va)) : m("", !0),
|
|
848
|
+
(u(!0), v(te, null, ae(X.value, (a, o) => (u(), v("linearGradient", {
|
|
829
849
|
x1: "0%",
|
|
830
850
|
y1: "0%",
|
|
831
851
|
x2: "100%",
|
|
@@ -842,57 +862,57 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
842
862
|
}, null, 8, Fa)
|
|
843
863
|
], 8, Oa))), 256)),
|
|
844
864
|
t.$slots.pattern ? (u(), v("g", Ba, [
|
|
845
|
-
(u(!0), v(te, null, ae(
|
|
846
|
-
|
|
865
|
+
(u(!0), v(te, null, ae(X.value, (a) => (u(), v("defs", null, [
|
|
866
|
+
y(t.$slots, "pattern", ht({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${L.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
847
867
|
]))), 256))
|
|
848
|
-
])) :
|
|
849
|
-
(u(!0), v(te, null, ae(
|
|
868
|
+
])) : m("", !0),
|
|
869
|
+
(u(!0), v(te, null, ae(X.value, (a, o) => (u(), v("g", null, [
|
|
850
870
|
n("rect", {
|
|
851
|
-
x: s(P)(
|
|
852
|
-
y: r.value.top + (x.value +
|
|
871
|
+
x: s(P)(G.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
|
|
872
|
+
y: r.value.top + (x.value + f.value) * o,
|
|
853
873
|
width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
|
|
854
|
-
height:
|
|
874
|
+
height: f.value <= 0 ? 1e-4 : f.value,
|
|
855
875
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
856
876
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
857
|
-
class:
|
|
877
|
+
class: H({ animated: e.value.useCssAnimation })
|
|
858
878
|
}, null, 10, Ma)
|
|
859
879
|
]))), 256)),
|
|
860
|
-
(u(!0), v(te, null, ae(
|
|
880
|
+
(u(!0), v(te, null, ae(X.value, (a, o) => (u(), v("g", null, [
|
|
861
881
|
n("rect", {
|
|
862
|
-
x: s(P)(
|
|
863
|
-
y: r.value.top + (x.value +
|
|
882
|
+
x: s(P)(G.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
|
|
883
|
+
y: r.value.top + (x.value + f.value) * o,
|
|
864
884
|
width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
|
|
865
|
-
height:
|
|
885
|
+
height: f.value <= 0 ? 1e-4 : f.value,
|
|
866
886
|
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${L.value}_${o})` : s(Be)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
867
887
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
868
888
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
869
889
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
870
|
-
class:
|
|
890
|
+
class: H({ animated: e.value.useCssAnimation })
|
|
871
891
|
}, null, 10, Da),
|
|
872
892
|
t.$slots.pattern ? (u(), v("rect", {
|
|
873
893
|
key: 0,
|
|
874
|
-
x: s(P)(
|
|
875
|
-
y: r.value.top + (x.value +
|
|
894
|
+
x: s(P)(G.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : S(a.value) <= 0 ? 1e-4 : S(a.value)) : r.value.left),
|
|
895
|
+
y: r.value.top + (x.value + f.value) * o,
|
|
876
896
|
width: s(P)(S(a.value) <= 0 ? 1e-4 : S(a.value)),
|
|
877
|
-
height:
|
|
897
|
+
height: f.value <= 0 ? 1e-4 : f.value,
|
|
878
898
|
fill: `url(#pattern_${L.value}_${a.absoluteIndex})`,
|
|
879
899
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
880
900
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
881
901
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
882
|
-
class:
|
|
883
|
-
}, null, 10, Ra)) :
|
|
884
|
-
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
902
|
+
class: H({ animated: e.value.useCssAnimation })
|
|
903
|
+
}, null, 10, Ra)) : m("", !0),
|
|
904
|
+
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== X.value.length - 1 ? (u(), v("line", {
|
|
885
905
|
key: 1,
|
|
886
906
|
x1: A.value.x,
|
|
887
907
|
x2: e.value.style.chart.layout.separators.fullWidth ? A.value.width - Math.abs(A.value.x) : r.value.left,
|
|
888
|
-
y1:
|
|
889
|
-
y2:
|
|
908
|
+
y1: f.value + x.value / 2 + r.value.top + (x.value + f.value) * o,
|
|
909
|
+
y2: f.value + x.value / 2 + r.value.top + (x.value + f.value) * o,
|
|
890
910
|
stroke: e.value.style.chart.layout.separators.color,
|
|
891
911
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
892
912
|
"stroke-linecap": "round",
|
|
893
913
|
style: { transition: "none !important", animation: "none !important" }
|
|
894
|
-
}, null, 8, Ea)) :
|
|
895
|
-
|
|
914
|
+
}, null, 8, Ea)) : m("", !0),
|
|
915
|
+
G.value && e.value.style.chart.layout.separators.show ? (u(), v("line", {
|
|
896
916
|
key: 2,
|
|
897
917
|
x1: r.value.left + r.value.width / 2,
|
|
898
918
|
x2: r.value.left + r.value.width / 2,
|
|
@@ -901,25 +921,25 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
901
921
|
stroke: e.value.style.chart.layout.separators.color,
|
|
902
922
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
903
923
|
"stroke-linecap": "round"
|
|
904
|
-
}, null, 8, Ua)) :
|
|
924
|
+
}, null, 8, Ua)) : m("", !0),
|
|
905
925
|
n("g", Xa, [
|
|
906
926
|
n("text", {
|
|
907
|
-
x:
|
|
908
|
-
y: r.value.top + (x.value +
|
|
909
|
-
"text-anchor": !
|
|
927
|
+
x: G.value ? r.value.left + r.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Bt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
928
|
+
y: r.value.top + (x.value + f.value) * o + f.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
929
|
+
"text-anchor": !G.value || a.sign === -1 ? "start" : "end",
|
|
910
930
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
911
931
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
912
932
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
913
|
-
},
|
|
933
|
+
}, p(ut(a.value, a, o, a.sign)), 9, Ga),
|
|
914
934
|
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), v("text", {
|
|
915
935
|
key: 0,
|
|
916
936
|
"text-anchor": "end",
|
|
917
937
|
x: r.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
918
|
-
y: r.value.top + (x.value +
|
|
938
|
+
y: r.value.top + (x.value + f.value) * o + f.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
919
939
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
920
940
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
921
941
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
922
|
-
},
|
|
942
|
+
}, p(a.name), 9, Wa)) : m("", !0)
|
|
923
943
|
]),
|
|
924
944
|
n("g", Ha, [
|
|
925
945
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
@@ -930,7 +950,7 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
930
950
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
931
951
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
932
952
|
"text-anchor": "start"
|
|
933
|
-
},
|
|
953
|
+
}, p(ne(a, o).name), 9, ja)) : m("", !0),
|
|
934
954
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), v("text", {
|
|
935
955
|
key: 1,
|
|
936
956
|
x: e.value.autoSize ? void 0 : A.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
@@ -939,44 +959,44 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
939
959
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
940
960
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
941
961
|
"text-anchor": "start"
|
|
942
|
-
},
|
|
962
|
+
}, p(ut(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, qa)) : m("", !0)
|
|
943
963
|
]),
|
|
944
964
|
n("rect", {
|
|
945
965
|
x: A.value.x,
|
|
946
|
-
y: r.value.top + (x.value +
|
|
966
|
+
y: r.value.top + (x.value + f.value) * o - x.value / 2,
|
|
947
967
|
width: A.value.width,
|
|
948
|
-
height:
|
|
968
|
+
height: f.value + x.value <= 0 ? 1e-4 : f.value + x.value,
|
|
949
969
|
fill: Se.value === a.id ? s(Be)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
950
|
-
onMouseenter: (
|
|
951
|
-
onMouseleave: (
|
|
952
|
-
onClick: (
|
|
970
|
+
onMouseenter: (b) => Et(a, o),
|
|
971
|
+
onMouseleave: (b) => Rt({ datapoint: a, seriesIndex: o }),
|
|
972
|
+
onClick: (b) => Dt({ datapoint: a, seriesIndex: o })
|
|
953
973
|
}, null, 40, Ya)
|
|
954
974
|
]))), 256)),
|
|
955
|
-
|
|
975
|
+
y(t.$slots, "svg", { svg: A.value }, void 0, !0)
|
|
956
976
|
], 512)
|
|
957
977
|
], 14, za)),
|
|
958
978
|
t.$slots.watermark ? (u(), v("div", Ka, [
|
|
959
|
-
|
|
960
|
-
])) :
|
|
979
|
+
y(t.$slots, "watermark", O(I({ isPrinting: s(je) || s(qe) })), void 0, !0)
|
|
980
|
+
])) : m("", !0),
|
|
961
981
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
|
|
962
982
|
key: 6,
|
|
963
983
|
ref_key: "chartLegend",
|
|
964
984
|
ref: be
|
|
965
985
|
}, [
|
|
966
|
-
(u(),
|
|
986
|
+
(u(), j(gt, {
|
|
967
987
|
key: `legend_bottom_${me.value}`,
|
|
968
988
|
legendSet: z.value,
|
|
969
989
|
config: at.value,
|
|
970
|
-
onClickMarker: l[1] || (l[1] = ({ legend: a }) =>
|
|
990
|
+
onClickMarker: l[1] || (l[1] = ({ legend: a }) => E(a.id))
|
|
971
991
|
}, pe({
|
|
972
|
-
item:
|
|
992
|
+
item: h(({ legend: a, index: o }) => [
|
|
973
993
|
n("div", {
|
|
974
|
-
onClick: (
|
|
975
|
-
style:
|
|
976
|
-
},
|
|
994
|
+
onClick: (b) => E(a.id),
|
|
995
|
+
style: c(`opacity:${T.value.includes(a.id) ? 0.5 : 1}`)
|
|
996
|
+
}, p(a.name) + ": " + p(s(se)(
|
|
977
997
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
978
998
|
a.value,
|
|
979
|
-
s(
|
|
999
|
+
s(R)({
|
|
980
1000
|
p: e.value.style.chart.legend.prefix,
|
|
981
1001
|
v: a.value,
|
|
982
1002
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -989,8 +1009,8 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
989
1009
|
}, [
|
|
990
1010
|
t.$slots.pattern ? {
|
|
991
1011
|
name: "legend-pattern",
|
|
992
|
-
fn:
|
|
993
|
-
|
|
1012
|
+
fn: h(({ legend: a, index: o }) => [
|
|
1013
|
+
ee(yt, {
|
|
994
1014
|
shape: a.shape,
|
|
995
1015
|
radius: 30,
|
|
996
1016
|
stroke: "none",
|
|
@@ -1001,18 +1021,18 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1001
1021
|
key: "0"
|
|
1002
1022
|
} : void 0
|
|
1003
1023
|
]), 1032, ["legendSet", "config"]))
|
|
1004
|
-
], 512)) :
|
|
1005
|
-
|
|
1024
|
+
], 512)) : m("", !0),
|
|
1025
|
+
y(t.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
1006
1026
|
t.$slots.source ? (u(), v("div", {
|
|
1007
1027
|
key: 7,
|
|
1008
1028
|
ref_key: "source",
|
|
1009
1029
|
ref: Ee,
|
|
1010
1030
|
dir: "auto"
|
|
1011
1031
|
}, [
|
|
1012
|
-
|
|
1013
|
-
], 512)) :
|
|
1014
|
-
|
|
1015
|
-
show:
|
|
1032
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
1033
|
+
], 512)) : m("", !0),
|
|
1034
|
+
ee(s(xt), {
|
|
1035
|
+
show: _.value.showTooltip && ge.value && T.value.length < k.dataset.length,
|
|
1016
1036
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1017
1037
|
color: e.value.style.chart.tooltip.color,
|
|
1018
1038
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1024,43 +1044,43 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1024
1044
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1025
1045
|
parent: N.value,
|
|
1026
1046
|
content: ye.value,
|
|
1027
|
-
isFullscreen:
|
|
1047
|
+
isFullscreen: W.value,
|
|
1028
1048
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1029
1049
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1030
1050
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1031
1051
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1032
1052
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1033
1053
|
}, {
|
|
1034
|
-
"tooltip-before":
|
|
1035
|
-
|
|
1054
|
+
"tooltip-before": h(() => [
|
|
1055
|
+
y(t.$slots, "tooltip-before", O(I({ ...Le.value })), void 0, !0)
|
|
1036
1056
|
]),
|
|
1037
|
-
"tooltip-after":
|
|
1038
|
-
|
|
1057
|
+
"tooltip-after": h(() => [
|
|
1058
|
+
y(t.$slots, "tooltip-after", O(I({ ...Le.value })), void 0, !0)
|
|
1039
1059
|
]),
|
|
1040
1060
|
_: 3
|
|
1041
1061
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1042
|
-
fe.value && e.value.userOptions.buttons.table ? (u(),
|
|
1062
|
+
fe.value && e.value.userOptions.buttons.table ? (u(), j(la(ce.value.component), ht({ key: 8 }, ce.value.props, {
|
|
1043
1063
|
ref_key: "tableUnit",
|
|
1044
1064
|
ref: oe,
|
|
1045
1065
|
onClose: Ae
|
|
1046
1066
|
}), pe({
|
|
1047
|
-
content:
|
|
1067
|
+
content: h(() => [
|
|
1048
1068
|
n("div", {
|
|
1049
1069
|
ref_key: "tableContainer",
|
|
1050
1070
|
ref: Je,
|
|
1051
1071
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1052
|
-
style:
|
|
1072
|
+
style: c(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1053
1073
|
}, [
|
|
1054
1074
|
n("div", Ja, [
|
|
1055
|
-
e.value.table.useDialog ?
|
|
1075
|
+
e.value.table.useDialog ? m("", !0) : (u(), v("div", {
|
|
1056
1076
|
key: 0,
|
|
1057
1077
|
role: "button",
|
|
1058
1078
|
tabindex: "0",
|
|
1059
|
-
style:
|
|
1079
|
+
style: c(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
1060
1080
|
onClick: Ae,
|
|
1061
1081
|
onKeypress: oa(Ae, ["enter"])
|
|
1062
1082
|
}, [
|
|
1063
|
-
|
|
1083
|
+
ee(s(Me), {
|
|
1064
1084
|
name: "close",
|
|
1065
1085
|
stroke: e.value.table.th.color,
|
|
1066
1086
|
"stroke-width": 2
|
|
@@ -1068,111 +1088,111 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1068
1088
|
], 36)),
|
|
1069
1089
|
n("div", {
|
|
1070
1090
|
style: { width: "100%", "container-type": "inline-size" },
|
|
1071
|
-
class:
|
|
1091
|
+
class: H({ "vue-ui-responsive": s(Wt) })
|
|
1072
1092
|
}, [
|
|
1073
1093
|
n("table", Za, [
|
|
1074
|
-
e.value.table.useDialog ?
|
|
1094
|
+
e.value.table.useDialog ? m("", !0) : (u(), v("caption", {
|
|
1075
1095
|
key: 0,
|
|
1076
|
-
style:
|
|
1096
|
+
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1077
1097
|
class: "vue-ui-data-table__caption"
|
|
1078
1098
|
}, [
|
|
1079
|
-
pt(
|
|
1080
|
-
e.value.style.chart.title.subtitle.text ? (u(), v("span", el,
|
|
1099
|
+
pt(p(e.value.style.chart.title.text) + " ", 1),
|
|
1100
|
+
e.value.style.chart.title.subtitle.text ? (u(), v("span", el, p(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
|
|
1081
1101
|
], 4)),
|
|
1082
1102
|
n("thead", null, [
|
|
1083
1103
|
n("tr", {
|
|
1084
1104
|
role: "row",
|
|
1085
|
-
style:
|
|
1105
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1086
1106
|
}, [
|
|
1087
1107
|
(u(!0), v(te, null, ae(V.value.head, (a) => (u(), v("th", {
|
|
1088
|
-
style:
|
|
1108
|
+
style: c(`outline:${e.value.table.th.outline}`)
|
|
1089
1109
|
}, [
|
|
1090
|
-
n("div", tl,
|
|
1110
|
+
n("div", tl, p(a), 1)
|
|
1091
1111
|
], 4))), 256))
|
|
1092
1112
|
], 4),
|
|
1093
1113
|
n("tr", null, [
|
|
1094
1114
|
n("th", {
|
|
1095
|
-
style:
|
|
1115
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1096
1116
|
}, null, 4),
|
|
1097
1117
|
n("th", {
|
|
1098
|
-
style:
|
|
1099
|
-
}, "∑ " +
|
|
1118
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
1119
|
+
}, "∑ " + p(e.value.table.td.prefix) + p(isNaN(F.value) ? "" : F.value.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 5),
|
|
1100
1120
|
n("th", {
|
|
1101
|
-
style:
|
|
1121
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
1102
1122
|
}, "100%", 4),
|
|
1103
1123
|
n("th", {
|
|
1104
|
-
style:
|
|
1124
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1105
1125
|
}, null, 4),
|
|
1106
1126
|
n("th", {
|
|
1107
|
-
style:
|
|
1127
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1108
1128
|
}, null, 4),
|
|
1109
1129
|
n("th", {
|
|
1110
|
-
style:
|
|
1130
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1111
1131
|
}, null, 4),
|
|
1112
1132
|
n("th", {
|
|
1113
|
-
style:
|
|
1133
|
+
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1114
1134
|
}, null, 4)
|
|
1115
1135
|
])
|
|
1116
1136
|
]),
|
|
1117
1137
|
n("tbody", null, [
|
|
1118
1138
|
(u(!0), v(te, null, ae(V.value.body, (a, o) => (u(), v("tr", {
|
|
1119
|
-
class:
|
|
1120
|
-
style:
|
|
1139
|
+
class: H({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
1140
|
+
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1121
1141
|
}, [
|
|
1122
1142
|
n("td", {
|
|
1123
1143
|
class: "vue-ui-data-table__tbody__td",
|
|
1124
|
-
style:
|
|
1144
|
+
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1125
1145
|
"data-cell": V.value.head[0] ?? ""
|
|
1126
1146
|
}, [
|
|
1127
1147
|
n("div", ll, [
|
|
1128
1148
|
a.color ? (u(), v("span", {
|
|
1129
1149
|
key: 0,
|
|
1130
|
-
style:
|
|
1131
|
-
}, "⬤", 4)) :
|
|
1132
|
-
n("span", null,
|
|
1150
|
+
style: c(`color:${a.color};margin-right:3px`)
|
|
1151
|
+
}, "⬤", 4)) : m("", !0),
|
|
1152
|
+
n("span", null, p(a.parentName), 1)
|
|
1133
1153
|
])
|
|
1134
1154
|
], 12, al),
|
|
1135
1155
|
n("td", {
|
|
1136
1156
|
class: "vue-ui-data-table__tbody__td",
|
|
1137
|
-
style:
|
|
1157
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1138
1158
|
"data-cell": V.value.head[1] ?? ""
|
|
1139
1159
|
}, [
|
|
1140
|
-
n("div", nl,
|
|
1160
|
+
n("div", nl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
|
|
1141
1161
|
], 12, ol),
|
|
1142
1162
|
n("td", {
|
|
1143
1163
|
class: "vue-ui-data-table__tbody__td",
|
|
1144
|
-
style:
|
|
1164
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1145
1165
|
"data-cell": V.value.head[2] ?? ""
|
|
1146
1166
|
}, [
|
|
1147
|
-
n("div", sl,
|
|
1167
|
+
n("div", sl, p(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1148
1168
|
], 12, ul),
|
|
1149
1169
|
n("td", {
|
|
1150
1170
|
class: "vue-ui-data-table__tbody__td",
|
|
1151
|
-
style:
|
|
1171
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1152
1172
|
"data-cell": V.value.head[3] ?? ""
|
|
1153
1173
|
}, [
|
|
1154
|
-
n("div", il,
|
|
1174
|
+
n("div", il, p(a.childName), 1)
|
|
1155
1175
|
], 12, rl),
|
|
1156
1176
|
n("td", {
|
|
1157
1177
|
class: "vue-ui-data-table__tbody__td",
|
|
1158
|
-
style:
|
|
1178
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1159
1179
|
"data-cell": V.value.head[4] ?? ""
|
|
1160
1180
|
}, [
|
|
1161
|
-
n("div",
|
|
1181
|
+
n("div", dl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
|
|
1162
1182
|
], 12, vl),
|
|
1163
1183
|
n("td", {
|
|
1164
1184
|
class: "vue-ui-data-table__tbody__td",
|
|
1165
|
-
style:
|
|
1185
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1166
1186
|
"data-cell": V.value.head[5] ?? ""
|
|
1167
1187
|
}, [
|
|
1168
|
-
n("div", hl,
|
|
1169
|
-
], 12,
|
|
1188
|
+
n("div", hl, p(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1189
|
+
], 12, cl),
|
|
1170
1190
|
n("td", {
|
|
1171
1191
|
class: "vue-ui-data-table__tbody__td",
|
|
1172
|
-
style:
|
|
1192
|
+
style: c(`outline:${e.value.table.td.outline}`),
|
|
1173
1193
|
"data-cell": V.value.head[6] ?? ""
|
|
1174
1194
|
}, [
|
|
1175
|
-
n("div", fl,
|
|
1195
|
+
n("div", fl, p(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
1176
1196
|
], 12, pl)
|
|
1177
1197
|
], 6))), 256))
|
|
1178
1198
|
])
|
|
@@ -1185,32 +1205,32 @@ const Na = ["id"], Aa = ["onClick"], za = ["xmlns", "viewBox"], Va = ["x", "widt
|
|
|
1185
1205
|
}, [
|
|
1186
1206
|
e.value.table.useDialog ? {
|
|
1187
1207
|
name: "title",
|
|
1188
|
-
fn:
|
|
1189
|
-
pt(
|
|
1208
|
+
fn: h(() => [
|
|
1209
|
+
pt(p(ce.value.title), 1)
|
|
1190
1210
|
]),
|
|
1191
1211
|
key: "0"
|
|
1192
1212
|
} : void 0,
|
|
1193
1213
|
e.value.table.useDialog ? {
|
|
1194
1214
|
name: "actions",
|
|
1195
|
-
fn:
|
|
1215
|
+
fn: h(() => [
|
|
1196
1216
|
n("button", {
|
|
1197
1217
|
tabindex: "0",
|
|
1198
1218
|
class: "vue-ui-user-options-button",
|
|
1199
1219
|
onClick: l[2] || (l[2] = (a) => Pe(e.value.userOptions.callbacks.csv))
|
|
1200
1220
|
}, [
|
|
1201
|
-
|
|
1221
|
+
ee(s(Me), {
|
|
1202
1222
|
name: "excel",
|
|
1203
|
-
stroke:
|
|
1223
|
+
stroke: ce.value.props.color
|
|
1204
1224
|
}, null, 8, ["stroke"])
|
|
1205
1225
|
])
|
|
1206
1226
|
]),
|
|
1207
1227
|
key: "1"
|
|
1208
1228
|
} : void 0
|
|
1209
|
-
]), 1040)) :
|
|
1210
|
-
s(Ge) ? (u(),
|
|
1229
|
+
]), 1040)) : m("", !0),
|
|
1230
|
+
s(Ge) ? (u(), j(ma, { key: 9 })) : m("", !0)
|
|
1211
1231
|
], 46, Na));
|
|
1212
1232
|
}
|
|
1213
|
-
}, Ol = /* @__PURE__ */ Pa(gl, [["__scopeId", "data-v-
|
|
1233
|
+
}, Ol = /* @__PURE__ */ Pa(gl, [["__scopeId", "data-v-12742a13"]]);
|
|
1214
1234
|
export {
|
|
1215
1235
|
Ol as default
|
|
1216
1236
|
};
|