vue-data-ui 3.0.2 → 3.0.4
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-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
- package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
- package/package.json +1 -1
- package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, 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
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as G, useSlots as $t, computed as p, ref as i, toRefs as It, watch as ee, shallowRef as je, onMounted as _t, onBeforeUnmount as Tt, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as te, normalizeClass as qe, createBlock as F, createCommentVNode as b, createElementVNode as x, createVNode as pe, createSlots as He, withCtx as m, renderSlot as y, normalizeProps as W, guardReactiveProps as j, Fragment as $, renderList as B, mergeProps as Xe, toDisplayString as q, Teleport as At, createTextVNode as St, nextTick as Pt } from "vue";
|
|
2
|
+
import { u as Lt, c as Ot, t as Ft, a as Bt, p as V, b as zt, o as Ye, f as fe, g as Nt, d as Vt, k as Y, i as P, X as Mt, s as Dt, x as Rt, F as Et, e as Ut, v as Gt, w as Wt, L as jt, y as qt, z as Ht } from "./index-q-LPw2IT.js";
|
|
3
|
+
import { t as Xt, u as Yt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Je } from "./useNestedProp-04aFeUYu.js";
|
|
5
|
+
import { u as Jt } from "./usePrinter-DX7efa1s.js";
|
|
6
|
+
import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Zt from "./Title-B55R8CAZ.js";
|
|
9
|
+
import el from "./Legend-DcDSkq99.js";
|
|
10
|
+
import { _ as tl } from "./Shape-DHIaJs9G.js";
|
|
11
|
+
import ll from "./img-Ctts6JQb.js";
|
|
12
|
+
import { u as al, B as ol } from "./useLoading-D7YHNtLX.js";
|
|
13
|
+
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const sl = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], il = ["id"], vl = ["stop-color"], cl = ["stop-color"], dl = ["id"], hl = ["x", "y", "height", "width"], pl = ["height", "width"], fl = { key: 0 }, yl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], gl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], ml = { key: 1 }, bl = ["rx", "x", "y", "height", "width", "fill", "filter"], wl = ["textContent", "x", "y", "font-size", "fill", "filter"], kl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], xl = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Cl = ["id"], $l = ["onClick"], Il = ["innerHTML"], _l = {
|
|
18
18
|
__name: "vue-ui-waffle",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,9 +31,9 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
|
|
34
|
+
setup(Ke, { expose: Qe, emit: Ze }) {
|
|
35
|
+
const et = G(() => import("./DataTable-rj9-mAwF.js")), tt = G(() => import("./PenAndPaper-BJ0hcgsa.js")), lt = G(() => import("./vue-ui-accordion-D46i_gkB.js")), at = G(() => import("./Tooltip-BMOddG-M.js")), ot = G(() => import("./UserOptions-DVzyjG-W.js")), ut = G(() => import("./PackageVersion-5ZjKSIei.js")), { vue_ui_waffle: st } = Lt(), w = Ke, nt = $t(), le = p(() => !!w.dataset && w.dataset.length), g = i(Ot()), rt = i(null), ae = i(!1), oe = i(""), M = i(null), ye = i(0), L = i(null), ge = i(null), me = i(null), be = i(null), we = i(null), ke = i(0), xe = i(0), Ce = i(0), $e = i(!1), e = i(ne()), { loading: Ie, FINAL_DATASET: J, manualLoading: ue } = al({
|
|
36
|
+
...It(w),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: ne,
|
|
39
39
|
callback: () => {
|
|
@@ -58,7 +58,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
58
58
|
color: "#CACACA"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
skeletonConfig:
|
|
61
|
+
skeletonConfig: Ft({
|
|
62
62
|
defaultConfig: e.value,
|
|
63
63
|
userConfig: {
|
|
64
64
|
useCustomCells: !1,
|
|
@@ -84,45 +84,45 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
})
|
|
87
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility:
|
|
87
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: _e, keepUserOptionState: Te } = Kt({ config: e.value }), { svgRef: Ae } = Qt({ config: e.value.style.chart.title });
|
|
88
88
|
function ne() {
|
|
89
|
-
const t =
|
|
90
|
-
userConfig:
|
|
91
|
-
defaultConfig:
|
|
89
|
+
const t = Je({
|
|
90
|
+
userConfig: w.config,
|
|
91
|
+
defaultConfig: st
|
|
92
92
|
});
|
|
93
93
|
return t.theme ? {
|
|
94
|
-
...
|
|
95
|
-
userConfig:
|
|
94
|
+
...Je({
|
|
95
|
+
userConfig: zt.vue_ui_waffle[t.theme] || w.config,
|
|
96
96
|
defaultConfig: t
|
|
97
97
|
}),
|
|
98
|
-
customPalette:
|
|
98
|
+
customPalette: Bt[t.theme] || V
|
|
99
99
|
} : t;
|
|
100
100
|
}
|
|
101
|
-
ee(() =>
|
|
102
|
-
|
|
101
|
+
ee(() => w.config, (t) => {
|
|
102
|
+
Ie.value || (e.value = ne()), se.value = !e.value.userOptions.showOnChartHover, Pe(), ke.value += 1, xe.value += 1, Ce.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
103
103
|
}, { deep: !0 });
|
|
104
|
-
const O =
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
104
|
+
const O = je(null), D = je(null), Se = p(() => !!e.value.debug);
|
|
105
|
+
function Pe() {
|
|
106
|
+
if (Ye(w.dataset) ? (fe({
|
|
107
107
|
componentName: "VueUiWaffle",
|
|
108
108
|
type: "dataset",
|
|
109
|
-
debug:
|
|
110
|
-
}), le.value = !1, ue.value = !0) :
|
|
111
|
-
|
|
109
|
+
debug: Se.value
|
|
110
|
+
}), le.value = !1, ue.value = !0) : w.dataset.forEach((t, a) => {
|
|
111
|
+
Nt({
|
|
112
112
|
datasetObject: t,
|
|
113
113
|
requiredAttributes: ["name", "values"]
|
|
114
114
|
}).forEach((l) => {
|
|
115
|
-
|
|
115
|
+
fe({
|
|
116
116
|
componentName: "VueUiWaffle",
|
|
117
117
|
type: "datasetSerieAttribute",
|
|
118
118
|
property: l,
|
|
119
119
|
index: a,
|
|
120
|
-
debug:
|
|
120
|
+
debug: Se.value
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
}),
|
|
124
|
-
const t =
|
|
125
|
-
const { width: a, height: l } =
|
|
123
|
+
}), Ye(w.dataset) || (ue.value = e.value.loading), e.value.responsive) {
|
|
124
|
+
const t = Xt(() => {
|
|
125
|
+
const { width: a, height: l } = Yt({
|
|
126
126
|
chart: L.value,
|
|
127
127
|
title: e.value.style.chart.title.text ? ge.value : null,
|
|
128
128
|
legend: e.value.style.chart.legend.show ? me.value : null,
|
|
@@ -130,32 +130,32 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
130
130
|
noTitle: we.value
|
|
131
131
|
});
|
|
132
132
|
requestAnimationFrame(() => {
|
|
133
|
-
|
|
133
|
+
z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
O.value && (D.value && O.value.unobserve(D.value), O.value.disconnect()), O.value = new ResizeObserver(t), D.value = L.value.parentNode, O.value.observe(D.value);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}),
|
|
139
|
+
_t(() => {
|
|
140
|
+
$e.value = !0, Pe();
|
|
141
|
+
}), Tt(() => {
|
|
142
142
|
O.value && (D.value && O.value.unobserve(D.value), O.value.disconnect());
|
|
143
143
|
});
|
|
144
|
-
const { isPrinting:
|
|
145
|
-
elementId: `vue-ui-waffle_${
|
|
144
|
+
const { isPrinting: Le, isImaging: Oe, generatePdf: Fe, generateImage: Be } = Jt({
|
|
145
|
+
elementId: `vue-ui-waffle_${g.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
147
147
|
options: e.value.userOptions.print
|
|
148
|
-
}),
|
|
148
|
+
}), it = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = p(() => Vt(e.value.customPalette)), C = i({
|
|
149
149
|
showTable: e.value.table.show,
|
|
150
150
|
showTooltip: e.value.style.chart.tooltip.show
|
|
151
151
|
});
|
|
152
152
|
ee(e, () => {
|
|
153
|
-
|
|
153
|
+
C.value = {
|
|
154
154
|
showTable: e.value.table.show,
|
|
155
155
|
showTooltip: e.value.style.chart.tooltip.show
|
|
156
156
|
};
|
|
157
157
|
}, { immediate: !0 });
|
|
158
|
-
const
|
|
158
|
+
const z = i({
|
|
159
159
|
height: 512,
|
|
160
160
|
width: 512
|
|
161
161
|
}), I = i({
|
|
@@ -163,13 +163,13 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
163
163
|
left: 0,
|
|
164
164
|
height: 512,
|
|
165
165
|
width: 512
|
|
166
|
-
}), _ =
|
|
167
|
-
function
|
|
168
|
-
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((
|
|
169
|
-
let d = a - u.reduce((
|
|
166
|
+
}), _ = p(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), T = p(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), vt = p(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), Ne = p(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
|
|
167
|
+
function Ve(t) {
|
|
168
|
+
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((k, he) => k + he, 0), o = t.map((k) => k / l * a), u = o.map(Math.floor), n = o.map((k) => k % 1);
|
|
169
|
+
let d = a - u.reduce((k, he) => k + he, 0);
|
|
170
170
|
for (; d > 0; ) {
|
|
171
|
-
let
|
|
172
|
-
u[
|
|
171
|
+
let k = n.indexOf(Math.max(...n));
|
|
172
|
+
u[k] += 1, n[k] = 0, d -= 1;
|
|
173
173
|
}
|
|
174
174
|
return u;
|
|
175
175
|
}
|
|
@@ -177,68 +177,68 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
177
177
|
function re() {
|
|
178
178
|
return H.value = J.value.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, J.value.map((t, a) => ({
|
|
179
179
|
...t,
|
|
180
|
-
color:
|
|
180
|
+
color: Ut(t.color) || ze.value[a] || V[a] || V[a % V.length],
|
|
181
181
|
uid: `serie_${a}`,
|
|
182
182
|
absoluteIndex: a
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
|
-
const ie =
|
|
186
|
-
ee(() =>
|
|
185
|
+
const ie = p(() => re()), h = i(ie.value);
|
|
186
|
+
ee(() => w.dataset, (t) => {
|
|
187
187
|
Array.isArray(t) && t.length > 0 && (ue.value = !1);
|
|
188
|
-
}, { immediate: !0 }), ee(() =>
|
|
188
|
+
}, { immediate: !0 }), ee(() => w.dataset, (t) => {
|
|
189
189
|
h.value = re();
|
|
190
190
|
}, { deep: !0 });
|
|
191
|
-
const
|
|
192
|
-
const t = h.value.filter((a, l) => !
|
|
193
|
-
return
|
|
194
|
-
}),
|
|
191
|
+
const ct = p(() => {
|
|
192
|
+
const t = h.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => H.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
|
|
193
|
+
return Ve(t);
|
|
194
|
+
}), dt = p(() => {
|
|
195
195
|
const t = h.value.map((a, l) => H.value ? 1 : (a.values || []).reduce((o, u) => o + u));
|
|
196
|
-
return
|
|
197
|
-
}), X =
|
|
198
|
-
[null, void 0].includes(t.values) &&
|
|
196
|
+
return Ve(t);
|
|
197
|
+
}), X = p(() => (J.value.forEach((t, a) => {
|
|
198
|
+
[null, void 0].includes(t.values) && fe({
|
|
199
199
|
componentName: "VueUiWaffle",
|
|
200
200
|
type: "datasetSerieAttribute",
|
|
201
201
|
property: "values (number[])",
|
|
202
202
|
index: a
|
|
203
203
|
});
|
|
204
|
-
}), h.value.filter((t, a) => !
|
|
204
|
+
}), h.value.filter((t, a) => !f.value.includes(t.uid)).map((t, a) => ({
|
|
205
205
|
absoluteIndex: t.absoluteIndex,
|
|
206
206
|
uid: t.uid,
|
|
207
207
|
name: t.name,
|
|
208
208
|
color: t.color,
|
|
209
209
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
210
210
|
absoluteValues: t.values || [],
|
|
211
|
-
proportion:
|
|
212
|
-
})))),
|
|
211
|
+
proportion: ct.value[a]
|
|
212
|
+
})))), ht = p(() => h.value.map((t, a) => ({
|
|
213
213
|
absoluteIndex: t.absoluteIndex,
|
|
214
214
|
uid: t.uid,
|
|
215
215
|
name: t.name,
|
|
216
216
|
color: t.color,
|
|
217
217
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
218
218
|
absoluteValues: t.values || [],
|
|
219
|
-
proportion:
|
|
219
|
+
proportion: dt.value[a]
|
|
220
220
|
})));
|
|
221
|
-
function
|
|
222
|
-
return
|
|
221
|
+
function pt() {
|
|
222
|
+
return ht.value.map((t) => ({
|
|
223
223
|
name: t.name,
|
|
224
224
|
color: t.color,
|
|
225
225
|
value: t.value,
|
|
226
226
|
proportion: t.proportion
|
|
227
227
|
}));
|
|
228
228
|
}
|
|
229
|
-
const ft =
|
|
229
|
+
const ft = p(() => {
|
|
230
230
|
let t = 0;
|
|
231
231
|
return X.value.map((a, l) => {
|
|
232
|
-
const o = t, u = o + a.proportion,
|
|
232
|
+
const o = t, u = o + a.proportion, n = [];
|
|
233
233
|
for (let d = Math.floor(o); d < Math.floor(u); d += 1)
|
|
234
|
-
|
|
234
|
+
n.push(d);
|
|
235
235
|
return t = u, {
|
|
236
236
|
...a,
|
|
237
237
|
start: o,
|
|
238
|
-
rects:
|
|
238
|
+
rects: n
|
|
239
239
|
};
|
|
240
240
|
});
|
|
241
|
-
}), r =
|
|
241
|
+
}), r = p(() => ft.value.flatMap((t, a) => t.rects.map((l, o) => ({
|
|
242
242
|
isFirst: o === 0,
|
|
243
243
|
isLongEnough: l.length > 2,
|
|
244
244
|
name: t.name,
|
|
@@ -251,7 +251,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
251
251
|
}))).map((t, a) => ({
|
|
252
252
|
...t,
|
|
253
253
|
isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
|
|
254
|
-
}))), R =
|
|
254
|
+
}))), R = p(() => {
|
|
255
255
|
const t = [];
|
|
256
256
|
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
257
257
|
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
@@ -262,42 +262,42 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
262
262
|
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (T.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
|
|
263
263
|
});
|
|
264
264
|
return t;
|
|
265
|
-
}),
|
|
266
|
-
function
|
|
265
|
+
}), f = i([]), N = i(!1), Me = i(null), De = i(null);
|
|
266
|
+
function Re(t) {
|
|
267
267
|
if (H.value) return;
|
|
268
268
|
if (!e.value.useAnimation) {
|
|
269
|
-
|
|
269
|
+
f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < E.value.length - 1 && E.value.length > 1 && f.value.push(t);
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
|
-
const a = ie.value.find((u) => u.uid === t).values.reduce((u,
|
|
272
|
+
const a = ie.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
273
273
|
let o = l;
|
|
274
274
|
if (!(l === 0 && a === 0)) {
|
|
275
|
-
if (
|
|
276
|
-
let
|
|
277
|
-
o > u ? (cancelAnimationFrame(
|
|
275
|
+
if (f.value.includes(t)) {
|
|
276
|
+
let n = function() {
|
|
277
|
+
o > u ? (cancelAnimationFrame(Me.value), h.value = h.value.map((d, k) => d.uid === t ? {
|
|
278
278
|
...d,
|
|
279
279
|
values: [u]
|
|
280
|
-
} : d),
|
|
280
|
+
} : d), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((d, k) => d.uid === t ? {
|
|
281
281
|
...d,
|
|
282
282
|
values: [o]
|
|
283
|
-
} : d),
|
|
283
|
+
} : d), Me.value = requestAnimationFrame(n));
|
|
284
284
|
};
|
|
285
|
-
|
|
285
|
+
f.value = f.value.filter((d) => d !== t);
|
|
286
286
|
const u = a;
|
|
287
|
-
|
|
288
|
-
} else if (
|
|
287
|
+
n();
|
|
288
|
+
} else if (f.value.length < E.value.length - 1 && E.value.length > 1) {
|
|
289
289
|
let u = function() {
|
|
290
|
-
o < l / 100 ? (cancelAnimationFrame(
|
|
291
|
-
...
|
|
290
|
+
o < l / 100 ? (cancelAnimationFrame(De.value), f.value.push(t), h.value = h.value.map((n, d) => n.uid === t ? {
|
|
291
|
+
...n,
|
|
292
292
|
values: [0]
|
|
293
|
-
} :
|
|
294
|
-
...
|
|
293
|
+
} : n), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((n) => n.uid === t ? {
|
|
294
|
+
...n,
|
|
295
295
|
values: [o]
|
|
296
|
-
} :
|
|
296
|
+
} : n), De.value = requestAnimationFrame(u));
|
|
297
297
|
};
|
|
298
298
|
u();
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
wt("selectLegend", X.value.map((u) => ({
|
|
301
301
|
name: u.name,
|
|
302
302
|
color: u.color,
|
|
303
303
|
value: u.value,
|
|
@@ -305,36 +305,36 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
305
305
|
})));
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
const E =
|
|
308
|
+
const E = p(() => h.value.map((t, a) => ({
|
|
309
309
|
name: t.name,
|
|
310
|
-
color: t.color ||
|
|
310
|
+
color: t.color || ze[a] || V[a] || V[a % V.length],
|
|
311
311
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
312
312
|
uid: t.uid,
|
|
313
313
|
shape: "square"
|
|
314
314
|
})).map((t) => ({
|
|
315
315
|
...t,
|
|
316
316
|
proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
|
|
317
|
-
opacity:
|
|
318
|
-
segregate: () =>
|
|
319
|
-
isSegregated:
|
|
320
|
-
}))),
|
|
317
|
+
opacity: f.value.includes(t.uid) ? 0.5 : 1,
|
|
318
|
+
segregate: () => Re(t.uid),
|
|
319
|
+
isSegregated: f.value.includes(t.uid)
|
|
320
|
+
}))), yt = p(() => ({
|
|
321
321
|
cy: "waffle-div-legend",
|
|
322
322
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
323
323
|
color: e.value.style.chart.legend.color,
|
|
324
324
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
325
325
|
paddingBottom: 12,
|
|
326
326
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
327
|
-
})), A =
|
|
328
|
-
function
|
|
327
|
+
})), A = p(() => X.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ve = i(null), ce = i(null);
|
|
328
|
+
function gt(t) {
|
|
329
329
|
const a = r.value[t];
|
|
330
330
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.serieIndex });
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function mt(t) {
|
|
333
333
|
const a = r.value[t];
|
|
334
334
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), ce.value = null, ae.value = !1, M.value = null;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
if (
|
|
336
|
+
function bt(t) {
|
|
337
|
+
if (f.value.length === w.dataset.length) return;
|
|
338
338
|
const a = r.value[t];
|
|
339
339
|
ve.value = {
|
|
340
340
|
datapoint: a,
|
|
@@ -343,7 +343,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
343
343
|
config: e.value
|
|
344
344
|
}, e.value.events.datapointEnter && ce.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), ce.value = a.serieIndex, ae.value = !0, M.value = r.value[t].serieIndex;
|
|
345
345
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
346
|
-
if (
|
|
346
|
+
if (qt(l) && Ht(() => l({
|
|
347
347
|
seriesIndex: r.value[t].absoluteIndex,
|
|
348
348
|
datapoint: a,
|
|
349
349
|
series: h.value,
|
|
@@ -357,7 +357,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
357
357
|
});
|
|
358
358
|
else {
|
|
359
359
|
let o = "";
|
|
360
|
-
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${
|
|
360
|
+
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${a.color}" />${nt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Y(
|
|
361
361
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
362
362
|
a.value,
|
|
363
363
|
P({
|
|
@@ -382,7 +382,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
382
382
|
oe.value = o;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const wt = Ze, S = p(() => {
|
|
386
386
|
const t = X.value.map((l) => ({
|
|
387
387
|
name: l.name,
|
|
388
388
|
color: l.color
|
|
@@ -390,12 +390,12 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
390
390
|
return { head: t, body: a };
|
|
391
391
|
});
|
|
392
392
|
function K(t) {
|
|
393
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(M.value) && M.value !== t ? `url(#blur_${
|
|
393
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(M.value) && M.value !== t ? `url(#blur_${g.value})` : "";
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !
|
|
395
|
+
function kt(t, a) {
|
|
396
|
+
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function xt(t, a = null) {
|
|
399
399
|
const l = Y(
|
|
400
400
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
401
401
|
r.value[t].value,
|
|
@@ -406,19 +406,19 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
406
406
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
407
407
|
}),
|
|
408
408
|
{ datapoint: r.value[t], position: a }
|
|
409
|
-
), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ?
|
|
409
|
+
), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? jt({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
|
|
410
410
|
let d = "";
|
|
411
|
-
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = l), `${
|
|
411
|
+
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = l), `${n}${d}`;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
415
|
-
const a = S.value.head.map((u,
|
|
413
|
+
function Ee(t = null) {
|
|
414
|
+
Pt(() => {
|
|
415
|
+
const a = S.value.head.map((u, n) => [[
|
|
416
416
|
u.name
|
|
417
|
-
], [S.value.body[
|
|
418
|
-
t ? t(o) :
|
|
417
|
+
], [S.value.body[n]], [isNaN(S.value.body[n] / A.value) ? "-" : S.value.body[n] / A.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Gt(l);
|
|
418
|
+
t ? t(o) : Wt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
|
-
const Q =
|
|
421
|
+
const Q = p(() => {
|
|
422
422
|
const t = [
|
|
423
423
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
424
424
|
Y(
|
|
@@ -432,23 +432,23 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
432
432
|
})
|
|
433
433
|
),
|
|
434
434
|
"100%"
|
|
435
|
-
], a = S.value.head.map((u,
|
|
435
|
+
], a = S.value.head.map((u, n) => [
|
|
436
436
|
{
|
|
437
437
|
color: u.color,
|
|
438
438
|
name: u.name
|
|
439
439
|
},
|
|
440
440
|
Y(
|
|
441
441
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
442
|
-
S.value.body[
|
|
442
|
+
S.value.body[n],
|
|
443
443
|
P({
|
|
444
444
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
445
|
-
v: S.value.body[
|
|
445
|
+
v: S.value.body[n],
|
|
446
446
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
447
447
|
r: e.value.table.td.roundingValue
|
|
448
448
|
})
|
|
449
449
|
),
|
|
450
|
-
isNaN(S.value.body[
|
|
451
|
-
v: S.value.body[
|
|
450
|
+
isNaN(S.value.body[n] / A.value) ? "-" : P({
|
|
451
|
+
v: S.value.body[n] / A.value * 100,
|
|
452
452
|
s: "%",
|
|
453
453
|
r: e.value.table.td.roundingPercentage
|
|
454
454
|
})
|
|
@@ -477,72 +477,72 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
477
477
|
colNames: o
|
|
478
478
|
};
|
|
479
479
|
}), U = i(!1);
|
|
480
|
-
function
|
|
480
|
+
function Ue(t) {
|
|
481
481
|
U.value = t, ye.value += 1;
|
|
482
482
|
}
|
|
483
|
-
function Ue() {
|
|
484
|
-
x.value.showTable = !x.value.showTable;
|
|
485
|
-
}
|
|
486
483
|
function Ge() {
|
|
487
|
-
|
|
484
|
+
C.value.showTable = !C.value.showTable;
|
|
485
|
+
}
|
|
486
|
+
function We() {
|
|
487
|
+
C.value.showTooltip = !C.value.showTooltip;
|
|
488
488
|
}
|
|
489
489
|
const Z = i(!1);
|
|
490
490
|
function de() {
|
|
491
491
|
Z.value = !Z.value;
|
|
492
492
|
}
|
|
493
|
-
async function
|
|
493
|
+
async function Ct({ scale: t = 2 } = {}) {
|
|
494
494
|
if (!L.value) return;
|
|
495
|
-
const { width: a, height: l } = L.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64:
|
|
495
|
+
const { width: a, height: l } = L.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await ll({ domElement: L.value, base64: !0, img: !0, scale: t });
|
|
496
496
|
return {
|
|
497
497
|
imageUri: u,
|
|
498
|
-
base64:
|
|
498
|
+
base64: n,
|
|
499
499
|
title: e.value.style.chart.title.text,
|
|
500
500
|
width: a,
|
|
501
501
|
height: l,
|
|
502
502
|
aspectRatio: o
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
-
return
|
|
506
|
-
getData:
|
|
507
|
-
getImage:
|
|
508
|
-
generatePdf:
|
|
509
|
-
generateCsv:
|
|
510
|
-
generateImage:
|
|
511
|
-
toggleTable:
|
|
512
|
-
toggleTooltip:
|
|
505
|
+
return Qe({
|
|
506
|
+
getData: pt,
|
|
507
|
+
getImage: Ct,
|
|
508
|
+
generatePdf: Fe,
|
|
509
|
+
generateCsv: Ee,
|
|
510
|
+
generateImage: Be,
|
|
511
|
+
toggleTable: Ge,
|
|
512
|
+
toggleTooltip: We,
|
|
513
513
|
toggleAnnotator: de,
|
|
514
|
-
toggleFullscreen:
|
|
515
|
-
}), (t, a) => (
|
|
516
|
-
class:
|
|
514
|
+
toggleFullscreen: Ue
|
|
515
|
+
}), (t, a) => (s(), v("div", {
|
|
516
|
+
class: qe(`vue-ui-waffle ${U.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
517
517
|
ref_key: "waffleChart",
|
|
518
518
|
ref: L,
|
|
519
|
-
id: `vue-ui-waffle_${
|
|
519
|
+
id: `vue-ui-waffle_${g.value}`,
|
|
520
520
|
style: te(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
521
|
-
onMouseenter: a[2] || (a[2] = () => c(
|
|
522
|
-
onMouseleave: a[3] || (a[3] = () => c(
|
|
521
|
+
onMouseenter: a[2] || (a[2] = () => c(_e)(!0)),
|
|
522
|
+
onMouseleave: a[3] || (a[3] = () => c(_e)(!1))
|
|
523
523
|
}, [
|
|
524
|
-
e.value.userOptions.buttons.annotator ? (
|
|
524
|
+
e.value.userOptions.buttons.annotator ? (s(), F(c(tt), {
|
|
525
525
|
key: 0,
|
|
526
|
-
svgRef: c(
|
|
526
|
+
svgRef: c(Ae),
|
|
527
527
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
528
528
|
color: e.value.style.chart.color,
|
|
529
529
|
active: Z.value,
|
|
530
530
|
onClose: de
|
|
531
531
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
532
|
-
|
|
532
|
+
it.value ? (s(), v("div", {
|
|
533
533
|
key: 1,
|
|
534
534
|
ref_key: "noTitle",
|
|
535
535
|
ref: we,
|
|
536
536
|
class: "vue-data-ui-no-title-space",
|
|
537
537
|
style: "height:36px; width: 100%;background:transparent"
|
|
538
538
|
}, null, 512)) : b("", !0),
|
|
539
|
-
e.value.style.chart.title.text ? (
|
|
539
|
+
e.value.style.chart.title.text ? (s(), v("div", {
|
|
540
540
|
key: 2,
|
|
541
541
|
ref_key: "chartTitle",
|
|
542
542
|
ref: ge,
|
|
543
543
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
544
544
|
}, [
|
|
545
|
-
(
|
|
545
|
+
(s(), F(Zt, {
|
|
546
546
|
key: `title_${ke.value}`,
|
|
547
547
|
config: {
|
|
548
548
|
title: {
|
|
@@ -556,15 +556,18 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
556
556
|
}
|
|
557
557
|
}, null, 8, ["config"]))
|
|
558
558
|
], 512)) : b("", !0),
|
|
559
|
-
|
|
559
|
+
x("div", {
|
|
560
|
+
id: `legend-top-${g.value}`
|
|
561
|
+
}, null, 8, nl),
|
|
562
|
+
e.value.userOptions.show && le.value && (c(Te) || c(se)) ? (s(), F(c(ot), {
|
|
560
563
|
ref_key: "details",
|
|
561
|
-
ref:
|
|
564
|
+
ref: rt,
|
|
562
565
|
key: `user_options_${ye.value}`,
|
|
563
566
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
564
567
|
color: e.value.style.chart.color,
|
|
565
|
-
isPrinting: c(
|
|
566
|
-
isImaging: c(
|
|
567
|
-
uid:
|
|
568
|
+
isPrinting: c(Le),
|
|
569
|
+
isImaging: c(Oe),
|
|
570
|
+
uid: g.value,
|
|
568
571
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
569
572
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
570
573
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -572,7 +575,7 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
572
575
|
hasTable: e.value.userOptions.buttons.table,
|
|
573
576
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
574
577
|
isFullscreen: U.value,
|
|
575
|
-
isTooltip:
|
|
578
|
+
isTooltip: C.value.showTooltip,
|
|
576
579
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
577
580
|
chartElement: L.value,
|
|
578
581
|
position: e.value.userOptions.position,
|
|
@@ -580,130 +583,130 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
580
583
|
isAnnotation: Z.value,
|
|
581
584
|
callbacks: e.value.userOptions.callbacks,
|
|
582
585
|
printScale: e.value.userOptions.print.scale,
|
|
583
|
-
onToggleFullscreen:
|
|
584
|
-
onGeneratePdf: c(
|
|
585
|
-
onGenerateCsv:
|
|
586
|
-
onGenerateImage: c(
|
|
587
|
-
onToggleTable:
|
|
588
|
-
onToggleTooltip:
|
|
586
|
+
onToggleFullscreen: Ue,
|
|
587
|
+
onGeneratePdf: c(Fe),
|
|
588
|
+
onGenerateCsv: Ee,
|
|
589
|
+
onGenerateImage: c(Be),
|
|
590
|
+
onToggleTable: Ge,
|
|
591
|
+
onToggleTooltip: We,
|
|
589
592
|
onToggleAnnotator: de,
|
|
590
593
|
style: te({
|
|
591
|
-
visibility: c(
|
|
594
|
+
visibility: c(Te) ? c(se) ? "visible" : "hidden" : "visible"
|
|
592
595
|
})
|
|
593
|
-
},
|
|
596
|
+
}, He({ _: 2 }, [
|
|
594
597
|
t.$slots.menuIcon ? {
|
|
595
598
|
name: "menuIcon",
|
|
596
|
-
fn:
|
|
599
|
+
fn: m(({ isOpen: l, color: o }) => [
|
|
597
600
|
y(t.$slots, "menuIcon", W(j({ isOpen: l, color: o })), void 0, !0)
|
|
598
601
|
]),
|
|
599
602
|
key: "0"
|
|
600
603
|
} : void 0,
|
|
601
604
|
t.$slots.optionTooltip ? {
|
|
602
605
|
name: "optionTooltip",
|
|
603
|
-
fn:
|
|
606
|
+
fn: m(() => [
|
|
604
607
|
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
605
608
|
]),
|
|
606
609
|
key: "1"
|
|
607
610
|
} : void 0,
|
|
608
611
|
t.$slots.optionPdf ? {
|
|
609
612
|
name: "optionPdf",
|
|
610
|
-
fn:
|
|
613
|
+
fn: m(() => [
|
|
611
614
|
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
612
615
|
]),
|
|
613
616
|
key: "2"
|
|
614
617
|
} : void 0,
|
|
615
618
|
t.$slots.optionCsv ? {
|
|
616
619
|
name: "optionCsv",
|
|
617
|
-
fn:
|
|
620
|
+
fn: m(() => [
|
|
618
621
|
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
619
622
|
]),
|
|
620
623
|
key: "3"
|
|
621
624
|
} : void 0,
|
|
622
625
|
t.$slots.optionImg ? {
|
|
623
626
|
name: "optionImg",
|
|
624
|
-
fn:
|
|
627
|
+
fn: m(() => [
|
|
625
628
|
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
626
629
|
]),
|
|
627
630
|
key: "4"
|
|
628
631
|
} : void 0,
|
|
629
632
|
t.$slots.optionTable ? {
|
|
630
633
|
name: "optionTable",
|
|
631
|
-
fn:
|
|
634
|
+
fn: m(() => [
|
|
632
635
|
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
633
636
|
]),
|
|
634
637
|
key: "5"
|
|
635
638
|
} : void 0,
|
|
636
639
|
t.$slots.optionFullscreen ? {
|
|
637
640
|
name: "optionFullscreen",
|
|
638
|
-
fn:
|
|
641
|
+
fn: m(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
639
642
|
y(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
640
643
|
]),
|
|
641
644
|
key: "6"
|
|
642
645
|
} : void 0,
|
|
643
646
|
t.$slots.optionAnnotator ? {
|
|
644
647
|
name: "optionAnnotator",
|
|
645
|
-
fn:
|
|
648
|
+
fn: m(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
646
649
|
y(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
647
650
|
]),
|
|
648
651
|
key: "7"
|
|
649
652
|
} : void 0
|
|
650
653
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
651
|
-
(
|
|
654
|
+
(s(), v("svg", {
|
|
652
655
|
ref_key: "svgRef",
|
|
653
|
-
ref:
|
|
654
|
-
xmlns: c(
|
|
655
|
-
class:
|
|
656
|
-
viewBox: `0 0 ${
|
|
656
|
+
ref: Ae,
|
|
657
|
+
xmlns: c(Mt),
|
|
658
|
+
class: qe({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
659
|
+
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
657
660
|
style: te(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
658
661
|
}, [
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
(
|
|
662
|
+
pe(c(ut)),
|
|
663
|
+
x("defs", null, [
|
|
664
|
+
(s(!0), v($, null, B(r.value, (l, o) => (s(), v("radialGradient", {
|
|
662
665
|
cx: "50%",
|
|
663
666
|
cy: "50%",
|
|
664
667
|
r: "50%",
|
|
665
668
|
fx: "50%",
|
|
666
669
|
fy: "50%",
|
|
667
|
-
id: `gradient_${
|
|
670
|
+
id: `gradient_${g.value}_${o}`
|
|
668
671
|
}, [
|
|
669
|
-
|
|
672
|
+
x("stop", {
|
|
670
673
|
offset: "0%",
|
|
671
|
-
"stop-color": c(
|
|
672
|
-
}, null, 8,
|
|
673
|
-
|
|
674
|
+
"stop-color": c(Dt)(c(Rt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
675
|
+
}, null, 8, vl),
|
|
676
|
+
x("stop", {
|
|
674
677
|
offset: "100%",
|
|
675
678
|
"stop-color": l.color
|
|
676
|
-
}, null, 8,
|
|
677
|
-
], 8,
|
|
679
|
+
}, null, 8, cl)
|
|
680
|
+
], 8, il))), 256))
|
|
678
681
|
]),
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
id: `blur_${
|
|
682
|
+
x("defs", null, [
|
|
683
|
+
x("filter", {
|
|
684
|
+
id: `blur_${g.value}`,
|
|
682
685
|
x: "-50%",
|
|
683
686
|
y: "-50%",
|
|
684
687
|
width: "200%",
|
|
685
688
|
height: "200%"
|
|
686
689
|
}, [...a[4] || (a[4] = [
|
|
687
|
-
|
|
690
|
+
x("feGaussianBlur", {
|
|
688
691
|
in: "SourceGraphic",
|
|
689
692
|
stdDeviation: 2
|
|
690
693
|
}, null, -1),
|
|
691
|
-
|
|
694
|
+
x("feColorMatrix", {
|
|
692
695
|
type: "saturate",
|
|
693
696
|
values: "0"
|
|
694
697
|
}, null, -1)
|
|
695
|
-
])], 8,
|
|
698
|
+
])], 8, dl)
|
|
696
699
|
]),
|
|
697
|
-
e.value.useCustomCells && r.value.length ? (
|
|
700
|
+
e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, B(R.value, (l, o) => (s(), v("foreignObject", {
|
|
698
701
|
x: l.x,
|
|
699
702
|
y: l.y,
|
|
700
703
|
height: T.value <= 0 ? 1e-4 : T.value,
|
|
701
704
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
702
705
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
703
706
|
}, [
|
|
704
|
-
y(t.$slots, "cell",
|
|
705
|
-
], 8,
|
|
706
|
-
!r.value.length && !e.value.useCustomCells ? (
|
|
707
|
+
y(t.$slots, "cell", Xe({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(M.value) ? !0 : r.value[o].serieIndex === M.value }), void 0, !0)
|
|
708
|
+
], 8, hl))), 256)) : b("", !0),
|
|
709
|
+
!r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
|
|
707
710
|
key: 1,
|
|
708
711
|
x: 12,
|
|
709
712
|
y: 12,
|
|
@@ -712,13 +715,13 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
712
715
|
rx: 3,
|
|
713
716
|
fill: "none",
|
|
714
717
|
stroke: "black"
|
|
715
|
-
}, null, 8,
|
|
716
|
-
t.$slots.pattern ? (
|
|
717
|
-
(
|
|
718
|
-
y(t.$slots, "pattern",
|
|
718
|
+
}, null, 8, pl)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
|
|
719
|
+
t.$slots.pattern ? (s(), v("g", fl, [
|
|
720
|
+
(s(!0), v($, null, B(ie.value, (l) => (s(), v("defs", null, [
|
|
721
|
+
y(t.$slots, "pattern", Xe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${g.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
719
722
|
]))), 256))
|
|
720
723
|
])) : b("", !0),
|
|
721
|
-
(
|
|
724
|
+
(s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
|
|
722
725
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
723
726
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
724
727
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -728,115 +731,123 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
728
731
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
729
732
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
730
733
|
filter: K(r.value[o].serieIndex)
|
|
731
|
-
}, null, 8,
|
|
732
|
-
(
|
|
734
|
+
}, null, 8, yl))), 256)),
|
|
735
|
+
(s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
|
|
733
736
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
734
737
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
735
738
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
736
739
|
height: T.value <= 0 ? 1e-4 : T.value,
|
|
737
740
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
738
|
-
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${
|
|
741
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${g.value}_${o})` : r.value[o].color,
|
|
739
742
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
740
743
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
741
744
|
filter: K(r.value[o].serieIndex)
|
|
742
|
-
}, null, 8,
|
|
743
|
-
t.$slots.pattern ? (
|
|
744
|
-
(
|
|
745
|
+
}, null, 8, gl))), 256)),
|
|
746
|
+
t.$slots.pattern ? (s(), v("g", ml, [
|
|
747
|
+
(s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
|
|
745
748
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
746
749
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
747
750
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
748
751
|
height: T.value <= 0 ? 1e-4 : T.value,
|
|
749
752
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
750
|
-
fill: `url(#pattern_${
|
|
753
|
+
fill: `url(#pattern_${g.value}_${r.value[o].absoluteIndex})`,
|
|
751
754
|
stroke: "none",
|
|
752
755
|
filter: K(r.value[o].serieIndex)
|
|
753
|
-
}, null, 8,
|
|
756
|
+
}, null, 8, bl))), 256))
|
|
754
757
|
])) : b("", !0)
|
|
755
758
|
], 64)) : b("", !0),
|
|
756
|
-
(
|
|
757
|
-
|
|
759
|
+
(s(!0), v($, null, B(R.value, (l, o) => (s(), v($, null, [
|
|
760
|
+
kt(o, l) ? (s(), v("text", {
|
|
758
761
|
key: `datalabel_${o}`,
|
|
759
|
-
textContent: q(
|
|
762
|
+
textContent: q(xt(o, l)),
|
|
760
763
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
761
|
-
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
764
|
+
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ne.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
762
765
|
"font-size": e.value.style.chart.layout.labels.captions.fontSize,
|
|
763
|
-
fill: c(
|
|
766
|
+
fill: c(Et)(r.value[o].color),
|
|
764
767
|
filter: K(r.value[o].serieIndex)
|
|
765
|
-
}, null, 8,
|
|
768
|
+
}, null, 8, wl)) : b("", !0)
|
|
766
769
|
], 64))), 256)),
|
|
767
|
-
(
|
|
770
|
+
(s(!0), v($, null, B(R.value, (l, o) => (s(), v("rect", {
|
|
768
771
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
769
772
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
770
|
-
height:
|
|
771
|
-
width:
|
|
773
|
+
height: Ne.value,
|
|
774
|
+
width: vt.value,
|
|
772
775
|
fill: "transparent",
|
|
773
776
|
stroke: "none",
|
|
774
|
-
onMouseover: (u) =>
|
|
775
|
-
onMouseleave: (u) =>
|
|
776
|
-
onClick: (u) =>
|
|
777
|
-
}, null, 40,
|
|
778
|
-
y(t.$slots, "svg", { svg:
|
|
779
|
-
], 14,
|
|
780
|
-
t.$slots.watermark ? (
|
|
781
|
-
y(t.$slots, "watermark", W(j({ isPrinting: c(
|
|
777
|
+
onMouseover: (u) => bt(o),
|
|
778
|
+
onMouseleave: (u) => mt(o),
|
|
779
|
+
onClick: (u) => gt(o)
|
|
780
|
+
}, null, 40, kl))), 256)),
|
|
781
|
+
y(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
782
|
+
], 14, rl)),
|
|
783
|
+
t.$slots.watermark ? (s(), v("div", xl, [
|
|
784
|
+
y(t.$slots, "watermark", W(j({ isPrinting: c(Le) || c(Oe) })), void 0, !0)
|
|
782
785
|
])) : b("", !0),
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
+
x("div", {
|
|
787
|
+
id: `legend-bottom-${g.value}`
|
|
788
|
+
}, null, 8, Cl),
|
|
789
|
+
$e.value ? (s(), F(At, {
|
|
790
|
+
key: 5,
|
|
791
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${g.value}` : `#legend-bottom-${g.value}`
|
|
786
792
|
}, [
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
config: pt.value,
|
|
791
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) => De(l.uid))
|
|
792
|
-
}, qe({
|
|
793
|
-
item: g(({ legend: l }) => [
|
|
794
|
-
C("div", {
|
|
795
|
-
onClick: (o) => l.segregate(),
|
|
796
|
-
style: te(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
797
|
-
}, q(l.name) + q(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + q(e.value.style.chart.legend.showValue ? c(Y)(
|
|
798
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
799
|
-
l.value,
|
|
800
|
-
c(P)({
|
|
801
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
802
|
-
v: l.value,
|
|
803
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
804
|
-
r: e.value.style.chart.legend.roundingValue,
|
|
805
|
-
isAnimating: z.value
|
|
806
|
-
}),
|
|
807
|
-
{ datapoint: l }
|
|
808
|
-
) : "") + " " + q(e.value.style.chart.legend.showPercentage ? p.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / A.value) ? "-" : c(P)({ v: l.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: z.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, wl)
|
|
809
|
-
]),
|
|
810
|
-
_: 2
|
|
793
|
+
x("div", {
|
|
794
|
+
ref_key: "chartLegend",
|
|
795
|
+
ref: me
|
|
811
796
|
}, [
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
797
|
+
e.value.style.chart.legend.show ? (s(), F(el, {
|
|
798
|
+
key: `legend_${Ce.value}`,
|
|
799
|
+
legendSet: E.value,
|
|
800
|
+
config: yt.value,
|
|
801
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => Re(l.uid))
|
|
802
|
+
}, He({
|
|
803
|
+
item: m(({ legend: l }) => [
|
|
804
|
+
x("div", {
|
|
805
|
+
onClick: (o) => l.segregate(),
|
|
806
|
+
style: te(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
807
|
+
}, q(l.name) + q(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + q(e.value.style.chart.legend.showValue ? c(Y)(
|
|
808
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
809
|
+
l.value,
|
|
810
|
+
c(P)({
|
|
811
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
812
|
+
v: l.value,
|
|
813
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
814
|
+
r: e.value.style.chart.legend.roundingValue,
|
|
815
|
+
isAnimating: N.value
|
|
816
|
+
}),
|
|
817
|
+
{ datapoint: l }
|
|
818
|
+
) : "") + " " + q(e.value.style.chart.legend.showPercentage ? f.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / A.value) ? "-" : c(P)({ v: l.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, $l)
|
|
822
819
|
]),
|
|
823
|
-
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
820
|
+
_: 2
|
|
821
|
+
}, [
|
|
822
|
+
t.$slots.pattern ? {
|
|
823
|
+
name: "legend-pattern",
|
|
824
|
+
fn: m(({ legend: l, index: o }) => [
|
|
825
|
+
pe(tl, {
|
|
826
|
+
shape: l.shape,
|
|
827
|
+
radius: 30,
|
|
828
|
+
stroke: "none",
|
|
829
|
+
plot: { x: 30, y: 30 },
|
|
830
|
+
fill: `url(#pattern_${g.value}_${o})`
|
|
831
|
+
}, null, 8, ["shape", "fill"])
|
|
832
|
+
]),
|
|
833
|
+
key: "0"
|
|
834
|
+
} : void 0
|
|
835
|
+
]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
|
|
836
|
+
key: 1,
|
|
837
|
+
legend: E.value
|
|
838
|
+
}, void 0, !0)
|
|
839
|
+
], 512)
|
|
840
|
+
], 8, ["to"])) : b("", !0),
|
|
841
|
+
t.$slots.source ? (s(), v("div", {
|
|
842
|
+
key: 6,
|
|
832
843
|
ref_key: "source",
|
|
833
844
|
ref: be,
|
|
834
845
|
dir: "auto"
|
|
835
846
|
}, [
|
|
836
847
|
y(t.$slots, "source", {}, void 0, !0)
|
|
837
848
|
], 512)) : b("", !0),
|
|
838
|
-
|
|
839
|
-
show:
|
|
849
|
+
pe(c(at), {
|
|
850
|
+
show: C.value.showTooltip && ae.value && f.value.length < w.dataset.length,
|
|
840
851
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
841
852
|
color: e.value.style.chart.tooltip.color,
|
|
842
853
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -853,19 +864,19 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
853
864
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
854
865
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
855
866
|
}, {
|
|
856
|
-
"tooltip-before":
|
|
867
|
+
"tooltip-before": m(() => [
|
|
857
868
|
y(t.$slots, "tooltip-before", W(j({ ...ve.value })), void 0, !0)
|
|
858
869
|
]),
|
|
859
|
-
"tooltip-after":
|
|
870
|
+
"tooltip-after": m(() => [
|
|
860
871
|
y(t.$slots, "tooltip-after", W(j({ ...ve.value })), void 0, !0)
|
|
861
872
|
]),
|
|
862
873
|
_: 3
|
|
863
874
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter"]),
|
|
864
|
-
le.value ? (
|
|
865
|
-
key:
|
|
875
|
+
le.value ? (s(), F(c(lt), {
|
|
876
|
+
key: 7,
|
|
866
877
|
hideDetails: "",
|
|
867
878
|
config: {
|
|
868
|
-
open:
|
|
879
|
+
open: C.value.showTable,
|
|
869
880
|
maxHeight: 1e4,
|
|
870
881
|
body: {
|
|
871
882
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -877,34 +888,34 @@ const ol = ["id"], ul = ["xmlns", "viewBox"], sl = ["id"], nl = ["stop-color"],
|
|
|
877
888
|
}
|
|
878
889
|
}
|
|
879
890
|
}, {
|
|
880
|
-
content:
|
|
881
|
-
(
|
|
891
|
+
content: m(() => [
|
|
892
|
+
(s(), F(c(et), {
|
|
882
893
|
key: `table_${xe.value}`,
|
|
883
894
|
colNames: Q.value.colNames,
|
|
884
895
|
head: Q.value.head,
|
|
885
896
|
body: Q.value.body,
|
|
886
897
|
config: Q.value.config,
|
|
887
898
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
888
|
-
onClose: a[1] || (a[1] = (l) =>
|
|
899
|
+
onClose: a[1] || (a[1] = (l) => C.value.showTable = !1)
|
|
889
900
|
}, {
|
|
890
|
-
th:
|
|
891
|
-
|
|
901
|
+
th: m(({ th: l }) => [
|
|
902
|
+
x("div", {
|
|
892
903
|
innerHTML: l,
|
|
893
904
|
style: { display: "flex", "align-items": "center" }
|
|
894
|
-
}, null, 8,
|
|
905
|
+
}, null, 8, Il)
|
|
895
906
|
]),
|
|
896
|
-
td:
|
|
897
|
-
|
|
907
|
+
td: m(({ td: l }) => [
|
|
908
|
+
St(q(l.name || l), 1)
|
|
898
909
|
]),
|
|
899
910
|
_: 1
|
|
900
911
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
901
912
|
]),
|
|
902
913
|
_: 1
|
|
903
914
|
}, 8, ["config"])) : b("", !0),
|
|
904
|
-
c(
|
|
905
|
-
], 46,
|
|
915
|
+
c(Ie) ? (s(), F(ol, { key: 8 })) : b("", !0)
|
|
916
|
+
], 46, sl));
|
|
906
917
|
}
|
|
907
|
-
},
|
|
918
|
+
}, Rl = /* @__PURE__ */ ul(_l, [["__scopeId", "data-v-3c406d34"]]);
|
|
908
919
|
export {
|
|
909
|
-
|
|
920
|
+
Rl as default
|
|
910
921
|
};
|