vue-data-ui 2.14.1 → 2.14.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/{Arrow-HJLeHmf6.js → Arrow-DrUXalK1.js} +1 -1
- package/dist/{BaseDraggableDialog-DxqOerJ8.js → BaseDraggableDialog-BBiAE4t8.js} +2 -2
- package/dist/{BaseIcon-61ZYnf6Y.js → BaseIcon-avTvifnO.js} +1 -1
- package/dist/{ColorPicker-DiOZ0dIA.js → ColorPicker-BAOfnFRQ.js} +2 -2
- package/dist/{DataTable-CvEYBbuI.js → DataTable-D8n1mvaG.js} +2 -2
- package/dist/{Legend-ChpNJ_NF.js → Legend-Cpx0xSce.js} +4 -4
- package/dist/{NonSvgPenAndPaper-cf1P3kEq.js → NonSvgPenAndPaper-ClnGCm8G.js} +3 -3
- package/dist/{PackageVersion-CczS07-5.js → PackageVersion-Bwu7jdjH.js} +2 -2
- package/dist/{PenAndPaper-CqPrXvIl.js → PenAndPaper-BzQcbTCN.js} +3 -3
- package/dist/{Shape-Bdn11q8F.js → Shape-D65xhJAN.js} +1 -1
- package/dist/{Slicer-D9JY91SV.js → Slicer-DjwiDPEk.js} +14 -14
- package/dist/{SparkTooltip-B6ZYyu7F.js → SparkTooltip-B8nH7aKM.js} +1 -1
- package/dist/{Title-CjfBFzRf.js → Title-B71Dk29x.js} +1 -1
- package/dist/{Tooltip-BZpxnTbb.js → Tooltip-BuP-Tir7.js} +1 -1
- package/dist/{UserOptions-DVYwPBK2.js → UserOptions-fd2DeGS7.js} +2 -2
- package/dist/{dom-to-png-Dya0UERi.js → dom-to-png-D7idYX2d.js} +1 -1
- package/dist/{img-CuEOfq14.js → img-CSeVuPYh.js} +1 -1
- package/dist/{index-BgrDsHvy.js → index-BzH6XFI9.js} +413 -394
- package/dist/{pdf-D10HhJgy.js → pdf-ksl9rS7r.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +4 -0
- package/dist/types/vue-data-ui.d.ts +4 -0
- package/dist/{useNestedProp-Cw4jG3FY.js → useNestedProp-CKM2gCr5.js} +1 -1
- package/dist/{usePrinter-DzxhXGdR.js → usePrinter-C653sJjz.js} +2 -2
- package/dist/{vue-data-ui-CMV-krGM.js → vue-data-ui-DdffTqYM.js} +63 -63
- package/dist/vue-data-ui.js +21 -21
- package/dist/{vue-ui-3d-bar-CP4gDeA9.js → vue-ui-3d-bar-vdc7daf_.js} +5 -5
- package/dist/{vue-ui-accordion-m8te3vGO.js → vue-ui-accordion-Cjq4hqGi.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C8uZPTAY.js → vue-ui-age-pyramid-CMFgIKLE.js} +5 -5
- package/dist/{vue-ui-annotator-CiIkCJ6S.js → vue-ui-annotator-BvODcd7y.js} +2 -2
- package/dist/{vue-ui-bullet-D7GCFc-g.js → vue-ui-bullet-BX73-v3g.js} +6 -6
- package/dist/{vue-ui-candlestick-B8jQjSpc.js → vue-ui-candlestick-Ogvne-GG.js} +6 -6
- package/dist/{vue-ui-carousel-table-Cm4mh1bm.js → vue-ui-carousel-table-DXeRsoL_.js} +4 -4
- package/dist/{vue-ui-chestnut-xJx3qXST.js → vue-ui-chestnut-DXDQOgbn.js} +4 -4
- package/dist/{vue-ui-chord-DeMiI8ma.js → vue-ui-chord-CWStby-a.js} +7 -7
- package/dist/{vue-ui-circle-pack-CIYfy0qC.js → vue-ui-circle-pack-C4kdJPNJ.js} +5 -5
- package/dist/{vue-ui-cursor-D9Z3w8f_.js → vue-ui-cursor-Du4IVYWM.js} +2 -2
- package/dist/{vue-ui-dashboard-f6jQBHYW.js → vue-ui-dashboard-XpoAcLb4.js} +62 -62
- package/dist/{vue-ui-digits-BT16JoAt.js → vue-ui-digits-Ce_eR3L5.js} +2 -2
- package/dist/{vue-ui-donut-u7q9NrFK.js → vue-ui-donut-D6VPixUt.js} +188 -188
- package/dist/{vue-ui-donut-evolution-BCMm8STJ.js → vue-ui-donut-evolution-C3MA75pG.js} +309 -293
- package/dist/{vue-ui-dumbbell-CoopXtZe.js → vue-ui-dumbbell-CeQOb65i.js} +6 -6
- package/dist/{vue-ui-flow-BFgXTv_3.js → vue-ui-flow-D-_7gBhg.js} +26 -26
- package/dist/{vue-ui-funnel-DKgnIXPL.js → vue-ui-funnel-BsXNYzPK.js} +5 -5
- package/dist/{vue-ui-galaxy-Cq6YBbi_.js → vue-ui-galaxy--N2CYrWl.js} +4 -4
- package/dist/{vue-ui-gauge-D-vM39d0.js → vue-ui-gauge-DhKGlAJd.js} +5 -5
- package/dist/{vue-ui-gizmo-D3RZqfAG.js → vue-ui-gizmo-Bcwgwj-f.js} +3 -3
- package/dist/{vue-ui-heatmap-DPL8z3cI.js → vue-ui-heatmap-BlY7-ZUF.js} +6 -6
- package/dist/{vue-ui-history-plot-CSXwsNpD.js → vue-ui-history-plot-typzqDiw.js} +234 -210
- package/dist/{vue-ui-kpi-b8tHwa8_.js → vue-ui-kpi-Cj_96Iru.js} +3 -3
- package/dist/{vue-ui-mini-loader-CdY-ZkhQ.js → vue-ui-mini-loader-Dr42qu-K.js} +2 -2
- package/dist/{vue-ui-molecule-3h00FH5s.js → vue-ui-molecule-DfQCNRcr.js} +16 -16
- package/dist/{vue-ui-mood-radar-D33gSEOC.js → vue-ui-mood-radar-ChryER9p.js} +19 -19
- package/dist/{vue-ui-nested-donuts-B0A0vXtk.js → vue-ui-nested-donuts-CWm-A-co.js} +90 -90
- package/dist/{vue-ui-onion-a8_JDLyl.js → vue-ui-onion-Bb8s5St0.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-1LlN6F0r.js → vue-ui-parallel-coordinate-plot-DcD53HSq.js} +188 -171
- package/dist/{vue-ui-quadrant-N0rhTZ5W.js → vue-ui-quadrant-CpuFmTG9.js} +243 -225
- package/dist/{vue-ui-quick-chart-Wv8KVB-d.js → vue-ui-quick-chart-BHO_J8Tc.js} +369 -353
- package/dist/{vue-ui-radar-CzniRpn-.js → vue-ui-radar-LsSH7YAg.js} +45 -45
- package/dist/{vue-ui-rating-Cf_RDtUI.js → vue-ui-rating-rcN8C68M.js} +8 -8
- package/dist/{vue-ui-relation-circle-Bo_-vb66.js → vue-ui-relation-circle-CmZ8rXwC.js} +5 -5
- package/dist/{vue-ui-ridgeline-DjU5kQwH.js → vue-ui-ridgeline-CpXWT3tk.js} +185 -165
- package/dist/{vue-ui-rings-CpOhLhDo.js → vue-ui-rings-x_HCzzIw.js} +7 -7
- package/dist/{vue-ui-scatter-Diq2Iio2.js → vue-ui-scatter-DNgUU2mO.js} +49 -49
- package/dist/{vue-ui-skeleton-B8Wzi4Hi.js → vue-ui-skeleton-qa5B2MES.js} +3 -3
- package/dist/{vue-ui-smiley-O2q3w9fQ.js → vue-ui-smiley-C0DEaxQK.js} +2 -2
- package/dist/{vue-ui-spark-trend-BTnR034D.js → vue-ui-spark-trend-DjctYLri.js} +3 -3
- package/dist/{vue-ui-sparkbar-B5SlfKQN.js → vue-ui-sparkbar-Un3CJINy.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B_BVnGgV.js → vue-ui-sparkgauge-BascS5LC.js} +8 -8
- package/dist/{vue-ui-sparkhistogram-CowIuwbW.js → vue-ui-sparkhistogram-CZYnWAUW.js} +4 -4
- package/dist/{vue-ui-sparkline-Ogfd0FmW.js → vue-ui-sparkline-DyIDPpiz.js} +11 -11
- package/dist/{vue-ui-sparkstackbar-B5SnjytL.js → vue-ui-sparkstackbar-Ctz_OFbi.js} +3 -3
- package/dist/{vue-ui-stackbar-Co6Ly31u.js → vue-ui-stackbar-DqIv6O-t.js} +417 -373
- package/dist/{vue-ui-strip-plot-B-dKieOC.js → vue-ui-strip-plot-BAfdL6Ih.js} +202 -184
- package/dist/{vue-ui-table-DlM8IVJC.js → vue-ui-table-CCMkrVp7.js} +3 -3
- package/dist/{vue-ui-table-heatmap-C-G1Vr3i.js → vue-ui-table-heatmap--gO5Zuyp.js} +18 -18
- package/dist/{vue-ui-table-sparkline-Dh3m5rHW.js → vue-ui-table-sparkline-5HTiQPhC.js} +4 -4
- package/dist/{vue-ui-thermometer-COAiS2i7.js → vue-ui-thermometer-BbxNtsdP.js} +5 -5
- package/dist/{vue-ui-timer-Bnxo2caA.js → vue-ui-timer-DwUmt-Jo.js} +5 -5
- package/dist/{vue-ui-tiremarks-D1gy7-Uu.js → vue-ui-tiremarks-YyiGuluO.js} +5 -5
- package/dist/{vue-ui-treemap-_qyTaKiq.js → vue-ui-treemap-hHSyoGry.js} +7 -7
- package/dist/{vue-ui-vertical-bar-CKbzxqWL.js → vue-ui-vertical-bar-Bjyjarmi.js} +8 -8
- package/dist/{vue-ui-waffle-_IX54mhp.js → vue-ui-waffle-B3lfeeZs.js} +246 -242
- package/dist/{vue-ui-wheel-BT1vFZGN.js → vue-ui-wheel-DrVnxe3n.js} +5 -5
- package/dist/{vue-ui-word-cloud-B0ZKf-0k.js → vue-ui-word-cloud-CRFfYl4B.js} +15 -15
- package/dist/{vue-ui-world-CBDKYFwQ.js → vue-ui-world-BeVT9bsc.js} +5 -5
- package/dist/{vue-ui-xy-ChqEX06H.js → vue-ui-xy-B6LjQd7h.js} +591 -570
- package/dist/{vue-ui-xy-canvas-Dca_tr3r.js → vue-ui-xy-canvas-DviTudRz.js} +7 -7
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as B, useSlots 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
|
|
1
|
+
import { defineAsyncComponent as B, useSlots as pt, computed as d, ref as c, watch as Me, shallowRef as De, onMounted as ft, onBeforeUnmount as yt, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as Re, createBlock as V, createCommentVNode as f, createElementVNode as x, createVNode as ve, createSlots as Ue, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as L, mergeProps as Ee, toDisplayString as F, createTextVNode as Ge, nextTick as gt } from "vue";
|
|
2
|
+
import { u as bt, c as mt, t as wt, p as M, a as kt, o as xt, e as ce, g as Ct, b as $t, i as q, f as _, X as _t, s as It, w as Tt, G as St, L as Ot, d as Pt, q as At, r as Lt, x as Ft, y as zt } from "./index-BzH6XFI9.js";
|
|
3
|
+
import { t as Nt, u as Bt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as je } from "./useNestedProp-CKM2gCr5.js";
|
|
5
|
+
import { u as Vt } from "./usePrinter-C653sJjz.js";
|
|
6
|
+
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Rt from "./Title-B71Dk29x.js";
|
|
9
|
+
import Ut from "./Legend-Cpx0xSce.js";
|
|
10
|
+
import { _ as Et } from "./Shape-D65xhJAN.js";
|
|
11
11
|
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const
|
|
12
|
+
const jt = ["id"], Wt = ["xmlns", "viewBox"], qt = ["id"], Ht = ["stop-color"], Xt = ["stop-color"], Yt = ["id"], Jt = ["x", "y", "height", "width"], Kt = ["height", "width"], Qt = { key: 0 }, Zt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], el = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], tl = { key: 1 }, ll = ["rx", "x", "y", "height", "width", "fill", "filter"], al = ["x", "y", "height", "width", "filter"], ol = { key: 0 }, ul = { key: 1 }, sl = { key: 2 }, rl = { key: 3 }, nl = ["onMouseover", "x", "y", "height", "width"], il = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, vl = ["onClick"], cl = { key: 0 }, dl = { key: 1 }, hl = ["innerHTML"], pl = {
|
|
16
16
|
__name: "vue-ui-waffle",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -29,38 +29,38 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
get: () =>
|
|
32
|
+
setup(We, { expose: qe, emit: He }) {
|
|
33
|
+
const Xe = B(() => import("./DataTable-D8n1mvaG.js")), Ye = B(() => import("./PenAndPaper-BzQcbTCN.js")), Je = B(() => import("./vue-ui-accordion-Cjq4hqGi.js")), Ke = B(() => import("./vue-ui-skeleton-qa5B2MES.js")), Qe = B(() => import("./Tooltip-BuP-Tir7.js")), Ze = B(() => import("./UserOptions-fd2DeGS7.js")), et = B(() => import("./PackageVersion-Bwu7jdjH.js")), { vue_ui_waffle: tt } = bt(), m = We, lt = pt(), Q = d(() => !!m.dataset && m.dataset.length), k = c(mt()), at = c(null), ae = c(!1), oe = c(""), D = c(null), de = c(0), H = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(null), ge = c(0), be = c(0), me = c(0), e = d({
|
|
34
|
+
get: () => Ce(),
|
|
35
35
|
set: (t) => t
|
|
36
|
-
}), { userOptionsVisible:
|
|
37
|
-
function
|
|
38
|
-
const t =
|
|
36
|
+
}), { userOptionsVisible: ue, setUserOptionsVisibility: we, keepUserOptionState: ke } = Mt({ config: e.value }), { svgRef: xe } = Dt({ config: e.value.style.chart.title });
|
|
37
|
+
function Ce() {
|
|
38
|
+
const t = je({
|
|
39
39
|
userConfig: m.config,
|
|
40
|
-
defaultConfig:
|
|
40
|
+
defaultConfig: tt
|
|
41
41
|
});
|
|
42
42
|
return t.theme ? {
|
|
43
|
-
...
|
|
44
|
-
userConfig:
|
|
43
|
+
...je({
|
|
44
|
+
userConfig: kt.vue_ui_waffle[t.theme] || m.config,
|
|
45
45
|
defaultConfig: t
|
|
46
46
|
}),
|
|
47
|
-
customPalette:
|
|
47
|
+
customPalette: wt[t.theme] || M
|
|
48
48
|
} : t;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
e.value =
|
|
50
|
+
Me(() => m.config, (t) => {
|
|
51
|
+
e.value = Ce(), ue.value = !e.value.userOptions.showOnChartHover, $e(), ge.value += 1, be.value += 1, me.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
52
52
|
}, { deep: !0 });
|
|
53
|
-
const A =
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
53
|
+
const A = De(null), R = De(null);
|
|
54
|
+
function $e() {
|
|
55
|
+
if (xt(m.dataset) ? ce({
|
|
56
56
|
componentName: "VueUiWaffle",
|
|
57
57
|
type: "dataset"
|
|
58
58
|
}) : m.dataset.forEach((t, a) => {
|
|
59
|
-
|
|
59
|
+
Ct({
|
|
60
60
|
datasetObject: t,
|
|
61
61
|
requiredAttributes: ["name", "values"]
|
|
62
62
|
}).forEach((l) => {
|
|
63
|
-
|
|
63
|
+
ce({
|
|
64
64
|
componentName: "VueUiWaffle",
|
|
65
65
|
type: "datasetSerieAttribute",
|
|
66
66
|
property: l,
|
|
@@ -68,13 +68,13 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
}), e.value.responsive) {
|
|
71
|
-
const t =
|
|
72
|
-
const { width: a, height: l } =
|
|
71
|
+
const t = Nt(() => {
|
|
72
|
+
const { width: a, height: l } = Bt({
|
|
73
73
|
chart: H.value,
|
|
74
|
-
title: e.value.style.chart.title.text ?
|
|
75
|
-
legend: e.value.style.chart.legend.show ?
|
|
76
|
-
source:
|
|
77
|
-
noTitle:
|
|
74
|
+
title: e.value.style.chart.title.text ? he.value : null,
|
|
75
|
+
legend: e.value.style.chart.legend.show ? pe.value : null,
|
|
76
|
+
source: fe.value,
|
|
77
|
+
noTitle: ye.value
|
|
78
78
|
});
|
|
79
79
|
requestAnimationFrame(() => {
|
|
80
80
|
z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
|
|
@@ -83,16 +83,16 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
83
83
|
A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect()), A.value = new ResizeObserver(t), R.value = H.value.parentNode, A.value.observe(R.value);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
86
|
+
ft(() => {
|
|
87
|
+
$e();
|
|
88
|
+
}), yt(() => {
|
|
89
89
|
A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
|
|
90
90
|
});
|
|
91
|
-
const { isPrinting:
|
|
91
|
+
const { isPrinting: _e, isImaging: Ie, generatePdf: Te, generateImage: Se } = Vt({
|
|
92
92
|
elementId: `vue-ui-waffle_${k.value}`,
|
|
93
93
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
94
94
|
options: e.value.userOptions.print
|
|
95
|
-
}),
|
|
95
|
+
}), ot = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Oe = d(() => $t(e.value.customPalette)), C = c({
|
|
96
96
|
showTable: e.value.table.show,
|
|
97
97
|
showTooltip: e.value.style.chart.tooltip.show
|
|
98
98
|
}), z = c({
|
|
@@ -103,36 +103,37 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
103
103
|
left: 0,
|
|
104
104
|
height: 512,
|
|
105
105
|
width: 512
|
|
106
|
-
}), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size),
|
|
107
|
-
function
|
|
108
|
-
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w,
|
|
109
|
-
let y = a - u.reduce((w,
|
|
106
|
+
}), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size), Z = d(() => I.value.height / e.value.style.chart.layout.grid.size);
|
|
107
|
+
function Pe(t) {
|
|
108
|
+
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ie) => w + ie, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
|
|
109
|
+
let y = a - u.reduce((w, ie) => w + ie, 0);
|
|
110
110
|
for (; y > 0; ) {
|
|
111
111
|
let w = v.indexOf(Math.max(...v));
|
|
112
112
|
u[w] += 1, v[w] = 0, y -= 1;
|
|
113
113
|
}
|
|
114
114
|
return u;
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
const Y = c(!1);
|
|
117
|
+
function Ae() {
|
|
118
|
+
return Y.value = m.dataset.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, m.dataset.map((t, a) => ({
|
|
118
119
|
...t,
|
|
119
|
-
color:
|
|
120
|
+
color: Pt(t.color) || Oe.value[a] || M[a] || M[a % M.length],
|
|
120
121
|
uid: `serie_${a}`,
|
|
121
122
|
absoluteIndex: a
|
|
122
123
|
}));
|
|
123
124
|
}
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
h.value =
|
|
125
|
+
const se = d(() => Ae()), h = c(se.value);
|
|
126
|
+
Me(() => m.dataset, (t) => {
|
|
127
|
+
h.value = Ae();
|
|
127
128
|
}, { deep: !0 });
|
|
128
|
-
const
|
|
129
|
-
const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
|
|
130
|
-
return
|
|
131
|
-
}),
|
|
132
|
-
const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
|
|
133
|
-
return
|
|
134
|
-
}),
|
|
135
|
-
[null, void 0].includes(t.values) &&
|
|
129
|
+
const ut = d(() => {
|
|
130
|
+
const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => Y.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
|
|
131
|
+
return Pe(t);
|
|
132
|
+
}), st = d(() => {
|
|
133
|
+
const t = h.value.map((a, l) => Y.value ? 1 : (a.values || []).reduce((o, u) => o + u));
|
|
134
|
+
return Pe(t);
|
|
135
|
+
}), J = d(() => (m.dataset.forEach((t, a) => {
|
|
136
|
+
[null, void 0].includes(t.values) && ce({
|
|
136
137
|
componentName: "VueUiWaffle",
|
|
137
138
|
type: "datasetSerieAttribute",
|
|
138
139
|
property: "values (number[])",
|
|
@@ -145,27 +146,27 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
145
146
|
color: t.color,
|
|
146
147
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
147
148
|
absoluteValues: t.values || [],
|
|
148
|
-
proportion:
|
|
149
|
-
})))),
|
|
149
|
+
proportion: ut.value[a]
|
|
150
|
+
})))), rt = d(() => h.value.map((t, a) => ({
|
|
150
151
|
absoluteIndex: t.absoluteIndex,
|
|
151
152
|
uid: t.uid,
|
|
152
153
|
name: t.name,
|
|
153
154
|
color: t.color,
|
|
154
155
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
155
156
|
absoluteValues: t.values || [],
|
|
156
|
-
proportion:
|
|
157
|
+
proportion: st.value[a]
|
|
157
158
|
})));
|
|
158
|
-
function
|
|
159
|
-
return
|
|
159
|
+
function nt() {
|
|
160
|
+
return rt.value.map((t) => ({
|
|
160
161
|
name: t.name,
|
|
161
162
|
color: t.color,
|
|
162
163
|
value: t.value,
|
|
163
164
|
proportion: t.proportion
|
|
164
165
|
}));
|
|
165
166
|
}
|
|
166
|
-
const
|
|
167
|
+
const it = d(() => {
|
|
167
168
|
let t = 0;
|
|
168
|
-
return
|
|
169
|
+
return J.value.map((a, l) => {
|
|
169
170
|
const o = t, u = o + a.proportion, v = [];
|
|
170
171
|
for (let y = Math.floor(o); y < Math.floor(u); y += 1)
|
|
171
172
|
v.push(y);
|
|
@@ -175,7 +176,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
175
176
|
rects: v
|
|
176
177
|
};
|
|
177
178
|
});
|
|
178
|
-
}), i = d(() =>
|
|
179
|
+
}), i = d(() => it.value.flatMap((t, a) => t.rects.map((l, o) => ({
|
|
179
180
|
isFirst: o === 0,
|
|
180
181
|
isLongEnough: l.length > 2,
|
|
181
182
|
name: t.name,
|
|
@@ -199,49 +200,52 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
199
200
|
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
|
|
200
201
|
});
|
|
201
202
|
return t;
|
|
202
|
-
}), p = c([]), N = c(!1),
|
|
203
|
-
function
|
|
203
|
+
}), p = c([]), N = c(!1), Le = c(null), Fe = c(null);
|
|
204
|
+
function ze(t) {
|
|
205
|
+
if (Y.value) return;
|
|
204
206
|
if (!e.value.useAnimation) {
|
|
205
|
-
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length <
|
|
207
|
+
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < E.value.length - 1 && E.value.length > 1 && p.value.push(t);
|
|
206
208
|
return;
|
|
207
209
|
}
|
|
208
|
-
const a =
|
|
210
|
+
const a = se.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0);
|
|
209
211
|
let o = l;
|
|
210
|
-
if (
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
212
|
+
if (!(l === 0 && a === 0)) {
|
|
213
|
+
if (p.value.includes(t)) {
|
|
214
|
+
let v = function() {
|
|
215
|
+
o > u ? (cancelAnimationFrame(Le.value), h.value = h.value.map((y, w) => y.uid === t ? {
|
|
216
|
+
...y,
|
|
217
|
+
values: [u]
|
|
218
|
+
} : y), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
|
|
219
|
+
...y,
|
|
220
|
+
values: [o]
|
|
221
|
+
} : y), Le.value = requestAnimationFrame(v));
|
|
222
|
+
};
|
|
223
|
+
p.value = p.value.filter((y) => y !== t);
|
|
224
|
+
const u = a;
|
|
225
|
+
v();
|
|
226
|
+
} else if (p.value.length < E.value.length - 1 && E.value.length > 1) {
|
|
227
|
+
let u = function() {
|
|
228
|
+
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, y) => v.uid === t ? {
|
|
229
|
+
...v,
|
|
230
|
+
values: [0]
|
|
231
|
+
} : v), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
|
|
232
|
+
...v,
|
|
233
|
+
values: [o]
|
|
234
|
+
} : v), Fe.value = requestAnimationFrame(u));
|
|
235
|
+
};
|
|
236
|
+
u();
|
|
237
|
+
}
|
|
238
|
+
dt("selectLegend", J.value.map((u) => ({
|
|
239
|
+
name: u.name,
|
|
240
|
+
color: u.color,
|
|
241
|
+
value: u.value,
|
|
242
|
+
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
243
|
+
})));
|
|
234
244
|
}
|
|
235
|
-
ct("selectLegend", Y.value.map((u) => ({
|
|
236
|
-
name: u.name,
|
|
237
|
-
color: u.color,
|
|
238
|
-
value: u.value,
|
|
239
|
-
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
240
|
-
})));
|
|
241
245
|
}
|
|
242
|
-
const
|
|
246
|
+
const E = d(() => h.value.map((t, a) => ({
|
|
243
247
|
name: t.name,
|
|
244
|
-
color: t.color ||
|
|
248
|
+
color: t.color || Oe[a] || M[a] || M[a % M.length],
|
|
245
249
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
246
250
|
uid: t.uid,
|
|
247
251
|
shape: "square"
|
|
@@ -249,33 +253,33 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
249
253
|
...t,
|
|
250
254
|
proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
|
|
251
255
|
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
252
|
-
segregate: () =>
|
|
256
|
+
segregate: () => ze(t.uid),
|
|
253
257
|
isSegregated: p.value.includes(t.uid)
|
|
254
|
-
}))),
|
|
258
|
+
}))), vt = d(() => ({
|
|
255
259
|
cy: "waffle-div-legend",
|
|
256
260
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
257
261
|
color: e.value.style.chart.legend.color,
|
|
258
262
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
259
263
|
paddingBottom: 12,
|
|
260
264
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
261
|
-
})), O = d(() =>
|
|
262
|
-
function
|
|
265
|
+
})), O = d(() => J.value.map((t) => t.value).reduce((t, a) => t + a, 0)), re = c(null);
|
|
266
|
+
function ct(t) {
|
|
263
267
|
if (p.value.length === m.dataset.length) return;
|
|
264
268
|
const a = i.value[t];
|
|
265
|
-
|
|
269
|
+
re.value = {
|
|
266
270
|
datapoint: a,
|
|
267
271
|
seriesIndex: a.absoluteIndex,
|
|
268
272
|
series: h.value,
|
|
269
273
|
config: e.value
|
|
270
|
-
},
|
|
274
|
+
}, ae.value = !0, D.value = i.value[t].serieIndex;
|
|
271
275
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
272
|
-
if (Ft(l) &&
|
|
276
|
+
if (Ft(l) && zt(() => l({
|
|
273
277
|
seriesIndex: i.value[t].absoluteIndex,
|
|
274
278
|
datapoint: a,
|
|
275
279
|
series: h.value,
|
|
276
280
|
config: e.value
|
|
277
281
|
})))
|
|
278
|
-
|
|
282
|
+
oe.value = l({
|
|
279
283
|
seriesIndex: i.value[t].absoluteIndex,
|
|
280
284
|
datapoint: a,
|
|
281
285
|
series: h.value,
|
|
@@ -283,7 +287,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
283
287
|
});
|
|
284
288
|
else {
|
|
285
289
|
let o = "";
|
|
286
|
-
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}" />${
|
|
290
|
+
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}" />${lt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${q(
|
|
287
291
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
288
292
|
a.value,
|
|
289
293
|
_({
|
|
@@ -299,34 +303,34 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
299
303
|
}
|
|
300
304
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
301
305
|
const u = _({
|
|
302
|
-
v: a.value / O.value * 100,
|
|
306
|
+
v: Y.value ? 1 / m.dataset.length * 100 : a.value / O.value * 100,
|
|
303
307
|
s: "%",
|
|
304
308
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
305
309
|
});
|
|
306
310
|
e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
|
|
307
311
|
}
|
|
308
|
-
|
|
312
|
+
oe.value = o;
|
|
309
313
|
}
|
|
310
314
|
}
|
|
311
|
-
const
|
|
312
|
-
const t =
|
|
315
|
+
const dt = He, P = d(() => {
|
|
316
|
+
const t = J.value.map((l) => ({
|
|
313
317
|
name: l.name,
|
|
314
318
|
color: l.color
|
|
315
|
-
})), a =
|
|
319
|
+
})), a = J.value.map((l) => l.value);
|
|
316
320
|
return { head: t, body: a };
|
|
317
321
|
});
|
|
318
|
-
function
|
|
322
|
+
function ee(t) {
|
|
319
323
|
return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
|
|
320
324
|
}
|
|
321
|
-
function
|
|
322
|
-
|
|
325
|
+
function Ne(t = null) {
|
|
326
|
+
gt(() => {
|
|
323
327
|
const a = P.value.head.map((u, v) => [[
|
|
324
328
|
u.name
|
|
325
|
-
], [P.value.body[v]], [isNaN(P.value.body[v] / O.value) ? "-" : P.value.body[v] / O.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o =
|
|
326
|
-
t ? t(o) :
|
|
329
|
+
], [P.value.body[v]], [isNaN(P.value.body[v] / O.value) ? "-" : P.value.body[v] / O.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = At(l);
|
|
330
|
+
t ? t(o) : Lt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
327
331
|
});
|
|
328
332
|
}
|
|
329
|
-
const
|
|
333
|
+
const te = d(() => {
|
|
330
334
|
const t = [
|
|
331
335
|
' <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>',
|
|
332
336
|
q(
|
|
@@ -384,60 +388,60 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
384
388
|
config: l,
|
|
385
389
|
colNames: o
|
|
386
390
|
};
|
|
387
|
-
}),
|
|
388
|
-
function
|
|
389
|
-
|
|
391
|
+
}), G = c(!1);
|
|
392
|
+
function ht(t) {
|
|
393
|
+
G.value = t, de.value += 1;
|
|
390
394
|
}
|
|
391
|
-
function
|
|
395
|
+
function Be() {
|
|
392
396
|
C.value.showTable = !C.value.showTable;
|
|
393
397
|
}
|
|
394
|
-
function
|
|
398
|
+
function Ve() {
|
|
395
399
|
C.value.showTooltip = !C.value.showTooltip;
|
|
396
400
|
}
|
|
397
|
-
const
|
|
398
|
-
function
|
|
399
|
-
|
|
401
|
+
const le = c(!1);
|
|
402
|
+
function ne() {
|
|
403
|
+
le.value = !le.value;
|
|
400
404
|
}
|
|
401
|
-
return
|
|
402
|
-
getData:
|
|
403
|
-
generatePdf:
|
|
404
|
-
generateCsv:
|
|
405
|
-
generateImage:
|
|
406
|
-
toggleTable:
|
|
407
|
-
toggleTooltip:
|
|
408
|
-
toggleAnnotator:
|
|
405
|
+
return qe({
|
|
406
|
+
getData: nt,
|
|
407
|
+
generatePdf: Te,
|
|
408
|
+
generateCsv: Ne,
|
|
409
|
+
generateImage: Se,
|
|
410
|
+
toggleTable: Be,
|
|
411
|
+
toggleTooltip: Ve,
|
|
412
|
+
toggleAnnotator: ne
|
|
409
413
|
}), (t, a) => (s(), r("div", {
|
|
410
|
-
class:
|
|
414
|
+
class: Re(`vue-ui-waffle ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
411
415
|
ref_key: "waffleChart",
|
|
412
416
|
ref: H,
|
|
413
417
|
id: `vue-ui-waffle_${k.value}`,
|
|
414
418
|
style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
415
|
-
onMouseenter: a[3] || (a[3] = () => n(
|
|
416
|
-
onMouseleave: a[4] || (a[4] = () => n(
|
|
419
|
+
onMouseenter: a[3] || (a[3] = () => n(we)(!0)),
|
|
420
|
+
onMouseleave: a[4] || (a[4] = () => n(we)(!1))
|
|
417
421
|
}, [
|
|
418
|
-
e.value.userOptions.buttons.annotator ? (s(), V(n(
|
|
422
|
+
e.value.userOptions.buttons.annotator ? (s(), V(n(Ye), {
|
|
419
423
|
key: 0,
|
|
420
|
-
svgRef: n(
|
|
424
|
+
svgRef: n(xe),
|
|
421
425
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
422
426
|
color: e.value.style.chart.color,
|
|
423
|
-
active:
|
|
424
|
-
onClose:
|
|
427
|
+
active: le.value,
|
|
428
|
+
onClose: ne
|
|
425
429
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
426
|
-
|
|
430
|
+
ot.value ? (s(), r("div", {
|
|
427
431
|
key: 1,
|
|
428
432
|
ref_key: "noTitle",
|
|
429
|
-
ref:
|
|
433
|
+
ref: ye,
|
|
430
434
|
class: "vue-data-ui-no-title-space",
|
|
431
435
|
style: "height:36px; width: 100%;background:transparent"
|
|
432
436
|
}, null, 512)) : f("", !0),
|
|
433
437
|
e.value.style.chart.title.text ? (s(), r("div", {
|
|
434
438
|
key: 2,
|
|
435
439
|
ref_key: "chartTitle",
|
|
436
|
-
ref:
|
|
440
|
+
ref: he,
|
|
437
441
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
438
442
|
}, [
|
|
439
|
-
(s(), V(
|
|
440
|
-
key: `title_${
|
|
443
|
+
(s(), V(Rt, {
|
|
444
|
+
key: `title_${ge.value}`,
|
|
441
445
|
config: {
|
|
442
446
|
title: {
|
|
443
447
|
cy: "waffle-title",
|
|
@@ -450,14 +454,14 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
450
454
|
}
|
|
451
455
|
}, null, 8, ["config"]))
|
|
452
456
|
], 512)) : f("", !0),
|
|
453
|
-
e.value.userOptions.show &&
|
|
457
|
+
e.value.userOptions.show && Q.value && (n(ke) || n(ue)) ? (s(), V(n(Ze), {
|
|
454
458
|
ref_key: "details",
|
|
455
|
-
ref:
|
|
456
|
-
key: `user_options_${
|
|
459
|
+
ref: at,
|
|
460
|
+
key: `user_options_${de.value}`,
|
|
457
461
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
458
462
|
color: e.value.style.chart.color,
|
|
459
|
-
isPrinting: n(
|
|
460
|
-
isImaging: n(
|
|
463
|
+
isPrinting: n(_e),
|
|
464
|
+
isImaging: n(Ie),
|
|
461
465
|
uid: k.value,
|
|
462
466
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
463
467
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -465,25 +469,25 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
465
469
|
hasXls: e.value.userOptions.buttons.csv,
|
|
466
470
|
hasTable: e.value.userOptions.buttons.table,
|
|
467
471
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
468
|
-
isFullscreen:
|
|
472
|
+
isFullscreen: G.value,
|
|
469
473
|
isTooltip: C.value.showTooltip,
|
|
470
474
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
471
475
|
chartElement: H.value,
|
|
472
476
|
position: e.value.userOptions.position,
|
|
473
477
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
474
|
-
isAnnotation:
|
|
478
|
+
isAnnotation: le.value,
|
|
475
479
|
callbacks: e.value.userOptions.callbacks,
|
|
476
|
-
onToggleFullscreen:
|
|
477
|
-
onGeneratePdf: n(
|
|
478
|
-
onGenerateCsv:
|
|
479
|
-
onGenerateImage: n(
|
|
480
|
-
onToggleTable:
|
|
481
|
-
onToggleTooltip:
|
|
482
|
-
onToggleAnnotator:
|
|
480
|
+
onToggleFullscreen: ht,
|
|
481
|
+
onGeneratePdf: n(Te),
|
|
482
|
+
onGenerateCsv: Ne,
|
|
483
|
+
onGenerateImage: n(Se),
|
|
484
|
+
onToggleTable: Be,
|
|
485
|
+
onToggleTooltip: Ve,
|
|
486
|
+
onToggleAnnotator: ne,
|
|
483
487
|
style: K({
|
|
484
|
-
visibility: n(
|
|
488
|
+
visibility: n(ke) ? n(ue) ? "visible" : "hidden" : "visible"
|
|
485
489
|
})
|
|
486
|
-
},
|
|
490
|
+
}, Ue({ _: 2 }, [
|
|
487
491
|
t.$slots.menuIcon ? {
|
|
488
492
|
name: "menuIcon",
|
|
489
493
|
fn: b(({ isOpen: l, color: o }) => [
|
|
@@ -541,18 +545,18 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
541
545
|
key: "7"
|
|
542
546
|
} : void 0
|
|
543
547
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
544
|
-
|
|
548
|
+
Q.value ? (s(), r("svg", {
|
|
545
549
|
key: 4,
|
|
546
550
|
ref_key: "svgRef",
|
|
547
|
-
ref:
|
|
548
|
-
xmlns: n(
|
|
549
|
-
class:
|
|
551
|
+
ref: xe,
|
|
552
|
+
xmlns: n(_t),
|
|
553
|
+
class: Re({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
550
554
|
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
551
555
|
style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
552
556
|
}, [
|
|
553
|
-
|
|
557
|
+
ve(n(et)),
|
|
554
558
|
x("defs", null, [
|
|
555
|
-
(s(!0), r($, null,
|
|
559
|
+
(s(!0), r($, null, L(i.value, (l, o) => (s(), r("radialGradient", {
|
|
556
560
|
cx: "50%",
|
|
557
561
|
cy: "50%",
|
|
558
562
|
r: "50%",
|
|
@@ -562,13 +566,13 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
562
566
|
}, [
|
|
563
567
|
x("stop", {
|
|
564
568
|
offset: "0%",
|
|
565
|
-
"stop-color": n(
|
|
566
|
-
}, null, 8,
|
|
569
|
+
"stop-color": n(It)(n(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
570
|
+
}, null, 8, Ht),
|
|
567
571
|
x("stop", {
|
|
568
572
|
offset: "100%",
|
|
569
573
|
"stop-color": l.color
|
|
570
|
-
}, null, 8,
|
|
571
|
-
], 8,
|
|
574
|
+
}, null, 8, Xt)
|
|
575
|
+
], 8, qt))), 256))
|
|
572
576
|
]),
|
|
573
577
|
x("defs", null, [
|
|
574
578
|
x("filter", {
|
|
@@ -586,17 +590,17 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
586
590
|
type: "saturate",
|
|
587
591
|
values: "0"
|
|
588
592
|
}, null, -1)
|
|
589
|
-
]), 8,
|
|
593
|
+
]), 8, Yt)
|
|
590
594
|
]),
|
|
591
|
-
e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 },
|
|
595
|
+
e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 }, L(U.value, (l, o) => (s(), r("foreignObject", {
|
|
592
596
|
x: l.x,
|
|
593
597
|
y: l.y,
|
|
594
598
|
height: S.value <= 0 ? 1e-4 : S.value,
|
|
595
599
|
width: T.value <= 0 ? 1e-4 : T.value,
|
|
596
600
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
597
601
|
}, [
|
|
598
|
-
g(t.$slots, "cell",
|
|
599
|
-
], 8,
|
|
602
|
+
g(t.$slots, "cell", Ee({ ref_for: !0 }, { cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : i.value[o].serieIndex === D.value }), void 0, !0)
|
|
603
|
+
], 8, Jt))), 256)) : f("", !0),
|
|
600
604
|
!i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
|
|
601
605
|
key: 1,
|
|
602
606
|
x: 12,
|
|
@@ -607,12 +611,12 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
607
611
|
fill: "none",
|
|
608
612
|
stroke: "black"
|
|
609
613
|
}, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
|
|
610
|
-
t.$slots.pattern ? (s(), r("g",
|
|
611
|
-
(s(!0), r($, null,
|
|
612
|
-
g(t.$slots, "pattern",
|
|
614
|
+
t.$slots.pattern ? (s(), r("g", Qt, [
|
|
615
|
+
(s(!0), r($, null, L(se.value, (l) => (s(), r("defs", null, [
|
|
616
|
+
g(t.$slots, "pattern", Ee({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
613
617
|
]))), 256))
|
|
614
618
|
])) : f("", !0),
|
|
615
|
-
(s(!0), r($, null,
|
|
619
|
+
(s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
|
|
616
620
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
617
621
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
618
622
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -621,9 +625,9 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
621
625
|
fill: "white",
|
|
622
626
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
623
627
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
624
|
-
filter:
|
|
625
|
-
}, null, 8,
|
|
626
|
-
(s(!0), r($, null,
|
|
628
|
+
filter: ee(i.value[o].serieIndex)
|
|
629
|
+
}, null, 8, Zt))), 256)),
|
|
630
|
+
(s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
|
|
627
631
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
628
632
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
629
633
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -632,10 +636,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
632
636
|
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : i.value[o].color,
|
|
633
637
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
634
638
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
635
|
-
filter:
|
|
636
|
-
}, null, 8,
|
|
637
|
-
t.$slots.pattern ? (s(), r("g",
|
|
638
|
-
(s(!0), r($, null,
|
|
639
|
+
filter: ee(i.value[o].serieIndex)
|
|
640
|
+
}, null, 8, el))), 256)),
|
|
641
|
+
t.$slots.pattern ? (s(), r("g", tl, [
|
|
642
|
+
(s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
|
|
639
643
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
640
644
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
641
645
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -643,26 +647,26 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
643
647
|
width: T.value <= 0 ? 1e-4 : T.value,
|
|
644
648
|
fill: `url(#pattern_${k.value}_${i.value[o].absoluteIndex})`,
|
|
645
649
|
stroke: "none",
|
|
646
|
-
filter:
|
|
647
|
-
}, null, 8,
|
|
650
|
+
filter: ee(i.value[o].serieIndex)
|
|
651
|
+
}, null, 8, ll))), 256))
|
|
648
652
|
])) : f("", !0)
|
|
649
653
|
], 64)) : f("", !0),
|
|
650
|
-
(s(!0), r($, null,
|
|
654
|
+
(s(!0), r($, null, L(U.value, (l, o) => (s(), r($, null, [
|
|
651
655
|
i.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (i.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || i.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && i.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
|
|
652
656
|
key: 0,
|
|
653
657
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
654
658
|
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
655
|
-
height:
|
|
659
|
+
height: Z.value <= 0 ? 1e-4 : Z.value,
|
|
656
660
|
width: X.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : X.value * e.value.style.chart.layout.grid.size,
|
|
657
|
-
filter:
|
|
661
|
+
filter: ee(i.value[o].serieIndex)
|
|
658
662
|
}, [
|
|
659
663
|
x("div", {
|
|
660
664
|
class: "vue-ui-waffle-caption",
|
|
661
|
-
style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${n(
|
|
665
|
+
style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${n(St)(i.value[o].color)};gap:2px`)
|
|
662
666
|
}, [
|
|
663
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span",
|
|
664
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span",
|
|
665
|
-
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span",
|
|
667
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", ol, F(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(Ot)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : f("", !0),
|
|
668
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ul, F(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
|
|
669
|
+
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", sl, " (" + F(n(q)(
|
|
666
670
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
667
671
|
i.value[o].value,
|
|
668
672
|
n(_)({
|
|
@@ -673,7 +677,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
673
677
|
}),
|
|
674
678
|
{ datapoint: i.value[o], position: l }
|
|
675
679
|
)) + ") ", 1)) : f("", !0),
|
|
676
|
-
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span",
|
|
680
|
+
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", rl, F(n(q)(
|
|
677
681
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
678
682
|
i.value[o].value,
|
|
679
683
|
n(_)({
|
|
@@ -685,26 +689,26 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
685
689
|
{ datapoint: i.value[o], position: l }
|
|
686
690
|
)), 1)) : f("", !0)
|
|
687
691
|
], 4)
|
|
688
|
-
], 8,
|
|
692
|
+
], 8, al)) : f("", !0)
|
|
689
693
|
], 64))), 256)),
|
|
690
|
-
(s(!0), r($, null,
|
|
691
|
-
onMouseover: (u) =>
|
|
694
|
+
(s(!0), r($, null, L(U.value, (l, o) => (s(), r("rect", {
|
|
695
|
+
onMouseover: (u) => ct(o),
|
|
692
696
|
onMouseleave: a[0] || (a[0] = (u) => {
|
|
693
|
-
|
|
697
|
+
ae.value = !1, D.value = null;
|
|
694
698
|
}),
|
|
695
699
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
696
700
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
697
|
-
height:
|
|
701
|
+
height: Z.value <= 0 ? 1e-4 : Z.value,
|
|
698
702
|
width: X.value <= 0 ? 1e-4 : X.value,
|
|
699
703
|
fill: "transparent",
|
|
700
704
|
stroke: "none"
|
|
701
|
-
}, null, 40,
|
|
705
|
+
}, null, 40, nl))), 256)),
|
|
702
706
|
g(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
703
|
-
], 14,
|
|
704
|
-
t.$slots.watermark ? (s(), r("div",
|
|
705
|
-
g(t.$slots, "watermark", j(W({ isPrinting: n(
|
|
707
|
+
], 14, Wt)) : f("", !0),
|
|
708
|
+
t.$slots.watermark ? (s(), r("div", il, [
|
|
709
|
+
g(t.$slots, "watermark", j(W({ isPrinting: n(_e) || n(Ie) })), void 0, !0)
|
|
706
710
|
])) : f("", !0),
|
|
707
|
-
|
|
711
|
+
Q.value ? f("", !0) : (s(), V(n(Ke), {
|
|
708
712
|
key: 6,
|
|
709
713
|
config: {
|
|
710
714
|
type: "waffle",
|
|
@@ -718,20 +722,20 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
718
722
|
}, null, 8, ["config"])),
|
|
719
723
|
x("div", {
|
|
720
724
|
ref_key: "chartLegend",
|
|
721
|
-
ref:
|
|
725
|
+
ref: pe
|
|
722
726
|
}, [
|
|
723
|
-
e.value.style.chart.legend.show ? (s(), V(
|
|
724
|
-
key: `legend_${
|
|
725
|
-
legendSet:
|
|
726
|
-
config:
|
|
727
|
-
onClickMarker: a[1] || (a[1] = ({ legend: l }) =>
|
|
728
|
-
},
|
|
727
|
+
e.value.style.chart.legend.show ? (s(), V(Ut, {
|
|
728
|
+
key: `legend_${me.value}`,
|
|
729
|
+
legendSet: E.value,
|
|
730
|
+
config: vt.value,
|
|
731
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => ze(l.uid))
|
|
732
|
+
}, Ue({
|
|
729
733
|
item: b(({ legend: l }) => [
|
|
730
734
|
x("div", {
|
|
731
735
|
onClick: (o) => l.segregate(),
|
|
732
736
|
style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
733
737
|
}, [
|
|
734
|
-
Ge(
|
|
738
|
+
Ge(F(l.name) + ": " + F(n(q)(
|
|
735
739
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
736
740
|
l.value,
|
|
737
741
|
n(_)({
|
|
@@ -743,15 +747,15 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
743
747
|
}),
|
|
744
748
|
{ datapoint: l }
|
|
745
749
|
)) + " ", 1),
|
|
746
|
-
p.value.includes(l.uid) ? (s(), r("span",
|
|
747
|
-
], 12,
|
|
750
|
+
p.value.includes(l.uid) ? (s(), r("span", dl, " ( - % ) ")) : (s(), r("span", cl, " (" + F(isNaN(l.value / O.value) ? "-" : n(_)({ v: l.value / O.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
|
|
751
|
+
], 12, vl)
|
|
748
752
|
]),
|
|
749
753
|
_: 2
|
|
750
754
|
}, [
|
|
751
755
|
t.$slots.pattern ? {
|
|
752
756
|
name: "legend-pattern",
|
|
753
757
|
fn: b(({ legend: l, index: o }) => [
|
|
754
|
-
|
|
758
|
+
ve(Et, {
|
|
755
759
|
shape: l.shape,
|
|
756
760
|
radius: 30,
|
|
757
761
|
stroke: "none",
|
|
@@ -763,19 +767,19 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
763
767
|
} : void 0
|
|
764
768
|
]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
765
769
|
key: 1,
|
|
766
|
-
legend:
|
|
770
|
+
legend: E.value
|
|
767
771
|
}, void 0, !0)
|
|
768
772
|
], 512),
|
|
769
773
|
t.$slots.source ? (s(), r("div", {
|
|
770
774
|
key: 7,
|
|
771
775
|
ref_key: "source",
|
|
772
|
-
ref:
|
|
776
|
+
ref: fe,
|
|
773
777
|
dir: "auto"
|
|
774
778
|
}, [
|
|
775
779
|
g(t.$slots, "source", {}, void 0, !0)
|
|
776
780
|
], 512)) : f("", !0),
|
|
777
|
-
|
|
778
|
-
show: C.value.showTooltip &&
|
|
781
|
+
ve(n(Qe), {
|
|
782
|
+
show: C.value.showTooltip && ae.value && p.value.length < m.dataset.length,
|
|
779
783
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
780
784
|
color: e.value.style.chart.tooltip.color,
|
|
781
785
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -785,20 +789,20 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
785
789
|
position: e.value.style.chart.tooltip.position,
|
|
786
790
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
787
791
|
parent: H.value,
|
|
788
|
-
content:
|
|
792
|
+
content: oe.value,
|
|
789
793
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
790
794
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
791
|
-
isFullscreen:
|
|
795
|
+
isFullscreen: G.value
|
|
792
796
|
}, {
|
|
793
797
|
"tooltip-before": b(() => [
|
|
794
|
-
g(t.$slots, "tooltip-before", j(W({ ...
|
|
798
|
+
g(t.$slots, "tooltip-before", j(W({ ...re.value })), void 0, !0)
|
|
795
799
|
]),
|
|
796
800
|
"tooltip-after": b(() => [
|
|
797
|
-
g(t.$slots, "tooltip-after", j(W({ ...
|
|
801
|
+
g(t.$slots, "tooltip-after", j(W({ ...re.value })), void 0, !0)
|
|
798
802
|
]),
|
|
799
803
|
_: 3
|
|
800
804
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
|
|
801
|
-
|
|
805
|
+
Q.value ? (s(), V(n(Je), {
|
|
802
806
|
key: 8,
|
|
803
807
|
hideDetails: "",
|
|
804
808
|
config: {
|
|
@@ -815,12 +819,12 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
815
819
|
}
|
|
816
820
|
}, {
|
|
817
821
|
content: b(() => [
|
|
818
|
-
(s(), V(n(
|
|
819
|
-
key: `table_${
|
|
820
|
-
colNames:
|
|
821
|
-
head:
|
|
822
|
-
body:
|
|
823
|
-
config:
|
|
822
|
+
(s(), V(n(Xe), {
|
|
823
|
+
key: `table_${be.value}`,
|
|
824
|
+
colNames: te.value.colNames,
|
|
825
|
+
head: te.value.head,
|
|
826
|
+
body: te.value.body,
|
|
827
|
+
config: te.value.config,
|
|
824
828
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
825
829
|
onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
|
|
826
830
|
}, {
|
|
@@ -828,19 +832,19 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
828
832
|
x("div", {
|
|
829
833
|
innerHTML: l,
|
|
830
834
|
style: { display: "flex", "align-items": "center" }
|
|
831
|
-
}, null, 8,
|
|
835
|
+
}, null, 8, hl)
|
|
832
836
|
]),
|
|
833
837
|
td: b(({ td: l }) => [
|
|
834
|
-
Ge(
|
|
838
|
+
Ge(F(l.name || l), 1)
|
|
835
839
|
]),
|
|
836
840
|
_: 1
|
|
837
841
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
838
842
|
]),
|
|
839
843
|
_: 1
|
|
840
844
|
}, 8, ["config"])) : f("", !0)
|
|
841
|
-
], 46,
|
|
845
|
+
], 46, jt));
|
|
842
846
|
}
|
|
843
|
-
},
|
|
847
|
+
}, Il = /* @__PURE__ */ Gt(pl, [["__scopeId", "data-v-da21b411"]]);
|
|
844
848
|
export {
|
|
845
|
-
|
|
849
|
+
Il as default
|
|
846
850
|
};
|