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