vue-data-ui 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as B, useSlots as
|
|
2
|
-
import { u as Nt, c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as B, useSlots as Pt, computed as h, ref as i, toRefs as Ot, watch as K, shallowRef as Ke, onMounted as Lt, onBeforeUnmount as Bt, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as ae, normalizeClass as Qe, createBlock as F, createCommentVNode as m, createElementVNode as k, createVNode as oe, createSlots as me, withCtx as y, renderSlot as g, normalizeProps as j, guardReactiveProps as q, Fragment as $, renderList as D, mergeProps as we, toDisplayString as M, Teleport as Ft, resolveDynamicComponent as Dt, createTextVNode as Ze, nextTick as zt } from "vue";
|
|
2
|
+
import { u as Nt, c as Vt, t as Mt, a as Rt, p as R, b as Et, o as et, f as ke, g as Ut, d as Wt, k as Q, i as O, X as Gt, s as jt, x as qt, F as Ht, e as Xt, v as Yt, w as Jt, L as Kt, y as Qt, z as Zt } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as el, u as tl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ll, B as al } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as ol } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as tt } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as ul } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import nl from "./img-DvuphHeJ.js";
|
|
10
|
+
import { _ as rl } from "./Shape-Bmpx9GRg.js";
|
|
11
|
+
import il from "./Title-AGmmsSi_.js";
|
|
12
|
+
import vl from "./Legend-DLzeDl3-.js";
|
|
13
|
+
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["stop-color"], gl = ["stop-color"], bl = ["id"], ml = ["x", "y", "height", "width"], wl = ["height", "width"], kl = { key: 0 }, xl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Cl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], $l = { key: 1 }, Il = ["rx", "x", "y", "height", "width", "fill", "filter"], _l = ["textContent", "x", "y", "font-size", "fill", "filter"], Tl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Al = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Sl = ["id"], Pl = ["onClick"], Ol = ["innerHTML"], Ll = {
|
|
18
18
|
__name: "vue-ui-waffle",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,14 +31,14 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
setup(lt, { expose: at, emit: ot }) {
|
|
35
|
+
const ut = B(() => import("./Tooltip-le0yZk_t.js")), st = B(() => import("./BaseIcon-BLg8FaQ2.js")), nt = B(() => import("./DataTable-BRN1-1ob.js")), rt = B(() => import("./vue-ui-accordion-Cv747Pg6.js")), it = B(() => import("./UserOptions-DEFwuQIo.js")), vt = B(() => import("./PenAndPaper-TgGWddgD.js")), ct = B(() => import("./PackageVersion-Jz9FlNXl.js")), dt = B(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_waffle: ht } = Nt(), w = lt, pt = Pt(), ue = h(() => !!w.dataset && w.dataset.length), b = i(Vt()), se = i(!1), ne = i(""), E = i(null), xe = i(0), I = i(null), Ce = i(null), $e = i(null), Ie = i(null), _e = i(null), Te = i(0), Ae = i(0), Se = i(0), Pe = i(!1), H = i(null), re = i(null), e = i(ce()), { loading: Oe, FINAL_DATASET: Z, manualLoading: ie } = ll({
|
|
36
|
+
...Ot(w),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
|
-
prepareConfig:
|
|
38
|
+
prepareConfig: ce,
|
|
39
39
|
callback: () => {
|
|
40
40
|
Promise.resolve().then(async () => {
|
|
41
|
-
p.value =
|
|
41
|
+
p.value = de();
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
skeletonDataset: [
|
|
@@ -58,7 +58,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
58
58
|
color: "#CACACA"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
skeletonConfig:
|
|
61
|
+
skeletonConfig: Mt({
|
|
62
62
|
defaultConfig: e.value,
|
|
63
63
|
userConfig: {
|
|
64
64
|
useCustomCells: !1,
|
|
@@ -84,89 +84,89 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
})
|
|
87
|
-
}), { userOptionsVisible:
|
|
88
|
-
function
|
|
89
|
-
const t =
|
|
87
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: Le, keepUserOptionState: Be } = ul({ config: e.value }), { svgRef: Fe } = sl({ config: e.value.style.chart.title });
|
|
88
|
+
function ce() {
|
|
89
|
+
const t = tt({
|
|
90
90
|
userConfig: w.config,
|
|
91
|
-
defaultConfig:
|
|
91
|
+
defaultConfig: ht
|
|
92
92
|
});
|
|
93
93
|
return t.theme ? {
|
|
94
|
-
...
|
|
95
|
-
userConfig:
|
|
94
|
+
...tt({
|
|
95
|
+
userConfig: Et.vue_ui_waffle[t.theme] || w.config,
|
|
96
96
|
defaultConfig: t
|
|
97
97
|
}),
|
|
98
|
-
customPalette:
|
|
98
|
+
customPalette: Rt[t.theme] || R
|
|
99
99
|
} : t;
|
|
100
100
|
}
|
|
101
101
|
K(() => w.config, (t) => {
|
|
102
|
-
|
|
102
|
+
Oe.value || (e.value = ce()), ve.value = !e.value.userOptions.showOnChartHover, ze(), Te.value += 1, Ae.value += 1, Se.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
103
103
|
}, { deep: !0 });
|
|
104
|
-
const
|
|
104
|
+
const L = Ke(null), U = Ke(null), De = h(() => !!e.value.debug);
|
|
105
105
|
function ze() {
|
|
106
|
-
if (
|
|
106
|
+
if (et(w.dataset) ? (ke({
|
|
107
107
|
componentName: "VueUiWaffle",
|
|
108
108
|
type: "dataset",
|
|
109
|
-
debug:
|
|
110
|
-
}), ue.value = !1,
|
|
111
|
-
|
|
109
|
+
debug: De.value
|
|
110
|
+
}), ue.value = !1, ie.value = !0) : w.dataset.forEach((t, a) => {
|
|
111
|
+
Ut({
|
|
112
112
|
datasetObject: t,
|
|
113
113
|
requiredAttributes: ["name", "values"]
|
|
114
114
|
}).forEach((l) => {
|
|
115
|
-
|
|
115
|
+
ke({
|
|
116
116
|
componentName: "VueUiWaffle",
|
|
117
117
|
type: "datasetSerieAttribute",
|
|
118
118
|
property: l,
|
|
119
119
|
index: a,
|
|
120
|
-
debug:
|
|
120
|
+
debug: De.value
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
}),
|
|
124
|
-
const t =
|
|
125
|
-
const { width: a, height: l } =
|
|
123
|
+
}), et(w.dataset) || (ie.value = e.value.loading), e.value.responsive) {
|
|
124
|
+
const t = el(() => {
|
|
125
|
+
const { width: a, height: l } = tl({
|
|
126
126
|
chart: I.value,
|
|
127
|
-
title: e.value.style.chart.title.text ?
|
|
128
|
-
legend: e.value.style.chart.legend.show ?
|
|
129
|
-
source:
|
|
130
|
-
noTitle:
|
|
127
|
+
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
128
|
+
legend: e.value.style.chart.legend.show ? $e.value : null,
|
|
129
|
+
source: Ie.value,
|
|
130
|
+
noTitle: _e.value
|
|
131
131
|
});
|
|
132
132
|
requestAnimationFrame(() => {
|
|
133
|
-
|
|
133
|
+
z.value.width = a, z.value.height = l, _.value.width = a, _.value.height = l;
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
|
-
|
|
136
|
+
L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect()), L.value = new ResizeObserver(t), U.value = I.value.parentNode, L.value.observe(U.value);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
Lt(() => {
|
|
140
|
-
|
|
141
|
-
}),
|
|
142
|
-
|
|
140
|
+
Pe.value = !0, ze();
|
|
141
|
+
}), Bt(() => {
|
|
142
|
+
L.value && (U.value && L.value.unobserve(U.value), L.value.disconnect());
|
|
143
143
|
});
|
|
144
|
-
const { isPrinting: Ne, isImaging:
|
|
144
|
+
const { isPrinting: Ne, isImaging: Ve, generatePdf: Me, generateImage: Re } = ol({
|
|
145
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
|
+
}), ft = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = h(() => Wt(e.value.customPalette)), x = i({
|
|
149
149
|
showTable: e.value.table.show,
|
|
150
150
|
showTooltip: e.value.style.chart.tooltip.show
|
|
151
151
|
});
|
|
152
152
|
K(e, () => {
|
|
153
|
-
|
|
153
|
+
x.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 z = i({
|
|
159
159
|
height: 512,
|
|
160
160
|
width: 512
|
|
161
|
-
}),
|
|
161
|
+
}), _ = 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((C,
|
|
169
|
-
let d = a - u.reduce((C,
|
|
166
|
+
}), T = h(() => (_.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(() => (_.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), yt = h(() => Math.max(1e-4, _.value.width / e.value.style.chart.layout.grid.size)), Ue = h(() => Math.max(1e-4, _.value.height / e.value.style.chart.layout.grid.size));
|
|
167
|
+
function We(t) {
|
|
168
|
+
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((C, be) => C + be, 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, be) => C + be, 0);
|
|
170
170
|
for (; d > 0; ) {
|
|
171
171
|
let C = n.indexOf(Math.max(...n));
|
|
172
172
|
u[C] += 1, n[C] = 0, d -= 1;
|
|
@@ -174,28 +174,28 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
174
174
|
return u;
|
|
175
175
|
}
|
|
176
176
|
const X = i(!1);
|
|
177
|
-
function
|
|
177
|
+
function de() {
|
|
178
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: Xt(t.color) || Ee.value[a] || R[a] || R[a % R.length],
|
|
181
181
|
uid: `serie_${a}`,
|
|
182
182
|
absoluteIndex: a
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const he = h(() => de()), p = i(he.value);
|
|
186
186
|
K(() => w.dataset, (t) => {
|
|
187
|
-
Array.isArray(t) && t.length > 0 && (
|
|
187
|
+
Array.isArray(t) && t.length > 0 && (ie.value = !1);
|
|
188
188
|
}, { immediate: !0 }), K(() => w.dataset, (t) => {
|
|
189
|
-
p.value =
|
|
189
|
+
p.value = de();
|
|
190
190
|
}, { deep: !0 });
|
|
191
|
-
const
|
|
191
|
+
const gt = h(() => {
|
|
192
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
|
|
194
|
-
}),
|
|
193
|
+
return We(t);
|
|
194
|
+
}), bt = h(() => {
|
|
195
195
|
const t = p.value.map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u));
|
|
196
|
-
return
|
|
196
|
+
return We(t);
|
|
197
197
|
}), Y = h(() => (Z.value.forEach((t, a) => {
|
|
198
|
-
[null, void 0].includes(t.values) &&
|
|
198
|
+
[null, void 0].includes(t.values) && ke({
|
|
199
199
|
componentName: "VueUiWaffle",
|
|
200
200
|
type: "datasetSerieAttribute",
|
|
201
201
|
property: "values (number[])",
|
|
@@ -208,25 +208,25 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
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: gt.value[a]
|
|
212
|
+
})))), mt = 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: bt.value[a]
|
|
220
220
|
})));
|
|
221
|
-
function
|
|
222
|
-
return
|
|
221
|
+
function wt() {
|
|
222
|
+
return mt.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 kt = h(() => {
|
|
230
230
|
let t = 0;
|
|
231
231
|
return Y.value.map((a, l) => {
|
|
232
232
|
const o = t, u = o + a.proportion, n = [];
|
|
@@ -238,7 +238,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
238
238
|
rects: n
|
|
239
239
|
};
|
|
240
240
|
});
|
|
241
|
-
}), r = h(() =>
|
|
241
|
+
}), r = h(() => kt.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,
|
|
@@ -258,46 +258,46 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
258
258
|
t.push({
|
|
259
259
|
isStartOfLine: l === 0,
|
|
260
260
|
position: e.value.style.chart.layout.grid.vertical ? a : l,
|
|
261
|
-
x: (e.value.style.chart.layout.grid.vertical ? a : l) * (
|
|
262
|
-
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) +
|
|
261
|
+
x: (e.value.style.chart.layout.grid.vertical ? a : l) * (T.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
262
|
+
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + _.value.top
|
|
263
263
|
});
|
|
264
264
|
return t;
|
|
265
|
-
}), f = i([]),
|
|
266
|
-
function
|
|
265
|
+
}), f = i([]), N = i(!1), Ge = i(null), je = i(null);
|
|
266
|
+
function qe(t) {
|
|
267
267
|
if (X.value) return;
|
|
268
268
|
if (!e.value.useAnimation) {
|
|
269
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 = he.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(Ge.value), p.value = p.value.map((d, C) => d.uid === t ? {
|
|
278
278
|
...d,
|
|
279
279
|
values: [u]
|
|
280
|
-
} : d),
|
|
280
|
+
} : d), N.value = !1) : (N.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), Ge.value = requestAnimationFrame(n));
|
|
284
284
|
};
|
|
285
285
|
f.value = f.value.filter((d) => d !== t);
|
|
286
286
|
const u = a;
|
|
287
287
|
n();
|
|
288
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(je.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), N.value = !1) : (N.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), je.value = requestAnimationFrame(u));
|
|
297
297
|
};
|
|
298
298
|
u();
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
_t("selectLegend", Y.value.map((u) => ({
|
|
301
301
|
name: u.name,
|
|
302
302
|
color: u.color,
|
|
303
303
|
value: u.value,
|
|
@@ -307,7 +307,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
307
307
|
}
|
|
308
308
|
const G = h(() => p.value.map((t, a) => ({
|
|
309
309
|
name: t.name,
|
|
310
|
-
color: t.color ||
|
|
310
|
+
color: t.color || Ee[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"
|
|
@@ -315,35 +315,35 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
315
315
|
...t,
|
|
316
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: () => qe(t.uid),
|
|
319
319
|
isSegregated: f.value.includes(t.uid)
|
|
320
|
-
}))),
|
|
320
|
+
}))), xt = 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
|
-
})), S = h(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)),
|
|
328
|
-
function
|
|
327
|
+
})), S = h(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), pe = i(null), fe = i(null);
|
|
328
|
+
function Ct(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 $t(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 }), fe.value = null, se.value = !1, E.value = null;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function It(t) {
|
|
337
337
|
if (f.value.length === w.dataset.length) return;
|
|
338
338
|
const a = r.value[t];
|
|
339
|
-
|
|
339
|
+
pe.value = {
|
|
340
340
|
datapoint: a,
|
|
341
341
|
seriesIndex: a.absoluteIndex,
|
|
342
342
|
series: p.value,
|
|
343
343
|
config: e.value
|
|
344
|
-
}, e.value.events.datapointEnter &&
|
|
344
|
+
}, e.value.events.datapointEnter && fe.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), fe.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 (Qt(l) && Zt(() => l({
|
|
347
347
|
seriesIndex: r.value[t].absoluteIndex,
|
|
348
348
|
datapoint: a,
|
|
349
349
|
series: p.value,
|
|
@@ -357,10 +357,10 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
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}" />${pt.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
|
+
O({
|
|
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,
|
|
@@ -372,7 +372,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
372
372
|
series: p.value
|
|
373
373
|
}
|
|
374
374
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
375
|
-
const u =
|
|
375
|
+
const u = O({
|
|
376
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
|
|
@@ -382,7 +382,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
382
382
|
ne.value = o;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const _t = ot, P = h(() => {
|
|
386
386
|
const t = Y.value.map((l) => ({
|
|
387
387
|
name: l.name,
|
|
388
388
|
color: l.color
|
|
@@ -393,29 +393,29 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
393
393
|
return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
|
|
394
394
|
}
|
|
395
395
|
function Tt(t, a) {
|
|
396
|
-
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !
|
|
396
|
+
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !N.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
|
|
398
|
+
function At(t, a = null) {
|
|
399
399
|
const l = Q(
|
|
400
400
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
401
401
|
r.value[t].value,
|
|
402
|
-
|
|
402
|
+
O({
|
|
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 = O({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Kt({ 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
|
|
413
|
+
function ye(t = null) {
|
|
414
414
|
zt(() => {
|
|
415
415
|
const a = P.value.head.map((u, n) => [[
|
|
416
416
|
u.name
|
|
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 =
|
|
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 = Yt(l);
|
|
418
|
+
t ? t(o) : Jt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
const te = h(() => {
|
|
@@ -424,7 +424,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
424
424
|
Q(
|
|
425
425
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
426
426
|
S.value,
|
|
427
|
-
|
|
427
|
+
O({
|
|
428
428
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
429
429
|
v: S.value,
|
|
430
430
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -440,14 +440,14 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
440
440
|
Q(
|
|
441
441
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
442
442
|
P.value.body[n],
|
|
443
|
-
|
|
443
|
+
O({
|
|
444
444
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
445
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(P.value.body[n] / S.value) ? "-" :
|
|
450
|
+
isNaN(P.value.body[n] / S.value) ? "-" : O({
|
|
451
451
|
v: P.value.body[n] / S.value * 100,
|
|
452
452
|
s: "%",
|
|
453
453
|
r: e.value.table.td.roundingPercentage
|
|
@@ -477,22 +477,22 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
477
477
|
colNames: o
|
|
478
478
|
};
|
|
479
479
|
}), V = i(!1);
|
|
480
|
-
function
|
|
481
|
-
V.value = t,
|
|
482
|
-
}
|
|
483
|
-
function He() {
|
|
484
|
-
k.value.showTable = !k.value.showTable;
|
|
480
|
+
function He(t) {
|
|
481
|
+
V.value = t, xe.value += 1;
|
|
485
482
|
}
|
|
486
483
|
function Xe() {
|
|
487
|
-
|
|
484
|
+
x.value.showTable = !x.value.showTable;
|
|
485
|
+
}
|
|
486
|
+
function Ye() {
|
|
487
|
+
x.value.showTooltip = !x.value.showTooltip;
|
|
488
488
|
}
|
|
489
489
|
const le = i(!1);
|
|
490
|
-
function
|
|
490
|
+
function ge() {
|
|
491
491
|
le.value = !le.value;
|
|
492
492
|
}
|
|
493
|
-
async function
|
|
493
|
+
async function St({ scale: t = 2 } = {}) {
|
|
494
494
|
if (!I.value) return;
|
|
495
|
-
const { width: a, height: l } = I.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await
|
|
495
|
+
const { width: a, height: l } = I.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await nl({ domElement: I.value, base64: !0, img: !0, scale: t });
|
|
496
496
|
return {
|
|
497
497
|
imageUri: u,
|
|
498
498
|
base64: n,
|
|
@@ -503,9 +503,9 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
505
|
const J = h(() => {
|
|
506
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
506
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = x.value.showTable;
|
|
507
507
|
return {
|
|
508
|
-
component: t ?
|
|
508
|
+
component: t ? dt : rt,
|
|
509
509
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
510
510
|
props: t ? {
|
|
511
511
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -532,49 +532,53 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
534
|
});
|
|
535
|
-
|
|
535
|
+
K(() => x.value.showTable, (t) => {
|
|
536
536
|
e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
|
|
537
|
-
})
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
537
|
+
});
|
|
538
|
+
function Je() {
|
|
539
|
+
x.value.showTable = !1, re.value && re.value.setTableIconState(!1);
|
|
540
|
+
}
|
|
541
|
+
return at({
|
|
542
|
+
getData: wt,
|
|
543
|
+
getImage: St,
|
|
544
|
+
generatePdf: Me,
|
|
545
|
+
generateCsv: ye,
|
|
546
|
+
generateImage: Re,
|
|
547
|
+
toggleTable: Xe,
|
|
548
|
+
toggleTooltip: Ye,
|
|
549
|
+
toggleAnnotator: ge,
|
|
550
|
+
toggleFullscreen: He
|
|
547
551
|
}), (t, a) => (s(), v("div", {
|
|
548
|
-
class:
|
|
552
|
+
class: Qe(`vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
549
553
|
ref_key: "waffleChart",
|
|
550
554
|
ref: I,
|
|
551
555
|
id: `vue-ui-waffle_${b.value}`,
|
|
552
556
|
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[
|
|
554
|
-
onMouseleave: a[
|
|
557
|
+
onMouseenter: a[2] || (a[2] = () => c(Le)(!0)),
|
|
558
|
+
onMouseleave: a[3] || (a[3] = () => c(Le)(!1))
|
|
555
559
|
}, [
|
|
556
|
-
e.value.userOptions.buttons.annotator ? (s(), F(c(
|
|
560
|
+
e.value.userOptions.buttons.annotator ? (s(), F(c(vt), {
|
|
557
561
|
key: 0,
|
|
558
|
-
svgRef: c(
|
|
562
|
+
svgRef: c(Fe),
|
|
559
563
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
560
564
|
color: e.value.style.chart.color,
|
|
561
565
|
active: le.value,
|
|
562
|
-
onClose:
|
|
566
|
+
onClose: ge
|
|
563
567
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
564
|
-
|
|
568
|
+
ft.value ? (s(), v("div", {
|
|
565
569
|
key: 1,
|
|
566
570
|
ref_key: "noTitle",
|
|
567
|
-
ref:
|
|
571
|
+
ref: _e,
|
|
568
572
|
class: "vue-data-ui-no-title-space",
|
|
569
573
|
style: "height:36px; width: 100%;background:transparent"
|
|
570
574
|
}, null, 512)) : m("", !0),
|
|
571
575
|
e.value.style.chart.title.text ? (s(), v("div", {
|
|
572
576
|
key: 2,
|
|
573
577
|
ref_key: "chartTitle",
|
|
574
|
-
ref:
|
|
578
|
+
ref: Ce,
|
|
575
579
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
576
580
|
}, [
|
|
577
|
-
(s(), F(
|
|
581
|
+
(s(), F(il, {
|
|
578
582
|
key: `title_${Te.value}`,
|
|
579
583
|
config: {
|
|
580
584
|
title: {
|
|
@@ -588,17 +592,17 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
588
592
|
}
|
|
589
593
|
}, null, 8, ["config"]))
|
|
590
594
|
], 512)) : m("", !0),
|
|
591
|
-
|
|
595
|
+
k("div", {
|
|
592
596
|
id: `legend-top-${b.value}`
|
|
593
|
-
}, null, 8,
|
|
594
|
-
e.value.userOptions.show && ue.value && (c(
|
|
595
|
-
ref_key: "
|
|
596
|
-
ref:
|
|
597
|
-
key: `user_options_${
|
|
597
|
+
}, null, 8, hl),
|
|
598
|
+
e.value.userOptions.show && ue.value && (c(Be) || c(ve)) ? (s(), F(c(it), {
|
|
599
|
+
ref_key: "userOptionsRef",
|
|
600
|
+
ref: re,
|
|
601
|
+
key: `user_options_${xe.value}`,
|
|
598
602
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
599
603
|
color: e.value.style.chart.color,
|
|
600
604
|
isPrinting: c(Ne),
|
|
601
|
-
isImaging: c(
|
|
605
|
+
isImaging: c(Ve),
|
|
602
606
|
uid: b.value,
|
|
603
607
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
604
608
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -607,7 +611,7 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
607
611
|
hasTable: e.value.userOptions.buttons.table,
|
|
608
612
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
609
613
|
isFullscreen: V.value,
|
|
610
|
-
isTooltip:
|
|
614
|
+
isTooltip: x.value.showTooltip,
|
|
611
615
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
612
616
|
chartElement: I.value,
|
|
613
617
|
position: e.value.userOptions.position,
|
|
@@ -615,17 +619,18 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
615
619
|
isAnnotation: le.value,
|
|
616
620
|
callbacks: e.value.userOptions.callbacks,
|
|
617
621
|
printScale: e.value.userOptions.print.scale,
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
622
|
+
tableDialog: e.value.table.useDialog,
|
|
623
|
+
onToggleFullscreen: He,
|
|
624
|
+
onGeneratePdf: c(Me),
|
|
625
|
+
onGenerateCsv: ye,
|
|
626
|
+
onGenerateImage: c(Re),
|
|
627
|
+
onToggleTable: Xe,
|
|
628
|
+
onToggleTooltip: Ye,
|
|
629
|
+
onToggleAnnotator: ge,
|
|
625
630
|
style: ae({
|
|
626
|
-
visibility: c(
|
|
631
|
+
visibility: c(Be) ? c(ve) ? "visible" : "hidden" : "visible"
|
|
627
632
|
})
|
|
628
|
-
},
|
|
633
|
+
}, me({ _: 2 }, [
|
|
629
634
|
t.$slots.menuIcon ? {
|
|
630
635
|
name: "menuIcon",
|
|
631
636
|
fn: y(({ isOpen: l, color: o }) => [
|
|
@@ -682,18 +687,18 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
682
687
|
]),
|
|
683
688
|
key: "7"
|
|
684
689
|
} : void 0
|
|
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),
|
|
690
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
686
691
|
(s(), v("svg", {
|
|
687
692
|
ref_key: "svgRef",
|
|
688
|
-
ref:
|
|
689
|
-
xmlns: c(
|
|
690
|
-
class:
|
|
691
|
-
viewBox: `0 0 ${
|
|
693
|
+
ref: Fe,
|
|
694
|
+
xmlns: c(Gt),
|
|
695
|
+
class: Qe({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
696
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
692
697
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
693
698
|
}, [
|
|
694
|
-
oe(c(
|
|
695
|
-
|
|
696
|
-
(s(!0), v($, null,
|
|
699
|
+
oe(c(ct)),
|
|
700
|
+
k("defs", null, [
|
|
701
|
+
(s(!0), v($, null, D(r.value, (l, o) => (s(), v("radialGradient", {
|
|
697
702
|
cx: "50%",
|
|
698
703
|
cy: "50%",
|
|
699
704
|
r: "50%",
|
|
@@ -701,160 +706,160 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
701
706
|
fy: "50%",
|
|
702
707
|
id: `gradient_${b.value}_${o}`
|
|
703
708
|
}, [
|
|
704
|
-
|
|
709
|
+
k("stop", {
|
|
705
710
|
offset: "0%",
|
|
706
|
-
"stop-color": c(
|
|
707
|
-
}, null, 8,
|
|
708
|
-
|
|
711
|
+
"stop-color": c(jt)(c(qt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
712
|
+
}, null, 8, yl),
|
|
713
|
+
k("stop", {
|
|
709
714
|
offset: "100%",
|
|
710
715
|
"stop-color": l.color
|
|
711
|
-
}, null, 8,
|
|
712
|
-
], 8,
|
|
716
|
+
}, null, 8, gl)
|
|
717
|
+
], 8, fl))), 256))
|
|
713
718
|
]),
|
|
714
|
-
|
|
715
|
-
|
|
719
|
+
k("defs", null, [
|
|
720
|
+
k("filter", {
|
|
716
721
|
id: `blur_${b.value}`,
|
|
717
722
|
x: "-50%",
|
|
718
723
|
y: "-50%",
|
|
719
724
|
width: "200%",
|
|
720
725
|
height: "200%"
|
|
721
|
-
}, [...a[
|
|
722
|
-
|
|
726
|
+
}, [...a[4] || (a[4] = [
|
|
727
|
+
k("feGaussianBlur", {
|
|
723
728
|
in: "SourceGraphic",
|
|
724
729
|
stdDeviation: 2
|
|
725
730
|
}, null, -1),
|
|
726
|
-
|
|
731
|
+
k("feColorMatrix", {
|
|
727
732
|
type: "saturate",
|
|
728
733
|
values: "0"
|
|
729
734
|
}, null, -1)
|
|
730
|
-
])], 8,
|
|
735
|
+
])], 8, bl)
|
|
731
736
|
]),
|
|
732
|
-
e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 },
|
|
737
|
+
e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, D(W.value, (l, o) => (s(), v("foreignObject", {
|
|
733
738
|
x: l.x,
|
|
734
739
|
y: l.y,
|
|
735
740
|
height: A.value <= 0 ? 1e-4 : A.value,
|
|
736
|
-
width:
|
|
741
|
+
width: T.value <= 0 ? 1e-4 : T.value,
|
|
737
742
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
738
743
|
}, [
|
|
739
|
-
g(t.$slots, "cell",
|
|
740
|
-
], 8,
|
|
744
|
+
g(t.$slots, "cell", we({ 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)
|
|
745
|
+
], 8, ml))), 256)) : m("", !0),
|
|
741
746
|
!r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
|
|
742
747
|
key: 1,
|
|
743
748
|
x: 12,
|
|
744
749
|
y: 12,
|
|
745
|
-
height:
|
|
746
|
-
width:
|
|
750
|
+
height: _.value.height - 24,
|
|
751
|
+
width: _.value.width - 24,
|
|
747
752
|
rx: 3,
|
|
748
753
|
fill: "none",
|
|
749
754
|
stroke: "black"
|
|
750
|
-
}, null, 8,
|
|
751
|
-
t.$slots.pattern ? (s(), v("g",
|
|
752
|
-
(s(!0), v($, null,
|
|
753
|
-
g(t.$slots, "pattern",
|
|
755
|
+
}, null, 8, wl)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
|
|
756
|
+
t.$slots.pattern ? (s(), v("g", kl, [
|
|
757
|
+
(s(!0), v($, null, D(he.value, (l) => (s(), v("defs", null, [
|
|
758
|
+
g(t.$slots, "pattern", we({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${b.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
754
759
|
]))), 256))
|
|
755
760
|
])) : m("", !0),
|
|
756
|
-
(s(!0), v($, null,
|
|
761
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
757
762
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
758
763
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
759
764
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
760
765
|
height: A.value <= 0 ? 1e-4 : A.value,
|
|
761
|
-
width:
|
|
766
|
+
width: T.value <= 0 ? 1e-4 : T.value,
|
|
762
767
|
fill: "white",
|
|
763
768
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
764
769
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
765
770
|
filter: ee(r.value[o].serieIndex)
|
|
766
|
-
}, null, 8,
|
|
767
|
-
(s(!0), v($, null,
|
|
771
|
+
}, null, 8, xl))), 256)),
|
|
772
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
768
773
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
769
774
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
770
775
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
771
776
|
height: A.value <= 0 ? 1e-4 : A.value,
|
|
772
|
-
width:
|
|
777
|
+
width: T.value <= 0 ? 1e-4 : T.value,
|
|
773
778
|
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,
|
|
774
779
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
775
780
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
776
781
|
filter: ee(r.value[o].serieIndex)
|
|
777
|
-
}, null, 8,
|
|
778
|
-
t.$slots.pattern ? (s(), v("g",
|
|
779
|
-
(s(!0), v($, null,
|
|
782
|
+
}, null, 8, Cl))), 256)),
|
|
783
|
+
t.$slots.pattern ? (s(), v("g", $l, [
|
|
784
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
780
785
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
781
786
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
782
787
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
783
788
|
height: A.value <= 0 ? 1e-4 : A.value,
|
|
784
|
-
width:
|
|
789
|
+
width: T.value <= 0 ? 1e-4 : T.value,
|
|
785
790
|
fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
|
|
786
791
|
stroke: "none",
|
|
787
792
|
filter: ee(r.value[o].serieIndex)
|
|
788
|
-
}, null, 8,
|
|
793
|
+
}, null, 8, Il))), 256))
|
|
789
794
|
])) : m("", !0)
|
|
790
795
|
], 64)) : m("", !0),
|
|
791
|
-
(s(!0), v($, null,
|
|
796
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v($, null, [
|
|
792
797
|
Tt(o, l) ? (s(), v("text", {
|
|
793
798
|
key: `datalabel_${o}`,
|
|
794
|
-
textContent: M(
|
|
799
|
+
textContent: M(At(o, l)),
|
|
795
800
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
796
|
-
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
801
|
+
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ue.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
797
802
|
"font-size": e.value.style.chart.layout.labels.captions.fontSize,
|
|
798
|
-
fill: c(
|
|
803
|
+
fill: c(Ht)(r.value[o].color),
|
|
799
804
|
filter: ee(r.value[o].serieIndex)
|
|
800
|
-
}, null, 8,
|
|
805
|
+
}, null, 8, _l)) : m("", !0)
|
|
801
806
|
], 64))), 256)),
|
|
802
|
-
(s(!0), v($, null,
|
|
807
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
803
808
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
804
809
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
805
|
-
height:
|
|
806
|
-
width:
|
|
810
|
+
height: Ue.value,
|
|
811
|
+
width: yt.value,
|
|
807
812
|
fill: "transparent",
|
|
808
813
|
stroke: "none",
|
|
809
|
-
onMouseover: (u) =>
|
|
810
|
-
onMouseleave: (u) =>
|
|
811
|
-
onClick: (u) =>
|
|
814
|
+
onMouseover: (u) => It(o),
|
|
815
|
+
onMouseleave: (u) => $t(o),
|
|
816
|
+
onClick: (u) => Ct(o)
|
|
812
817
|
}, null, 40, Tl))), 256)),
|
|
813
|
-
g(t.$slots, "svg", { svg:
|
|
814
|
-
], 14,
|
|
815
|
-
t.$slots.watermark ? (s(), v("div",
|
|
816
|
-
g(t.$slots, "watermark", j(q({ isPrinting: c(Ne) || c(
|
|
818
|
+
g(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
819
|
+
], 14, pl)),
|
|
820
|
+
t.$slots.watermark ? (s(), v("div", Al, [
|
|
821
|
+
g(t.$slots, "watermark", j(q({ isPrinting: c(Ne) || c(Ve) })), void 0, !0)
|
|
817
822
|
])) : m("", !0),
|
|
818
|
-
|
|
823
|
+
k("div", {
|
|
819
824
|
id: `legend-bottom-${b.value}`
|
|
820
|
-
}, null, 8,
|
|
821
|
-
|
|
825
|
+
}, null, 8, Sl),
|
|
826
|
+
Pe.value ? (s(), F(Ft, {
|
|
822
827
|
key: 5,
|
|
823
828
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
824
829
|
}, [
|
|
825
|
-
|
|
830
|
+
k("div", {
|
|
826
831
|
ref_key: "chartLegend",
|
|
827
|
-
ref:
|
|
832
|
+
ref: $e
|
|
828
833
|
}, [
|
|
829
|
-
e.value.style.chart.legend.show ? (s(), F(
|
|
830
|
-
key: `legend_${
|
|
834
|
+
e.value.style.chart.legend.show ? (s(), F(vl, {
|
|
835
|
+
key: `legend_${Se.value}`,
|
|
831
836
|
legendSet: G.value,
|
|
832
|
-
config:
|
|
833
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) =>
|
|
834
|
-
},
|
|
837
|
+
config: xt.value,
|
|
838
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => qe(l.uid))
|
|
839
|
+
}, me({
|
|
835
840
|
item: y(({ legend: l }) => [
|
|
836
|
-
|
|
841
|
+
k("div", {
|
|
837
842
|
onClick: (o) => l.segregate(),
|
|
838
843
|
style: ae(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
839
844
|
}, 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)(
|
|
840
845
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
841
846
|
l.value,
|
|
842
|
-
c(
|
|
847
|
+
c(O)({
|
|
843
848
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
844
849
|
v: l.value,
|
|
845
850
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
846
851
|
r: e.value.style.chart.legend.roundingValue,
|
|
847
|
-
isAnimating:
|
|
852
|
+
isAnimating: N.value
|
|
848
853
|
}),
|
|
849
854
|
{ datapoint: l }
|
|
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(
|
|
855
|
+
) : "") + " " + 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(O)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Pl)
|
|
851
856
|
]),
|
|
852
857
|
_: 2
|
|
853
858
|
}, [
|
|
854
859
|
t.$slots.pattern ? {
|
|
855
860
|
name: "legend-pattern",
|
|
856
861
|
fn: y(({ legend: l, index: o }) => [
|
|
857
|
-
oe(
|
|
862
|
+
oe(rl, {
|
|
858
863
|
shape: l.shape,
|
|
859
864
|
radius: 30,
|
|
860
865
|
stroke: "none",
|
|
@@ -873,13 +878,13 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
873
878
|
t.$slots.source ? (s(), v("div", {
|
|
874
879
|
key: 6,
|
|
875
880
|
ref_key: "source",
|
|
876
|
-
ref:
|
|
881
|
+
ref: Ie,
|
|
877
882
|
dir: "auto"
|
|
878
883
|
}, [
|
|
879
884
|
g(t.$slots, "source", {}, void 0, !0)
|
|
880
885
|
], 512)) : m("", !0),
|
|
881
|
-
oe(c(
|
|
882
|
-
show:
|
|
886
|
+
oe(c(ut), {
|
|
887
|
+
show: x.value.showTooltip && se.value && f.value.length < w.dataset.length,
|
|
883
888
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
884
889
|
color: e.value.style.chart.tooltip.color,
|
|
885
890
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -897,37 +902,37 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
897
902
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
898
903
|
}, {
|
|
899
904
|
"tooltip-before": y(() => [
|
|
900
|
-
g(t.$slots, "tooltip-before", j(q({ ...
|
|
905
|
+
g(t.$slots, "tooltip-before", j(q({ ...pe.value })), void 0, !0)
|
|
901
906
|
]),
|
|
902
907
|
"tooltip-after": y(() => [
|
|
903
|
-
g(t.$slots, "tooltip-after", j(q({ ...
|
|
908
|
+
g(t.$slots, "tooltip-after", j(q({ ...pe.value })), void 0, !0)
|
|
904
909
|
]),
|
|
905
910
|
_: 3
|
|
906
911
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter"]),
|
|
907
|
-
ue.value ? (s(), F(
|
|
912
|
+
ue.value ? (s(), F(Dt(J.value.component), we({ key: 7 }, J.value.props, {
|
|
908
913
|
ref_key: "tableUnit",
|
|
909
914
|
ref: H,
|
|
910
|
-
onClose:
|
|
911
|
-
}),
|
|
915
|
+
onClose: Je
|
|
916
|
+
}), me({
|
|
912
917
|
content: y(() => [
|
|
913
|
-
(s(), F(c(
|
|
914
|
-
key: `table_${
|
|
918
|
+
(s(), F(c(nt), {
|
|
919
|
+
key: `table_${Ae.value}`,
|
|
915
920
|
colNames: te.value.colNames,
|
|
916
921
|
head: te.value.head,
|
|
917
922
|
body: te.value.body,
|
|
918
923
|
config: te.value.config,
|
|
919
924
|
title: e.value.table.useDialog ? "" : J.value.title,
|
|
920
925
|
withCloseButton: !e.value.table.useDialog,
|
|
921
|
-
onClose:
|
|
926
|
+
onClose: Je
|
|
922
927
|
}, {
|
|
923
928
|
th: y(({ th: l }) => [
|
|
924
|
-
|
|
929
|
+
k("div", {
|
|
925
930
|
innerHTML: l,
|
|
926
931
|
style: { display: "flex", "align-items": "center" }
|
|
927
|
-
}, null, 8,
|
|
932
|
+
}, null, 8, Ol)
|
|
928
933
|
]),
|
|
929
934
|
td: y(({ td: l }) => [
|
|
930
|
-
|
|
935
|
+
Ze(M(l.name || l), 1)
|
|
931
936
|
]),
|
|
932
937
|
_: 1
|
|
933
938
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -937,19 +942,19 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
937
942
|
e.value.table.useDialog ? {
|
|
938
943
|
name: "title",
|
|
939
944
|
fn: y(() => [
|
|
940
|
-
|
|
945
|
+
Ze(M(J.value.title), 1)
|
|
941
946
|
]),
|
|
942
947
|
key: "0"
|
|
943
948
|
} : void 0,
|
|
944
949
|
e.value.table.useDialog ? {
|
|
945
950
|
name: "actions",
|
|
946
951
|
fn: y(() => [
|
|
947
|
-
|
|
952
|
+
k("button", {
|
|
948
953
|
tabindex: "0",
|
|
949
954
|
class: "vue-ui-user-options-button",
|
|
950
|
-
onClick: a[1] || (a[1] = (l) =>
|
|
955
|
+
onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv))
|
|
951
956
|
}, [
|
|
952
|
-
oe(c(
|
|
957
|
+
oe(c(st), {
|
|
953
958
|
name: "excel",
|
|
954
959
|
stroke: J.value.props.color
|
|
955
960
|
}, null, 8, ["stroke"])
|
|
@@ -958,10 +963,10 @@ const cl = ["id"], dl = ["id"], hl = ["xmlns", "viewBox"], pl = ["id"], fl = ["s
|
|
|
958
963
|
key: "1"
|
|
959
964
|
} : void 0
|
|
960
965
|
]), 1040)) : m("", !0),
|
|
961
|
-
c(
|
|
962
|
-
], 46,
|
|
966
|
+
c(Oe) ? (s(), F(al, { key: 8 })) : m("", !0)
|
|
967
|
+
], 46, dl));
|
|
963
968
|
}
|
|
964
|
-
},
|
|
969
|
+
}, ql = /* @__PURE__ */ cl(Ll, [["__scopeId", "data-v-854ba354"]]);
|
|
965
970
|
export {
|
|
966
|
-
|
|
971
|
+
ql as default
|
|
967
972
|
};
|