vue-data-ui 3.16.0 → 3.16.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/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, computed as
|
|
2
|
-
import { j as zl, t as zt, m as Bl, p as
|
|
3
|
-
import { b as
|
|
4
|
-
import { t as
|
|
1
|
+
import { defineAsyncComponent as G, computed as $, ref as h, toRefs as Ol, watch as fe, onMounted as Fl, shallowRef as Ft, onBeforeUnmount as Dl, openBlock as u, createElementBlock as r, unref as v, normalizeStyle as pe, normalizeClass as Z, createElementVNode as g, toDisplayString as E, createBlock as V, createCommentVNode as A, withCtx as y, renderSlot as w, normalizeProps as P, guardReactiveProps as S, createSlots as Dt, createVNode as Xe, Fragment as T, renderList as _, withDirectives as Nt, vShow as Vt, Teleport as Nl, resolveDynamicComponent as Vl, mergeProps as Ml, createTextVNode as Mt, nextTick as He } from "vue";
|
|
2
|
+
import { j as zl, t as zt, m as Bl, p as qe, o as El, q as oe, n as Ul, a8 as Y, s as Rl, a4 as je, k as Ae, l as D, X as Gl, u as Yl, a as Bt, a6 as Et, a7 as Le, B as Ut, T as Rt, a0 as Wl, a1 as Kl, U as Xl, ai as Gt, K as Je } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { b as Hl } from "./labelUtils-CqTHa20R.js";
|
|
4
|
+
import { t as ql, u as jl } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as Jl } from "./useConfig-DO94Aj5s.js";
|
|
6
6
|
import { u as Ql, B as Zl } from "./BaseScanner-BhhkKVoj.js";
|
|
7
7
|
import { u as ea } from "./usePrinter-CEpYU3r5.js";
|
|
@@ -17,7 +17,7 @@ import ra from "./Legend-CS7Xo5LK.js";
|
|
|
17
17
|
import { A as ia } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
18
|
import { B as da } from "./BaseLegendToggle-BQVIawmA.js";
|
|
19
19
|
import { _ as ca } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
-
const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative" } }, ga = ["xmlns", "aria-describedby", "viewBox"], ya = ["width", "height"], ba = ["id"], ma = ["offset", "stop-color"], wa = ["offset", "stop-opacity"], ka = ["id"], $a = ["id"], Ca = ["id"], Aa = ["flood-color"], La = ["id", "d"], xa = ["d", "fill", "stroke", "stroke-width", "filter"], Ta = ["d", "fill", "stroke", "stroke-width"], _a = { key: 1 }, Pa = ["d", "fill"], Sa = { key: 2 },
|
|
20
|
+
const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative" } }, ga = ["xmlns", "aria-describedby", "viewBox"], ya = ["width", "height"], ba = ["id"], ma = ["offset", "stop-color"], wa = ["offset", "stop-opacity"], ka = ["id"], $a = ["id"], Ca = ["id"], Aa = ["flood-color"], La = ["id", "d"], xa = ["d", "fill", "stroke", "stroke-width", "filter"], Ta = ["d", "fill", "stroke", "stroke-width"], _a = { key: 1 }, Pa = ["d", "fill"], Sa = { key: 2 }, Ia = ["font-size", "font-weight", "fill", "dy"], Oa = ["href"], Fa = ["x", "y", "font-size", "font-weight", "fill"], Da = { key: 3 }, Na = ["filter"], Va = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ma = ["opacity", "text-anchor", "x", "y", "fill", "font-size", "font-weight"], za = ["d", "fill", "onMouseenter", "onClick", "onMouseleave"], Ba = {
|
|
21
21
|
key: 0,
|
|
22
22
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
23
23
|
"data-dom-to-png-ignore": "",
|
|
@@ -46,18 +46,18 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
48
48
|
setup(Yt, { expose: Wt, emit: Kt }) {
|
|
49
|
-
const Xt = G(() => import("./Tooltip-Bf-kM3_A.js")),
|
|
49
|
+
const Xt = G(() => import("./Tooltip-Bf-kM3_A.js")), Ht = G(() => import("./BaseIcon-Cb3zzG6s.js")), qt = G(() => import("./vue-ui-accordion-nvggWcGN.js")), jt = G(() => import("./DataTable-DT2kIdQ6.js")), Jt = G(() => import("./UserOptions-rW2fRf3V.js")), Qt = G(() => import("./PenAndPaper-Ct3qJ4lA.js")), Zt = G(() => import("./PackageVersion-DPO-OOVI.js")), el = G(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_nested_donuts: tl } = Jl(), { isThemeValid: ll, warnInvalidTheme: al } = la(), I = Yt, xe = $({
|
|
50
50
|
get() {
|
|
51
|
-
return !!
|
|
51
|
+
return !!I.dataset && I.dataset.length;
|
|
52
52
|
},
|
|
53
53
|
set(t) {
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
|
-
}), f =
|
|
56
|
+
}), f = h(zl()), se = h(!1), Te = h(""), ne = h(null), Ze = h(0), M = h(null), et = h(null), _e = h(null), tt = h(null), lt = h(null), at = h(0), ot = h(0), st = h(0), W = h(!0), K = h([]), ue = h([]), nt = h(!1), re = h(null), Pe = h(null), ge = h(!1), ye = h(!1), N = h(null), ut = h({ x: 0, y: 0 }), ie = h("pointer"), Se = h(!1), X = h(!1);
|
|
57
57
|
function rt(t) {
|
|
58
58
|
X.value = t, Ze.value += 1;
|
|
59
59
|
}
|
|
60
|
-
const e =
|
|
60
|
+
const e = h(Fe()), H = $(() => e.value.userOptions.useCursorPointer), it = {
|
|
61
61
|
name: "",
|
|
62
62
|
series: [
|
|
63
63
|
{
|
|
@@ -76,7 +76,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
76
76
|
color: "#CACACA"
|
|
77
77
|
}
|
|
78
78
|
]
|
|
79
|
-
}, ol =
|
|
79
|
+
}, ol = $(() => zt({
|
|
80
80
|
defaultConfig: {
|
|
81
81
|
useCssAnimation: !1,
|
|
82
82
|
table: { show: !1 },
|
|
@@ -101,8 +101,8 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
userConfig: e.value.skeletonConfig ?? {}
|
|
104
|
-
})), { loading: be, FINAL_DATASET:
|
|
105
|
-
...
|
|
104
|
+
})), { loading: be, FINAL_DATASET: q, manualLoading: Ie } = Ql({
|
|
105
|
+
...Ol(I),
|
|
106
106
|
FINAL_CONFIG: e,
|
|
107
107
|
prepareConfig: Fe,
|
|
108
108
|
callback: () => {
|
|
@@ -110,17 +110,17 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
110
110
|
await ht();
|
|
111
111
|
});
|
|
112
112
|
},
|
|
113
|
-
skeletonDataset:
|
|
113
|
+
skeletonDataset: I.config?.skeletonDataset ?? [it, it],
|
|
114
114
|
skeletonConfig: zt({
|
|
115
115
|
defaultConfig: e.value,
|
|
116
116
|
userConfig: ol.value
|
|
117
117
|
})
|
|
118
|
-
}), { userOptionsVisible:
|
|
118
|
+
}), { userOptionsVisible: Oe, setUserOptionsVisibility: dt, keepUserOptionState: ct } = aa({ config: e.value }), { svgRef: z } = oa({
|
|
119
119
|
config: e.value.style.chart.title
|
|
120
120
|
});
|
|
121
121
|
function Fe() {
|
|
122
122
|
const t = Qe({
|
|
123
|
-
userConfig:
|
|
123
|
+
userConfig: I.config,
|
|
124
124
|
defaultConfig: tl
|
|
125
125
|
});
|
|
126
126
|
let s = {};
|
|
@@ -130,15 +130,15 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
130
130
|
al(t), s = t;
|
|
131
131
|
else {
|
|
132
132
|
const o = Qe({
|
|
133
|
-
userConfig: ua[l] ||
|
|
133
|
+
userConfig: ua[l] || I.config,
|
|
134
134
|
defaultConfig: t
|
|
135
135
|
});
|
|
136
136
|
s = {
|
|
137
137
|
...Qe({
|
|
138
|
-
userConfig:
|
|
138
|
+
userConfig: I.config,
|
|
139
139
|
defaultConfig: o
|
|
140
140
|
}),
|
|
141
|
-
customPalette: t.customPalette.length ? t.customPalette : Bl[l] ||
|
|
141
|
+
customPalette: t.customPalette.length ? t.customPalette : Bl[l] || qe
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
else
|
|
@@ -146,13 +146,13 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
146
146
|
return s;
|
|
147
147
|
}
|
|
148
148
|
fe(
|
|
149
|
-
() =>
|
|
149
|
+
() => I.config,
|
|
150
150
|
(t) => {
|
|
151
|
-
be.value || (e.value = Fe()),
|
|
151
|
+
be.value || (e.value = Fe()), Oe.value = !e.value.userOptions.showOnChartHover, ft(), at.value += 1, ot.value += 1, st.value += 1, L.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, L.value.showTable = e.value.table.show, L.value.showTooltip = e.value.style.chart.tooltip.show, p.value.width = e.value.style.chart.width, p.value.height = e.value.style.chart.height;
|
|
152
152
|
},
|
|
153
153
|
{ deep: !0 }
|
|
154
154
|
);
|
|
155
|
-
const vt =
|
|
155
|
+
const vt = $(() => {
|
|
156
156
|
const { top: t, right: s, bottom: l, left: o } = e.value.style.chart.padding;
|
|
157
157
|
return {
|
|
158
158
|
css: `padding:${t}px ${s}px ${l}px ${o}px`,
|
|
@@ -167,17 +167,17 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
167
167
|
const a = t.length;
|
|
168
168
|
K.value = Array(a).fill(0), ue.value = [];
|
|
169
169
|
let n = 0;
|
|
170
|
-
t.forEach((
|
|
170
|
+
t.forEach((d, c) => {
|
|
171
171
|
setTimeout(() => {
|
|
172
172
|
const k = performance.now();
|
|
173
|
-
function
|
|
174
|
-
const x = Math.min((
|
|
175
|
-
K.value[
|
|
173
|
+
function i(m) {
|
|
174
|
+
const x = Math.min((m - k) / s, 1), ve = Gt(x), he = d * ve;
|
|
175
|
+
K.value[c] = he, K.value = [...K.value];
|
|
176
176
|
const $e = [];
|
|
177
177
|
let Re = 0;
|
|
178
|
-
|
|
178
|
+
I.dataset.forEach((Ce, Ge) => {
|
|
179
179
|
const _l = Je(Ce.series.reduce(
|
|
180
|
-
(We, Ke) => We + Je(Y(Ke.values).reduce((Sl,
|
|
180
|
+
(We, Ke) => We + Je(Y(Ke.values).reduce((Sl, Il) => Sl + Il, 0)),
|
|
181
181
|
0
|
|
182
182
|
)), Pl = Je(K.value.slice(Re, Re + Ce.series.length).reduce((We, Ke) => We + Ke, 0)), Ye = _l - Pl;
|
|
183
183
|
Ye > Number.MIN_VALUE && $e.push({
|
|
@@ -193,21 +193,21 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
193
193
|
absoluteValues: [],
|
|
194
194
|
ghost: !0
|
|
195
195
|
}), Re += Ce.series.length;
|
|
196
|
-
}), ue.value = $e, x < 1 ? requestAnimationFrame(
|
|
196
|
+
}), ue.value = $e, x < 1 ? requestAnimationFrame(i) : (n += 1, n === a && o());
|
|
197
197
|
}
|
|
198
|
-
requestAnimationFrame(
|
|
199
|
-
},
|
|
198
|
+
requestAnimationFrame(i);
|
|
199
|
+
}, c * l);
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
async function ht() {
|
|
204
204
|
if (e.value.startAnimation?.show) {
|
|
205
|
-
const s =
|
|
205
|
+
const s = q.value.flatMap((l) => l.series).map(
|
|
206
206
|
(l) => Y(l.values).reduce((o, a) => o + a, 0)
|
|
207
207
|
);
|
|
208
|
-
K.value = s.map(() => 0), W.value = !0, ue.value =
|
|
208
|
+
K.value = s.map(() => 0), W.value = !0, ue.value = q.value.map((l, o) => {
|
|
209
209
|
const a = l.series.reduce(
|
|
210
|
-
(n,
|
|
210
|
+
(n, d) => n + Y(d.values).reduce((c, k) => c + k, 0),
|
|
211
211
|
0
|
|
212
212
|
);
|
|
213
213
|
return {
|
|
@@ -223,7 +223,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
223
223
|
absoluteValues: [],
|
|
224
224
|
ghost: !0
|
|
225
225
|
};
|
|
226
|
-
}), await
|
|
226
|
+
}), await He(), sl(
|
|
227
227
|
s,
|
|
228
228
|
e.value.startAnimation.durationMs,
|
|
229
229
|
e.value.startAnimation.staggerMs
|
|
@@ -236,16 +236,16 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
236
236
|
Fl(async () => {
|
|
237
237
|
nt.value = !0, ft(), await ht();
|
|
238
238
|
});
|
|
239
|
-
const
|
|
239
|
+
const U = Ft(null), ee = Ft(null), te = $(() => !!e.value.debug);
|
|
240
240
|
function ft() {
|
|
241
|
-
if (El(
|
|
241
|
+
if (El(I.dataset) ? (oe({
|
|
242
242
|
componentName: "VueUiNestedDonuts",
|
|
243
243
|
type: "dataset",
|
|
244
|
-
debug:
|
|
245
|
-
}), xe.value = !1,
|
|
246
|
-
const t =
|
|
244
|
+
debug: te.value
|
|
245
|
+
}), xe.value = !1, Ie.value = !0) : Ie.value = e.value.loading, e.value.responsive) {
|
|
246
|
+
const t = ql(() => {
|
|
247
247
|
const { width: s, height: l } = jl({
|
|
248
|
-
chart:
|
|
248
|
+
chart: M.value,
|
|
249
249
|
title: e.value.style.chart.title.text ? et.value : null,
|
|
250
250
|
legend: e.value.style.chart.legend.show ? _e.value : null,
|
|
251
251
|
source: tt.value,
|
|
@@ -256,17 +256,17 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
256
256
|
p.value.width = s, p.value.height = l;
|
|
257
257
|
});
|
|
258
258
|
});
|
|
259
|
-
|
|
259
|
+
U.value && (ee.value && U.value.unobserve(ee.value), U.value.disconnect()), U.value = new ResizeObserver(t), ee.value = M.value.parentNode, U.value.observe(ee.value);
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
Dl(() => {
|
|
263
|
-
|
|
263
|
+
U.value && (ee.value && U.value.unobserve(ee.value), U.value.disconnect());
|
|
264
264
|
});
|
|
265
265
|
const { isPrinting: De, isImaging: Ne, generatePdf: pt, generateImage: gt } = ea({
|
|
266
266
|
elementId: `nested_donuts_${f.value}`,
|
|
267
267
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
268
268
|
options: e.value.userOptions.print
|
|
269
|
-
}), nl =
|
|
269
|
+
}), nl = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), ul = $(() => Ul(e.value.customPalette)), L = h({
|
|
270
270
|
dataLabels: {
|
|
271
271
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
272
272
|
},
|
|
@@ -282,7 +282,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
282
282
|
showTooltip: e.value.style.chart.tooltip.show
|
|
283
283
|
};
|
|
284
284
|
}, { immediate: !0 });
|
|
285
|
-
const p =
|
|
285
|
+
const p = h({
|
|
286
286
|
width: e.value.style.chart.width,
|
|
287
287
|
height: e.value.style.chart.height
|
|
288
288
|
}), Ve = Kt;
|
|
@@ -297,32 +297,32 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
297
297
|
onDone: a,
|
|
298
298
|
easing: n = Gt
|
|
299
299
|
}) {
|
|
300
|
-
const
|
|
301
|
-
function
|
|
302
|
-
const
|
|
303
|
-
o(x,
|
|
300
|
+
const d = performance.now();
|
|
301
|
+
function c(k) {
|
|
302
|
+
const i = Math.min((k - d) / l, 1), m = n(i), x = t + (s - t) * m;
|
|
303
|
+
o(x, i), i < 1 ? requestAnimationFrame(c) : (o(s, 1), a && a());
|
|
304
304
|
}
|
|
305
|
-
requestAnimationFrame(
|
|
305
|
+
requestAnimationFrame(c);
|
|
306
306
|
}
|
|
307
|
-
const b =
|
|
308
|
-
be.value,
|
|
307
|
+
const b = h([]), O = $(() => {
|
|
308
|
+
be.value, q.value.forEach((s, l) => {
|
|
309
309
|
[null, void 0].includes(s.name) && oe({
|
|
310
310
|
componentName: "VueUiNestedDonuts",
|
|
311
311
|
type: "datasetSerieAttribute",
|
|
312
312
|
property: "name",
|
|
313
313
|
index: l,
|
|
314
|
-
debug:
|
|
314
|
+
debug: te.value
|
|
315
315
|
}), [null, void 0].includes(s.series) ? oe({
|
|
316
316
|
componentName: "VueUiNestedDonuts",
|
|
317
317
|
type: "datasetSerieAttribute",
|
|
318
318
|
property: "series",
|
|
319
319
|
index: l,
|
|
320
|
-
debug:
|
|
320
|
+
debug: te.value
|
|
321
321
|
}) : s.series.length === 0 ? oe({
|
|
322
322
|
componentName: "VueUiNestedDonuts",
|
|
323
323
|
type: "datasetAttributeEmpty",
|
|
324
324
|
property: `series at index ${l}`,
|
|
325
|
-
debug:
|
|
325
|
+
debug: te.value
|
|
326
326
|
}) : s.series.forEach((o, a) => {
|
|
327
327
|
[null, void 0].includes(o.name) && oe({
|
|
328
328
|
componentName: "VueUiNestedDonuts",
|
|
@@ -330,25 +330,25 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
330
330
|
property: "name",
|
|
331
331
|
index: a,
|
|
332
332
|
key: "serie",
|
|
333
|
-
debug:
|
|
333
|
+
debug: te.value
|
|
334
334
|
}), [null, void 0].includes(o.values) && oe({
|
|
335
335
|
componentName: "VueUiNestedDonuts",
|
|
336
336
|
type: "datasetSerieAttribute",
|
|
337
337
|
property: "values",
|
|
338
338
|
index: a,
|
|
339
339
|
key: "serie",
|
|
340
|
-
debug:
|
|
340
|
+
debug: te.value
|
|
341
341
|
});
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
let t = 0;
|
|
345
|
-
return
|
|
345
|
+
return q.value.map((s, l) => ({
|
|
346
346
|
...s,
|
|
347
347
|
total: s.series.filter((o) => !b.value.includes(o.id)).map((o) => Y(o.values).reduce((a, n) => a + n, 0)).reduce((o, a) => o + a, 0),
|
|
348
348
|
datasetIndex: l,
|
|
349
349
|
id: `${f.value}_${l}`,
|
|
350
350
|
series: s.series.map((o, a) => {
|
|
351
|
-
const n = Y(o.values).reduce((
|
|
351
|
+
const n = Y(o.values).reduce((d, c) => d + c, 0);
|
|
352
352
|
return {
|
|
353
353
|
name: o.name,
|
|
354
354
|
arcOf: s.name,
|
|
@@ -356,17 +356,17 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
356
356
|
id: `${f.value}_${l}_${a}`,
|
|
357
357
|
seriesIndex: a,
|
|
358
358
|
datasetIndex: l,
|
|
359
|
-
color: Rl(o.color) || ul.value[a] ||
|
|
359
|
+
color: Rl(o.color) || ul.value[a] || qe[a % qe.length],
|
|
360
360
|
value: W.value ? K.value[t++] ?? 0 : n,
|
|
361
361
|
absoluteValues: o.values || []
|
|
362
362
|
};
|
|
363
363
|
})
|
|
364
364
|
}));
|
|
365
365
|
});
|
|
366
|
-
fe(() =>
|
|
367
|
-
Array.isArray(t) && t.length > 0 && (
|
|
366
|
+
fe(() => I.dataset, (t) => {
|
|
367
|
+
Array.isArray(t) && t.length > 0 && (Ie.value = !1);
|
|
368
368
|
}, { immediate: !0 });
|
|
369
|
-
const
|
|
369
|
+
const B = $(() => Math.min(p.value.height, p.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), mt = $(() => [...O.value].map((t, s) => {
|
|
370
370
|
const l = t.series.filter((o) => !b.value.includes(o.id)).map((o) => o.value).reduce((o, a) => o + a, 0);
|
|
371
371
|
return {
|
|
372
372
|
...t,
|
|
@@ -383,7 +383,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
383
383
|
l.includes(t[a]) && (o += 1);
|
|
384
384
|
return o < s;
|
|
385
385
|
}
|
|
386
|
-
const C =
|
|
386
|
+
const C = h(mt.value);
|
|
387
387
|
fe(
|
|
388
388
|
() => mt.value,
|
|
389
389
|
(t) => C.value = t
|
|
@@ -398,60 +398,60 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
398
398
|
}
|
|
399
399
|
function j(t) {
|
|
400
400
|
Ve("selectLegend", t);
|
|
401
|
-
const s =
|
|
402
|
-
(
|
|
401
|
+
const s = I.dataset.flatMap(
|
|
402
|
+
(i, m) => i.series.map((x, ve) => ({
|
|
403
403
|
value: Y(x.values).reduce((he, $e) => he + $e, 0),
|
|
404
|
-
id: `${f.value}_${
|
|
405
|
-
arcOfId: `${f.value}_${
|
|
404
|
+
id: `${f.value}_${m}_${ve}`,
|
|
405
|
+
arcOfId: `${f.value}_${m}`
|
|
406
406
|
}))
|
|
407
|
-
).find((
|
|
407
|
+
).find((i) => i.id === t.id);
|
|
408
408
|
if (!s) return;
|
|
409
|
-
const l =
|
|
409
|
+
const l = O.value.flatMap((i) => i.series).find((i) => i.id === t.id)?.value ?? 0, o = C.value.flatMap((i) => i.series).find((i) => i.id === t.id);
|
|
410
410
|
let n = o ? o.value : 0;
|
|
411
|
-
const
|
|
412
|
-
(
|
|
411
|
+
const d = O.value.find(
|
|
412
|
+
(i) => i.id === s.arcOfId
|
|
413
413
|
);
|
|
414
|
-
if (!
|
|
415
|
-
const
|
|
416
|
-
|
|
417
|
-
|
|
414
|
+
if (!d) return;
|
|
415
|
+
const c = d.series.map((i) => i.id), k = rl(
|
|
416
|
+
c,
|
|
417
|
+
c.length - 1,
|
|
418
418
|
b.value
|
|
419
419
|
);
|
|
420
|
-
b.value.includes(t.id) ? (b.value = b.value.filter((
|
|
420
|
+
b.value.includes(t.id) ? (b.value = b.value.filter((i) => i !== t.id), e.value.serieToggleAnimation.show ? bt({
|
|
421
421
|
from: n,
|
|
422
422
|
to: l,
|
|
423
423
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
424
|
-
onUpdate: (
|
|
425
|
-
C.value = C.value.map((
|
|
426
|
-
|
|
427
|
-
series:
|
|
424
|
+
onUpdate: (i) => {
|
|
425
|
+
C.value = C.value.map((m) => ({
|
|
426
|
+
...m,
|
|
427
|
+
series: m.series.map((x) => x.id === t.id ? { ...x, value: i } : x)
|
|
428
428
|
}));
|
|
429
429
|
}
|
|
430
|
-
}) : C.value = C.value.map((
|
|
431
|
-
...
|
|
432
|
-
series:
|
|
430
|
+
}) : C.value = C.value.map((i) => ({
|
|
431
|
+
...i,
|
|
432
|
+
series: i.series.map((m) => m.id === t.id ? { ...m, value: l } : m)
|
|
433
433
|
}))) : k && (e.value.serieToggleAnimation.show ? bt({
|
|
434
434
|
from: n,
|
|
435
435
|
to: 0,
|
|
436
436
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
437
|
-
onUpdate: (
|
|
438
|
-
C.value = C.value.map((
|
|
439
|
-
|
|
440
|
-
series:
|
|
437
|
+
onUpdate: (i) => {
|
|
438
|
+
C.value = C.value.map((m) => ({
|
|
439
|
+
...m,
|
|
440
|
+
series: m.series.map((x) => x.id === t.id ? { ...x, value: i } : x)
|
|
441
441
|
}));
|
|
442
442
|
},
|
|
443
443
|
onDone: () => {
|
|
444
444
|
b.value.push(t.id);
|
|
445
445
|
}
|
|
446
|
-
}) : (C.value = C.value.map((
|
|
447
|
-
...
|
|
448
|
-
series:
|
|
446
|
+
}) : (C.value = C.value.map((i) => ({
|
|
447
|
+
...i,
|
|
448
|
+
series: i.series.map((m) => m.id === t.id ? { ...m, value: 0 } : m)
|
|
449
449
|
})), b.value.push(t.id)));
|
|
450
450
|
}
|
|
451
451
|
function wt(t) {
|
|
452
|
-
if (!
|
|
452
|
+
if (!O.value.length)
|
|
453
453
|
return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
|
|
454
|
-
const s =
|
|
454
|
+
const s = O.value.flatMap((l) => l.series).filter((l) => l.name === t);
|
|
455
455
|
return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
|
|
456
456
|
}
|
|
457
457
|
function dl(t) {
|
|
@@ -466,11 +466,11 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
466
466
|
b.value.includes(l.id) || j({ id: l.id });
|
|
467
467
|
}) : b.value.includes(s.id) || j({ id: s.id }));
|
|
468
468
|
}
|
|
469
|
-
const me =
|
|
470
|
-
const l = Math.abs(t.series.map((k) => k.value).reduce((k,
|
|
469
|
+
const me = $(() => B.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio), kt = $(() => C.value.map((t, s) => B.value - s * B.value / O.value.length)), J = $(() => C.value.map((t, s) => {
|
|
470
|
+
const l = Math.abs(t.series.map((k) => k.value).reduce((k, i) => k + i, 0)) > 0, o = B.value - s * B.value / C.value.length, a = W.value ? ue.value.find((k) => k.datasetIndex === s) : null, n = [...t.series, ...a ? [a] : []].map((k) => ({
|
|
471
471
|
...k,
|
|
472
472
|
value: k.value < 1e-11 ? Number.MIN_VALUE : k.value
|
|
473
|
-
})),
|
|
473
|
+
})), d = je(
|
|
474
474
|
{ series: [
|
|
475
475
|
{ name: "_", color: e.value.style.chart.layout.donut.emptyFill, value: 1 }
|
|
476
476
|
] },
|
|
@@ -484,15 +484,15 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
484
484
|
360,
|
|
485
485
|
105.25,
|
|
486
486
|
me.value
|
|
487
|
-
),
|
|
487
|
+
), c = `M ${p.value.width / 2},${p.value.height / 2 + o}
|
|
488
488
|
a ${o},${o} 0 1,1 0,${-2 * o}
|
|
489
489
|
a ${o},${o} 0 1,1 0,${2 * o}`;
|
|
490
490
|
return {
|
|
491
491
|
...t,
|
|
492
492
|
hasData: l,
|
|
493
493
|
radius: o,
|
|
494
|
-
skeleton:
|
|
495
|
-
fullCirclePath:
|
|
494
|
+
skeleton: d,
|
|
495
|
+
fullCirclePath: c,
|
|
496
496
|
donut: je(
|
|
497
497
|
{ series: n },
|
|
498
498
|
p.value.width / 2,
|
|
@@ -507,27 +507,27 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
507
507
|
me.value
|
|
508
508
|
)
|
|
509
509
|
};
|
|
510
|
-
})), $t =
|
|
511
|
-
const l = s *
|
|
510
|
+
})), $t = $(() => [...O.value].map((t, s) => {
|
|
511
|
+
const l = s * B.value / O.value.length;
|
|
512
512
|
return {
|
|
513
513
|
sizeRatio: l,
|
|
514
514
|
donut: je(
|
|
515
515
|
{ series: [{ value: 1 }] },
|
|
516
516
|
p.value.width / 2,
|
|
517
517
|
p.value.height / 2,
|
|
518
|
-
|
|
519
|
-
|
|
518
|
+
B.value - l,
|
|
519
|
+
B.value - l,
|
|
520
520
|
1.99999,
|
|
521
521
|
2,
|
|
522
522
|
1,
|
|
523
523
|
360,
|
|
524
524
|
105.25,
|
|
525
|
-
|
|
525
|
+
B.value / O.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
526
526
|
)[0]
|
|
527
527
|
};
|
|
528
|
-
})), we =
|
|
528
|
+
})), we = h(null), le = h(null), Q = h(null), Me = h(null);
|
|
529
529
|
function vl({ datapoint: t, seriesIndex: s }) {
|
|
530
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), se.value = !1, we.value = null, ne.value = null,
|
|
530
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: s }), se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null, N.value = null, ie.value = "pointer";
|
|
531
531
|
}
|
|
532
532
|
function Ct({
|
|
533
533
|
val: t,
|
|
@@ -536,7 +536,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
536
536
|
showPercentage: o,
|
|
537
537
|
config: a
|
|
538
538
|
}) {
|
|
539
|
-
return
|
|
539
|
+
return Hl({
|
|
540
540
|
config: a,
|
|
541
541
|
val: t,
|
|
542
542
|
percentage: s,
|
|
@@ -545,7 +545,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
function At({ datapoint: t, _relativeIndex: s, seriesIndex: l, triggerMode: o = "pointer" }) {
|
|
548
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ie.value = o,
|
|
548
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), ie.value = o, N.value = l, we.value = t.arcOfId, le.value = t.id, Q.value = l, ne.value = t.id, Me.value = {
|
|
549
549
|
datapoint: t,
|
|
550
550
|
seriesIndex: l,
|
|
551
551
|
series: C.value,
|
|
@@ -569,17 +569,17 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
569
569
|
else {
|
|
570
570
|
let n = "";
|
|
571
571
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && b.value.length === 0) {
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
if (!
|
|
572
|
+
const d = C.value.map((c) => c.series.find((k) => k.seriesIndex === l));
|
|
573
|
+
d.forEach((c, k) => {
|
|
574
|
+
if (!c) return "";
|
|
575
575
|
n += `
|
|
576
|
-
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${k <
|
|
576
|
+
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${k < d.length - 1 ? `border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor}` : ""}">
|
|
577
577
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
578
578
|
<svg viewBox="0 0 20 20" height="${e.value.style.chart.tooltip.fontSize}" width="${e.value.style.chart.tooltip.fontSize}">
|
|
579
|
-
<circle cx="10" cy="10" r="10" fill="${
|
|
579
|
+
<circle cx="10" cy="10" r="10" fill="${c.color}"/>
|
|
580
580
|
</svg>
|
|
581
581
|
<span>
|
|
582
|
-
${
|
|
582
|
+
${c.arcOf ?? ""} - ${c.name}
|
|
583
583
|
</span>
|
|
584
584
|
</div>
|
|
585
585
|
<span>
|
|
@@ -591,7 +591,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
591
591
|
val: Ae(
|
|
592
592
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
593
593
|
t.value,
|
|
594
|
-
|
|
594
|
+
D({
|
|
595
595
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
596
596
|
v: t.value,
|
|
597
597
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -599,8 +599,8 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
599
599
|
}),
|
|
600
600
|
{ datapoint: t, seriesIndex: l }
|
|
601
601
|
),
|
|
602
|
-
percentage:
|
|
603
|
-
v:
|
|
602
|
+
percentage: D({
|
|
603
|
+
v: c.proportion * 100,
|
|
604
604
|
s: "%",
|
|
605
605
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
606
606
|
})
|
|
@@ -614,18 +614,18 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
614
614
|
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (n += `<b>${Ae(
|
|
615
615
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
616
616
|
t.value,
|
|
617
|
-
|
|
617
|
+
D({
|
|
618
618
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
619
619
|
v: t.value,
|
|
620
620
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
621
621
|
r: e.value.style.chart.tooltip.roundingValue
|
|
622
622
|
}),
|
|
623
623
|
{ datapoint: t, seriesIndex: l }
|
|
624
|
-
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? n += `<span>(${
|
|
624
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? n += `<span>(${D({
|
|
625
625
|
v: t.proportion * 100,
|
|
626
626
|
s: "%",
|
|
627
627
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
628
|
-
})})</span></div>` : n += `<b>${
|
|
628
|
+
})})</span></div>` : n += `<b>${D({
|
|
629
629
|
v: t.proportion * 100,
|
|
630
630
|
s: "%",
|
|
631
631
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -641,50 +641,50 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
641
641
|
if (!e.value.useBlurOnHover)
|
|
642
642
|
return "";
|
|
643
643
|
if (e.value.style.chart.tooltip.showAllItemsAtIndex && b.value.length === 0)
|
|
644
|
-
return [null, void 0].includes(
|
|
644
|
+
return [null, void 0].includes(Q.value) || Q.value === s ? "" : `url(#blur_${f.value})`;
|
|
645
645
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || b.value.length)
|
|
646
|
-
return [null, void 0].includes(
|
|
646
|
+
return [null, void 0].includes(le.value) || le.value === t.id ? "" : `url(#blur_${f.value})`;
|
|
647
647
|
}
|
|
648
|
-
const ke =
|
|
648
|
+
const ke = $(() => O.value.map((t, s) => {
|
|
649
649
|
const l = t.series.filter(
|
|
650
650
|
(a) => !b.value.includes(a.id)
|
|
651
651
|
), o = W.value ? l.map((a) => {
|
|
652
|
-
const n =
|
|
653
|
-
(
|
|
652
|
+
const n = q.value[s].series.findIndex(
|
|
653
|
+
(d) => d.name === a.name
|
|
654
654
|
);
|
|
655
655
|
return Y(
|
|
656
|
-
|
|
657
|
-
).reduce((
|
|
656
|
+
q.value[s].series[n].values
|
|
657
|
+
).reduce((d, c) => d + c, 0);
|
|
658
658
|
}).reduce((a, n) => a + n, 0) : l.map((a) => a.value).reduce((a, n) => a + n, 0);
|
|
659
659
|
return t.series.map((a, n) => {
|
|
660
|
-
const
|
|
660
|
+
const d = Y(q.value[s].series[n].values).reduce(
|
|
661
661
|
(ve, he) => ve + he,
|
|
662
662
|
0
|
|
663
|
-
),
|
|
663
|
+
), c = W.value ? d : a.value, k = Ae(
|
|
664
664
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
665
|
-
|
|
666
|
-
|
|
665
|
+
c,
|
|
666
|
+
D({
|
|
667
667
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
668
|
-
v:
|
|
668
|
+
v: c,
|
|
669
669
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
670
670
|
r: e.value.style.chart.legend.roundingValue
|
|
671
671
|
}),
|
|
672
672
|
{ datapoint: a, seriesIndex: n }
|
|
673
|
-
),
|
|
674
|
-
v:
|
|
673
|
+
), i = isNaN(c / o) || b.value.includes(a.id) ? "-" : D({
|
|
674
|
+
v: c / o * 100,
|
|
675
675
|
s: "%",
|
|
676
676
|
r: e.value.style.chart.legend.roundingPercentage
|
|
677
|
-
}),
|
|
677
|
+
}), m = Ct({
|
|
678
678
|
val: k,
|
|
679
|
-
percentage:
|
|
679
|
+
percentage: i,
|
|
680
680
|
showVal: e.value.style.chart.legend.showValue,
|
|
681
681
|
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
682
682
|
config: e.value.style.chart.legend
|
|
683
|
-
}), x = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${
|
|
683
|
+
}), x = `${a.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${m}`;
|
|
684
684
|
return {
|
|
685
685
|
name: a.name,
|
|
686
686
|
color: a.color,
|
|
687
|
-
value:
|
|
687
|
+
value: c,
|
|
688
688
|
display: x,
|
|
689
689
|
svgDisplay: `${a.arcOf ? `${a.arcOf} - ` : ""}${x}`,
|
|
690
690
|
shape: "circle",
|
|
@@ -698,14 +698,14 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
698
698
|
isSegregated: b.value.includes(a.id)
|
|
699
699
|
};
|
|
700
700
|
});
|
|
701
|
-
})), hl =
|
|
701
|
+
})), hl = $(() => ({
|
|
702
702
|
cy: "nested-donuts-legend",
|
|
703
703
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
704
704
|
color: e.value.style.chart.legend.color,
|
|
705
705
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
706
706
|
paddingBottom: 12,
|
|
707
707
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
708
|
-
})),
|
|
708
|
+
})), R = $(() => {
|
|
709
709
|
const t = C.value.flatMap((l) => l.series.map((o) => ({
|
|
710
710
|
name: `${l.name} - ${o.name}`,
|
|
711
711
|
color: o.color,
|
|
@@ -714,12 +714,12 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
714
714
|
return { head: t, body: s };
|
|
715
715
|
});
|
|
716
716
|
function ze(t = null) {
|
|
717
|
-
|
|
718
|
-
const s =
|
|
717
|
+
He(() => {
|
|
718
|
+
const s = R.value.head.map((a, n) => [
|
|
719
719
|
[a.name],
|
|
720
|
-
[
|
|
720
|
+
[R.value.body[n]],
|
|
721
721
|
[
|
|
722
|
-
isNaN(
|
|
722
|
+
isNaN(R.value.body[n] / a.total) ? "-" : R.value.body[n] / a.total * 100
|
|
723
723
|
]
|
|
724
724
|
]), l = [
|
|
725
725
|
[e.value.style.chart.title.text],
|
|
@@ -732,15 +732,15 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
732
732
|
});
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
|
-
const ae =
|
|
735
|
+
const ae = $(() => {
|
|
736
736
|
const t = [
|
|
737
737
|
e.value.table.columnNames.series,
|
|
738
738
|
e.value.table.columnNames.value,
|
|
739
739
|
e.value.table.columnNames.percentage
|
|
740
|
-
], s =
|
|
741
|
-
const
|
|
740
|
+
], s = R.value.head.map((n, d) => {
|
|
741
|
+
const c = D({
|
|
742
742
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
743
|
-
v:
|
|
743
|
+
v: R.value.body[d],
|
|
744
744
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
745
745
|
r: e.value.table.td.roundingValue
|
|
746
746
|
});
|
|
@@ -749,14 +749,14 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
749
749
|
color: n.color,
|
|
750
750
|
name: n.name
|
|
751
751
|
},
|
|
752
|
-
|
|
753
|
-
isNaN(
|
|
754
|
-
v:
|
|
752
|
+
c,
|
|
753
|
+
isNaN(R.value.body[d] / n.total) ? "-" : D({
|
|
754
|
+
v: R.value.body[d] / n.total * 100,
|
|
755
755
|
s: "%",
|
|
756
756
|
r: e.value.table.td.roundingPercentage
|
|
757
757
|
})
|
|
758
758
|
];
|
|
759
|
-
}), l = s.map((n) => n.map((
|
|
759
|
+
}), l = s.map((n) => n.map((d, c) => c === 0 ? d.name : d)), o = {
|
|
760
760
|
th: {
|
|
761
761
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
762
762
|
color: e.value.table.th.color,
|
|
@@ -782,7 +782,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
782
782
|
};
|
|
783
783
|
});
|
|
784
784
|
function fl() {
|
|
785
|
-
return
|
|
785
|
+
return O.value;
|
|
786
786
|
}
|
|
787
787
|
function Tt() {
|
|
788
788
|
L.value.showTable = !L.value.showTable;
|
|
@@ -793,13 +793,13 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
793
793
|
function Pt() {
|
|
794
794
|
L.value.showTooltip = !L.value.showTooltip;
|
|
795
795
|
}
|
|
796
|
-
const de =
|
|
796
|
+
const de = h(!1);
|
|
797
797
|
function Be() {
|
|
798
798
|
de.value = !de.value;
|
|
799
799
|
}
|
|
800
800
|
async function pl({ scale: t = 2 } = {}) {
|
|
801
|
-
if (!
|
|
802
|
-
const { width: s, height: l } =
|
|
801
|
+
if (!M.value) return;
|
|
802
|
+
const { width: s, height: l } = M.value.getBoundingClientRect(), o = s / l, { imageUri: a, base64: n } = await sa({ domElement: M.value, base64: !0, img: !0, scale: t });
|
|
803
803
|
return {
|
|
804
804
|
imageUri: a,
|
|
805
805
|
base64: n,
|
|
@@ -809,16 +809,16 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
809
809
|
aspectRatio: o
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
const Ee =
|
|
812
|
+
const Ee = h(null);
|
|
813
813
|
function gl() {
|
|
814
814
|
if (!Ee.value) return;
|
|
815
815
|
const { x: t, y: s, width: l, height: o } = Ee.value.getBBox();
|
|
816
|
-
|
|
816
|
+
z.value && z.value.setAttribute("viewBox", `${t} ${s} ${l + Math.min(0, t)} ${o + Math.min(0, s)}`);
|
|
817
817
|
}
|
|
818
|
-
const ce =
|
|
818
|
+
const ce = $(() => {
|
|
819
819
|
const t = e.value.table.useDialog && !e.value.table.show, s = L.value.showTable;
|
|
820
820
|
return {
|
|
821
|
-
component: t ? el :
|
|
821
|
+
component: t ? el : qt,
|
|
822
822
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
823
823
|
props: t ? {
|
|
824
824
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -826,9 +826,9 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
826
826
|
headerColor: e.value.table.th.color,
|
|
827
827
|
headerBg: e.value.table.th.backgroundColor,
|
|
828
828
|
isFullscreen: X.value,
|
|
829
|
-
fullscreenParent:
|
|
829
|
+
fullscreenParent: M.value,
|
|
830
830
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
831
|
-
isCursorPointer:
|
|
831
|
+
isCursorPointer: H.value
|
|
832
832
|
} : {
|
|
833
833
|
hideDetails: !0,
|
|
834
834
|
config: {
|
|
@@ -852,18 +852,18 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
852
852
|
function St() {
|
|
853
853
|
L.value.showTable = !1, Pe.value && Pe.value.setTableIconState(!1);
|
|
854
854
|
}
|
|
855
|
-
const yl =
|
|
855
|
+
const yl = $(() => e.value.style.chart.backgroundColor), bl = $(() => e.value.style.chart.legend), ml = $(() => e.value.style.chart.title), wl = $(() => ke.value.flat().map((t) => ({
|
|
856
856
|
...t,
|
|
857
857
|
name: t.svgDisplay
|
|
858
858
|
}))), { exportSvg: kl, getSvg: $l } = ta({
|
|
859
|
-
svg:
|
|
859
|
+
svg: z,
|
|
860
860
|
title: ml,
|
|
861
861
|
legend: bl,
|
|
862
862
|
legendItems: wl,
|
|
863
863
|
backgroundColor: yl
|
|
864
864
|
});
|
|
865
|
-
async function
|
|
866
|
-
ye.value = !0, await
|
|
865
|
+
async function It({ isCb: t }) {
|
|
866
|
+
ye.value = !0, await He();
|
|
867
867
|
try {
|
|
868
868
|
if (t) {
|
|
869
869
|
const { blob: s, url: l, text: o, dataUrl: a } = await $l();
|
|
@@ -885,7 +885,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
885
885
|
}
|
|
886
886
|
gt();
|
|
887
887
|
}
|
|
888
|
-
async function
|
|
888
|
+
async function Ot() {
|
|
889
889
|
if (Ve("copyAlt", {
|
|
890
890
|
config: e.value,
|
|
891
891
|
dataset: C.value
|
|
@@ -898,50 +898,51 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
898
898
|
dataset: C.value
|
|
899
899
|
}));
|
|
900
900
|
}
|
|
901
|
-
const
|
|
901
|
+
const F = $(() => J.value.flatMap((t) => t.donut.filter((s) => !s.ghost)));
|
|
902
902
|
function Al() {
|
|
903
|
-
|
|
903
|
+
N.value = null, Se.value = !0;
|
|
904
904
|
}
|
|
905
905
|
function Ll() {
|
|
906
|
-
|
|
906
|
+
N.value = null, ie.value = "pointer", se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null, Se.value = !1;
|
|
907
907
|
}
|
|
908
908
|
function xl(t) {
|
|
909
|
-
if (!
|
|
909
|
+
if (!z.value || de.value || document.activeElement !== z.value || !F.value.length) return;
|
|
910
910
|
const s = ["ArrowLeft", "ArrowUp"].includes(t.key), l = ["ArrowRight", "ArrowDown"].includes(t.key), o = t.key === "Enter" || t.key === " ", a = t.key === "Escape";
|
|
911
911
|
if (!s && !l && !o && !a) return;
|
|
912
912
|
if (t.preventDefault(), t.stopPropagation(), a) {
|
|
913
|
-
|
|
913
|
+
N.value = null, ie.value = "pointer", se.value = !1, we.value = null, ne.value = null, le.value = null, Q.value = null;
|
|
914
914
|
return;
|
|
915
915
|
}
|
|
916
916
|
if (o) {
|
|
917
|
-
if (
|
|
918
|
-
const
|
|
919
|
-
if (!
|
|
917
|
+
if (N.value === null) return;
|
|
918
|
+
const m = F.value[N.value];
|
|
919
|
+
if (!m) return;
|
|
920
920
|
yt({
|
|
921
|
-
datapoint:
|
|
922
|
-
index:
|
|
923
|
-
seriesIndex:
|
|
921
|
+
datapoint: m,
|
|
922
|
+
index: N.value,
|
|
923
|
+
seriesIndex: m.seriesIndex
|
|
924
924
|
});
|
|
925
925
|
return;
|
|
926
926
|
}
|
|
927
|
-
let n =
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
927
|
+
let n = N.value;
|
|
928
|
+
const d = Q.value, c = n !== null && n >= 0 && n < F.value.length, k = d !== null && d >= 0 && d < F.value.length;
|
|
929
|
+
c ? l ? (n += 1, n >= F.value.length && (n = 0)) : s && (n -= 1, n < 0 && (n = F.value.length - 1)) : k ? (n = l ? d + 1 : d - 1, n >= F.value.length && (n = 0), n < 0 && (n = F.value.length - 1)) : l ? n = 0 : n = F.value.length - 1;
|
|
930
|
+
const i = F.value[n];
|
|
931
|
+
i && (N.value = n, Tl(), At({
|
|
932
|
+
datapoint: i,
|
|
933
|
+
seriesIndex: i.seriesIndex,
|
|
933
934
|
triggerMode: "keyboard"
|
|
934
935
|
}));
|
|
935
936
|
}
|
|
936
937
|
function Tl() {
|
|
937
|
-
if (!
|
|
938
|
-
const t =
|
|
938
|
+
if (!z.value) return;
|
|
939
|
+
const t = z.value.getBoundingClientRect();
|
|
939
940
|
ut.value = {
|
|
940
941
|
x: t.left + t.width / 2,
|
|
941
942
|
y: t.top + t.height / 2
|
|
942
943
|
};
|
|
943
944
|
}
|
|
944
|
-
const Ue =
|
|
945
|
+
const Ue = $(() => {
|
|
945
946
|
const t = ae.value?.colNames ?? [], s = ae.value?.a11yBody ?? [];
|
|
946
947
|
return { headers: t, rows: s };
|
|
947
948
|
});
|
|
@@ -952,7 +953,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
952
953
|
generatePdf: pt,
|
|
953
954
|
generateCsv: ze,
|
|
954
955
|
generateImage: gt,
|
|
955
|
-
generateSvg:
|
|
956
|
+
generateSvg: It,
|
|
956
957
|
hideSeries: cl,
|
|
957
958
|
showSeries: dl,
|
|
958
959
|
toggleTable: Tt,
|
|
@@ -960,23 +961,23 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
960
961
|
toggleTooltip: Pt,
|
|
961
962
|
toggleAnnotator: Be,
|
|
962
963
|
toggleFullscreen: rt,
|
|
963
|
-
copyAlt:
|
|
964
|
+
copyAlt: Ot
|
|
964
965
|
}), (t, s) => (u(), r("div", {
|
|
965
966
|
ref_key: "nestedDonutsChart",
|
|
966
|
-
ref:
|
|
967
|
-
class:
|
|
967
|
+
ref: M,
|
|
968
|
+
class: Z(`vue-data-ui-component vue-ui-nested-donuts ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
968
969
|
style: pe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
969
970
|
id: `nested_donuts_${f.value}`,
|
|
970
|
-
onMouseenter: s[2] || (s[2] = () =>
|
|
971
|
-
onMouseleave: s[3] || (s[3] = () =>
|
|
971
|
+
onMouseenter: s[2] || (s[2] = () => v(dt)(!0)),
|
|
972
|
+
onMouseleave: s[3] || (s[3] = () => v(dt)(!1))
|
|
972
973
|
}, [
|
|
973
974
|
g("div", {
|
|
974
975
|
id: `chart-instructions-${f.value}`,
|
|
975
976
|
class: "sr-only"
|
|
976
977
|
}, [
|
|
977
|
-
g("p", null,
|
|
978
|
+
g("p", null, E(e.value.a11y.translations.keyboardNavigation), 1)
|
|
978
979
|
], 8, ha),
|
|
979
|
-
Ue.value?.rows?.length ? (u(),
|
|
980
|
+
Ue.value?.rows?.length ? (u(), V(ia, {
|
|
980
981
|
key: 0,
|
|
981
982
|
uid: f.value,
|
|
982
983
|
head: Ue.value.headers,
|
|
@@ -984,32 +985,32 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
984
985
|
notice: e.value.a11y.translations.tableAvailable,
|
|
985
986
|
caption: e.value.a11y.translations.tableCaption
|
|
986
987
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : A("", !0),
|
|
987
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
988
|
+
e.value.userOptions.buttons.annotator ? (u(), V(v(Qt), {
|
|
988
989
|
key: 1,
|
|
989
|
-
svgRef:
|
|
990
|
+
svgRef: v(z),
|
|
990
991
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
991
992
|
color: e.value.style.chart.color,
|
|
992
993
|
active: de.value,
|
|
993
|
-
isCursorPointer:
|
|
994
|
+
isCursorPointer: H.value,
|
|
994
995
|
onClose: Be
|
|
995
996
|
}, {
|
|
996
997
|
"annotator-action-close": y(() => [
|
|
997
|
-
|
|
998
|
+
w(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
998
999
|
]),
|
|
999
1000
|
"annotator-action-color": y(({ color: l }) => [
|
|
1000
|
-
|
|
1001
|
+
w(t.$slots, "annotator-action-color", P(S({ color: l })), void 0, !0)
|
|
1001
1002
|
]),
|
|
1002
1003
|
"annotator-action-draw": y(({ mode: l }) => [
|
|
1003
|
-
|
|
1004
|
+
w(t.$slots, "annotator-action-draw", P(S({ mode: l })), void 0, !0)
|
|
1004
1005
|
]),
|
|
1005
1006
|
"annotator-action-undo": y(({ disabled: l }) => [
|
|
1006
|
-
|
|
1007
|
+
w(t.$slots, "annotator-action-undo", P(S({ disabled: l })), void 0, !0)
|
|
1007
1008
|
]),
|
|
1008
1009
|
"annotator-action-redo": y(({ disabled: l }) => [
|
|
1009
|
-
|
|
1010
|
+
w(t.$slots, "annotator-action-redo", P(S({ disabled: l })), void 0, !0)
|
|
1010
1011
|
]),
|
|
1011
1012
|
"annotator-action-delete": y(({ disabled: l }) => [
|
|
1012
|
-
|
|
1013
|
+
w(t.$slots, "annotator-action-delete", P(S({ disabled: l })), void 0, !0)
|
|
1013
1014
|
]),
|
|
1014
1015
|
_: 3
|
|
1015
1016
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : A("", !0),
|
|
@@ -1025,7 +1026,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1025
1026
|
ref_key: "chartTitle",
|
|
1026
1027
|
ref: et
|
|
1027
1028
|
}, [
|
|
1028
|
-
(u(),
|
|
1029
|
+
(u(), V(na, {
|
|
1029
1030
|
key: `title_${at.value}`,
|
|
1030
1031
|
config: {
|
|
1031
1032
|
title: {
|
|
@@ -1042,14 +1043,14 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1042
1043
|
g("div", {
|
|
1043
1044
|
id: `legend-top-${f.value}`
|
|
1044
1045
|
}, null, 8, fa),
|
|
1045
|
-
e.value.userOptions.show && xe.value && (
|
|
1046
|
+
e.value.userOptions.show && xe.value && (v(ct) || v(Oe)) ? (u(), V(v(Jt), {
|
|
1046
1047
|
ref_key: "userOptionsRef",
|
|
1047
1048
|
ref: Pe,
|
|
1048
1049
|
key: `user_option_${Ze.value}`,
|
|
1049
1050
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1050
1051
|
color: e.value.style.chart.color,
|
|
1051
|
-
isPrinting:
|
|
1052
|
-
isImaging:
|
|
1052
|
+
isPrinting: v(De),
|
|
1053
|
+
isImaging: v(Ne),
|
|
1053
1054
|
uid: f.value,
|
|
1054
1055
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
1055
1056
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -1063,102 +1064,102 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1063
1064
|
isFullscreen: X.value,
|
|
1064
1065
|
isTooltip: L.value.showTooltip,
|
|
1065
1066
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
1066
|
-
chartElement:
|
|
1067
|
+
chartElement: M.value,
|
|
1067
1068
|
position: e.value.userOptions.position,
|
|
1068
1069
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
1069
1070
|
isAnnotation: de.value,
|
|
1070
1071
|
callbacks: e.value.userOptions.callbacks,
|
|
1071
1072
|
printScale: e.value.userOptions.print.scale,
|
|
1072
1073
|
tableDialog: e.value.table.useDialog,
|
|
1073
|
-
isCursorPointer:
|
|
1074
|
+
isCursorPointer: H.value,
|
|
1074
1075
|
onToggleFullscreen: rt,
|
|
1075
|
-
onGeneratePdf:
|
|
1076
|
+
onGeneratePdf: v(pt),
|
|
1076
1077
|
onGenerateCsv: ze,
|
|
1077
1078
|
onGenerateImage: Cl,
|
|
1078
|
-
onGenerateSvg:
|
|
1079
|
+
onGenerateSvg: It,
|
|
1079
1080
|
onToggleTable: Tt,
|
|
1080
1081
|
onToggleLabels: _t,
|
|
1081
1082
|
onToggleTooltip: Pt,
|
|
1082
1083
|
onToggleAnnotator: Be,
|
|
1083
|
-
onCopyAlt:
|
|
1084
|
+
onCopyAlt: Ot,
|
|
1084
1085
|
style: pe({
|
|
1085
|
-
visibility:
|
|
1086
|
+
visibility: v(ct) ? v(Oe) ? "visible" : "hidden" : "visible"
|
|
1086
1087
|
})
|
|
1087
1088
|
}, Dt({ _: 2 }, [
|
|
1088
1089
|
t.$slots.menuIcon ? {
|
|
1089
1090
|
name: "menuIcon",
|
|
1090
1091
|
fn: y(({ isOpen: l, color: o }) => [
|
|
1091
|
-
|
|
1092
|
+
w(t.$slots, "menuIcon", P(S({ isOpen: l, color: o })), void 0, !0)
|
|
1092
1093
|
]),
|
|
1093
1094
|
key: "0"
|
|
1094
1095
|
} : void 0,
|
|
1095
1096
|
t.$slots.optionTooltip ? {
|
|
1096
1097
|
name: "optionTooltip",
|
|
1097
1098
|
fn: y(() => [
|
|
1098
|
-
|
|
1099
|
+
w(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1099
1100
|
]),
|
|
1100
1101
|
key: "1"
|
|
1101
1102
|
} : void 0,
|
|
1102
1103
|
t.$slots.optionPdf ? {
|
|
1103
1104
|
name: "optionPdf",
|
|
1104
1105
|
fn: y(() => [
|
|
1105
|
-
|
|
1106
|
+
w(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1106
1107
|
]),
|
|
1107
1108
|
key: "2"
|
|
1108
1109
|
} : void 0,
|
|
1109
1110
|
t.$slots.optionCsv ? {
|
|
1110
1111
|
name: "optionCsv",
|
|
1111
1112
|
fn: y(() => [
|
|
1112
|
-
|
|
1113
|
+
w(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1113
1114
|
]),
|
|
1114
1115
|
key: "3"
|
|
1115
1116
|
} : void 0,
|
|
1116
1117
|
t.$slots.optionImg ? {
|
|
1117
1118
|
name: "optionImg",
|
|
1118
1119
|
fn: y(() => [
|
|
1119
|
-
|
|
1120
|
+
w(t.$slots, "optionImg", {}, void 0, !0)
|
|
1120
1121
|
]),
|
|
1121
1122
|
key: "4"
|
|
1122
1123
|
} : void 0,
|
|
1123
1124
|
t.$slots.optionSvg ? {
|
|
1124
1125
|
name: "optionSvg",
|
|
1125
1126
|
fn: y(() => [
|
|
1126
|
-
|
|
1127
|
+
w(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1127
1128
|
]),
|
|
1128
1129
|
key: "5"
|
|
1129
1130
|
} : void 0,
|
|
1130
1131
|
t.$slots.optionTable ? {
|
|
1131
1132
|
name: "optionTable",
|
|
1132
1133
|
fn: y(() => [
|
|
1133
|
-
|
|
1134
|
+
w(t.$slots, "optionTable", {}, void 0, !0)
|
|
1134
1135
|
]),
|
|
1135
1136
|
key: "6"
|
|
1136
1137
|
} : void 0,
|
|
1137
1138
|
t.$slots.optionLabels ? {
|
|
1138
1139
|
name: "optionLabels",
|
|
1139
1140
|
fn: y(() => [
|
|
1140
|
-
|
|
1141
|
+
w(t.$slots, "optionLabels", {}, void 0, !0)
|
|
1141
1142
|
]),
|
|
1142
1143
|
key: "7"
|
|
1143
1144
|
} : void 0,
|
|
1144
1145
|
t.$slots.optionFullscreen ? {
|
|
1145
1146
|
name: "optionFullscreen",
|
|
1146
1147
|
fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
1147
|
-
|
|
1148
|
+
w(t.$slots, "optionFullscreen", P(S({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
1148
1149
|
]),
|
|
1149
1150
|
key: "8"
|
|
1150
1151
|
} : void 0,
|
|
1151
1152
|
t.$slots.optionAnnotator ? {
|
|
1152
1153
|
name: "optionAnnotator",
|
|
1153
1154
|
fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
1154
|
-
|
|
1155
|
+
w(t.$slots, "optionAnnotator", P(S({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
1155
1156
|
]),
|
|
1156
1157
|
key: "9"
|
|
1157
1158
|
} : void 0,
|
|
1158
1159
|
t.$slots.optionAltCopy ? {
|
|
1159
1160
|
name: "optionAltCopy",
|
|
1160
1161
|
fn: y(({ altCopy: l }) => [
|
|
1161
|
-
|
|
1162
|
+
w(t.$slots, "optionAltCopy", P(S({ altCopy: l })), void 0, !0)
|
|
1162
1163
|
]),
|
|
1163
1164
|
key: "10"
|
|
1164
1165
|
} : void 0
|
|
@@ -1166,10 +1167,10 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1166
1167
|
g("div", pa, [
|
|
1167
1168
|
(u(), r("svg", {
|
|
1168
1169
|
ref_key: "svgRef",
|
|
1169
|
-
ref:
|
|
1170
|
-
xmlns:
|
|
1170
|
+
ref: z,
|
|
1171
|
+
xmlns: v(Gl),
|
|
1171
1172
|
"aria-describedby": `chart-instructions-${f.value}`,
|
|
1172
|
-
class:
|
|
1173
|
+
class: Z({
|
|
1173
1174
|
"vue-data-ui-fullscreen--on": X.value,
|
|
1174
1175
|
"vue-data-ui-fulscreen--off": !X.value,
|
|
1175
1176
|
"vue-data-ui-svg": !0
|
|
@@ -1186,7 +1187,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1186
1187
|
ref: Ee,
|
|
1187
1188
|
class: "vue-data-ui-g"
|
|
1188
1189
|
}, [
|
|
1189
|
-
Xe(
|
|
1190
|
+
Xe(v(Zt)),
|
|
1190
1191
|
t.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
1191
1192
|
key: 0,
|
|
1192
1193
|
x: 0,
|
|
@@ -1197,7 +1198,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1197
1198
|
pointerEvents: "none"
|
|
1198
1199
|
}
|
|
1199
1200
|
}, [
|
|
1200
|
-
|
|
1201
|
+
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
1201
1202
|
], 8, ya)) : A("", !0),
|
|
1202
1203
|
g("defs", null, [
|
|
1203
1204
|
(u(!0), r(T, null, _($t.value, (l, o) => (u(), r("radialGradient", {
|
|
@@ -1210,7 +1211,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1210
1211
|
}, null, -1)),
|
|
1211
1212
|
g("stop", {
|
|
1212
1213
|
offset: `${(1 - me.value / kt.value[o]) * 100}%`,
|
|
1213
|
-
"stop-color":
|
|
1214
|
+
"stop-color": v(Yl)("#FFFFFF", 0),
|
|
1214
1215
|
"stop-opacity": "0"
|
|
1215
1216
|
}, null, 8, ma),
|
|
1216
1217
|
g("stop", {
|
|
@@ -1299,7 +1300,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1299
1300
|
(u(!0), r(T, null, _(l.donut, (a, n) => (u(), r("g", null, [
|
|
1300
1301
|
n === 0 && p.value.width && p.value.height ? (u(), r("text", {
|
|
1301
1302
|
key: 0,
|
|
1302
|
-
class:
|
|
1303
|
+
class: Z({ animated: e.value.useCssAnimation }),
|
|
1303
1304
|
"text-anchor": "middle",
|
|
1304
1305
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1305
1306
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
@@ -1312,24 +1313,24 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1312
1313
|
"text-anchor": "middle",
|
|
1313
1314
|
method: "align",
|
|
1314
1315
|
spacing: "auto"
|
|
1315
|
-
},
|
|
1316
|
+
}, E(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? v(Bt)({
|
|
1316
1317
|
source: l.name,
|
|
1317
1318
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1318
|
-
}) : l.name), 9,
|
|
1319
|
-
], 10,
|
|
1319
|
+
}) : l.name), 9, Oa)
|
|
1320
|
+
], 10, Ia)) : A("", !0)
|
|
1320
1321
|
]))), 256))
|
|
1321
1322
|
]))), 256)) : (u(!0), r(T, { key: 1 }, _(J.value, (l, o) => (u(), r("g", null, [
|
|
1322
1323
|
(u(!0), r(T, null, _(l.donut, (a, n) => (u(), r("g", null, [
|
|
1323
1324
|
n === 0 && p.value.width && p.value.height ? (u(), r("text", {
|
|
1324
1325
|
key: 0,
|
|
1325
|
-
class:
|
|
1326
|
+
class: Z({ animated: e.value.useCssAnimation }),
|
|
1326
1327
|
x: p.value.width / 2,
|
|
1327
1328
|
y: a.startY - e.value.style.chart.layout.labels.dataLabels.fontSize + e.value.style.chart.layout.labels.dataLabels.donutNameOffsetY,
|
|
1328
1329
|
"text-anchor": "middle",
|
|
1329
1330
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1330
1331
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
1331
1332
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
1332
|
-
},
|
|
1333
|
+
}, E(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? v(Bt)({
|
|
1333
1334
|
source: l.name,
|
|
1334
1335
|
length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
|
|
1335
1336
|
}) : l.name), 11, Fa)) : A("", !0)
|
|
@@ -1342,15 +1343,15 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1342
1343
|
filter: xt(a, n)
|
|
1343
1344
|
}, [
|
|
1344
1345
|
Nt(g("text", {
|
|
1345
|
-
class:
|
|
1346
|
+
class: Z({ animated: e.value.useCssAnimation }),
|
|
1346
1347
|
opacity: Lt(a) ? 1 : 0,
|
|
1347
|
-
"text-anchor":
|
|
1348
|
-
x:
|
|
1348
|
+
"text-anchor": v(Le)(a, !0).anchor,
|
|
1349
|
+
x: v(Le)(
|
|
1349
1350
|
a,
|
|
1350
1351
|
!1,
|
|
1351
1352
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1352
1353
|
).x || 0,
|
|
1353
|
-
y:
|
|
1354
|
+
y: v(Et)(
|
|
1354
1355
|
a,
|
|
1355
1356
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1356
1357
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1358,8 +1359,8 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1358
1359
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1359
1360
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1360
1361
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldPercentage ? "bold" : "normal"
|
|
1361
|
-
},
|
|
1362
|
-
|
|
1362
|
+
}, E(v(Ut)(
|
|
1363
|
+
v(D)({
|
|
1363
1364
|
v: a.proportion * 100,
|
|
1364
1365
|
s: "%",
|
|
1365
1366
|
r: e.value.style.chart.layout.labels.dataLabels.roundingPercentage
|
|
@@ -1370,15 +1371,15 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1370
1371
|
[Vt, L.value.dataLabels.show && e.value.style.chart.layout.labels.dataLabels.showPercentage]
|
|
1371
1372
|
]),
|
|
1372
1373
|
Nt(g("text", {
|
|
1373
|
-
class:
|
|
1374
|
+
class: Z({ animated: e.value.useCssAnimation }),
|
|
1374
1375
|
opacity: Lt(a) ? 1 : 0,
|
|
1375
|
-
"text-anchor":
|
|
1376
|
-
x:
|
|
1376
|
+
"text-anchor": v(Le)(a, !0).anchor,
|
|
1377
|
+
x: v(Le)(
|
|
1377
1378
|
a,
|
|
1378
1379
|
!1,
|
|
1379
1380
|
e.value.style.chart.layout.labels.dataLabels.offsetX
|
|
1380
1381
|
).x || 0,
|
|
1381
|
-
y:
|
|
1382
|
+
y: v(Et)(
|
|
1382
1383
|
a,
|
|
1383
1384
|
e.value.style.chart.layout.labels.dataLabels.offsetY,
|
|
1384
1385
|
e.value.style.chart.layout.labels.dataLabels.offsetY
|
|
@@ -1386,11 +1387,11 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1386
1387
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? a.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
1387
1388
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1388
1389
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
1389
|
-
},
|
|
1390
|
-
|
|
1390
|
+
}, E(v(Ut)(
|
|
1391
|
+
v(Ae)(
|
|
1391
1392
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
1392
1393
|
a.value,
|
|
1393
|
-
|
|
1394
|
+
v(D)({
|
|
1394
1395
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1395
1396
|
v: a.value,
|
|
1396
1397
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1411,33 +1412,33 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1411
1412
|
g("path", {
|
|
1412
1413
|
d: a.arcSlice,
|
|
1413
1414
|
fill: ne.value === a.id ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1414
|
-
onMouseenter: (
|
|
1415
|
+
onMouseenter: (d) => At({
|
|
1415
1416
|
datapoint: a,
|
|
1416
|
-
relativeIndex:
|
|
1417
|
+
relativeIndex: F.value.findIndex((c) => c.id === a.id),
|
|
1417
1418
|
seriesIndex: a.seriesIndex
|
|
1418
1419
|
}),
|
|
1419
|
-
onClick: (
|
|
1420
|
-
onMouseleave: (
|
|
1420
|
+
onClick: (d) => yt({ datapoint: a, index: n, seriesIndex: a.seriesIndex }),
|
|
1421
|
+
onMouseleave: (d) => vl({ datapoint: a, seriesIndex: a.seriesIndex })
|
|
1421
1422
|
}, null, 40, za)
|
|
1422
1423
|
]))), 256))
|
|
1423
1424
|
]))), 256)),
|
|
1424
|
-
|
|
1425
|
+
w(t.$slots, "svg", {
|
|
1425
1426
|
svg: {
|
|
1426
1427
|
...p.value,
|
|
1427
|
-
isPrintingImg:
|
|
1428
|
+
isPrintingImg: v(De) | v(Ne) | ge.value,
|
|
1428
1429
|
isPrintingSvg: ye.value
|
|
1429
1430
|
}
|
|
1430
1431
|
}, void 0, !0)
|
|
1431
1432
|
], 512)
|
|
1432
1433
|
], 46, ga)),
|
|
1433
1434
|
t.$slots.hint ? (u(), r("div", Ba, [
|
|
1434
|
-
|
|
1435
|
+
w(t.$slots, "hint", P(S({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Se.value })), void 0, !0)
|
|
1435
1436
|
])) : A("", !0)
|
|
1436
1437
|
]),
|
|
1437
1438
|
t.$slots.watermark ? (u(), r("div", Ea, [
|
|
1438
|
-
|
|
1439
|
+
w(t.$slots, "watermark", P(S({ isPrinting: v(De) || v(Ne) || ge.value || ye.value })), void 0, !0)
|
|
1439
1440
|
])) : A("", !0),
|
|
1440
|
-
Xe(
|
|
1441
|
+
Xe(v(Xt), {
|
|
1441
1442
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1442
1443
|
show: L.value.showTooltip && se.value,
|
|
1443
1444
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1449,10 +1450,10 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1449
1450
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
1450
1451
|
position: e.value.style.chart.tooltip.position,
|
|
1451
1452
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1452
|
-
parent:
|
|
1453
|
+
parent: M.value,
|
|
1453
1454
|
content: Te.value,
|
|
1454
1455
|
isFullscreen: X.value,
|
|
1455
|
-
isCustom:
|
|
1456
|
+
isCustom: v(Rt)(e.value.style.chart.tooltip.customFormat),
|
|
1456
1457
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1457
1458
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1458
1459
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
@@ -1461,17 +1462,17 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1461
1462
|
a11yPosition: ut.value
|
|
1462
1463
|
}, {
|
|
1463
1464
|
"tooltip-before": y(() => [
|
|
1464
|
-
|
|
1465
|
+
w(t.$slots, "tooltip-before", P(S({ ...Me.value })), void 0, !0)
|
|
1465
1466
|
]),
|
|
1466
1467
|
"tooltip-after": y(() => [
|
|
1467
|
-
|
|
1468
|
+
w(t.$slots, "tooltip-after", P(S({ ...Me.value })), void 0, !0)
|
|
1468
1469
|
]),
|
|
1469
1470
|
_: 3
|
|
1470
1471
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1471
1472
|
g("div", {
|
|
1472
1473
|
id: `legend-bottom-${f.value}`
|
|
1473
1474
|
}, null, 8, Ua),
|
|
1474
|
-
nt.value ? (u(),
|
|
1475
|
+
nt.value ? (u(), V(Nl, {
|
|
1475
1476
|
key: 6,
|
|
1476
1477
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1477
1478
|
}, [
|
|
@@ -1479,32 +1480,32 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1479
1480
|
key: 0,
|
|
1480
1481
|
ref_key: "chartLegend",
|
|
1481
1482
|
ref: _e,
|
|
1482
|
-
class:
|
|
1483
|
+
class: Z({ "vue-ui-nested-donuts-legend": ke.value.length > 1 })
|
|
1483
1484
|
}, [
|
|
1484
|
-
(u(!0), r(T, null, _(ke.value, (l, o) => (u(),
|
|
1485
|
+
(u(!0), r(T, null, _(ke.value, (l, o) => (u(), V(ra, {
|
|
1485
1486
|
key: `legend_${o}_${st.value}`,
|
|
1486
1487
|
legendSet: l,
|
|
1487
1488
|
config: hl.value,
|
|
1488
|
-
isCursorPointer:
|
|
1489
|
+
isCursorPointer: H.value,
|
|
1489
1490
|
onClickMarker: s[0] || (s[0] = ({ legend: a }) => j(a))
|
|
1490
1491
|
}, {
|
|
1491
1492
|
legendTitle: y(({ titleSet: a }) => [
|
|
1492
|
-
a[0] && a[0].arcOf ? (u(), r("div", Ra,
|
|
1493
|
+
a[0] && a[0].arcOf ? (u(), r("div", Ra, E(a[0].arcOf), 1)) : A("", !0)
|
|
1493
1494
|
]),
|
|
1494
1495
|
item: y(({ legend: a, index: n }) => [
|
|
1495
1496
|
g("div", {
|
|
1496
|
-
onClick: (
|
|
1497
|
+
onClick: (d) => j(a),
|
|
1497
1498
|
style: pe(`opacity:${b.value.includes(a.id) ? 0.5 : 1}`)
|
|
1498
|
-
},
|
|
1499
|
+
}, E(a.display), 13, Ga)
|
|
1499
1500
|
]),
|
|
1500
1501
|
legendToggle: y(() => [
|
|
1501
|
-
l.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !
|
|
1502
|
+
l.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !v(be) ? (u(), V(da, {
|
|
1502
1503
|
key: `toggle-${o}`,
|
|
1503
1504
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1504
1505
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
1505
1506
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
1506
1507
|
checked: l.some((a) => b.value.includes(a.id)),
|
|
1507
|
-
isCursorPointer:
|
|
1508
|
+
isCursorPointer: H.value,
|
|
1508
1509
|
onToggle: (a) => il(l)
|
|
1509
1510
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer", "onToggle"])) : A("", !0)
|
|
1510
1511
|
]),
|
|
@@ -1517,7 +1518,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1517
1518
|
ref_key: "chartLegend",
|
|
1518
1519
|
ref: _e
|
|
1519
1520
|
}, [
|
|
1520
|
-
|
|
1521
|
+
w(t.$slots, "legend", { legend: ke.value }, void 0, !0)
|
|
1521
1522
|
], 512)),
|
|
1522
1523
|
t.$slots.source ? (u(), r("div", {
|
|
1523
1524
|
key: 8,
|
|
@@ -1525,15 +1526,15 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1525
1526
|
ref: tt,
|
|
1526
1527
|
dir: "auto"
|
|
1527
1528
|
}, [
|
|
1528
|
-
|
|
1529
|
+
w(t.$slots, "source", {}, void 0, !0)
|
|
1529
1530
|
], 512)) : A("", !0),
|
|
1530
|
-
xe.value && e.value.userOptions.buttons.table ? (u(),
|
|
1531
|
+
xe.value && e.value.userOptions.buttons.table ? (u(), V(Vl(ce.value.component), Ml({ key: 9 }, ce.value.props, {
|
|
1531
1532
|
ref_key: "tableUnit",
|
|
1532
1533
|
ref: re,
|
|
1533
1534
|
onClose: St
|
|
1534
1535
|
}), Dt({
|
|
1535
1536
|
content: y(() => [
|
|
1536
|
-
(u(),
|
|
1537
|
+
(u(), V(v(jt), {
|
|
1537
1538
|
key: `table_${ot.value}`,
|
|
1538
1539
|
colNames: ae.value.colNames,
|
|
1539
1540
|
head: ae.value.head,
|
|
@@ -1541,7 +1542,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1541
1542
|
config: ae.value.config,
|
|
1542
1543
|
title: e.value.table.useDialog ? "" : ce.value.title,
|
|
1543
1544
|
withCloseButton: !e.value.table.useDialog,
|
|
1544
|
-
isCursorPointer:
|
|
1545
|
+
isCursorPointer: H.value,
|
|
1545
1546
|
onClose: St
|
|
1546
1547
|
}, {
|
|
1547
1548
|
th: y(({ th: l }) => [
|
|
@@ -1551,7 +1552,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1551
1552
|
}, null, 8, Ya)
|
|
1552
1553
|
]),
|
|
1553
1554
|
td: y(({ td: l }) => [
|
|
1554
|
-
Mt(
|
|
1555
|
+
Mt(E(l.name || l), 1)
|
|
1555
1556
|
]),
|
|
1556
1557
|
_: 1
|
|
1557
1558
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
@@ -1561,7 +1562,7 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1561
1562
|
e.value.table.useDialog ? {
|
|
1562
1563
|
name: "title",
|
|
1563
1564
|
fn: y(() => [
|
|
1564
|
-
Mt(
|
|
1565
|
+
Mt(E(ce.value.title), 1)
|
|
1565
1566
|
]),
|
|
1566
1567
|
key: "0"
|
|
1567
1568
|
} : void 0,
|
|
@@ -1572,9 +1573,9 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1572
1573
|
tabindex: "0",
|
|
1573
1574
|
class: "vue-ui-user-options-button",
|
|
1574
1575
|
onClick: s[1] || (s[1] = (l) => ze(e.value.userOptions.callbacks.csv)),
|
|
1575
|
-
style: pe({ cursor:
|
|
1576
|
+
style: pe({ cursor: H.value ? "pointer" : "default" })
|
|
1576
1577
|
}, [
|
|
1577
|
-
Xe(
|
|
1578
|
+
Xe(v(Ht), {
|
|
1578
1579
|
name: "fileCsv",
|
|
1579
1580
|
stroke: ce.value.props.color
|
|
1580
1581
|
}, null, 8, ["stroke"])
|
|
@@ -1583,12 +1584,12 @@ const va = ["id"], ha = ["id"], fa = ["id"], pa = { style: { position: "relative
|
|
|
1583
1584
|
key: "1"
|
|
1584
1585
|
} : void 0
|
|
1585
1586
|
]), 1040)) : A("", !0),
|
|
1586
|
-
|
|
1587
|
-
|
|
1587
|
+
w(t.$slots, "skeleton", {}, () => [
|
|
1588
|
+
v(be) ? (u(), V(Zl, { key: 0 })) : A("", !0)
|
|
1588
1589
|
], !0)
|
|
1589
1590
|
], 46, va));
|
|
1590
1591
|
}
|
|
1591
|
-
}, vo = /* @__PURE__ */ ca(Wa, [["__scopeId", "data-v-
|
|
1592
|
+
}, vo = /* @__PURE__ */ ca(Wa, [["__scopeId", "data-v-37af710e"]]);
|
|
1592
1593
|
export {
|
|
1593
1594
|
vo as default
|
|
1594
1595
|
};
|