vue-data-ui 2.12.7-beta.0 → 2.12.7-beta.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-CmqjRRUl.js → Arrow-BhI2Y-DB.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-DyUBiw-C.js} +68 -64
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-PZPlJOYf.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-Bni7kKI_.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-bcUa-A_V.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-iNd1Vv1J.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-DwB3JfsE.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-BVH19wf6.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-U4bWifCe.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-CTyy5HJi.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-hiaHGsme.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-oo_wqrT6.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-BTCPUIcD.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B9AfUFVK.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-yZJ8noVU.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-BgRIWz9M.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CgYxq-UP.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-CaxNz2cE.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-eUy0b_yU.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-DpK9-Xt0.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-BprQttno.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-BkO9svuE.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-Bft3k9wg.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-BZ16n4QT.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BblPK5iv.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-DW3swnxO.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-DybokJeh.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-aXzuaWXT.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-D7_v27hl.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-ClfPFRWK.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-Clo2yN8x.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-B8JmpYZU.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-1NiHT8ua.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-Dqu8UHsY.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-CUtyrFQ-.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-5_qG_tB0.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-1lYLTlUJ.js} +106 -104
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-CuwZfqp-.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-nxV5Lnel.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-tTYudPKX.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-CB7f2IrG.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-C-GUoJrH.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-DJCYaqYy.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-Bbzq8KZx.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-B8-Tt_rt.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-VZWKmy4e.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-DzRSBGF2.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-Bd_c8Hcd.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-CjiJjcj8.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-CVhAGwOt.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-D9pp5ytM.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-hOcz4qfM.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-Ht49w0AN.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-SFe7EifM.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-C1mc0XYY.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DVYexEqN.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-CFkW0M7L.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-DcOstg2I.js} +145 -142
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-C56TMht1.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-C2S6nsP6.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-C2paDc2u.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-gtVgClTv.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend-C_p-qgkO.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-DIS3FVja.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-D92XnV3e.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BQlf7QW3.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-C9vOtZav.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-B2G5fOpR.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-L_7f4pZj.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-Dhj9PQvC.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-CZ1DXGtE.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-C8oJOBM-.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D-ZfWmxu.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-D7S49sXa.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-Bh_0k4fp.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-CQVFXHjo.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DshqhXXR.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-64gS06ES.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-MjyNmQ85.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-FzQbyvix.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BHPSrRVK.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-8UgjM7P9.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-BbYuna1k.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-CDNUpxZ5.js} +7 -7
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Ee } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { defineAsyncComponent as B, useSlots as ht, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as pt, onBeforeUnmount as ft, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as De, createBlock as V, createCommentVNode as f, createElementVNode as x, createVNode as ie, createSlots as Re, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as F, mergeProps as Ue, toDisplayString as L, createTextVNode as Ge, nextTick as yt } from "vue";
|
|
2
|
+
import { u as gt, c as bt, t as mt, p as M, a as wt, o as kt, e as ve, g as xt, b as Ct, i as q, f as _, X as $t, s as _t, w as It, G as Tt, K as St, d as Pt, q as Ot, r as At, x as Ft, y as Lt } from "./index-CaxNz2cE.js";
|
|
3
|
+
import { t as zt, u as Nt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as Ee } from "./useNestedProp-DpK9-Xt0.js";
|
|
5
|
+
import { u as Bt } from "./usePrinter-BprQttno.js";
|
|
6
|
+
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Dt from "./Title-BTCPUIcD.js";
|
|
9
|
+
import Rt from "./Legend-iNd1Vv1J.js";
|
|
10
|
+
import Ut from "./Shape-CTyy5HJi.js";
|
|
10
11
|
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
12
|
const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"], Ht = ["stop-color"], Xt = ["id"], Yt = ["x", "y", "height", "width"], Kt = ["height", "width"], Jt = { key: 0 }, Qt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Zt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], el = { key: 1 }, tl = ["rx", "x", "y", "height", "width", "fill", "filter"], ll = ["x", "y", "height", "width", "filter"], al = { key: 0 }, ol = { key: 1 }, ul = { key: 2 }, sl = { key: 3 }, rl = ["onMouseover", "x", "y", "height", "width"], nl = {
|
|
12
13
|
key: 5,
|
|
@@ -29,33 +30,33 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
29
30
|
},
|
|
30
31
|
emits: ["selectLegend"],
|
|
31
32
|
setup(je, { expose: We, emit: qe }) {
|
|
32
|
-
const He =
|
|
33
|
+
const He = B(() => import("./DataTable-bcUa-A_V.js")), Xe = B(() => import("./PenAndPaper-U4bWifCe.js")), Ye = B(() => import("./vue-ui-accordion-BZ16n4QT.js")), Ke = B(() => import("./vue-ui-skeleton-C2paDc2u.js")), Je = B(() => import("./Tooltip-B9AfUFVK.js")), Qe = B(() => import("./UserOptions-yZJ8noVU.js")), Ze = B(() => import("./PackageVersion-BVH19wf6.js")), { vue_ui_waffle: et } = gt(), m = je, tt = ht(), J = d(() => !!m.dataset && m.dataset.length), k = c(bt()), lt = c(null), le = c(!1), ae = c(""), D = c(null), ce = c(0), H = c(null), de = c(null), he = c(null), pe = c(null), fe = c(null), ye = c(0), ge = c(0), be = c(0), e = d({
|
|
33
34
|
get: () => xe(),
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible: oe, setUserOptionsVisibility: me, keepUserOptionState: we } =
|
|
36
|
+
}), { userOptionsVisible: oe, setUserOptionsVisibility: me, keepUserOptionState: we } = Vt({ config: e.value }), { svgRef: ke } = Mt({ config: e.value.style.chart.title });
|
|
36
37
|
function xe() {
|
|
37
38
|
const t = Ee({
|
|
38
39
|
userConfig: m.config,
|
|
39
|
-
defaultConfig:
|
|
40
|
+
defaultConfig: et
|
|
40
41
|
});
|
|
41
42
|
return t.theme ? {
|
|
42
43
|
...Ee({
|
|
43
|
-
userConfig:
|
|
44
|
+
userConfig: wt.vue_ui_waffle[t.theme] || m.config,
|
|
44
45
|
defaultConfig: t
|
|
45
46
|
}),
|
|
46
|
-
customPalette:
|
|
47
|
+
customPalette: mt[t.theme] || M
|
|
47
48
|
} : t;
|
|
48
49
|
}
|
|
49
50
|
Ve(() => m.config, (t) => {
|
|
50
|
-
e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(),
|
|
51
|
+
e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(), ye.value += 1, ge.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
51
52
|
}, { deep: !0 });
|
|
52
53
|
const A = Me(null), R = Me(null);
|
|
53
54
|
function Ce() {
|
|
54
|
-
if (
|
|
55
|
+
if (kt(m.dataset) ? ve({
|
|
55
56
|
componentName: "VueUiWaffle",
|
|
56
57
|
type: "dataset"
|
|
57
58
|
}) : m.dataset.forEach((t, a) => {
|
|
58
|
-
|
|
59
|
+
xt({
|
|
59
60
|
datasetObject: t,
|
|
60
61
|
requiredAttributes: ["name", "values"]
|
|
61
62
|
}).forEach((l) => {
|
|
@@ -67,34 +68,34 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
67
68
|
});
|
|
68
69
|
});
|
|
69
70
|
}), e.value.responsive) {
|
|
70
|
-
const t =
|
|
71
|
-
const { width: a, height: l } =
|
|
71
|
+
const t = zt(() => {
|
|
72
|
+
const { width: a, height: l } = Nt({
|
|
72
73
|
chart: H.value,
|
|
73
74
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
74
75
|
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
75
76
|
source: pe.value,
|
|
76
|
-
noTitle:
|
|
77
|
+
noTitle: fe.value
|
|
77
78
|
});
|
|
78
79
|
requestAnimationFrame(() => {
|
|
79
|
-
|
|
80
|
+
z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
|
|
80
81
|
});
|
|
81
82
|
});
|
|
82
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);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
+
pt(() => {
|
|
86
87
|
Ce();
|
|
87
88
|
}), ft(() => {
|
|
88
89
|
A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
|
|
89
90
|
});
|
|
90
|
-
const { isPrinting: $e, isImaging: _e, generatePdf: Ie, generateImage: Te } =
|
|
91
|
+
const { isPrinting: $e, isImaging: _e, generatePdf: Ie, generateImage: Te } = Bt({
|
|
91
92
|
elementId: `vue-ui-waffle_${k.value}`,
|
|
92
93
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
93
94
|
options: e.value.userOptions.print
|
|
94
|
-
}),
|
|
95
|
+
}), at = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = d(() => Ct(e.value.customPalette)), C = c({
|
|
95
96
|
showTable: e.value.table.show,
|
|
96
97
|
showTooltip: e.value.style.chart.tooltip.show
|
|
97
|
-
}),
|
|
98
|
+
}), z = c({
|
|
98
99
|
height: 512,
|
|
99
100
|
width: 512
|
|
100
101
|
}), I = c({
|
|
@@ -105,17 +106,17 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
105
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), Q = d(() => I.value.height / e.value.style.chart.layout.grid.size);
|
|
106
107
|
function Pe(t) {
|
|
107
108
|
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ne) => w + ne, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
|
|
108
|
-
let
|
|
109
|
-
for (;
|
|
109
|
+
let y = a - u.reduce((w, ne) => w + ne, 0);
|
|
110
|
+
for (; y > 0; ) {
|
|
110
111
|
let w = v.indexOf(Math.max(...v));
|
|
111
|
-
u[w] += 1, v[w] = 0,
|
|
112
|
+
u[w] += 1, v[w] = 0, y -= 1;
|
|
112
113
|
}
|
|
113
114
|
return u;
|
|
114
115
|
}
|
|
115
116
|
function Oe() {
|
|
116
117
|
return m.dataset.map((t, a) => ({
|
|
117
118
|
...t,
|
|
118
|
-
color:
|
|
119
|
+
color: Pt(t.color) || Se.value[a] || M[a] || M[a % M.length],
|
|
119
120
|
uid: `serie_${a}`,
|
|
120
121
|
absoluteIndex: a
|
|
121
122
|
}));
|
|
@@ -124,10 +125,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
124
125
|
Ve(() => m.dataset, (t) => {
|
|
125
126
|
h.value = Oe();
|
|
126
127
|
}, { deep: !0 });
|
|
127
|
-
const
|
|
128
|
+
const ot = d(() => {
|
|
128
129
|
const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
|
|
129
130
|
return Pe(t);
|
|
130
|
-
}),
|
|
131
|
+
}), ut = d(() => {
|
|
131
132
|
const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
|
|
132
133
|
return Pe(t);
|
|
133
134
|
}), Y = d(() => (m.dataset.forEach((t, a) => {
|
|
@@ -144,37 +145,37 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
144
145
|
color: t.color,
|
|
145
146
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
146
147
|
absoluteValues: t.values || [],
|
|
147
|
-
proportion:
|
|
148
|
-
})))),
|
|
148
|
+
proportion: ot.value[a]
|
|
149
|
+
})))), st = d(() => h.value.map((t, a) => ({
|
|
149
150
|
absoluteIndex: t.absoluteIndex,
|
|
150
151
|
uid: t.uid,
|
|
151
152
|
name: t.name,
|
|
152
153
|
color: t.color,
|
|
153
154
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
154
155
|
absoluteValues: t.values || [],
|
|
155
|
-
proportion:
|
|
156
|
+
proportion: ut.value[a]
|
|
156
157
|
})));
|
|
157
|
-
function
|
|
158
|
-
return
|
|
158
|
+
function rt() {
|
|
159
|
+
return st.value.map((t) => ({
|
|
159
160
|
name: t.name,
|
|
160
161
|
color: t.color,
|
|
161
162
|
value: t.value,
|
|
162
163
|
proportion: t.proportion
|
|
163
164
|
}));
|
|
164
165
|
}
|
|
165
|
-
const
|
|
166
|
+
const nt = d(() => {
|
|
166
167
|
let t = 0;
|
|
167
168
|
return Y.value.map((a, l) => {
|
|
168
169
|
const o = t, u = o + a.proportion, v = [];
|
|
169
|
-
for (let
|
|
170
|
-
v.push(
|
|
170
|
+
for (let y = Math.floor(o); y < Math.floor(u); y += 1)
|
|
171
|
+
v.push(y);
|
|
171
172
|
return t = u, {
|
|
172
173
|
...a,
|
|
173
174
|
start: o,
|
|
174
175
|
rects: v
|
|
175
176
|
};
|
|
176
177
|
});
|
|
177
|
-
}), i = d(() =>
|
|
178
|
+
}), i = d(() => nt.value.flatMap((t, a) => t.rects.map((l, o) => ({
|
|
178
179
|
isFirst: o === 0,
|
|
179
180
|
isLongEnough: l.length > 2,
|
|
180
181
|
name: t.name,
|
|
@@ -198,7 +199,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
198
199
|
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
|
|
199
200
|
});
|
|
200
201
|
return t;
|
|
201
|
-
}), p = c([]),
|
|
202
|
+
}), p = c([]), N = c(!1), Ae = c(null), Fe = c(null);
|
|
202
203
|
function Le(t) {
|
|
203
204
|
if (!e.value.useAnimation) {
|
|
204
205
|
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < G.value.length - 1 && G.value.length > 1 && p.value.push(t);
|
|
@@ -208,30 +209,30 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
208
209
|
let o = l;
|
|
209
210
|
if (p.value.includes(t)) {
|
|
210
211
|
let v = function() {
|
|
211
|
-
o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((
|
|
212
|
-
...
|
|
212
|
+
o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((y, w) => y.uid === t ? {
|
|
213
|
+
...y,
|
|
213
214
|
values: [u]
|
|
214
|
-
} :
|
|
215
|
-
...
|
|
215
|
+
} : y), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((y, w) => y.uid === t ? {
|
|
216
|
+
...y,
|
|
216
217
|
values: [o]
|
|
217
|
-
} :
|
|
218
|
+
} : y), Ae.value = requestAnimationFrame(v));
|
|
218
219
|
};
|
|
219
|
-
p.value = p.value.filter((
|
|
220
|
+
p.value = p.value.filter((y) => y !== t);
|
|
220
221
|
const u = a;
|
|
221
222
|
v();
|
|
222
223
|
} else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
|
|
223
224
|
let u = function() {
|
|
224
|
-
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v,
|
|
225
|
+
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, y) => v.uid === t ? {
|
|
225
226
|
...v,
|
|
226
227
|
values: [0]
|
|
227
|
-
} : v),
|
|
228
|
+
} : v), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
|
|
228
229
|
...v,
|
|
229
230
|
values: [o]
|
|
230
231
|
} : v), Fe.value = requestAnimationFrame(u));
|
|
231
232
|
};
|
|
232
233
|
u();
|
|
233
234
|
}
|
|
234
|
-
|
|
235
|
+
ct("selectLegend", Y.value.map((u) => ({
|
|
235
236
|
name: u.name,
|
|
236
237
|
color: u.color,
|
|
237
238
|
value: u.value,
|
|
@@ -250,7 +251,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
250
251
|
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
251
252
|
segregate: () => Le(t.uid),
|
|
252
253
|
isSegregated: p.value.includes(t.uid)
|
|
253
|
-
}))),
|
|
254
|
+
}))), it = d(() => ({
|
|
254
255
|
cy: "waffle-div-legend",
|
|
255
256
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
256
257
|
color: e.value.style.chart.legend.color,
|
|
@@ -258,7 +259,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
258
259
|
paddingBottom: 12,
|
|
259
260
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
260
261
|
})), P = d(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), se = c(null);
|
|
261
|
-
function
|
|
262
|
+
function vt(t) {
|
|
262
263
|
if (p.value.length === m.dataset.length) return;
|
|
263
264
|
const a = i.value[t];
|
|
264
265
|
se.value = {
|
|
@@ -268,7 +269,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
268
269
|
config: e.value
|
|
269
270
|
}, le.value = !0, D.value = i.value[t].serieIndex;
|
|
270
271
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
271
|
-
if (
|
|
272
|
+
if (Ft(l) && Lt(() => l({
|
|
272
273
|
seriesIndex: i.value[t].absoluteIndex,
|
|
273
274
|
datapoint: a,
|
|
274
275
|
series: h.value,
|
|
@@ -282,7 +283,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
282
283
|
});
|
|
283
284
|
else {
|
|
284
285
|
let o = "";
|
|
285
|
-
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}" />${
|
|
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}" />${tt.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(
|
|
286
287
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
287
288
|
a.value,
|
|
288
289
|
_({
|
|
@@ -307,7 +308,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
307
308
|
ae.value = o;
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
|
-
const
|
|
311
|
+
const ct = qe, O = d(() => {
|
|
311
312
|
const t = Y.value.map((l) => ({
|
|
312
313
|
name: l.name,
|
|
313
314
|
color: l.color
|
|
@@ -318,11 +319,11 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
318
319
|
return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
|
|
319
320
|
}
|
|
320
321
|
function ze() {
|
|
321
|
-
|
|
322
|
+
yt(() => {
|
|
322
323
|
const t = O.value.head.map((o, u) => [[
|
|
323
324
|
o.name
|
|
324
|
-
], [O.value.body[u]], [isNaN(O.value.body[u] / P.value) ? "-" : O.value.body[u] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l =
|
|
325
|
-
|
|
325
|
+
], [O.value.body[u]], [isNaN(O.value.body[u] / P.value) ? "-" : O.value.body[u] / P.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Ot(a);
|
|
326
|
+
At({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
326
327
|
});
|
|
327
328
|
}
|
|
328
329
|
const ee = d(() => {
|
|
@@ -384,7 +385,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
384
385
|
colNames: o
|
|
385
386
|
};
|
|
386
387
|
}), E = c(!1);
|
|
387
|
-
function
|
|
388
|
+
function dt(t) {
|
|
388
389
|
E.value = t, ce.value += 1;
|
|
389
390
|
}
|
|
390
391
|
function Ne() {
|
|
@@ -398,45 +399,45 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
398
399
|
te.value = !te.value;
|
|
399
400
|
}
|
|
400
401
|
return We({
|
|
401
|
-
getData:
|
|
402
|
+
getData: rt,
|
|
402
403
|
generatePdf: Ie,
|
|
403
404
|
generateCsv: ze,
|
|
404
405
|
generateImage: Te,
|
|
405
406
|
toggleTable: Ne,
|
|
406
407
|
toggleTooltip: Be,
|
|
407
408
|
toggleAnnotator: re
|
|
408
|
-
}), (t, a) => (s(),
|
|
409
|
+
}), (t, a) => (s(), r("div", {
|
|
409
410
|
class: De(`vue-ui-waffle ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
410
411
|
ref_key: "waffleChart",
|
|
411
412
|
ref: H,
|
|
412
413
|
id: `vue-ui-waffle_${k.value}`,
|
|
413
414
|
style: K(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
414
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
415
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
415
|
+
onMouseenter: a[3] || (a[3] = () => n(me)(!0)),
|
|
416
|
+
onMouseleave: a[4] || (a[4] = () => n(me)(!1))
|
|
416
417
|
}, [
|
|
417
|
-
e.value.userOptions.buttons.annotator ? (s(), V(
|
|
418
|
+
e.value.userOptions.buttons.annotator ? (s(), V(n(Xe), {
|
|
418
419
|
key: 0,
|
|
419
|
-
svgRef:
|
|
420
|
+
svgRef: n(ke),
|
|
420
421
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
421
422
|
color: e.value.style.chart.color,
|
|
422
423
|
active: te.value,
|
|
423
424
|
onClose: re
|
|
424
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
425
|
-
|
|
425
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
426
|
+
at.value ? (s(), r("div", {
|
|
426
427
|
key: 1,
|
|
427
428
|
ref_key: "noTitle",
|
|
428
|
-
ref:
|
|
429
|
+
ref: fe,
|
|
429
430
|
class: "vue-data-ui-no-title-space",
|
|
430
431
|
style: "height:36px; width: 100%;background:transparent"
|
|
431
|
-
}, null, 512)) :
|
|
432
|
-
e.value.style.chart.title.text ? (s(),
|
|
432
|
+
}, null, 512)) : f("", !0),
|
|
433
|
+
e.value.style.chart.title.text ? (s(), r("div", {
|
|
433
434
|
key: 2,
|
|
434
435
|
ref_key: "chartTitle",
|
|
435
436
|
ref: de,
|
|
436
437
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
437
438
|
}, [
|
|
438
|
-
(s(), V(
|
|
439
|
-
key: `title_${
|
|
439
|
+
(s(), V(Dt, {
|
|
440
|
+
key: `title_${ye.value}`,
|
|
440
441
|
config: {
|
|
441
442
|
title: {
|
|
442
443
|
cy: "waffle-title",
|
|
@@ -448,15 +449,15 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
451
|
}, null, 8, ["config"]))
|
|
451
|
-
], 512)) :
|
|
452
|
-
e.value.userOptions.show && J.value && (
|
|
452
|
+
], 512)) : f("", !0),
|
|
453
|
+
e.value.userOptions.show && J.value && (n(we) || n(oe)) ? (s(), V(n(Qe), {
|
|
453
454
|
ref_key: "details",
|
|
454
|
-
ref:
|
|
455
|
+
ref: lt,
|
|
455
456
|
key: `user_options_${ce.value}`,
|
|
456
457
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
457
458
|
color: e.value.style.chart.color,
|
|
458
|
-
isPrinting:
|
|
459
|
-
isImaging:
|
|
459
|
+
isPrinting: n($e),
|
|
460
|
+
isImaging: n(_e),
|
|
460
461
|
uid: k.value,
|
|
461
462
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
462
463
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -471,15 +472,15 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
471
472
|
position: e.value.userOptions.position,
|
|
472
473
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
473
474
|
isAnnotation: te.value,
|
|
474
|
-
onToggleFullscreen:
|
|
475
|
-
onGeneratePdf:
|
|
475
|
+
onToggleFullscreen: dt,
|
|
476
|
+
onGeneratePdf: n(Ie),
|
|
476
477
|
onGenerateCsv: ze,
|
|
477
|
-
onGenerateImage:
|
|
478
|
+
onGenerateImage: n(Te),
|
|
478
479
|
onToggleTable: Ne,
|
|
479
480
|
onToggleTooltip: Be,
|
|
480
481
|
onToggleAnnotator: re,
|
|
481
482
|
style: K({
|
|
482
|
-
visibility:
|
|
483
|
+
visibility: n(we) ? n(oe) ? "visible" : "hidden" : "visible"
|
|
483
484
|
})
|
|
484
485
|
}, Re({ _: 2 }, [
|
|
485
486
|
t.$slots.menuIcon ? {
|
|
@@ -538,19 +539,19 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
538
539
|
]),
|
|
539
540
|
key: "7"
|
|
540
541
|
} : void 0
|
|
541
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
542
|
-
J.value ? (s(),
|
|
542
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
543
|
+
J.value ? (s(), r("svg", {
|
|
543
544
|
key: 4,
|
|
544
545
|
ref_key: "svgRef",
|
|
545
546
|
ref: ke,
|
|
546
|
-
xmlns:
|
|
547
|
+
xmlns: n($t),
|
|
547
548
|
class: De({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
548
|
-
viewBox: `0 0 ${
|
|
549
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
549
550
|
style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
550
551
|
}, [
|
|
551
|
-
ie(
|
|
552
|
+
ie(n(Ze)),
|
|
552
553
|
x("defs", null, [
|
|
553
|
-
(s(!0),
|
|
554
|
+
(s(!0), r($, null, F(i.value, (l, o) => (s(), r("radialGradient", {
|
|
554
555
|
cx: "50%",
|
|
555
556
|
cy: "50%",
|
|
556
557
|
r: "50%",
|
|
@@ -560,7 +561,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
560
561
|
}, [
|
|
561
562
|
x("stop", {
|
|
562
563
|
offset: "0%",
|
|
563
|
-
"stop-color":
|
|
564
|
+
"stop-color": n(_t)(n(It)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
564
565
|
}, null, 8, qt),
|
|
565
566
|
x("stop", {
|
|
566
567
|
offset: "100%",
|
|
@@ -586,7 +587,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
586
587
|
}, null, -1)
|
|
587
588
|
]), 8, Xt)
|
|
588
589
|
]),
|
|
589
|
-
e.value.useCustomCells && i.value.length ? (s(!0),
|
|
590
|
+
e.value.useCustomCells && i.value.length ? (s(!0), r($, { key: 0 }, F(U.value, (l, o) => (s(), r("foreignObject", {
|
|
590
591
|
x: l.x,
|
|
591
592
|
y: l.y,
|
|
592
593
|
height: S.value <= 0 ? 1e-4 : S.value,
|
|
@@ -594,8 +595,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
594
595
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
595
596
|
}, [
|
|
596
597
|
g(t.$slots, "cell", Ue({ 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)
|
|
597
|
-
], 8, Yt))), 256)) :
|
|
598
|
-
!i.value.length && !e.value.useCustomCells ? (s(),
|
|
598
|
+
], 8, Yt))), 256)) : f("", !0),
|
|
599
|
+
!i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
|
|
599
600
|
key: 1,
|
|
600
601
|
x: 12,
|
|
601
602
|
y: 12,
|
|
@@ -604,13 +605,13 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
604
605
|
rx: 3,
|
|
605
606
|
fill: "none",
|
|
606
607
|
stroke: "black"
|
|
607
|
-
}, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(),
|
|
608
|
-
t.$slots.pattern ? (s(),
|
|
609
|
-
(s(!0),
|
|
608
|
+
}, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(), r($, { key: 2 }, [
|
|
609
|
+
t.$slots.pattern ? (s(), r("g", Jt, [
|
|
610
|
+
(s(!0), r($, null, F(ue.value, (l) => (s(), r("defs", null, [
|
|
610
611
|
g(t.$slots, "pattern", Ue({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
611
612
|
]))), 256))
|
|
612
|
-
])) :
|
|
613
|
-
(s(!0),
|
|
613
|
+
])) : f("", !0),
|
|
614
|
+
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
614
615
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
615
616
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
616
617
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -621,7 +622,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
621
622
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
622
623
|
filter: Z(i.value[o].serieIndex)
|
|
623
624
|
}, null, 8, Qt))), 256)),
|
|
624
|
-
(s(!0),
|
|
625
|
+
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
625
626
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
626
627
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
627
628
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -632,8 +633,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
632
633
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
633
634
|
filter: Z(i.value[o].serieIndex)
|
|
634
635
|
}, null, 8, Zt))), 256)),
|
|
635
|
-
t.$slots.pattern ? (s(),
|
|
636
|
-
(s(!0),
|
|
636
|
+
t.$slots.pattern ? (s(), r("g", el, [
|
|
637
|
+
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
637
638
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
638
639
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
639
640
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -643,10 +644,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
643
644
|
stroke: "none",
|
|
644
645
|
filter: Z(i.value[o].serieIndex)
|
|
645
646
|
}, null, 8, tl))), 256))
|
|
646
|
-
])) :
|
|
647
|
-
], 64)) :
|
|
648
|
-
(s(!0),
|
|
649
|
-
i.value.length && !
|
|
647
|
+
])) : f("", !0)
|
|
648
|
+
], 64)) : f("", !0),
|
|
649
|
+
(s(!0), r($, null, F(U.value, (l, o) => (s(), r($, null, [
|
|
650
|
+
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", {
|
|
650
651
|
key: 0,
|
|
651
652
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
652
653
|
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -656,37 +657,37 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
656
657
|
}, [
|
|
657
658
|
x("div", {
|
|
658
659
|
class: "vue-ui-waffle-caption",
|
|
659
|
-
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:${
|
|
660
|
+
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(Tt)(i.value[o].color)};gap:2px`)
|
|
660
661
|
}, [
|
|
661
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(),
|
|
662
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(),
|
|
663
|
-
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(),
|
|
662
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", al, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(St)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : f("", !0),
|
|
663
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ol, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
|
|
664
|
+
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ul, " (" + L(n(q)(
|
|
664
665
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
665
666
|
i.value[o].value,
|
|
666
|
-
|
|
667
|
+
n(_)({
|
|
667
668
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
668
669
|
v: i.value[o].value,
|
|
669
670
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
670
671
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
671
672
|
}),
|
|
672
673
|
{ datapoint: i.value[o], position: l }
|
|
673
|
-
)) + ") ", 1)) :
|
|
674
|
-
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(),
|
|
674
|
+
)) + ") ", 1)) : f("", !0),
|
|
675
|
+
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", sl, L(n(q)(
|
|
675
676
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
676
677
|
i.value[o].value,
|
|
677
|
-
|
|
678
|
+
n(_)({
|
|
678
679
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
679
680
|
v: i.value[o].value,
|
|
680
681
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
681
682
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
682
683
|
}),
|
|
683
684
|
{ datapoint: i.value[o], position: l }
|
|
684
|
-
)), 1)) :
|
|
685
|
+
)), 1)) : f("", !0)
|
|
685
686
|
], 4)
|
|
686
|
-
], 8, ll)) :
|
|
687
|
+
], 8, ll)) : f("", !0)
|
|
687
688
|
], 64))), 256)),
|
|
688
|
-
(s(!0),
|
|
689
|
-
onMouseover: (u) =>
|
|
689
|
+
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
690
|
+
onMouseover: (u) => vt(o),
|
|
690
691
|
onMouseleave: a[0] || (a[0] = (u) => {
|
|
691
692
|
le.value = !1, D.value = null;
|
|
692
693
|
}),
|
|
@@ -697,12 +698,12 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
697
698
|
fill: "transparent",
|
|
698
699
|
stroke: "none"
|
|
699
700
|
}, null, 40, rl))), 256)),
|
|
700
|
-
g(t.$slots, "svg", { svg:
|
|
701
|
-
], 14, jt)) :
|
|
702
|
-
t.$slots.watermark ? (s(),
|
|
703
|
-
g(t.$slots, "watermark", j(W({ isPrinting:
|
|
704
|
-
])) :
|
|
705
|
-
J.value ?
|
|
701
|
+
g(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
702
|
+
], 14, jt)) : f("", !0),
|
|
703
|
+
t.$slots.watermark ? (s(), r("div", nl, [
|
|
704
|
+
g(t.$slots, "watermark", j(W({ isPrinting: n($e) || n(_e) })), void 0, !0)
|
|
705
|
+
])) : f("", !0),
|
|
706
|
+
J.value ? f("", !0) : (s(), V(n(Ke), {
|
|
706
707
|
key: 6,
|
|
707
708
|
config: {
|
|
708
709
|
type: "waffle",
|
|
@@ -718,10 +719,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
718
719
|
ref_key: "chartLegend",
|
|
719
720
|
ref: he
|
|
720
721
|
}, [
|
|
721
|
-
e.value.style.chart.legend.show ? (s(), V(
|
|
722
|
+
e.value.style.chart.legend.show ? (s(), V(Rt, {
|
|
722
723
|
key: `legend_${be.value}`,
|
|
723
724
|
legendSet: G.value,
|
|
724
|
-
config:
|
|
725
|
+
config: it.value,
|
|
725
726
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => Le(l.uid))
|
|
726
727
|
}, Re({
|
|
727
728
|
item: b(({ legend: l }) => [
|
|
@@ -729,19 +730,19 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
729
730
|
onClick: (o) => l.segregate(),
|
|
730
731
|
style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
731
732
|
}, [
|
|
732
|
-
Ge(
|
|
733
|
+
Ge(L(l.name) + ": " + L(n(q)(
|
|
733
734
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
734
735
|
l.value,
|
|
735
|
-
|
|
736
|
+
n(_)({
|
|
736
737
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
737
738
|
v: l.value,
|
|
738
739
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
739
740
|
r: e.value.style.chart.legend.roundingValue,
|
|
740
|
-
isAnimating:
|
|
741
|
+
isAnimating: N.value
|
|
741
742
|
}),
|
|
742
743
|
{ datapoint: l }
|
|
743
744
|
)) + " ", 1),
|
|
744
|
-
p.value.includes(l.uid) ? (s(),
|
|
745
|
+
p.value.includes(l.uid) ? (s(), r("span", cl, " ( - % ) ")) : (s(), r("span", vl, " (" + L(isNaN(l.value / P.value) ? "-" : n(_)({ v: l.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
|
|
745
746
|
], 12, il)
|
|
746
747
|
]),
|
|
747
748
|
_: 2
|
|
@@ -749,7 +750,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
749
750
|
t.$slots.pattern ? {
|
|
750
751
|
name: "legend-pattern",
|
|
751
752
|
fn: b(({ legend: l, index: o }) => [
|
|
752
|
-
ie(
|
|
753
|
+
ie(Ut, {
|
|
753
754
|
shape: l.shape,
|
|
754
755
|
radius: 30,
|
|
755
756
|
stroke: "none",
|
|
@@ -764,15 +765,15 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
764
765
|
legend: G.value
|
|
765
766
|
}, void 0, !0)
|
|
766
767
|
], 512),
|
|
767
|
-
t.$slots.source ? (s(),
|
|
768
|
+
t.$slots.source ? (s(), r("div", {
|
|
768
769
|
key: 7,
|
|
769
770
|
ref_key: "source",
|
|
770
771
|
ref: pe,
|
|
771
772
|
dir: "auto"
|
|
772
773
|
}, [
|
|
773
774
|
g(t.$slots, "source", {}, void 0, !0)
|
|
774
|
-
], 512)) :
|
|
775
|
-
ie(
|
|
775
|
+
], 512)) : f("", !0),
|
|
776
|
+
ie(n(Je), {
|
|
776
777
|
show: C.value.showTooltip && le.value && p.value.length < m.dataset.length,
|
|
777
778
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
778
779
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -796,7 +797,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
796
797
|
]),
|
|
797
798
|
_: 3
|
|
798
799
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
|
|
799
|
-
J.value ? (s(), V(
|
|
800
|
+
J.value ? (s(), V(n(Ye), {
|
|
800
801
|
key: 8,
|
|
801
802
|
hideDetails: "",
|
|
802
803
|
config: {
|
|
@@ -813,7 +814,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
813
814
|
}
|
|
814
815
|
}, {
|
|
815
816
|
content: b(() => [
|
|
816
|
-
(s(), V(
|
|
817
|
+
(s(), V(n(He), {
|
|
817
818
|
key: `table_${ge.value}`,
|
|
818
819
|
colNames: ee.value.colNames,
|
|
819
820
|
head: ee.value.head,
|
|
@@ -829,16 +830,16 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
829
830
|
}, null, 8, dl)
|
|
830
831
|
]),
|
|
831
832
|
td: b(({ td: l }) => [
|
|
832
|
-
Ge(
|
|
833
|
+
Ge(L(l.name || l), 1)
|
|
833
834
|
]),
|
|
834
835
|
_: 1
|
|
835
836
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
836
837
|
]),
|
|
837
838
|
_: 1
|
|
838
|
-
}, 8, ["config"])) :
|
|
839
|
+
}, 8, ["config"])) : f("", !0)
|
|
839
840
|
], 46, Et));
|
|
840
841
|
}
|
|
841
|
-
},
|
|
842
|
+
}, _l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-ea5f76d5"]]);
|
|
842
843
|
export {
|
|
843
|
-
|
|
844
|
+
_l as default
|
|
844
845
|
};
|