vue-data-ui 2.12.6 → 2.12.7-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import { _ as zt } from "./PackageVersion-BjrblLPQ.js";
|
|
13
|
-
import { _ as Nt } from "./PenAndPaper-BkP3J-Ft.js";
|
|
14
|
-
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as Vt } from "./Shape-C69a0f29.js";
|
|
16
|
-
import { u as Mt } from "./useChartAccessibility-BWojgys7.js";
|
|
17
|
-
import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"], Et = ["stop-color"], Wt = ["id"], qt = ["x", "y", "height", "width"], Ht = ["height", "width"], Xt = { key: 0 }, Yt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Kt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Jt = { key: 1 }, Qt = ["rx", "x", "y", "height", "width", "fill", "filter"], Zt = ["x", "y", "height", "width", "filter"], el = { key: 0 }, tl = { key: 1 }, ll = { key: 2 }, al = { key: 3 }, ol = ["onMouseover", "x", "y", "height", "width"], ul = {
|
|
1
|
+
import { defineAsyncComponent as F, useSlots as pt, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as yt, onBeforeUnmount as ft, createElementBlock as n, openBlock as s, unref as r, normalizeStyle as K, normalizeClass as De, createBlock as V, createCommentVNode as y, 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 L, mergeProps as Ue, toDisplayString as z, createTextVNode as Ge, nextTick as gt } from "vue";
|
|
2
|
+
import { u as bt, c as mt, t as wt, p as M, a as kt, o as xt, e as ve, g as Ct, b as $t, i as q, f as _, X as _t, s as It, w as Tt, G as St, K as Pt, d as Ot, q as At, r as Ft, x as Lt, y as zt } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { t as Nt, u as Bt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as Ee } from "./useNestedProp-tRqS0ZAM.js";
|
|
5
|
+
import { u as Vt } from "./usePrinter-CRCbl1WG.js";
|
|
6
|
+
import { u as Mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Dt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Rt from "./Title-B5qqUI3M.js";
|
|
9
|
+
import Ut from "./Legend-DFunFf8i.js";
|
|
10
|
+
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
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 = {
|
|
19
12
|
key: 5,
|
|
20
13
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
14
|
+
}, il = ["onClick"], vl = { key: 0 }, cl = { key: 1 }, dl = ["innerHTML"], hl = {
|
|
22
15
|
__name: "vue-ui-waffle",
|
|
23
16
|
props: {
|
|
24
17
|
config: {
|
|
@@ -35,38 +28,38 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
35
28
|
}
|
|
36
29
|
},
|
|
37
30
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
const { vue_ui_waffle:
|
|
40
|
-
get: () =>
|
|
31
|
+
setup(je, { expose: We, emit: qe }) {
|
|
32
|
+
const He = F(() => import("./DataTable-Cv9CIz-a.js")), Xe = F(() => import("./Shape-D3w9qas1.js")), Ye = F(() => import("./PenAndPaper-B9na2mbr.js")), Ke = F(() => import("./vue-ui-accordion-CmCs2yR2.js")), Je = F(() => import("./vue-ui-skeleton-CbYQYRvD.js")), Qe = F(() => import("./Tooltip-C9rxJ-Ru.js")), Ze = F(() => import("./UserOptions-Ddy6CuLC.js")), et = F(() => import("./PackageVersion-CLY-udAA.js")), { vue_ui_waffle: tt } = bt(), m = je, lt = pt(), J = d(() => !!m.dataset && m.dataset.length), k = c(mt()), at = 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), ye = c(null), fe = c(0), ge = c(0), be = c(0), e = d({
|
|
33
|
+
get: () => xe(),
|
|
41
34
|
set: (t) => t
|
|
42
|
-
}), { userOptionsVisible:
|
|
43
|
-
function
|
|
44
|
-
const t =
|
|
45
|
-
userConfig:
|
|
46
|
-
defaultConfig:
|
|
35
|
+
}), { userOptionsVisible: oe, setUserOptionsVisibility: me, keepUserOptionState: we } = Mt({ config: e.value }), { svgRef: ke } = Dt({ config: e.value.style.chart.title });
|
|
36
|
+
function xe() {
|
|
37
|
+
const t = Ee({
|
|
38
|
+
userConfig: m.config,
|
|
39
|
+
defaultConfig: tt
|
|
47
40
|
});
|
|
48
41
|
return t.theme ? {
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
42
|
+
...Ee({
|
|
43
|
+
userConfig: kt.vue_ui_waffle[t.theme] || m.config,
|
|
51
44
|
defaultConfig: t
|
|
52
45
|
}),
|
|
53
|
-
customPalette:
|
|
46
|
+
customPalette: wt[t.theme] || M
|
|
54
47
|
} : t;
|
|
55
48
|
}
|
|
56
|
-
|
|
57
|
-
e.value =
|
|
49
|
+
Ve(() => m.config, (t) => {
|
|
50
|
+
e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(), fe.value += 1, ge.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
58
51
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
60
|
-
function
|
|
61
|
-
if (
|
|
52
|
+
const A = Me(null), R = Me(null);
|
|
53
|
+
function Ce() {
|
|
54
|
+
if (xt(m.dataset) ? ve({
|
|
62
55
|
componentName: "VueUiWaffle",
|
|
63
56
|
type: "dataset"
|
|
64
|
-
}) :
|
|
65
|
-
|
|
57
|
+
}) : m.dataset.forEach((t, a) => {
|
|
58
|
+
Ct({
|
|
66
59
|
datasetObject: t,
|
|
67
60
|
requiredAttributes: ["name", "values"]
|
|
68
61
|
}).forEach((l) => {
|
|
69
|
-
|
|
62
|
+
ve({
|
|
70
63
|
componentName: "VueUiWaffle",
|
|
71
64
|
type: "datasetSerieAttribute",
|
|
72
65
|
property: l,
|
|
@@ -74,114 +67,114 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
74
67
|
});
|
|
75
68
|
});
|
|
76
69
|
}), e.value.responsive) {
|
|
77
|
-
const t =
|
|
78
|
-
const { width: a, height: l } =
|
|
79
|
-
chart:
|
|
80
|
-
title: e.value.style.chart.title.text ?
|
|
81
|
-
legend: e.value.style.chart.legend.show ?
|
|
82
|
-
source:
|
|
83
|
-
noTitle:
|
|
70
|
+
const t = Nt(() => {
|
|
71
|
+
const { width: a, height: l } = Bt({
|
|
72
|
+
chart: H.value,
|
|
73
|
+
title: e.value.style.chart.title.text ? de.value : null,
|
|
74
|
+
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
75
|
+
source: pe.value,
|
|
76
|
+
noTitle: ye.value
|
|
84
77
|
});
|
|
85
78
|
requestAnimationFrame(() => {
|
|
86
|
-
|
|
79
|
+
N.value.width = a, N.value.height = l, I.value.width = a, I.value.height = l;
|
|
87
80
|
});
|
|
88
81
|
});
|
|
89
|
-
|
|
82
|
+
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);
|
|
90
83
|
}
|
|
91
84
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}),
|
|
95
|
-
|
|
85
|
+
yt(() => {
|
|
86
|
+
Ce();
|
|
87
|
+
}), ft(() => {
|
|
88
|
+
A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
|
|
96
89
|
});
|
|
97
|
-
const { isPrinting:
|
|
90
|
+
const { isPrinting: $e, isImaging: _e, generatePdf: Ie, generateImage: Te } = Vt({
|
|
98
91
|
elementId: `vue-ui-waffle_${k.value}`,
|
|
99
92
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
100
93
|
options: e.value.userOptions.print
|
|
101
|
-
}),
|
|
94
|
+
}), ot = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Se = d(() => $t(e.value.customPalette)), C = c({
|
|
102
95
|
showTable: e.value.table.show,
|
|
103
96
|
showTooltip: e.value.style.chart.tooltip.show
|
|
104
|
-
}),
|
|
97
|
+
}), N = c({
|
|
105
98
|
height: 512,
|
|
106
99
|
width: 512
|
|
107
|
-
}), I =
|
|
100
|
+
}), I = c({
|
|
108
101
|
top: 0,
|
|
109
102
|
left: 0,
|
|
110
103
|
height: 512,
|
|
111
104
|
width: 512
|
|
112
|
-
}), 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),
|
|
113
|
-
function
|
|
114
|
-
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w,
|
|
115
|
-
let
|
|
116
|
-
for (;
|
|
117
|
-
let w =
|
|
118
|
-
u[w] += 1,
|
|
105
|
+
}), 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
|
+
function Pe(t) {
|
|
107
|
+
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 f = a - u.reduce((w, ne) => w + ne, 0);
|
|
109
|
+
for (; f > 0; ) {
|
|
110
|
+
let w = v.indexOf(Math.max(...v));
|
|
111
|
+
u[w] += 1, v[w] = 0, f -= 1;
|
|
119
112
|
}
|
|
120
113
|
return u;
|
|
121
114
|
}
|
|
122
|
-
function
|
|
123
|
-
return
|
|
115
|
+
function Oe() {
|
|
116
|
+
return m.dataset.map((t, a) => ({
|
|
124
117
|
...t,
|
|
125
|
-
color:
|
|
118
|
+
color: Ot(t.color) || Se.value[a] || M[a] || M[a % M.length],
|
|
126
119
|
uid: `serie_${a}`,
|
|
127
120
|
absoluteIndex: a
|
|
128
121
|
}));
|
|
129
122
|
}
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
h.value =
|
|
123
|
+
const ue = d(() => Oe()), h = c(ue.value);
|
|
124
|
+
Ve(() => m.dataset, (t) => {
|
|
125
|
+
h.value = Oe();
|
|
133
126
|
}, { deep: !0 });
|
|
134
|
-
const
|
|
135
|
-
const t = h.value.filter((a, l) => !
|
|
136
|
-
return
|
|
137
|
-
}),
|
|
127
|
+
const ut = d(() => {
|
|
128
|
+
const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
|
|
129
|
+
return Pe(t);
|
|
130
|
+
}), st = d(() => {
|
|
138
131
|
const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
|
|
139
|
-
return
|
|
140
|
-
}),
|
|
141
|
-
[null, void 0].includes(t.values) &&
|
|
132
|
+
return Pe(t);
|
|
133
|
+
}), Y = d(() => (m.dataset.forEach((t, a) => {
|
|
134
|
+
[null, void 0].includes(t.values) && ve({
|
|
142
135
|
componentName: "VueUiWaffle",
|
|
143
136
|
type: "datasetSerieAttribute",
|
|
144
137
|
property: "values (number[])",
|
|
145
138
|
index: a
|
|
146
139
|
});
|
|
147
|
-
}), h.value.filter((t, a) => !
|
|
140
|
+
}), h.value.filter((t, a) => !p.value.includes(t.uid)).map((t, a) => ({
|
|
148
141
|
absoluteIndex: t.absoluteIndex,
|
|
149
142
|
uid: t.uid,
|
|
150
143
|
name: t.name,
|
|
151
144
|
color: t.color,
|
|
152
145
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
153
146
|
absoluteValues: t.values || [],
|
|
154
|
-
proportion:
|
|
155
|
-
})))),
|
|
147
|
+
proportion: ut.value[a]
|
|
148
|
+
})))), rt = d(() => h.value.map((t, a) => ({
|
|
156
149
|
absoluteIndex: t.absoluteIndex,
|
|
157
150
|
uid: t.uid,
|
|
158
151
|
name: t.name,
|
|
159
152
|
color: t.color,
|
|
160
153
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
161
154
|
absoluteValues: t.values || [],
|
|
162
|
-
proportion:
|
|
155
|
+
proportion: st.value[a]
|
|
163
156
|
})));
|
|
164
|
-
function
|
|
165
|
-
return
|
|
157
|
+
function nt() {
|
|
158
|
+
return rt.value.map((t) => ({
|
|
166
159
|
name: t.name,
|
|
167
160
|
color: t.color,
|
|
168
161
|
value: t.value,
|
|
169
162
|
proportion: t.proportion
|
|
170
163
|
}));
|
|
171
164
|
}
|
|
172
|
-
const
|
|
165
|
+
const it = d(() => {
|
|
173
166
|
let t = 0;
|
|
174
|
-
return
|
|
175
|
-
const o = t, u = o + a.proportion,
|
|
176
|
-
for (let
|
|
177
|
-
|
|
167
|
+
return Y.value.map((a, l) => {
|
|
168
|
+
const o = t, u = o + a.proportion, v = [];
|
|
169
|
+
for (let f = Math.floor(o); f < Math.floor(u); f += 1)
|
|
170
|
+
v.push(f);
|
|
178
171
|
return t = u, {
|
|
179
172
|
...a,
|
|
180
173
|
start: o,
|
|
181
|
-
rects:
|
|
174
|
+
rects: v
|
|
182
175
|
};
|
|
183
176
|
});
|
|
184
|
-
}),
|
|
177
|
+
}), i = d(() => it.value.flatMap((t, a) => t.rects.map((l, o) => ({
|
|
185
178
|
isFirst: o === 0,
|
|
186
179
|
isLongEnough: l.length > 2,
|
|
187
180
|
name: t.name,
|
|
@@ -194,7 +187,7 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
194
187
|
}))).map((t, a) => ({
|
|
195
188
|
...t,
|
|
196
189
|
isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
|
|
197
|
-
}))),
|
|
190
|
+
}))), U = d(() => {
|
|
198
191
|
const t = [];
|
|
199
192
|
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
200
193
|
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
@@ -205,91 +198,91 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
205
198
|
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
|
|
206
199
|
});
|
|
207
200
|
return t;
|
|
208
|
-
}),
|
|
201
|
+
}), p = c([]), B = c(!1), Ae = c(null), Fe = c(null);
|
|
209
202
|
function Le(t) {
|
|
210
203
|
if (!e.value.useAnimation) {
|
|
211
|
-
|
|
204
|
+
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);
|
|
212
205
|
return;
|
|
213
206
|
}
|
|
214
|
-
const a =
|
|
207
|
+
const a = ue.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0), l = h.value.find((u) => u.uid === t).values.reduce((u, v) => u + v, 0);
|
|
215
208
|
let o = l;
|
|
216
|
-
if (
|
|
217
|
-
let
|
|
218
|
-
o > u ? (cancelAnimationFrame(
|
|
219
|
-
...
|
|
209
|
+
if (p.value.includes(t)) {
|
|
210
|
+
let v = function() {
|
|
211
|
+
o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((f, w) => f.uid === t ? {
|
|
212
|
+
...f,
|
|
220
213
|
values: [u]
|
|
221
|
-
} :
|
|
222
|
-
...
|
|
214
|
+
} : f), B.value = !1) : (B.value = !0, o += u * 0.025, h.value = h.value.map((f, w) => f.uid === t ? {
|
|
215
|
+
...f,
|
|
223
216
|
values: [o]
|
|
224
|
-
} :
|
|
217
|
+
} : f), Ae.value = requestAnimationFrame(v));
|
|
225
218
|
};
|
|
226
|
-
|
|
219
|
+
p.value = p.value.filter((f) => f !== t);
|
|
227
220
|
const u = a;
|
|
228
|
-
|
|
229
|
-
} else if (
|
|
221
|
+
v();
|
|
222
|
+
} else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
|
|
230
223
|
let u = function() {
|
|
231
|
-
o < l / 100 ? (cancelAnimationFrame(
|
|
232
|
-
...
|
|
224
|
+
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, f) => v.uid === t ? {
|
|
225
|
+
...v,
|
|
233
226
|
values: [0]
|
|
234
|
-
} :
|
|
235
|
-
...
|
|
227
|
+
} : v), B.value = !1) : (B.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
|
|
228
|
+
...v,
|
|
236
229
|
values: [o]
|
|
237
|
-
} :
|
|
230
|
+
} : v), Fe.value = requestAnimationFrame(u));
|
|
238
231
|
};
|
|
239
232
|
u();
|
|
240
233
|
}
|
|
241
|
-
|
|
234
|
+
dt("selectLegend", Y.value.map((u) => ({
|
|
242
235
|
name: u.name,
|
|
243
236
|
color: u.color,
|
|
244
237
|
value: u.value,
|
|
245
238
|
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
246
239
|
})));
|
|
247
240
|
}
|
|
248
|
-
const
|
|
241
|
+
const G = d(() => h.value.map((t, a) => ({
|
|
249
242
|
name: t.name,
|
|
250
|
-
color: t.color ||
|
|
243
|
+
color: t.color || Se[a] || M[a] || M[a % M.length],
|
|
251
244
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
252
245
|
uid: t.uid,
|
|
253
246
|
shape: "square"
|
|
254
247
|
})).map((t) => ({
|
|
255
248
|
...t,
|
|
256
249
|
proportion: t.value / h.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
|
|
257
|
-
opacity:
|
|
250
|
+
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
258
251
|
segregate: () => Le(t.uid),
|
|
259
|
-
isSegregated:
|
|
260
|
-
}))),
|
|
252
|
+
isSegregated: p.value.includes(t.uid)
|
|
253
|
+
}))), vt = d(() => ({
|
|
261
254
|
cy: "waffle-div-legend",
|
|
262
255
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
263
256
|
color: e.value.style.chart.legend.color,
|
|
264
257
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
265
258
|
paddingBottom: 12,
|
|
266
259
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
267
|
-
})),
|
|
268
|
-
function
|
|
269
|
-
if (
|
|
270
|
-
const a =
|
|
271
|
-
|
|
260
|
+
})), P = d(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), se = c(null);
|
|
261
|
+
function ct(t) {
|
|
262
|
+
if (p.value.length === m.dataset.length) return;
|
|
263
|
+
const a = i.value[t];
|
|
264
|
+
se.value = {
|
|
272
265
|
datapoint: a,
|
|
273
266
|
seriesIndex: a.absoluteIndex,
|
|
274
267
|
series: h.value,
|
|
275
268
|
config: e.value
|
|
276
|
-
},
|
|
269
|
+
}, le.value = !0, D.value = i.value[t].serieIndex;
|
|
277
270
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
278
|
-
if (
|
|
279
|
-
seriesIndex:
|
|
271
|
+
if (Lt(l) && zt(() => l({
|
|
272
|
+
seriesIndex: i.value[t].absoluteIndex,
|
|
280
273
|
datapoint: a,
|
|
281
274
|
series: h.value,
|
|
282
275
|
config: e.value
|
|
283
276
|
})))
|
|
284
|
-
|
|
285
|
-
seriesIndex:
|
|
277
|
+
ae.value = l({
|
|
278
|
+
seriesIndex: i.value[t].absoluteIndex,
|
|
286
279
|
datapoint: a,
|
|
287
280
|
series: h.value,
|
|
288
281
|
config: e.value
|
|
289
282
|
});
|
|
290
283
|
else {
|
|
291
284
|
let o = "";
|
|
292
|
-
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}" />${
|
|
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}" />${lt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${k.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${q(
|
|
293
286
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
294
287
|
a.value,
|
|
295
288
|
_({
|
|
@@ -300,69 +293,69 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
300
293
|
}),
|
|
301
294
|
{
|
|
302
295
|
datapoint: a,
|
|
303
|
-
seriesIndex:
|
|
296
|
+
seriesIndex: i.value[t].absoluteIndex,
|
|
304
297
|
series: h.value
|
|
305
298
|
}
|
|
306
299
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
307
300
|
const u = _({
|
|
308
|
-
v: a.value /
|
|
301
|
+
v: a.value / P.value * 100,
|
|
309
302
|
s: "%",
|
|
310
303
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
311
304
|
});
|
|
312
305
|
e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
|
|
313
306
|
}
|
|
314
|
-
|
|
307
|
+
ae.value = o;
|
|
315
308
|
}
|
|
316
309
|
}
|
|
317
|
-
const
|
|
318
|
-
const t =
|
|
310
|
+
const dt = qe, O = d(() => {
|
|
311
|
+
const t = Y.value.map((l) => ({
|
|
319
312
|
name: l.name,
|
|
320
313
|
color: l.color
|
|
321
|
-
})), a =
|
|
314
|
+
})), a = Y.value.map((l) => l.value);
|
|
322
315
|
return { head: t, body: a };
|
|
323
316
|
});
|
|
324
|
-
function
|
|
325
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
317
|
+
function Z(t) {
|
|
318
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
|
|
326
319
|
}
|
|
327
|
-
function
|
|
328
|
-
|
|
329
|
-
const t =
|
|
320
|
+
function ze() {
|
|
321
|
+
gt(() => {
|
|
322
|
+
const t = O.value.head.map((o, u) => [[
|
|
330
323
|
o.name
|
|
331
|
-
], [
|
|
332
|
-
|
|
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 = At(a);
|
|
325
|
+
Ft({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
333
326
|
});
|
|
334
327
|
}
|
|
335
|
-
const
|
|
328
|
+
const ee = d(() => {
|
|
336
329
|
const t = [
|
|
337
330
|
' <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>',
|
|
338
|
-
|
|
331
|
+
q(
|
|
339
332
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
340
|
-
|
|
333
|
+
P.value,
|
|
341
334
|
_({
|
|
342
335
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
343
|
-
v:
|
|
336
|
+
v: P.value,
|
|
344
337
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
345
338
|
r: e.value.table.td.roundingValue
|
|
346
339
|
})
|
|
347
340
|
),
|
|
348
341
|
"100%"
|
|
349
|
-
], a =
|
|
342
|
+
], a = O.value.head.map((u, v) => [
|
|
350
343
|
{
|
|
351
344
|
color: u.color,
|
|
352
345
|
name: u.name
|
|
353
346
|
},
|
|
354
|
-
|
|
347
|
+
q(
|
|
355
348
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
356
|
-
|
|
349
|
+
O.value.body[v],
|
|
357
350
|
_({
|
|
358
351
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
359
|
-
v:
|
|
352
|
+
v: O.value.body[v],
|
|
360
353
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
361
354
|
r: e.value.table.td.roundingValue
|
|
362
355
|
})
|
|
363
356
|
),
|
|
364
|
-
isNaN(
|
|
365
|
-
v:
|
|
357
|
+
isNaN(O.value.body[v] / P.value) ? "-" : _({
|
|
358
|
+
v: O.value.body[v] / P.value * 100,
|
|
366
359
|
s: "%",
|
|
367
360
|
r: e.value.table.td.roundingPercentage
|
|
368
361
|
})
|
|
@@ -390,59 +383,59 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
390
383
|
config: l,
|
|
391
384
|
colNames: o
|
|
392
385
|
};
|
|
393
|
-
}),
|
|
394
|
-
function
|
|
395
|
-
|
|
386
|
+
}), E = c(!1);
|
|
387
|
+
function ht(t) {
|
|
388
|
+
E.value = t, ce.value += 1;
|
|
396
389
|
}
|
|
397
|
-
function
|
|
390
|
+
function Ne() {
|
|
398
391
|
C.value.showTable = !C.value.showTable;
|
|
399
392
|
}
|
|
400
|
-
function
|
|
393
|
+
function Be() {
|
|
401
394
|
C.value.showTooltip = !C.value.showTooltip;
|
|
402
395
|
}
|
|
403
|
-
const
|
|
404
|
-
function
|
|
405
|
-
|
|
396
|
+
const te = c(!1);
|
|
397
|
+
function re() {
|
|
398
|
+
te.value = !te.value;
|
|
406
399
|
}
|
|
407
|
-
return
|
|
408
|
-
getData:
|
|
409
|
-
generatePdf:
|
|
410
|
-
generateCsv:
|
|
411
|
-
generateImage:
|
|
412
|
-
toggleTable:
|
|
413
|
-
toggleTooltip:
|
|
414
|
-
toggleAnnotator:
|
|
415
|
-
}), (t, a) => (s(),
|
|
416
|
-
class:
|
|
400
|
+
return We({
|
|
401
|
+
getData: nt,
|
|
402
|
+
generatePdf: Ie,
|
|
403
|
+
generateCsv: ze,
|
|
404
|
+
generateImage: Te,
|
|
405
|
+
toggleTable: Ne,
|
|
406
|
+
toggleTooltip: Be,
|
|
407
|
+
toggleAnnotator: re
|
|
408
|
+
}), (t, a) => (s(), n("div", {
|
|
409
|
+
class: De(`vue-ui-waffle ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
417
410
|
ref_key: "waffleChart",
|
|
418
|
-
ref:
|
|
411
|
+
ref: H,
|
|
419
412
|
id: `vue-ui-waffle_${k.value}`,
|
|
420
|
-
style:
|
|
421
|
-
onMouseenter: a[3] || (a[3] = () =>
|
|
422
|
-
onMouseleave: a[4] || (a[4] = () =>
|
|
413
|
+
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] = () => r(me)(!0)),
|
|
415
|
+
onMouseleave: a[4] || (a[4] = () => r(me)(!1))
|
|
423
416
|
}, [
|
|
424
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
417
|
+
e.value.userOptions.buttons.annotator ? (s(), V(r(Ye), {
|
|
425
418
|
key: 0,
|
|
426
|
-
svgRef:
|
|
419
|
+
svgRef: r(ke),
|
|
427
420
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
428
421
|
color: e.value.style.chart.color,
|
|
429
|
-
active:
|
|
430
|
-
onClose:
|
|
431
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
432
|
-
|
|
422
|
+
active: te.value,
|
|
423
|
+
onClose: re
|
|
424
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
425
|
+
ot.value ? (s(), n("div", {
|
|
433
426
|
key: 1,
|
|
434
427
|
ref_key: "noTitle",
|
|
435
|
-
ref:
|
|
428
|
+
ref: ye,
|
|
436
429
|
class: "vue-data-ui-no-title-space",
|
|
437
430
|
style: "height:36px; width: 100%;background:transparent"
|
|
438
|
-
}, null, 512)) :
|
|
439
|
-
e.value.style.chart.title.text ? (s(),
|
|
431
|
+
}, null, 512)) : y("", !0),
|
|
432
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
440
433
|
key: 2,
|
|
441
434
|
ref_key: "chartTitle",
|
|
442
|
-
ref:
|
|
435
|
+
ref: de,
|
|
443
436
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
444
437
|
}, [
|
|
445
|
-
(s(),
|
|
438
|
+
(s(), V(Rt, {
|
|
446
439
|
key: `title_${fe.value}`,
|
|
447
440
|
config: {
|
|
448
441
|
title: {
|
|
@@ -455,15 +448,15 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
455
448
|
}
|
|
456
449
|
}
|
|
457
450
|
}, null, 8, ["config"]))
|
|
458
|
-
], 512)) :
|
|
459
|
-
e.value.userOptions.show &&
|
|
451
|
+
], 512)) : y("", !0),
|
|
452
|
+
e.value.userOptions.show && J.value && (r(we) || r(oe)) ? (s(), V(r(Ze), {
|
|
460
453
|
ref_key: "details",
|
|
461
|
-
ref:
|
|
462
|
-
key: `user_options_${
|
|
454
|
+
ref: at,
|
|
455
|
+
key: `user_options_${ce.value}`,
|
|
463
456
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
464
457
|
color: e.value.style.chart.color,
|
|
465
|
-
isPrinting:
|
|
466
|
-
isImaging:
|
|
458
|
+
isPrinting: r($e),
|
|
459
|
+
isImaging: r(_e),
|
|
467
460
|
uid: k.value,
|
|
468
461
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
469
462
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -471,93 +464,93 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
471
464
|
hasXls: e.value.userOptions.buttons.csv,
|
|
472
465
|
hasTable: e.value.userOptions.buttons.table,
|
|
473
466
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
474
|
-
isFullscreen:
|
|
467
|
+
isFullscreen: E.value,
|
|
475
468
|
isTooltip: C.value.showTooltip,
|
|
476
469
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
477
|
-
chartElement:
|
|
470
|
+
chartElement: H.value,
|
|
478
471
|
position: e.value.userOptions.position,
|
|
479
472
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
480
|
-
isAnnotation:
|
|
481
|
-
onToggleFullscreen:
|
|
482
|
-
onGeneratePdf:
|
|
483
|
-
onGenerateCsv:
|
|
484
|
-
onGenerateImage:
|
|
485
|
-
onToggleTable:
|
|
486
|
-
onToggleTooltip:
|
|
487
|
-
onToggleAnnotator:
|
|
488
|
-
style:
|
|
489
|
-
visibility:
|
|
473
|
+
isAnnotation: te.value,
|
|
474
|
+
onToggleFullscreen: ht,
|
|
475
|
+
onGeneratePdf: r(Ie),
|
|
476
|
+
onGenerateCsv: ze,
|
|
477
|
+
onGenerateImage: r(Te),
|
|
478
|
+
onToggleTable: Ne,
|
|
479
|
+
onToggleTooltip: Be,
|
|
480
|
+
onToggleAnnotator: re,
|
|
481
|
+
style: K({
|
|
482
|
+
visibility: r(we) ? r(oe) ? "visible" : "hidden" : "visible"
|
|
490
483
|
})
|
|
491
|
-
},
|
|
484
|
+
}, Re({ _: 2 }, [
|
|
492
485
|
t.$slots.menuIcon ? {
|
|
493
486
|
name: "menuIcon",
|
|
494
|
-
fn:
|
|
495
|
-
g(t.$slots, "menuIcon",
|
|
487
|
+
fn: b(({ isOpen: l, color: o }) => [
|
|
488
|
+
g(t.$slots, "menuIcon", j(W({ isOpen: l, color: o })), void 0, !0)
|
|
496
489
|
]),
|
|
497
490
|
key: "0"
|
|
498
491
|
} : void 0,
|
|
499
492
|
t.$slots.optionTooltip ? {
|
|
500
493
|
name: "optionTooltip",
|
|
501
|
-
fn:
|
|
494
|
+
fn: b(() => [
|
|
502
495
|
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
503
496
|
]),
|
|
504
497
|
key: "1"
|
|
505
498
|
} : void 0,
|
|
506
499
|
t.$slots.optionPdf ? {
|
|
507
500
|
name: "optionPdf",
|
|
508
|
-
fn:
|
|
501
|
+
fn: b(() => [
|
|
509
502
|
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
510
503
|
]),
|
|
511
504
|
key: "2"
|
|
512
505
|
} : void 0,
|
|
513
506
|
t.$slots.optionCsv ? {
|
|
514
507
|
name: "optionCsv",
|
|
515
|
-
fn:
|
|
508
|
+
fn: b(() => [
|
|
516
509
|
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
517
510
|
]),
|
|
518
511
|
key: "3"
|
|
519
512
|
} : void 0,
|
|
520
513
|
t.$slots.optionImg ? {
|
|
521
514
|
name: "optionImg",
|
|
522
|
-
fn:
|
|
515
|
+
fn: b(() => [
|
|
523
516
|
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
524
517
|
]),
|
|
525
518
|
key: "4"
|
|
526
519
|
} : void 0,
|
|
527
520
|
t.$slots.optionTable ? {
|
|
528
521
|
name: "optionTable",
|
|
529
|
-
fn:
|
|
522
|
+
fn: b(() => [
|
|
530
523
|
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
531
524
|
]),
|
|
532
525
|
key: "5"
|
|
533
526
|
} : void 0,
|
|
534
527
|
t.$slots.optionFullscreen ? {
|
|
535
528
|
name: "optionFullscreen",
|
|
536
|
-
fn:
|
|
537
|
-
g(t.$slots, "optionFullscreen",
|
|
529
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
530
|
+
g(t.$slots, "optionFullscreen", j(W({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
538
531
|
]),
|
|
539
532
|
key: "6"
|
|
540
533
|
} : void 0,
|
|
541
534
|
t.$slots.optionAnnotator ? {
|
|
542
535
|
name: "optionAnnotator",
|
|
543
|
-
fn:
|
|
544
|
-
g(t.$slots, "optionAnnotator",
|
|
536
|
+
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
537
|
+
g(t.$slots, "optionAnnotator", j(W({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
545
538
|
]),
|
|
546
539
|
key: "7"
|
|
547
540
|
} : void 0
|
|
548
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
549
|
-
|
|
541
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
542
|
+
J.value ? (s(), n("svg", {
|
|
550
543
|
key: 4,
|
|
551
544
|
ref_key: "svgRef",
|
|
552
|
-
ref:
|
|
553
|
-
xmlns:
|
|
554
|
-
class:
|
|
555
|
-
viewBox: `0 0 ${
|
|
556
|
-
style:
|
|
545
|
+
ref: ke,
|
|
546
|
+
xmlns: r(_t),
|
|
547
|
+
class: De({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
548
|
+
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
549
|
+
style: K(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
557
550
|
}, [
|
|
558
|
-
|
|
551
|
+
ie(r(et)),
|
|
559
552
|
x("defs", null, [
|
|
560
|
-
(s(!0),
|
|
553
|
+
(s(!0), n($, null, L(i.value, (l, o) => (s(), n("radialGradient", {
|
|
561
554
|
cx: "50%",
|
|
562
555
|
cy: "50%",
|
|
563
556
|
r: "50%",
|
|
@@ -567,13 +560,13 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
567
560
|
}, [
|
|
568
561
|
x("stop", {
|
|
569
562
|
offset: "0%",
|
|
570
|
-
"stop-color":
|
|
571
|
-
}, null, 8,
|
|
563
|
+
"stop-color": r(It)(r(Tt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
564
|
+
}, null, 8, qt),
|
|
572
565
|
x("stop", {
|
|
573
566
|
offset: "100%",
|
|
574
567
|
"stop-color": l.color
|
|
575
|
-
}, null, 8,
|
|
576
|
-
], 8,
|
|
568
|
+
}, null, 8, Ht)
|
|
569
|
+
], 8, Wt))), 256))
|
|
577
570
|
]),
|
|
578
571
|
x("defs", null, [
|
|
579
572
|
x("filter", {
|
|
@@ -591,18 +584,18 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
591
584
|
type: "saturate",
|
|
592
585
|
values: "0"
|
|
593
586
|
}, null, -1)
|
|
594
|
-
]), 8,
|
|
587
|
+
]), 8, Xt)
|
|
595
588
|
]),
|
|
596
|
-
e.value.useCustomCells &&
|
|
589
|
+
e.value.useCustomCells && i.value.length ? (s(!0), n($, { key: 0 }, L(U.value, (l, o) => (s(), n("foreignObject", {
|
|
597
590
|
x: l.x,
|
|
598
591
|
y: l.y,
|
|
599
592
|
height: S.value <= 0 ? 1e-4 : S.value,
|
|
600
593
|
width: T.value <= 0 ? 1e-4 : T.value,
|
|
601
594
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
602
595
|
}, [
|
|
603
|
-
g(t.$slots, "cell",
|
|
604
|
-
], 8,
|
|
605
|
-
!
|
|
596
|
+
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)) : y("", !0),
|
|
598
|
+
!i.value.length && !e.value.useCustomCells ? (s(), n("rect", {
|
|
606
599
|
key: 1,
|
|
607
600
|
x: 12,
|
|
608
601
|
y: 12,
|
|
@@ -611,13 +604,13 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
611
604
|
rx: 3,
|
|
612
605
|
fill: "none",
|
|
613
606
|
stroke: "black"
|
|
614
|
-
}, null, 8,
|
|
615
|
-
t.$slots.pattern ? (s(),
|
|
616
|
-
(s(!0),
|
|
617
|
-
g(t.$slots, "pattern",
|
|
607
|
+
}, null, 8, Kt)) : i.value.length && !e.value.useCustomCells ? (s(), n($, { key: 2 }, [
|
|
608
|
+
t.$slots.pattern ? (s(), n("g", Jt, [
|
|
609
|
+
(s(!0), n($, null, L(ue.value, (l) => (s(), n("defs", null, [
|
|
610
|
+
g(t.$slots, "pattern", Ue({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
618
611
|
]))), 256))
|
|
619
|
-
])) :
|
|
620
|
-
(s(!0),
|
|
612
|
+
])) : y("", !0),
|
|
613
|
+
(s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
|
|
621
614
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
622
615
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
623
616
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -626,90 +619,90 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
626
619
|
fill: "white",
|
|
627
620
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
628
621
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
629
|
-
filter:
|
|
630
|
-
}, null, 8,
|
|
631
|
-
(s(!0),
|
|
622
|
+
filter: Z(i.value[o].serieIndex)
|
|
623
|
+
}, null, 8, Qt))), 256)),
|
|
624
|
+
(s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
|
|
632
625
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
633
626
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
634
627
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
635
628
|
height: S.value <= 0 ? 1e-4 : S.value,
|
|
636
629
|
width: T.value <= 0 ? 1e-4 : T.value,
|
|
637
|
-
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` :
|
|
630
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${k.value}_${o})` : i.value[o].color,
|
|
638
631
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
639
632
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
640
|
-
filter:
|
|
641
|
-
}, null, 8,
|
|
642
|
-
t.$slots.pattern ? (s(),
|
|
643
|
-
(s(!0),
|
|
633
|
+
filter: Z(i.value[o].serieIndex)
|
|
634
|
+
}, null, 8, Zt))), 256)),
|
|
635
|
+
t.$slots.pattern ? (s(), n("g", el, [
|
|
636
|
+
(s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
|
|
644
637
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
645
638
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
646
639
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
647
640
|
height: S.value <= 0 ? 1e-4 : S.value,
|
|
648
641
|
width: T.value <= 0 ? 1e-4 : T.value,
|
|
649
|
-
fill: `url(#pattern_${k.value}_${
|
|
642
|
+
fill: `url(#pattern_${k.value}_${i.value[o].absoluteIndex})`,
|
|
650
643
|
stroke: "none",
|
|
651
|
-
filter:
|
|
652
|
-
}, null, 8,
|
|
653
|
-
])) :
|
|
654
|
-
], 64)) :
|
|
655
|
-
(s(!0),
|
|
656
|
-
|
|
644
|
+
filter: Z(i.value[o].serieIndex)
|
|
645
|
+
}, null, 8, tl))), 256))
|
|
646
|
+
])) : y("", !0)
|
|
647
|
+
], 64)) : y("", !0),
|
|
648
|
+
(s(!0), n($, null, L(U.value, (l, o) => (s(), n($, null, [
|
|
649
|
+
i.value.length && !B.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(), n("foreignObject", {
|
|
657
650
|
key: 0,
|
|
658
651
|
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
659
652
|
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
660
|
-
height:
|
|
661
|
-
width:
|
|
662
|
-
filter:
|
|
653
|
+
height: Q.value <= 0 ? 1e-4 : Q.value,
|
|
654
|
+
width: X.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : X.value * e.value.style.chart.layout.grid.size,
|
|
655
|
+
filter: Z(i.value[o].serieIndex)
|
|
663
656
|
}, [
|
|
664
657
|
x("div", {
|
|
665
658
|
class: "vue-ui-waffle-caption",
|
|
666
|
-
style:
|
|
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:${r(St)(i.value[o].color)};gap:2px`)
|
|
667
660
|
}, [
|
|
668
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(),
|
|
669
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(),
|
|
670
|
-
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(),
|
|
661
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), n("span", al, z(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? r(Pt)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : y("", !0),
|
|
662
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), n("span", ol, z(r(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : y("", !0),
|
|
663
|
+
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", ul, " (" + z(r(q)(
|
|
671
664
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
672
|
-
|
|
673
|
-
|
|
665
|
+
i.value[o].value,
|
|
666
|
+
r(_)({
|
|
674
667
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
675
|
-
v:
|
|
668
|
+
v: i.value[o].value,
|
|
676
669
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
677
670
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
678
671
|
}),
|
|
679
|
-
{ datapoint:
|
|
680
|
-
)) + ") ", 1)) :
|
|
681
|
-
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(),
|
|
672
|
+
{ datapoint: i.value[o], position: l }
|
|
673
|
+
)) + ") ", 1)) : y("", !0),
|
|
674
|
+
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), n("span", sl, z(r(q)(
|
|
682
675
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
683
|
-
|
|
684
|
-
|
|
676
|
+
i.value[o].value,
|
|
677
|
+
r(_)({
|
|
685
678
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
686
|
-
v:
|
|
679
|
+
v: i.value[o].value,
|
|
687
680
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
688
681
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
689
682
|
}),
|
|
690
|
-
{ datapoint:
|
|
691
|
-
)), 1)) :
|
|
683
|
+
{ datapoint: i.value[o], position: l }
|
|
684
|
+
)), 1)) : y("", !0)
|
|
692
685
|
], 4)
|
|
693
|
-
], 8,
|
|
686
|
+
], 8, ll)) : y("", !0)
|
|
694
687
|
], 64))), 256)),
|
|
695
|
-
(s(!0),
|
|
696
|
-
onMouseover: (u) =>
|
|
688
|
+
(s(!0), n($, null, L(U.value, (l, o) => (s(), n("rect", {
|
|
689
|
+
onMouseover: (u) => ct(o),
|
|
697
690
|
onMouseleave: a[0] || (a[0] = (u) => {
|
|
698
|
-
|
|
691
|
+
le.value = !1, D.value = null;
|
|
699
692
|
}),
|
|
700
693
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
701
694
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
702
|
-
height:
|
|
703
|
-
width:
|
|
695
|
+
height: Q.value <= 0 ? 1e-4 : Q.value,
|
|
696
|
+
width: X.value <= 0 ? 1e-4 : X.value,
|
|
704
697
|
fill: "transparent",
|
|
705
698
|
stroke: "none"
|
|
706
|
-
}, null, 40,
|
|
707
|
-
g(t.$slots, "svg", { svg:
|
|
708
|
-
], 14,
|
|
709
|
-
t.$slots.watermark ? (s(),
|
|
710
|
-
g(t.$slots, "watermark",
|
|
711
|
-
])) :
|
|
712
|
-
|
|
699
|
+
}, null, 40, rl))), 256)),
|
|
700
|
+
g(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
701
|
+
], 14, jt)) : y("", !0),
|
|
702
|
+
t.$slots.watermark ? (s(), n("div", nl, [
|
|
703
|
+
g(t.$slots, "watermark", j(W({ isPrinting: r($e) || r(_e) })), void 0, !0)
|
|
704
|
+
])) : y("", !0),
|
|
705
|
+
J.value ? y("", !0) : (s(), V(r(Je), {
|
|
713
706
|
key: 6,
|
|
714
707
|
config: {
|
|
715
708
|
type: "waffle",
|
|
@@ -723,40 +716,40 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
723
716
|
}, null, 8, ["config"])),
|
|
724
717
|
x("div", {
|
|
725
718
|
ref_key: "chartLegend",
|
|
726
|
-
ref:
|
|
719
|
+
ref: he
|
|
727
720
|
}, [
|
|
728
|
-
e.value.style.chart.legend.show ? (s(),
|
|
729
|
-
key: `legend_${
|
|
730
|
-
legendSet:
|
|
731
|
-
config:
|
|
721
|
+
e.value.style.chart.legend.show ? (s(), V(Ut, {
|
|
722
|
+
key: `legend_${be.value}`,
|
|
723
|
+
legendSet: G.value,
|
|
724
|
+
config: vt.value,
|
|
732
725
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => Le(l.uid))
|
|
733
|
-
},
|
|
734
|
-
item:
|
|
726
|
+
}, Re({
|
|
727
|
+
item: b(({ legend: l }) => [
|
|
735
728
|
x("div", {
|
|
736
729
|
onClick: (o) => l.segregate(),
|
|
737
|
-
style:
|
|
730
|
+
style: K(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
738
731
|
}, [
|
|
739
|
-
|
|
732
|
+
Ge(z(l.name) + ": " + z(r(q)(
|
|
740
733
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
741
734
|
l.value,
|
|
742
|
-
|
|
735
|
+
r(_)({
|
|
743
736
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
744
737
|
v: l.value,
|
|
745
738
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
746
739
|
r: e.value.style.chart.legend.roundingValue,
|
|
747
|
-
isAnimating:
|
|
740
|
+
isAnimating: B.value
|
|
748
741
|
}),
|
|
749
742
|
{ datapoint: l }
|
|
750
743
|
)) + " ", 1),
|
|
751
|
-
|
|
752
|
-
], 12,
|
|
744
|
+
p.value.includes(l.uid) ? (s(), n("span", cl, " ( - % ) ")) : (s(), n("span", vl, " (" + z(isNaN(l.value / P.value) ? "-" : r(_)({ v: l.value / P.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: B.value })) + ") ", 1))
|
|
745
|
+
], 12, il)
|
|
753
746
|
]),
|
|
754
747
|
_: 2
|
|
755
748
|
}, [
|
|
756
749
|
t.$slots.pattern ? {
|
|
757
750
|
name: "legend-pattern",
|
|
758
|
-
fn:
|
|
759
|
-
|
|
751
|
+
fn: b(({ legend: l, index: o }) => [
|
|
752
|
+
ie(r(Xe), {
|
|
760
753
|
shape: l.shape,
|
|
761
754
|
radius: 30,
|
|
762
755
|
stroke: "none",
|
|
@@ -768,19 +761,19 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
768
761
|
} : void 0
|
|
769
762
|
]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
770
763
|
key: 1,
|
|
771
|
-
legend:
|
|
764
|
+
legend: G.value
|
|
772
765
|
}, void 0, !0)
|
|
773
766
|
], 512),
|
|
774
|
-
t.$slots.source ? (s(),
|
|
767
|
+
t.$slots.source ? (s(), n("div", {
|
|
775
768
|
key: 7,
|
|
776
769
|
ref_key: "source",
|
|
777
|
-
ref:
|
|
770
|
+
ref: pe,
|
|
778
771
|
dir: "auto"
|
|
779
772
|
}, [
|
|
780
773
|
g(t.$slots, "source", {}, void 0, !0)
|
|
781
|
-
], 512)) :
|
|
782
|
-
|
|
783
|
-
show: C.value.showTooltip &&
|
|
774
|
+
], 512)) : y("", !0),
|
|
775
|
+
ie(r(Qe), {
|
|
776
|
+
show: C.value.showTooltip && le.value && p.value.length < m.dataset.length,
|
|
784
777
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
785
778
|
color: e.value.style.chart.tooltip.color,
|
|
786
779
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -789,21 +782,21 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
789
782
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
790
783
|
position: e.value.style.chart.tooltip.position,
|
|
791
784
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
792
|
-
parent:
|
|
793
|
-
content:
|
|
785
|
+
parent: H.value,
|
|
786
|
+
content: ae.value,
|
|
794
787
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
795
788
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
796
|
-
isFullscreen:
|
|
789
|
+
isFullscreen: E.value
|
|
797
790
|
}, {
|
|
798
|
-
"tooltip-before":
|
|
799
|
-
g(t.$slots, "tooltip-before",
|
|
791
|
+
"tooltip-before": b(() => [
|
|
792
|
+
g(t.$slots, "tooltip-before", j(W({ ...se.value })), void 0, !0)
|
|
800
793
|
]),
|
|
801
|
-
"tooltip-after":
|
|
802
|
-
g(t.$slots, "tooltip-after",
|
|
794
|
+
"tooltip-after": b(() => [
|
|
795
|
+
g(t.$slots, "tooltip-after", j(W({ ...se.value })), void 0, !0)
|
|
803
796
|
]),
|
|
804
797
|
_: 3
|
|
805
798
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
|
|
806
|
-
|
|
799
|
+
J.value ? (s(), V(r(Ke), {
|
|
807
800
|
key: 8,
|
|
808
801
|
hideDetails: "",
|
|
809
802
|
config: {
|
|
@@ -819,33 +812,33 @@ const Rt = ["id"], Ut = ["xmlns", "viewBox"], Gt = ["id"], jt = ["stop-color"],
|
|
|
819
812
|
}
|
|
820
813
|
}
|
|
821
814
|
}, {
|
|
822
|
-
content:
|
|
823
|
-
(s(),
|
|
824
|
-
key: `table_${
|
|
825
|
-
colNames:
|
|
826
|
-
head:
|
|
827
|
-
body:
|
|
828
|
-
config:
|
|
815
|
+
content: b(() => [
|
|
816
|
+
(s(), V(r(He), {
|
|
817
|
+
key: `table_${ge.value}`,
|
|
818
|
+
colNames: ee.value.colNames,
|
|
819
|
+
head: ee.value.head,
|
|
820
|
+
body: ee.value.body,
|
|
821
|
+
config: ee.value.config,
|
|
829
822
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
830
823
|
onClose: a[2] || (a[2] = (l) => C.value.showTable = !1)
|
|
831
824
|
}, {
|
|
832
|
-
th:
|
|
825
|
+
th: b(({ th: l }) => [
|
|
833
826
|
x("div", {
|
|
834
827
|
innerHTML: l,
|
|
835
828
|
style: { display: "flex", "align-items": "center" }
|
|
836
|
-
}, null, 8,
|
|
829
|
+
}, null, 8, dl)
|
|
837
830
|
]),
|
|
838
|
-
td:
|
|
839
|
-
|
|
831
|
+
td: b(({ td: l }) => [
|
|
832
|
+
Ge(z(l.name || l), 1)
|
|
840
833
|
]),
|
|
841
834
|
_: 1
|
|
842
835
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
843
836
|
]),
|
|
844
837
|
_: 1
|
|
845
|
-
}, 8, ["config"])) :
|
|
846
|
-
], 46,
|
|
838
|
+
}, 8, ["config"])) : y("", !0)
|
|
839
|
+
], 46, Et));
|
|
847
840
|
}
|
|
848
|
-
},
|
|
841
|
+
}, $l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-d587fd7c"]]);
|
|
849
842
|
export {
|
|
850
|
-
|
|
843
|
+
$l as default
|
|
851
844
|
};
|