vue-data-ui 2.12.6 → 2.12.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import { _ as Rt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
14
|
-
import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as Ge } from "./Shape-C69a0f29.js";
|
|
16
|
-
import { u as Ut } from "./useChartAccessibility-BWojgys7.js";
|
|
17
|
-
import { _ as Xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "height"], jt = ["id"], qt = ["stop-color"], Yt = ["stop-color"], Kt = { key: 1 }, Jt = ["x", "y", "width", "height", "fill", "rx"], Qt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Zt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ea = ["x2", "y1", "y2", "stroke", "stroke-width"], ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], aa = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], la = ["x", "y", "font-size", "fill", "font-weight"], oa = ["x", "y", "font-size", "fill", "font-weight"], na = ["x", "y", "font-size", "fill", "font-weight"], ua = ["y", "width", "height", "fill", "onMouseenter"], sa = {
|
|
1
|
+
import { useCssVars as _t, defineAsyncComponent as B, useSlots as $t, computed as m, ref as d, watch as He, shallowRef as We, onMounted as Ge, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as s, normalizeStyle as c, normalizeClass as R, createBlock as D, createCommentVNode as p, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
|
|
2
|
+
import { u as Lt, c as Nt, t as Pt, p as E, a as St, b as Vt, o as je, e as Z, v as N, d as ye, i as ne, f as U, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as Bt, u as Rt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as qe } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as Dt } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Xt from "./vue-ui-accordion-CmCs2yR2.js";
|
|
9
|
+
import Ye from "./Legend-DFunFf8i.js";
|
|
10
|
+
import Ht from "./Title-B5qqUI3M.js";
|
|
11
|
+
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], Zt = { key: 1 }, el = ["x", "y", "width", "height", "fill", "rx"], tl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], al = ["x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["y", "width", "height", "fill", "onMouseenter"], dl = {
|
|
19
13
|
key: 6,
|
|
20
14
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
15
|
+
}, vl = ["onClick"], cl = { style: "width:100%;padding-top: 36px;position:relative" }, hl = { class: "vue-ui-data-table" }, pl = { key: 0 }, yl = { style: { width: "100%" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], ml = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = ["data-cell"], wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xl = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = ["data-cell"], Ll = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Nl = ["data-cell"], Pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Sl = {
|
|
22
16
|
__name: "vue-ui-vertical-bar",
|
|
23
17
|
props: {
|
|
24
18
|
config: {
|
|
@@ -35,83 +29,83 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
35
29
|
}
|
|
36
30
|
},
|
|
37
31
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
setup(Ke, { expose: Je, emit: Qe }) {
|
|
33
|
+
_t((l) => ({
|
|
34
|
+
"2bbf52e2": l.tdo
|
|
41
35
|
}));
|
|
42
|
-
const { vue_ui_vertical_bar:
|
|
43
|
-
get: () =>
|
|
44
|
-
set: (
|
|
45
|
-
}), { userOptionsVisible:
|
|
46
|
-
function
|
|
47
|
-
const
|
|
36
|
+
const Ze = B(() => import("./BaseIcon-CZdMutjs.js")), et = B(() => import("./PackageVersion-CLY-udAA.js")), tt = B(() => import("./PenAndPaper-B9na2mbr.js")), fe = B(() => import("./Shape-D3w9qas1.js")), lt = B(() => import("./vue-ui-skeleton-CbYQYRvD.js")), at = B(() => import("./Tooltip-C9rxJ-Ru.js")), ot = B(() => import("./UserOptions-Ddy6CuLC.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), be = d(0), Y = d(null), me = d(null), re = d(null), ke = d(null), _e = d(null), $e = d(0), ie = d(0), it = Qe, e = m({
|
|
37
|
+
get: () => Te(),
|
|
38
|
+
set: (l) => l
|
|
39
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: we, keepUserOptionState: xe } = Et({ config: e.value }), { svgRef: Ce } = Ut({ config: e.value.style.chart.title });
|
|
40
|
+
function Te() {
|
|
41
|
+
const l = qe({
|
|
48
42
|
userConfig: T.config,
|
|
49
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: nt
|
|
50
44
|
});
|
|
51
|
-
return
|
|
52
|
-
...
|
|
53
|
-
userConfig:
|
|
54
|
-
defaultConfig:
|
|
45
|
+
return l.theme ? {
|
|
46
|
+
...qe({
|
|
47
|
+
userConfig: St.vue_ui_vertical_bar[l.theme] || T.config,
|
|
48
|
+
defaultConfig: l
|
|
55
49
|
}),
|
|
56
|
-
customPalette:
|
|
57
|
-
} :
|
|
50
|
+
customPalette: Pt[l.theme] || E
|
|
51
|
+
} : l;
|
|
58
52
|
}
|
|
59
|
-
|
|
60
|
-
e.value =
|
|
61
|
-
}, { deep: !0 }),
|
|
62
|
-
const { isPrinting:
|
|
53
|
+
He(() => T.config, (l) => {
|
|
54
|
+
e.value = Te(), de.value = !e.value.userOptions.showOnChartHover, Fe(), $e.value += 1, ie.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
55
|
+
}, { deep: !0 }), He(() => T.dataset, le, { deep: !0 });
|
|
56
|
+
const { isPrinting: Le, isImaging: Ne, generatePdf: Pe, generateImage: Se } = Dt({
|
|
63
57
|
elementId: `vue-ui-vertical-bar_${C.value}`,
|
|
64
58
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
|
|
65
59
|
options: e.value.userOptions.print
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
}), dt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ve = m(() => Vt(e.value.customPalette)), Ie = d(null), Oe = d(!1), vt = m(() => e.value.table.responsiveBreakpoint), I = We(null), X = We(null);
|
|
61
|
+
Ge(() => {
|
|
62
|
+
Fe();
|
|
69
63
|
});
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
64
|
+
function Fe() {
|
|
65
|
+
if (je(T.dataset) && Z({
|
|
72
66
|
componentName: "VueUiVerticalBar",
|
|
73
67
|
type: "dataset"
|
|
74
|
-
}),
|
|
75
|
-
const
|
|
76
|
-
const { width:
|
|
77
|
-
chart:
|
|
78
|
-
title: e.value.style.chart.title.text ?
|
|
79
|
-
legend: e.value.style.chart.legend.show ?
|
|
80
|
-
source:
|
|
81
|
-
noTitle:
|
|
68
|
+
}), te.value = T.dataset.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0), ct(), e.value.responsive) {
|
|
69
|
+
const l = Bt(() => {
|
|
70
|
+
const { width: a, height: t } = Rt({
|
|
71
|
+
chart: Y.value,
|
|
72
|
+
title: e.value.style.chart.title.text ? me.value : null,
|
|
73
|
+
legend: e.value.style.chart.legend.show ? re.value : null,
|
|
74
|
+
source: ke.value,
|
|
75
|
+
noTitle: _e.value
|
|
82
76
|
});
|
|
83
77
|
requestAnimationFrame(() => {
|
|
84
|
-
|
|
78
|
+
Ae.value = a, v.value = t / te.value - g.value * 2;
|
|
85
79
|
});
|
|
86
80
|
});
|
|
87
|
-
|
|
81
|
+
I.value && (X.value && I.value.unobserve(X.value), I.value.disconnect()), I.value = new ResizeObserver(l), X.value = Y.value.parentNode, I.value.observe(X.value);
|
|
88
82
|
}
|
|
89
83
|
}
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
wt(() => {
|
|
85
|
+
I.value && (X.value && I.value.unobserve(X.value), I.value.disconnect());
|
|
92
86
|
});
|
|
93
|
-
function
|
|
94
|
-
new ResizeObserver((
|
|
95
|
-
|
|
96
|
-
|
|
87
|
+
function ct() {
|
|
88
|
+
new ResizeObserver((a) => {
|
|
89
|
+
a.forEach((t) => {
|
|
90
|
+
Oe.value = t.contentRect.width < vt.value;
|
|
97
91
|
});
|
|
98
|
-
}).observe(
|
|
92
|
+
}).observe(Ie.value);
|
|
99
93
|
}
|
|
100
|
-
const $ =
|
|
94
|
+
const $ = d({
|
|
101
95
|
showTable: e.value.table.show,
|
|
102
96
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
103
97
|
showTooltip: e.value.style.chart.tooltip.show
|
|
104
|
-
}),
|
|
105
|
-
!
|
|
98
|
+
}), Me = m(() => $.value.sortDesc), F = m(() => (T.dataset.forEach((l, a) => {
|
|
99
|
+
!l.value && !l.children && Z({
|
|
106
100
|
componentName: "VueUiVerticalBar",
|
|
107
101
|
type: "datasetAttributeEmpty",
|
|
108
|
-
property: `value (index ${
|
|
109
|
-
}),
|
|
102
|
+
property: `value (index ${a})`
|
|
103
|
+
}), l.children && (je(l.children) ? Z({
|
|
110
104
|
componentName: "VueUiVerticalBar",
|
|
111
105
|
type: "datasetAttributeEmpty",
|
|
112
|
-
property: `children (index ${
|
|
113
|
-
}) :
|
|
114
|
-
[null, void 0].includes(t.name) &&
|
|
106
|
+
property: `children (index ${a})`
|
|
107
|
+
}) : l.children.forEach((t, o) => {
|
|
108
|
+
[null, void 0].includes(t.name) && Z({
|
|
115
109
|
componentName: "VueUiVerticalBar",
|
|
116
110
|
type: "datasetSerieAttribute",
|
|
117
111
|
property: "name",
|
|
@@ -119,57 +113,57 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
119
113
|
index: o
|
|
120
114
|
});
|
|
121
115
|
}));
|
|
122
|
-
}), T.dataset.map((
|
|
123
|
-
const t = `vertical_parent_${
|
|
116
|
+
}), T.dataset.map((l, a) => {
|
|
117
|
+
const t = `vertical_parent_${a}_${C.value}`, o = l.children && l.children.length > 0, _ = N(l.value ? l.value : o ? l.children.map((x) => x.value || 0).reduce((x, V) => x + V, 0) : 0), f = _ >= 0 ? 1 : -1;
|
|
124
118
|
return {
|
|
125
|
-
...
|
|
119
|
+
...l,
|
|
126
120
|
id: t,
|
|
127
|
-
absoluteIndex:
|
|
121
|
+
absoluteIndex: a,
|
|
128
122
|
shape: "square",
|
|
129
|
-
opacity:
|
|
130
|
-
value: Math.abs(
|
|
123
|
+
opacity: P.value.includes(t) ? 0.5 : 1,
|
|
124
|
+
value: Math.abs(_),
|
|
131
125
|
sign: f,
|
|
132
126
|
hasChildren: o,
|
|
133
127
|
isChild: !1,
|
|
134
|
-
segregate: () =>
|
|
135
|
-
isSegregated:
|
|
136
|
-
color:
|
|
137
|
-
children: !
|
|
128
|
+
segregate: () => K(t),
|
|
129
|
+
isSegregated: P.value.includes(t),
|
|
130
|
+
color: ye(l.color) || Ve.value[a] || E[a] || E[a % E.length],
|
|
131
|
+
children: !l.children || !l.children.length ? [] : l.children.toSorted(ae.value ? () => 0 : (x, V) => Me.value ? V.value - x.value : x.value - V.value).map((x, V) => ({
|
|
138
132
|
...x,
|
|
139
133
|
value: N(Math.abs(x.value)),
|
|
140
|
-
absoluteIndex:
|
|
134
|
+
absoluteIndex: a,
|
|
141
135
|
sign: x.value >= 0 ? 1 : -1,
|
|
142
136
|
isChild: !0,
|
|
143
137
|
parentId: t,
|
|
144
|
-
parentName:
|
|
145
|
-
parentValue:
|
|
138
|
+
parentName: l.name,
|
|
139
|
+
parentValue: _,
|
|
146
140
|
parentSign: f,
|
|
147
|
-
id: `vertical_child_${
|
|
141
|
+
id: `vertical_child_${a}_${V}_${C.value}`,
|
|
148
142
|
childIndex: V,
|
|
149
|
-
color:
|
|
143
|
+
color: ye(x.color) || ye(l.color) || Ve.value[a] || E[a] || E[a % E.length]
|
|
150
144
|
})).map((x, V) => ({
|
|
151
145
|
...x,
|
|
152
146
|
isFirstChild: V === 0,
|
|
153
|
-
isLastChild: V ===
|
|
147
|
+
isLastChild: V === l.children.length - 1
|
|
154
148
|
}))
|
|
155
149
|
};
|
|
156
|
-
}).toSorted(
|
|
150
|
+
}).toSorted(ae.value ? () => 0 : (l, a) => Me.value ? a.value - l.value : l.value - a.value))), ze = m(() => ({
|
|
157
151
|
cy: "vertical-bar-div-legend",
|
|
158
152
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
159
153
|
color: e.value.style.chart.legend.color,
|
|
160
154
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
161
155
|
paddingBottom: 12,
|
|
162
156
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
163
|
-
})), v =
|
|
164
|
-
width:
|
|
165
|
-
height:
|
|
157
|
+
})), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), ht = m(() => (v.value + g.value) * te.value), Ae = d(512), y = m(() => ({
|
|
158
|
+
width: Ae.value,
|
|
159
|
+
height: ht.value,
|
|
166
160
|
padding: {
|
|
167
161
|
top: 12,
|
|
168
162
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
169
163
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
170
164
|
bottom: 12
|
|
171
165
|
}
|
|
172
|
-
})),
|
|
166
|
+
})), r = m(() => ({
|
|
173
167
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
174
168
|
top: y.value.padding.top,
|
|
175
169
|
left: y.value.padding.left,
|
|
@@ -177,103 +171,103 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
177
171
|
bottom: y.value.padding.top + y.value.height,
|
|
178
172
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
179
173
|
}));
|
|
180
|
-
function
|
|
181
|
-
|
|
174
|
+
function le() {
|
|
175
|
+
te.value = M.value.flatMap((l) => l.children && l.children.length > 0 ? l.children.length : 1).reduce((l, a) => l + a, 0);
|
|
182
176
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
|
|
177
|
+
const P = d([]);
|
|
178
|
+
function K(l) {
|
|
179
|
+
P.value.includes(l) ? P.value = P.value.filter((a) => a !== l) : P.value.push(l), le(), it("selectLegend", M.value);
|
|
186
180
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
189
|
-
return
|
|
190
|
-
v: N(Math.abs(
|
|
181
|
+
const M = m(() => F.value.filter((l) => !P.value.includes(l.id))), S = m(() => M.value.map((l) => Math.abs(l.value)).reduce((l, a) => l + a, 0));
|
|
182
|
+
function Be(l, a = !1, t = 0) {
|
|
183
|
+
return a ? U({
|
|
184
|
+
v: N(Math.abs(l) / S.value * 100),
|
|
191
185
|
s: "%",
|
|
192
186
|
r: t
|
|
193
|
-
}) : Math.abs(
|
|
187
|
+
}) : Math.abs(l) / S.value;
|
|
194
188
|
}
|
|
195
|
-
const
|
|
196
|
-
function w(
|
|
197
|
-
const
|
|
198
|
-
return
|
|
189
|
+
const z = m(() => M.value.flatMap((l) => l.hasChildren ? l.children : l)), A = m(() => z.value.map((l) => l.sign).includes(-1)), pt = m(() => Math.max(...M.value.flatMap((l) => l.children && l.children.length ? Math.max(...l.children.map((a) => a.value)) : l.value)));
|
|
190
|
+
function w(l) {
|
|
191
|
+
const a = l / pt.value;
|
|
192
|
+
return r.value.width / (A.value ? 2 : 1) * a;
|
|
199
193
|
}
|
|
200
|
-
function
|
|
201
|
-
return w(
|
|
194
|
+
function yt(l) {
|
|
195
|
+
return w(l) + r.value.left;
|
|
202
196
|
}
|
|
203
|
-
function
|
|
204
|
-
const t =
|
|
197
|
+
function J(l, a) {
|
|
198
|
+
const t = M.value.find((f) => f.id === l.parentId), o = r.value.top + (g.value + v.value) * a, _ = t.children.length * (g.value + v.value);
|
|
205
199
|
return {
|
|
206
|
-
y: o +
|
|
200
|
+
y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
207
201
|
name: t.name,
|
|
208
202
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
209
|
-
percentageToTotal: isNaN(t.value /
|
|
203
|
+
percentageToTotal: isNaN(t.value / S.value) ? "" : Be(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
210
204
|
sign: t.sign
|
|
211
205
|
};
|
|
212
206
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
207
|
+
function gt() {
|
|
208
|
+
return M.value;
|
|
215
209
|
}
|
|
216
|
-
const
|
|
217
|
-
function
|
|
218
|
-
|
|
219
|
-
datapoint:
|
|
220
|
-
seriesIndex:
|
|
221
|
-
series:
|
|
210
|
+
const ve = d(null), ce = d(null);
|
|
211
|
+
function ft(l, a) {
|
|
212
|
+
ce.value = {
|
|
213
|
+
datapoint: l,
|
|
214
|
+
seriesIndex: a,
|
|
215
|
+
series: F.value,
|
|
222
216
|
config: e.value
|
|
223
|
-
},
|
|
217
|
+
}, ue.value = !0, ve.value = l.id;
|
|
224
218
|
let t = "";
|
|
225
|
-
const o =
|
|
226
|
-
|
|
227
|
-
datapoint:
|
|
228
|
-
series:
|
|
219
|
+
const o = l.isChild ? l.parentName : l.name, _ = l.isChild ? l.name : "", f = e.value.style.chart.tooltip.customFormat;
|
|
220
|
+
zt(f) && At(() => f({
|
|
221
|
+
datapoint: l,
|
|
222
|
+
series: F.value,
|
|
229
223
|
config: e.value,
|
|
230
|
-
seriesIndex:
|
|
231
|
-
})) ?
|
|
232
|
-
datapoint:
|
|
233
|
-
series:
|
|
224
|
+
seriesIndex: a
|
|
225
|
+
})) ? se.value = f({
|
|
226
|
+
datapoint: l,
|
|
227
|
+
series: F.value,
|
|
234
228
|
config: e.value,
|
|
235
|
-
seriesIndex:
|
|
229
|
+
seriesIndex: a
|
|
236
230
|
}) : (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;">
|
|
237
|
-
<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="${
|
|
238
|
-
${
|
|
239
|
-
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${
|
|
231
|
+
<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="${l.color}"/>${ut.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${C.value}_${l.absoluteIndex})"/>` : ""}</svg> ${o}</div>
|
|
232
|
+
${_ ? `<div>${_}</div>` : ""}
|
|
233
|
+
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${ne(
|
|
240
234
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
241
|
-
|
|
242
|
-
|
|
235
|
+
l.sign === 1 ? l.value : -l.value,
|
|
236
|
+
U({
|
|
243
237
|
p: e.value.style.chart.tooltip.prefix,
|
|
244
|
-
v:
|
|
238
|
+
v: l.sign === 1 ? l.value : -l.value,
|
|
245
239
|
s: e.value.style.chart.tooltip.suffix,
|
|
246
240
|
r: e.value.style.chart.tooltip.roundingValue
|
|
247
241
|
}),
|
|
248
|
-
{ datapoint:
|
|
249
|
-
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${
|
|
250
|
-
v: Math.abs(
|
|
242
|
+
{ datapoint: l, seriesIndex: a }
|
|
243
|
+
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${U({
|
|
244
|
+
v: Math.abs(l.value) / S.value * 100,
|
|
251
245
|
s: "%",
|
|
252
246
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
253
|
-
})}</b></div>`,
|
|
254
|
-
v: Math.abs(
|
|
247
|
+
})}</b></div>`, l.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${U({
|
|
248
|
+
v: Math.abs(l.value) / Math.abs(l.parentValue) * 100,
|
|
255
249
|
s: "%",
|
|
256
250
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
257
|
-
})}</b></div>`)),
|
|
251
|
+
})}</b></div>`)), se.value = `<div style="text-align:left">${t}</div>`);
|
|
258
252
|
}
|
|
259
|
-
function
|
|
253
|
+
function Re(l, a, t, o) {
|
|
260
254
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
261
255
|
return "";
|
|
262
|
-
const
|
|
256
|
+
const _ = ne(
|
|
263
257
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
264
|
-
N(o === -1 &&
|
|
265
|
-
|
|
258
|
+
N(o === -1 && l >= 0 ? -l : l),
|
|
259
|
+
U({
|
|
266
260
|
p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
|
|
267
|
-
v: N(o === -1 &&
|
|
261
|
+
v: N(o === -1 && l >= 0 ? -l : l),
|
|
268
262
|
s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
|
|
269
263
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
270
264
|
}),
|
|
271
|
-
{ datapoint:
|
|
272
|
-
), f = `(${
|
|
273
|
-
return `${
|
|
265
|
+
{ datapoint: a, seriesIndex: t }
|
|
266
|
+
), f = `(${Be(l, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
267
|
+
return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
|
|
274
268
|
}
|
|
275
269
|
const L = m(() => {
|
|
276
|
-
const
|
|
270
|
+
const l = [
|
|
277
271
|
e.value.translations.parentName,
|
|
278
272
|
e.value.translations.value,
|
|
279
273
|
e.value.translations.percentageToTotal,
|
|
@@ -281,15 +275,15 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
281
275
|
e.value.translations.value,
|
|
282
276
|
e.value.translations.percentageToSerie,
|
|
283
277
|
e.value.translations.percentageToTotal
|
|
284
|
-
],
|
|
278
|
+
], a = z.value.map((t) => t.isChild ? t.isFirstChild ? {
|
|
285
279
|
color: t.color,
|
|
286
280
|
parentName: t.parentName,
|
|
287
281
|
parentValue: t.parentValue,
|
|
288
|
-
percentageToTotal: t.parentValue /
|
|
282
|
+
percentageToTotal: t.parentValue / S.value,
|
|
289
283
|
childName: t.name,
|
|
290
284
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
291
285
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
292
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
286
|
+
childPercentageToTotal: Math.abs(t.value) / S.value
|
|
293
287
|
} : {
|
|
294
288
|
color: "",
|
|
295
289
|
parentName: "",
|
|
@@ -298,21 +292,21 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
298
292
|
childName: t.name,
|
|
299
293
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
300
294
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
301
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
295
|
+
childPercentageToTotal: Math.abs(t.value) / S.value
|
|
302
296
|
} : {
|
|
303
297
|
color: t.color,
|
|
304
298
|
parentName: t.name,
|
|
305
299
|
parentValue: t.sign === 1 ? t.value : -t.value,
|
|
306
|
-
percentageToTotal: Math.abs(t.value) /
|
|
300
|
+
percentageToTotal: Math.abs(t.value) / S.value,
|
|
307
301
|
childName: "",
|
|
308
302
|
childValue: "",
|
|
309
303
|
childPercentageToParent: "",
|
|
310
304
|
childPercentageToTotal: ""
|
|
311
305
|
});
|
|
312
|
-
return { head:
|
|
306
|
+
return { head: l, body: a };
|
|
313
307
|
});
|
|
314
|
-
function
|
|
315
|
-
const
|
|
308
|
+
function De() {
|
|
309
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = L.value.head, t = L.value.body.map((f) => [
|
|
316
310
|
f.parentName,
|
|
317
311
|
f.parentValue,
|
|
318
312
|
f.percentageToTotal,
|
|
@@ -320,84 +314,84 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
320
314
|
f.childValue,
|
|
321
315
|
f.childPercentageToParent,
|
|
322
316
|
f.childPercentageToTotal
|
|
323
|
-
]), o =
|
|
324
|
-
|
|
317
|
+
]), o = l.concat([a]).concat(t), _ = Ft(o);
|
|
318
|
+
Mt({ csvContent: _, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
325
319
|
}
|
|
326
|
-
const
|
|
327
|
-
function
|
|
328
|
-
|
|
320
|
+
const H = d(!1);
|
|
321
|
+
function bt(l) {
|
|
322
|
+
H.value = l, be.value += 1;
|
|
329
323
|
}
|
|
330
|
-
function
|
|
324
|
+
function Ee() {
|
|
331
325
|
$.value.showTable = !$.value.showTable;
|
|
332
326
|
}
|
|
333
|
-
const
|
|
327
|
+
const mt = d({
|
|
334
328
|
none: 0,
|
|
335
329
|
asc: 1,
|
|
336
330
|
desc: 2
|
|
337
|
-
}),
|
|
338
|
-
|
|
339
|
-
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) ||
|
|
331
|
+
}), O = d(0), ae = d(!1);
|
|
332
|
+
Ge(() => {
|
|
333
|
+
["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || Z({
|
|
340
334
|
componentName: "VueUiVerticalBar",
|
|
341
335
|
type: "attributeWrongValue",
|
|
342
336
|
property: "style.chart.layout.bars.sort",
|
|
343
337
|
key: e.value.style.chart.layout.bars.sort
|
|
344
|
-
}),
|
|
338
|
+
}), O.value = mt.value[e.value.style.chart.layout.bars.sort], $.value.sortDesc = O.value === 2, ae.value = O.value === 0;
|
|
345
339
|
});
|
|
346
|
-
function
|
|
347
|
-
|
|
340
|
+
function kt() {
|
|
341
|
+
O.value += 1, O.value > 2 && (O.value = 0);
|
|
348
342
|
}
|
|
349
|
-
function
|
|
350
|
-
|
|
343
|
+
function Ue() {
|
|
344
|
+
kt(), $.value.sortDesc = O.value === 2, ae.value = O.value === 0, le();
|
|
351
345
|
}
|
|
352
|
-
function
|
|
346
|
+
function Xe() {
|
|
353
347
|
$.value.showTooltip = !$.value.showTooltip;
|
|
354
348
|
}
|
|
355
|
-
const
|
|
356
|
-
function
|
|
357
|
-
|
|
349
|
+
const oe = d(!1);
|
|
350
|
+
function he() {
|
|
351
|
+
oe.value = !oe.value;
|
|
358
352
|
}
|
|
359
|
-
return
|
|
360
|
-
getData:
|
|
361
|
-
recalculateHeight:
|
|
362
|
-
generatePdf:
|
|
363
|
-
generateCsv:
|
|
364
|
-
generateImage:
|
|
365
|
-
toggleTable:
|
|
366
|
-
toggleSort:
|
|
367
|
-
toggleTooltip:
|
|
368
|
-
toggleAnnotator:
|
|
369
|
-
}), (
|
|
370
|
-
class:
|
|
353
|
+
return Je({
|
|
354
|
+
getData: gt,
|
|
355
|
+
recalculateHeight: le,
|
|
356
|
+
generatePdf: Pe,
|
|
357
|
+
generateCsv: De,
|
|
358
|
+
generateImage: Se,
|
|
359
|
+
toggleTable: Ee,
|
|
360
|
+
toggleSort: Ue,
|
|
361
|
+
toggleTooltip: Xe,
|
|
362
|
+
toggleAnnotator: he
|
|
363
|
+
}), (l, a) => (u(), i("div", {
|
|
364
|
+
class: R(`vue-ui-vertical-bar ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
371
365
|
ref_key: "verticalBarChart",
|
|
372
|
-
ref:
|
|
366
|
+
ref: Y,
|
|
373
367
|
id: `vue-ui-vertical-bar_${C.value}`,
|
|
374
368
|
style: c(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
375
|
-
onMouseenter:
|
|
376
|
-
onMouseleave:
|
|
369
|
+
onMouseenter: a[5] || (a[5] = () => s(we)(!0)),
|
|
370
|
+
onMouseleave: a[6] || (a[6] = () => s(we)(!1))
|
|
377
371
|
}, [
|
|
378
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
372
|
+
e.value.userOptions.buttons.annotator ? (u(), D(s(tt), {
|
|
379
373
|
key: 0,
|
|
380
|
-
svgRef:
|
|
374
|
+
svgRef: s(Ce),
|
|
381
375
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
382
376
|
color: e.value.style.chart.color,
|
|
383
|
-
active:
|
|
384
|
-
onClose:
|
|
377
|
+
active: oe.value,
|
|
378
|
+
onClose: he
|
|
385
379
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : p("", !0),
|
|
386
|
-
|
|
380
|
+
dt.value ? (u(), i("div", {
|
|
387
381
|
key: 1,
|
|
388
382
|
ref_key: "noTitle",
|
|
389
|
-
ref:
|
|
383
|
+
ref: _e,
|
|
390
384
|
class: "vue-data-ui-no-title-space",
|
|
391
385
|
style: "height:36px; width: 100%;background:transparent"
|
|
392
386
|
}, null, 512)) : p("", !0),
|
|
393
|
-
e.value.style.chart.title.text ? (u(),
|
|
387
|
+
e.value.style.chart.title.text ? (u(), i("div", {
|
|
394
388
|
key: 2,
|
|
395
389
|
ref_key: "chartTitle",
|
|
396
|
-
ref:
|
|
390
|
+
ref: me,
|
|
397
391
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
398
392
|
}, [
|
|
399
|
-
(u(),
|
|
400
|
-
key: `title_${
|
|
393
|
+
(u(), D(Ht, {
|
|
394
|
+
key: `title_${$e.value}`,
|
|
401
395
|
config: {
|
|
402
396
|
title: {
|
|
403
397
|
cy: "vertical-bar-div-title",
|
|
@@ -410,14 +404,14 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
410
404
|
}
|
|
411
405
|
}, null, 8, ["config"]))
|
|
412
406
|
], 512)) : p("", !0),
|
|
413
|
-
e.value.userOptions.show &&
|
|
407
|
+
e.value.userOptions.show && ee.value && (s(xe) || s(de)) ? (u(), D(s(ot), {
|
|
414
408
|
ref_key: "details",
|
|
415
|
-
ref:
|
|
416
|
-
key: `user_options_${
|
|
409
|
+
ref: st,
|
|
410
|
+
key: `user_options_${be.value}`,
|
|
417
411
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
418
412
|
color: e.value.style.chart.color,
|
|
419
|
-
isImaging:
|
|
420
|
-
isPrinting:
|
|
413
|
+
isImaging: s(Ne),
|
|
414
|
+
isPrinting: s(Le),
|
|
421
415
|
uid: C.value,
|
|
422
416
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
423
417
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -426,129 +420,129 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
426
420
|
hasTable: e.value.userOptions.buttons.table,
|
|
427
421
|
hasSort: e.value.userOptions.buttons.sort,
|
|
428
422
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
429
|
-
isFullscreen:
|
|
423
|
+
isFullscreen: H.value,
|
|
430
424
|
isTooltip: $.value.showTooltip,
|
|
431
425
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
432
|
-
chartElement:
|
|
426
|
+
chartElement: Y.value,
|
|
433
427
|
position: e.value.userOptions.position,
|
|
434
428
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
435
|
-
isAnnotation:
|
|
436
|
-
onToggleFullscreen:
|
|
437
|
-
onGeneratePdf:
|
|
438
|
-
onGenerateCsv:
|
|
439
|
-
onGenerateImage:
|
|
440
|
-
onToggleTable:
|
|
441
|
-
onToggleSort:
|
|
442
|
-
onToggleTooltip:
|
|
443
|
-
onToggleAnnotator:
|
|
429
|
+
isAnnotation: oe.value,
|
|
430
|
+
onToggleFullscreen: bt,
|
|
431
|
+
onGeneratePdf: s(Pe),
|
|
432
|
+
onGenerateCsv: De,
|
|
433
|
+
onGenerateImage: s(Se),
|
|
434
|
+
onToggleTable: Ee,
|
|
435
|
+
onToggleSort: Ue,
|
|
436
|
+
onToggleTooltip: Xe,
|
|
437
|
+
onToggleAnnotator: he,
|
|
444
438
|
style: c({
|
|
445
|
-
visibility:
|
|
439
|
+
visibility: s(xe) ? s(de) ? "visible" : "hidden" : "visible"
|
|
446
440
|
})
|
|
447
|
-
},
|
|
448
|
-
|
|
441
|
+
}, pe({ _: 2 }, [
|
|
442
|
+
l.$slots.menuIcon ? {
|
|
449
443
|
name: "menuIcon",
|
|
450
|
-
fn:
|
|
451
|
-
b(
|
|
444
|
+
fn: k(({ isOpen: t, color: o }) => [
|
|
445
|
+
b(l.$slots, "menuIcon", W(G({ isOpen: t, color: o })), void 0, !0)
|
|
452
446
|
]),
|
|
453
447
|
key: "0"
|
|
454
448
|
} : void 0,
|
|
455
|
-
|
|
449
|
+
l.$slots.optionTooltip ? {
|
|
456
450
|
name: "optionTooltip",
|
|
457
|
-
fn:
|
|
458
|
-
b(
|
|
451
|
+
fn: k(() => [
|
|
452
|
+
b(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
459
453
|
]),
|
|
460
454
|
key: "1"
|
|
461
455
|
} : void 0,
|
|
462
|
-
|
|
456
|
+
l.$slots.optionPdf ? {
|
|
463
457
|
name: "optionPdf",
|
|
464
|
-
fn:
|
|
465
|
-
b(
|
|
458
|
+
fn: k(() => [
|
|
459
|
+
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
466
460
|
]),
|
|
467
461
|
key: "2"
|
|
468
462
|
} : void 0,
|
|
469
|
-
|
|
463
|
+
l.$slots.optionCsv ? {
|
|
470
464
|
name: "optionCsv",
|
|
471
|
-
fn:
|
|
472
|
-
b(
|
|
465
|
+
fn: k(() => [
|
|
466
|
+
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
473
467
|
]),
|
|
474
468
|
key: "3"
|
|
475
469
|
} : void 0,
|
|
476
|
-
|
|
470
|
+
l.$slots.optionImg ? {
|
|
477
471
|
name: "optionImg",
|
|
478
|
-
fn:
|
|
479
|
-
b(
|
|
472
|
+
fn: k(() => [
|
|
473
|
+
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
480
474
|
]),
|
|
481
475
|
key: "4"
|
|
482
476
|
} : void 0,
|
|
483
|
-
|
|
477
|
+
l.$slots.optionTable ? {
|
|
484
478
|
name: "optionTable",
|
|
485
|
-
fn:
|
|
486
|
-
b(
|
|
479
|
+
fn: k(() => [
|
|
480
|
+
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
487
481
|
]),
|
|
488
482
|
key: "5"
|
|
489
483
|
} : void 0,
|
|
490
|
-
|
|
484
|
+
l.$slots.optionLabels ? {
|
|
491
485
|
name: "optionLabels",
|
|
492
|
-
fn:
|
|
493
|
-
b(
|
|
486
|
+
fn: k(() => [
|
|
487
|
+
b(l.$slots, "optionLabels", {}, void 0, !0)
|
|
494
488
|
]),
|
|
495
489
|
key: "6"
|
|
496
490
|
} : void 0,
|
|
497
|
-
|
|
491
|
+
l.$slots.optionSort ? {
|
|
498
492
|
name: "optionSort",
|
|
499
|
-
fn:
|
|
500
|
-
b(
|
|
493
|
+
fn: k(() => [
|
|
494
|
+
b(l.$slots, "optionSort", {}, void 0, !0)
|
|
501
495
|
]),
|
|
502
496
|
key: "7"
|
|
503
497
|
} : void 0,
|
|
504
|
-
|
|
498
|
+
l.$slots.optionFullscreen ? {
|
|
505
499
|
name: "optionFullscreen",
|
|
506
|
-
fn:
|
|
507
|
-
b(
|
|
500
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
501
|
+
b(l.$slots, "optionFullscreen", W(G({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
508
502
|
]),
|
|
509
503
|
key: "8"
|
|
510
504
|
} : void 0,
|
|
511
|
-
|
|
505
|
+
l.$slots.optionAnnotator ? {
|
|
512
506
|
name: "optionAnnotator",
|
|
513
|
-
fn:
|
|
514
|
-
b(
|
|
507
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
508
|
+
b(l.$slots, "optionAnnotator", W(G({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
515
509
|
]),
|
|
516
510
|
key: "9"
|
|
517
511
|
} : void 0
|
|
518
512
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
519
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(),
|
|
513
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
|
|
520
514
|
key: 4,
|
|
521
515
|
ref_key: "chartLegend",
|
|
522
|
-
ref:
|
|
516
|
+
ref: re
|
|
523
517
|
}, [
|
|
524
|
-
(u(),
|
|
525
|
-
key: `legend_top_${
|
|
526
|
-
legendSet:
|
|
527
|
-
config:
|
|
528
|
-
onClickMarker:
|
|
529
|
-
},
|
|
530
|
-
item:
|
|
518
|
+
(u(), D(Ye, {
|
|
519
|
+
key: `legend_top_${ie.value}`,
|
|
520
|
+
legendSet: F.value,
|
|
521
|
+
config: ze.value,
|
|
522
|
+
onClickMarker: a[0] || (a[0] = ({ legend: t }) => K(t.id))
|
|
523
|
+
}, pe({
|
|
524
|
+
item: k(({ legend: t, index: o }) => [
|
|
531
525
|
n("div", {
|
|
532
|
-
onClick: (
|
|
533
|
-
style: c(`opacity:${
|
|
534
|
-
}, h(t.name) + ": " + h(
|
|
526
|
+
onClick: (_) => K(t.id),
|
|
527
|
+
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
528
|
+
}, h(t.name) + ": " + h(s(ne)(
|
|
535
529
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
536
530
|
t.value,
|
|
537
|
-
|
|
531
|
+
s(U)({
|
|
538
532
|
p: e.value.style.chart.legend.prefix,
|
|
539
533
|
v: t.value,
|
|
540
534
|
s: e.value.style.chart.legend.suffix,
|
|
541
535
|
r: e.value.style.chart.legend.roundingValue
|
|
542
536
|
}),
|
|
543
537
|
{ datapoint: t, seriesIndex: o }
|
|
544
|
-
)), 13,
|
|
538
|
+
)), 13, jt)
|
|
545
539
|
]),
|
|
546
540
|
_: 2
|
|
547
541
|
}, [
|
|
548
|
-
|
|
542
|
+
l.$slots.pattern ? {
|
|
549
543
|
name: "legend-pattern",
|
|
550
|
-
fn:
|
|
551
|
-
|
|
544
|
+
fn: k(({ legend: t, index: o }) => [
|
|
545
|
+
Q(s(fe), {
|
|
552
546
|
shape: t.shape,
|
|
553
547
|
radius: 30,
|
|
554
548
|
stroke: "none",
|
|
@@ -560,29 +554,29 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
560
554
|
} : void 0
|
|
561
555
|
]), 1032, ["legendSet", "config"]))
|
|
562
556
|
], 512)) : p("", !0),
|
|
563
|
-
|
|
557
|
+
ee.value ? (u(), i("svg", {
|
|
564
558
|
key: 5,
|
|
565
559
|
ref_key: "svgRef",
|
|
566
|
-
ref:
|
|
567
|
-
xmlns:
|
|
568
|
-
class:
|
|
569
|
-
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${
|
|
560
|
+
ref: Ce,
|
|
561
|
+
xmlns: s(It),
|
|
562
|
+
class: R({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
563
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${r.value.fullHeight <= 0 ? 10 : r.value.fullHeight}`,
|
|
570
564
|
style: c(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
571
565
|
}, [
|
|
572
|
-
|
|
573
|
-
|
|
566
|
+
Q(s(et)),
|
|
567
|
+
l.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
574
568
|
key: 0,
|
|
575
569
|
x: 0,
|
|
576
570
|
y: 0,
|
|
577
571
|
width: y.value.width <= 0 ? 10 : y.value.width,
|
|
578
|
-
height:
|
|
572
|
+
height: r.value.fullHeight <= 0 ? 10 : r.value.fullHeight,
|
|
579
573
|
style: {
|
|
580
574
|
pointerEvents: "none"
|
|
581
575
|
}
|
|
582
576
|
}, [
|
|
583
|
-
b(
|
|
584
|
-
], 8,
|
|
585
|
-
(u(!0),
|
|
577
|
+
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
578
|
+
], 8, Yt)) : p("", !0),
|
|
579
|
+
(u(!0), i(j, null, q(z.value, (t, o) => (u(), i("linearGradient", {
|
|
586
580
|
x1: "0%",
|
|
587
581
|
y1: "0%",
|
|
588
582
|
x2: "100%",
|
|
@@ -592,125 +586,125 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
592
586
|
n("stop", {
|
|
593
587
|
offset: "0%",
|
|
594
588
|
"stop-color": t.color
|
|
595
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, Jt),
|
|
596
590
|
n("stop", {
|
|
597
591
|
offset: "100%",
|
|
598
|
-
"stop-color":
|
|
599
|
-
}, null, 8,
|
|
600
|
-
], 8,
|
|
601
|
-
|
|
602
|
-
(u(!0),
|
|
603
|
-
b(
|
|
592
|
+
"stop-color": s(ge)(s(Ot)(t.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
|
|
593
|
+
}, null, 8, Qt)
|
|
594
|
+
], 8, Kt))), 256)),
|
|
595
|
+
l.$slots.pattern ? (u(), i("g", Zt, [
|
|
596
|
+
(u(!0), i(j, null, q(z.value, (t) => (u(), i("defs", null, [
|
|
597
|
+
b(l.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${C.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
604
598
|
]))), 256))
|
|
605
599
|
])) : p("", !0),
|
|
606
|
-
(u(!0),
|
|
600
|
+
(u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
|
|
607
601
|
n("rect", {
|
|
608
|
-
x:
|
|
609
|
-
y:
|
|
610
|
-
width:
|
|
602
|
+
x: s(N)(A.value ? r.value.left + r.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : r.value.left),
|
|
603
|
+
y: r.value.top + (g.value + v.value) * o,
|
|
604
|
+
width: s(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
|
|
611
605
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
612
606
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
613
607
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
614
|
-
class:
|
|
615
|
-
}, null, 10,
|
|
608
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
609
|
+
}, null, 10, el)
|
|
616
610
|
]))), 256)),
|
|
617
|
-
(u(!0),
|
|
611
|
+
(u(!0), i(j, null, q(z.value, (t, o) => (u(), i("g", null, [
|
|
618
612
|
n("rect", {
|
|
619
|
-
x:
|
|
620
|
-
y:
|
|
621
|
-
width:
|
|
613
|
+
x: s(N)(A.value ? r.value.left + r.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : r.value.left),
|
|
614
|
+
y: r.value.top + (g.value + v.value) * o,
|
|
615
|
+
width: s(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
|
|
622
616
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
623
|
-
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` :
|
|
617
|
+
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${C.value}_${o})` : s(ge)(t.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
624
618
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
625
619
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
626
620
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
627
|
-
class:
|
|
628
|
-
}, null, 10,
|
|
629
|
-
|
|
621
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
622
|
+
}, null, 10, tl),
|
|
623
|
+
l.$slots.pattern ? (u(), i("rect", {
|
|
630
624
|
key: 0,
|
|
631
|
-
x:
|
|
632
|
-
y:
|
|
633
|
-
width:
|
|
625
|
+
x: s(N)(A.value ? r.value.left + r.value.width / 2 - (t.sign === 1 ? 0 : w(t.value) <= 0 ? 1e-4 : w(t.value)) : r.value.left),
|
|
626
|
+
y: r.value.top + (g.value + v.value) * o,
|
|
627
|
+
width: s(N)(w(t.value) <= 0 ? 1e-4 : w(t.value)),
|
|
634
628
|
height: v.value <= 0 ? 1e-4 : v.value,
|
|
635
629
|
fill: `url(#pattern_${C.value}_${t.absoluteIndex})`,
|
|
636
630
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
637
631
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
638
632
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
639
|
-
class:
|
|
640
|
-
}, null, 10,
|
|
641
|
-
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !==
|
|
633
|
+
class: R({ animated: e.value.useCssAnimation })
|
|
634
|
+
}, null, 10, ll)) : p("", !0),
|
|
635
|
+
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== z.value.length - 1 ? (u(), i("line", {
|
|
642
636
|
key: 1,
|
|
643
637
|
x1: 0,
|
|
644
|
-
x2:
|
|
645
|
-
y1: v.value + g.value / 2 +
|
|
646
|
-
y2: v.value + g.value / 2 +
|
|
638
|
+
x2: r.value.left,
|
|
639
|
+
y1: v.value + g.value / 2 + r.value.top + (g.value + v.value) * o,
|
|
640
|
+
y2: v.value + g.value / 2 + r.value.top + (g.value + v.value) * o,
|
|
647
641
|
stroke: e.value.style.chart.layout.separators.color,
|
|
648
642
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
649
643
|
"stroke-linecap": "round"
|
|
650
|
-
}, null, 8,
|
|
651
|
-
|
|
644
|
+
}, null, 8, al)) : p("", !0),
|
|
645
|
+
A.value && e.value.style.chart.layout.separators.show ? (u(), i("line", {
|
|
652
646
|
key: 2,
|
|
653
|
-
x1:
|
|
654
|
-
x2:
|
|
655
|
-
y1:
|
|
656
|
-
y2:
|
|
647
|
+
x1: r.value.left + r.value.width / 2,
|
|
648
|
+
x2: r.value.left + r.value.width / 2,
|
|
649
|
+
y1: r.value.top,
|
|
650
|
+
y2: r.value.bottom,
|
|
657
651
|
stroke: e.value.style.chart.layout.separators.color,
|
|
658
652
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
659
653
|
"stroke-linecap": "round"
|
|
660
|
-
}, null, 8,
|
|
654
|
+
}, null, 8, ol)) : p("", !0),
|
|
661
655
|
n("text", {
|
|
662
|
-
x:
|
|
663
|
-
y:
|
|
664
|
-
"text-anchor": !
|
|
656
|
+
x: A.value ? r.value.left + r.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) : yt(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
657
|
+
y: r.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
658
|
+
"text-anchor": !A.value || t.sign === -1 ? "start" : "end",
|
|
665
659
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
666
660
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
667
661
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
668
|
-
}, h(
|
|
669
|
-
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(),
|
|
662
|
+
}, h(Re(t.value, t, o, t.sign)), 9, nl),
|
|
663
|
+
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), i("text", {
|
|
670
664
|
key: 3,
|
|
671
665
|
"text-anchor": "end",
|
|
672
|
-
x:
|
|
673
|
-
y:
|
|
666
|
+
x: r.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
667
|
+
y: r.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
674
668
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
675
669
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
676
670
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
677
|
-
}, h(t.name), 9,
|
|
678
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(),
|
|
671
|
+
}, h(t.name), 9, ul)) : p("", !0),
|
|
672
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
679
673
|
key: 4,
|
|
680
674
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
681
|
-
y:
|
|
675
|
+
y: J(t, o).y,
|
|
682
676
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
683
677
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
684
678
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
685
679
|
"text-anchor": "start"
|
|
686
|
-
}, h(
|
|
687
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(),
|
|
680
|
+
}, h(J(t, o).name), 9, sl)) : p("", !0),
|
|
681
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), i("text", {
|
|
688
682
|
key: 5,
|
|
689
683
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
690
|
-
y:
|
|
684
|
+
y: J(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
691
685
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
692
686
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
693
687
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
694
688
|
"text-anchor": "start"
|
|
695
|
-
}, h(
|
|
689
|
+
}, h(Re(J(t, o).value), J(t, o), o, t.parentSign || t.sign), 9, rl)) : p("", !0),
|
|
696
690
|
n("rect", {
|
|
697
691
|
x: 0,
|
|
698
|
-
y:
|
|
692
|
+
y: r.value.top + (g.value + v.value) * o - g.value / 2,
|
|
699
693
|
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
700
694
|
height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
|
|
701
|
-
fill:
|
|
702
|
-
onMouseenter: (
|
|
703
|
-
onMouseleave:
|
|
704
|
-
|
|
695
|
+
fill: ve.value === t.id ? s(ge)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
696
|
+
onMouseenter: (_) => ft(t, o),
|
|
697
|
+
onMouseleave: a[1] || (a[1] = (_) => {
|
|
698
|
+
rt.value = null, ue.value = !1, ve.value = null;
|
|
705
699
|
})
|
|
706
|
-
}, null, 40,
|
|
700
|
+
}, null, 40, il)
|
|
707
701
|
]))), 256)),
|
|
708
|
-
b(
|
|
709
|
-
], 14,
|
|
710
|
-
|
|
711
|
-
b(
|
|
702
|
+
b(l.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
703
|
+
], 14, qt)) : p("", !0),
|
|
704
|
+
l.$slots.watermark ? (u(), i("div", dl, [
|
|
705
|
+
b(l.$slots, "watermark", W(G({ isPrinting: s(Le) || s(Ne) })), void 0, !0)
|
|
712
706
|
])) : p("", !0),
|
|
713
|
-
|
|
707
|
+
ee.value ? p("", !0) : (u(), D(s(lt), {
|
|
714
708
|
key: 7,
|
|
715
709
|
config: {
|
|
716
710
|
type: "verticalBar",
|
|
@@ -725,39 +719,39 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
725
719
|
}
|
|
726
720
|
}
|
|
727
721
|
}, null, 8, ["config"])),
|
|
728
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(),
|
|
722
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), i("div", {
|
|
729
723
|
key: 8,
|
|
730
724
|
ref_key: "chartLegend",
|
|
731
|
-
ref:
|
|
725
|
+
ref: re
|
|
732
726
|
}, [
|
|
733
|
-
(u(),
|
|
734
|
-
key: `legend_bottom_${
|
|
735
|
-
legendSet:
|
|
736
|
-
config:
|
|
737
|
-
onClickMarker:
|
|
738
|
-
},
|
|
739
|
-
item:
|
|
727
|
+
(u(), D(Ye, {
|
|
728
|
+
key: `legend_bottom_${ie.value}`,
|
|
729
|
+
legendSet: F.value,
|
|
730
|
+
config: ze.value,
|
|
731
|
+
onClickMarker: a[2] || (a[2] = ({ legend: t }) => K(t.id))
|
|
732
|
+
}, pe({
|
|
733
|
+
item: k(({ legend: t, index: o }) => [
|
|
740
734
|
n("div", {
|
|
741
|
-
onClick: (
|
|
742
|
-
style: c(`opacity:${
|
|
743
|
-
}, h(t.name) + ": " + h(
|
|
735
|
+
onClick: (_) => K(t.id),
|
|
736
|
+
style: c(`opacity:${P.value.includes(t.id) ? 0.5 : 1}`)
|
|
737
|
+
}, h(t.name) + ": " + h(s(ne)(
|
|
744
738
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
745
739
|
t.value,
|
|
746
|
-
|
|
740
|
+
s(U)({
|
|
747
741
|
p: e.value.style.chart.legend.prefix,
|
|
748
742
|
v: t.value,
|
|
749
743
|
s: e.value.style.chart.legend.suffix,
|
|
750
744
|
r: e.value.style.chart.legend.roundingValue
|
|
751
745
|
}),
|
|
752
746
|
{ datapoint: t, seriesIndex: o }
|
|
753
|
-
)), 13,
|
|
747
|
+
)), 13, vl)
|
|
754
748
|
]),
|
|
755
749
|
_: 2
|
|
756
750
|
}, [
|
|
757
|
-
|
|
751
|
+
l.$slots.pattern ? {
|
|
758
752
|
name: "legend-pattern",
|
|
759
|
-
fn:
|
|
760
|
-
|
|
753
|
+
fn: k(({ legend: t, index: o }) => [
|
|
754
|
+
Q(s(fe), {
|
|
761
755
|
shape: t.shape,
|
|
762
756
|
radius: 30,
|
|
763
757
|
stroke: "none",
|
|
@@ -769,17 +763,17 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
769
763
|
} : void 0
|
|
770
764
|
]), 1032, ["legendSet", "config"]))
|
|
771
765
|
], 512)) : p("", !0),
|
|
772
|
-
b(
|
|
773
|
-
|
|
766
|
+
b(l.$slots, "legend", { legend: F.value }, void 0, !0),
|
|
767
|
+
l.$slots.source ? (u(), i("div", {
|
|
774
768
|
key: 9,
|
|
775
769
|
ref_key: "source",
|
|
776
|
-
ref:
|
|
770
|
+
ref: ke,
|
|
777
771
|
dir: "auto"
|
|
778
772
|
}, [
|
|
779
|
-
b(
|
|
773
|
+
b(l.$slots, "source", {}, void 0, !0)
|
|
780
774
|
], 512)) : p("", !0),
|
|
781
|
-
|
|
782
|
-
show: $.value.showTooltip &&
|
|
775
|
+
Q(s(at), {
|
|
776
|
+
show: $.value.showTooltip && ue.value && P.value.length < T.dataset.length,
|
|
783
777
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
784
778
|
color: e.value.style.chart.tooltip.color,
|
|
785
779
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -789,20 +783,20 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
789
783
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
790
784
|
position: e.value.style.chart.tooltip.position,
|
|
791
785
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
792
|
-
parent:
|
|
793
|
-
content:
|
|
794
|
-
isFullscreen:
|
|
786
|
+
parent: Y.value,
|
|
787
|
+
content: se.value,
|
|
788
|
+
isFullscreen: H.value,
|
|
795
789
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
796
790
|
}, {
|
|
797
|
-
"tooltip-before":
|
|
798
|
-
b(
|
|
791
|
+
"tooltip-before": k(() => [
|
|
792
|
+
b(l.$slots, "tooltip-before", W(G({ ...ce.value })), void 0, !0)
|
|
799
793
|
]),
|
|
800
|
-
"tooltip-after":
|
|
801
|
-
b(
|
|
794
|
+
"tooltip-after": k(() => [
|
|
795
|
+
b(l.$slots, "tooltip-after", W(G({ ...ce.value })), void 0, !0)
|
|
802
796
|
]),
|
|
803
797
|
_: 3
|
|
804
798
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
805
|
-
|
|
799
|
+
ee.value ? (u(), D(Xt, {
|
|
806
800
|
key: 10,
|
|
807
801
|
hideDetails: "",
|
|
808
802
|
config: {
|
|
@@ -818,21 +812,21 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
818
812
|
}
|
|
819
813
|
}
|
|
820
814
|
}, {
|
|
821
|
-
content:
|
|
815
|
+
content: k(() => [
|
|
822
816
|
n("div", {
|
|
823
817
|
ref_key: "tableContainer",
|
|
824
|
-
ref:
|
|
818
|
+
ref: Ie,
|
|
825
819
|
class: "vue-ui-vertical-bar-table atom-data-table"
|
|
826
820
|
}, [
|
|
827
|
-
n("div",
|
|
821
|
+
n("div", cl, [
|
|
828
822
|
n("div", {
|
|
829
823
|
role: "button",
|
|
830
824
|
tabindex: "0",
|
|
831
825
|
style: c(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
832
|
-
onClick:
|
|
833
|
-
onKeypress:
|
|
826
|
+
onClick: a[3] || (a[3] = (t) => $.value.showTable = !1),
|
|
827
|
+
onKeypress: a[4] || (a[4] = Ct((t) => $.value.showTable = !1, ["enter"]))
|
|
834
828
|
}, [
|
|
835
|
-
|
|
829
|
+
Q(s(Ze), {
|
|
836
830
|
name: "close",
|
|
837
831
|
stroke: e.value.table.th.color,
|
|
838
832
|
"stroke-width": 2
|
|
@@ -840,25 +834,25 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
840
834
|
], 36),
|
|
841
835
|
n("div", {
|
|
842
836
|
style: { width: "100%", "container-type": "inline-size" },
|
|
843
|
-
class:
|
|
837
|
+
class: R({ "vue-ui-responsive": Oe.value })
|
|
844
838
|
}, [
|
|
845
|
-
n("table",
|
|
839
|
+
n("table", hl, [
|
|
846
840
|
n("caption", {
|
|
847
841
|
style: c({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
848
842
|
class: "vue-ui-data-table__caption"
|
|
849
843
|
}, [
|
|
850
|
-
|
|
851
|
-
e.value.style.chart.title.subtitle.text ? (u(),
|
|
844
|
+
Tt(h(e.value.style.chart.title.text) + " ", 1),
|
|
845
|
+
e.value.style.chart.title.subtitle.text ? (u(), i("span", pl, h(e.value.style.chart.title.subtitle.text), 1)) : p("", !0)
|
|
852
846
|
], 4),
|
|
853
847
|
n("thead", null, [
|
|
854
848
|
n("tr", {
|
|
855
849
|
role: "row",
|
|
856
850
|
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
857
851
|
}, [
|
|
858
|
-
(u(!0),
|
|
852
|
+
(u(!0), i(j, null, q(L.value.head, (t) => (u(), i("th", {
|
|
859
853
|
style: c(`outline:${e.value.table.th.outline}`)
|
|
860
854
|
}, [
|
|
861
|
-
n("div",
|
|
855
|
+
n("div", yl, h(t), 1)
|
|
862
856
|
], 4))), 256))
|
|
863
857
|
], 4),
|
|
864
858
|
n("tr", null, [
|
|
@@ -867,7 +861,7 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
867
861
|
}, null, 4),
|
|
868
862
|
n("th", {
|
|
869
863
|
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
870
|
-
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(
|
|
864
|
+
}, "∑ " + h(e.value.table.td.prefix) + h(isNaN(S.value) ? "" : S.value.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 5),
|
|
871
865
|
n("th", {
|
|
872
866
|
style: c(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
873
867
|
}, "100%", 4),
|
|
@@ -886,8 +880,8 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
886
880
|
])
|
|
887
881
|
]),
|
|
888
882
|
n("tbody", null, [
|
|
889
|
-
(u(!0),
|
|
890
|
-
class:
|
|
883
|
+
(u(!0), i(j, null, q(L.value.body, (t, o) => (u(), i("tr", {
|
|
884
|
+
class: R({ "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 }),
|
|
891
885
|
style: c(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
892
886
|
}, [
|
|
893
887
|
n("td", {
|
|
@@ -895,56 +889,56 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
895
889
|
style: c(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
896
890
|
"data-cell": L.value.head[0] ?? ""
|
|
897
891
|
}, [
|
|
898
|
-
n("div",
|
|
899
|
-
t.color ? (u(),
|
|
892
|
+
n("div", fl, [
|
|
893
|
+
t.color ? (u(), i("span", {
|
|
900
894
|
key: 0,
|
|
901
895
|
style: c(`color:${t.color};margin-right:3px`)
|
|
902
896
|
}, "⬤", 4)) : p("", !0),
|
|
903
897
|
n("span", null, h(t.parentName), 1)
|
|
904
898
|
])
|
|
905
|
-
], 12,
|
|
899
|
+
], 12, gl),
|
|
906
900
|
n("td", {
|
|
907
901
|
class: "vue-ui-data-table__tbody__td",
|
|
908
902
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
909
903
|
"data-cell": L.value.head[1] ?? ""
|
|
910
904
|
}, [
|
|
911
|
-
n("div",
|
|
912
|
-
], 12,
|
|
905
|
+
n("div", ml, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
906
|
+
], 12, bl),
|
|
913
907
|
n("td", {
|
|
914
908
|
class: "vue-ui-data-table__tbody__td",
|
|
915
909
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
916
910
|
"data-cell": L.value.head[2] ?? ""
|
|
917
911
|
}, [
|
|
918
|
-
n("div",
|
|
919
|
-
], 12,
|
|
912
|
+
n("div", _l, h(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
913
|
+
], 12, kl),
|
|
920
914
|
n("td", {
|
|
921
915
|
class: "vue-ui-data-table__tbody__td",
|
|
922
916
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
923
917
|
"data-cell": L.value.head[3] ?? ""
|
|
924
918
|
}, [
|
|
925
|
-
n("div",
|
|
926
|
-
], 12,
|
|
919
|
+
n("div", wl, h(t.childName), 1)
|
|
920
|
+
], 12, $l),
|
|
927
921
|
n("td", {
|
|
928
922
|
class: "vue-ui-data-table__tbody__td",
|
|
929
923
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
930
924
|
"data-cell": L.value.head[4] ?? ""
|
|
931
925
|
}, [
|
|
932
|
-
n("div",
|
|
933
|
-
], 12,
|
|
926
|
+
n("div", Cl, h(e.value.table.td.prefix) + h(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + h(e.value.table.td.suffix), 1)
|
|
927
|
+
], 12, xl),
|
|
934
928
|
n("td", {
|
|
935
929
|
class: "vue-ui-data-table__tbody__td",
|
|
936
930
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
937
931
|
"data-cell": L.value.head[5] ?? ""
|
|
938
932
|
}, [
|
|
939
|
-
n("div",
|
|
940
|
-
], 12,
|
|
933
|
+
n("div", Ll, h(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
934
|
+
], 12, Tl),
|
|
941
935
|
n("td", {
|
|
942
936
|
class: "vue-ui-data-table__tbody__td",
|
|
943
937
|
style: c(`outline:${e.value.table.td.outline}`),
|
|
944
938
|
"data-cell": L.value.head[6] ?? ""
|
|
945
939
|
}, [
|
|
946
|
-
n("div",
|
|
947
|
-
], 12,
|
|
940
|
+
n("div", Pl, h(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
941
|
+
], 12, Nl)
|
|
948
942
|
], 6))), 256))
|
|
949
943
|
])
|
|
950
944
|
])
|
|
@@ -954,9 +948,9 @@ const Et = ["id"], Ht = ["onClick"], Wt = ["xmlns", "viewBox"], Gt = ["width", "
|
|
|
954
948
|
]),
|
|
955
949
|
_: 1
|
|
956
950
|
}, 8, ["config"])) : p("", !0)
|
|
957
|
-
], 46,
|
|
951
|
+
], 46, Gt));
|
|
958
952
|
}
|
|
959
|
-
},
|
|
953
|
+
}, Ul = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-ad12bd0d"]]);
|
|
960
954
|
export {
|
|
961
|
-
|
|
955
|
+
Ul as default
|
|
962
956
|
};
|