vue-data-ui 2.3.72 → 2.3.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CC7jRg59.js → Arrow-CYCrAySW.js} +1 -1
- package/dist/{Arrow-ZIElM1Qw.cjs → Arrow-DK6F5Fq3.cjs} +1 -1
- package/dist/{BaseIcon-CBTIJ_i3.cjs → BaseIcon-DBHVtm3A.cjs} +1 -1
- package/dist/{BaseIcon-CPk98Gv1.js → BaseIcon-kBIAYqUO.js} +1 -1
- package/dist/{DataTable-03mHwPdu.cjs → DataTable-BNFSPjhv.cjs} +1 -1
- package/dist/{DataTable-B9bLH4Tw.js → DataTable-CKdV-L0e.js} +2 -2
- package/dist/{Legend-VJiB_MLq.js → Legend-Cj7T-DqJ.js} +1 -1
- package/dist/{Legend-rxEBmJRW.cjs → Legend-Do2kcWFT.cjs} +1 -1
- package/dist/{Shape-D95l9PFa.js → Shape-Bo8ZjViG.js} +1 -1
- package/dist/{Shape-DGhwVgQc.cjs → Shape-DRDUAe_o.cjs} +1 -1
- package/dist/{Slicer-DBgvUVRS.js → Slicer-4nGKvUYF.js} +2 -2
- package/dist/{Slicer-DUMKJ_f0.cjs → Slicer-D8jHSP7U.cjs} +1 -1
- package/dist/{Title-Du743m6e.cjs → Title-D5cATWsL.cjs} +1 -1
- package/dist/{Title-B_AI8tEZ.js → Title-DZjnxQdN.js} +1 -1
- package/dist/{Tooltip-CPewpyRa.js → Tooltip--kgFEVZs.js} +1 -1
- package/dist/{Tooltip-B_WP5J9X.cjs → Tooltip-B8yLaegk.cjs} +1 -1
- package/dist/{index-BYuu8ZDR.js → index-C8SH0f2u.js} +1 -1
- package/dist/{index-Cuc8JBQE.cjs → index-D_32ZGWd.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DZwVoxS3.cjs → useNestedProp-BvvH633N.cjs} +1 -1
- package/dist/{useNestedProp-DdJ6Grxg.js → useNestedProp-lS_T5lM3.js} +1 -1
- package/dist/{usePrinter-BaExNQdD.cjs → usePrinter-BouFNHWR.cjs} +1 -1
- package/dist/{usePrinter-DqIk1aRq.js → usePrinter-Dj50NAxo.js} +1 -1
- package/dist/{vue-data-ui-C-epWCMP.js → vue-data-ui-DoXqU7xC.js} +57 -57
- package/dist/{vue-data-ui-CUctczUX.cjs → vue-data-ui-v_BbbLtJ.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BWgmK5sr.js → vue-ui-3d-bar-CnoPOJHm.js} +7 -7
- package/dist/{vue-ui-3d-bar-xEpa156l.cjs → vue-ui-3d-bar-CwCEoPX-.cjs} +1 -1
- package/dist/{vue-ui-accordion-CX_qmhfk.cjs → vue-ui-accordion-Cka6b_Up.cjs} +1 -1
- package/dist/{vue-ui-accordion-CW9p_36e.js → vue-ui-accordion-YHleIgkV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C2anlrIJ.js → vue-ui-age-pyramid-CENg8fDg.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DgdE2kzJ.cjs → vue-ui-age-pyramid-GqCNpd_h.cjs} +1 -1
- package/dist/{vue-ui-annotator-DBsLmFva.cjs → vue-ui-annotator-ByYg6QMs.cjs} +1 -1
- package/dist/{vue-ui-annotator-BsFyYQmg.js → vue-ui-annotator-VJOLUkqJ.js} +1 -1
- package/dist/{vue-ui-candlestick-BvObxrrO.js → vue-ui-candlestick-CHsGD3bx.js} +9 -9
- package/dist/{vue-ui-candlestick-CuAxLf7q.cjs → vue-ui-candlestick-TdNVq_FX.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7VggXPa.js → vue-ui-carousel-table-RAtX3VBu.js} +4 -4
- package/dist/{vue-ui-carousel-table-B8uXpuho.cjs → vue-ui-carousel-table-yXUSFk2u.cjs} +1 -1
- package/dist/{vue-ui-chestnut-WVNJAAhE.js → vue-ui-chestnut-B5GQX0J_.js} +6 -6
- package/dist/{vue-ui-chestnut-DsDFUMa1.cjs → vue-ui-chestnut-EJj-dQSY.cjs} +1 -1
- package/dist/{vue-ui-cursor-BHDKuzwQ.js → vue-ui-cursor-CMm7XSSG.js} +2 -2
- package/dist/{vue-ui-cursor-Dv2x-leV.cjs → vue-ui-cursor-DnZqLj21.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B7UJ5m3e.js → vue-ui-dashboard-Ck_5L3eu.js} +2 -2
- package/dist/{vue-ui-dashboard-CW2crD7k.cjs → vue-ui-dashboard-DgEQJnLr.cjs} +1 -1
- package/dist/{vue-ui-digits-S4d-vjPw.js → vue-ui-digits--ULH35um.js} +2 -2
- package/dist/{vue-ui-digits-DgAV9vHK.cjs → vue-ui-digits-UvwUdi6U.cjs} +1 -1
- package/dist/{vue-ui-donut-CXrbo2vS.cjs → vue-ui-donut-BqUBysA_.cjs} +1 -1
- package/dist/{vue-ui-donut-D-Obra62.js → vue-ui-donut-QQ1fWWvc.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DMN5gqox.cjs → vue-ui-donut-evolution-BXtEnop4.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CPp91gGc.js → vue-ui-donut-evolution-Cx8kBB_7.js} +9 -9
- package/dist/{vue-ui-dumbbell-B6VqQ1kW.js → vue-ui-dumbbell-BYvwHpU8.js} +8 -8
- package/dist/{vue-ui-dumbbell-C5QNKImY.cjs → vue-ui-dumbbell-CjIh7KTm.cjs} +1 -1
- package/dist/{vue-ui-flow-DxDFmEMo.js → vue-ui-flow-hp0Hpuhn.js} +7 -7
- package/dist/{vue-ui-flow-C265HMf-.cjs → vue-ui-flow-u29zqSQj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-3W5_FamU.js → vue-ui-galaxy-B0L57aec.js} +9 -9
- package/dist/{vue-ui-galaxy-CE6eSTiR.cjs → vue-ui-galaxy-DE1HbBi-.cjs} +1 -1
- package/dist/{vue-ui-gauge-Ct9Pm6Rr.cjs → vue-ui-gauge-B_IZrsfj.cjs} +1 -1
- package/dist/{vue-ui-gauge-i_mEreL4.js → vue-ui-gauge-CPyyn7cL.js} +5 -5
- package/dist/{vue-ui-gizmo-DjKx8zQ3.js → vue-ui-gizmo-D2RfM55X.js} +2 -2
- package/dist/{vue-ui-gizmo-fpcEpQC_.cjs → vue-ui-gizmo-DR4gacOL.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BHVAAWge.js → vue-ui-heatmap-DKM0DH41.js} +8 -8
- package/dist/{vue-ui-heatmap-BJ5WgKkA.cjs → vue-ui-heatmap-DMB_eUpA.cjs} +1 -1
- package/dist/{vue-ui-kpi-3vwX1pb-.js → vue-ui-kpi-BAxAY13T.js} +3 -3
- package/dist/{vue-ui-kpi-BJO4Si4A.cjs → vue-ui-kpi-BD21xshi.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Bkz8xXIn.cjs → vue-ui-mini-loader-CLP19Txv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BGNVjrVa.js → vue-ui-mini-loader-MywnWlYI.js} +2 -2
- package/dist/{vue-ui-molecule-Be2hKLP4.cjs → vue-ui-molecule-BNsWckH-.cjs} +1 -1
- package/dist/{vue-ui-molecule-DmcAp7Nw.js → vue-ui-molecule-CLI9iTRE.js} +9 -9
- package/dist/{vue-ui-mood-radar-DkhEq8kd.cjs → vue-ui-mood-radar-BsWE1f8R.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-mzy-m7VP.js → vue-ui-mood-radar-O30wZo9a.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BiCvS_99.cjs → vue-ui-nested-donuts-CYyUtXs2.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CrZglRrG.js → vue-ui-nested-donuts-D8o4TqTt.js} +9 -9
- package/dist/{vue-ui-onion-Cvm8iYyA.cjs → vue-ui-onion-D7TXJu5w.cjs} +1 -1
- package/dist/{vue-ui-onion-BiM0osaA.js → vue-ui-onion-Hmcke6xB.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-CSKNUGrK.cjs → vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B2F5TA1E.js → vue-ui-parallel-coordinate-plot-CyChE3NP.js} +10 -10
- package/dist/{vue-ui-quadrant-BMxBMaop.cjs → vue-ui-quadrant-BPDTvxlT.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DPqbsYX0.js → vue-ui-quadrant-DimTQdAj.js} +10 -10
- package/dist/{vue-ui-quick-chart-CUFDSDf1.cjs → vue-ui-quick-chart-C_-ut0if.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BsF68NGZ.js → vue-ui-quick-chart-DxJvENid.js} +7 -7
- package/dist/{vue-ui-radar-D85U18Fh.cjs → vue-ui-radar-C5Kq19hg.cjs} +1 -1
- package/dist/{vue-ui-radar-CP99GsF6.js → vue-ui-radar-D_FieunT.js} +10 -10
- package/dist/{vue-ui-rating-fCVonNIH.cjs → vue-ui-rating-BHW2Onru.cjs} +1 -1
- package/dist/{vue-ui-rating-D2_B2CmO.js → vue-ui-rating-DF1BpH4E.js} +2 -2
- package/dist/{vue-ui-relation-circle-CCw0p9C1.js → vue-ui-relation-circle-4kIYttRI.js} +5 -5
- package/dist/{vue-ui-relation-circle-BwhjRfE-.cjs → vue-ui-relation-circle-DHMHHsqY.cjs} +1 -1
- package/dist/{vue-ui-rings-Cyb2-Fz9.cjs → vue-ui-rings-BqPS8NKl.cjs} +1 -1
- package/dist/{vue-ui-rings-CP9xh0Jf.js → vue-ui-rings-BqS-iece.js} +9 -9
- package/dist/{vue-ui-scatter-C_7m-HWT.cjs → vue-ui-scatter-BLVcdf3d.cjs} +1 -1
- package/dist/{vue-ui-scatter-DahRqX0n.js → vue-ui-scatter-Dns49Nht.js} +10 -10
- package/dist/{vue-ui-screenshot-kjxK6cGN.cjs → vue-ui-screenshot---q062Kd.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bz8ypntU.js → vue-ui-screenshot-5Gsnd0Wr.js} +1 -1
- package/dist/{vue-ui-skeleton-DY6dv9ms.js → vue-ui-skeleton-B4eWLjH3.js} +2 -2
- package/dist/{vue-ui-skeleton-DBlDHYe3.cjs → vue-ui-skeleton-fVPw-oIR.cjs} +1 -1
- package/dist/{vue-ui-smiley-QjSvhCpm.js → vue-ui-smiley-B8Tyunn3.js} +2 -2
- package/dist/{vue-ui-smiley-D4LI_UP4.cjs → vue-ui-smiley-YfHmv0rQ.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D2lgLtNe.cjs → vue-ui-spark-trend-Dpv6am0Z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-sS5omLKN.js → vue-ui-spark-trend-Em9OqYyG.js} +4 -4
- package/dist/{vue-ui-sparkbar-D477mrPt.js → vue-ui-sparkbar-9DBvdYn7.js} +3 -3
- package/dist/{vue-ui-sparkbar-BSa3E1PW.cjs → vue-ui-sparkbar-BuSuwQYl.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge--a3JMX4H.js → vue-ui-sparkgauge-BN5feBzp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CBdtHXSj.cjs → vue-ui-sparkgauge-DKtUZMv1.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B7vG6DfM.js → vue-ui-sparkhistogram-BBUVmco4.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-GY3NORZf.cjs → vue-ui-sparkhistogram-BmuusW02.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DGM2gvJO.cjs → vue-ui-sparkline-Blzv-tIQ.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DQv6RoBk.js → vue-ui-sparkline-CeqNV6Re.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CgCC9OyA.js → vue-ui-sparkstackbar-C3GMC1eW.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CwSD66G_.cjs → vue-ui-sparkstackbar-D__WDEMv.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DE06kEdr.cjs → vue-ui-stackbar-DFqJ5K_q.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CYlI2qNa.js → vue-ui-stackbar-DyGPrFxi.js} +10 -10
- package/dist/{vue-ui-strip-plot-cLATedZC.js → vue-ui-strip-plot-y1AnVJmq.js} +9 -9
- package/dist/{vue-ui-strip-plot-CTPE5LwY.cjs → vue-ui-strip-plot-z9fjJ6Dj.cjs} +1 -1
- package/dist/{vue-ui-table-isDxWkmA.js → vue-ui-table-B4kfykAO.js} +1 -1
- package/dist/{vue-ui-table-heatmap-tqdvfQH_.cjs → vue-ui-table-heatmap-CGKecjtm.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DdEcsnYm.js → vue-ui-table-heatmap-YZRSzwRM.js} +4 -4
- package/dist/{vue-ui-table-sparkline-By0R0tDV.js → vue-ui-table-sparkline-C0v2r4Kf.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D2Eyb3oO.cjs → vue-ui-table-sparkline-CHFZG3Tg.cjs} +1 -1
- package/dist/{vue-ui-table-CYfUUquW.cjs → vue-ui-table-xWvAQS-s.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CewCkrgl.js → vue-ui-thermometer-D5qurIy7.js} +5 -5
- package/dist/{vue-ui-thermometer-DT_17Yji.cjs → vue-ui-thermometer-DoOxxVW1.cjs} +1 -1
- package/dist/{vue-ui-timer-aFikwHk0.cjs → vue-ui-timer-D63zHe-I.cjs} +1 -1
- package/dist/{vue-ui-timer-VmBMBL_O.js → vue-ui-timer-VWjovnKL.js} +4 -4
- package/dist/{vue-ui-tiremarks-CyvUhC9g.cjs → vue-ui-tiremarks-Cp8YEmXh.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-8YMG58Ot.js → vue-ui-tiremarks-jH6cdQOJ.js} +5 -5
- package/dist/{vue-ui-treemap-DlU_2b5A.js → vue-ui-treemap-BCc5sQLB.js} +9 -9
- package/dist/{vue-ui-treemap-83V4TBu2.cjs → vue-ui-treemap-DJrdEFW5.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-D8KpbB9m.js → vue-ui-vertical-bar-2In_g5iC.js} +364 -363
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +4 -0
- package/dist/{vue-ui-waffle-Dn1tci28.cjs → vue-ui-waffle-A2gmRbq0.cjs} +1 -1
- package/dist/{vue-ui-waffle-D5nczTQz.js → vue-ui-waffle-OzU830VX.js} +9 -9
- package/dist/{vue-ui-wheel-D0B43FnX.js → vue-ui-wheel-C9QXzWu1.js} +5 -5
- package/dist/{vue-ui-wheel-DWqZIkI0.cjs → vue-ui-wheel-DGSh9VKq.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DXEW7oYX.js → vue-ui-word-cloud-C2ZaVlfO.js} +7 -7
- package/dist/{vue-ui-word-cloud-BEebLRtX.cjs → vue-ui-word-cloud-DPFB1MYk.cjs} +1 -1
- package/dist/{vue-ui-xy-8508ou3J.cjs → vue-ui-xy-C-2-aijE.cjs} +2 -2
- package/dist/{vue-ui-xy-O3zBtp22.js → vue-ui-xy-DuJtYXKl.js} +16 -16
- package/dist/{vue-ui-xy-canvas-AMNGVzal.js → vue-ui-xy-canvas-CKibMJHh.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CssfbLPK.cjs → vue-ui-xy-canvas-D7wf3xab.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-vertical-bar-DFlujd2F.cjs +0 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useCssVars as Ge, computed as b, ref as
|
|
2
|
-
import { u as qe, c as Ke, t as Je, a as Qe, p as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as rt } from "./Title-
|
|
5
|
-
import { u as it, U as dt } from "./usePrinter-
|
|
6
|
-
import { _ as ct } from "./Tooltip
|
|
7
|
-
import { L as
|
|
8
|
-
import vt from "./vue-ui-skeleton-
|
|
9
|
-
import ht from "./BaseIcon-
|
|
10
|
-
import pt from "./vue-ui-accordion-
|
|
11
|
-
import { u as
|
|
1
|
+
import { useCssVars as Ge, computed as b, ref as v, onMounted as Ue, onBeforeUnmount as He, openBlock as s, createElementBlock as d, normalizeClass as D, normalizeStyle as r, createVNode as G, createCommentVNode as m, createBlock as ne, unref as h, createSlots as We, withCtx as x, renderSlot as k, normalizeProps as q, guardReactiveProps as K, createElementVNode as n, toDisplayString as i, Fragment as U, renderList as H, withKeys as je, createTextVNode as Ye } from "vue";
|
|
2
|
+
import { u as qe, c as Ke, t as Je, a as Qe, p as M, b as Ze, o as Te, e as J, s as S, d as ue, i as Q, f as I, X as et, v as tt, w as se, x as at, y as lt, q as ot, r as nt } from "./index-C8SH0f2u.js";
|
|
3
|
+
import { t as ut, u as st } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as rt } from "./Title-DZjnxQdN.js";
|
|
5
|
+
import { u as it, U as dt } from "./usePrinter-Dj50NAxo.js";
|
|
6
|
+
import { _ as ct } from "./Tooltip--kgFEVZs.js";
|
|
7
|
+
import { L as Le } from "./Legend-Cj7T-DqJ.js";
|
|
8
|
+
import vt from "./vue-ui-skeleton-B4eWLjH3.js";
|
|
9
|
+
import ht from "./BaseIcon-kBIAYqUO.js";
|
|
10
|
+
import pt from "./vue-ui-accordion-YHleIgkV.js";
|
|
11
|
+
import { u as Ne } from "./useNestedProp-lS_T5lM3.js";
|
|
12
12
|
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t = ["stop-color"], xt = ["stop-color"], kt = ["x", "y", "width", "height", "fill", "rx"], $t = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], wt = ["x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Lt = ["x", "y", "font-size", "fill", "font-weight"], Nt = ["x", "y", "font-size", "fill", "font-weight"], Pt = ["x", "y", "font-size", "fill", "font-weight"], St = ["y", "width", "height", "fill", "onMouseenter"], Vt = {
|
|
14
14
|
key: 4,
|
|
@@ -30,67 +30,67 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
33
|
+
setup(Pe, { expose: Se, emit: Ve }) {
|
|
34
|
+
const N = Pe;
|
|
35
35
|
Ge((a) => ({
|
|
36
|
-
|
|
36
|
+
ad951260: a.tdo
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_vertical_bar:
|
|
39
|
-
const a =
|
|
40
|
-
userConfig:
|
|
41
|
-
defaultConfig:
|
|
38
|
+
const { vue_ui_vertical_bar: ze } = qe(), W = b(() => !!N.dataset && N.dataset.length), V = v(Ke()), Fe = v(null), Z = v(!1), ee = v(""), j = v(0), Me = v(null), re = v(0), R = v(null), ie = v(null), te = v(null), e = b(() => {
|
|
39
|
+
const a = Ne({
|
|
40
|
+
userConfig: N.config,
|
|
41
|
+
defaultConfig: ze
|
|
42
42
|
});
|
|
43
43
|
return a.theme ? {
|
|
44
|
-
...
|
|
45
|
-
userConfig: Je.vue_ui_vertical_bar[a.theme] ||
|
|
44
|
+
...Ne({
|
|
45
|
+
userConfig: Je.vue_ui_vertical_bar[a.theme] || N.config,
|
|
46
46
|
defaultConfig: a
|
|
47
47
|
}),
|
|
48
|
-
customPalette: Qe[a.theme] ||
|
|
48
|
+
customPalette: Qe[a.theme] || M
|
|
49
49
|
} : a;
|
|
50
|
-
}), { isPrinting:
|
|
51
|
-
elementId: `vue-ui-vertical-bar_${
|
|
50
|
+
}), { isPrinting: de, isImaging: ce, generatePdf: ve, generateImage: he } = it({
|
|
51
|
+
elementId: `vue-ui-vertical-bar_${V.value}`,
|
|
52
52
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
53
|
-
}),
|
|
53
|
+
}), pe = b(() => Ze(e.value.customPalette)), ye = v(null), ge = v(!1), Ie = b(() => e.value.table.responsiveBreakpoint), Y = v(null);
|
|
54
54
|
Ue(() => {
|
|
55
|
-
if (
|
|
55
|
+
if (Te(N.dataset) && J({
|
|
56
56
|
componentName: "VueUiVerticalBar",
|
|
57
57
|
type: "dataset"
|
|
58
|
-
}),
|
|
59
|
-
const a =
|
|
58
|
+
}), j.value = N.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Be(), e.value.responsive) {
|
|
59
|
+
const a = ut(() => {
|
|
60
60
|
const { width: l, height: t } = st({
|
|
61
|
-
chart:
|
|
62
|
-
title: e.value.style.chart.title.text ?
|
|
63
|
-
legend: e.value.style.chart.legend.show ?
|
|
61
|
+
chart: R.value,
|
|
62
|
+
title: e.value.style.chart.title.text ? ie.value : null,
|
|
63
|
+
legend: e.value.style.chart.legend.show ? te.value : null
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
me.value = l, c.value = t / j.value - g.value * 2;
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
Y.value = new ResizeObserver(a), Y.value.observe(R.value.parentNode);
|
|
68
68
|
}
|
|
69
69
|
}), He(() => {
|
|
70
|
-
|
|
70
|
+
Y.value && Y.value.disconnect();
|
|
71
71
|
});
|
|
72
|
-
function
|
|
72
|
+
function Be() {
|
|
73
73
|
new ResizeObserver((l) => {
|
|
74
74
|
l.forEach((t) => {
|
|
75
|
-
|
|
75
|
+
ge.value = t.contentRect.width < Ie.value;
|
|
76
76
|
});
|
|
77
|
-
}).observe(
|
|
77
|
+
}).observe(ye.value);
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const $ = v({
|
|
80
80
|
showTable: e.value.table.show,
|
|
81
81
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
82
82
|
showTooltip: e.value.style.chart.tooltip.show
|
|
83
|
-
}),
|
|
84
|
-
!a.value && !a.children &&
|
|
83
|
+
}), fe = b(() => $.value.sortDesc), z = b(() => (N.dataset.forEach((a, l) => {
|
|
84
|
+
!a.value && !a.children && J({
|
|
85
85
|
componentName: "VueUiVerticalBar",
|
|
86
86
|
type: "datasetAttributeEmpty",
|
|
87
87
|
property: `value (index ${l})`
|
|
88
|
-
}), a.children && (
|
|
88
|
+
}), a.children && (Te(a.children) ? J({
|
|
89
89
|
componentName: "VueUiVerticalBar",
|
|
90
90
|
type: "datasetAttributeEmpty",
|
|
91
91
|
property: `children (index ${l})`
|
|
92
92
|
}) : a.children.forEach((t, o) => {
|
|
93
|
-
[null, void 0].includes(t.name) &&
|
|
93
|
+
[null, void 0].includes(t.name) && J({
|
|
94
94
|
componentName: "VueUiVerticalBar",
|
|
95
95
|
type: "datasetSerieAttribute",
|
|
96
96
|
property: "name",
|
|
@@ -98,157 +98,158 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
98
98
|
index: o
|
|
99
99
|
});
|
|
100
100
|
}));
|
|
101
|
-
}),
|
|
102
|
-
const t = `vertical_parent_${l}_${
|
|
101
|
+
}), N.dataset.map((a, l) => {
|
|
102
|
+
const t = `vertical_parent_${l}_${V.value}`, o = a.children && a.children.length > 0, f = S(a.value ? a.value : o ? a.children.map((_) => _.value || 0).reduce((_, L) => _ + L, 0) : 0), p = f >= 0 ? 1 : -1;
|
|
103
103
|
return {
|
|
104
104
|
...a,
|
|
105
105
|
id: t,
|
|
106
106
|
shape: "square",
|
|
107
|
-
opacity:
|
|
108
|
-
value:
|
|
109
|
-
sign:
|
|
107
|
+
opacity: C.value.includes(t) ? 0.5 : 1,
|
|
108
|
+
value: Math.abs(f),
|
|
109
|
+
sign: p,
|
|
110
110
|
hasChildren: o,
|
|
111
111
|
isChild: !1,
|
|
112
|
-
segregate: () =>
|
|
113
|
-
isSegregated:
|
|
114
|
-
color: ue(a.color) ||
|
|
115
|
-
children: !a.children || !a.children.length ? [] : a.children.toSorted((
|
|
116
|
-
...
|
|
117
|
-
value:
|
|
118
|
-
sign:
|
|
112
|
+
segregate: () => X(t),
|
|
113
|
+
isSegregated: C.value.includes(t),
|
|
114
|
+
color: ue(a.color) || pe.value[l] || M[l] || M[l % M.length],
|
|
115
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted((_, L) => fe.value ? L.value - _.value : _.value - L.value).map((_, L) => ({
|
|
116
|
+
..._,
|
|
117
|
+
value: S(Math.abs(_.value)),
|
|
118
|
+
sign: _.value >= 0 ? 1 : -1,
|
|
119
119
|
isChild: !0,
|
|
120
120
|
parentId: t,
|
|
121
121
|
parentName: a.name,
|
|
122
|
-
parentValue:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
parentValue: f,
|
|
123
|
+
parentSign: p,
|
|
124
|
+
id: `vertical_child_${l}_${L}_${V.value}`,
|
|
125
|
+
childIndex: L,
|
|
126
|
+
color: ue(_.color) || ue(a.color) || pe.value[l] || M[l] || M[l % M.length]
|
|
127
|
+
})).map((_, L) => ({
|
|
128
|
+
..._,
|
|
129
|
+
isFirstChild: L === 0,
|
|
130
|
+
isLastChild: L === a.children.length - 1
|
|
130
131
|
}))
|
|
131
132
|
};
|
|
132
|
-
}).toSorted((a, l) =>
|
|
133
|
+
}).toSorted((a, l) => fe.value ? l.value - a.value : a.value - l.value))), be = b(() => ({
|
|
133
134
|
cy: "vertical-bar-div-legend",
|
|
134
135
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
135
136
|
color: e.value.style.chart.legend.color,
|
|
136
137
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
137
138
|
paddingBottom: 12,
|
|
138
139
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
139
|
-
})),
|
|
140
|
-
width:
|
|
141
|
-
height:
|
|
140
|
+
})), c = v(e.value.style.chart.layout.bars.height), g = v(e.value.style.chart.layout.bars.gap), Oe = b(() => (c.value + g.value) * j.value), me = v(512), y = b(() => ({
|
|
141
|
+
width: me.value,
|
|
142
|
+
height: Oe.value,
|
|
142
143
|
padding: {
|
|
143
144
|
top: 12,
|
|
144
145
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
145
146
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
146
147
|
bottom: 12
|
|
147
148
|
}
|
|
148
|
-
})),
|
|
149
|
-
fullHeight:
|
|
150
|
-
top:
|
|
151
|
-
left:
|
|
152
|
-
right:
|
|
153
|
-
bottom:
|
|
154
|
-
width:
|
|
149
|
+
})), u = b(() => ({
|
|
150
|
+
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
151
|
+
top: y.value.padding.top,
|
|
152
|
+
left: y.value.padding.left,
|
|
153
|
+
right: y.value.width - y.value.padding.right,
|
|
154
|
+
bottom: y.value.padding.top + y.value.height,
|
|
155
|
+
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
155
156
|
}));
|
|
156
|
-
function
|
|
157
|
-
|
|
157
|
+
function ae() {
|
|
158
|
+
j.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
158
159
|
}
|
|
159
|
-
const
|
|
160
|
-
function
|
|
161
|
-
|
|
160
|
+
const C = v([]);
|
|
161
|
+
function X(a) {
|
|
162
|
+
C.value.includes(a) ? C.value = C.value.filter((l) => l !== a) : C.value.push(a), ae(), Ve("selectLegend", F.value);
|
|
162
163
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
return l ?
|
|
166
|
-
v:
|
|
164
|
+
const F = b(() => z.value.filter((a) => !C.value.includes(a.id))), T = b(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
165
|
+
function _e(a, l = !1, t = 0) {
|
|
166
|
+
return l ? I({
|
|
167
|
+
v: S(Math.abs(a) / T.value * 100),
|
|
167
168
|
s: "%",
|
|
168
169
|
r: t
|
|
169
|
-
}) : Math.abs(a) /
|
|
170
|
+
}) : Math.abs(a) / T.value;
|
|
170
171
|
}
|
|
171
|
-
const
|
|
172
|
-
function
|
|
173
|
-
const l = a /
|
|
174
|
-
return
|
|
172
|
+
const B = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), O = b(() => B.value.map((a) => a.sign).includes(-1)), De = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
173
|
+
function P(a) {
|
|
174
|
+
const l = a / De.value;
|
|
175
|
+
return u.value.width / (O.value ? 2 : 1) * l;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
177
|
+
function Re(a) {
|
|
178
|
+
return P(a) + u.value.left;
|
|
178
179
|
}
|
|
179
|
-
function
|
|
180
|
-
const t =
|
|
180
|
+
function A(a, l) {
|
|
181
|
+
const t = F.value.find((p) => p.id === a.parentId), o = u.value.top + (g.value + c.value) * l, f = t.children.length * (g.value + c.value);
|
|
181
182
|
return {
|
|
182
|
-
y: o +
|
|
183
|
+
y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
183
184
|
name: t.name,
|
|
184
185
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
185
|
-
percentageToTotal: isNaN(t.value /
|
|
186
|
+
percentageToTotal: isNaN(t.value / T.value) ? "" : _e(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
186
187
|
sign: t.sign
|
|
187
188
|
};
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
-
return
|
|
190
|
+
function Xe() {
|
|
191
|
+
return F.value;
|
|
191
192
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
const le = v(null), oe = v(null);
|
|
194
|
+
function Ae(a, l) {
|
|
195
|
+
oe.value = {
|
|
195
196
|
datapoint: a,
|
|
196
197
|
seriesIndex: l,
|
|
197
|
-
series:
|
|
198
|
+
series: z.value,
|
|
198
199
|
config: e.value
|
|
199
|
-
},
|
|
200
|
+
}, Z.value = !0, le.value = a.id;
|
|
200
201
|
let t = "";
|
|
201
|
-
const o = a.isChild ? a.parentName : a.name,
|
|
202
|
-
at(
|
|
202
|
+
const o = a.isChild ? a.parentName : a.name, f = a.isChild ? a.name : "", p = e.value.style.chart.tooltip.customFormat;
|
|
203
|
+
at(p) && lt(() => p({
|
|
203
204
|
datapoint: a,
|
|
204
|
-
series:
|
|
205
|
+
series: z.value,
|
|
205
206
|
config: e.value,
|
|
206
207
|
seriesIndex: l
|
|
207
|
-
})) ?
|
|
208
|
+
})) ? ee.value = p({
|
|
208
209
|
datapoint: a,
|
|
209
|
-
series:
|
|
210
|
+
series: z.value,
|
|
210
211
|
config: e.value,
|
|
211
212
|
seriesIndex: l
|
|
212
213
|
}) : (t += `<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;">
|
|
213
214
|
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${o}</div>
|
|
214
|
-
${
|
|
215
|
-
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${
|
|
215
|
+
${f ? `<div>${f}</div>` : ""}
|
|
216
|
+
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${Q(
|
|
216
217
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
217
218
|
a.sign === 1 ? a.value : -a.value,
|
|
218
|
-
|
|
219
|
+
I({
|
|
219
220
|
p: e.value.style.chart.tooltip.prefix,
|
|
220
221
|
v: a.sign === 1 ? a.value : -a.value,
|
|
221
222
|
s: e.value.style.chart.tooltip.suffix,
|
|
222
223
|
r: e.value.style.chart.tooltip.roundingValue
|
|
223
224
|
}),
|
|
224
225
|
{ datapoint: a, seriesIndex: l }
|
|
225
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
226
|
-
v: Math.abs(a.value) /
|
|
226
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${I({
|
|
227
|
+
v: Math.abs(a.value) / T.value * 100,
|
|
227
228
|
s: "%",
|
|
228
229
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
229
|
-
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${
|
|
230
|
+
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${I({
|
|
230
231
|
v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
|
|
231
232
|
s: "%",
|
|
232
233
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
233
|
-
})}</b></div>`)),
|
|
234
|
+
})}</b></div>`)), ee.value = `<div style="text-align:left">${t}</div>`);
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function xe(a, l, t, o) {
|
|
236
237
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
237
238
|
return "";
|
|
238
|
-
const
|
|
239
|
+
const f = Q(
|
|
239
240
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
240
|
-
|
|
241
|
-
|
|
241
|
+
S(o === -1 && a >= 0 ? -a : a),
|
|
242
|
+
I({
|
|
242
243
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
243
|
-
v:
|
|
244
|
+
v: S(o === -1 && a >= 0 ? -a : a),
|
|
244
245
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
245
246
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
246
247
|
}),
|
|
247
248
|
{ datapoint: l, seriesIndex: t }
|
|
248
|
-
),
|
|
249
|
-
return `${
|
|
249
|
+
), p = `(${_e(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
250
|
+
return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
|
|
250
251
|
}
|
|
251
|
-
const
|
|
252
|
+
const w = b(() => {
|
|
252
253
|
const a = [
|
|
253
254
|
e.value.translations.parentName,
|
|
254
255
|
e.value.translations.value,
|
|
@@ -257,15 +258,15 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
257
258
|
e.value.translations.value,
|
|
258
259
|
e.value.translations.percentageToSerie,
|
|
259
260
|
e.value.translations.percentageToTotal
|
|
260
|
-
], l =
|
|
261
|
+
], l = B.value.map((t) => t.isChild ? t.isFirstChild ? {
|
|
261
262
|
color: t.color,
|
|
262
263
|
parentName: t.parentName,
|
|
263
264
|
parentValue: t.parentValue,
|
|
264
|
-
percentageToTotal: t.parentValue /
|
|
265
|
+
percentageToTotal: t.parentValue / T.value,
|
|
265
266
|
childName: t.name,
|
|
266
267
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
267
268
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
268
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
269
|
+
childPercentageToTotal: Math.abs(t.value) / T.value
|
|
269
270
|
} : {
|
|
270
271
|
color: "",
|
|
271
272
|
parentName: "",
|
|
@@ -274,12 +275,12 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
274
275
|
childName: t.name,
|
|
275
276
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
276
277
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
277
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
278
|
+
childPercentageToTotal: Math.abs(t.value) / T.value
|
|
278
279
|
} : {
|
|
279
280
|
color: t.color,
|
|
280
281
|
parentName: t.name,
|
|
281
282
|
parentValue: t.sign === 1 ? t.value : -t.value,
|
|
282
|
-
percentageToTotal: Math.abs(t.value) /
|
|
283
|
+
percentageToTotal: Math.abs(t.value) / T.value,
|
|
283
284
|
childName: "",
|
|
284
285
|
childValue: "",
|
|
285
286
|
childPercentageToParent: "",
|
|
@@ -287,54 +288,54 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
287
288
|
});
|
|
288
289
|
return { head: a, body: l };
|
|
289
290
|
});
|
|
290
|
-
function xe() {
|
|
291
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = $.value.head, t = $.value.body.map((r) => [
|
|
292
|
-
r.parentName,
|
|
293
|
-
r.parentValue,
|
|
294
|
-
r.percentageToTotal,
|
|
295
|
-
r.childName,
|
|
296
|
-
r.childValue,
|
|
297
|
-
r.childPercentageToParent,
|
|
298
|
-
r.childPercentageToTotal
|
|
299
|
-
]), o = a.concat([l]).concat(t), s = ot(o);
|
|
300
|
-
ut({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
301
|
-
}
|
|
302
|
-
const X = p(!1);
|
|
303
|
-
function Ae(a) {
|
|
304
|
-
X.value = a, se.value += 1;
|
|
305
|
-
}
|
|
306
291
|
function ke() {
|
|
307
|
-
|
|
292
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = w.value.head, t = w.value.body.map((p) => [
|
|
293
|
+
p.parentName,
|
|
294
|
+
p.parentValue,
|
|
295
|
+
p.percentageToTotal,
|
|
296
|
+
p.childName,
|
|
297
|
+
p.childValue,
|
|
298
|
+
p.childPercentageToParent,
|
|
299
|
+
p.childPercentageToTotal
|
|
300
|
+
]), o = a.concat([l]).concat(t), f = ot(o);
|
|
301
|
+
nt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
302
|
+
}
|
|
303
|
+
const E = v(!1);
|
|
304
|
+
function Ee(a) {
|
|
305
|
+
E.value = a, re.value += 1;
|
|
308
306
|
}
|
|
309
307
|
function $e() {
|
|
310
|
-
|
|
308
|
+
$.value.showTable = !$.value.showTable;
|
|
311
309
|
}
|
|
312
310
|
function we() {
|
|
313
|
-
|
|
311
|
+
$.value.sortDesc = !$.value.sortDesc, ae();
|
|
312
|
+
}
|
|
313
|
+
function Ce() {
|
|
314
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
314
315
|
}
|
|
315
|
-
return
|
|
316
|
-
getData:
|
|
317
|
-
recalculateHeight:
|
|
318
|
-
generatePdf:
|
|
319
|
-
generateCsv:
|
|
320
|
-
generateImage:
|
|
321
|
-
toggleTable:
|
|
322
|
-
toggleSort:
|
|
323
|
-
toggleTooltip:
|
|
324
|
-
}), (a, l) => (
|
|
325
|
-
class:
|
|
316
|
+
return Se({
|
|
317
|
+
getData: Xe,
|
|
318
|
+
recalculateHeight: ae,
|
|
319
|
+
generatePdf: ve,
|
|
320
|
+
generateCsv: ke,
|
|
321
|
+
generateImage: he,
|
|
322
|
+
toggleTable: $e,
|
|
323
|
+
toggleSort: we,
|
|
324
|
+
toggleTooltip: Ce
|
|
325
|
+
}), (a, l) => (s(), d("div", {
|
|
326
|
+
class: D(`vue-ui-vertical-bar ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
326
327
|
ref_key: "verticalBarChart",
|
|
327
|
-
ref:
|
|
328
|
-
id: `vue-ui-vertical-bar_${
|
|
329
|
-
style:
|
|
328
|
+
ref: R,
|
|
329
|
+
id: `vue-ui-vertical-bar_${V.value}`,
|
|
330
|
+
style: r(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
330
331
|
}, [
|
|
331
|
-
e.value.style.chart.title.text ? (
|
|
332
|
+
e.value.style.chart.title.text ? (s(), d("div", {
|
|
332
333
|
key: 0,
|
|
333
334
|
ref_key: "chartTitle",
|
|
334
|
-
ref:
|
|
335
|
-
style:
|
|
335
|
+
ref: ie,
|
|
336
|
+
style: r(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
336
337
|
}, [
|
|
337
|
-
|
|
338
|
+
G(rt, {
|
|
338
339
|
config: {
|
|
339
340
|
title: {
|
|
340
341
|
cy: "vertical-bar-div-title",
|
|
@@ -347,15 +348,15 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
347
348
|
}
|
|
348
349
|
}, null, 8, ["config"])
|
|
349
350
|
], 4)) : m("", !0),
|
|
350
|
-
e.value.userOptions.show &&
|
|
351
|
+
e.value.userOptions.show && W.value ? (s(), ne(dt, {
|
|
351
352
|
ref_key: "details",
|
|
352
|
-
ref:
|
|
353
|
-
key: `user_options_${
|
|
353
|
+
ref: Fe,
|
|
354
|
+
key: `user_options_${re.value}`,
|
|
354
355
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
355
356
|
color: e.value.style.chart.color,
|
|
356
|
-
isImaging:
|
|
357
|
-
isPrinting:
|
|
358
|
-
uid:
|
|
357
|
+
isImaging: h(ce),
|
|
358
|
+
isPrinting: h(de),
|
|
359
|
+
uid: V.value,
|
|
359
360
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
360
361
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
361
362
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -363,94 +364,94 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
363
364
|
hasTable: e.value.userOptions.buttons.table,
|
|
364
365
|
hasSort: e.value.userOptions.buttons.sort,
|
|
365
366
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
|
-
isFullscreen:
|
|
367
|
-
isTooltip:
|
|
367
|
+
isFullscreen: E.value,
|
|
368
|
+
isTooltip: $.value.showTooltip,
|
|
368
369
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
369
|
-
chartElement:
|
|
370
|
-
onToggleFullscreen:
|
|
371
|
-
onGeneratePdf:
|
|
372
|
-
onGenerateCsv:
|
|
373
|
-
onGenerateImage:
|
|
374
|
-
onToggleTable:
|
|
375
|
-
onToggleSort:
|
|
376
|
-
onToggleTooltip:
|
|
370
|
+
chartElement: R.value,
|
|
371
|
+
onToggleFullscreen: Ee,
|
|
372
|
+
onGeneratePdf: h(ve),
|
|
373
|
+
onGenerateCsv: ke,
|
|
374
|
+
onGenerateImage: h(he),
|
|
375
|
+
onToggleTable: $e,
|
|
376
|
+
onToggleSort: we,
|
|
377
|
+
onToggleTooltip: Ce
|
|
377
378
|
}, We({ _: 2 }, [
|
|
378
379
|
a.$slots.optionTooltip ? {
|
|
379
380
|
name: "optionTooltip",
|
|
380
|
-
fn:
|
|
381
|
-
|
|
381
|
+
fn: x(() => [
|
|
382
|
+
k(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
382
383
|
]),
|
|
383
384
|
key: "0"
|
|
384
385
|
} : void 0,
|
|
385
386
|
a.$slots.optionPdf ? {
|
|
386
387
|
name: "optionPdf",
|
|
387
|
-
fn:
|
|
388
|
-
|
|
388
|
+
fn: x(() => [
|
|
389
|
+
k(a.$slots, "optionPdf", {}, void 0, !0)
|
|
389
390
|
]),
|
|
390
391
|
key: "1"
|
|
391
392
|
} : void 0,
|
|
392
393
|
a.$slots.optionCsv ? {
|
|
393
394
|
name: "optionCsv",
|
|
394
|
-
fn:
|
|
395
|
-
|
|
395
|
+
fn: x(() => [
|
|
396
|
+
k(a.$slots, "optionCsv", {}, void 0, !0)
|
|
396
397
|
]),
|
|
397
398
|
key: "2"
|
|
398
399
|
} : void 0,
|
|
399
400
|
a.$slots.optionImg ? {
|
|
400
401
|
name: "optionImg",
|
|
401
|
-
fn:
|
|
402
|
-
|
|
402
|
+
fn: x(() => [
|
|
403
|
+
k(a.$slots, "optionImg", {}, void 0, !0)
|
|
403
404
|
]),
|
|
404
405
|
key: "3"
|
|
405
406
|
} : void 0,
|
|
406
407
|
a.$slots.optionTable ? {
|
|
407
408
|
name: "optionTable",
|
|
408
|
-
fn:
|
|
409
|
-
|
|
409
|
+
fn: x(() => [
|
|
410
|
+
k(a.$slots, "optionTable", {}, void 0, !0)
|
|
410
411
|
]),
|
|
411
412
|
key: "4"
|
|
412
413
|
} : void 0,
|
|
413
414
|
a.$slots.optionLabels ? {
|
|
414
415
|
name: "optionLabels",
|
|
415
|
-
fn:
|
|
416
|
-
|
|
416
|
+
fn: x(() => [
|
|
417
|
+
k(a.$slots, "optionLabels", {}, void 0, !0)
|
|
417
418
|
]),
|
|
418
419
|
key: "5"
|
|
419
420
|
} : void 0,
|
|
420
421
|
a.$slots.optionSort ? {
|
|
421
422
|
name: "optionSort",
|
|
422
|
-
fn:
|
|
423
|
-
|
|
423
|
+
fn: x(() => [
|
|
424
|
+
k(a.$slots, "optionSort", {}, void 0, !0)
|
|
424
425
|
]),
|
|
425
426
|
key: "6"
|
|
426
427
|
} : void 0,
|
|
427
428
|
a.$slots.optionFullscreen ? {
|
|
428
429
|
name: "optionFullscreen",
|
|
429
|
-
fn:
|
|
430
|
-
|
|
430
|
+
fn: x(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
431
|
+
k(a.$slots, "optionFullscreen", q(K({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
431
432
|
]),
|
|
432
433
|
key: "7"
|
|
433
434
|
} : void 0
|
|
434
435
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
|
|
435
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (
|
|
436
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (s(), d("div", {
|
|
436
437
|
key: 2,
|
|
437
438
|
ref_key: "chartLegend",
|
|
438
|
-
ref:
|
|
439
|
+
ref: te
|
|
439
440
|
}, [
|
|
440
|
-
|
|
441
|
-
legendSet:
|
|
442
|
-
config:
|
|
443
|
-
onClickMarker: l[0] || (l[0] = ({ legend: t }) =>
|
|
441
|
+
G(Le, {
|
|
442
|
+
legendSet: z.value,
|
|
443
|
+
config: be.value,
|
|
444
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => X(t.id))
|
|
444
445
|
}, {
|
|
445
|
-
item:
|
|
446
|
-
|
|
446
|
+
item: x(({ legend: t, index: o }) => [
|
|
447
|
+
n("div", {
|
|
447
448
|
"data-cy-legend-item": "",
|
|
448
|
-
onClick: (
|
|
449
|
-
style:
|
|
450
|
-
},
|
|
449
|
+
onClick: (f) => X(t.id),
|
|
450
|
+
style: r(`opacity:${C.value.includes(t.id) ? 0.5 : 1}`)
|
|
451
|
+
}, i(t.name) + ": " + i(h(Q)(
|
|
451
452
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
452
453
|
t.value,
|
|
453
|
-
|
|
454
|
+
h(I)({
|
|
454
455
|
p: e.value.style.chart.legend.prefix,
|
|
455
456
|
v: t.value,
|
|
456
457
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -462,126 +463,126 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
462
463
|
_: 1
|
|
463
464
|
}, 8, ["legendSet", "config"])
|
|
464
465
|
], 512)) : m("", !0),
|
|
465
|
-
|
|
466
|
+
W.value ? (s(), d("svg", {
|
|
466
467
|
key: 3,
|
|
467
|
-
xmlns:
|
|
468
|
-
class:
|
|
469
|
-
viewBox: `0 0 ${
|
|
470
|
-
style:
|
|
468
|
+
xmlns: h(et),
|
|
469
|
+
class: D({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
470
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${u.value.fullHeight <= 0 ? 10 : u.value.fullHeight}`,
|
|
471
|
+
style: r(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
471
472
|
}, [
|
|
472
|
-
(
|
|
473
|
+
(s(!0), d(U, null, H(B.value, (t, o) => (s(), d("linearGradient", {
|
|
473
474
|
x1: "0%",
|
|
474
475
|
y1: "0%",
|
|
475
476
|
x2: "100%",
|
|
476
477
|
y2: "0%",
|
|
477
|
-
id: `vertical_bar_gradient_${
|
|
478
|
+
id: `vertical_bar_gradient_${V.value}_${o}`
|
|
478
479
|
}, [
|
|
479
|
-
|
|
480
|
+
n("stop", {
|
|
480
481
|
offset: "0%",
|
|
481
482
|
"stop-color": t.color
|
|
482
483
|
}, null, 8, _t),
|
|
483
|
-
|
|
484
|
+
n("stop", {
|
|
484
485
|
offset: "100%",
|
|
485
|
-
"stop-color": `${
|
|
486
|
+
"stop-color": `${h(tt)(t.color, 0.03)}${h(se)[100 - e.value.style.chart.layout.bars.gradientIntensity]}`
|
|
486
487
|
}, null, 8, xt)
|
|
487
488
|
], 8, mt))), 256)),
|
|
488
|
-
(
|
|
489
|
-
|
|
490
|
-
x:
|
|
491
|
-
y:
|
|
492
|
-
width:
|
|
493
|
-
height:
|
|
489
|
+
(s(!0), d(U, null, H(B.value, (t, o) => (s(), d("g", null, [
|
|
490
|
+
n("rect", {
|
|
491
|
+
x: h(S)(O.value ? u.value.left + u.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : u.value.left),
|
|
492
|
+
y: u.value.top + (g.value + c.value) * o,
|
|
493
|
+
width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
|
|
494
|
+
height: c.value <= 0 ? 1e-4 : c.value,
|
|
494
495
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
495
496
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
496
|
-
class:
|
|
497
|
+
class: D({ animated: e.value.useCssAnimation })
|
|
497
498
|
}, null, 10, kt)
|
|
498
499
|
]))), 256)),
|
|
499
|
-
(
|
|
500
|
-
|
|
501
|
-
x:
|
|
502
|
-
y:
|
|
503
|
-
width:
|
|
504
|
-
height:
|
|
505
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${
|
|
500
|
+
(s(!0), d(U, null, H(B.value, (t, o) => (s(), d("g", null, [
|
|
501
|
+
n("rect", {
|
|
502
|
+
x: h(S)(O.value ? u.value.left + u.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : u.value.left),
|
|
503
|
+
y: u.value.top + (g.value + c.value) * o,
|
|
504
|
+
width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
|
|
505
|
+
height: c.value <= 0 ? 1e-4 : c.value,
|
|
506
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : `${t.color}${h(se)[e.value.style.chart.layout.bars.fillOpacity]}`,
|
|
506
507
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
507
508
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
508
509
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
509
|
-
class:
|
|
510
|
+
class: D({ animated: e.value.useCssAnimation })
|
|
510
511
|
}, null, 10, $t),
|
|
511
|
-
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
512
|
+
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (s(), d("line", {
|
|
512
513
|
key: 0,
|
|
513
514
|
x1: 0,
|
|
514
|
-
x2:
|
|
515
|
-
y1:
|
|
516
|
-
y2:
|
|
515
|
+
x2: u.value.left,
|
|
516
|
+
y1: c.value + g.value / 2 + u.value.top + (g.value + c.value) * o,
|
|
517
|
+
y2: c.value + g.value / 2 + u.value.top + (g.value + c.value) * o,
|
|
517
518
|
stroke: e.value.style.chart.layout.separators.color,
|
|
518
519
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
519
520
|
"stroke-linecap": "round"
|
|
520
521
|
}, null, 8, wt)) : m("", !0),
|
|
521
|
-
|
|
522
|
+
O.value && e.value.style.chart.layout.separators.show ? (s(), d("line", {
|
|
522
523
|
key: 1,
|
|
523
|
-
x1:
|
|
524
|
-
x2:
|
|
525
|
-
y1:
|
|
526
|
-
y2:
|
|
524
|
+
x1: u.value.left + u.value.width / 2,
|
|
525
|
+
x2: u.value.left + u.value.width / 2,
|
|
526
|
+
y1: u.value.top,
|
|
527
|
+
y2: u.value.bottom,
|
|
527
528
|
stroke: e.value.style.chart.layout.separators.color,
|
|
528
529
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
529
530
|
"stroke-linecap": "round"
|
|
530
531
|
}, null, 8, Ct)) : m("", !0),
|
|
531
|
-
|
|
532
|
-
x:
|
|
533
|
-
y:
|
|
534
|
-
"text-anchor": !
|
|
532
|
+
n("text", {
|
|
533
|
+
x: O.value ? u.value.left + u.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Re(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
534
|
+
y: u.value.top + (g.value + c.value) * o + c.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
535
|
+
"text-anchor": !O.value || t.sign === -1 ? "start" : "end",
|
|
535
536
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
536
537
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
537
538
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
538
|
-
},
|
|
539
|
-
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (
|
|
539
|
+
}, i(xe(t.value, t, o, t.sign)), 9, Tt),
|
|
540
|
+
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (s(), d("text", {
|
|
540
541
|
key: 2,
|
|
541
542
|
"text-anchor": "end",
|
|
542
|
-
x:
|
|
543
|
-
y:
|
|
543
|
+
x: u.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
544
|
+
y: u.value.top + (g.value + c.value) * o + c.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
544
545
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
545
546
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
546
547
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
547
|
-
},
|
|
548
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (
|
|
548
|
+
}, i(t.name), 9, Lt)) : m("", !0),
|
|
549
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (s(), d("text", {
|
|
549
550
|
key: 3,
|
|
550
551
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
551
|
-
y:
|
|
552
|
+
y: A(t, o).y,
|
|
552
553
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
553
554
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
554
555
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
555
556
|
"text-anchor": "start"
|
|
556
|
-
},
|
|
557
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (
|
|
557
|
+
}, i(A(t, o).name), 9, Nt)) : m("", !0),
|
|
558
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (s(), d("text", {
|
|
558
559
|
key: 4,
|
|
559
560
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
560
|
-
y:
|
|
561
|
+
y: A(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
561
562
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
562
563
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
563
564
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
564
565
|
"text-anchor": "start"
|
|
565
|
-
},
|
|
566
|
-
|
|
566
|
+
}, i(xe(A(t, o).value), A(t, o), o, t.parentSign || t.sign), 9, Pt)) : m("", !0),
|
|
567
|
+
n("rect", {
|
|
567
568
|
"data-cy-trap": "",
|
|
568
569
|
x: 0,
|
|
569
|
-
y:
|
|
570
|
-
width:
|
|
571
|
-
height:
|
|
572
|
-
fill:
|
|
573
|
-
onMouseenter: (
|
|
574
|
-
onMouseleave: l[1] || (l[1] = (
|
|
575
|
-
|
|
570
|
+
y: u.value.top + (g.value + c.value) * o - g.value / 2,
|
|
571
|
+
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
572
|
+
height: c.value + g.value <= 0 ? 1e-4 : c.value + g.value,
|
|
573
|
+
fill: le.value === t.id ? `${e.value.style.chart.layout.highlighter.color}${h(se)[e.value.style.chart.layout.highlighter.opacity]}` : "transparent",
|
|
574
|
+
onMouseenter: (f) => Ae(t, o),
|
|
575
|
+
onMouseleave: l[1] || (l[1] = (f) => {
|
|
576
|
+
Me.value = null, Z.value = !1, le.value = null;
|
|
576
577
|
})
|
|
577
578
|
}, null, 40, St)
|
|
578
579
|
]))), 256)),
|
|
579
|
-
|
|
580
|
+
k(a.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
580
581
|
], 14, bt)) : m("", !0),
|
|
581
|
-
a.$slots.watermark ? (
|
|
582
|
-
|
|
582
|
+
a.$slots.watermark ? (s(), d("div", Vt, [
|
|
583
|
+
k(a.$slots, "watermark", q(K({ isPrinting: h(de) || h(ce) })), void 0, !0)
|
|
583
584
|
])) : m("", !0),
|
|
584
|
-
|
|
585
|
+
W.value ? m("", !0) : (s(), ne(vt, {
|
|
585
586
|
key: 5,
|
|
586
587
|
config: {
|
|
587
588
|
type: "verticalBar",
|
|
@@ -596,24 +597,24 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
596
597
|
}
|
|
597
598
|
}
|
|
598
599
|
}, null, 8, ["config"])),
|
|
599
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (
|
|
600
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (s(), d("div", {
|
|
600
601
|
key: 6,
|
|
601
602
|
ref_key: "chartLegend",
|
|
602
|
-
ref:
|
|
603
|
+
ref: te
|
|
603
604
|
}, [
|
|
604
|
-
|
|
605
|
-
legendSet:
|
|
606
|
-
config:
|
|
607
|
-
onClickMarker: l[2] || (l[2] = ({ legend: t }) =>
|
|
605
|
+
G(Le, {
|
|
606
|
+
legendSet: z.value,
|
|
607
|
+
config: be.value,
|
|
608
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => X(t.id))
|
|
608
609
|
}, {
|
|
609
|
-
item:
|
|
610
|
-
|
|
611
|
-
onClick: (
|
|
612
|
-
style:
|
|
613
|
-
},
|
|
610
|
+
item: x(({ legend: t, index: o }) => [
|
|
611
|
+
n("div", {
|
|
612
|
+
onClick: (f) => X(t.id),
|
|
613
|
+
style: r(`opacity:${C.value.includes(t.id) ? 0.5 : 1}`)
|
|
614
|
+
}, i(t.name) + ": " + i(h(Q)(
|
|
614
615
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
615
616
|
t.value,
|
|
616
|
-
|
|
617
|
+
h(I)({
|
|
617
618
|
p: e.value.style.chart.legend.prefix,
|
|
618
619
|
v: t.value,
|
|
619
620
|
s: e.value.style.chart.legend.suffix,
|
|
@@ -625,9 +626,9 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
625
626
|
_: 1
|
|
626
627
|
}, 8, ["legendSet", "config"])
|
|
627
628
|
], 512)) : m("", !0),
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
show:
|
|
629
|
+
k(a.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
630
|
+
G(ct, {
|
|
631
|
+
show: $.value.showTooltip && Z.value && C.value.length < N.dataset.length,
|
|
631
632
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
632
633
|
color: e.value.style.chart.tooltip.color,
|
|
633
634
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -637,23 +638,23 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
637
638
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
638
639
|
position: e.value.style.chart.tooltip.position,
|
|
639
640
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
640
|
-
parent:
|
|
641
|
-
content:
|
|
641
|
+
parent: R.value,
|
|
642
|
+
content: ee.value,
|
|
642
643
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
643
644
|
}, {
|
|
644
|
-
"tooltip-before":
|
|
645
|
-
|
|
645
|
+
"tooltip-before": x(() => [
|
|
646
|
+
k(a.$slots, "tooltip-before", q(K({ ...oe.value })), void 0, !0)
|
|
646
647
|
]),
|
|
647
|
-
"tooltip-after":
|
|
648
|
-
|
|
648
|
+
"tooltip-after": x(() => [
|
|
649
|
+
k(a.$slots, "tooltip-after", q(K({ ...oe.value })), void 0, !0)
|
|
649
650
|
]),
|
|
650
651
|
_: 3
|
|
651
652
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
652
|
-
|
|
653
|
+
W.value ? (s(), ne(pt, {
|
|
653
654
|
key: 7,
|
|
654
655
|
hideDetails: "",
|
|
655
656
|
config: {
|
|
656
|
-
open:
|
|
657
|
+
open: $.value.showTable,
|
|
657
658
|
maxHeight: 1e4,
|
|
658
659
|
body: {
|
|
659
660
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -665,132 +666,132 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
665
666
|
}
|
|
666
667
|
}
|
|
667
668
|
}, {
|
|
668
|
-
content:
|
|
669
|
-
|
|
669
|
+
content: x(() => [
|
|
670
|
+
n("div", {
|
|
670
671
|
ref_key: "tableContainer",
|
|
671
|
-
ref:
|
|
672
|
+
ref: ye,
|
|
672
673
|
class: "vue-ui-vertical-bar-table"
|
|
673
674
|
}, [
|
|
674
|
-
|
|
675
|
-
|
|
675
|
+
n("div", Ft, [
|
|
676
|
+
n("div", {
|
|
676
677
|
role: "button",
|
|
677
678
|
tabindex: "0",
|
|
678
|
-
style:
|
|
679
|
-
onClick: l[3] || (l[3] = (t) =>
|
|
680
|
-
onKeypress: l[4] || (l[4] = je((t) =>
|
|
679
|
+
style: r(`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};`),
|
|
680
|
+
onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
|
|
681
|
+
onKeypress: l[4] || (l[4] = je((t) => $.value.showTable = !1, ["enter"]))
|
|
681
682
|
}, [
|
|
682
|
-
|
|
683
|
+
G(ht, {
|
|
683
684
|
name: "close",
|
|
684
685
|
stroke: e.value.table.th.color,
|
|
685
686
|
"stroke-width": 2
|
|
686
687
|
}, null, 8, ["stroke"])
|
|
687
688
|
], 36),
|
|
688
|
-
|
|
689
|
+
n("div", {
|
|
689
690
|
style: { width: "100%", "container-type": "inline-size" },
|
|
690
|
-
class:
|
|
691
|
+
class: D({ "vue-ui-responsive": ge.value })
|
|
691
692
|
}, [
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
style:
|
|
693
|
+
n("table", Mt, [
|
|
694
|
+
n("caption", {
|
|
695
|
+
style: r({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
695
696
|
class: "vue-ui-data-table__caption"
|
|
696
697
|
}, [
|
|
697
|
-
Ye(
|
|
698
|
-
e.value.style.chart.title.subtitle.text ? (
|
|
698
|
+
Ye(i(e.value.style.chart.title.text) + " ", 1),
|
|
699
|
+
e.value.style.chart.title.subtitle.text ? (s(), d("span", It, i(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
|
|
699
700
|
], 4),
|
|
700
|
-
|
|
701
|
-
|
|
701
|
+
n("thead", null, [
|
|
702
|
+
n("tr", {
|
|
702
703
|
role: "row",
|
|
703
|
-
style:
|
|
704
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
704
705
|
}, [
|
|
705
|
-
(
|
|
706
|
-
style:
|
|
706
|
+
(s(!0), d(U, null, H(w.value.head, (t) => (s(), d("th", {
|
|
707
|
+
style: r(`outline:${e.value.table.th.outline}`)
|
|
707
708
|
}, [
|
|
708
|
-
|
|
709
|
+
n("div", Bt, i(t), 1)
|
|
709
710
|
], 4))), 256))
|
|
710
711
|
], 4),
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
style:
|
|
712
|
+
n("tr", null, [
|
|
713
|
+
n("th", {
|
|
714
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
714
715
|
}, null, 4),
|
|
715
|
-
|
|
716
|
-
style:
|
|
717
|
-
}, "∑ " +
|
|
718
|
-
|
|
719
|
-
style:
|
|
716
|
+
n("th", {
|
|
717
|
+
style: r(`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`)
|
|
718
|
+
}, "∑ " + i(e.value.table.td.prefix) + i(isNaN(T.value) ? "" : T.value.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 5),
|
|
719
|
+
n("th", {
|
|
720
|
+
style: r(`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`)
|
|
720
721
|
}, "100%", 4),
|
|
721
|
-
|
|
722
|
-
style:
|
|
722
|
+
n("th", {
|
|
723
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
723
724
|
}, null, 4),
|
|
724
|
-
|
|
725
|
-
style:
|
|
725
|
+
n("th", {
|
|
726
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
726
727
|
}, null, 4),
|
|
727
|
-
|
|
728
|
-
style:
|
|
728
|
+
n("th", {
|
|
729
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
729
730
|
}, null, 4),
|
|
730
|
-
|
|
731
|
-
style:
|
|
731
|
+
n("th", {
|
|
732
|
+
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
732
733
|
}, null, 4)
|
|
733
734
|
])
|
|
734
735
|
]),
|
|
735
|
-
|
|
736
|
-
(
|
|
737
|
-
class:
|
|
738
|
-
style:
|
|
736
|
+
n("tbody", null, [
|
|
737
|
+
(s(!0), d(U, null, H(w.value.body, (t, o) => (s(), d("tr", {
|
|
738
|
+
class: D({ "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 }),
|
|
739
|
+
style: r(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
739
740
|
}, [
|
|
740
|
-
|
|
741
|
+
n("td", {
|
|
741
742
|
class: "vue-ui-data-table__tbody__td",
|
|
742
|
-
style:
|
|
743
|
-
"data-cell":
|
|
743
|
+
style: r(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
744
|
+
"data-cell": w.value.head[0] ?? ""
|
|
744
745
|
}, [
|
|
745
|
-
|
|
746
|
-
t.color ? (
|
|
746
|
+
n("div", Dt, [
|
|
747
|
+
t.color ? (s(), d("span", {
|
|
747
748
|
key: 0,
|
|
748
|
-
style:
|
|
749
|
+
style: r(`color:${t.color};margin-right:3px`)
|
|
749
750
|
}, "⬤", 4)) : m("", !0),
|
|
750
|
-
|
|
751
|
+
n("span", null, i(t.parentName), 1)
|
|
751
752
|
])
|
|
752
753
|
], 12, Ot),
|
|
753
|
-
|
|
754
|
+
n("td", {
|
|
754
755
|
class: "vue-ui-data-table__tbody__td",
|
|
755
|
-
style:
|
|
756
|
-
"data-cell":
|
|
756
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
757
|
+
"data-cell": w.value.head[1] ?? ""
|
|
757
758
|
}, [
|
|
758
|
-
|
|
759
|
+
n("div", Xt, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
|
|
759
760
|
], 12, Rt),
|
|
760
|
-
|
|
761
|
+
n("td", {
|
|
761
762
|
class: "vue-ui-data-table__tbody__td",
|
|
762
|
-
style:
|
|
763
|
-
"data-cell":
|
|
763
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
764
|
+
"data-cell": w.value.head[2] ?? ""
|
|
764
765
|
}, [
|
|
765
|
-
|
|
766
|
+
n("div", Et, i(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
766
767
|
], 12, At),
|
|
767
|
-
|
|
768
|
+
n("td", {
|
|
768
769
|
class: "vue-ui-data-table__tbody__td",
|
|
769
|
-
style:
|
|
770
|
-
"data-cell":
|
|
770
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
771
|
+
"data-cell": w.value.head[3] ?? ""
|
|
771
772
|
}, [
|
|
772
|
-
|
|
773
|
+
n("div", Ut, i(t.childName), 1)
|
|
773
774
|
], 12, Gt),
|
|
774
|
-
|
|
775
|
+
n("td", {
|
|
775
776
|
class: "vue-ui-data-table__tbody__td",
|
|
776
|
-
style:
|
|
777
|
-
"data-cell":
|
|
777
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
778
|
+
"data-cell": w.value.head[4] ?? ""
|
|
778
779
|
}, [
|
|
779
|
-
|
|
780
|
+
n("div", Wt, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
|
|
780
781
|
], 12, Ht),
|
|
781
|
-
|
|
782
|
+
n("td", {
|
|
782
783
|
class: "vue-ui-data-table__tbody__td",
|
|
783
|
-
style:
|
|
784
|
-
"data-cell":
|
|
784
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
785
|
+
"data-cell": w.value.head[5] ?? ""
|
|
785
786
|
}, [
|
|
786
|
-
|
|
787
|
+
n("div", Yt, i(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
787
788
|
], 12, jt),
|
|
788
|
-
|
|
789
|
+
n("td", {
|
|
789
790
|
class: "vue-ui-data-table__tbody__td",
|
|
790
|
-
style:
|
|
791
|
-
"data-cell":
|
|
791
|
+
style: r(`outline:${e.value.table.td.outline}`),
|
|
792
|
+
"data-cell": w.value.head[6] ?? ""
|
|
792
793
|
}, [
|
|
793
|
-
|
|
794
|
+
n("div", Kt, i(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
794
795
|
], 12, qt)
|
|
795
796
|
], 6))), 256))
|
|
796
797
|
])
|
|
@@ -803,7 +804,7 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
803
804
|
}, 8, ["config"])) : m("", !0)
|
|
804
805
|
], 14, gt));
|
|
805
806
|
}
|
|
806
|
-
}, da = /* @__PURE__ */ yt(Jt, [["__scopeId", "data-v-
|
|
807
|
+
}, da = /* @__PURE__ */ yt(Jt, [["__scopeId", "data-v-e114e098"]]);
|
|
807
808
|
export {
|
|
808
809
|
da as default
|
|
809
810
|
};
|