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