vue-data-ui 3.0.22 → 3.1.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-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/Legend-2-dC7DVb.js +72 -0
- package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-Y5T9UxMO.js +0 -133
- package/dist/Legend-DkU3at-b.js +0 -72
- package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
- package/dist/vue-ui-chord-0wf798ls.js +0 -1049
- package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
- package/dist/vue-ui-flow-K7UBguES.js +0 -852
- package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
- package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
- package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
- package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
- package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
- package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
- package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
- package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
- package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
- package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
- package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as B, useSlots as St, computed as h, ref as i, toRefs as Pt, watch as K, shallowRef as Ye, onMounted as Lt, onBeforeUnmount as Ot, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as ae, normalizeClass as Je, createBlock as F, createCommentVNode as m, createElementVNode as x, createVNode as oe, createSlots as be, withCtx as y, renderSlot as g, normalizeProps as j, guardReactiveProps as q, Fragment as $, renderList as z, mergeProps as me, toDisplayString as M, Teleport as Bt, resolveDynamicComponent as Ft, createTextVNode as Ke, nextTick as zt } from "vue";
|
|
2
|
+
import { u as Nt, c as Dt, t as Vt, a as Mt, p as R, b as Rt, o as Qe, f as we, g as Et, d as Ut, k as Q, i as L, X as Wt, s as Gt, x as jt, F as qt, e as Ht, v as Xt, w as Yt, L as Jt, y as Kt, z as Qt } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as Zt, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as al } from "./usePrinter-Bnl1YeUU.js";
|
|
6
|
+
import { u as Ze } from "./useNestedProp-BPEHGiYX.js";
|
|
7
|
+
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import sl from "./img-JOqdlnUs.js";
|
|
10
|
+
import { _ as nl } from "./Shape-Dj2Hl33H.js";
|
|
11
|
+
import rl from "./Title-Dq2_Z9kR.js";
|
|
12
|
+
import il from "./Legend-2-dC7DVb.js";
|
|
13
|
+
import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["stop-color"], yl = ["stop-color"], gl = ["id"], bl = ["x", "y", "height", "width"], ml = ["height", "width"], wl = { key: 0 }, kl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], xl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Cl = { key: 1 }, $l = ["rx", "x", "y", "height", "width", "fill", "filter"], Il = ["textContent", "x", "y", "font-size", "fill", "filter"], Tl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], _l = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Al = ["id"], Sl = ["onClick"], Pl = ["innerHTML"], Ll = {
|
|
18
18
|
__name: "vue-ui-waffle",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,14 +31,14 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
setup(et, { expose: tt, emit: lt }) {
|
|
35
|
+
const at = B(() => import("./Tooltip-Y219DXZO.js")), ot = B(() => import("./BaseIcon-DHtro8us.js")), ut = B(() => import("./DataTable-DJjA2_wf.js")), st = B(() => import("./vue-ui-accordion-Bf_LHFFX.js")), nt = B(() => import("./UserOptions-BuGfCdAY.js")), rt = B(() => import("./PenAndPaper-B7QEDgx4.js")), it = B(() => import("./PackageVersion-DU12WH3O.js")), vt = B(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_waffle: ct } = Nt(), w = et, dt = St(), ue = h(() => !!w.dataset && w.dataset.length), b = i(Dt()), ht = i(null), se = i(!1), ne = i(""), E = i(null), ke = i(0), I = i(null), xe = i(null), Ce = i(null), $e = i(null), Ie = i(null), Te = i(0), _e = i(0), Ae = i(0), Se = i(!1), H = i(null), e = i(ve()), { loading: Pe, FINAL_DATASET: Z, manualLoading: re } = tl({
|
|
36
|
+
...Pt(w),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
|
-
prepareConfig:
|
|
38
|
+
prepareConfig: ve,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
|
|
41
|
+
p.value = ce();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -58,7 +58,7 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
58
58
|
color: "#CACACA"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
skeletonConfig:
|
|
61
|
+
skeletonConfig: Vt({
|
|
62
62
|
defaultConfig: e.value,
|
|
63
63
|
userConfig: {
|
|
64
64
|
useCustomCells: !1,
|
|
@@ -84,151 +84,151 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
})
|
|
87
|
-
}), { userOptionsVisible:
|
|
88
|
-
function
|
|
89
|
-
const t =
|
|
87
|
+
}), { userOptionsVisible: ie, setUserOptionsVisibility: Le, keepUserOptionState: Oe } = ol({ config: e.value }), { svgRef: Be } = ul({ config: e.value.style.chart.title });
|
|
88
|
+
function ve() {
|
|
89
|
+
const t = Ze({
|
|
90
90
|
userConfig: w.config,
|
|
91
|
-
defaultConfig:
|
|
91
|
+
defaultConfig: ct
|
|
92
92
|
});
|
|
93
93
|
return t.theme ? {
|
|
94
|
-
...
|
|
95
|
-
userConfig:
|
|
94
|
+
...Ze({
|
|
95
|
+
userConfig: Rt.vue_ui_waffle[t.theme] || w.config,
|
|
96
96
|
defaultConfig: t
|
|
97
97
|
}),
|
|
98
|
-
customPalette:
|
|
98
|
+
customPalette: Mt[t.theme] || R
|
|
99
99
|
} : t;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
K(() => w.config, (t) => {
|
|
102
|
+
Pe.value || (e.value = ve()), ie.value = !e.value.userOptions.showOnChartHover, ze(), Te.value += 1, _e.value += 1, Ae.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
103
103
|
}, { deep: !0 });
|
|
104
|
-
const O =
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
104
|
+
const O = Ye(null), U = Ye(null), Fe = h(() => !!e.value.debug);
|
|
105
|
+
function ze() {
|
|
106
|
+
if (Qe(w.dataset) ? (we({
|
|
107
107
|
componentName: "VueUiWaffle",
|
|
108
108
|
type: "dataset",
|
|
109
|
-
debug:
|
|
110
|
-
}),
|
|
111
|
-
|
|
109
|
+
debug: Fe.value
|
|
110
|
+
}), ue.value = !1, re.value = !0) : w.dataset.forEach((t, a) => {
|
|
111
|
+
Et({
|
|
112
112
|
datasetObject: t,
|
|
113
113
|
requiredAttributes: ["name", "values"]
|
|
114
114
|
}).forEach((l) => {
|
|
115
|
-
|
|
115
|
+
we({
|
|
116
116
|
componentName: "VueUiWaffle",
|
|
117
117
|
type: "datasetSerieAttribute",
|
|
118
118
|
property: l,
|
|
119
119
|
index: a,
|
|
120
|
-
debug:
|
|
120
|
+
debug: Fe.value
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
}),
|
|
124
|
-
const t =
|
|
125
|
-
const { width: a, height: l } =
|
|
126
|
-
chart:
|
|
127
|
-
title: e.value.style.chart.title.text ?
|
|
128
|
-
legend: e.value.style.chart.legend.show ?
|
|
129
|
-
source:
|
|
130
|
-
noTitle:
|
|
123
|
+
}), Qe(w.dataset) || (re.value = e.value.loading), e.value.responsive) {
|
|
124
|
+
const t = Zt(() => {
|
|
125
|
+
const { width: a, height: l } = el({
|
|
126
|
+
chart: I.value,
|
|
127
|
+
title: e.value.style.chart.title.text ? xe.value : null,
|
|
128
|
+
legend: e.value.style.chart.legend.show ? Ce.value : null,
|
|
129
|
+
source: $e.value,
|
|
130
|
+
noTitle: Ie.value
|
|
131
131
|
});
|
|
132
132
|
requestAnimationFrame(() => {
|
|
133
|
-
|
|
133
|
+
N.value.width = a, N.value.height = l, T.value.width = a, T.value.height = l;
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
|
-
O.value && (
|
|
136
|
+
O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect()), O.value = new ResizeObserver(t), U.value = I.value.parentNode, O.value.observe(U.value);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}),
|
|
142
|
-
O.value && (
|
|
139
|
+
Lt(() => {
|
|
140
|
+
Se.value = !0, ze();
|
|
141
|
+
}), Ot(() => {
|
|
142
|
+
O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect());
|
|
143
143
|
});
|
|
144
|
-
const { isPrinting:
|
|
145
|
-
elementId: `vue-ui-waffle_${
|
|
144
|
+
const { isPrinting: Ne, isImaging: De, generatePdf: Ve, generateImage: Me } = al({
|
|
145
|
+
elementId: `vue-ui-waffle_${b.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
147
147
|
options: e.value.userOptions.print
|
|
148
|
-
}),
|
|
148
|
+
}), pt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = h(() => Ut(e.value.customPalette)), k = i({
|
|
149
149
|
showTable: e.value.table.show,
|
|
150
150
|
showTooltip: e.value.style.chart.tooltip.show
|
|
151
151
|
});
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
K(e, () => {
|
|
153
|
+
k.value = {
|
|
154
154
|
showTable: e.value.table.show,
|
|
155
155
|
showTooltip: e.value.style.chart.tooltip.show
|
|
156
156
|
};
|
|
157
157
|
}, { immediate: !0 });
|
|
158
|
-
const
|
|
158
|
+
const N = i({
|
|
159
159
|
height: 512,
|
|
160
160
|
width: 512
|
|
161
|
-
}),
|
|
161
|
+
}), T = i({
|
|
162
162
|
top: 0,
|
|
163
163
|
left: 0,
|
|
164
164
|
height: 512,
|
|
165
165
|
width: 512
|
|
166
|
-
}), _ =
|
|
167
|
-
function
|
|
168
|
-
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((
|
|
169
|
-
let d = a - u.reduce((
|
|
166
|
+
}), _ = h(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = h(() => (T.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), ft = h(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ee = h(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
|
|
167
|
+
function Ue(t) {
|
|
168
|
+
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((C, ge) => C + ge, 0), o = t.map((C) => C / l * a), u = o.map(Math.floor), n = o.map((C) => C % 1);
|
|
169
|
+
let d = a - u.reduce((C, ge) => C + ge, 0);
|
|
170
170
|
for (; d > 0; ) {
|
|
171
|
-
let
|
|
172
|
-
u[
|
|
171
|
+
let C = n.indexOf(Math.max(...n));
|
|
172
|
+
u[C] += 1, n[C] = 0, d -= 1;
|
|
173
173
|
}
|
|
174
174
|
return u;
|
|
175
175
|
}
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
return
|
|
176
|
+
const X = i(!1);
|
|
177
|
+
function ce() {
|
|
178
|
+
return X.value = Z.value.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, Z.value.map((t, a) => ({
|
|
179
179
|
...t,
|
|
180
|
-
color:
|
|
180
|
+
color: Ht(t.color) || Re.value[a] || R[a] || R[a % R.length],
|
|
181
181
|
uid: `serie_${a}`,
|
|
182
182
|
absoluteIndex: a
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
Array.isArray(t) && t.length > 0 && (
|
|
188
|
-
}, { immediate: !0 }),
|
|
189
|
-
|
|
185
|
+
const de = h(() => ce()), p = i(de.value);
|
|
186
|
+
K(() => w.dataset, (t) => {
|
|
187
|
+
Array.isArray(t) && t.length > 0 && (re.value = !1);
|
|
188
|
+
}, { immediate: !0 }), K(() => w.dataset, (t) => {
|
|
189
|
+
p.value = ce();
|
|
190
190
|
}, { deep: !0 });
|
|
191
|
-
const
|
|
192
|
-
const t =
|
|
193
|
-
return
|
|
194
|
-
}),
|
|
195
|
-
const t =
|
|
196
|
-
return
|
|
197
|
-
}),
|
|
198
|
-
[null, void 0].includes(t.values) &&
|
|
191
|
+
const yt = h(() => {
|
|
192
|
+
const t = p.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
|
|
193
|
+
return Ue(t);
|
|
194
|
+
}), gt = h(() => {
|
|
195
|
+
const t = p.value.map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u));
|
|
196
|
+
return Ue(t);
|
|
197
|
+
}), Y = h(() => (Z.value.forEach((t, a) => {
|
|
198
|
+
[null, void 0].includes(t.values) && we({
|
|
199
199
|
componentName: "VueUiWaffle",
|
|
200
200
|
type: "datasetSerieAttribute",
|
|
201
201
|
property: "values (number[])",
|
|
202
202
|
index: a
|
|
203
203
|
});
|
|
204
|
-
}),
|
|
204
|
+
}), p.value.filter((t, a) => !f.value.includes(t.uid)).map((t, a) => ({
|
|
205
205
|
absoluteIndex: t.absoluteIndex,
|
|
206
206
|
uid: t.uid,
|
|
207
207
|
name: t.name,
|
|
208
208
|
color: t.color,
|
|
209
209
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
210
210
|
absoluteValues: t.values || [],
|
|
211
|
-
proportion:
|
|
212
|
-
})))),
|
|
211
|
+
proportion: yt.value[a]
|
|
212
|
+
})))), bt = h(() => p.value.map((t, a) => ({
|
|
213
213
|
absoluteIndex: t.absoluteIndex,
|
|
214
214
|
uid: t.uid,
|
|
215
215
|
name: t.name,
|
|
216
216
|
color: t.color,
|
|
217
217
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
218
218
|
absoluteValues: t.values || [],
|
|
219
|
-
proportion:
|
|
219
|
+
proportion: gt.value[a]
|
|
220
220
|
})));
|
|
221
|
-
function
|
|
222
|
-
return
|
|
221
|
+
function mt() {
|
|
222
|
+
return bt.value.map((t) => ({
|
|
223
223
|
name: t.name,
|
|
224
224
|
color: t.color,
|
|
225
225
|
value: t.value,
|
|
226
226
|
proportion: t.proportion
|
|
227
227
|
}));
|
|
228
228
|
}
|
|
229
|
-
const
|
|
229
|
+
const wt = h(() => {
|
|
230
230
|
let t = 0;
|
|
231
|
-
return
|
|
231
|
+
return Y.value.map((a, l) => {
|
|
232
232
|
const o = t, u = o + a.proportion, n = [];
|
|
233
233
|
for (let d = Math.floor(o); d < Math.floor(u); d += 1)
|
|
234
234
|
n.push(d);
|
|
@@ -238,7 +238,7 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
238
238
|
rects: n
|
|
239
239
|
};
|
|
240
240
|
});
|
|
241
|
-
}), r =
|
|
241
|
+
}), r = h(() => wt.value.flatMap((t, a) => t.rects.map((l, o) => ({
|
|
242
242
|
isFirst: o === 0,
|
|
243
243
|
isLongEnough: l.length > 2,
|
|
244
244
|
name: t.name,
|
|
@@ -251,7 +251,7 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
251
251
|
}))).map((t, a) => ({
|
|
252
252
|
...t,
|
|
253
253
|
isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
|
|
254
|
-
}))),
|
|
254
|
+
}))), W = h(() => {
|
|
255
255
|
const t = [];
|
|
256
256
|
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
257
257
|
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
@@ -259,45 +259,45 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
259
259
|
isStartOfLine: l === 0,
|
|
260
260
|
position: e.value.style.chart.layout.grid.vertical ? a : l,
|
|
261
261
|
x: (e.value.style.chart.layout.grid.vertical ? a : l) * (_.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
262
|
-
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (
|
|
262
|
+
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
|
|
263
263
|
});
|
|
264
264
|
return t;
|
|
265
|
-
}), f = i([]),
|
|
266
|
-
function
|
|
267
|
-
if (
|
|
265
|
+
}), f = i([]), D = i(!1), We = i(null), Ge = i(null);
|
|
266
|
+
function je(t) {
|
|
267
|
+
if (X.value) return;
|
|
268
268
|
if (!e.value.useAnimation) {
|
|
269
|
-
f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length <
|
|
269
|
+
f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < G.value.length - 1 && G.value.length > 1 && f.value.push(t);
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
|
-
const a =
|
|
272
|
+
const a = de.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = p.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
273
273
|
let o = l;
|
|
274
274
|
if (!(l === 0 && a === 0)) {
|
|
275
275
|
if (f.value.includes(t)) {
|
|
276
276
|
let n = function() {
|
|
277
|
-
o > u ? (cancelAnimationFrame(
|
|
277
|
+
o > u ? (cancelAnimationFrame(We.value), p.value = p.value.map((d, C) => d.uid === t ? {
|
|
278
278
|
...d,
|
|
279
279
|
values: [u]
|
|
280
|
-
} : d),
|
|
280
|
+
} : d), D.value = !1) : (D.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
|
|
281
281
|
...d,
|
|
282
282
|
values: [o]
|
|
283
|
-
} : d),
|
|
283
|
+
} : d), We.value = requestAnimationFrame(n));
|
|
284
284
|
};
|
|
285
285
|
f.value = f.value.filter((d) => d !== t);
|
|
286
286
|
const u = a;
|
|
287
287
|
n();
|
|
288
|
-
} else if (f.value.length <
|
|
288
|
+
} else if (f.value.length < G.value.length - 1 && G.value.length > 1) {
|
|
289
289
|
let u = function() {
|
|
290
|
-
o < l / 100 ? (cancelAnimationFrame(
|
|
290
|
+
o < l / 100 ? (cancelAnimationFrame(Ge.value), f.value.push(t), p.value = p.value.map((n, d) => n.uid === t ? {
|
|
291
291
|
...n,
|
|
292
292
|
values: [0]
|
|
293
|
-
} : n),
|
|
293
|
+
} : n), D.value = !1) : (D.value = !0, o /= 1.15, p.value = p.value.map((n) => n.uid === t ? {
|
|
294
294
|
...n,
|
|
295
295
|
values: [o]
|
|
296
|
-
} : n),
|
|
296
|
+
} : n), Ge.value = requestAnimationFrame(u));
|
|
297
297
|
};
|
|
298
298
|
u();
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
It("selectLegend", Y.value.map((u) => ({
|
|
301
301
|
name: u.name,
|
|
302
302
|
color: u.color,
|
|
303
303
|
value: u.value,
|
|
@@ -305,62 +305,62 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
305
305
|
})));
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const G = h(() => p.value.map((t, a) => ({
|
|
309
309
|
name: t.name,
|
|
310
|
-
color: t.color ||
|
|
310
|
+
color: t.color || Re[a] || R[a] || R[a % R.length],
|
|
311
311
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
312
312
|
uid: t.uid,
|
|
313
313
|
shape: "square"
|
|
314
314
|
})).map((t) => ({
|
|
315
315
|
...t,
|
|
316
|
-
proportion: t.value /
|
|
316
|
+
proportion: t.value / p.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
|
|
317
317
|
opacity: f.value.includes(t.uid) ? 0.5 : 1,
|
|
318
|
-
segregate: () =>
|
|
318
|
+
segregate: () => je(t.uid),
|
|
319
319
|
isSegregated: f.value.includes(t.uid)
|
|
320
|
-
}))),
|
|
320
|
+
}))), kt = h(() => ({
|
|
321
321
|
cy: "waffle-div-legend",
|
|
322
322
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
323
323
|
color: e.value.style.chart.legend.color,
|
|
324
324
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
325
325
|
paddingBottom: 12,
|
|
326
326
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
327
|
-
})),
|
|
328
|
-
function
|
|
327
|
+
})), S = h(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), he = i(null), pe = i(null);
|
|
328
|
+
function xt(t) {
|
|
329
329
|
const a = r.value[t];
|
|
330
330
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.serieIndex });
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ct(t) {
|
|
333
333
|
const a = r.value[t];
|
|
334
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }),
|
|
334
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), pe.value = null, se.value = !1, E.value = null;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function $t(t) {
|
|
337
337
|
if (f.value.length === w.dataset.length) return;
|
|
338
338
|
const a = r.value[t];
|
|
339
|
-
|
|
339
|
+
he.value = {
|
|
340
340
|
datapoint: a,
|
|
341
341
|
seriesIndex: a.absoluteIndex,
|
|
342
|
-
series:
|
|
342
|
+
series: p.value,
|
|
343
343
|
config: e.value
|
|
344
|
-
}, e.value.events.datapointEnter &&
|
|
344
|
+
}, e.value.events.datapointEnter && pe.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), pe.value = a.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
|
|
345
345
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
346
|
-
if (
|
|
346
|
+
if (Kt(l) && Qt(() => l({
|
|
347
347
|
seriesIndex: r.value[t].absoluteIndex,
|
|
348
348
|
datapoint: a,
|
|
349
|
-
series:
|
|
349
|
+
series: p.value,
|
|
350
350
|
config: e.value
|
|
351
351
|
})))
|
|
352
|
-
|
|
352
|
+
ne.value = l({
|
|
353
353
|
seriesIndex: r.value[t].absoluteIndex,
|
|
354
354
|
datapoint: a,
|
|
355
|
-
series:
|
|
355
|
+
series: p.value,
|
|
356
356
|
config: e.value
|
|
357
357
|
});
|
|
358
358
|
else {
|
|
359
359
|
let o = "";
|
|
360
|
-
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${
|
|
360
|
+
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${dt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
|
|
361
361
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
362
362
|
a.value,
|
|
363
|
-
|
|
363
|
+
L({
|
|
364
364
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
365
365
|
v: a.value,
|
|
366
366
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -369,86 +369,86 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
369
369
|
{
|
|
370
370
|
datapoint: a,
|
|
371
371
|
seriesIndex: r.value[t].absoluteIndex,
|
|
372
|
-
series:
|
|
372
|
+
series: p.value
|
|
373
373
|
}
|
|
374
374
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
375
|
-
const u =
|
|
376
|
-
v:
|
|
375
|
+
const u = L({
|
|
376
|
+
v: X.value ? 1 / Z.value.length * 100 : a.value / S.value * 100,
|
|
377
377
|
s: "%",
|
|
378
378
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
379
379
|
});
|
|
380
380
|
e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
|
|
381
381
|
}
|
|
382
|
-
|
|
382
|
+
ne.value = o;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
const
|
|
386
|
-
const t =
|
|
385
|
+
const It = lt, P = h(() => {
|
|
386
|
+
const t = Y.value.map((l) => ({
|
|
387
387
|
name: l.name,
|
|
388
388
|
color: l.color
|
|
389
|
-
})), a =
|
|
389
|
+
})), a = Y.value.map((l) => l.value);
|
|
390
390
|
return { head: t, body: a };
|
|
391
391
|
});
|
|
392
|
-
function
|
|
393
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
392
|
+
function ee(t) {
|
|
393
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !
|
|
395
|
+
function Tt(t, a) {
|
|
396
|
+
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !D.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
const l =
|
|
398
|
+
function _t(t, a = null) {
|
|
399
|
+
const l = Q(
|
|
400
400
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
401
401
|
r.value[t].value,
|
|
402
|
-
|
|
402
|
+
L({
|
|
403
403
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
404
404
|
v: r.value[t].value,
|
|
405
405
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
406
406
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
407
407
|
}),
|
|
408
408
|
{ datapoint: r.value[t], position: a }
|
|
409
|
-
), o =
|
|
409
|
+
), o = L({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Jt({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
|
|
410
410
|
let d = "";
|
|
411
411
|
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = l), `${n}${d}`;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
415
|
-
const a =
|
|
413
|
+
function fe(t = null) {
|
|
414
|
+
zt(() => {
|
|
415
|
+
const a = P.value.head.map((u, n) => [[
|
|
416
416
|
u.name
|
|
417
|
-
], [
|
|
418
|
-
t ? t(o) :
|
|
417
|
+
], [P.value.body[n]], [isNaN(P.value.body[n] / S.value) ? "-" : P.value.body[n] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Xt(l);
|
|
418
|
+
t ? t(o) : Yt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
|
-
const
|
|
421
|
+
const te = h(() => {
|
|
422
422
|
const t = [
|
|
423
423
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
424
|
-
|
|
424
|
+
Q(
|
|
425
425
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
S.value,
|
|
427
|
+
L({
|
|
428
428
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
429
|
-
v:
|
|
429
|
+
v: S.value,
|
|
430
430
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
431
431
|
r: e.value.table.td.roundingValue
|
|
432
432
|
})
|
|
433
433
|
),
|
|
434
434
|
"100%"
|
|
435
|
-
], a =
|
|
435
|
+
], a = P.value.head.map((u, n) => [
|
|
436
436
|
{
|
|
437
437
|
color: u.color,
|
|
438
438
|
name: u.name
|
|
439
439
|
},
|
|
440
|
-
|
|
440
|
+
Q(
|
|
441
441
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
P.value.body[n],
|
|
443
|
+
L({
|
|
444
444
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
445
|
-
v:
|
|
445
|
+
v: P.value.body[n],
|
|
446
446
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
447
447
|
r: e.value.table.td.roundingValue
|
|
448
448
|
})
|
|
449
449
|
),
|
|
450
|
-
isNaN(
|
|
451
|
-
v:
|
|
450
|
+
isNaN(P.value.body[n] / S.value) ? "-" : L({
|
|
451
|
+
v: P.value.body[n] / S.value * 100,
|
|
452
452
|
s: "%",
|
|
453
453
|
r: e.value.table.td.roundingPercentage
|
|
454
454
|
})
|
|
@@ -476,23 +476,23 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
476
476
|
config: l,
|
|
477
477
|
colNames: o
|
|
478
478
|
};
|
|
479
|
-
}),
|
|
480
|
-
function
|
|
481
|
-
|
|
479
|
+
}), V = i(!1);
|
|
480
|
+
function qe(t) {
|
|
481
|
+
V.value = t, ke.value += 1;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
|
|
483
|
+
function He() {
|
|
484
|
+
k.value.showTable = !k.value.showTable;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
|
|
486
|
+
function Xe() {
|
|
487
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
488
488
|
}
|
|
489
|
-
const
|
|
490
|
-
function
|
|
491
|
-
|
|
489
|
+
const le = i(!1);
|
|
490
|
+
function ye() {
|
|
491
|
+
le.value = !le.value;
|
|
492
492
|
}
|
|
493
|
-
async function
|
|
494
|
-
if (!
|
|
495
|
-
const { width: a, height: l } =
|
|
493
|
+
async function At({ scale: t = 2 } = {}) {
|
|
494
|
+
if (!I.value) return;
|
|
495
|
+
const { width: a, height: l } = I.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await sl({ domElement: I.value, base64: !0, img: !0, scale: t });
|
|
496
496
|
return {
|
|
497
497
|
imageUri: u,
|
|
498
498
|
base64: n,
|
|
@@ -502,48 +502,80 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
502
502
|
aspectRatio: o
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
505
|
+
const J = h(() => {
|
|
506
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = k.value.showTable;
|
|
507
|
+
return {
|
|
508
|
+
component: t ? vt : st,
|
|
509
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
510
|
+
props: t ? {
|
|
511
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
512
|
+
color: e.value.table.th.color,
|
|
513
|
+
headerColor: e.value.table.th.color,
|
|
514
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
515
|
+
isFullscreen: V.value,
|
|
516
|
+
fullscreenParent: I.value,
|
|
517
|
+
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
518
|
+
} : {
|
|
519
|
+
hideDetails: !0,
|
|
520
|
+
config: {
|
|
521
|
+
open: a,
|
|
522
|
+
maxHeight: 1e4,
|
|
523
|
+
body: {
|
|
524
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
525
|
+
color: e.value.style.chart.color
|
|
526
|
+
},
|
|
527
|
+
head: {
|
|
528
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
529
|
+
color: e.value.style.chart.color
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
});
|
|
535
|
+
return K(() => k.value.showTable, (t) => {
|
|
536
|
+
e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
|
|
537
|
+
}), tt({
|
|
538
|
+
getData: mt,
|
|
539
|
+
getImage: At,
|
|
540
|
+
generatePdf: Ve,
|
|
541
|
+
generateCsv: fe,
|
|
542
|
+
generateImage: Me,
|
|
543
|
+
toggleTable: He,
|
|
544
|
+
toggleTooltip: Xe,
|
|
545
|
+
toggleAnnotator: ye,
|
|
546
|
+
toggleFullscreen: qe
|
|
515
547
|
}), (t, a) => (s(), v("div", {
|
|
516
|
-
class:
|
|
548
|
+
class: Je(`vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
517
549
|
ref_key: "waffleChart",
|
|
518
|
-
ref:
|
|
519
|
-
id: `vue-ui-waffle_${
|
|
520
|
-
style:
|
|
521
|
-
onMouseenter: a[
|
|
522
|
-
onMouseleave: a[
|
|
550
|
+
ref: I,
|
|
551
|
+
id: `vue-ui-waffle_${b.value}`,
|
|
552
|
+
style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
553
|
+
onMouseenter: a[4] || (a[4] = () => c(Le)(!0)),
|
|
554
|
+
onMouseleave: a[5] || (a[5] = () => c(Le)(!1))
|
|
523
555
|
}, [
|
|
524
|
-
e.value.userOptions.buttons.annotator ? (s(), F(c(
|
|
556
|
+
e.value.userOptions.buttons.annotator ? (s(), F(c(rt), {
|
|
525
557
|
key: 0,
|
|
526
|
-
svgRef: c(
|
|
558
|
+
svgRef: c(Be),
|
|
527
559
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
528
560
|
color: e.value.style.chart.color,
|
|
529
|
-
active:
|
|
530
|
-
onClose:
|
|
531
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
532
|
-
|
|
561
|
+
active: le.value,
|
|
562
|
+
onClose: ye
|
|
563
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
564
|
+
pt.value ? (s(), v("div", {
|
|
533
565
|
key: 1,
|
|
534
566
|
ref_key: "noTitle",
|
|
535
|
-
ref:
|
|
567
|
+
ref: Ie,
|
|
536
568
|
class: "vue-data-ui-no-title-space",
|
|
537
569
|
style: "height:36px; width: 100%;background:transparent"
|
|
538
|
-
}, null, 512)) :
|
|
570
|
+
}, null, 512)) : m("", !0),
|
|
539
571
|
e.value.style.chart.title.text ? (s(), v("div", {
|
|
540
572
|
key: 2,
|
|
541
573
|
ref_key: "chartTitle",
|
|
542
|
-
ref:
|
|
574
|
+
ref: xe,
|
|
543
575
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
544
576
|
}, [
|
|
545
|
-
(s(), F(
|
|
546
|
-
key: `title_${
|
|
577
|
+
(s(), F(rl, {
|
|
578
|
+
key: `title_${Te.value}`,
|
|
547
579
|
config: {
|
|
548
580
|
title: {
|
|
549
581
|
cy: "waffle-title",
|
|
@@ -555,138 +587,138 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
555
587
|
}
|
|
556
588
|
}
|
|
557
589
|
}, null, 8, ["config"]))
|
|
558
|
-
], 512)) :
|
|
590
|
+
], 512)) : m("", !0),
|
|
559
591
|
x("div", {
|
|
560
|
-
id: `legend-top-${
|
|
561
|
-
}, null, 8,
|
|
562
|
-
e.value.userOptions.show &&
|
|
592
|
+
id: `legend-top-${b.value}`
|
|
593
|
+
}, null, 8, dl),
|
|
594
|
+
e.value.userOptions.show && ue.value && (c(Oe) || c(ie)) ? (s(), F(c(nt), {
|
|
563
595
|
ref_key: "details",
|
|
564
|
-
ref:
|
|
565
|
-
key: `user_options_${
|
|
596
|
+
ref: ht,
|
|
597
|
+
key: `user_options_${ke.value}`,
|
|
566
598
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
567
599
|
color: e.value.style.chart.color,
|
|
568
|
-
isPrinting: c(
|
|
569
|
-
isImaging: c(
|
|
570
|
-
uid:
|
|
600
|
+
isPrinting: c(Ne),
|
|
601
|
+
isImaging: c(De),
|
|
602
|
+
uid: b.value,
|
|
571
603
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
572
604
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
573
605
|
hasImg: e.value.userOptions.buttons.img,
|
|
574
606
|
hasXls: e.value.userOptions.buttons.csv,
|
|
575
607
|
hasTable: e.value.userOptions.buttons.table,
|
|
576
608
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
577
|
-
isFullscreen:
|
|
578
|
-
isTooltip:
|
|
609
|
+
isFullscreen: V.value,
|
|
610
|
+
isTooltip: k.value.showTooltip,
|
|
579
611
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
580
|
-
chartElement:
|
|
612
|
+
chartElement: I.value,
|
|
581
613
|
position: e.value.userOptions.position,
|
|
582
614
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
583
|
-
isAnnotation:
|
|
615
|
+
isAnnotation: le.value,
|
|
584
616
|
callbacks: e.value.userOptions.callbacks,
|
|
585
617
|
printScale: e.value.userOptions.print.scale,
|
|
586
|
-
onToggleFullscreen:
|
|
587
|
-
onGeneratePdf: c(
|
|
588
|
-
onGenerateCsv:
|
|
589
|
-
onGenerateImage: c(
|
|
590
|
-
onToggleTable:
|
|
591
|
-
onToggleTooltip:
|
|
592
|
-
onToggleAnnotator:
|
|
593
|
-
style:
|
|
594
|
-
visibility: c(
|
|
618
|
+
onToggleFullscreen: qe,
|
|
619
|
+
onGeneratePdf: c(Ve),
|
|
620
|
+
onGenerateCsv: fe,
|
|
621
|
+
onGenerateImage: c(Me),
|
|
622
|
+
onToggleTable: He,
|
|
623
|
+
onToggleTooltip: Xe,
|
|
624
|
+
onToggleAnnotator: ye,
|
|
625
|
+
style: ae({
|
|
626
|
+
visibility: c(Oe) ? c(ie) ? "visible" : "hidden" : "visible"
|
|
595
627
|
})
|
|
596
|
-
},
|
|
628
|
+
}, be({ _: 2 }, [
|
|
597
629
|
t.$slots.menuIcon ? {
|
|
598
630
|
name: "menuIcon",
|
|
599
|
-
fn:
|
|
600
|
-
|
|
631
|
+
fn: y(({ isOpen: l, color: o }) => [
|
|
632
|
+
g(t.$slots, "menuIcon", j(q({ isOpen: l, color: o })), void 0, !0)
|
|
601
633
|
]),
|
|
602
634
|
key: "0"
|
|
603
635
|
} : void 0,
|
|
604
636
|
t.$slots.optionTooltip ? {
|
|
605
637
|
name: "optionTooltip",
|
|
606
|
-
fn:
|
|
607
|
-
|
|
638
|
+
fn: y(() => [
|
|
639
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
608
640
|
]),
|
|
609
641
|
key: "1"
|
|
610
642
|
} : void 0,
|
|
611
643
|
t.$slots.optionPdf ? {
|
|
612
644
|
name: "optionPdf",
|
|
613
|
-
fn:
|
|
614
|
-
|
|
645
|
+
fn: y(() => [
|
|
646
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
615
647
|
]),
|
|
616
648
|
key: "2"
|
|
617
649
|
} : void 0,
|
|
618
650
|
t.$slots.optionCsv ? {
|
|
619
651
|
name: "optionCsv",
|
|
620
|
-
fn:
|
|
621
|
-
|
|
652
|
+
fn: y(() => [
|
|
653
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
622
654
|
]),
|
|
623
655
|
key: "3"
|
|
624
656
|
} : void 0,
|
|
625
657
|
t.$slots.optionImg ? {
|
|
626
658
|
name: "optionImg",
|
|
627
|
-
fn:
|
|
628
|
-
|
|
659
|
+
fn: y(() => [
|
|
660
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
629
661
|
]),
|
|
630
662
|
key: "4"
|
|
631
663
|
} : void 0,
|
|
632
664
|
t.$slots.optionTable ? {
|
|
633
665
|
name: "optionTable",
|
|
634
|
-
fn:
|
|
635
|
-
|
|
666
|
+
fn: y(() => [
|
|
667
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
636
668
|
]),
|
|
637
669
|
key: "5"
|
|
638
670
|
} : void 0,
|
|
639
671
|
t.$slots.optionFullscreen ? {
|
|
640
672
|
name: "optionFullscreen",
|
|
641
|
-
fn:
|
|
642
|
-
|
|
673
|
+
fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
674
|
+
g(t.$slots, "optionFullscreen", j(q({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
643
675
|
]),
|
|
644
676
|
key: "6"
|
|
645
677
|
} : void 0,
|
|
646
678
|
t.$slots.optionAnnotator ? {
|
|
647
679
|
name: "optionAnnotator",
|
|
648
|
-
fn:
|
|
649
|
-
|
|
680
|
+
fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
681
|
+
g(t.$slots, "optionAnnotator", j(q({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
650
682
|
]),
|
|
651
683
|
key: "7"
|
|
652
684
|
} : void 0
|
|
653
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
685
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
654
686
|
(s(), v("svg", {
|
|
655
687
|
ref_key: "svgRef",
|
|
656
|
-
ref:
|
|
657
|
-
xmlns: c(
|
|
658
|
-
class:
|
|
659
|
-
viewBox: `0 0 ${
|
|
660
|
-
style:
|
|
688
|
+
ref: Be,
|
|
689
|
+
xmlns: c(Wt),
|
|
690
|
+
class: Je({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
691
|
+
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
692
|
+
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
661
693
|
}, [
|
|
662
|
-
|
|
694
|
+
oe(c(it)),
|
|
663
695
|
x("defs", null, [
|
|
664
|
-
(s(!0), v($, null,
|
|
696
|
+
(s(!0), v($, null, z(r.value, (l, o) => (s(), v("radialGradient", {
|
|
665
697
|
cx: "50%",
|
|
666
698
|
cy: "50%",
|
|
667
699
|
r: "50%",
|
|
668
700
|
fx: "50%",
|
|
669
701
|
fy: "50%",
|
|
670
|
-
id: `gradient_${
|
|
702
|
+
id: `gradient_${b.value}_${o}`
|
|
671
703
|
}, [
|
|
672
704
|
x("stop", {
|
|
673
705
|
offset: "0%",
|
|
674
|
-
"stop-color": c(
|
|
675
|
-
}, null, 8,
|
|
706
|
+
"stop-color": c(Gt)(c(jt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
707
|
+
}, null, 8, fl),
|
|
676
708
|
x("stop", {
|
|
677
709
|
offset: "100%",
|
|
678
710
|
"stop-color": l.color
|
|
679
|
-
}, null, 8,
|
|
680
|
-
], 8,
|
|
711
|
+
}, null, 8, yl)
|
|
712
|
+
], 8, pl))), 256))
|
|
681
713
|
]),
|
|
682
714
|
x("defs", null, [
|
|
683
715
|
x("filter", {
|
|
684
|
-
id: `blur_${
|
|
716
|
+
id: `blur_${b.value}`,
|
|
685
717
|
x: "-50%",
|
|
686
718
|
y: "-50%",
|
|
687
719
|
width: "200%",
|
|
688
720
|
height: "200%"
|
|
689
|
-
}, [...a[
|
|
721
|
+
}, [...a[6] || (a[6] = [
|
|
690
722
|
x("feGaussianBlur", {
|
|
691
723
|
in: "SourceGraphic",
|
|
692
724
|
stdDeviation: 2
|
|
@@ -695,159 +727,159 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
695
727
|
type: "saturate",
|
|
696
728
|
values: "0"
|
|
697
729
|
}, null, -1)
|
|
698
|
-
])], 8,
|
|
730
|
+
])], 8, gl)
|
|
699
731
|
]),
|
|
700
|
-
e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 },
|
|
732
|
+
e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, z(W.value, (l, o) => (s(), v("foreignObject", {
|
|
701
733
|
x: l.x,
|
|
702
734
|
y: l.y,
|
|
703
|
-
height:
|
|
735
|
+
height: A.value <= 0 ? 1e-4 : A.value,
|
|
704
736
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
705
737
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
706
738
|
}, [
|
|
707
|
-
|
|
708
|
-
], 8,
|
|
739
|
+
g(t.$slots, "cell", me({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(E.value) ? !0 : r.value[o].serieIndex === E.value }), void 0, !0)
|
|
740
|
+
], 8, bl))), 256)) : m("", !0),
|
|
709
741
|
!r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
|
|
710
742
|
key: 1,
|
|
711
743
|
x: 12,
|
|
712
744
|
y: 12,
|
|
713
|
-
height:
|
|
714
|
-
width:
|
|
745
|
+
height: T.value.height - 24,
|
|
746
|
+
width: T.value.width - 24,
|
|
715
747
|
rx: 3,
|
|
716
748
|
fill: "none",
|
|
717
749
|
stroke: "black"
|
|
718
|
-
}, null, 8,
|
|
719
|
-
t.$slots.pattern ? (s(), v("g",
|
|
720
|
-
(s(!0), v($, null,
|
|
721
|
-
|
|
750
|
+
}, null, 8, ml)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
|
|
751
|
+
t.$slots.pattern ? (s(), v("g", wl, [
|
|
752
|
+
(s(!0), v($, null, z(de.value, (l) => (s(), v("defs", null, [
|
|
753
|
+
g(t.$slots, "pattern", me({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${b.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
722
754
|
]))), 256))
|
|
723
|
-
])) :
|
|
724
|
-
(s(!0), v($, null,
|
|
755
|
+
])) : m("", !0),
|
|
756
|
+
(s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
|
|
725
757
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
726
758
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
727
759
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
728
|
-
height:
|
|
760
|
+
height: A.value <= 0 ? 1e-4 : A.value,
|
|
729
761
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
730
762
|
fill: "white",
|
|
731
763
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
732
764
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
733
|
-
filter:
|
|
734
|
-
}, null, 8,
|
|
735
|
-
(s(!0), v($, null,
|
|
765
|
+
filter: ee(r.value[o].serieIndex)
|
|
766
|
+
}, null, 8, kl))), 256)),
|
|
767
|
+
(s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
|
|
736
768
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
737
769
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
738
770
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
739
|
-
height:
|
|
771
|
+
height: A.value <= 0 ? 1e-4 : A.value,
|
|
740
772
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
741
|
-
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${
|
|
773
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` : r.value[o].color,
|
|
742
774
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
743
775
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
744
|
-
filter:
|
|
745
|
-
}, null, 8,
|
|
746
|
-
t.$slots.pattern ? (s(), v("g",
|
|
747
|
-
(s(!0), v($, null,
|
|
776
|
+
filter: ee(r.value[o].serieIndex)
|
|
777
|
+
}, null, 8, xl))), 256)),
|
|
778
|
+
t.$slots.pattern ? (s(), v("g", Cl, [
|
|
779
|
+
(s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
|
|
748
780
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
749
781
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
750
782
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
751
|
-
height:
|
|
783
|
+
height: A.value <= 0 ? 1e-4 : A.value,
|
|
752
784
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
753
|
-
fill: `url(#pattern_${
|
|
785
|
+
fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
|
|
754
786
|
stroke: "none",
|
|
755
|
-
filter:
|
|
756
|
-
}, null, 8,
|
|
757
|
-
])) :
|
|
758
|
-
], 64)) :
|
|
759
|
-
(s(!0), v($, null,
|
|
760
|
-
|
|
787
|
+
filter: ee(r.value[o].serieIndex)
|
|
788
|
+
}, null, 8, $l))), 256))
|
|
789
|
+
])) : m("", !0)
|
|
790
|
+
], 64)) : m("", !0),
|
|
791
|
+
(s(!0), v($, null, z(W.value, (l, o) => (s(), v($, null, [
|
|
792
|
+
Tt(o, l) ? (s(), v("text", {
|
|
761
793
|
key: `datalabel_${o}`,
|
|
762
|
-
textContent:
|
|
794
|
+
textContent: M(_t(o, l)),
|
|
763
795
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
764
|
-
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
796
|
+
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ee.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
765
797
|
"font-size": e.value.style.chart.layout.labels.captions.fontSize,
|
|
766
|
-
fill: c(
|
|
767
|
-
filter:
|
|
768
|
-
}, null, 8,
|
|
798
|
+
fill: c(qt)(r.value[o].color),
|
|
799
|
+
filter: ee(r.value[o].serieIndex)
|
|
800
|
+
}, null, 8, Il)) : m("", !0)
|
|
769
801
|
], 64))), 256)),
|
|
770
|
-
(s(!0), v($, null,
|
|
802
|
+
(s(!0), v($, null, z(W.value, (l, o) => (s(), v("rect", {
|
|
771
803
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
772
804
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
773
|
-
height:
|
|
774
|
-
width:
|
|
805
|
+
height: Ee.value,
|
|
806
|
+
width: ft.value,
|
|
775
807
|
fill: "transparent",
|
|
776
808
|
stroke: "none",
|
|
777
|
-
onMouseover: (u) =>
|
|
778
|
-
onMouseleave: (u) =>
|
|
779
|
-
onClick: (u) =>
|
|
780
|
-
}, null, 40,
|
|
781
|
-
|
|
782
|
-
], 14,
|
|
783
|
-
t.$slots.watermark ? (s(), v("div",
|
|
784
|
-
|
|
785
|
-
])) :
|
|
809
|
+
onMouseover: (u) => $t(o),
|
|
810
|
+
onMouseleave: (u) => Ct(o),
|
|
811
|
+
onClick: (u) => xt(o)
|
|
812
|
+
}, null, 40, Tl))), 256)),
|
|
813
|
+
g(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
814
|
+
], 14, hl)),
|
|
815
|
+
t.$slots.watermark ? (s(), v("div", _l, [
|
|
816
|
+
g(t.$slots, "watermark", j(q({ isPrinting: c(Ne) || c(De) })), void 0, !0)
|
|
817
|
+
])) : m("", !0),
|
|
786
818
|
x("div", {
|
|
787
|
-
id: `legend-bottom-${
|
|
788
|
-
}, null, 8,
|
|
789
|
-
|
|
819
|
+
id: `legend-bottom-${b.value}`
|
|
820
|
+
}, null, 8, Al),
|
|
821
|
+
Se.value ? (s(), F(Bt, {
|
|
790
822
|
key: 5,
|
|
791
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
823
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
792
824
|
}, [
|
|
793
825
|
x("div", {
|
|
794
826
|
ref_key: "chartLegend",
|
|
795
|
-
ref:
|
|
827
|
+
ref: Ce
|
|
796
828
|
}, [
|
|
797
|
-
e.value.style.chart.legend.show ? (s(), F(
|
|
798
|
-
key: `legend_${
|
|
799
|
-
legendSet:
|
|
800
|
-
config:
|
|
801
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) =>
|
|
802
|
-
},
|
|
803
|
-
item:
|
|
829
|
+
e.value.style.chart.legend.show ? (s(), F(il, {
|
|
830
|
+
key: `legend_${Ae.value}`,
|
|
831
|
+
legendSet: G.value,
|
|
832
|
+
config: kt.value,
|
|
833
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => je(l.uid))
|
|
834
|
+
}, be({
|
|
835
|
+
item: y(({ legend: l }) => [
|
|
804
836
|
x("div", {
|
|
805
837
|
onClick: (o) => l.segregate(),
|
|
806
|
-
style:
|
|
807
|
-
},
|
|
838
|
+
style: ae(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
839
|
+
}, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? c(Q)(
|
|
808
840
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
809
841
|
l.value,
|
|
810
|
-
c(
|
|
842
|
+
c(L)({
|
|
811
843
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
812
844
|
v: l.value,
|
|
813
845
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
814
846
|
r: e.value.style.chart.legend.roundingValue,
|
|
815
|
-
isAnimating:
|
|
847
|
+
isAnimating: D.value
|
|
816
848
|
}),
|
|
817
849
|
{ datapoint: l }
|
|
818
|
-
) : "") + " " +
|
|
850
|
+
) : "") + " " + M(e.value.style.chart.legend.showPercentage ? f.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / S.value) ? "-" : c(L)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: D.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Sl)
|
|
819
851
|
]),
|
|
820
852
|
_: 2
|
|
821
853
|
}, [
|
|
822
854
|
t.$slots.pattern ? {
|
|
823
855
|
name: "legend-pattern",
|
|
824
|
-
fn:
|
|
825
|
-
|
|
856
|
+
fn: y(({ legend: l, index: o }) => [
|
|
857
|
+
oe(nl, {
|
|
826
858
|
shape: l.shape,
|
|
827
859
|
radius: 30,
|
|
828
860
|
stroke: "none",
|
|
829
861
|
plot: { x: 30, y: 30 },
|
|
830
|
-
fill: `url(#pattern_${
|
|
862
|
+
fill: `url(#pattern_${b.value}_${o})`
|
|
831
863
|
}, null, 8, ["shape", "fill"])
|
|
832
864
|
]),
|
|
833
865
|
key: "0"
|
|
834
866
|
} : void 0
|
|
835
|
-
]), 1032, ["legendSet", "config"])) :
|
|
867
|
+
]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
836
868
|
key: 1,
|
|
837
|
-
legend:
|
|
869
|
+
legend: G.value
|
|
838
870
|
}, void 0, !0)
|
|
839
871
|
], 512)
|
|
840
|
-
], 8, ["to"])) :
|
|
872
|
+
], 8, ["to"])) : m("", !0),
|
|
841
873
|
t.$slots.source ? (s(), v("div", {
|
|
842
874
|
key: 6,
|
|
843
875
|
ref_key: "source",
|
|
844
|
-
ref:
|
|
876
|
+
ref: $e,
|
|
845
877
|
dir: "auto"
|
|
846
878
|
}, [
|
|
847
|
-
|
|
848
|
-
], 512)) :
|
|
849
|
-
|
|
850
|
-
show:
|
|
879
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
880
|
+
], 512)) : m("", !0),
|
|
881
|
+
oe(c(at), {
|
|
882
|
+
show: k.value.showTooltip && se.value && f.value.length < w.dataset.length,
|
|
851
883
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
852
884
|
color: e.value.style.chart.tooltip.color,
|
|
853
885
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -856,66 +888,80 @@ const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["s
|
|
|
856
888
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
857
889
|
position: e.value.style.chart.tooltip.position,
|
|
858
890
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
859
|
-
parent:
|
|
860
|
-
content:
|
|
891
|
+
parent: I.value,
|
|
892
|
+
content: ne.value,
|
|
861
893
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
862
894
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
863
|
-
isFullscreen:
|
|
895
|
+
isFullscreen: V.value,
|
|
864
896
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
865
897
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
866
898
|
}, {
|
|
867
|
-
"tooltip-before":
|
|
868
|
-
|
|
899
|
+
"tooltip-before": y(() => [
|
|
900
|
+
g(t.$slots, "tooltip-before", j(q({ ...he.value })), void 0, !0)
|
|
869
901
|
]),
|
|
870
|
-
"tooltip-after":
|
|
871
|
-
|
|
902
|
+
"tooltip-after": y(() => [
|
|
903
|
+
g(t.$slots, "tooltip-after", j(q({ ...he.value })), void 0, !0)
|
|
872
904
|
]),
|
|
873
905
|
_: 3
|
|
874
906
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter"]),
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}, {
|
|
891
|
-
content: m(() => [
|
|
892
|
-
(s(), F(c(et), {
|
|
893
|
-
key: `table_${xe.value}`,
|
|
894
|
-
colNames: Q.value.colNames,
|
|
895
|
-
head: Q.value.head,
|
|
896
|
-
body: Q.value.body,
|
|
897
|
-
config: Q.value.config,
|
|
898
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
899
|
-
onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
|
|
907
|
+
ue.value ? (s(), F(Ft(J.value.component), me({ key: 7 }, J.value.props, {
|
|
908
|
+
ref_key: "tableUnit",
|
|
909
|
+
ref: H,
|
|
910
|
+
onClose: a[3] || (a[3] = (l) => k.value.showTable = !1)
|
|
911
|
+
}), be({
|
|
912
|
+
content: y(() => [
|
|
913
|
+
(s(), F(c(ut), {
|
|
914
|
+
key: `table_${_e.value}`,
|
|
915
|
+
colNames: te.value.colNames,
|
|
916
|
+
head: te.value.head,
|
|
917
|
+
body: te.value.body,
|
|
918
|
+
config: te.value.config,
|
|
919
|
+
title: e.value.table.useDialog ? "" : J.value.title,
|
|
920
|
+
withCloseButton: !e.value.table.useDialog,
|
|
921
|
+
onClose: a[2] || (a[2] = (l) => k.value.showTable = !1)
|
|
900
922
|
}, {
|
|
901
|
-
th:
|
|
923
|
+
th: y(({ th: l }) => [
|
|
902
924
|
x("div", {
|
|
903
925
|
innerHTML: l,
|
|
904
926
|
style: { display: "flex", "align-items": "center" }
|
|
905
|
-
}, null, 8,
|
|
927
|
+
}, null, 8, Pl)
|
|
906
928
|
]),
|
|
907
|
-
td:
|
|
908
|
-
|
|
929
|
+
td: y(({ td: l }) => [
|
|
930
|
+
Ke(M(l.name || l), 1)
|
|
909
931
|
]),
|
|
910
932
|
_: 1
|
|
911
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
933
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
912
934
|
]),
|
|
913
|
-
_:
|
|
914
|
-
},
|
|
915
|
-
|
|
916
|
-
|
|
935
|
+
_: 2
|
|
936
|
+
}, [
|
|
937
|
+
e.value.table.useDialog ? {
|
|
938
|
+
name: "title",
|
|
939
|
+
fn: y(() => [
|
|
940
|
+
Ke(M(J.value.title), 1)
|
|
941
|
+
]),
|
|
942
|
+
key: "0"
|
|
943
|
+
} : void 0,
|
|
944
|
+
e.value.table.useDialog ? {
|
|
945
|
+
name: "actions",
|
|
946
|
+
fn: y(() => [
|
|
947
|
+
x("button", {
|
|
948
|
+
tabindex: "0",
|
|
949
|
+
class: "vue-ui-user-options-button",
|
|
950
|
+
onClick: a[1] || (a[1] = (l) => fe(e.value.userOptions.callbacks.csv))
|
|
951
|
+
}, [
|
|
952
|
+
oe(c(ot), {
|
|
953
|
+
name: "excel",
|
|
954
|
+
stroke: J.value.props.color
|
|
955
|
+
}, null, 8, ["stroke"])
|
|
956
|
+
])
|
|
957
|
+
]),
|
|
958
|
+
key: "1"
|
|
959
|
+
} : void 0
|
|
960
|
+
]), 1040)) : m("", !0),
|
|
961
|
+
c(Pe) ? (s(), F(ll, { key: 8 })) : m("", !0)
|
|
962
|
+
], 46, cl));
|
|
917
963
|
}
|
|
918
|
-
},
|
|
964
|
+
}, jl = /* @__PURE__ */ vl(Ll, [["__scopeId", "data-v-4f453350"]]);
|
|
919
965
|
export {
|
|
920
|
-
|
|
966
|
+
jl as default
|
|
921
967
|
};
|