vue-data-ui 2.12.7-beta.0 → 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-CmqjRRUl.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-CKbomZCX.js} +2 -2
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-F4TctKaQ.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-Y5HbiUZU.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-DtTYopxf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-PC9Yu1K_.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-DaWGaZxE.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-C-CpE0NC.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-B6kIkp2s.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-DcdMxgqn.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-Bc66VstS.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B07vY6jm.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-C8X2STEg.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-BHEd2dgu.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-C8URL2IU.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-CriyJ0Da.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BwgozppD.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-C20X1YRt.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-B264jwvu.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-ECSEPy9m.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-BxjeL4B6.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-CJNnQbPC.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-0RLVrL7y.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-BIFf4SLq.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-mc_-1JSs.js} +7 -7
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-D50S44wU.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-CxDTjjYn.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-DeC0U017.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-n0MW2u-q.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-AYMCSEtU.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-Ckz1h7XW.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-m0SgFsTu.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-BrcF_YLL.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-DiVxDYiV.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-BCUC8QED.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-DrrjD9S1.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-8RTss1yH.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-CmPLnisN.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-CdM3bVZs.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-C-lgCI6O.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-Dq94lb99.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-DsKddA_I.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-CVR7NvJ_.js} +116 -115
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-B0soMLZ5.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-Bq4_NUfW.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-CG3Pn3Zg.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend--6lA4742.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-BXx7Vglf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-zM4_Tgqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BDNrZbWN.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-CzzyDmYJ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-tBSUQ_09.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-BriZOfj6.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-DzYyFp3o.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-COKfg2KT.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D7C5AiCp.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-CDG6vSMm.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-DOoO0CVB.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-BSPIy1A3.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DsMmxgin.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-B2_ZHuyv.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-YhkwHcUX.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-CWHJwyyL.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BLgEqHRF.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-BQelvSLD.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-D1luVUXJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-C7Pu9RFN.js} +7 -7
- package/package.json +1 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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";
|
|
6
|
+
import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
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";
|
|
10
11
|
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const Nt = ["id"], Pt = ["xmlns", "viewBox"],
|
|
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 = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
15
|
}, Bt = ["onClick"], Et = { key: 0 }, Dt = { key: 1 }, Ht = ["innerHTML"], Gt = {
|
|
@@ -28,40 +29,40 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
emits: ["selectLegend"],
|
|
31
|
-
setup(
|
|
32
|
-
const Re =
|
|
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({
|
|
33
34
|
get: () => pe(),
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } =
|
|
36
|
+
}), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = $t({ config: e.value }), { svgRef: de } = Tt({ config: e.value.style.chart.title });
|
|
36
37
|
function pe() {
|
|
37
|
-
const t =
|
|
38
|
+
const t = Ae({
|
|
38
39
|
userConfig: b.config,
|
|
39
|
-
defaultConfig:
|
|
40
|
+
defaultConfig: Ee
|
|
40
41
|
});
|
|
41
42
|
return t.theme ? {
|
|
42
|
-
...
|
|
43
|
-
userConfig:
|
|
43
|
+
...Ae({
|
|
44
|
+
userConfig: rt.vue_ui_rings[t.theme] || b.config,
|
|
44
45
|
defaultConfig: t
|
|
45
46
|
}),
|
|
46
|
-
customPalette:
|
|
47
|
+
customPalette: ut[t.theme] || A
|
|
47
48
|
} : t;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
+
tt(() => b.config, (t) => {
|
|
50
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;
|
|
51
52
|
}, { deep: !0 });
|
|
52
53
|
const _ = _e(null), F = _e(null);
|
|
53
|
-
|
|
54
|
+
lt(() => {
|
|
54
55
|
he();
|
|
55
56
|
});
|
|
56
57
|
function he() {
|
|
57
|
-
if (
|
|
58
|
+
if (it(b.dataset) ? te({
|
|
58
59
|
componentName: "VueUiRings",
|
|
59
60
|
type: "dataset"
|
|
60
61
|
}) : b.dataset.forEach((t, o) => {
|
|
61
62
|
t.values.length || te({
|
|
62
63
|
componentName: "VueUiRings",
|
|
63
64
|
type: "dataset"
|
|
64
|
-
}),
|
|
65
|
+
}), vt({
|
|
65
66
|
datasetObject: t,
|
|
66
67
|
requiredAttributes: ["name", "values"]
|
|
67
68
|
}).forEach((l) => {
|
|
@@ -73,8 +74,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
73
74
|
});
|
|
74
75
|
});
|
|
75
76
|
}), e.value.responsive) {
|
|
76
|
-
const t =
|
|
77
|
-
const { width: o, height: l } =
|
|
77
|
+
const t = kt(() => {
|
|
78
|
+
const { width: o, height: l } = Ct({
|
|
78
79
|
chart: V.value,
|
|
79
80
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
80
81
|
legend: e.value.style.chart.legend.show ? ae.value : null,
|
|
@@ -88,43 +89,43 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
88
89
|
_.value && (F.value && _.value.unobserve(F.value), _.value.disconnect()), _.value = new ResizeObserver(t), F.value = V.value.parentNode, _.value.observe(F.value);
|
|
89
90
|
}
|
|
90
91
|
setTimeout(() => {
|
|
91
|
-
|
|
92
|
+
I.value = !0;
|
|
92
93
|
}, 600);
|
|
93
94
|
}
|
|
94
|
-
|
|
95
|
+
ot(() => {
|
|
95
96
|
_.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
|
|
96
97
|
});
|
|
97
|
-
const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } =
|
|
98
|
+
const { isPrinting: ge, isImaging: fe, generatePdf: ye, generateImage: me } = wt({
|
|
98
99
|
elementId: `rings_${w.value}`,
|
|
99
100
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
100
101
|
options: e.value.userOptions.print
|
|
101
|
-
}),
|
|
102
|
+
}), Ge = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = g(() => ct(e.value.customPalette)), k = i({
|
|
102
103
|
showTable: e.value.table.show,
|
|
103
104
|
showTooltip: e.value.style.chart.tooltip.show
|
|
104
105
|
}), n = i({
|
|
105
106
|
height: 360,
|
|
106
107
|
width: 360
|
|
107
|
-
}),
|
|
108
|
+
}), je = g(() => Math.min(n.value.height, n.value.width)), Xe = Le, f = i([]);
|
|
108
109
|
function Y(t) {
|
|
109
|
-
f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t),
|
|
110
|
+
f.value.includes(t) ? f.value = f.value.filter((o) => o !== t) : f.value.push(t), Xe("selectLegend", p.value.map((o) => ({
|
|
110
111
|
name: o.name,
|
|
111
112
|
color: o.color,
|
|
112
113
|
value: o.value
|
|
113
114
|
})));
|
|
114
115
|
}
|
|
115
|
-
const
|
|
116
|
+
const qe = g(() => Math.max(
|
|
116
117
|
...E.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t)
|
|
117
118
|
));
|
|
118
119
|
function ke(t) {
|
|
119
|
-
return t /
|
|
120
|
+
return t / qe.value;
|
|
120
121
|
}
|
|
121
122
|
const E = g(() => b.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
122
|
-
const r =
|
|
123
|
+
const r = dt(t).reduce((y, z) => y + z, 0);
|
|
123
124
|
return {
|
|
124
125
|
name: o,
|
|
125
|
-
color: l || Ne(l) || be.value[a] ||
|
|
126
|
+
color: l || Ne(l) || be.value[a] || A[a] || A[a % A.length],
|
|
126
127
|
value: r,
|
|
127
|
-
proportion: r / b.dataset.map((y) => (y.values || []).reduce((z,
|
|
128
|
+
proportion: r / b.dataset.map((y) => (y.values || []).reduce((z, Ze) => z + Ze, 0)).reduce((y, z) => y + z, 0),
|
|
128
129
|
uid: Oe(),
|
|
129
130
|
absoluteIndex: a
|
|
130
131
|
};
|
|
@@ -134,7 +135,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
134
135
|
opacity: f.value.includes(t.uid) ? 0.5 : 1,
|
|
135
136
|
segregate: () => Y(t.uid),
|
|
136
137
|
isSegregated: f.value.includes(t.uid)
|
|
137
|
-
})).toSorted((t, o) => o.value - t.value)),
|
|
138
|
+
})).toSorted((t, o) => o.value - t.value)), Ye = g(() => ({
|
|
138
139
|
cy: "rings-div-legend",
|
|
139
140
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
140
141
|
color: e.value.style.chart.legend.color,
|
|
@@ -145,13 +146,13 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
145
146
|
absoluteIndex: r,
|
|
146
147
|
uid: a,
|
|
147
148
|
name: t,
|
|
148
|
-
color: l || Ne(l) || be.value[y] ||
|
|
149
|
+
color: l || Ne(l) || be.value[y] || A[y] || A[y % A.length],
|
|
149
150
|
value: o,
|
|
150
151
|
proportion: ke(o),
|
|
151
152
|
percentage: o / C.value * 100,
|
|
152
153
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ke(o)
|
|
153
154
|
})).toSorted((t, o) => o.value - t.value));
|
|
154
|
-
function
|
|
155
|
+
function Je() {
|
|
155
156
|
return p.value.map(
|
|
156
157
|
({ name: t, color: o, value: l, absoluteValues: a, percentage: r }) => ({
|
|
157
158
|
name: t,
|
|
@@ -162,8 +163,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
162
163
|
})
|
|
163
164
|
);
|
|
164
165
|
}
|
|
165
|
-
const c = g(() =>
|
|
166
|
-
function
|
|
166
|
+
const c = g(() => je.value - e.value.style.chart.layout.rings.strokeWidth * 2), J = i(null);
|
|
167
|
+
function Ke(t, o) {
|
|
167
168
|
if (f.value.length === b.dataset.length) return;
|
|
168
169
|
J.value = {
|
|
169
170
|
datapoint: o,
|
|
@@ -172,7 +173,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
172
173
|
config: e.value
|
|
173
174
|
}, $.value = t;
|
|
174
175
|
const l = p.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
175
|
-
if (
|
|
176
|
+
if (mt(a) && bt(() => a({
|
|
176
177
|
seriesIndex: t,
|
|
177
178
|
datapoint: o,
|
|
178
179
|
series: p.value,
|
|
@@ -186,10 +187,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
186
187
|
});
|
|
187
188
|
else {
|
|
188
189
|
let r = "";
|
|
189
|
-
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}" />${
|
|
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(
|
|
190
191
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
191
192
|
l.value,
|
|
192
|
-
|
|
193
|
+
S({
|
|
193
194
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
194
195
|
v: l.value,
|
|
195
196
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -197,11 +198,11 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
197
198
|
}),
|
|
198
199
|
{ datapoint: o, seriesIndex: t }
|
|
199
200
|
)}
|
|
200
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${
|
|
201
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? r += `<span>(${S({
|
|
201
202
|
v: l.value / C.value * 100,
|
|
202
203
|
s: "%",
|
|
203
204
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
204
|
-
})})</span></div>` : r += `<b>${
|
|
205
|
+
})})</span></div>` : r += `<b>${S({
|
|
205
206
|
v: l.value / C.value * 100,
|
|
206
207
|
s: "%",
|
|
207
208
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -218,14 +219,14 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
218
219
|
}), D = g(() => {
|
|
219
220
|
const t = [
|
|
220
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>',
|
|
221
|
-
|
|
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 }),
|
|
222
223
|
"100%"
|
|
223
224
|
], o = x.value.head.map((r, y) => [
|
|
224
225
|
{
|
|
225
226
|
color: r.color,
|
|
226
227
|
name: r.name
|
|
227
228
|
},
|
|
228
|
-
|
|
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 }),
|
|
229
230
|
isNaN(x.value.body[y] / C.value) ? "-" : (x.value.body[y] / C.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
230
231
|
]), l = {
|
|
231
232
|
th: {
|
|
@@ -252,15 +253,15 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
252
253
|
};
|
|
253
254
|
});
|
|
254
255
|
function we() {
|
|
255
|
-
|
|
256
|
+
st(() => {
|
|
256
257
|
const t = x.value.head.map((a, r) => [[
|
|
257
258
|
a.name
|
|
258
|
-
], [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 =
|
|
259
|
-
|
|
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" });
|
|
260
261
|
});
|
|
261
262
|
}
|
|
262
263
|
const L = i(!1);
|
|
263
|
-
function
|
|
264
|
+
function Qe(t) {
|
|
264
265
|
L.value = t, le.value += 1;
|
|
265
266
|
}
|
|
266
267
|
function $e() {
|
|
@@ -274,7 +275,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
274
275
|
H.value = !H.value;
|
|
275
276
|
}
|
|
276
277
|
return Fe({
|
|
277
|
-
getData:
|
|
278
|
+
getData: Je,
|
|
278
279
|
generatePdf: ye,
|
|
279
280
|
generateCsv: we,
|
|
280
281
|
generateImage: me,
|
|
@@ -300,7 +301,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
300
301
|
active: H.value,
|
|
301
302
|
onClose: K
|
|
302
303
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
303
|
-
|
|
304
|
+
Ge.value ? (u(), v("div", {
|
|
304
305
|
key: 1,
|
|
305
306
|
ref_key: "noTitle",
|
|
306
307
|
ref: ne,
|
|
@@ -313,7 +314,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
313
314
|
ref: oe,
|
|
314
315
|
style: "width:100%;background:transparent"
|
|
315
316
|
}, [
|
|
316
|
-
(u(), P(
|
|
317
|
+
(u(), P(xt, {
|
|
317
318
|
key: `title_${ue.value}`,
|
|
318
319
|
config: {
|
|
319
320
|
title: {
|
|
@@ -327,9 +328,9 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
327
328
|
}
|
|
328
329
|
}, null, 8, ["config"]))
|
|
329
330
|
], 512)) : m("", !0),
|
|
330
|
-
e.value.userOptions.show && W.value && (s(ce) || s(q)) ? (u(), P(s(
|
|
331
|
+
e.value.userOptions.show && W.value && (s(ce) || s(q)) ? (u(), P(s(Be), {
|
|
331
332
|
ref_key: "details",
|
|
332
|
-
ref:
|
|
333
|
+
ref: He,
|
|
333
334
|
key: `user_options_${le.value}`,
|
|
334
335
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
335
336
|
color: e.value.style.chart.color,
|
|
@@ -349,7 +350,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
349
350
|
position: e.value.userOptions.position,
|
|
350
351
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
351
352
|
isAnnotation: H.value,
|
|
352
|
-
onToggleFullscreen:
|
|
353
|
+
onToggleFullscreen: Qe,
|
|
353
354
|
onGeneratePdf: s(ye),
|
|
354
355
|
onGenerateCsv: we,
|
|
355
356
|
onGenerateImage: s(me),
|
|
@@ -421,7 +422,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
421
422
|
key: 4,
|
|
422
423
|
ref_key: "svgRef",
|
|
423
424
|
ref: de,
|
|
424
|
-
xmlns: s(
|
|
425
|
+
xmlns: s(pt),
|
|
425
426
|
class: U({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
426
427
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
427
428
|
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
@@ -438,7 +439,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
438
439
|
}
|
|
439
440
|
}, [
|
|
440
441
|
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
441
|
-
], 8,
|
|
442
|
+
], 8, At)) : m("", !0),
|
|
442
443
|
T("defs", null, [
|
|
443
444
|
(u(!0), v(Z, null, ee(p.value, (l, a) => (u(), v("radialGradient", {
|
|
444
445
|
cx: "50%",
|
|
@@ -450,24 +451,24 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
450
451
|
}, [
|
|
451
452
|
T("stop", {
|
|
452
453
|
offset: "0%",
|
|
453
|
-
"stop-color": s(
|
|
454
|
+
"stop-color": s(ht)(s(gt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
454
455
|
}, null, 8, Ft),
|
|
455
456
|
T("stop", {
|
|
456
457
|
offset: "100%",
|
|
457
458
|
"stop-color": l.color
|
|
458
459
|
}, null, 8, Lt)
|
|
459
|
-
], 8,
|
|
460
|
+
], 8, St))), 256))
|
|
460
461
|
]),
|
|
461
462
|
t.$slots.pattern ? (u(), v("g", Rt, [
|
|
462
463
|
(u(!0), v(Z, null, ee(p.value, (l) => (u(), v("defs", null, [
|
|
463
|
-
d(t.$slots, "pattern",
|
|
464
|
+
d(t.$slots, "pattern", at({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
464
465
|
]))), 256))
|
|
465
466
|
])) : m("", !0),
|
|
466
467
|
(u(!0), v(Z, null, ee(p.value, (l, a) => (u(), v("g", null, [
|
|
467
468
|
T("circle", {
|
|
468
469
|
class: U({
|
|
469
|
-
"vue-ui-rings-item":
|
|
470
|
-
"vue-rings-item-onload": !
|
|
470
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
471
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
471
472
|
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
472
473
|
}),
|
|
473
474
|
style: N(`animation-delay:${a * 100}ms`),
|
|
@@ -479,8 +480,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
479
480
|
}, null, 14, Mt),
|
|
480
481
|
T("circle", {
|
|
481
482
|
class: U({
|
|
482
|
-
"vue-ui-rings-item":
|
|
483
|
-
"vue-rings-item-onload": !
|
|
483
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
484
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
484
485
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
485
486
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
486
487
|
}),
|
|
@@ -495,8 +496,8 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
495
496
|
t.$slots.pattern ? (u(), v("circle", {
|
|
496
497
|
key: 0,
|
|
497
498
|
class: U({
|
|
498
|
-
"vue-ui-rings-item":
|
|
499
|
-
"vue-rings-item-onload": !
|
|
499
|
+
"vue-ui-rings-item": I.value && e.value.useCssAnimation,
|
|
500
|
+
"vue-rings-item-onload": !I.value && e.value.useCssAnimation,
|
|
500
501
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
501
502
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
502
503
|
}),
|
|
@@ -514,7 +515,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
514
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),
|
|
515
516
|
r: s(j)(c.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : c.value * l.proportion / 2 * 0.9),
|
|
516
517
|
fill: "transparent",
|
|
517
|
-
onMouseenter: (r) =>
|
|
518
|
+
onMouseenter: (r) => Ke(a, l),
|
|
518
519
|
onMouseleave: o[0] || (o[0] = (r) => {
|
|
519
520
|
$.value = null, B.value = !1;
|
|
520
521
|
})
|
|
@@ -525,7 +526,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
525
526
|
t.$slots.watermark ? (u(), v("div", Wt, [
|
|
526
527
|
d(t.$slots, "watermark", R(M({ isPrinting: s(ge) || s(fe) })), void 0, !0)
|
|
527
528
|
])) : m("", !0),
|
|
528
|
-
W.value ? m("", !0) : (u(), P(s(
|
|
529
|
+
W.value ? m("", !0) : (u(), P(s(Ue), {
|
|
529
530
|
key: 6,
|
|
530
531
|
config: {
|
|
531
532
|
type: "rings",
|
|
@@ -541,10 +542,10 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
541
542
|
ref_key: "chartLegend",
|
|
542
543
|
ref: ae
|
|
543
544
|
}, [
|
|
544
|
-
e.value.style.chart.legend.show ? (u(), P(
|
|
545
|
+
e.value.style.chart.legend.show ? (u(), P(_t, {
|
|
545
546
|
key: `legend_${ie.value}`,
|
|
546
547
|
legendSet: Ce.value,
|
|
547
|
-
config:
|
|
548
|
+
config: Ye.value,
|
|
548
549
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Y(l.uid))
|
|
549
550
|
}, xe({
|
|
550
551
|
item: h(({ legend: l, index: a }) => [
|
|
@@ -555,7 +556,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
555
556
|
Ie(G(l.name) + ": " + G(s(Pe)(
|
|
556
557
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
557
558
|
l.value,
|
|
558
|
-
s(
|
|
559
|
+
s(S)({
|
|
559
560
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
560
561
|
v: l.value,
|
|
561
562
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -563,7 +564,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
563
564
|
}),
|
|
564
565
|
{ datapoint: l, seriesIndex: a }
|
|
565
566
|
)) + " ", 1),
|
|
566
|
-
f.value.includes(l.uid) ? (u(), v("span", Dt, " ( - % ) ")) : (u(), v("span", Et, " (" + G(isNaN(l.value / C.value) ? "-" : s(
|
|
567
|
+
f.value.includes(l.uid) ? (u(), v("span", Dt, " ( - % ) ")) : (u(), v("span", Et, " (" + G(isNaN(l.value / C.value) ? "-" : s(S)({
|
|
567
568
|
v: l.value / C.value * 100,
|
|
568
569
|
s: "%",
|
|
569
570
|
r: e.value.style.chart.legend.roundingPercentage
|
|
@@ -575,7 +576,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
575
576
|
t.$slots.pattern ? {
|
|
576
577
|
name: "legend-pattern",
|
|
577
578
|
fn: h(({ legend: l, index: a }) => [
|
|
578
|
-
Q(
|
|
579
|
+
Q(It, {
|
|
579
580
|
shape: l.shape,
|
|
580
581
|
radius: 30,
|
|
581
582
|
stroke: "none",
|
|
@@ -598,7 +599,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
598
599
|
}, [
|
|
599
600
|
d(t.$slots, "source", {}, void 0, !0)
|
|
600
601
|
], 512)) : m("", !0),
|
|
601
|
-
Q(s(
|
|
602
|
+
Q(s(We), {
|
|
602
603
|
show: k.value.showTooltip && B.value && f.value.length < b.dataset.length,
|
|
603
604
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
604
605
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -664,7 +665,7 @@ const Nt = ["id"], Pt = ["xmlns", "viewBox"], St = ["width", "height"], At = ["i
|
|
|
664
665
|
}, 8, ["config"])) : m("", !0)
|
|
665
666
|
], 46, Nt));
|
|
666
667
|
}
|
|
667
|
-
},
|
|
668
|
+
}, ol = /* @__PURE__ */ Ot(Gt, [["__scopeId", "data-v-4bf3fce2"]]);
|
|
668
669
|
export {
|
|
669
|
-
|
|
670
|
+
ol as default
|
|
670
671
|
};
|