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 { _ as gt } from "./Tooltip-CWmRmhJr.js";
|
|
7
|
-
import { D as ft } from "./DataTable-Rajdtaf6.js";
|
|
8
|
-
import { L as yt } from "./Legend-BxtDQCIv.js";
|
|
9
|
-
import mt from "./vue-ui-skeleton-B_YI7Yuc.js";
|
|
10
|
-
import bt from "./vue-ui-accordion-BUz4JIIX.js";
|
|
11
|
-
import { u as Oe } from "./useNestedProp-v7KPpwuP.js";
|
|
12
|
-
import { _ as kt } from "./PackageVersion-BjrblLPQ.js";
|
|
13
|
-
import { _ as Ct } from "./PenAndPaper-BkP3J-Ft.js";
|
|
1
|
+
import { defineAsyncComponent as O, useSlots as et, ref as i, computed as g, watch as tt, shallowRef as _e, onMounted as lt, onBeforeUnmount as ot, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as N, normalizeClass as U, createBlock as P, createCommentVNode as m, createElementVNode as T, createVNode as Q, createSlots as xe, withCtx as h, renderSlot as d, normalizeProps as R, guardReactiveProps as M, Fragment as Z, renderList as ee, mergeProps as at, createTextVNode as Ie, toDisplayString as G, nextTick as st } from "vue";
|
|
2
|
+
import { u as nt, c as Oe, t as ut, p as A, a as rt, o as it, e as te, g as vt, b as ct, H as dt, d as Ne, f as S, X as pt, s as ht, w as gt, v as j, i as Pe, q as ft, r as yt, x as mt, y as bt } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { t as kt, u as Ct } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
+
import { u as Ae } from "./useNestedProp-CZztHZIm.js";
|
|
5
|
+
import { u as wt } from "./usePrinter-C8URL2IU.js";
|
|
14
6
|
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
7
|
+
import { u as Tt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import _t from "./Legend-DtTYopxf.js";
|
|
9
|
+
import xt from "./Title-Bc66VstS.js";
|
|
10
|
+
import It from "./Shape-B6kIkp2s.js";
|
|
11
|
+
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Nt = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], St = ["id"], Ft = ["stop-color"], Lt = ["stop-color"], Rt = { key: 1 }, Mt = ["stroke", "cx", "cy", "r", "fill"], Vt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], zt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Ut = ["cx", "cy", "r", "onMouseenter"], Wt = {
|
|
19
13
|
key: 5,
|
|
20
14
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
15
|
+
}, Bt = ["onClick"], Et = { key: 0 }, Dt = { key: 1 }, Ht = ["innerHTML"], Gt = {
|
|
22
16
|
__name: "vue-ui-rings",
|
|
23
17
|
props: {
|
|
24
18
|
config: {
|
|
@@ -35,44 +29,44 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
35
29
|
}
|
|
36
30
|
},
|
|
37
31
|
emits: ["selectLegend"],
|
|
38
|
-
setup(
|
|
39
|
-
const { vue_ui_rings:
|
|
40
|
-
get: () =>
|
|
32
|
+
setup(Se, { expose: Fe, emit: Le }) {
|
|
33
|
+
const Re = O(() => import("./vue-ui-accordion-DntThSTF.js")), Me = O(() => import("./DataTable-Y5HbiUZU.js")), Ve = O(() => import("./PackageVersion-DaWGaZxE.js")), ze = O(() => import("./PenAndPaper-C-CpE0NC.js")), Ue = O(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), We = O(() => import("./Tooltip-B07vY6jm.js")), Be = O(() => import("./UserOptions-C8X2STEg.js")), { vue_ui_rings: Ee } = nt(), De = et(), b = Se, I = i(!1), W = g(() => !!b.dataset && b.dataset.length), w = i(Oe()), He = i(null), B = i(!1), X = i(""), $ = i(null), le = i(0), V = i(null), oe = i(null), ae = i(null), se = i(null), ne = i(null), ue = i(0), re = i(0), ie = i(0), e = g({
|
|
34
|
+
get: () => pe(),
|
|
41
35
|
set: (t) => t
|
|
42
|
-
}), { userOptionsVisible:
|
|
43
|
-
function
|
|
44
|
-
const t =
|
|
36
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = $t({ config: e.value }), { svgRef: de } = Tt({ config: e.value.style.chart.title });
|
|
37
|
+
function pe() {
|
|
38
|
+
const t = Ae({
|
|
45
39
|
userConfig: b.config,
|
|
46
|
-
defaultConfig:
|
|
40
|
+
defaultConfig: Ee
|
|
47
41
|
});
|
|
48
42
|
return t.theme ? {
|
|
49
|
-
...
|
|
50
|
-
userConfig:
|
|
43
|
+
...Ae({
|
|
44
|
+
userConfig: rt.vue_ui_rings[t.theme] || b.config,
|
|
51
45
|
defaultConfig: t
|
|
52
46
|
}),
|
|
53
|
-
customPalette:
|
|
47
|
+
customPalette: ut[t.theme] || A
|
|
54
48
|
} : t;
|
|
55
49
|
}
|
|
56
|
-
|
|
57
|
-
e.value =
|
|
50
|
+
tt(() => b.config, (t) => {
|
|
51
|
+
e.value = pe(), q.value = !e.value.userOptions.showOnChartHover, he(), ue.value += 1, re.value += 1, ie.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
58
52
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
const _ = _e(null), F = _e(null);
|
|
54
|
+
lt(() => {
|
|
55
|
+
he();
|
|
62
56
|
});
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
57
|
+
function he() {
|
|
58
|
+
if (it(b.dataset) ? te({
|
|
65
59
|
componentName: "VueUiRings",
|
|
66
60
|
type: "dataset"
|
|
67
61
|
}) : b.dataset.forEach((t, o) => {
|
|
68
|
-
t.values.length ||
|
|
62
|
+
t.values.length || te({
|
|
69
63
|
componentName: "VueUiRings",
|
|
70
64
|
type: "dataset"
|
|
71
|
-
}),
|
|
65
|
+
}), vt({
|
|
72
66
|
datasetObject: t,
|
|
73
67
|
requiredAttributes: ["name", "values"]
|
|
74
68
|
}).forEach((l) => {
|
|
75
|
-
|
|
69
|
+
te({
|
|
76
70
|
componentName: "VueUiRings",
|
|
77
71
|
type: "datasetSerieAttribute",
|
|
78
72
|
property: l,
|
|
@@ -80,120 +74,120 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
80
74
|
});
|
|
81
75
|
});
|
|
82
76
|
}), e.value.responsive) {
|
|
83
|
-
const t =
|
|
84
|
-
const { width: o, height: l } =
|
|
85
|
-
chart:
|
|
86
|
-
title: e.value.style.chart.title.text ?
|
|
87
|
-
legend: e.value.style.chart.legend.show ?
|
|
88
|
-
source:
|
|
89
|
-
noTitle:
|
|
77
|
+
const t = kt(() => {
|
|
78
|
+
const { width: o, height: l } = Ct({
|
|
79
|
+
chart: V.value,
|
|
80
|
+
title: e.value.style.chart.title.text ? oe.value : null,
|
|
81
|
+
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
82
|
+
source: se.value,
|
|
83
|
+
noTitle: ne.value
|
|
90
84
|
});
|
|
91
85
|
requestAnimationFrame(() => {
|
|
92
|
-
|
|
86
|
+
n.value.width = o, n.value.height = l;
|
|
93
87
|
});
|
|
94
88
|
});
|
|
95
|
-
|
|
89
|
+
_.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = V.value.parentNode, _.value.observe(F.value);
|
|
96
90
|
}
|
|
97
91
|
setTimeout(() => {
|
|
98
|
-
|
|
92
|
+
I.value = !0;
|
|
99
93
|
}, 600);
|
|
100
94
|
}
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
ot(() => {
|
|
96
|
+
_.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
|
|
103
97
|
});
|
|
104
|
-
const { isPrinting:
|
|
105
|
-
elementId: `rings_${
|
|
98
|
+
const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = wt({
|
|
99
|
+
elementId: `rings_${w.value}`,
|
|
106
100
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
107
101
|
options: e.value.userOptions.print
|
|
108
|
-
}),
|
|
102
|
+
}), Ge = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = g(() => ct(e.value.customPalette)), k = i({
|
|
109
103
|
showTable: e.value.table.show,
|
|
110
104
|
showTooltip: e.value.style.chart.tooltip.show
|
|
111
|
-
}),
|
|
105
|
+
}), n = i({
|
|
112
106
|
height: 360,
|
|
113
107
|
width: 360
|
|
114
|
-
}),
|
|
115
|
-
function
|
|
116
|
-
f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t),
|
|
108
|
+
}), je = g(() => Math.min(n.value.height, n.value.width)), Xe = Le, f = i([]);
|
|
109
|
+
function Y(t) {
|
|
110
|
+
f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t), Xe("selectLegend", p.value.map((o) => ({
|
|
117
111
|
name: o.name,
|
|
118
112
|
color: o.color,
|
|
119
113
|
value: o.value
|
|
120
114
|
})));
|
|
121
115
|
}
|
|
122
|
-
const
|
|
123
|
-
...
|
|
116
|
+
const qe = g(() => Math.max(
|
|
117
|
+
...E.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t)
|
|
124
118
|
));
|
|
125
|
-
function
|
|
126
|
-
return t /
|
|
119
|
+
function ke(t) {
|
|
120
|
+
return t / qe.value;
|
|
127
121
|
}
|
|
128
|
-
const
|
|
129
|
-
const
|
|
122
|
+
const E = g(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
123
|
+
const r = dt(t).reduce((y, z) => y + z, 0);
|
|
130
124
|
return {
|
|
131
125
|
name: o,
|
|
132
|
-
color: l ||
|
|
133
|
-
value:
|
|
134
|
-
proportion:
|
|
135
|
-
uid:
|
|
126
|
+
color: l || Ne(l) || be.value[a] || A[a] || A[a % A.length],
|
|
127
|
+
value: r,
|
|
128
|
+
proportion: r / b.dataset.map((y) => (y.values || []).reduce((z, Ze) => z + Ze, 0)).reduce((y, z) => y + z, 0),
|
|
129
|
+
uid: Oe(),
|
|
136
130
|
absoluteIndex: a
|
|
137
131
|
};
|
|
138
|
-
})),
|
|
132
|
+
})), Ce = g(() => E.value.map((t) => ({
|
|
139
133
|
...t,
|
|
140
134
|
shape: "circle",
|
|
141
135
|
opacity: f.value.includes(t.uid) ? 0.5 : 1,
|
|
142
|
-
segregate: () =>
|
|
136
|
+
segregate: () => Y(t.uid),
|
|
143
137
|
isSegregated: f.value.includes(t.uid)
|
|
144
|
-
})).toSorted((t, o) => o.value - t.value)),
|
|
138
|
+
})).toSorted((t, o) => o.value - t.value)), Ye = g(() => ({
|
|
145
139
|
cy: "rings-div-legend",
|
|
146
140
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
147
141
|
color: e.value.style.chart.legend.color,
|
|
148
142
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
149
143
|
paddingBottom: 12,
|
|
150
144
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
151
|
-
})), C = g(() =>
|
|
152
|
-
absoluteIndex:
|
|
145
|
+
})), C = g(() => E.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), p = g(() => E.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: r }, y) => ({
|
|
146
|
+
absoluteIndex: r,
|
|
153
147
|
uid: a,
|
|
154
148
|
name: t,
|
|
155
|
-
color: l ||
|
|
149
|
+
color: l || Ne(l) || be.value[y] || A[y] || A[y % A.length],
|
|
156
150
|
value: o,
|
|
157
|
-
proportion:
|
|
151
|
+
proportion: ke(o),
|
|
158
152
|
percentage: o / C.value * 100,
|
|
159
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
153
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
|
|
160
154
|
})).toSorted((t, o) => o.value - t.value));
|
|
161
|
-
function
|
|
155
|
+
function Je() {
|
|
162
156
|
return p.value.map(
|
|
163
|
-
({ name: t, color: o, value: l, absoluteValues: a, percentage:
|
|
157
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
|
|
164
158
|
name: t,
|
|
165
159
|
color: o,
|
|
166
160
|
value: l,
|
|
167
161
|
absoluteValues: a,
|
|
168
|
-
percentage:
|
|
162
|
+
percentage: r
|
|
169
163
|
})
|
|
170
164
|
);
|
|
171
165
|
}
|
|
172
|
-
const c = g(() =>
|
|
173
|
-
function
|
|
166
|
+
const c = g(() => je.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
|
|
167
|
+
function Ke(t, o) {
|
|
174
168
|
if (f.value.length === b.dataset.length) return;
|
|
175
|
-
|
|
169
|
+
J.value = {
|
|
176
170
|
datapoint: o,
|
|
177
171
|
seriesIndex: t,
|
|
178
172
|
series: p.value,
|
|
179
173
|
config: e.value
|
|
180
|
-
},
|
|
174
|
+
}, $.value = t;
|
|
181
175
|
const l = p.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
182
|
-
if (
|
|
176
|
+
if (mt(a) && bt(() => a({
|
|
183
177
|
seriesIndex: t,
|
|
184
178
|
datapoint: o,
|
|
185
179
|
series: p.value,
|
|
186
180
|
config: e.value
|
|
187
181
|
})))
|
|
188
|
-
|
|
182
|
+
X.value = a({
|
|
189
183
|
seriesIndex: t,
|
|
190
184
|
datapoint: o,
|
|
191
185
|
series: p.value,
|
|
192
186
|
config: e.value
|
|
193
187
|
});
|
|
194
188
|
else {
|
|
195
|
-
let
|
|
196
|
-
|
|
189
|
+
let r = "";
|
|
190
|
+
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${De.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${o.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Pe(
|
|
197
191
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
198
192
|
l.value,
|
|
199
193
|
S({
|
|
@@ -204,36 +198,36 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
204
198
|
}),
|
|
205
199
|
{ datapoint: o, seriesIndex: t }
|
|
206
200
|
)}
|
|
207
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
201
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${S({
|
|
208
202
|
v: l.value / C.value * 100,
|
|
209
203
|
s: "%",
|
|
210
204
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
211
|
-
})})</span></div>` :
|
|
205
|
+
})})</span></div>` : r += `<b>${S({
|
|
212
206
|
v: l.value / C.value * 100,
|
|
213
207
|
s: "%",
|
|
214
208
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
215
|
-
})}</b></div>`),
|
|
209
|
+
})}</b></div>`), X.value = r;
|
|
216
210
|
}
|
|
217
|
-
|
|
211
|
+
B.value = !0;
|
|
218
212
|
}
|
|
219
|
-
const
|
|
213
|
+
const x = g(() => {
|
|
220
214
|
const t = p.value.map((l) => ({
|
|
221
215
|
name: l.name,
|
|
222
216
|
color: l.color
|
|
223
217
|
})), o = p.value.map((l) => l.value);
|
|
224
218
|
return { head: t, body: o };
|
|
225
|
-
}),
|
|
219
|
+
}), D = g(() => {
|
|
226
220
|
const t = [
|
|
227
221
|
' <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>',
|
|
228
222
|
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
229
223
|
"100%"
|
|
230
|
-
], o =
|
|
224
|
+
], o = x.value.head.map((r, y) => [
|
|
231
225
|
{
|
|
232
|
-
color:
|
|
233
|
-
name:
|
|
226
|
+
color: r.color,
|
|
227
|
+
name: r.name
|
|
234
228
|
},
|
|
235
|
-
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v:
|
|
236
|
-
isNaN(
|
|
229
|
+
S({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: x.value.body[y], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
230
|
+
isNaN(x.value.body[y] / C.value) ? "-" : (x.value.body[y] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
237
231
|
]), l = {
|
|
238
232
|
th: {
|
|
239
233
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -258,70 +252,70 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
258
252
|
colNames: a
|
|
259
253
|
};
|
|
260
254
|
});
|
|
261
|
-
function
|
|
262
|
-
|
|
263
|
-
const t =
|
|
255
|
+
function we() {
|
|
256
|
+
st(() => {
|
|
257
|
+
const t = x.value.head.map((a, r) => [[
|
|
264
258
|
a.name
|
|
265
|
-
], [
|
|
266
|
-
|
|
259
|
+
], [x.value.body[r]], [isNaN(x.value.body[r] / C.value) ? "-" : x.value.body[r] / C.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = ft(o);
|
|
260
|
+
yt({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
267
261
|
});
|
|
268
262
|
}
|
|
269
|
-
const
|
|
270
|
-
function
|
|
271
|
-
|
|
263
|
+
const L = i(!1);
|
|
264
|
+
function Qe(t) {
|
|
265
|
+
L.value = t, le.value += 1;
|
|
272
266
|
}
|
|
273
|
-
function
|
|
267
|
+
function $e() {
|
|
274
268
|
k.value.showTable = !k.value.showTable;
|
|
275
269
|
}
|
|
276
|
-
function
|
|
270
|
+
function Te() {
|
|
277
271
|
k.value.showTooltip = !k.value.showTooltip;
|
|
278
272
|
}
|
|
279
|
-
const
|
|
280
|
-
function
|
|
281
|
-
|
|
273
|
+
const H = i(!1);
|
|
274
|
+
function K() {
|
|
275
|
+
H.value = !H.value;
|
|
282
276
|
}
|
|
283
|
-
return
|
|
284
|
-
getData:
|
|
285
|
-
generatePdf:
|
|
286
|
-
generateCsv:
|
|
287
|
-
generateImage:
|
|
288
|
-
toggleTable:
|
|
289
|
-
toggleTooltip:
|
|
290
|
-
toggleAnnotator:
|
|
291
|
-
}), (t, o) => (
|
|
277
|
+
return Fe({
|
|
278
|
+
getData: Je,
|
|
279
|
+
generatePdf: ye,
|
|
280
|
+
generateCsv: we,
|
|
281
|
+
generateImage: me,
|
|
282
|
+
toggleTable: $e,
|
|
283
|
+
toggleTooltip: Te,
|
|
284
|
+
toggleAnnotator: K
|
|
285
|
+
}), (t, o) => (u(), v("div", {
|
|
292
286
|
ref_key: "ringsChart",
|
|
293
|
-
ref:
|
|
294
|
-
class:
|
|
295
|
-
style:
|
|
296
|
-
id: `rings_${
|
|
287
|
+
ref: V,
|
|
288
|
+
class: U(`vue-ui-rings ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
289
|
+
style: N(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
290
|
+
id: `rings_${w.value}`,
|
|
297
291
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
298
|
-
|
|
292
|
+
$.value = null, B.value = !1, s(ve)(!1);
|
|
299
293
|
}),
|
|
300
|
-
onMouseenter: o[4] || (o[4] = () =>
|
|
294
|
+
onMouseenter: o[4] || (o[4] = () => s(ve)(!0))
|
|
301
295
|
}, [
|
|
302
|
-
e.value.userOptions.buttons.annotator ? (
|
|
296
|
+
e.value.userOptions.buttons.annotator ? (u(), P(s(ze), {
|
|
303
297
|
key: 0,
|
|
304
|
-
svgRef:
|
|
298
|
+
svgRef: s(de),
|
|
305
299
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
306
300
|
color: e.value.style.chart.color,
|
|
307
|
-
active:
|
|
308
|
-
onClose:
|
|
301
|
+
active: H.value,
|
|
302
|
+
onClose: K
|
|
309
303
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
310
|
-
|
|
304
|
+
Ge.value ? (u(), v("div", {
|
|
311
305
|
key: 1,
|
|
312
306
|
ref_key: "noTitle",
|
|
313
|
-
ref:
|
|
307
|
+
ref: ne,
|
|
314
308
|
class: "vue-data-ui-no-title-space",
|
|
315
309
|
style: "height:36px; width: 100%;background:transparent"
|
|
316
310
|
}, null, 512)) : m("", !0),
|
|
317
|
-
e.value.style.chart.title.text ? (
|
|
311
|
+
e.value.style.chart.title.text ? (u(), v("div", {
|
|
318
312
|
key: 2,
|
|
319
313
|
ref_key: "chartTitle",
|
|
320
|
-
ref:
|
|
314
|
+
ref: oe,
|
|
321
315
|
style: "width:100%;background:transparent"
|
|
322
316
|
}, [
|
|
323
|
-
(
|
|
324
|
-
key: `title_${
|
|
317
|
+
(u(), P(xt, {
|
|
318
|
+
key: `title_${ue.value}`,
|
|
325
319
|
config: {
|
|
326
320
|
title: {
|
|
327
321
|
cy: "rings-div-title",
|
|
@@ -334,15 +328,15 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
334
328
|
}
|
|
335
329
|
}, null, 8, ["config"]))
|
|
336
330
|
], 512)) : m("", !0),
|
|
337
|
-
e.value.userOptions.show &&
|
|
331
|
+
e.value.userOptions.show && W.value && (s(ce) || s(q)) ? (u(), P(s(Be), {
|
|
338
332
|
ref_key: "details",
|
|
339
|
-
ref:
|
|
340
|
-
key: `user_options_${
|
|
333
|
+
ref: He,
|
|
334
|
+
key: `user_options_${le.value}`,
|
|
341
335
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
342
336
|
color: e.value.style.chart.color,
|
|
343
|
-
isPrinting:
|
|
344
|
-
isImaging:
|
|
345
|
-
uid:
|
|
337
|
+
isPrinting: s(ge),
|
|
338
|
+
isImaging: s(fe),
|
|
339
|
+
uid: w.value,
|
|
346
340
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
347
341
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
348
342
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -350,27 +344,27 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
350
344
|
hasTable: e.value.userOptions.buttons.table,
|
|
351
345
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
352
346
|
isTooltip: k.value.showTooltip,
|
|
353
|
-
isFullscreen:
|
|
347
|
+
isFullscreen: L.value,
|
|
354
348
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
355
|
-
chartElement:
|
|
349
|
+
chartElement: V.value,
|
|
356
350
|
position: e.value.userOptions.position,
|
|
357
351
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
358
|
-
isAnnotation:
|
|
359
|
-
onToggleFullscreen:
|
|
360
|
-
onGeneratePdf:
|
|
361
|
-
onGenerateCsv:
|
|
362
|
-
onGenerateImage:
|
|
363
|
-
onToggleTable:
|
|
364
|
-
onToggleTooltip:
|
|
365
|
-
onToggleAnnotator:
|
|
366
|
-
style:
|
|
367
|
-
visibility:
|
|
352
|
+
isAnnotation: H.value,
|
|
353
|
+
onToggleFullscreen: Qe,
|
|
354
|
+
onGeneratePdf: s(ye),
|
|
355
|
+
onGenerateCsv: we,
|
|
356
|
+
onGenerateImage: s(me),
|
|
357
|
+
onToggleTable: $e,
|
|
358
|
+
onToggleTooltip: Te,
|
|
359
|
+
onToggleAnnotator: K,
|
|
360
|
+
style: N({
|
|
361
|
+
visibility: s(ce) ? s(q) ? "visible" : "hidden" : "visible"
|
|
368
362
|
})
|
|
369
|
-
},
|
|
363
|
+
}, xe({ _: 2 }, [
|
|
370
364
|
t.$slots.menuIcon ? {
|
|
371
365
|
name: "menuIcon",
|
|
372
366
|
fn: h(({ isOpen: l, color: a }) => [
|
|
373
|
-
d(t.$slots, "menuIcon",
|
|
367
|
+
d(t.$slots, "menuIcon", R(M({ isOpen: l, color: a })), void 0, !0)
|
|
374
368
|
]),
|
|
375
369
|
key: "0"
|
|
376
370
|
} : void 0,
|
|
@@ -412,127 +406,127 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
412
406
|
t.$slots.optionFullscreen ? {
|
|
413
407
|
name: "optionFullscreen",
|
|
414
408
|
fn: h(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
415
|
-
d(t.$slots, "optionFullscreen",
|
|
409
|
+
d(t.$slots, "optionFullscreen", R(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
416
410
|
]),
|
|
417
411
|
key: "6"
|
|
418
412
|
} : void 0,
|
|
419
413
|
t.$slots.optionAnnotator ? {
|
|
420
414
|
name: "optionAnnotator",
|
|
421
415
|
fn: h(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
422
|
-
d(t.$slots, "optionAnnotator",
|
|
416
|
+
d(t.$slots, "optionAnnotator", R(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
423
417
|
]),
|
|
424
418
|
key: "7"
|
|
425
419
|
} : void 0
|
|
426
420
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
427
|
-
|
|
421
|
+
W.value ? (u(), v("svg", {
|
|
428
422
|
key: 4,
|
|
429
423
|
ref_key: "svgRef",
|
|
430
|
-
ref:
|
|
431
|
-
xmlns:
|
|
432
|
-
class:
|
|
433
|
-
viewBox: `0 0 ${
|
|
434
|
-
style:
|
|
424
|
+
ref: de,
|
|
425
|
+
xmlns: s(pt),
|
|
426
|
+
class: U({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
427
|
+
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
428
|
+
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
435
429
|
}, [
|
|
436
|
-
|
|
437
|
-
t.$slots["chart-background"] ? (
|
|
430
|
+
Q(s(Ve)),
|
|
431
|
+
t.$slots["chart-background"] ? (u(), v("foreignObject", {
|
|
438
432
|
key: 0,
|
|
439
433
|
x: 0,
|
|
440
434
|
y: 0,
|
|
441
|
-
width:
|
|
442
|
-
height:
|
|
435
|
+
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
436
|
+
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
443
437
|
style: {
|
|
444
438
|
pointerEvents: "none"
|
|
445
439
|
}
|
|
446
440
|
}, [
|
|
447
441
|
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
448
|
-
], 8,
|
|
449
|
-
|
|
450
|
-
(
|
|
442
|
+
], 8, At)) : m("", !0),
|
|
443
|
+
T("defs", null, [
|
|
444
|
+
(u(!0), v(Z, null, ee(p.value, (l, a) => (u(), v("radialGradient", {
|
|
451
445
|
cx: "50%",
|
|
452
446
|
cy: "30%",
|
|
453
447
|
r: "50%",
|
|
454
448
|
fx: "50%",
|
|
455
449
|
fy: "50%",
|
|
456
|
-
id: `gradient_${
|
|
450
|
+
id: `gradient_${w.value}_${a}`
|
|
457
451
|
}, [
|
|
458
|
-
|
|
452
|
+
T("stop", {
|
|
459
453
|
offset: "0%",
|
|
460
|
-
"stop-color":
|
|
461
|
-
}, null, 8,
|
|
462
|
-
|
|
454
|
+
"stop-color": s(ht)(s(gt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
455
|
+
}, null, 8, Ft),
|
|
456
|
+
T("stop", {
|
|
463
457
|
offset: "100%",
|
|
464
458
|
"stop-color": l.color
|
|
465
|
-
}, null, 8,
|
|
466
|
-
], 8,
|
|
459
|
+
}, null, 8, Lt)
|
|
460
|
+
], 8, St))), 256))
|
|
467
461
|
]),
|
|
468
|
-
t.$slots.pattern ? (
|
|
469
|
-
(
|
|
470
|
-
d(t.$slots, "pattern",
|
|
462
|
+
t.$slots.pattern ? (u(), v("g", Rt, [
|
|
463
|
+
(u(!0), v(Z, null, ee(p.value, (l) => (u(), v("defs", null, [
|
|
464
|
+
d(t.$slots, "pattern", at({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
471
465
|
]))), 256))
|
|
472
466
|
])) : m("", !0),
|
|
473
|
-
(
|
|
474
|
-
|
|
475
|
-
class:
|
|
476
|
-
"vue-ui-rings-item":
|
|
477
|
-
"vue-rings-item-onload": !
|
|
478
|
-
"vue-ui-rings-opacity":
|
|
467
|
+
(u(!0), v(Z, null, ee(p.value, (l, a) => (u(), v("g", null, [
|
|
468
|
+
T("circle", {
|
|
469
|
+
class: U({
|
|
470
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
471
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
472
|
+
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
479
473
|
}),
|
|
480
|
-
style:
|
|
474
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
481
475
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
482
|
-
cx:
|
|
483
|
-
cy: a === 0 ?
|
|
484
|
-
r:
|
|
476
|
+
cx: n.value.width / 2,
|
|
477
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
478
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
485
479
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
486
|
-
}, null, 14,
|
|
487
|
-
|
|
488
|
-
class:
|
|
489
|
-
"vue-ui-rings-item":
|
|
490
|
-
"vue-rings-item-onload": !
|
|
480
|
+
}, null, 14, Mt),
|
|
481
|
+
T("circle", {
|
|
482
|
+
class: U({
|
|
483
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
484
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
491
485
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
492
|
-
"vue-ui-rings-blur":
|
|
486
|
+
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
493
487
|
}),
|
|
494
|
-
style:
|
|
488
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
495
489
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
496
490
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
497
|
-
cx:
|
|
498
|
-
cy: a === 0 ?
|
|
499
|
-
r:
|
|
500
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
501
|
-
}, null, 14,
|
|
502
|
-
t.$slots.pattern ? (
|
|
491
|
+
cx: n.value.width / 2,
|
|
492
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
493
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
494
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${a})` : l.color
|
|
495
|
+
}, null, 14, Vt),
|
|
496
|
+
t.$slots.pattern ? (u(), v("circle", {
|
|
503
497
|
key: 0,
|
|
504
|
-
class:
|
|
505
|
-
"vue-ui-rings-item":
|
|
506
|
-
"vue-rings-item-onload": !
|
|
498
|
+
class: U({
|
|
499
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
500
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
507
501
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
508
|
-
"vue-ui-rings-blur":
|
|
502
|
+
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
509
503
|
}),
|
|
510
|
-
style:
|
|
504
|
+
style: N(`animation-delay:${a * 100}ms`),
|
|
511
505
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
512
506
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
513
|
-
cx:
|
|
514
|
-
cy: a === 0 ?
|
|
515
|
-
r:
|
|
516
|
-
fill: `url(#pattern_${
|
|
517
|
-
}, null, 14,
|
|
518
|
-
|
|
507
|
+
cx: n.value.width / 2,
|
|
508
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
509
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
510
|
+
fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
|
|
511
|
+
}, null, 14, zt)) : m("", !0),
|
|
512
|
+
T("circle", {
|
|
519
513
|
stroke: "none",
|
|
520
|
-
cx:
|
|
521
|
-
cy: a === 0 ?
|
|
522
|
-
r:
|
|
514
|
+
cx: n.value.width / 2,
|
|
515
|
+
cy: a === 0 ? n.value.height / 2 : n.value.height / 2 + c.value * p.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
516
|
+
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
523
517
|
fill: "transparent",
|
|
524
|
-
onMouseenter: (
|
|
525
|
-
onMouseleave: o[0] || (o[0] = (
|
|
526
|
-
|
|
518
|
+
onMouseenter: (r) => Ke(a, l),
|
|
519
|
+
onMouseleave: o[0] || (o[0] = (r) => {
|
|
520
|
+
$.value = null, B.value = !1;
|
|
527
521
|
})
|
|
528
|
-
}, null, 40,
|
|
522
|
+
}, null, 40, Ut)
|
|
529
523
|
]))), 256)),
|
|
530
|
-
d(t.$slots, "svg", { svg:
|
|
531
|
-
], 14,
|
|
532
|
-
t.$slots.watermark ? (
|
|
533
|
-
d(t.$slots, "watermark",
|
|
524
|
+
d(t.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
525
|
+
], 14, Pt)) : m("", !0),
|
|
526
|
+
t.$slots.watermark ? (u(), v("div", Wt, [
|
|
527
|
+
d(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
|
|
534
528
|
])) : m("", !0),
|
|
535
|
-
|
|
529
|
+
W.value ? m("", !0) : (u(), P(s(Ue), {
|
|
536
530
|
key: 6,
|
|
537
531
|
config: {
|
|
538
532
|
type: "rings",
|
|
@@ -544,25 +538,25 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
544
538
|
}
|
|
545
539
|
}
|
|
546
540
|
}, null, 8, ["config"])),
|
|
547
|
-
|
|
541
|
+
T("div", {
|
|
548
542
|
ref_key: "chartLegend",
|
|
549
|
-
ref:
|
|
543
|
+
ref: ae
|
|
550
544
|
}, [
|
|
551
|
-
e.value.style.chart.legend.show ? (
|
|
552
|
-
key: `legend_${
|
|
553
|
-
legendSet:
|
|
554
|
-
config:
|
|
555
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) =>
|
|
556
|
-
},
|
|
545
|
+
e.value.style.chart.legend.show ? (u(), P(_t, {
|
|
546
|
+
key: `legend_${ie.value}`,
|
|
547
|
+
legendSet: Ce.value,
|
|
548
|
+
config: Ye.value,
|
|
549
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
|
|
550
|
+
}, xe({
|
|
557
551
|
item: h(({ legend: l, index: a }) => [
|
|
558
|
-
|
|
559
|
-
onClick: (
|
|
560
|
-
style:
|
|
552
|
+
T("div", {
|
|
553
|
+
onClick: (r) => Y(l.uid),
|
|
554
|
+
style: N(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
561
555
|
}, [
|
|
562
|
-
|
|
556
|
+
Ie(G(l.name) + ": " + G(s(Pe)(
|
|
563
557
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
564
558
|
l.value,
|
|
565
|
-
|
|
559
|
+
s(S)({
|
|
566
560
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
567
561
|
v: l.value,
|
|
568
562
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -570,43 +564,43 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
570
564
|
}),
|
|
571
565
|
{ datapoint: l, seriesIndex: a }
|
|
572
566
|
)) + " ", 1),
|
|
573
|
-
f.value.includes(l.uid) ? (
|
|
567
|
+
f.value.includes(l.uid) ? (u(), v("span", Dt, " ( - % ) ")) : (u(), v("span", Et, " (" + G(isNaN(l.value / C.value) ? "-" : s(S)({
|
|
574
568
|
v: l.value / C.value * 100,
|
|
575
569
|
s: "%",
|
|
576
570
|
r: e.value.style.chart.legend.roundingPercentage
|
|
577
571
|
})) + ") ", 1))
|
|
578
|
-
], 12,
|
|
572
|
+
], 12, Bt)
|
|
579
573
|
]),
|
|
580
574
|
_: 2
|
|
581
575
|
}, [
|
|
582
576
|
t.$slots.pattern ? {
|
|
583
577
|
name: "legend-pattern",
|
|
584
578
|
fn: h(({ legend: l, index: a }) => [
|
|
585
|
-
|
|
579
|
+
Q(It, {
|
|
586
580
|
shape: l.shape,
|
|
587
581
|
radius: 30,
|
|
588
582
|
stroke: "none",
|
|
589
583
|
plot: { x: 30, y: 30 },
|
|
590
|
-
fill: `url(#pattern_${
|
|
584
|
+
fill: `url(#pattern_${w.value}_${a})`
|
|
591
585
|
}, null, 8, ["shape", "fill"])
|
|
592
586
|
]),
|
|
593
587
|
key: "0"
|
|
594
588
|
} : void 0
|
|
595
589
|
]), 1032, ["legendSet", "config"])) : d(t.$slots, "legend", {
|
|
596
590
|
key: 1,
|
|
597
|
-
legend:
|
|
591
|
+
legend: Ce.value
|
|
598
592
|
}, void 0, !0)
|
|
599
593
|
], 512),
|
|
600
|
-
t.$slots.source ? (
|
|
594
|
+
t.$slots.source ? (u(), v("div", {
|
|
601
595
|
key: 7,
|
|
602
596
|
ref_key: "source",
|
|
603
|
-
ref:
|
|
597
|
+
ref: se,
|
|
604
598
|
dir: "auto"
|
|
605
599
|
}, [
|
|
606
600
|
d(t.$slots, "source", {}, void 0, !0)
|
|
607
601
|
], 512)) : m("", !0),
|
|
608
|
-
|
|
609
|
-
show: k.value.showTooltip &&
|
|
602
|
+
Q(s(We), {
|
|
603
|
+
show: k.value.showTooltip && B.value && f.value.length < b.dataset.length,
|
|
610
604
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
611
605
|
color: e.value.style.chart.tooltip.color,
|
|
612
606
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -616,20 +610,20 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
616
610
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
617
611
|
position: e.value.style.chart.tooltip.position,
|
|
618
612
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
619
|
-
parent:
|
|
620
|
-
content:
|
|
621
|
-
isFullscreen:
|
|
613
|
+
parent: V.value,
|
|
614
|
+
content: X.value,
|
|
615
|
+
isFullscreen: L.value,
|
|
622
616
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
623
617
|
}, {
|
|
624
618
|
"tooltip-before": h(() => [
|
|
625
|
-
d(t.$slots, "tooltip-before",
|
|
619
|
+
d(t.$slots, "tooltip-before", R(M({ ...J.value })), void 0, !0)
|
|
626
620
|
]),
|
|
627
621
|
"tooltip-after": h(() => [
|
|
628
|
-
d(t.$slots, "tooltip-after",
|
|
622
|
+
d(t.$slots, "tooltip-after", R(M({ ...J.value })), void 0, !0)
|
|
629
623
|
]),
|
|
630
624
|
_: 3
|
|
631
625
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
632
|
-
|
|
626
|
+
W.value ? (u(), P(s(Re), {
|
|
633
627
|
key: 8,
|
|
634
628
|
hideDetails: "",
|
|
635
629
|
config: {
|
|
@@ -646,32 +640,32 @@ const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["i
|
|
|
646
640
|
}
|
|
647
641
|
}, {
|
|
648
642
|
content: h(() => [
|
|
649
|
-
(
|
|
650
|
-
key: `table_${
|
|
651
|
-
colNames:
|
|
652
|
-
head:
|
|
653
|
-
body:
|
|
654
|
-
config:
|
|
643
|
+
(u(), P(s(Me), {
|
|
644
|
+
key: `table_${re.value}`,
|
|
645
|
+
colNames: D.value.colNames,
|
|
646
|
+
head: D.value.head,
|
|
647
|
+
body: D.value.body,
|
|
648
|
+
config: D.value.config,
|
|
655
649
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
656
650
|
onClose: o[2] || (o[2] = (l) => k.value.showTable = !1)
|
|
657
651
|
}, {
|
|
658
652
|
th: h(({ th: l }) => [
|
|
659
|
-
|
|
653
|
+
T("div", {
|
|
660
654
|
innerHTML: l,
|
|
661
655
|
style: { display: "flex", "align-items": "center" }
|
|
662
|
-
}, null, 8,
|
|
656
|
+
}, null, 8, Ht)
|
|
663
657
|
]),
|
|
664
658
|
td: h(({ td: l }) => [
|
|
665
|
-
|
|
659
|
+
Ie(G(l.name || l), 1)
|
|
666
660
|
]),
|
|
667
661
|
_: 1
|
|
668
662
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
669
663
|
]),
|
|
670
664
|
_: 1
|
|
671
665
|
}, 8, ["config"])) : m("", !0)
|
|
672
|
-
], 46,
|
|
666
|
+
], 46, Nt));
|
|
673
667
|
}
|
|
674
|
-
},
|
|
668
|
+
}, ol = /* @__PURE__ */ Ot(Gt, [["__scopeId", "data-v-4bf3fce2"]]);
|
|
675
669
|
export {
|
|
676
|
-
|
|
670
|
+
ol as default
|
|
677
671
|
};
|