vue-data-ui 3.16.0 → 3.16.2
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 +1 -1
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-C4NWSOC8.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.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-bump.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-dag.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-geo.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-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-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-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-stackline.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 +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DFEJxVok.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-TFhzm8cr.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-C67ZVh2l.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-LoAIeIFd.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-BCarORO1.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DJdFQLah.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-ChXrvtSj.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-DPYfcD5f.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-COQHkRXy.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-DT50sM_h.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-KgnoG_o8.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-BNET87VV.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-Di_HG3jq.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-CybP0Vom.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Ba-5TQ3a.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-64u0LX-J.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-Qy_lKcLT.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-HoOfjAv9.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-DByHtveP.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-DbD8-S5s.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-C9F0Fva2.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-Bn-_i_L8.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-D2mUKXiE.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-gLY-fZmR.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-JWCz3Dsa.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-B58pqRYq.js} +438 -437
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-CXeBMtyK.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-CbadY7E8.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-3bJn1U3y.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-BbuQH4SB.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-78rfipI0.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-BW8kfcgB.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-Cq1Ij3or.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DDq7LxP3.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-CL5dq6Ph.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-ZsHgSA93.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CnRlC_w1.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-pMBjF5ps.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-D_1tBt3O.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-Ber3eG5N.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-DUz9LWxF.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-DRjnVH0Z.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DHinf-33.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-D-jZIHxA.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-CtRskCcH.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-gslNTicq.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-D5JI4liZ.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-BWvPiDVJ.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-BW1hOsyh.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DOE47Jpg.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-DwIOn22D.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-Dk8PXXJX.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-CcYyxhEU.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-Ch-cO4qI.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-Cflb1VOc.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-JuTN5MhL.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-BzXCA7Wf.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-C4k5LTYe.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-_1e3qZ-5.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-DF2i7jxF.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useCssVars as Na, defineAsyncComponent as
|
|
2
|
-
import { j as
|
|
1
|
+
import { useCssVars as Na, defineAsyncComponent as se, useSlots as Ia, computed as h, ref as v, toRefs as Va, watch as re, onBeforeUnmount as Oa, onMounted as qe, openBlock as n, createElementBlock as r, unref as i, normalizeStyle as b, normalizeClass as te, createElementVNode as s, toDisplayString as k, createBlock as H, createCommentVNode as p, withCtx as f, renderSlot as y, normalizeProps as O, guardReactiveProps as F, createSlots as Te, createVNode as ie, Fragment as D, renderList as B, mergeProps as Ot, resolveDynamicComponent as Fa, withKeys as Ma, createTextVNode as Ft, nextTick as Le } from "vue";
|
|
2
|
+
import { j as Da, t as Mt, m as Ba, p as ae, $ as Ze, n as Ea, q as ye, o as Je, K as N, s as Qe, k as ge, l as M, X as Ra, u as et, v as Xa, Z as tt, aq as Ha, a0 as Ua, a1 as Wa, T as Ga, U as Ka, a3 as ja } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as Ya, u as qa } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as Za } from "./useConfig-DO94Aj5s.js";
|
|
5
5
|
import { u as Ja, B as Qa } from "./BaseScanner-BhhkKVoj.js";
|
|
6
6
|
import { u as el } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as tl } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
-
import { u as
|
|
8
|
+
import { u as at } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
9
|
import { u as al } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
10
|
import { u as ll } from "./useTableResponsive-Cbx-ACcP.js";
|
|
11
11
|
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
13
|
import ul from "./img-LXxMLmCg.js";
|
|
14
|
-
import { _ as
|
|
14
|
+
import { _ as Dt } from "./Shape-BKRUOeKk.js";
|
|
15
15
|
import sl from "./Title-BeMKE1cj.js";
|
|
16
16
|
import rl from "./vue_ui_horizontal_bar-BEagrV0T.js";
|
|
17
|
-
import
|
|
17
|
+
import Bt from "./Legend-CS7Xo5LK.js";
|
|
18
18
|
import il from "./vue-ui-accordion-nvggWcGN.js";
|
|
19
19
|
import { B as Et } from "./BaseLegendToggle-BQVIawmA.js";
|
|
20
20
|
import { A as vl } from "./A11yDataTable-KcVAX2cP.js";
|
|
21
21
|
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
|
-
const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "relative" } }, yl = ["xmlns", "viewBox", "aria-describedby"], gl = ["width", "height"], bl = ["id"], ml = ["stop-color"], kl = ["stop-color"], Cl = { key: 1 }, xl = ["y", "width", "height", "fill", "rx"], wl = ["x", "y", "width", "height", "fill", "rx"], _l = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], $l = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = { class: "vue-ui-horizontal-bar-parent-label" }, Pl = ["y", "height", "width", "fill"], Al = ["y", "font-size", "fill", "x", "font-weight", "innerHTML"], zl = ["y", "font-size", "fill", "x", "font-weight"], Nl = { class: "vue-ui-horizontal-bar-child-label" }, Il = ["x", "y", "font-size", "font-weight", "innerHTML"], Vl = { class: "vue-ui-horizontal-bar-child-label" }, Ol = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Fl = { class: "vue-ui-horizontal-bar-child-label" }, Ml = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"],
|
|
22
|
+
const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "relative" } }, yl = ["xmlns", "viewBox", "aria-describedby"], gl = ["width", "height"], bl = ["id"], ml = ["stop-color"], kl = ["stop-color"], Cl = { key: 1 }, xl = ["y", "width", "height", "fill", "rx"], wl = ["x", "y", "width", "height", "fill", "rx"], _l = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], $l = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = { class: "vue-ui-horizontal-bar-parent-label" }, Pl = ["y", "height", "width", "fill"], Al = ["y", "font-size", "fill", "x", "font-weight", "innerHTML"], zl = ["y", "font-size", "fill", "x", "font-weight"], Nl = { class: "vue-ui-horizontal-bar-child-label" }, Il = ["x", "y", "font-size", "font-weight", "innerHTML"], Vl = { class: "vue-ui-horizontal-bar-child-label" }, Ol = ["x", "y", "font-size", "fill", "font-weight", "innerHTML"], Fl = { class: "vue-ui-horizontal-bar-child-label" }, Ml = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Dl = ["y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], Bl = {
|
|
23
23
|
key: 0,
|
|
24
24
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
25
25
|
"data-dom-to-png-ignore": "",
|
|
@@ -43,19 +43,19 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
emits: ["selectLegend", "copyAlt"],
|
|
46
|
+
emits: ["selectLegend", "copyAlt", "selectDatapoint"],
|
|
47
47
|
setup(Rt, { expose: Xt, emit: Ht }) {
|
|
48
48
|
Na((t) => ({
|
|
49
|
-
|
|
49
|
+
v5b6931d5: t.tdo
|
|
50
50
|
}));
|
|
51
|
-
const Ut =
|
|
51
|
+
const Ut = se(() => import("./Tooltip-Bf-kM3_A.js")), lt = se(() => import("./BaseIcon-Cb3zzG6s.js")), Wt = se(() => import("./PenAndPaper-Ct3qJ4lA.js")), Gt = se(() => import("./UserOptions-rW2fRf3V.js")), Kt = se(() => import("./PackageVersion-C4NWSOC8.js")), jt = se(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_vertical_bar: Yt } = Za(), { isThemeValid: qt, warnInvalidTheme: Zt } = al(), Jt = Ia(), C = Rt, Se = h({
|
|
52
52
|
get() {
|
|
53
53
|
return !!C.dataset && C.dataset.length;
|
|
54
54
|
},
|
|
55
55
|
set(t) {
|
|
56
56
|
return t;
|
|
57
57
|
}
|
|
58
|
-
}), S = v(
|
|
58
|
+
}), S = v(Da()), be = v(!1), Pe = v(""), me = v(null), ot = v(0), R = v(null), nt = v(null), Ae = v(null), ut = v(null), st = v(null), rt = v(0), ze = v(0), Qt = v(null), ve = v(null), Ne = v(null), ea = v(null), Ie = v(null), _ = v([]), ta = v({ none: 0, asc: 1, desc: 2 }), G = v(0), ke = v(!1), ce = v(0), le = v(0), Ve = v(null), Ce = v(!1), xe = v(!1), z = v(null), it = v({ x: 0, y: 0 }), Oe = v("pointer"), Fe = Ht, e = v(Be()), Y = h(() => e.value.userOptions.useCursorPointer), aa = h(() => {
|
|
59
59
|
const t = [
|
|
60
60
|
{ name: "", value: 6, color: "#d9d9d9" },
|
|
61
61
|
{ name: "", value: 5, color: "#d9d9d9" },
|
|
@@ -97,13 +97,13 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
userConfig: e.value.skeletonConfig ?? {}
|
|
100
|
-
})), { loading:
|
|
100
|
+
})), { loading: we, FINAL_DATASET: vt, manualLoading: Me } = Ja({
|
|
101
101
|
...Va(C),
|
|
102
102
|
FINAL_CONFIG: e,
|
|
103
|
-
prepareConfig:
|
|
103
|
+
prepareConfig: Be,
|
|
104
104
|
callback: () => {
|
|
105
105
|
Promise.resolve().then(async () => {
|
|
106
|
-
|
|
106
|
+
T.value.showTable = e.value.table.show, sa();
|
|
107
107
|
});
|
|
108
108
|
},
|
|
109
109
|
skeletonDataset: aa.value,
|
|
@@ -111,11 +111,11 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
111
111
|
defaultConfig: e.value,
|
|
112
112
|
userConfig: la.value
|
|
113
113
|
})
|
|
114
|
-
}), { userOptionsVisible:
|
|
114
|
+
}), { userOptionsVisible: De, setUserOptionsVisibility: ct, keepUserOptionState: dt } = ol({ config: e.value }), { svgRef: oe } = nl({
|
|
115
115
|
config: e.value.style.chart.title
|
|
116
116
|
});
|
|
117
|
-
function
|
|
118
|
-
const t =
|
|
117
|
+
function Be() {
|
|
118
|
+
const t = at({
|
|
119
119
|
userConfig: C.config,
|
|
120
120
|
defaultConfig: Yt
|
|
121
121
|
});
|
|
@@ -125,57 +125,57 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
125
125
|
if (!qt.value(t))
|
|
126
126
|
Zt(t), l = t;
|
|
127
127
|
else {
|
|
128
|
-
const o =
|
|
128
|
+
const o = at({
|
|
129
129
|
userConfig: rl[a] || C.config,
|
|
130
130
|
defaultConfig: t
|
|
131
131
|
});
|
|
132
132
|
l = {
|
|
133
|
-
...
|
|
134
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
133
|
+
...at({ userConfig: C.config, defaultConfig: o }),
|
|
134
|
+
customPalette: t.customPalette.length ? t.customPalette : Ba[a] || ae
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
else
|
|
138
138
|
l = t;
|
|
139
|
-
return C.config &&
|
|
139
|
+
return C.config && Ze(C.config, "events.datapointEnter") ? l.events.datapointEnter = C.config.events.datapointEnter : l.events.datapointEnter = null, C.config && Ze(C.config, "events.datapointLeave") ? l.events.datapointLeave = C.config.events.datapointLeave : l.events.datapointLeave = null, C.config && Ze(C.config, "events.datapointClick") ? l.events.datapointClick = C.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
140
140
|
}
|
|
141
141
|
const E = v(e.value.style.chart.width), K = v(e.value.style.chart.height), x = v(e.value.style.chart.layout.bars.gap);
|
|
142
|
-
|
|
142
|
+
re(
|
|
143
143
|
() => C.config,
|
|
144
144
|
(t) => {
|
|
145
|
-
|
|
145
|
+
we.value || (e.value = Be()), De.value = !e.value.userOptions.showOnChartHover, rt.value += 1, ze.value += 1, T.value.showTable = e.value.table.show, T.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", T.value.showTooltip = e.value.style.chart.tooltip.show, E.value = e.value.style.chart.width, K.value = e.value.style.chart.height, x.value = e.value.style.chart.layout.bars.gap;
|
|
146
146
|
},
|
|
147
147
|
{ deep: !0 }
|
|
148
|
-
),
|
|
148
|
+
), re(
|
|
149
149
|
() => C.dataset,
|
|
150
150
|
(t) => {
|
|
151
|
-
Array.isArray(t) && t.length > 0 && (
|
|
151
|
+
Array.isArray(t) && t.length > 0 && (Me.value = !1);
|
|
152
152
|
},
|
|
153
153
|
{ deep: !0 }
|
|
154
154
|
);
|
|
155
|
-
const { isPrinting:
|
|
155
|
+
const { isPrinting: Ee, isImaging: Re, generatePdf: ht, generateImage: pt } = el({
|
|
156
156
|
elementId: `vue-ui-vertical-bar_${S.value}`,
|
|
157
157
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
158
158
|
options: e.value.userOptions.print
|
|
159
|
-
}), oa = h(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
159
|
+
}), oa = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), ft = h(() => Ea(e.value.customPalette)), yt = v(null), na = h(() => e.value.table.responsiveBreakpoint), _e = h(() => !!e.value.debug), ua = v(0), j = v(null), q = v(null);
|
|
160
160
|
function sa() {
|
|
161
|
-
if (R.value && (
|
|
161
|
+
if (R.value && (Je(C.dataset) && (ye({
|
|
162
162
|
componentName: "VueUiVerticalBar",
|
|
163
163
|
type: "dataset",
|
|
164
|
-
debug:
|
|
165
|
-
}),
|
|
164
|
+
debug: _e.value
|
|
165
|
+
}), Se.value = !1, Me.value = !0), Je(C.dataset) || (Me.value = e.value.loading), e.value.responsive)) {
|
|
166
166
|
const t = Ya(() => {
|
|
167
167
|
const { width: l, height: a } = qa({
|
|
168
168
|
chart: R.value,
|
|
169
|
-
title: e.value.style.chart.title.text ?
|
|
170
|
-
legend: e.value.style.chart.legend.show ?
|
|
171
|
-
source:
|
|
172
|
-
noTitle:
|
|
169
|
+
title: e.value.style.chart.title.text ? nt.value : null,
|
|
170
|
+
legend: e.value.style.chart.legend.show ? Ae.value : null,
|
|
171
|
+
source: ut.value,
|
|
172
|
+
noTitle: st.value
|
|
173
173
|
});
|
|
174
174
|
ua.value = a / 3, requestAnimationFrame(async () => {
|
|
175
175
|
K.value = a, E.value = l;
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
|
-
j.value && (q.value && j.value.unobserve(q.value), j.value.disconnect()), j.value = new ResizeObserver(t),
|
|
178
|
+
j.value && (q.value && j.value.unobserve(q.value), j.value.disconnect()), j.value = new ResizeObserver(t), Le(() => {
|
|
179
179
|
q.value = R.value?.parentNode, q.value && j.value.observe(q.value);
|
|
180
180
|
});
|
|
181
181
|
}
|
|
@@ -183,89 +183,89 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
183
183
|
Oa(() => {
|
|
184
184
|
j.value && (q.value && j.value.unobserve(q.value), j.value.disconnect());
|
|
185
185
|
});
|
|
186
|
-
const
|
|
186
|
+
const T = v({
|
|
187
187
|
showTable: e.value.table.show,
|
|
188
188
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
189
189
|
showTooltip: e.value.style.chart.tooltip.show
|
|
190
|
-
}),
|
|
191
|
-
!t.value && !t.children &&
|
|
190
|
+
}), gt = h(() => T.value.sortDesc), P = h(() => (vt.value.forEach((t, l) => {
|
|
191
|
+
!t.value && !t.children && ye({
|
|
192
192
|
componentName: "VueUiVerticalBar",
|
|
193
193
|
type: "datasetAttributeEmpty",
|
|
194
194
|
property: `value (index ${l})`,
|
|
195
|
-
debug:
|
|
196
|
-
}), t.children && (
|
|
195
|
+
debug: _e.value
|
|
196
|
+
}), t.children && (Je(t.children) ? ye({
|
|
197
197
|
componentName: "VueUiVerticalBar",
|
|
198
198
|
type: "datasetAttributeEmpty",
|
|
199
199
|
property: `children (index ${l})`,
|
|
200
|
-
debug:
|
|
200
|
+
debug: _e.value
|
|
201
201
|
}) : t.children.forEach((a, o) => {
|
|
202
|
-
[null, void 0].includes(a.name) &&
|
|
202
|
+
[null, void 0].includes(a.name) && ye({
|
|
203
203
|
componentName: "VueUiVerticalBar",
|
|
204
204
|
type: "datasetSerieAttribute",
|
|
205
205
|
property: "name",
|
|
206
206
|
key: "children",
|
|
207
207
|
index: o,
|
|
208
|
-
debug:
|
|
208
|
+
debug: _e.value
|
|
209
209
|
});
|
|
210
210
|
}));
|
|
211
|
-
}),
|
|
211
|
+
}), vt.value.map((t, l) => {
|
|
212
212
|
const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, g = N(
|
|
213
|
-
t.value ? t.value : o ? t.children.map((
|
|
214
|
-
),
|
|
213
|
+
t.value ? t.value : o ? t.children.map((u) => u.value || 0).reduce((u, $) => u + $, 0) : 0
|
|
214
|
+
), m = g >= 0 ? 1 : -1;
|
|
215
215
|
return {
|
|
216
216
|
...t,
|
|
217
217
|
id: a,
|
|
218
218
|
absoluteIndex: l,
|
|
219
219
|
shape: "square",
|
|
220
|
-
opacity:
|
|
220
|
+
opacity: _.value.includes(a) ? 0.5 : 1,
|
|
221
221
|
value: Math.abs(g),
|
|
222
|
-
sign:
|
|
222
|
+
sign: m,
|
|
223
223
|
hasChildren: o,
|
|
224
224
|
isChild: !1,
|
|
225
225
|
segregate: () => Z(a),
|
|
226
|
-
isSegregated:
|
|
227
|
-
color:
|
|
226
|
+
isSegregated: _.value.includes(a),
|
|
227
|
+
color: Qe(t.color) || ft.value[l] || ae[l] || ae[l % ae.length],
|
|
228
228
|
children: !t.children || !t.children.length ? [] : t.children.toSorted(
|
|
229
|
-
|
|
230
|
-
).map((
|
|
231
|
-
...
|
|
232
|
-
value: N(Math.abs(
|
|
229
|
+
ke.value ? () => 0 : (u, $) => gt.value ? $.value - u.value : u.value - $.value
|
|
230
|
+
).map((u, $) => ({
|
|
231
|
+
...u,
|
|
232
|
+
value: N(Math.abs(u.value)),
|
|
233
233
|
absoluteIndex: l,
|
|
234
|
-
sign:
|
|
234
|
+
sign: u.value >= 0 ? 1 : -1,
|
|
235
235
|
isChild: !0,
|
|
236
236
|
parentId: a,
|
|
237
237
|
parentName: t.name,
|
|
238
238
|
parentValue: g,
|
|
239
|
-
parentSign:
|
|
240
|
-
id: `vertical_child_${l}_${
|
|
241
|
-
childIndex:
|
|
242
|
-
color:
|
|
243
|
-
})).map((
|
|
244
|
-
...
|
|
245
|
-
isFirstChild:
|
|
246
|
-
isLastChild:
|
|
239
|
+
parentSign: m,
|
|
240
|
+
id: `vertical_child_${l}_${$}_${S.value}`,
|
|
241
|
+
childIndex: $,
|
|
242
|
+
color: Qe(u.color) || Qe(t.color) || ft.value[l] || ae[l] || ae[l % ae.length]
|
|
243
|
+
})).map((u, $) => ({
|
|
244
|
+
...u,
|
|
245
|
+
isFirstChild: $ === 0,
|
|
246
|
+
isLastChild: $ === t.children.length - 1
|
|
247
247
|
}))
|
|
248
248
|
};
|
|
249
249
|
}).toSorted(
|
|
250
|
-
|
|
250
|
+
ke.value ? () => 0 : (t, l) => gt.value ? l.value - t.value : t.value - l.value
|
|
251
251
|
))), U = h(() => P.value.filter(
|
|
252
|
-
(t) => !
|
|
253
|
-
)),
|
|
252
|
+
(t) => !_.value.includes(t.id)
|
|
253
|
+
)), w = h(() => U.value.flatMap((t) => t.hasChildren ? t.children : t)), ra = h(() => P.value.flatMap((t) => t.hasChildren ? t.children : t)), bt = h(() => U.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0)), mt = h(() => ({
|
|
254
254
|
cy: "vertical-bar-div-legend",
|
|
255
255
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
256
256
|
color: e.value.style.chart.legend.color,
|
|
257
257
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
258
258
|
paddingBottom: 12,
|
|
259
259
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
260
|
-
})),
|
|
260
|
+
})), L = h(() => e.value.style.chart.layout.bars.parentLabels.show ? e.value.style.chart.layout.bars.parentLabels.fontSize * 3 + e.value.style.chart.layout.bars.parentLabels.paddingBottom : 0), A = h(() => {
|
|
261
261
|
const t = [];
|
|
262
262
|
let l = 0;
|
|
263
|
-
return
|
|
263
|
+
return w.value.forEach((a, o) => {
|
|
264
264
|
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show && (l += 1), t[o] = l;
|
|
265
265
|
}), t;
|
|
266
266
|
}), d = h(() => {
|
|
267
|
-
const l = Math.max(0, ...A.value) *
|
|
268
|
-
return (K.value - 24 - (
|
|
267
|
+
const l = Math.max(0, ...A.value) * L.value;
|
|
268
|
+
return (K.value - 24 - (bt.value - 1) * x.value - l) / bt.value;
|
|
269
269
|
}), W = h(() => ({
|
|
270
270
|
width: E.value,
|
|
271
271
|
height: K.value,
|
|
@@ -275,64 +275,64 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
275
275
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
276
276
|
bottom: 12
|
|
277
277
|
}
|
|
278
|
-
})),
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
if (!
|
|
282
|
-
|
|
278
|
+
})), Xe = v(0);
|
|
279
|
+
function kt() {
|
|
280
|
+
Le(() => {
|
|
281
|
+
if (!Ie.value) {
|
|
282
|
+
Xe.value = 0;
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
|
-
const l = Array.from(
|
|
285
|
+
const l = Array.from(Ie.value.querySelectorAll("text")).reduce((a, o) => {
|
|
286
286
|
const g = o.getBBox?.().width ?? o.getComputedTextLength();
|
|
287
287
|
return g > a ? g : a;
|
|
288
288
|
}, 0);
|
|
289
|
-
|
|
289
|
+
Xe.value = l + 12;
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
|
|
292
|
+
re(
|
|
293
293
|
() => [
|
|
294
|
-
|
|
294
|
+
w.value,
|
|
295
295
|
E.value,
|
|
296
296
|
K.value,
|
|
297
297
|
e.value.style.chart.layout.bars.nameLabels,
|
|
298
298
|
e.value.style.chart.layout.bars.offsetX
|
|
299
299
|
],
|
|
300
|
-
() =>
|
|
300
|
+
() => kt(),
|
|
301
301
|
{ deep: !0 }
|
|
302
|
-
),
|
|
303
|
-
|
|
302
|
+
), qe(() => {
|
|
303
|
+
kt();
|
|
304
304
|
});
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
if (!
|
|
309
|
-
|
|
305
|
+
function de() {
|
|
306
|
+
Le(() => {
|
|
307
|
+
ce.value = 0, le.value = 0, requestAnimationFrame(() => {
|
|
308
|
+
if (!Ve.value) {
|
|
309
|
+
ce.value = 0, le.value = 0;
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
const t = Array.from(
|
|
313
|
-
|
|
313
|
+
Ve.value.querySelectorAll("text")
|
|
314
314
|
);
|
|
315
315
|
if (!t.length) {
|
|
316
|
-
|
|
316
|
+
ce.value = 0, le.value = 0;
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
319
|
let l = 1 / 0, a = 0;
|
|
320
|
-
t.forEach((
|
|
321
|
-
const
|
|
322
|
-
|
|
320
|
+
t.forEach((Ye) => {
|
|
321
|
+
const fe = Ye.getBBox(), ue = fe.x, ee = fe.x + fe.width;
|
|
322
|
+
ue < l && (l = ue), ee > a && (a = ee);
|
|
323
323
|
});
|
|
324
|
-
const o = 0, g = E.value,
|
|
325
|
-
|
|
324
|
+
const o = 0, g = E.value, m = 24, u = Math.max(0, o - l + m), $ = Math.max(0, a - g + m);
|
|
325
|
+
le.value = u, ce.value = $;
|
|
326
326
|
});
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
|
-
|
|
330
|
-
() => [
|
|
331
|
-
() =>
|
|
329
|
+
re(_, () => de(), { deep: !0 }), re(
|
|
330
|
+
() => [w.value, E.value, K.value],
|
|
331
|
+
() => de(),
|
|
332
332
|
{ deep: !0 }
|
|
333
|
-
),
|
|
333
|
+
), qe(() => de());
|
|
334
334
|
const c = h(() => {
|
|
335
|
-
const t =
|
|
335
|
+
const t = Xe.value + Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX) + le.value + e.value.style.chart.layout.bars.offsetX, l = W.value.width - W.value.padding.right, a = Math.max(0, l - t - ce.value - le.value - e.value.style.chart.layout.bars.offsetX);
|
|
336
336
|
return {
|
|
337
337
|
top: W.value.padding.top,
|
|
338
338
|
bottom: W.value.padding.top + W.value.height,
|
|
@@ -342,43 +342,43 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
342
342
|
fullHeight: W.value.padding.top + W.value.padding.bottom + W.value.height
|
|
343
343
|
};
|
|
344
344
|
});
|
|
345
|
-
function
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
}),
|
|
345
|
+
function Ct() {
|
|
346
|
+
_.value.length ? _.value = [] : P.value.forEach((t) => {
|
|
347
|
+
_.value.push(t.id);
|
|
348
|
+
}), de();
|
|
349
349
|
}
|
|
350
350
|
async function Z(t) {
|
|
351
|
-
if (
|
|
352
|
-
|
|
351
|
+
if (_.value.includes(t))
|
|
352
|
+
_.value = _.value.filter((l) => l !== t);
|
|
353
353
|
else {
|
|
354
|
-
if (
|
|
355
|
-
|
|
354
|
+
if (_.value.length === P.value.length - 1) return;
|
|
355
|
+
_.value.push(t);
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
Fe("selectLegend", U.value), de();
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function xt(t) {
|
|
360
360
|
if (!P.value.length)
|
|
361
361
|
return e.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null;
|
|
362
362
|
const l = P.value.find((a) => a.name === t);
|
|
363
363
|
return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
|
|
364
364
|
}
|
|
365
365
|
function ia(t) {
|
|
366
|
-
const l =
|
|
367
|
-
l !== null &&
|
|
366
|
+
const l = xt(t);
|
|
367
|
+
l !== null && _.value.includes(l.id) && Z(l.id);
|
|
368
368
|
}
|
|
369
369
|
function va(t) {
|
|
370
|
-
const l =
|
|
371
|
-
l !== null && (
|
|
370
|
+
const l = xt(t);
|
|
371
|
+
l !== null && (_.value.includes(l.id) || Z(l.id));
|
|
372
372
|
}
|
|
373
373
|
const X = h(() => U.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
|
|
374
|
-
function
|
|
374
|
+
function wt(t, l = !1, a = 0) {
|
|
375
375
|
return l ? M({
|
|
376
376
|
v: N(Math.abs(t) / X.value * 100),
|
|
377
377
|
s: "%",
|
|
378
378
|
r: a
|
|
379
379
|
}) : Math.abs(t) / X.value;
|
|
380
380
|
}
|
|
381
|
-
const J = h(() =>
|
|
381
|
+
const J = h(() => w.value.map((t) => t.sign).includes(-1)), ca = h(() => Math.max(
|
|
382
382
|
...U.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)
|
|
383
383
|
));
|
|
384
384
|
function I(t) {
|
|
@@ -388,13 +388,13 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
388
388
|
function da(t) {
|
|
389
389
|
return I(t) + c.value.left;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
const a = U.value.find((
|
|
391
|
+
function ne(t, l) {
|
|
392
|
+
const a = U.value.find((u) => u.id === t.parentId);
|
|
393
393
|
return {
|
|
394
|
-
y: c.value.top + (x.value + d.value) * l + A.value[l] *
|
|
394
|
+
y: c.value.top + (x.value + d.value) * l + A.value[l] * L.value - L.value + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
395
395
|
name: a.name,
|
|
396
396
|
value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
|
|
397
|
-
percentageToTotal: isNaN(a.value / X.value) ? "" :
|
|
397
|
+
percentageToTotal: isNaN(a.value / X.value) ? "" : wt(
|
|
398
398
|
a.value,
|
|
399
399
|
!0,
|
|
400
400
|
e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage
|
|
@@ -405,45 +405,45 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
405
405
|
function ha() {
|
|
406
406
|
return U.value;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
409
|
-
return
|
|
408
|
+
function _t(t, l) {
|
|
409
|
+
return ne(t, l).name;
|
|
410
410
|
}
|
|
411
411
|
function pa(t, l) {
|
|
412
|
-
const a =
|
|
413
|
-
return
|
|
412
|
+
const a = ne(t, l);
|
|
413
|
+
return St(a.value, a, l, t.parentSign || t.sign);
|
|
414
414
|
}
|
|
415
|
-
const
|
|
416
|
-
function
|
|
417
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
415
|
+
const He = v(null), Ue = v(null);
|
|
416
|
+
function $t({ datapoint: t, seriesIndex: l }) {
|
|
417
|
+
Fe("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }),
|
|
419
|
+
function Tt({ datapoint: t, seriesIndex: l }) {
|
|
420
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), me.value = null, be.value = !1, He.value = null, z.value === l && (z.value = null);
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
|
|
422
|
+
function Lt(t, l, a = "pointer") {
|
|
423
|
+
Oe.value = a, e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), z.value = l, me.value = t, Ue.value = {
|
|
424
424
|
datapoint: t,
|
|
425
425
|
seriesIndex: l,
|
|
426
426
|
series: P.value,
|
|
427
427
|
config: e.value
|
|
428
|
-
},
|
|
428
|
+
}, be.value = !0, He.value = t.id;
|
|
429
429
|
let o = "";
|
|
430
|
-
const g = t.isChild ? t.parentName : t.name,
|
|
431
|
-
Ga(
|
|
432
|
-
() =>
|
|
430
|
+
const g = t.isChild ? t.parentName : t.name, m = t.isChild ? t.name : "", u = e.value.style.chart.tooltip.customFormat;
|
|
431
|
+
Ga(u) && Ka(
|
|
432
|
+
() => u({
|
|
433
433
|
datapoint: t,
|
|
434
434
|
series: P.value,
|
|
435
435
|
config: e.value,
|
|
436
436
|
seriesIndex: l
|
|
437
437
|
})
|
|
438
|
-
) ?
|
|
438
|
+
) ? Pe.value = u({
|
|
439
439
|
datapoint: t,
|
|
440
440
|
series: P.value,
|
|
441
441
|
config: e.value,
|
|
442
442
|
seriesIndex: l
|
|
443
443
|
}) : (o += `<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;">
|
|
444
444
|
<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}"/>${Jt.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${g}</div>
|
|
445
|
-
${
|
|
446
|
-
</div>`, e.value.style.chart.tooltip.showValue && (o += `<div>${e.value.translations.value}: <b>${
|
|
445
|
+
${m ? `<div>${m}</div>` : ""}
|
|
446
|
+
</div>`, e.value.style.chart.tooltip.showValue && (o += `<div>${e.value.translations.value}: <b>${ge(
|
|
447
447
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
448
448
|
t.sign === 1 ? t.value : -t.value,
|
|
449
449
|
M({
|
|
@@ -461,12 +461,12 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
461
461
|
v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
|
|
462
462
|
s: "%",
|
|
463
463
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
464
|
-
})}</b></div>`)),
|
|
464
|
+
})}</b></div>`)), Pe.value = `<div style="text-align:left">${o}</div>`);
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function St(t, l, a, o) {
|
|
467
467
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
468
468
|
return "";
|
|
469
|
-
const g =
|
|
469
|
+
const g = ge(
|
|
470
470
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
471
471
|
N(o === -1 && t >= 0 ? -t : t),
|
|
472
472
|
M({
|
|
@@ -476,12 +476,12 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
476
476
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
477
477
|
}),
|
|
478
478
|
{ datapoint: l, seriesIndex: a }
|
|
479
|
-
),
|
|
479
|
+
), m = `(${wt(
|
|
480
480
|
t,
|
|
481
481
|
!0,
|
|
482
482
|
e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage
|
|
483
483
|
)})`;
|
|
484
|
-
return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${
|
|
484
|
+
return `${g}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${m}` : ""}`;
|
|
485
485
|
}
|
|
486
486
|
const V = h(() => {
|
|
487
487
|
const t = [
|
|
@@ -492,7 +492,7 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
492
492
|
e.value.translations.value,
|
|
493
493
|
e.value.translations.percentageToSerie,
|
|
494
494
|
e.value.translations.percentageToTotal
|
|
495
|
-
], l =
|
|
495
|
+
], l = w.value.map((a) => a.isChild ? a.isFirstChild ? {
|
|
496
496
|
color: a.color,
|
|
497
497
|
parentName: a.parentName,
|
|
498
498
|
parentValue: a.parentValue,
|
|
@@ -522,58 +522,58 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
522
522
|
});
|
|
523
523
|
return { head: t, body: l };
|
|
524
524
|
});
|
|
525
|
-
function
|
|
525
|
+
function We(t = null) {
|
|
526
526
|
const l = [
|
|
527
527
|
[e.value.style.chart.title.text],
|
|
528
528
|
[e.value.style.chart.title.subtitle.text],
|
|
529
529
|
[""]
|
|
530
|
-
], a = V.value.head, o = V.value.body.map((
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
]), g = l.concat([a]).concat(o),
|
|
539
|
-
t ? t(
|
|
540
|
-
csvContent:
|
|
530
|
+
], a = V.value.head, o = V.value.body.map((u) => [
|
|
531
|
+
u.parentName,
|
|
532
|
+
u.parentValue,
|
|
533
|
+
u.percentageToTotal,
|
|
534
|
+
u.childName,
|
|
535
|
+
u.childValue,
|
|
536
|
+
u.childPercentageToParent,
|
|
537
|
+
u.childPercentageToTotal
|
|
538
|
+
]), g = l.concat([a]).concat(o), m = Ua(g);
|
|
539
|
+
t ? t(m) : Wa({
|
|
540
|
+
csvContent: m,
|
|
541
541
|
title: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
const Q = v(!1);
|
|
545
|
-
function
|
|
546
|
-
Q.value = t,
|
|
545
|
+
function Pt(t) {
|
|
546
|
+
Q.value = t, ot.value += 1;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
548
|
+
function At() {
|
|
549
|
+
T.value.showTable = !T.value.showTable;
|
|
550
550
|
}
|
|
551
|
-
|
|
551
|
+
qe(() => {
|
|
552
552
|
["none", "asc", "desc"].includes(
|
|
553
553
|
e.value.style.chart.layout.bars.sort
|
|
554
|
-
) ||
|
|
554
|
+
) || ye({
|
|
555
555
|
componentName: "VueUiVerticalBar",
|
|
556
556
|
type: "attributeWrongValue",
|
|
557
557
|
property: "style.chart.layout.bars.sort",
|
|
558
558
|
key: e.value.style.chart.layout.bars.sort
|
|
559
|
-
}), G.value = ta.value[e.value.style.chart.layout.bars.sort],
|
|
559
|
+
}), G.value = ta.value[e.value.style.chart.layout.bars.sort], T.value.sortDesc = G.value === 2, ke.value = G.value === 0;
|
|
560
560
|
});
|
|
561
561
|
function fa() {
|
|
562
562
|
G.value += 1, G.value > 2 && (G.value = 0);
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
fa(),
|
|
564
|
+
function zt() {
|
|
565
|
+
fa(), T.value.sortDesc = G.value === 2, ke.value = G.value === 0;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
|
|
567
|
+
function Nt() {
|
|
568
|
+
T.value.showTooltip = !T.value.showTooltip;
|
|
569
569
|
}
|
|
570
|
-
const
|
|
571
|
-
function
|
|
572
|
-
|
|
570
|
+
const he = v(!1);
|
|
571
|
+
function Ge() {
|
|
572
|
+
he.value = !he.value;
|
|
573
573
|
}
|
|
574
574
|
async function ya({ scale: t = 2 } = {}) {
|
|
575
575
|
if (!R.value) return;
|
|
576
|
-
const { width: l, height: a } = R.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64:
|
|
576
|
+
const { width: l, height: a } = R.value.getBoundingClientRect(), o = l / a, { imageUri: g, base64: m } = await ul({
|
|
577
577
|
domElement: R.value,
|
|
578
578
|
base64: !0,
|
|
579
579
|
img: !0,
|
|
@@ -581,15 +581,15 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
581
581
|
});
|
|
582
582
|
return {
|
|
583
583
|
imageUri: g,
|
|
584
|
-
base64:
|
|
584
|
+
base64: m,
|
|
585
585
|
title: e.value.style.chart.title.text,
|
|
586
586
|
width: l,
|
|
587
587
|
height: a,
|
|
588
588
|
aspectRatio: o
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
const
|
|
592
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
591
|
+
const $e = h(() => {
|
|
592
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = T.value.showTable;
|
|
593
593
|
return {
|
|
594
594
|
component: t ? jt : il,
|
|
595
595
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -619,20 +619,20 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
621
|
});
|
|
622
|
-
|
|
623
|
-
() =>
|
|
622
|
+
re(
|
|
623
|
+
() => T.value.showTable,
|
|
624
624
|
(t) => {
|
|
625
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
625
|
+
e.value.table.show || (t && e.value.table.useDialog && ve.value ? ve.value.open() : "close" in ve.value && ve.value.close());
|
|
626
626
|
}
|
|
627
627
|
);
|
|
628
|
-
const { isResponsive: ga } = ll(
|
|
629
|
-
function
|
|
630
|
-
|
|
628
|
+
const { isResponsive: ga } = ll(yt, na);
|
|
629
|
+
function Ke() {
|
|
630
|
+
T.value.showTable = !1, Ne.value && Ne.value.setTableIconState(!1);
|
|
631
631
|
}
|
|
632
632
|
const ba = h(() => P.value.map((t, l) => ({
|
|
633
633
|
...t,
|
|
634
634
|
shape: "square",
|
|
635
|
-
display: `${t.name}: ${
|
|
635
|
+
display: `${t.name}: ${ge(
|
|
636
636
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
637
637
|
t.value,
|
|
638
638
|
M({
|
|
@@ -647,14 +647,14 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
647
647
|
...t,
|
|
648
648
|
name: t.display
|
|
649
649
|
}))), { exportSvg: wa, getSvg: _a } = tl({
|
|
650
|
-
svg:
|
|
650
|
+
svg: oe,
|
|
651
651
|
title: Ca,
|
|
652
652
|
legend: ka,
|
|
653
653
|
legendItems: xa,
|
|
654
654
|
backgroundColor: ma
|
|
655
655
|
});
|
|
656
|
-
async function
|
|
657
|
-
|
|
656
|
+
async function It({ isCb: t }) {
|
|
657
|
+
xe.value = !0, await Le();
|
|
658
658
|
try {
|
|
659
659
|
if (t) {
|
|
660
660
|
const { blob: l, url: a, text: o, dataUrl: g } = await _a();
|
|
@@ -662,25 +662,25 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
662
662
|
} else
|
|
663
663
|
await Promise.resolve(wa());
|
|
664
664
|
} finally {
|
|
665
|
-
|
|
665
|
+
xe.value = !1;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
function $a(t) {
|
|
669
669
|
if (t?.stage === "start") {
|
|
670
|
-
|
|
670
|
+
Ce.value = !0;
|
|
671
671
|
return;
|
|
672
672
|
}
|
|
673
673
|
if (t?.stage === "end") {
|
|
674
|
-
|
|
674
|
+
Ce.value = !1;
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
|
-
|
|
677
|
+
pt();
|
|
678
678
|
}
|
|
679
679
|
function Ta() {
|
|
680
680
|
console.warn("[autoSize]: this legacy method can be safely removed as it has no impact.");
|
|
681
681
|
}
|
|
682
|
-
async function
|
|
683
|
-
if (
|
|
682
|
+
async function Vt() {
|
|
683
|
+
if (Fe("copyAlt", {
|
|
684
684
|
config: e.value,
|
|
685
685
|
dataset: U.value
|
|
686
686
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
@@ -692,55 +692,56 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
692
692
|
dataset: U.value
|
|
693
693
|
}));
|
|
694
694
|
}
|
|
695
|
-
const
|
|
695
|
+
const je = v(!1);
|
|
696
696
|
function La() {
|
|
697
|
-
z.value = null,
|
|
697
|
+
z.value = null, je.value = !0;
|
|
698
698
|
}
|
|
699
699
|
function Sa() {
|
|
700
|
-
z.value = null,
|
|
700
|
+
z.value = null, be.value = !1, je.value = !1;
|
|
701
701
|
}
|
|
702
702
|
function Pa() {
|
|
703
703
|
if (z.value === null) return;
|
|
704
|
-
const t =
|
|
705
|
-
t &&
|
|
704
|
+
const t = w.value[z.value];
|
|
705
|
+
t && Tt({
|
|
706
706
|
datapoint: t,
|
|
707
707
|
seriesIndex: z.value
|
|
708
|
-
}), z.value = null,
|
|
708
|
+
}), z.value = null, Oe.value = "pointer";
|
|
709
709
|
}
|
|
710
710
|
function Aa(t) {
|
|
711
|
-
if (!
|
|
711
|
+
if (!oe.value || he.value || document.activeElement !== oe.value) return;
|
|
712
712
|
const l = t.key === "ArrowRight" || t.key === "ArrowDown", a = t.key === "ArrowLeft" || t.key === "ArrowUp", o = t.key === "Enter" || t.key === " ", g = t.key === "Escape";
|
|
713
713
|
if (!l && !a && !o && !g) return;
|
|
714
|
-
const
|
|
715
|
-
if (!
|
|
714
|
+
const m = w.value.length;
|
|
715
|
+
if (!m) return;
|
|
716
716
|
if (t.preventDefault(), t.stopPropagation(), g) {
|
|
717
717
|
Pa();
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
720
|
if (o) {
|
|
721
721
|
if (z.value === null) return;
|
|
722
|
-
const
|
|
723
|
-
if (!
|
|
724
|
-
|
|
725
|
-
datapoint:
|
|
722
|
+
const ee = w.value[z.value];
|
|
723
|
+
if (!ee) return;
|
|
724
|
+
$t({
|
|
725
|
+
datapoint: ee,
|
|
726
726
|
seriesIndex: z.value
|
|
727
727
|
});
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
let
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
730
|
+
let u = z.value;
|
|
731
|
+
const $ = me.value ? w.value.findIndex((ee) => ee.id === me.value.id) : null, Ye = u !== null && u >= 0 && u < m, fe = $ !== null && $ >= 0 && $ < m;
|
|
732
|
+
Ye ? l ? (u += 1, u >= m && (u = 0)) : a && (u -= 1, u < 0 && (u = m - 1)) : fe ? (u = l ? $ + 1 : $ - 1, u >= m && (u = 0), u < 0 && (u = m - 1)) : l ? u = 0 : u = m - 1;
|
|
733
|
+
const ue = w.value[u];
|
|
734
|
+
ue && (z.value = u, za(ue), Lt(ue, u, "keyboard"));
|
|
734
735
|
}
|
|
735
736
|
function za(t) {
|
|
736
737
|
if (!t) return;
|
|
737
|
-
let l = c.value.right, a = c.value.top + (x.value + d.value) * t.absoluteIndex + A.value[t.absoluteIndex] *
|
|
738
|
+
let l = c.value.right, a = c.value.top + (x.value + d.value) * t.absoluteIndex + A.value[t.absoluteIndex] * L.value;
|
|
738
739
|
if (!Number.isFinite(l) || !Number.isFinite(a))
|
|
739
740
|
return;
|
|
740
|
-
const o = ja(l, a,
|
|
741
|
-
o && (
|
|
741
|
+
const o = ja(l, a, oe.value);
|
|
742
|
+
o && (it.value = o);
|
|
742
743
|
}
|
|
743
|
-
const
|
|
744
|
+
const pe = h(() => ({
|
|
744
745
|
head: V.value.head,
|
|
745
746
|
body: V.value.body.map((t) => [
|
|
746
747
|
t.parentName,
|
|
@@ -780,47 +781,47 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
780
781
|
autoSize: Ta,
|
|
781
782
|
getData: ha,
|
|
782
783
|
getImage: ya,
|
|
783
|
-
generatePdf:
|
|
784
|
-
generateCsv:
|
|
785
|
-
generateImage:
|
|
786
|
-
generateSvg:
|
|
784
|
+
generatePdf: ht,
|
|
785
|
+
generateCsv: We,
|
|
786
|
+
generateImage: pt,
|
|
787
|
+
generateSvg: It,
|
|
787
788
|
hideSeries: va,
|
|
788
789
|
showSeries: ia,
|
|
789
|
-
toggleTable:
|
|
790
|
-
toggleSort:
|
|
791
|
-
toggleTooltip:
|
|
792
|
-
toggleAnnotator:
|
|
793
|
-
toggleFullscreen:
|
|
794
|
-
copyAlt:
|
|
795
|
-
}), (t, l) => (n(),
|
|
796
|
-
class:
|
|
790
|
+
toggleTable: At,
|
|
791
|
+
toggleSort: zt,
|
|
792
|
+
toggleTooltip: Nt,
|
|
793
|
+
toggleAnnotator: Ge,
|
|
794
|
+
toggleFullscreen: Pt,
|
|
795
|
+
copyAlt: Vt
|
|
796
|
+
}), (t, l) => (n(), r("div", {
|
|
797
|
+
class: te(`vue-data-ui-component vue-ui-vertical-bar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive ? "vue-ui-vertical-bar-autosize" : ""}`),
|
|
797
798
|
ref_key: "verticalBarChart",
|
|
798
799
|
ref: R,
|
|
799
800
|
id: `vue-ui-vertical-bar_${S.value}`,
|
|
800
801
|
style: b(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};height:100%`),
|
|
801
|
-
onMouseenter: l[3] || (l[3] = () =>
|
|
802
|
-
onMouseleave: l[4] || (l[4] = () =>
|
|
802
|
+
onMouseenter: l[3] || (l[3] = () => i(ct)(!0)),
|
|
803
|
+
onMouseleave: l[4] || (l[4] = () => i(ct)(!1))
|
|
803
804
|
}, [
|
|
804
|
-
|
|
805
|
+
s("p", {
|
|
805
806
|
id: `chart-instructions-${S.value}`,
|
|
806
807
|
class: "sr-only"
|
|
807
|
-
},
|
|
808
|
-
|
|
808
|
+
}, k(e.value.a11y.translations.keyboardNavigation), 9, hl),
|
|
809
|
+
pe.value.body.length ? (n(), H(vl, {
|
|
809
810
|
key: 0,
|
|
810
811
|
uid: S.value,
|
|
811
|
-
head:
|
|
812
|
-
body:
|
|
813
|
-
caption:
|
|
814
|
-
notice:
|
|
812
|
+
head: pe.value.head,
|
|
813
|
+
body: pe.value.body,
|
|
814
|
+
caption: pe.value.caption,
|
|
815
|
+
notice: pe.value.notice
|
|
815
816
|
}, null, 8, ["uid", "head", "body", "caption", "notice"])) : p("", !0),
|
|
816
|
-
e.value.userOptions.buttons.annotator ? (n(), H(
|
|
817
|
+
e.value.userOptions.buttons.annotator ? (n(), H(i(Wt), {
|
|
817
818
|
key: 1,
|
|
818
|
-
svgRef:
|
|
819
|
+
svgRef: i(oe),
|
|
819
820
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
820
821
|
color: e.value.style.chart.color,
|
|
821
|
-
active:
|
|
822
|
+
active: he.value,
|
|
822
823
|
isCursorPointer: Y.value,
|
|
823
|
-
onClose:
|
|
824
|
+
onClose: Ge
|
|
824
825
|
}, {
|
|
825
826
|
"annotator-action-close": f(() => [
|
|
826
827
|
y(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
@@ -842,21 +843,21 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
842
843
|
]),
|
|
843
844
|
_: 3
|
|
844
845
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
|
|
845
|
-
oa.value ? (n(),
|
|
846
|
+
oa.value ? (n(), r("div", {
|
|
846
847
|
key: 2,
|
|
847
848
|
ref_key: "noTitle",
|
|
848
|
-
ref:
|
|
849
|
+
ref: st,
|
|
849
850
|
class: "vue-data-ui-no-title-space",
|
|
850
851
|
style: "height:36px; width: 100%;background:transparent"
|
|
851
852
|
}, null, 512)) : p("", !0),
|
|
852
|
-
e.value.style.chart.title.text ? (n(),
|
|
853
|
+
e.value.style.chart.title.text ? (n(), r("div", {
|
|
853
854
|
key: 3,
|
|
854
855
|
ref_key: "chartTitle",
|
|
855
|
-
ref:
|
|
856
|
+
ref: nt,
|
|
856
857
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
857
858
|
}, [
|
|
858
859
|
(n(), H(sl, {
|
|
859
|
-
key: `title_${
|
|
860
|
+
key: `title_${rt.value}`,
|
|
860
861
|
config: {
|
|
861
862
|
title: {
|
|
862
863
|
cy: "vertical-bar-div-title",
|
|
@@ -869,14 +870,14 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
869
870
|
}
|
|
870
871
|
}, null, 8, ["config"]))
|
|
871
872
|
], 512)) : p("", !0),
|
|
872
|
-
e.value.userOptions.show &&
|
|
873
|
+
e.value.userOptions.show && Se.value && (i(dt) || i(De)) ? (n(), H(i(Gt), {
|
|
873
874
|
ref_key: "userOptionsRef",
|
|
874
|
-
ref:
|
|
875
|
+
ref: Ne,
|
|
875
876
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
876
877
|
color: e.value.style.chart.color,
|
|
877
|
-
key: `user_options_${
|
|
878
|
-
isImaging:
|
|
879
|
-
isPrinting:
|
|
878
|
+
key: `user_options_${ot.value}`,
|
|
879
|
+
isImaging: i(Re),
|
|
880
|
+
isPrinting: i(Ee),
|
|
880
881
|
uid: S.value,
|
|
881
882
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
882
883
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -888,30 +889,30 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
888
889
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
889
890
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
890
891
|
isFullscreen: Q.value,
|
|
891
|
-
isTooltip:
|
|
892
|
+
isTooltip: T.value.showTooltip,
|
|
892
893
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
893
894
|
chartElement: R.value,
|
|
894
895
|
position: e.value.userOptions.position,
|
|
895
896
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
896
|
-
isAnnotation:
|
|
897
|
+
isAnnotation: he.value,
|
|
897
898
|
callbacks: e.value.userOptions.callbacks,
|
|
898
899
|
printScale: e.value.userOptions.print.scale,
|
|
899
900
|
tableDialog: e.value.table.useDialog,
|
|
900
901
|
isCursorPointer: Y.value,
|
|
901
|
-
onToggleFullscreen:
|
|
902
|
-
onGeneratePdf:
|
|
903
|
-
onGenerateCsv:
|
|
902
|
+
onToggleFullscreen: Pt,
|
|
903
|
+
onGeneratePdf: i(ht),
|
|
904
|
+
onGenerateCsv: We,
|
|
904
905
|
onGenerateImage: $a,
|
|
905
|
-
onGenerateSvg:
|
|
906
|
-
onToggleTable:
|
|
907
|
-
onToggleSort:
|
|
908
|
-
onToggleTooltip:
|
|
909
|
-
onToggleAnnotator:
|
|
910
|
-
onCopyAlt:
|
|
906
|
+
onGenerateSvg: It,
|
|
907
|
+
onToggleTable: At,
|
|
908
|
+
onToggleSort: zt,
|
|
909
|
+
onToggleTooltip: Nt,
|
|
910
|
+
onToggleAnnotator: Ge,
|
|
911
|
+
onCopyAlt: Vt,
|
|
911
912
|
style: b({
|
|
912
|
-
visibility:
|
|
913
|
+
visibility: i(dt) ? i(De) ? "visible" : "hidden" : "visible"
|
|
913
914
|
})
|
|
914
|
-
},
|
|
915
|
+
}, Te({ _: 2 }, [
|
|
915
916
|
t.$slots.menuIcon ? {
|
|
916
917
|
name: "menuIcon",
|
|
917
918
|
fn: f(({ isOpen: a, color: o }) => [
|
|
@@ -997,25 +998,25 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
997
998
|
key: "11"
|
|
998
999
|
} : void 0
|
|
999
1000
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "hasAltCopy", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
|
|
1000
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (n(),
|
|
1001
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (n(), r("div", {
|
|
1001
1002
|
key: 5,
|
|
1002
1003
|
ref_key: "chartLegend",
|
|
1003
|
-
ref:
|
|
1004
|
+
ref: Ae
|
|
1004
1005
|
}, [
|
|
1005
|
-
(n(), H(
|
|
1006
|
-
key: `legend_top_${
|
|
1006
|
+
(n(), H(Bt, {
|
|
1007
|
+
key: `legend_top_${ze.value}`,
|
|
1007
1008
|
legendSet: P.value,
|
|
1008
|
-
config:
|
|
1009
|
+
config: mt.value,
|
|
1009
1010
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.id))
|
|
1010
|
-
},
|
|
1011
|
+
}, Te({
|
|
1011
1012
|
item: f(({ legend: a, index: o }) => [
|
|
1012
|
-
|
|
1013
|
+
s("div", {
|
|
1013
1014
|
onClick: (g) => Z(a.id),
|
|
1014
|
-
style: b(`opacity:${
|
|
1015
|
-
},
|
|
1015
|
+
style: b(`opacity:${_.value.includes(a.id) ? 0.5 : 1}`)
|
|
1016
|
+
}, k(a.name) + ": " + k(i(ge)(
|
|
1016
1017
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
1017
1018
|
a.value,
|
|
1018
|
-
|
|
1019
|
+
i(M)({
|
|
1019
1020
|
p: e.value.style.chart.legend.prefix,
|
|
1020
1021
|
v: a.value,
|
|
1021
1022
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -1025,13 +1026,13 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1025
1026
|
)), 13, pl)
|
|
1026
1027
|
]),
|
|
1027
1028
|
legendToggle: f(() => [
|
|
1028
|
-
P.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !
|
|
1029
|
+
P.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(we) ? (n(), H(Et, {
|
|
1029
1030
|
key: 0,
|
|
1030
1031
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1031
1032
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1032
1033
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
1033
|
-
checked:
|
|
1034
|
-
onToggle:
|
|
1034
|
+
checked: _.value.length > 0,
|
|
1035
|
+
onToggle: Ct
|
|
1035
1036
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked"])) : p("", !0)
|
|
1036
1037
|
]),
|
|
1037
1038
|
_: 2
|
|
@@ -1039,7 +1040,7 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1039
1040
|
t.$slots.pattern ? {
|
|
1040
1041
|
name: "legend-pattern",
|
|
1041
1042
|
fn: f(({ legend: a, index: o }) => [
|
|
1042
|
-
|
|
1043
|
+
ie(Dt, {
|
|
1043
1044
|
shape: a.shape,
|
|
1044
1045
|
radius: 30,
|
|
1045
1046
|
stroke: "none",
|
|
@@ -1051,12 +1052,12 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1051
1052
|
} : void 0
|
|
1052
1053
|
]), 1032, ["legendSet", "config"]))
|
|
1053
1054
|
], 512)) : p("", !0),
|
|
1054
|
-
|
|
1055
|
-
(n(),
|
|
1055
|
+
s("div", fl, [
|
|
1056
|
+
(n(), r("svg", {
|
|
1056
1057
|
ref_key: "svgRef",
|
|
1057
|
-
ref:
|
|
1058
|
-
xmlns:
|
|
1059
|
-
class:
|
|
1058
|
+
ref: oe,
|
|
1059
|
+
xmlns: i(Ra),
|
|
1060
|
+
class: te({
|
|
1060
1061
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1061
1062
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1062
1063
|
}),
|
|
@@ -1068,13 +1069,13 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1068
1069
|
onBlur: Sa,
|
|
1069
1070
|
onKeydown: Aa
|
|
1070
1071
|
}, [
|
|
1071
|
-
|
|
1072
|
+
s("g", {
|
|
1072
1073
|
ref_key: "G",
|
|
1073
1074
|
ref: Qt,
|
|
1074
1075
|
class: "vue-data-ui-g"
|
|
1075
1076
|
}, [
|
|
1076
|
-
|
|
1077
|
-
t.$slots["chart-background"] ? (n(),
|
|
1077
|
+
ie(i(Kt)),
|
|
1078
|
+
t.$slots["chart-background"] ? (n(), r("foreignObject", {
|
|
1078
1079
|
key: 0,
|
|
1079
1080
|
x: 0,
|
|
1080
1081
|
y: 0,
|
|
@@ -1086,37 +1087,37 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1086
1087
|
}, [
|
|
1087
1088
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
1088
1089
|
], 8, gl)) : p("", !0),
|
|
1089
|
-
(n(!0),
|
|
1090
|
+
(n(!0), r(D, null, B(w.value, (a, o) => (n(), r("linearGradient", {
|
|
1090
1091
|
x1: "0%",
|
|
1091
1092
|
y1: "0%",
|
|
1092
1093
|
x2: "100%",
|
|
1093
1094
|
y2: "0%",
|
|
1094
1095
|
id: `vertical_bar_gradient_${S.value}_${o}`
|
|
1095
1096
|
}, [
|
|
1096
|
-
|
|
1097
|
+
s("stop", {
|
|
1097
1098
|
offset: "0%",
|
|
1098
1099
|
"stop-color": a.color
|
|
1099
1100
|
}, null, 8, ml),
|
|
1100
|
-
|
|
1101
|
+
s("stop", {
|
|
1101
1102
|
offset: "100%",
|
|
1102
|
-
"stop-color":
|
|
1103
|
-
|
|
1103
|
+
"stop-color": i(et)(
|
|
1104
|
+
i(Xa)(a.color, 0.03),
|
|
1104
1105
|
100 - e.value.style.chart.layout.bars.gradientIntensity
|
|
1105
1106
|
)
|
|
1106
1107
|
}, null, 8, kl)
|
|
1107
1108
|
], 8, bl))), 256)),
|
|
1108
|
-
t.$slots.pattern ? (n(),
|
|
1109
|
-
(n(!0),
|
|
1109
|
+
t.$slots.pattern ? (n(), r("g", Cl, [
|
|
1110
|
+
(n(!0), r(D, null, B(w.value, (a) => (n(), r("defs", null, [
|
|
1110
1111
|
y(t.$slots, "pattern", Ot({ ref_for: !0 }, {
|
|
1111
1112
|
seriesIndex: a.absoluteIndex,
|
|
1112
1113
|
patternId: `pattern_${S.value}_${a.absoluteIndex}`
|
|
1113
1114
|
}), void 0, !0)
|
|
1114
1115
|
]))), 256))
|
|
1115
1116
|
])) : p("", !0),
|
|
1116
|
-
e.value.style.chart.layout.bars.rowColor ? (n(!0),
|
|
1117
|
-
|
|
1117
|
+
e.value.style.chart.layout.bars.rowColor ? (n(!0), r(D, { key: 2 }, B(w.value, (a, o) => (n(), r("g", null, [
|
|
1118
|
+
s("rect", {
|
|
1118
1119
|
x: 0,
|
|
1119
|
-
y: c.value.top + (x.value + d.value) * o + A.value[o] *
|
|
1120
|
+
y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
|
|
1120
1121
|
width: E.value,
|
|
1121
1122
|
height: d.value <= 0 ? 1e-4 : d.value,
|
|
1122
1123
|
fill: e.value.style.chart.layout.bars.rowColor,
|
|
@@ -1124,47 +1125,47 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1124
1125
|
style: { pointerEvents: "none" }
|
|
1125
1126
|
}, null, 8, xl)
|
|
1126
1127
|
]))), 256)) : p("", !0),
|
|
1127
|
-
(n(!0),
|
|
1128
|
-
|
|
1129
|
-
x:
|
|
1128
|
+
(n(!0), r(D, null, B(w.value, (a, o) => (n(), r("g", null, [
|
|
1129
|
+
s("rect", {
|
|
1130
|
+
x: i(N)(
|
|
1130
1131
|
J.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : I(a.value) <= 0 ? 1e-4 : I(a.value)) : c.value.left
|
|
1131
1132
|
),
|
|
1132
|
-
y: c.value.top + (x.value + d.value) * o + A.value[o] *
|
|
1133
|
-
width:
|
|
1133
|
+
y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
|
|
1134
|
+
width: i(N)(
|
|
1134
1135
|
I(a.value) <= 0 ? 1e-4 : I(a.value)
|
|
1135
1136
|
),
|
|
1136
1137
|
height: d.value <= 0 ? 1e-4 : d.value,
|
|
1137
1138
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
1138
1139
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
1139
|
-
class:
|
|
1140
|
+
class: te({ animated: e.value.useCssAnimation })
|
|
1140
1141
|
}, null, 10, wl)
|
|
1141
1142
|
]))), 256)),
|
|
1142
|
-
(n(!0),
|
|
1143
|
-
|
|
1144
|
-
x:
|
|
1143
|
+
(n(!0), r(D, null, B(w.value, (a, o) => (n(), r("g", null, [
|
|
1144
|
+
s("rect", {
|
|
1145
|
+
x: i(N)(
|
|
1145
1146
|
J.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : I(a.value) <= 0 ? 1e-4 : I(a.value)) : c.value.left
|
|
1146
1147
|
),
|
|
1147
|
-
y: c.value.top + (x.value + d.value) * o + A.value[o] *
|
|
1148
|
-
width:
|
|
1148
|
+
y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
|
|
1149
|
+
width: i(N)(
|
|
1149
1150
|
I(a.value) <= 0 ? 1e-4 : I(a.value)
|
|
1150
1151
|
),
|
|
1151
1152
|
height: d.value <= 0 ? 1e-4 : d.value,
|
|
1152
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` :
|
|
1153
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : i(et)(
|
|
1153
1154
|
a.color,
|
|
1154
1155
|
e.value.style.chart.layout.bars.fillOpacity
|
|
1155
1156
|
),
|
|
1156
1157
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
1157
1158
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
1158
1159
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1159
|
-
class:
|
|
1160
|
+
class: te({ animated: e.value.useCssAnimation })
|
|
1160
1161
|
}, null, 10, _l),
|
|
1161
|
-
t.$slots.pattern ? (n(),
|
|
1162
|
+
t.$slots.pattern ? (n(), r("rect", {
|
|
1162
1163
|
key: 0,
|
|
1163
|
-
x:
|
|
1164
|
+
x: i(N)(
|
|
1164
1165
|
J.value ? c.value.left + c.value.width / 2 - (a.sign === 1 ? 0 : I(a.value) <= 0 ? 1e-4 : I(a.value)) : c.value.left
|
|
1165
1166
|
),
|
|
1166
|
-
y: c.value.top + (x.value + d.value) * o + A.value[o] *
|
|
1167
|
-
width:
|
|
1167
|
+
y: c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
|
|
1168
|
+
width: i(N)(
|
|
1168
1169
|
I(a.value) <= 0 ? 1e-4 : I(a.value)
|
|
1169
1170
|
),
|
|
1170
1171
|
height: d.value <= 0 ? 1e-4 : d.value,
|
|
@@ -1172,14 +1173,14 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1172
1173
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
1173
1174
|
stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
|
|
1174
1175
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
1175
|
-
class:
|
|
1176
|
+
class: te({ animated: e.value.useCssAnimation })
|
|
1176
1177
|
}, null, 10, $l)) : p("", !0),
|
|
1177
|
-
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
1178
|
+
(!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== w.value.length - 1 ? (n(), r("line", {
|
|
1178
1179
|
key: 1,
|
|
1179
1180
|
x1: E.value,
|
|
1180
1181
|
x2: e.value.style.chart.layout.separators.fullWidth ? 0 : c.value.left,
|
|
1181
|
-
y1: d.value + x.value / 2 + c.value.top + (x.value + d.value) * o + A.value[o] *
|
|
1182
|
-
y2: d.value + x.value / 2 + c.value.top + (x.value + d.value) * o + A.value[o] *
|
|
1182
|
+
y1: d.value + x.value / 2 + c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
|
|
1183
|
+
y2: d.value + x.value / 2 + c.value.top + (x.value + d.value) * o + A.value[o] * L.value,
|
|
1183
1184
|
stroke: e.value.style.chart.layout.separators.color,
|
|
1184
1185
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
1185
1186
|
"stroke-linecap": "round",
|
|
@@ -1188,7 +1189,7 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1188
1189
|
animation: "none !important"
|
|
1189
1190
|
}
|
|
1190
1191
|
}, null, 8, Tl)) : p("", !0),
|
|
1191
|
-
J.value && e.value.style.chart.layout.separators.show ? (n(),
|
|
1192
|
+
J.value && e.value.style.chart.layout.separators.show ? (n(), r("line", {
|
|
1192
1193
|
key: 2,
|
|
1193
1194
|
x1: c.value.left + c.value.width / 2,
|
|
1194
1195
|
x2: c.value.left + c.value.width / 2,
|
|
@@ -1199,165 +1200,165 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1199
1200
|
"stroke-linecap": "round"
|
|
1200
1201
|
}, null, 8, Ll)) : p("", !0)
|
|
1201
1202
|
]))), 256)),
|
|
1202
|
-
|
|
1203
|
+
s("g", {
|
|
1203
1204
|
ref_key: "parentLabels",
|
|
1204
1205
|
ref: ea
|
|
1205
1206
|
}, [
|
|
1206
|
-
(n(!0),
|
|
1207
|
-
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(),
|
|
1207
|
+
(n(!0), r(D, null, B(w.value, (a, o) => (n(), r("g", Sl, [
|
|
1208
|
+
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), r("rect", {
|
|
1208
1209
|
key: 0,
|
|
1209
1210
|
class: "vue-ui-horizontal-bar-parent-marker",
|
|
1210
1211
|
x: 2,
|
|
1211
|
-
y:
|
|
1212
|
+
y: ne(a, o).y - e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1212
1213
|
height: e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1213
1214
|
width: e.value.style.chart.layout.bars.parentLabels.fontSize / 1.5,
|
|
1214
1215
|
rx: 1,
|
|
1215
1216
|
fill: a.color,
|
|
1216
1217
|
style: { animation: "none !important", transition: "none !important" }
|
|
1217
1218
|
}, null, 8, Pl)) : p("", !0),
|
|
1218
|
-
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(),
|
|
1219
|
+
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), r("text", {
|
|
1219
1220
|
key: 1,
|
|
1220
|
-
y:
|
|
1221
|
+
y: ne(a, o).y,
|
|
1221
1222
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1222
1223
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
1223
1224
|
x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1224
1225
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
1225
1226
|
"text-anchor": "start",
|
|
1226
|
-
innerHTML:
|
|
1227
|
-
content: `${
|
|
1227
|
+
innerHTML: i(tt)({
|
|
1228
|
+
content: `${_t(a, o)}`,
|
|
1228
1229
|
fontSize: e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1229
1230
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
1230
1231
|
x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1231
|
-
y:
|
|
1232
|
+
y: ne(a, o).y,
|
|
1232
1233
|
translateY: !1
|
|
1233
1234
|
})
|
|
1234
1235
|
}, null, 8, Al)) : p("", !0),
|
|
1235
|
-
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(),
|
|
1236
|
+
a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), r("text", {
|
|
1236
1237
|
key: 2,
|
|
1237
|
-
y:
|
|
1238
|
+
y: ne(a, o).y + i(Ha)(_t(a, o)) * e.value.style.chart.layout.bars.parentLabels.fontSize * 1.1,
|
|
1238
1239
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1239
1240
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
1240
1241
|
x: e.value.style.chart.layout.bars.parentLabels.offsetX + e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
1241
1242
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
1242
1243
|
"text-anchor": "start"
|
|
1243
|
-
},
|
|
1244
|
+
}, k(pa(a, o)), 9, zl)) : p("", !0)
|
|
1244
1245
|
]))), 256))
|
|
1245
1246
|
], 512),
|
|
1246
|
-
|
|
1247
|
+
s("g", {
|
|
1247
1248
|
ref_key: "childLabels",
|
|
1248
|
-
ref:
|
|
1249
|
+
ref: Ie
|
|
1249
1250
|
}, [
|
|
1250
|
-
(n(!0),
|
|
1251
|
-
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(),
|
|
1251
|
+
(n(!0), r(D, null, B(ra.value, (a, o) => (n(), r("g", Nl, [
|
|
1252
|
+
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), r("text", {
|
|
1252
1253
|
key: 0,
|
|
1253
1254
|
"text-anchor": "start",
|
|
1254
1255
|
x: Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1255
|
-
y:
|
|
1256
|
+
y: i(N)(c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + A.value[o] * L.value),
|
|
1256
1257
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1257
1258
|
fill: "transparent",
|
|
1258
1259
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1259
1260
|
style: { "user-select": "none" },
|
|
1260
|
-
innerHTML:
|
|
1261
|
+
innerHTML: i(tt)({
|
|
1261
1262
|
content: a.name,
|
|
1262
1263
|
fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1263
1264
|
fill: "transparent",
|
|
1264
1265
|
x: Math.abs(e.value.style.chart.layout.bars.nameLabels.offsetX),
|
|
1265
|
-
y:
|
|
1266
|
+
y: i(N)(c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2 + A.value[o] * L.value),
|
|
1266
1267
|
translateY: !0
|
|
1267
1268
|
})
|
|
1268
1269
|
}, null, 8, Il)) : p("", !0)
|
|
1269
1270
|
]))), 256))
|
|
1270
1271
|
], 512),
|
|
1271
|
-
|
|
1272
|
-
(n(!0),
|
|
1273
|
-
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(),
|
|
1272
|
+
s("g", null, [
|
|
1273
|
+
(n(!0), r(D, null, B(w.value, (a, o) => (n(), r("g", Vl, [
|
|
1274
|
+
(a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), r("text", {
|
|
1274
1275
|
key: 0,
|
|
1275
1276
|
"text-anchor": "end",
|
|
1276
1277
|
x: c.value.left + e.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1277
|
-
y: c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] *
|
|
1278
|
+
y: c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] * L.value,
|
|
1278
1279
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1279
1280
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
1280
1281
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal",
|
|
1281
|
-
innerHTML:
|
|
1282
|
+
innerHTML: i(tt)({
|
|
1282
1283
|
content: a.name,
|
|
1283
1284
|
fontSize: e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
1284
1285
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
1285
1286
|
x: c.value.left + e.value.style.chart.layout.bars.nameLabels.offsetX - 6,
|
|
1286
|
-
y: c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] *
|
|
1287
|
+
y: c.value.top + (x.value + d.value) * o + d.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 3 + A.value[o] * L.value,
|
|
1287
1288
|
translateY: !0
|
|
1288
1289
|
})
|
|
1289
1290
|
}, null, 8, Ol)) : p("", !0)
|
|
1290
1291
|
]))), 256))
|
|
1291
1292
|
]),
|
|
1292
|
-
|
|
1293
|
+
s("g", {
|
|
1293
1294
|
ref_key: "dataLabels",
|
|
1294
|
-
ref:
|
|
1295
|
+
ref: Ve
|
|
1295
1296
|
}, [
|
|
1296
|
-
(n(!0),
|
|
1297
|
-
|
|
1297
|
+
(n(!0), r(D, null, B(w.value, (a, o) => (n(), r("g", Fl, [
|
|
1298
|
+
s("text", {
|
|
1298
1299
|
x: J.value ? c.value.left + c.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) : Math.min(
|
|
1299
1300
|
da(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
1300
1301
|
c.value.right - 2
|
|
1301
1302
|
),
|
|
1302
|
-
y: c.value.top + (x.value + d.value) * o + d.value / 2 + A.value[o] *
|
|
1303
|
+
y: c.value.top + (x.value + d.value) * o + d.value / 2 + A.value[o] * L.value + e.value.style.chart.layout.bars.dataLabels.fontSize / 3,
|
|
1303
1304
|
"text-anchor": !J.value || a.sign === -1 ? "start" : "end",
|
|
1304
1305
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
1305
1306
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
1306
1307
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
1307
|
-
},
|
|
1308
|
+
}, k(St(a.value, a, o, a.sign)), 9, Ml)
|
|
1308
1309
|
]))), 256))
|
|
1309
1310
|
], 512),
|
|
1310
|
-
(n(!0),
|
|
1311
|
-
|
|
1311
|
+
(n(!0), r(D, null, B(w.value, (a, o) => (n(), r("g", null, [
|
|
1312
|
+
s("rect", {
|
|
1312
1313
|
x: 0,
|
|
1313
|
-
y: c.value.top + (x.value + d.value) * o - x.value / 2 + A.value[o] *
|
|
1314
|
+
y: c.value.top + (x.value + d.value) * o - x.value / 2 + A.value[o] * L.value,
|
|
1314
1315
|
width: E.value,
|
|
1315
1316
|
height: d.value + x.value <= 0 ? 1e-4 : d.value + x.value,
|
|
1316
|
-
fill:
|
|
1317
|
+
fill: He.value === a.id ? i(et)(
|
|
1317
1318
|
e.value.style.chart.layout.highlighter.color,
|
|
1318
1319
|
e.value.style.chart.layout.highlighter.opacity
|
|
1319
1320
|
) : "transparent",
|
|
1320
|
-
onMouseenter: (g) =>
|
|
1321
|
-
onMouseleave: (g) =>
|
|
1322
|
-
onClick: (g) =>
|
|
1323
|
-
}, null, 40,
|
|
1321
|
+
onMouseenter: (g) => Lt(a, o, "pointer"),
|
|
1322
|
+
onMouseleave: (g) => Tt({ datapoint: a, seriesIndex: o }),
|
|
1323
|
+
onClick: (g) => $t({ datapoint: a, seriesIndex: o })
|
|
1324
|
+
}, null, 40, Dl)
|
|
1324
1325
|
]))), 256)),
|
|
1325
1326
|
y(t.$slots, "svg", {
|
|
1326
1327
|
svg: {
|
|
1327
1328
|
...W.value,
|
|
1328
|
-
isPrintingImg:
|
|
1329
|
-
isPrintingSvg:
|
|
1329
|
+
isPrintingImg: i(Ee) | i(Re) | Ce.value,
|
|
1330
|
+
isPrintingSvg: xe.value
|
|
1330
1331
|
}
|
|
1331
1332
|
}, void 0, !0)
|
|
1332
1333
|
], 512)
|
|
1333
1334
|
], 46, yl)),
|
|
1334
|
-
t.$slots.hint ? (n(),
|
|
1335
|
-
y(t.$slots, "hint", O(F({ hint: e.value.a11y.translations.keyboardNavigation, isVisible:
|
|
1335
|
+
t.$slots.hint ? (n(), r("div", Bl, [
|
|
1336
|
+
y(t.$slots, "hint", O(F({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: je.value })), void 0, !0)
|
|
1336
1337
|
])) : p("", !0)
|
|
1337
1338
|
]),
|
|
1338
|
-
t.$slots.watermark ? (n(),
|
|
1339
|
-
y(t.$slots, "watermark", O(F({ isPrinting:
|
|
1339
|
+
t.$slots.watermark ? (n(), r("div", El, [
|
|
1340
|
+
y(t.$slots, "watermark", O(F({ isPrinting: i(Ee) || i(Re) || Ce.value || xe.value })), void 0, !0)
|
|
1340
1341
|
])) : p("", !0),
|
|
1341
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(),
|
|
1342
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(), r("div", {
|
|
1342
1343
|
key: 7,
|
|
1343
1344
|
ref_key: "chartLegend",
|
|
1344
|
-
ref:
|
|
1345
|
+
ref: Ae
|
|
1345
1346
|
}, [
|
|
1346
|
-
(n(), H(
|
|
1347
|
-
key: `legend_bottom_${
|
|
1347
|
+
(n(), H(Bt, {
|
|
1348
|
+
key: `legend_bottom_${ze.value}`,
|
|
1348
1349
|
legendSet: P.value,
|
|
1349
|
-
config:
|
|
1350
|
+
config: mt.value,
|
|
1350
1351
|
isCursorPointer: Y.value,
|
|
1351
1352
|
onClickMarker: l[1] || (l[1] = ({ legend: a }) => Z(a.id))
|
|
1352
|
-
},
|
|
1353
|
+
}, Te({
|
|
1353
1354
|
item: f(({ legend: a, index: o }) => [
|
|
1354
|
-
|
|
1355
|
+
s("div", {
|
|
1355
1356
|
onClick: (g) => Z(a.id),
|
|
1356
|
-
style: b(`opacity:${
|
|
1357
|
-
},
|
|
1357
|
+
style: b(`opacity:${_.value.includes(a.id) ? 0.5 : 1}`)
|
|
1358
|
+
}, k(a.name) + ": " + k(i(ge)(
|
|
1358
1359
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
1359
1360
|
a.value,
|
|
1360
|
-
|
|
1361
|
+
i(M)({
|
|
1361
1362
|
p: e.value.style.chart.legend.prefix,
|
|
1362
1363
|
v: a.value,
|
|
1363
1364
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -1367,14 +1368,14 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1367
1368
|
)), 13, Rl)
|
|
1368
1369
|
]),
|
|
1369
1370
|
legendToggle: f(() => [
|
|
1370
|
-
P.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !
|
|
1371
|
+
P.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(we) ? (n(), H(Et, {
|
|
1371
1372
|
key: 0,
|
|
1372
1373
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1373
1374
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1374
1375
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
1375
|
-
checked:
|
|
1376
|
+
checked: _.value.length > 0,
|
|
1376
1377
|
isCursorPointer: Y.value,
|
|
1377
|
-
onToggle:
|
|
1378
|
+
onToggle: Ct
|
|
1378
1379
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : p("", !0)
|
|
1379
1380
|
]),
|
|
1380
1381
|
_: 2
|
|
@@ -1382,7 +1383,7 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1382
1383
|
t.$slots.pattern ? {
|
|
1383
1384
|
name: "legend-pattern",
|
|
1384
1385
|
fn: f(({ legend: a, index: o }) => [
|
|
1385
|
-
|
|
1386
|
+
ie(Dt, {
|
|
1386
1387
|
shape: a.shape,
|
|
1387
1388
|
radius: 30,
|
|
1388
1389
|
stroke: "none",
|
|
@@ -1395,17 +1396,17 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1395
1396
|
]), 1032, ["legendSet", "config", "isCursorPointer"]))
|
|
1396
1397
|
], 512)) : p("", !0),
|
|
1397
1398
|
y(t.$slots, "legend", { legend: P.value }, void 0, !0),
|
|
1398
|
-
t.$slots.source ? (n(),
|
|
1399
|
+
t.$slots.source ? (n(), r("div", {
|
|
1399
1400
|
key: 8,
|
|
1400
1401
|
ref_key: "source",
|
|
1401
|
-
ref:
|
|
1402
|
+
ref: ut,
|
|
1402
1403
|
dir: "auto"
|
|
1403
1404
|
}, [
|
|
1404
1405
|
y(t.$slots, "source", {}, void 0, !0)
|
|
1405
1406
|
], 512)) : p("", !0),
|
|
1406
|
-
|
|
1407
|
+
ie(i(Ut), {
|
|
1407
1408
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1408
|
-
show:
|
|
1409
|
+
show: T.value.showTooltip && be.value && _.value.length < C.dataset.length,
|
|
1409
1410
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1410
1411
|
color: e.value.style.chart.tooltip.color,
|
|
1411
1412
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1416,57 +1417,57 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1416
1417
|
position: e.value.style.chart.tooltip.position,
|
|
1417
1418
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1418
1419
|
parent: R.value,
|
|
1419
|
-
content:
|
|
1420
|
+
content: Pe.value,
|
|
1420
1421
|
isFullscreen: Q.value,
|
|
1421
1422
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1422
1423
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1423
1424
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1424
1425
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1425
1426
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1426
|
-
isA11yMode:
|
|
1427
|
-
a11yPosition:
|
|
1427
|
+
isA11yMode: Oe.value === "keyboard",
|
|
1428
|
+
a11yPosition: it.value
|
|
1428
1429
|
}, {
|
|
1429
1430
|
"tooltip-before": f(() => [
|
|
1430
|
-
y(t.$slots, "tooltip-before", O(F({ ...
|
|
1431
|
+
y(t.$slots, "tooltip-before", O(F({ ...Ue.value })), void 0, !0)
|
|
1431
1432
|
]),
|
|
1432
1433
|
"tooltip-after": f(() => [
|
|
1433
|
-
y(t.$slots, "tooltip-after", O(F({ ...
|
|
1434
|
+
y(t.$slots, "tooltip-after", O(F({ ...Ue.value })), void 0, !0)
|
|
1434
1435
|
]),
|
|
1435
1436
|
_: 3
|
|
1436
1437
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1437
|
-
|
|
1438
|
+
Se.value && e.value.userOptions.buttons.table ? (n(), H(Fa($e.value.component), Ot({ key: 9 }, $e.value.props, {
|
|
1438
1439
|
ref_key: "tableUnit",
|
|
1439
|
-
ref:
|
|
1440
|
-
onClose:
|
|
1441
|
-
}),
|
|
1440
|
+
ref: ve,
|
|
1441
|
+
onClose: Ke
|
|
1442
|
+
}), Te({
|
|
1442
1443
|
content: f(() => [
|
|
1443
|
-
|
|
1444
|
+
s("div", {
|
|
1444
1445
|
ref_key: "tableContainer",
|
|
1445
|
-
ref:
|
|
1446
|
+
ref: yt,
|
|
1446
1447
|
class: "vue-ui-vertical-bar-table atom-data-table",
|
|
1447
1448
|
style: b(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
|
|
1448
1449
|
}, [
|
|
1449
|
-
|
|
1450
|
-
e.value.table.useDialog ? p("", !0) : (n(),
|
|
1450
|
+
s("div", Xl, [
|
|
1451
|
+
e.value.table.useDialog ? p("", !0) : (n(), r("div", {
|
|
1451
1452
|
key: 0,
|
|
1452
1453
|
role: "button",
|
|
1453
1454
|
tabindex: "0",
|
|
1454
1455
|
style: b(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${Y.value ? "pointer" : "default"}; background:${e.value.table.th.backgroundColor};`),
|
|
1455
|
-
onClick:
|
|
1456
|
-
onKeypress: Ma(
|
|
1456
|
+
onClick: Ke,
|
|
1457
|
+
onKeypress: Ma(Ke, ["enter"])
|
|
1457
1458
|
}, [
|
|
1458
|
-
|
|
1459
|
+
ie(i(lt), {
|
|
1459
1460
|
name: "close",
|
|
1460
1461
|
stroke: e.value.table.th.color,
|
|
1461
1462
|
"stroke-width": 2
|
|
1462
1463
|
}, null, 8, ["stroke"])
|
|
1463
1464
|
], 36)),
|
|
1464
|
-
|
|
1465
|
+
s("div", {
|
|
1465
1466
|
style: { width: "100%", "container-type": "inline-size" },
|
|
1466
|
-
class:
|
|
1467
|
+
class: te({ "vue-ui-responsive": i(ga) })
|
|
1467
1468
|
}, [
|
|
1468
|
-
|
|
1469
|
-
e.value.table.useDialog ? p("", !0) : (n(),
|
|
1469
|
+
s("table", Hl, [
|
|
1470
|
+
e.value.table.useDialog ? p("", !0) : (n(), r("caption", {
|
|
1470
1471
|
key: 0,
|
|
1471
1472
|
style: b({
|
|
1472
1473
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -1475,117 +1476,117 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1475
1476
|
}),
|
|
1476
1477
|
class: "vue-ui-data-table__caption"
|
|
1477
1478
|
}, [
|
|
1478
|
-
Ft(
|
|
1479
|
-
e.value.style.chart.title.subtitle.text ? (n(),
|
|
1479
|
+
Ft(k(e.value.style.chart.title.text) + " ", 1),
|
|
1480
|
+
e.value.style.chart.title.subtitle.text ? (n(), r("span", Ul, k(e.value.style.chart.title.subtitle.text), 1)) : p("", !0)
|
|
1480
1481
|
], 4)),
|
|
1481
|
-
|
|
1482
|
-
|
|
1482
|
+
s("thead", null, [
|
|
1483
|
+
s("tr", {
|
|
1483
1484
|
role: "row",
|
|
1484
1485
|
style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1485
1486
|
}, [
|
|
1486
|
-
(n(!0),
|
|
1487
|
+
(n(!0), r(D, null, B(V.value.head, (a) => (n(), r("th", {
|
|
1487
1488
|
style: b(`outline:${e.value.table.th.outline}`)
|
|
1488
1489
|
}, [
|
|
1489
|
-
|
|
1490
|
+
s("div", Wl, k(a), 1)
|
|
1490
1491
|
], 4))), 256))
|
|
1491
1492
|
], 4),
|
|
1492
|
-
|
|
1493
|
-
|
|
1493
|
+
s("tr", null, [
|
|
1494
|
+
s("th", {
|
|
1494
1495
|
style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1495
1496
|
}, null, 4),
|
|
1496
|
-
|
|
1497
|
+
s("th", {
|
|
1497
1498
|
style: b(`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`)
|
|
1498
|
-
}, " ∑ " +
|
|
1499
|
-
|
|
1499
|
+
}, " ∑ " + k(e.value.table.td.prefix) + k(isNaN(X.value) ? "" : X.value.toFixed(e.value.table.td.roundingValue)) + k(e.value.table.td.suffix), 5),
|
|
1500
|
+
s("th", {
|
|
1500
1501
|
style: b(`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`)
|
|
1501
1502
|
}, " 100% ", 4),
|
|
1502
|
-
|
|
1503
|
+
s("th", {
|
|
1503
1504
|
style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1504
1505
|
}, null, 4),
|
|
1505
|
-
|
|
1506
|
+
s("th", {
|
|
1506
1507
|
style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1507
1508
|
}, null, 4),
|
|
1508
|
-
|
|
1509
|
+
s("th", {
|
|
1509
1510
|
style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1510
1511
|
}, null, 4),
|
|
1511
|
-
|
|
1512
|
+
s("th", {
|
|
1512
1513
|
style: b(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
1513
1514
|
}, null, 4)
|
|
1514
1515
|
])
|
|
1515
1516
|
]),
|
|
1516
|
-
|
|
1517
|
-
(n(!0),
|
|
1518
|
-
class:
|
|
1517
|
+
s("tbody", null, [
|
|
1518
|
+
(n(!0), r(D, null, B(V.value.body, (a, o) => (n(), r("tr", {
|
|
1519
|
+
class: te({
|
|
1519
1520
|
"vue-ui-data-table__tbody__row": !0,
|
|
1520
1521
|
"vue-ui-data-table__tbody__row-even": o % 2 === 0,
|
|
1521
1522
|
"vue-ui-data-table__tbody__row-odd": o % 2 !== 0
|
|
1522
1523
|
}),
|
|
1523
1524
|
style: b(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1524
1525
|
}, [
|
|
1525
|
-
|
|
1526
|
+
s("td", {
|
|
1526
1527
|
class: "vue-ui-data-table__tbody__td",
|
|
1527
1528
|
style: b(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
1528
1529
|
"data-cell": V.value.head[0] ?? ""
|
|
1529
1530
|
}, [
|
|
1530
|
-
|
|
1531
|
-
a.color ? (n(),
|
|
1531
|
+
s("div", Kl, [
|
|
1532
|
+
a.color ? (n(), r("span", {
|
|
1532
1533
|
key: 0,
|
|
1533
1534
|
style: b(`color:${a.color};margin-right:3px`)
|
|
1534
1535
|
}, "⬤", 4)) : p("", !0),
|
|
1535
|
-
|
|
1536
|
+
s("span", null, k(a.parentName), 1)
|
|
1536
1537
|
])
|
|
1537
1538
|
], 12, Gl),
|
|
1538
|
-
|
|
1539
|
+
s("td", {
|
|
1539
1540
|
class: "vue-ui-data-table__tbody__td",
|
|
1540
1541
|
style: b(`outline:${e.value.table.td.outline}`),
|
|
1541
1542
|
"data-cell": V.value.head[1] ?? ""
|
|
1542
1543
|
}, [
|
|
1543
|
-
|
|
1544
|
+
s("div", Yl, k(e.value.table.td.prefix) + k(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(
|
|
1544
1545
|
e.value.table.td.roundingValue
|
|
1545
|
-
)) +
|
|
1546
|
+
)) + k(e.value.table.td.suffix), 1)
|
|
1546
1547
|
], 12, jl),
|
|
1547
|
-
|
|
1548
|
+
s("td", {
|
|
1548
1549
|
class: "vue-ui-data-table__tbody__td",
|
|
1549
1550
|
style: b(`outline:${e.value.table.td.outline}`),
|
|
1550
1551
|
"data-cell": V.value.head[2] ?? ""
|
|
1551
1552
|
}, [
|
|
1552
|
-
|
|
1553
|
+
s("div", Zl, k(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(
|
|
1553
1554
|
e.value.table.td.roundingPercentage
|
|
1554
1555
|
)}%`), 1)
|
|
1555
1556
|
], 12, ql),
|
|
1556
|
-
|
|
1557
|
+
s("td", {
|
|
1557
1558
|
class: "vue-ui-data-table__tbody__td",
|
|
1558
1559
|
style: b(`outline:${e.value.table.td.outline}`),
|
|
1559
1560
|
"data-cell": V.value.head[3] ?? ""
|
|
1560
1561
|
}, [
|
|
1561
|
-
|
|
1562
|
+
s("div", Ql, k(a.childName), 1)
|
|
1562
1563
|
], 12, Jl),
|
|
1563
|
-
|
|
1564
|
+
s("td", {
|
|
1564
1565
|
class: "vue-ui-data-table__tbody__td",
|
|
1565
1566
|
style: b(`outline:${e.value.table.td.outline}`),
|
|
1566
1567
|
"data-cell": V.value.head[4] ?? ""
|
|
1567
1568
|
}, [
|
|
1568
|
-
|
|
1569
|
+
s("div", to, k(e.value.table.td.prefix) + k(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(
|
|
1569
1570
|
e.value.table.td.roundingValue
|
|
1570
|
-
)) +
|
|
1571
|
+
)) + k(e.value.table.td.suffix), 1)
|
|
1571
1572
|
], 12, eo),
|
|
1572
|
-
|
|
1573
|
+
s("td", {
|
|
1573
1574
|
class: "vue-ui-data-table__tbody__td",
|
|
1574
1575
|
style: b(`outline:${e.value.table.td.outline}`),
|
|
1575
1576
|
"data-cell": V.value.head[5] ?? ""
|
|
1576
1577
|
}, [
|
|
1577
|
-
|
|
1578
|
+
s("div", lo, k(["", NaN, void 0].includes(
|
|
1578
1579
|
a.childPercentageToParent
|
|
1579
1580
|
) ? "" : `${(a.childPercentageToParent * 100).toFixed(
|
|
1580
1581
|
e.value.table.td.roundingPercentage
|
|
1581
1582
|
)}%`), 1)
|
|
1582
1583
|
], 12, ao),
|
|
1583
|
-
|
|
1584
|
+
s("td", {
|
|
1584
1585
|
class: "vue-ui-data-table__tbody__td",
|
|
1585
1586
|
style: b(`outline:${e.value.table.td.outline}`),
|
|
1586
1587
|
"data-cell": V.value.head[6] ?? ""
|
|
1587
1588
|
}, [
|
|
1588
|
-
|
|
1589
|
+
s("div", no, k(["", NaN, void 0].includes(
|
|
1589
1590
|
a.childPercentageToTotal
|
|
1590
1591
|
) ? "" : `${(a.childPercentageToTotal * 100).toFixed(
|
|
1591
1592
|
e.value.table.td.roundingPercentage
|
|
@@ -1603,22 +1604,22 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1603
1604
|
e.value.table.useDialog ? {
|
|
1604
1605
|
name: "title",
|
|
1605
1606
|
fn: f(() => [
|
|
1606
|
-
Ft(
|
|
1607
|
+
Ft(k($e.value.title), 1)
|
|
1607
1608
|
]),
|
|
1608
1609
|
key: "0"
|
|
1609
1610
|
} : void 0,
|
|
1610
1611
|
e.value.table.useDialog ? {
|
|
1611
1612
|
name: "actions",
|
|
1612
1613
|
fn: f(() => [
|
|
1613
|
-
|
|
1614
|
+
s("button", {
|
|
1614
1615
|
tabindex: "0",
|
|
1615
1616
|
class: "vue-ui-user-options-button",
|
|
1616
|
-
onClick: l[2] || (l[2] = (a) =>
|
|
1617
|
+
onClick: l[2] || (l[2] = (a) => We(e.value.userOptions.callbacks.csv)),
|
|
1617
1618
|
style: b({ cursor: Y.value ? "pointer" : "default" })
|
|
1618
1619
|
}, [
|
|
1619
|
-
|
|
1620
|
+
ie(i(lt), {
|
|
1620
1621
|
name: "fileCsv",
|
|
1621
|
-
stroke:
|
|
1622
|
+
stroke: $e.value.props.color
|
|
1622
1623
|
}, null, 8, ["stroke"])
|
|
1623
1624
|
], 4)
|
|
1624
1625
|
]),
|
|
@@ -1626,11 +1627,11 @@ const dl = ["id"], hl = ["id"], pl = ["onClick"], fl = { style: { position: "rel
|
|
|
1626
1627
|
} : void 0
|
|
1627
1628
|
]), 1040)) : p("", !0),
|
|
1628
1629
|
y(t.$slots, "skeleton", {}, () => [
|
|
1629
|
-
|
|
1630
|
+
i(we) ? (n(), H(Qa, { key: 0 })) : p("", !0)
|
|
1630
1631
|
], !0)
|
|
1631
1632
|
], 46, dl));
|
|
1632
1633
|
}
|
|
1633
|
-
}, Po = /* @__PURE__ */ cl(uo, [["__scopeId", "data-v-
|
|
1634
|
+
}, Po = /* @__PURE__ */ cl(uo, [["__scopeId", "data-v-5fde1ef4"]]);
|
|
1634
1635
|
export {
|
|
1635
1636
|
Po as default
|
|
1636
1637
|
};
|