vue-data-ui 3.16.0 → 3.16.2
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/README.md +1 -1
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-C4NWSOC8.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-DFEJxVok.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-TFhzm8cr.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-C67ZVh2l.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-LoAIeIFd.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-BCarORO1.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DJdFQLah.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-ChXrvtSj.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-DPYfcD5f.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-COQHkRXy.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-DT50sM_h.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-KgnoG_o8.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-BNET87VV.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-Di_HG3jq.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-CybP0Vom.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Ba-5TQ3a.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-64u0LX-J.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-Qy_lKcLT.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-HoOfjAv9.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-DByHtveP.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-DbD8-S5s.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-C9F0Fva2.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-Bn-_i_L8.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-D2mUKXiE.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-gLY-fZmR.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-JWCz3Dsa.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-B58pqRYq.js} +438 -437
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-CXeBMtyK.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-CbadY7E8.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-3bJn1U3y.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-BbuQH4SB.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-78rfipI0.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-BW8kfcgB.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-Cq1Ij3or.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DDq7LxP3.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-CL5dq6Ph.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-ZsHgSA93.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CnRlC_w1.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-pMBjF5ps.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-D_1tBt3O.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-Ber3eG5N.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-DUz9LWxF.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-DRjnVH0Z.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DHinf-33.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-D-jZIHxA.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-CtRskCcH.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-gslNTicq.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-D5JI4liZ.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-BWvPiDVJ.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-BW1hOsyh.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DOE47Jpg.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-DwIOn22D.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-Dk8PXXJX.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-CcYyxhEU.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-Ch-cO4qI.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-Cflb1VOc.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-JuTN5MhL.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-BzXCA7Wf.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-C4k5LTYe.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-_1e3qZ-5.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-DF2i7jxF.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,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { defineAsyncComponent as W, ref as c, shallowRef as Tt, computed as y, onMounted as zl, toRefs as Tl, nextTick as ge, watch as fe, watchEffect as Pt, onBeforeUnmount as Pl, openBlock as u, createElementBlock as r, unref as v, normalizeStyle as Z, normalizeClass as E, createElementVNode as x, toDisplayString as w, createBlock as $, createCommentVNode as h, withCtx as b, renderSlot as k, normalizeProps as I, guardReactiveProps as D, createSlots as It, createVNode as Dt, Fragment as z, renderList as T, Teleport as Il, resolveDynamicComponent as Dl, mergeProps as Ol, createTextVNode as He } from "vue";
|
|
2
2
|
import { j as Ot, o as Nt, q as be, r as Nl, t as Et, m as El, p as me, n as Fl, s as We, a8 as Rl, a9 as Ft, D as Vl, a4 as Xe, k as Ge, l as pe, X as Ml, u as ne, aa as Bl, Z as Ul, a5 as Hl, a6 as Wl, a7 as Rt, a0 as Xl, a1 as Gl, ab as Vt, ac as Yl } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as Mt, u as jl } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as ql } from "./useConfig-DO94Aj5s.js";
|
|
@@ -19,7 +19,7 @@ import { S as ia } from "./Slicer-DUycDH_N.js";
|
|
|
19
19
|
import { A as ca } from "./A11yDataTable-KcVAX2cP.js";
|
|
20
20
|
import { B as va } from "./BaseLegendToggle-BQVIawmA.js";
|
|
21
21
|
import { _ as da } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
|
-
const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative" } }, ba = ["xmlns", "aria-describedby", "viewBox"], ma = ["x", "y", "width", "height"], pa = ["id"], xa = ["stop-color"], ka = ["stop-color"], Ca = ["id"], wa = ["stop-color"], Aa = ["stop-color"], La = ["stop-color"], Sa = { key: 1 }, _a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], za = { key: 0 }, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["font-size", "fill", "transform"],
|
|
22
|
+
const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative" } }, ba = ["xmlns", "aria-describedby", "viewBox"], ma = ["x", "y", "width", "height"], pa = ["id"], xa = ["stop-color"], ka = ["stop-color"], Ca = ["id"], wa = ["stop-color"], Aa = ["stop-color"], La = ["stop-color"], Sa = { key: 1 }, _a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], za = { key: 0 }, Ta = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pa = ["font-size", "fill", "transform"], Ia = ["x", "y", "font-size", "fill"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Oa = ["x", "y", "font-size", "fill", "font-weight"], Na = { key: 0 }, Ea = ["text-anchor", "font-size", "fill", "transform"], Fa = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = { key: 1 }, Ma = ["cx", "cy", "r", "fill"], Ba = { key: 0 }, Ua = { key: 0 }, Ha = ["d", "stroke"], Wa = ["text-anchor", "x", "y", "fill"], Xa = ["cx", "cy", "r", "fill"], Ga = { key: 0 }, Ya = ["cx", "cy", "fill"], ja = { key: 1 }, qa = ["d", "fill", "stroke"], Ka = { key: 2 }, Za = ["d", "fill", "stroke"], Ja = ["x", "y", "font-size", "fill"], Qa = ["x", "y", "width", "height", "fill"], eo = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], to = {
|
|
23
23
|
key: 0,
|
|
24
24
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
25
25
|
"data-dom-to-png-ignore": "",
|
|
@@ -45,7 +45,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["selectLegend", "copyAlt"],
|
|
47
47
|
setup(Bt, { expose: Ut, emit: Ht }) {
|
|
48
|
-
const Wt =
|
|
48
|
+
const Wt = W(() => import("./vue-ui-accordion-nvggWcGN.js")), Xt = W(() => import("./BaseIcon-Cb3zzG6s.js")), Gt = W(() => import("./DataTable-DT2kIdQ6.js")), Yt = W(() => import("./PackageVersion-C4NWSOC8.js")), jt = W(() => import("./PenAndPaper-Ct3qJ4lA.js")), qt = W(() => import("./UserOptions-rW2fRf3V.js")), Kt = W(() => import("./vue-ui-donut-Ba-5TQ3a.js")), je = W(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_donut_evolution: Zt } = ql(), { isThemeValid: Jt, warnInvalidTheme: Qt } = ta(), S = Bt, _ = c(Ot()), C = c([]), m = c(null), q = c(null), xe = c(!1), X = c(null), F = c(null), el = c(null), qe = c(0), Ke = c(0), Ze = c(0), Je = c(0), Qe = c(0), ke = c(null), se = c(null), Ce = c(null), we = c(null), et = c(!1), J = c(null), Ae = c(null), re = c(!1), ie = c(!1), tt = c(null), lt = c(null), at = c(null), ot = c(null), ut = c(null), Le = c(!1), Q = Tt(null), ce = Tt(null), nt = c(null), R = c(null), Se = c(!1), _e = Ht, st = y(() => !!S.dataset && S.dataset.length);
|
|
49
49
|
zl(() => {
|
|
50
50
|
et.value = !0, rt();
|
|
51
51
|
});
|
|
@@ -81,15 +81,15 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
81
81
|
source: at.value
|
|
82
82
|
});
|
|
83
83
|
requestAnimationFrame(() => {
|
|
84
|
-
|
|
84
|
+
K.value.width = a, K.value.height = l - 12, clearTimeout(nt.value), nt.value = setTimeout(() => {
|
|
85
85
|
Le.value = !0;
|
|
86
86
|
}, 10);
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
|
-
|
|
89
|
+
Q.value && (ce.value && Q.value.unobserve(ce.value), Q.value.disconnect()), Q.value = new ResizeObserver(t), ce.value = F.value.parentNode, Q.value.observe(ce.value);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
const e = c(
|
|
92
|
+
const e = c(Ie()), V = y(() => e.value.userOptions.useCursorPointer), tl = y(() => Et({
|
|
93
93
|
defaultConfig: {
|
|
94
94
|
useCssAnimation: !1,
|
|
95
95
|
table: { show: !1 },
|
|
@@ -136,7 +136,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
136
136
|
})), { loading: $e, FINAL_DATASET: ze, manualLoading: de } = Zl({
|
|
137
137
|
...Tl(S),
|
|
138
138
|
FINAL_CONFIG: e,
|
|
139
|
-
prepareConfig:
|
|
139
|
+
prepareConfig: Ie,
|
|
140
140
|
callback: () => {
|
|
141
141
|
Promise.resolve().then(async () => {
|
|
142
142
|
await Te();
|
|
@@ -163,7 +163,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
163
163
|
defaultConfig: e.value,
|
|
164
164
|
userConfig: tl.value
|
|
165
165
|
})
|
|
166
|
-
}),
|
|
166
|
+
}), K = c({
|
|
167
167
|
width: e.value.style.chart.layout.width,
|
|
168
168
|
height: e.value.style.chart.layout.height
|
|
169
169
|
}), it = y(() => Math.max(...ze.value.map((t) => t.values.length))), g = c({
|
|
@@ -176,17 +176,17 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
176
176
|
async function Te() {
|
|
177
177
|
await ge(), await ge();
|
|
178
178
|
const { startIndex: t, endIndex: a } = e.value.style.chart.zoom, l = ot.value;
|
|
179
|
-
g.value = { start: 0, max:
|
|
179
|
+
g.value = { start: 0, max: N.value }, (t != null || a != null) && l ? (t != null ? l.setStartValue(t) : (g.value.start = 0, l.setStartValue(0)), a != null ? l.setEndValue(ll(a + 1)) : (g.value.end = N.value, l.setEndValue(N.value))) : (g.value = {
|
|
180
180
|
start: 0,
|
|
181
|
-
end:
|
|
181
|
+
end: N.value
|
|
182
182
|
}, Ke.value += 1);
|
|
183
183
|
}
|
|
184
184
|
function ll(t) {
|
|
185
|
-
const a =
|
|
185
|
+
const a = N.value;
|
|
186
186
|
return t > a ? a : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
187
187
|
}
|
|
188
|
-
const { userOptionsVisible: Pe, setUserOptionsVisibility: vt, keepUserOptionState: dt } = la({ config: e.value }), { svgRef:
|
|
189
|
-
function
|
|
188
|
+
const { userOptionsVisible: Pe, setUserOptionsVisibility: vt, keepUserOptionState: dt } = la({ config: e.value }), { svgRef: ee } = aa({ config: e.value.style.chart.title });
|
|
189
|
+
function Ie() {
|
|
190
190
|
const t = Ye({
|
|
191
191
|
userConfig: S.config,
|
|
192
192
|
defaultConfig: Zt
|
|
@@ -214,23 +214,23 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
214
214
|
return a;
|
|
215
215
|
}
|
|
216
216
|
fe(() => S.config, (t) => {
|
|
217
|
-
$e.value || (e.value =
|
|
217
|
+
$e.value || (e.value = Ie()), Pe.value = !e.value.userOptions.showOnChartHover, rt(), Ze.value += 1, Je.value += 1, Qe.value += 1, G.value.showTable = e.value.table.show;
|
|
218
218
|
}, { deep: !0 }), fe(() => S.dataset, (t) => {
|
|
219
219
|
Array.isArray(t) && t.length > 0 && (de.value = !1), ct();
|
|
220
220
|
}, { deep: !0 });
|
|
221
|
-
const { isPrinting:
|
|
221
|
+
const { isPrinting: De, isImaging: Oe, generatePdf: ht, generateImage: yt } = Kl({
|
|
222
222
|
elementId: _.value,
|
|
223
223
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
224
224
|
options: e.value.userOptions.print
|
|
225
|
-
}), al = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ol = y(() => Fl(e.value.customPalette)),
|
|
225
|
+
}), al = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ol = y(() => Fl(e.value.customPalette)), G = c({
|
|
226
226
|
showTable: e.value.table.show
|
|
227
227
|
});
|
|
228
228
|
fe(e, () => {
|
|
229
|
-
|
|
229
|
+
G.value = {
|
|
230
230
|
showTable: e.value.table.show
|
|
231
231
|
};
|
|
232
232
|
}, { immediate: !0 });
|
|
233
|
-
const
|
|
233
|
+
const Y = y(() => ({
|
|
234
234
|
top: e.value.style.chart.layout.padding.top,
|
|
235
235
|
right: e.value.style.chart.layout.padding.right,
|
|
236
236
|
bottom: e.value.style.chart.layout.padding.bottom,
|
|
@@ -238,9 +238,9 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
238
238
|
}));
|
|
239
239
|
function ul() {
|
|
240
240
|
let t = 0;
|
|
241
|
-
ke.value && (t = Array.from(ke.value.querySelectorAll("text")).reduce((n,
|
|
242
|
-
const
|
|
243
|
-
return
|
|
241
|
+
ke.value && (t = Array.from(ke.value.querySelectorAll("text")).reduce((n, s) => {
|
|
242
|
+
const f = s.getComputedTextLength();
|
|
243
|
+
return f > n ? f : n;
|
|
244
244
|
}, 0));
|
|
245
245
|
const a = we.value ? we.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
246
246
|
return t + a + 5;
|
|
@@ -264,20 +264,20 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
264
264
|
let a = 0;
|
|
265
265
|
return se.value && (a = Ne.value), t + a + e.value.style.chart.layout.grid.axis.fontSize + e.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
266
266
|
}), i = y(() => {
|
|
267
|
-
const t = ul(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l =
|
|
267
|
+
const t = ul(), a = e.value.style.chart.layout.dataLabels.fontSize * 3, l = K.value.width, o = K.value.height, n = Y.value.left + t, s = l - Y.value.right, f = l - n - Y.value.right, d = o - Y.value.top - Y.value.bottom - a - gt.value, P = Y.value.top + a, U = o - Y.value.bottom - gt.value;
|
|
268
268
|
return {
|
|
269
|
-
top:
|
|
269
|
+
top: P,
|
|
270
270
|
left: n,
|
|
271
|
-
right:
|
|
272
|
-
bottom:
|
|
271
|
+
right: s,
|
|
272
|
+
bottom: U,
|
|
273
273
|
absoluteHeight: o,
|
|
274
274
|
absoluteWidth: l,
|
|
275
|
-
centerX: n + Math.max(10,
|
|
276
|
-
centerY:
|
|
277
|
-
width: Math.max(10,
|
|
275
|
+
centerX: n + Math.max(10, f) / 2,
|
|
276
|
+
centerY: P + Math.max(10, d) / 2,
|
|
277
|
+
width: Math.max(10, f),
|
|
278
278
|
height: Math.max(10, d)
|
|
279
279
|
};
|
|
280
|
-
}),
|
|
280
|
+
}), O = y(() => (ze.value.forEach((t, a) => {
|
|
281
281
|
[null, void 0].includes(t.name) && be({
|
|
282
282
|
componentName: "VueUiDonutEvolution",
|
|
283
283
|
type: "datasetSerieAttribute",
|
|
@@ -297,17 +297,17 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
297
297
|
color: We(t.color) || ol.value[a] || me[a] || me[a % me.length],
|
|
298
298
|
length: (t.values || []).length,
|
|
299
299
|
uid: Ot()
|
|
300
|
-
})))), he = y(() =>
|
|
300
|
+
})))), he = y(() => O.value.filter((t) => !C.value.includes(t.uid)).map((t) => ({
|
|
301
301
|
...t,
|
|
302
302
|
values: t.values.filter((a, l) => l >= g.value.start && l <= g.value.end)
|
|
303
|
-
}))),
|
|
303
|
+
}))), N = y(() => Math.max(...O.value.map((t) => t.length))), A = c([]);
|
|
304
304
|
let ft = 0;
|
|
305
305
|
Pt(() => {
|
|
306
306
|
const t = ++ft;
|
|
307
307
|
(async () => {
|
|
308
308
|
const a = await ea({
|
|
309
309
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
310
|
-
maxDatapoints:
|
|
310
|
+
maxDatapoints: N.value,
|
|
311
311
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
312
312
|
start: g.value.start,
|
|
313
313
|
end: g.value.end
|
|
@@ -318,13 +318,13 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
318
318
|
const L = y(() => i.value.width / (g.value.end - g.value.start)), ye = y(() => {
|
|
319
319
|
const t = [];
|
|
320
320
|
for (let a = 0; a < g.value.end - g.value.start; a += 1) {
|
|
321
|
-
const l = he.value.map((d) => d.values[a] ?? null), o = l.filter((d) => [void 0, null].includes(d)).length === l.length, n = l.reduce((d,
|
|
321
|
+
const l = he.value.map((d) => d.values[a] ?? null), o = l.filter((d) => [void 0, null].includes(d)).length === l.length, n = l.reduce((d, P) => d + P, 0), s = l.map((d) => d / n), f = i.value.left + L.value * a + L.value / 2;
|
|
322
322
|
t.push({
|
|
323
323
|
index: a,
|
|
324
|
-
percentages:
|
|
324
|
+
percentages: s,
|
|
325
325
|
subtotal: o || n < 0 ? null : n,
|
|
326
326
|
values: l,
|
|
327
|
-
x:
|
|
327
|
+
x: f
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
return t;
|
|
@@ -345,23 +345,23 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
345
345
|
const sl = y(() => M.value.ticks.map((t) => ({
|
|
346
346
|
y: i.value.bottom - i.value.height * bt(t),
|
|
347
347
|
value: t
|
|
348
|
-
}))),
|
|
348
|
+
}))), p = y(() => {
|
|
349
349
|
const t = ye.value, a = Math.max(...t.map((l) => l.subtotal));
|
|
350
350
|
return t.length === 1 && a * 2, t.map((l, o) => {
|
|
351
|
-
const n = Math.min(i.value.width / 24, L.value / 2 * 0.7),
|
|
352
|
-
color:
|
|
353
|
-
name:
|
|
354
|
-
value:
|
|
355
|
-
})).toSorted((
|
|
351
|
+
const n = Math.min(i.value.width / 24, L.value / 2 * 0.7), s = n > i.value.width / 16 ? i.value.width / 16 : n, f = m.value === l.index ? i.value.width / 16 : s, d = t.length > 4 ? n * 2 : n * 2 > L.value / 2 * 0.7 ? L.value / 2 * 0.7 : n * 2, P = i.value.bottom - i.value.height * bt(l.subtotal), U = he.value.map((H) => ({
|
|
352
|
+
color: H.color,
|
|
353
|
+
name: H.name,
|
|
354
|
+
value: H.values[o] ?? 0
|
|
355
|
+
})).toSorted((H, $l) => $l.value - H.value);
|
|
356
356
|
return {
|
|
357
357
|
...l,
|
|
358
|
-
y:
|
|
359
|
-
radius:
|
|
360
|
-
activeRadius:
|
|
358
|
+
y: P,
|
|
359
|
+
radius: s,
|
|
360
|
+
activeRadius: f,
|
|
361
361
|
hoverRadius: d,
|
|
362
|
-
donut: Xe({ series:
|
|
363
|
-
donutHover: Xe({ series:
|
|
364
|
-
donutFocus: Xe({ series:
|
|
362
|
+
donut: Xe({ series: U }, l.x, P, s, s, 1.99999, 2, 1, 360, 105.25, s / 2),
|
|
363
|
+
donutHover: Xe({ series: U }, l.x, P, d, d, 1.99999, 2, 1, 360, 105.25, d / 2),
|
|
364
|
+
donutFocus: Xe({ series: U }, i.value.centerX, i.value.centerY, i.value.height / 3.6, i.value.height / 3.6, 1.99999, 2, 1, 360, 105.25, i.value.height / 6)
|
|
365
365
|
};
|
|
366
366
|
});
|
|
367
367
|
});
|
|
@@ -382,16 +382,16 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
382
382
|
return isNaN(t.value / Vt(a, "value")) ? 0 : (t.value / Vt(a, "value") * 100).toFixed(0) + "%";
|
|
383
383
|
}
|
|
384
384
|
function mt(t) {
|
|
385
|
-
m.value = null,
|
|
385
|
+
m.value = null, q.value = null, R.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + g.value.start });
|
|
386
386
|
}
|
|
387
387
|
function pt(t) {
|
|
388
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + g.value.start }), m.value = t.index,
|
|
388
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + g.value.start }), m.value = t.index, q.value = t, R.value = t.index;
|
|
389
389
|
}
|
|
390
|
-
const
|
|
390
|
+
const te = c(null);
|
|
391
391
|
function Re(t, a) {
|
|
392
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + g.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (
|
|
392
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + g.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (q.value = null, m.value = null, xe.value = !0, X.value = t, yl(t), [null, void 0].includes(a) || (te.value = a));
|
|
393
393
|
}
|
|
394
|
-
const
|
|
394
|
+
const le = y(() => O.value.map((t, a) => ({
|
|
395
395
|
name: t.name,
|
|
396
396
|
value: t.values.slice(g.value.start, g.value.end).reduce((l, o) => l + o, 0),
|
|
397
397
|
shape: "circle",
|
|
@@ -400,7 +400,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
400
400
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
401
401
|
...t,
|
|
402
402
|
opacity: C.value.includes(t.uid) ? 0.5 : 1,
|
|
403
|
-
segregate: () =>
|
|
403
|
+
segregate: () => ae(t.uid),
|
|
404
404
|
isSegregated: C.value.includes(t.uid),
|
|
405
405
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Ge(
|
|
406
406
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
@@ -417,7 +417,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
417
417
|
s: "%",
|
|
418
418
|
r: e.value.style.chart.legend.roundingPercentage
|
|
419
419
|
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
420
|
-
}))), xt = y(() =>
|
|
420
|
+
}))), xt = y(() => p.value.map((t) => t.subtotal).reduce((t, a) => t + a, 0)), il = y(() => ({
|
|
421
421
|
cy: "donut-div-legend",
|
|
422
422
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
423
423
|
color: e.value.style.chart.legend.color,
|
|
@@ -426,47 +426,47 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
426
426
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
427
427
|
}));
|
|
428
428
|
function cl() {
|
|
429
|
-
C.value.length ? C.value = [] :
|
|
429
|
+
C.value.length ? C.value = [] : le.value.forEach((t) => {
|
|
430
430
|
C.value.push(t.uid);
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function ae(t) {
|
|
434
434
|
if (C.value.includes(t))
|
|
435
435
|
C.value = C.value.filter((a) => a !== t), _e("selectLegend", he.value);
|
|
436
436
|
else {
|
|
437
|
-
if (C.value.length ===
|
|
437
|
+
if (C.value.length === O.value.length - 1) return;
|
|
438
438
|
C.value.push(t), _e("selectLegend", he.value);
|
|
439
439
|
}
|
|
440
|
-
|
|
440
|
+
X.value && Re(p.value.find((a, l) => l === te.value));
|
|
441
441
|
}
|
|
442
442
|
function kt(t) {
|
|
443
|
-
if (!
|
|
443
|
+
if (!O.value.length)
|
|
444
444
|
return e.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null;
|
|
445
|
-
const a =
|
|
445
|
+
const a = O.value.find((l) => l.name === t);
|
|
446
446
|
return a || (e.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${t}"`), null);
|
|
447
447
|
}
|
|
448
448
|
function vl(t) {
|
|
449
449
|
const a = kt(t);
|
|
450
|
-
a !== null && C.value.includes(a.uid) &&
|
|
450
|
+
a !== null && C.value.includes(a.uid) && ae(a.uid);
|
|
451
451
|
}
|
|
452
452
|
function dl(t) {
|
|
453
453
|
const a = kt(t);
|
|
454
|
-
a !== null && (C.value.includes(a.uid) ||
|
|
454
|
+
a !== null && (C.value.includes(a.uid) || ae(a.uid));
|
|
455
455
|
}
|
|
456
456
|
const B = y(() => {
|
|
457
|
-
const t = [""].concat(
|
|
458
|
-
name:
|
|
459
|
-
color:
|
|
457
|
+
const t = [""].concat(O.value.filter((s) => !C.value.includes(s.uid)).map((s) => ({
|
|
458
|
+
name: s.name,
|
|
459
|
+
color: s.color
|
|
460
460
|
}))).concat(["Σ"]);
|
|
461
461
|
let a = [];
|
|
462
|
-
for (let
|
|
463
|
-
const
|
|
464
|
-
a.push([A.value[
|
|
465
|
-
value: d.values[
|
|
466
|
-
percentage: d.values[
|
|
467
|
-
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(
|
|
462
|
+
for (let s = 0; s < N.value; s += 1) {
|
|
463
|
+
const f = O.value.filter((d) => !C.value.includes(d.uid)).map((d) => d.values[s] ?? 0).reduce((d, P) => d + P, 0);
|
|
464
|
+
a.push([A.value[s] ? A.value[s].text : "-"].concat(O.value.filter((d) => !C.value.includes(d.uid)).map((d) => ({
|
|
465
|
+
value: d.values[s] ?? 0,
|
|
466
|
+
percentage: d.values[s] ? d.values[s] / f * 100 : 0
|
|
467
|
+
}))).concat([`${e.value.style.chart.layout.dataLabels.prefix}${Number(f.toFixed(e.value.table.td.roundingValue))}${e.value.style.chart.layout.dataLabels.suffix}`]));
|
|
468
468
|
}
|
|
469
|
-
const l = a.map((
|
|
469
|
+
const l = a.map((s) => s.map((f, d) => d === 0 || d === s.length - 1 ? f : `${Fe(f.value ?? 0, null, d)} (${f.percentage.toFixed(1)}%)`)), o = {
|
|
470
470
|
th: {
|
|
471
471
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
472
472
|
color: e.value.table.th.color,
|
|
@@ -480,28 +480,28 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
480
480
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
481
481
|
}, n = [
|
|
482
482
|
e.value.table.columnNames.period
|
|
483
|
-
].concat(
|
|
483
|
+
].concat(O.value.filter((s) => !C.value.includes(s.uid)).map((s) => s.name)).concat(e.value.table.columnNames.total);
|
|
484
484
|
return { head: t, body: a, bodyA11y: l, config: o, colNames: n };
|
|
485
485
|
});
|
|
486
486
|
function hl() {
|
|
487
|
-
return
|
|
487
|
+
return O.value;
|
|
488
488
|
}
|
|
489
489
|
function Ve(t = null) {
|
|
490
490
|
ge(() => {
|
|
491
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...B.value.head.map((
|
|
492
|
-
t ? t(
|
|
491
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...B.value.head.map((f) => f.name ?? f)], o = [...B.value.body.map((f) => f.map((d) => d.value ?? d))], n = a.concat([l]).concat(o), s = Xl(n);
|
|
492
|
+
t ? t(s) : Gl({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const j = c(!1);
|
|
496
496
|
function Ct(t) {
|
|
497
|
-
|
|
497
|
+
j.value = t, qe.value += 1;
|
|
498
498
|
}
|
|
499
499
|
function wt() {
|
|
500
|
-
|
|
500
|
+
G.value.showTable = !G.value.showTable;
|
|
501
501
|
}
|
|
502
|
-
const
|
|
502
|
+
const oe = c(!1);
|
|
503
503
|
function Me() {
|
|
504
|
-
|
|
504
|
+
oe.value = !oe.value;
|
|
505
505
|
}
|
|
506
506
|
function At(t) {
|
|
507
507
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
@@ -520,17 +520,17 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
520
520
|
}
|
|
521
521
|
async function gl({ scale: t = 2 } = {}) {
|
|
522
522
|
if (!F.value) return;
|
|
523
|
-
const { width: a, height: l } = F.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64:
|
|
523
|
+
const { width: a, height: l } = F.value.getBoundingClientRect(), o = a / l, { imageUri: n, base64: s } = await ua({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
524
524
|
return {
|
|
525
525
|
imageUri: n,
|
|
526
|
-
base64:
|
|
526
|
+
base64: s,
|
|
527
527
|
title: e.value.style.chart.title.text,
|
|
528
528
|
width: a,
|
|
529
529
|
height: l,
|
|
530
530
|
aspectRatio: o
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
|
-
const fl = y(() =>
|
|
533
|
+
const fl = y(() => K.value.width), bl = y(() => K.value.height);
|
|
534
534
|
oa({
|
|
535
535
|
timeLabelsEls: se,
|
|
536
536
|
timeLabels: A,
|
|
@@ -543,8 +543,8 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
543
543
|
height: bl,
|
|
544
544
|
rotation: e.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
545
545
|
});
|
|
546
|
-
const
|
|
547
|
-
const t = e.value.table.useDialog && !e.value.table.show, a =
|
|
546
|
+
const ue = y(() => {
|
|
547
|
+
const t = e.value.table.useDialog && !e.value.table.show, a = G.value.showTable;
|
|
548
548
|
return {
|
|
549
549
|
component: t ? je : Wt,
|
|
550
550
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -553,7 +553,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
553
553
|
color: e.value.table.th.color,
|
|
554
554
|
headerColor: e.value.table.th.color,
|
|
555
555
|
headerBg: e.value.table.th.backgroundColor,
|
|
556
|
-
isFullscreen:
|
|
556
|
+
isFullscreen: j.value,
|
|
557
557
|
fullscreenParent: F.value,
|
|
558
558
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
559
559
|
isCursorPointer: V.value
|
|
@@ -574,17 +574,17 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
576
|
});
|
|
577
|
-
fe(() =>
|
|
578
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
577
|
+
fe(() => G.value.showTable, (t) => {
|
|
578
|
+
e.value.table.show || (t && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
579
579
|
});
|
|
580
580
|
function _t() {
|
|
581
|
-
|
|
581
|
+
G.value.showTable = !1, Ae.value && Ae.value.setTableIconState(!1);
|
|
582
582
|
}
|
|
583
|
-
const ml = y(() =>
|
|
583
|
+
const ml = y(() => le.value.map((t) => ({
|
|
584
584
|
...t,
|
|
585
585
|
name: t.display
|
|
586
586
|
}))), pl = y(() => e.value.style.chart.backgroundColor), xl = y(() => e.value.style.chart.legend), kl = y(() => e.value.style.chart.title), { exportSvg: Cl, getSvg: wl } = Ql({
|
|
587
|
-
svg:
|
|
587
|
+
svg: ee,
|
|
588
588
|
title: kl,
|
|
589
589
|
legend: xl,
|
|
590
590
|
legendItems: ml,
|
|
@@ -616,41 +616,42 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
616
616
|
async function zt() {
|
|
617
617
|
if (_e("copyAlt", {
|
|
618
618
|
config: e.value,
|
|
619
|
-
dataset:
|
|
619
|
+
dataset: p.value
|
|
620
620
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
621
621
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
624
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
625
625
|
config: e.value,
|
|
626
|
-
dataset:
|
|
626
|
+
dataset: p.value
|
|
627
627
|
}));
|
|
628
628
|
}
|
|
629
629
|
function Ll() {
|
|
630
630
|
R.value = null, Se.value = !0;
|
|
631
631
|
}
|
|
632
632
|
function Sl() {
|
|
633
|
-
R.value = null, m.value = null,
|
|
633
|
+
R.value = null, m.value = null, q.value = null, Se.value = !1;
|
|
634
634
|
}
|
|
635
635
|
function _l(t) {
|
|
636
|
-
if (!
|
|
636
|
+
if (!ee.value || oe.value || document.activeElement !== ee.value || !p.value.length) return;
|
|
637
637
|
const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", o = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
|
|
638
638
|
if (!a && !l && !o && !n) return;
|
|
639
639
|
if (t.preventDefault(), t.stopPropagation(), n) {
|
|
640
|
-
R.value = null, m.value = null,
|
|
640
|
+
R.value = null, m.value = null, q.value = null;
|
|
641
641
|
return;
|
|
642
642
|
}
|
|
643
643
|
if (o) {
|
|
644
644
|
if (R.value === null) return;
|
|
645
|
-
const
|
|
646
|
-
if (!
|
|
647
|
-
Re(
|
|
645
|
+
const H = p.value[R.value];
|
|
646
|
+
if (!H) return;
|
|
647
|
+
Re(H, R.value);
|
|
648
648
|
return;
|
|
649
649
|
}
|
|
650
|
-
let
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
650
|
+
let s = R.value;
|
|
651
|
+
const f = m.value, d = s !== null && s >= 0 && s < p.value.length, P = f !== null && f >= 0 && f < p.value.length;
|
|
652
|
+
d ? l ? (s += 1, s >= p.value.length && (s = 0)) : a && (s -= 1, s < 0 && (s = p.value.length - 1)) : P ? (s = l ? f + 1 : f - 1, s >= p.value.length && (s = 0), s < 0 && (s = p.value.length - 1)) : l ? s = 0 : s = p.value.length - 1;
|
|
653
|
+
const U = p.value[s];
|
|
654
|
+
U && pt(U);
|
|
654
655
|
}
|
|
655
656
|
const Ue = y(() => {
|
|
656
657
|
const t = B.value?.colNames ?? [], a = B.value?.bodyA11y ?? [];
|
|
@@ -669,20 +670,20 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
669
670
|
toggleAnnotator: Me,
|
|
670
671
|
toggleFullscreen: Ct,
|
|
671
672
|
copyAlt: zt
|
|
672
|
-
}), (t, a) => (u(),
|
|
673
|
+
}), (t, a) => (u(), r("div", {
|
|
673
674
|
ref_key: "donutEvolutionChart",
|
|
674
675
|
ref: F,
|
|
675
|
-
class: E(`vue-data-ui-component vue-ui-donut-evolution ${
|
|
676
|
-
style:
|
|
676
|
+
class: E(`vue-data-ui-component vue-ui-donut-evolution ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
677
|
+
style: Z(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
677
678
|
id: _.value,
|
|
678
679
|
onMouseenter: a[5] || (a[5] = () => v(vt)(!0)),
|
|
679
680
|
onMouseleave: a[6] || (a[6] = () => v(vt)(!1))
|
|
680
681
|
}, [
|
|
681
|
-
|
|
682
|
+
x("div", {
|
|
682
683
|
id: `chart-instructions-${_.value}`,
|
|
683
684
|
class: "sr-only"
|
|
684
685
|
}, [
|
|
685
|
-
|
|
686
|
+
x("p", null, w(e.value.a11y.translations.keyboardNavigation), 1)
|
|
686
687
|
], 8, ya),
|
|
687
688
|
Ue.value?.rows?.length ? (u(), $(ca, {
|
|
688
689
|
key: 0,
|
|
@@ -694,41 +695,41 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
694
695
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : h("", !0),
|
|
695
696
|
e.value.userOptions.buttons.annotator ? (u(), $(v(jt), {
|
|
696
697
|
key: 1,
|
|
697
|
-
svgRef: v(
|
|
698
|
+
svgRef: v(ee),
|
|
698
699
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
699
700
|
color: e.value.style.chart.color,
|
|
700
|
-
active:
|
|
701
|
+
active: oe.value,
|
|
701
702
|
isCursorPointer: V.value,
|
|
702
703
|
onClose: Me
|
|
703
704
|
}, {
|
|
704
|
-
"annotator-action-close":
|
|
705
|
-
|
|
705
|
+
"annotator-action-close": b(() => [
|
|
706
|
+
k(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
706
707
|
]),
|
|
707
|
-
"annotator-action-color":
|
|
708
|
-
|
|
708
|
+
"annotator-action-color": b(({ color: l }) => [
|
|
709
|
+
k(t.$slots, "annotator-action-color", I(D({ color: l })), void 0, !0)
|
|
709
710
|
]),
|
|
710
|
-
"annotator-action-draw":
|
|
711
|
-
|
|
711
|
+
"annotator-action-draw": b(({ mode: l }) => [
|
|
712
|
+
k(t.$slots, "annotator-action-draw", I(D({ mode: l })), void 0, !0)
|
|
712
713
|
]),
|
|
713
|
-
"annotator-action-undo":
|
|
714
|
-
|
|
714
|
+
"annotator-action-undo": b(({ disabled: l }) => [
|
|
715
|
+
k(t.$slots, "annotator-action-undo", I(D({ disabled: l })), void 0, !0)
|
|
715
716
|
]),
|
|
716
|
-
"annotator-action-redo":
|
|
717
|
-
|
|
717
|
+
"annotator-action-redo": b(({ disabled: l }) => [
|
|
718
|
+
k(t.$slots, "annotator-action-redo", I(D({ disabled: l })), void 0, !0)
|
|
718
719
|
]),
|
|
719
|
-
"annotator-action-delete":
|
|
720
|
-
|
|
720
|
+
"annotator-action-delete": b(({ disabled: l }) => [
|
|
721
|
+
k(t.$slots, "annotator-action-delete", I(D({ disabled: l })), void 0, !0)
|
|
721
722
|
]),
|
|
722
723
|
_: 3
|
|
723
724
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : h("", !0),
|
|
724
|
-
al.value ? (u(),
|
|
725
|
+
al.value ? (u(), r("div", {
|
|
725
726
|
key: 2,
|
|
726
727
|
ref_key: "noTitle",
|
|
727
728
|
ref: el,
|
|
728
729
|
class: "vue-data-ui-no-title-space",
|
|
729
730
|
style: "height:36px; width: 100%;background:transparent"
|
|
730
731
|
}, null, 512)) : h("", !0),
|
|
731
|
-
e.value.style.chart.title.text ? (u(),
|
|
732
|
+
e.value.style.chart.title.text ? (u(), r("div", {
|
|
732
733
|
key: 3,
|
|
733
734
|
ref_key: "chartTitle",
|
|
734
735
|
ref: tt,
|
|
@@ -749,7 +750,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
749
750
|
}
|
|
750
751
|
}, null, 8, ["config"]))
|
|
751
752
|
], 544)) : h("", !0),
|
|
752
|
-
|
|
753
|
+
x("div", {
|
|
753
754
|
id: `legend-top-${_.value}`
|
|
754
755
|
}, null, 8, ga),
|
|
755
756
|
e.value.userOptions.show && st.value && (v(dt) || v(Pe)) ? (u(), $(v(qt), {
|
|
@@ -758,7 +759,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
758
759
|
key: `user_options_${qe.value}`,
|
|
759
760
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
760
761
|
color: e.value.style.chart.color,
|
|
761
|
-
isPrinting: v(
|
|
762
|
+
isPrinting: v(De),
|
|
762
763
|
isImaging: v(Oe),
|
|
763
764
|
uid: _.value,
|
|
764
765
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -768,12 +769,12 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
768
769
|
hasTable: e.value.userOptions.buttons.table,
|
|
769
770
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
770
771
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
771
|
-
isFullscreen:
|
|
772
|
+
isFullscreen: j.value,
|
|
772
773
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
773
774
|
chartElement: F.value,
|
|
774
775
|
position: e.value.userOptions.position,
|
|
775
776
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
776
|
-
isAnnotation:
|
|
777
|
+
isAnnotation: oe.value,
|
|
777
778
|
callbacks: e.value.userOptions.callbacks,
|
|
778
779
|
printScale: e.value.userOptions.print.scale,
|
|
779
780
|
tableDialog: e.value.table.useDialog,
|
|
@@ -786,90 +787,90 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
786
787
|
onToggleTable: wt,
|
|
787
788
|
onToggleAnnotator: Me,
|
|
788
789
|
onCopyAlt: zt,
|
|
789
|
-
style:
|
|
790
|
+
style: Z({
|
|
790
791
|
visibility: v(dt) ? v(Pe) ? "visible" : "hidden" : "visible"
|
|
791
792
|
})
|
|
792
|
-
},
|
|
793
|
+
}, It({ _: 2 }, [
|
|
793
794
|
t.$slots.menuIcon ? {
|
|
794
795
|
name: "menuIcon",
|
|
795
|
-
fn:
|
|
796
|
-
|
|
796
|
+
fn: b(({ isOpen: l, color: o }) => [
|
|
797
|
+
k(t.$slots, "menuIcon", I(D({ isOpen: l, color: o })), void 0, !0)
|
|
797
798
|
]),
|
|
798
799
|
key: "0"
|
|
799
800
|
} : void 0,
|
|
800
801
|
t.$slots.optionPdf ? {
|
|
801
802
|
name: "optionPdf",
|
|
802
|
-
fn:
|
|
803
|
-
|
|
803
|
+
fn: b(() => [
|
|
804
|
+
k(t.$slots, "optionPdf", {}, void 0, !0)
|
|
804
805
|
]),
|
|
805
806
|
key: "1"
|
|
806
807
|
} : void 0,
|
|
807
808
|
t.$slots.optionCsv ? {
|
|
808
809
|
name: "optionCsv",
|
|
809
|
-
fn:
|
|
810
|
-
|
|
810
|
+
fn: b(() => [
|
|
811
|
+
k(t.$slots, "optionCsv", {}, void 0, !0)
|
|
811
812
|
]),
|
|
812
813
|
key: "2"
|
|
813
814
|
} : void 0,
|
|
814
815
|
t.$slots.optionImg ? {
|
|
815
816
|
name: "optionImg",
|
|
816
|
-
fn:
|
|
817
|
-
|
|
817
|
+
fn: b(() => [
|
|
818
|
+
k(t.$slots, "optionImg", {}, void 0, !0)
|
|
818
819
|
]),
|
|
819
820
|
key: "3"
|
|
820
821
|
} : void 0,
|
|
821
822
|
t.$slots.optionSvg ? {
|
|
822
823
|
name: "optionSvg",
|
|
823
|
-
fn:
|
|
824
|
-
|
|
824
|
+
fn: b(() => [
|
|
825
|
+
k(t.$slots, "optionSvg", {}, void 0, !0)
|
|
825
826
|
]),
|
|
826
827
|
key: "4"
|
|
827
828
|
} : void 0,
|
|
828
829
|
t.$slots.optionTable ? {
|
|
829
830
|
name: "optionTable",
|
|
830
|
-
fn:
|
|
831
|
-
|
|
831
|
+
fn: b(() => [
|
|
832
|
+
k(t.$slots, "optionTable", {}, void 0, !0)
|
|
832
833
|
]),
|
|
833
834
|
key: "5"
|
|
834
835
|
} : void 0,
|
|
835
836
|
t.$slots.optionFullscreen ? {
|
|
836
837
|
name: "optionFullscreen",
|
|
837
|
-
fn:
|
|
838
|
-
|
|
838
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
839
|
+
k(t.$slots, "optionFullscreen", I(D({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
839
840
|
]),
|
|
840
841
|
key: "6"
|
|
841
842
|
} : void 0,
|
|
842
843
|
t.$slots.optionAnnotator ? {
|
|
843
844
|
name: "optionAnnotator",
|
|
844
|
-
fn:
|
|
845
|
-
|
|
845
|
+
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
846
|
+
k(t.$slots, "optionAnnotator", I(D({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
846
847
|
]),
|
|
847
848
|
key: "7"
|
|
848
849
|
} : void 0,
|
|
849
850
|
t.$slots.optionAltCopy ? {
|
|
850
851
|
name: "optionAltCopy",
|
|
851
|
-
fn:
|
|
852
|
-
|
|
852
|
+
fn: b(({ altCopy: l }) => [
|
|
853
|
+
k(t.$slots, "optionAltCopy", I(D({ altCopy: l })), void 0, !0)
|
|
853
854
|
]),
|
|
854
855
|
key: "8"
|
|
855
856
|
} : void 0
|
|
856
857
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : h("", !0),
|
|
857
|
-
|
|
858
|
-
(u(),
|
|
858
|
+
x("div", fa, [
|
|
859
|
+
(u(), r("svg", {
|
|
859
860
|
ref_key: "svgRef",
|
|
860
|
-
ref:
|
|
861
|
+
ref: ee,
|
|
861
862
|
xmlns: v(Ml),
|
|
862
863
|
"aria-describedby": `chart-instructions-${_.value}`,
|
|
863
|
-
class: E({ "vue-data-ui-fullscreen--on":
|
|
864
|
+
class: E({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
|
|
864
865
|
viewBox: `0 0 ${i.value.absoluteWidth} ${i.value.absoluteHeight}`,
|
|
865
|
-
style:
|
|
866
|
+
style: Z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`),
|
|
866
867
|
tabindex: "0",
|
|
867
868
|
onFocus: Ll,
|
|
868
869
|
onBlur: Sl,
|
|
869
870
|
onKeydown: _l
|
|
870
871
|
}, [
|
|
871
|
-
|
|
872
|
-
t.$slots["chart-background"] ? (u(),
|
|
872
|
+
Dt(v(Yt)),
|
|
873
|
+
t.$slots["chart-background"] ? (u(), r("foreignObject", {
|
|
873
874
|
key: 0,
|
|
874
875
|
x: i.value.left,
|
|
875
876
|
y: i.value.top,
|
|
@@ -879,44 +880,44 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
879
880
|
pointerEvents: "none"
|
|
880
881
|
}
|
|
881
882
|
}, [
|
|
882
|
-
|
|
883
|
+
k(t.$slots, "chart-background", {}, void 0, !0)
|
|
883
884
|
], 8, ma)) : h("", !0),
|
|
884
|
-
|
|
885
|
-
|
|
885
|
+
x("defs", null, [
|
|
886
|
+
x("linearGradient", {
|
|
886
887
|
id: `hover_${_.value}`,
|
|
887
888
|
x1: "0%",
|
|
888
889
|
y1: "0%",
|
|
889
890
|
x2: "0%",
|
|
890
891
|
y2: "100%"
|
|
891
892
|
}, [
|
|
892
|
-
|
|
893
|
+
x("stop", {
|
|
893
894
|
offset: "0%",
|
|
894
895
|
"stop-color": v(ne)(e.value.style.chart.backgroundColor, e.value.style.chart.layout.highlighter.opacity)
|
|
895
896
|
}, null, 8, xa),
|
|
896
|
-
|
|
897
|
+
x("stop", {
|
|
897
898
|
offset: "100%",
|
|
898
899
|
"stop-color": v(ne)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity)
|
|
899
900
|
}, null, 8, ka)
|
|
900
901
|
], 8, pa),
|
|
901
|
-
|
|
902
|
+
x("radialGradient", {
|
|
902
903
|
id: `focus_${_.value}`
|
|
903
904
|
}, [
|
|
904
|
-
|
|
905
|
+
x("stop", {
|
|
905
906
|
offset: "0%",
|
|
906
907
|
"stop-color": v(ne)(v(We)(e.value.style.chart.backgroundColor), 0)
|
|
907
908
|
}, null, 8, wa),
|
|
908
|
-
|
|
909
|
+
x("stop", {
|
|
909
910
|
offset: "77%",
|
|
910
911
|
"stop-color": v(ne)("#FFFFFF", 30)
|
|
911
912
|
}, null, 8, Aa),
|
|
912
|
-
|
|
913
|
+
x("stop", {
|
|
913
914
|
offset: "100%",
|
|
914
915
|
"stop-color": v(ne)(v(We)(e.value.style.chart.backgroundColor), 0)
|
|
915
916
|
}, null, 8, La)
|
|
916
917
|
], 8, Ca)
|
|
917
918
|
]),
|
|
918
|
-
e.value.style.chart.layout.grid.show ? (u(),
|
|
919
|
-
|
|
919
|
+
e.value.style.chart.layout.grid.show ? (u(), r("g", Sa, [
|
|
920
|
+
x("line", {
|
|
920
921
|
x1: i.value.left,
|
|
921
922
|
x2: i.value.left,
|
|
922
923
|
y1: i.value.top,
|
|
@@ -925,7 +926,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
925
926
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
926
927
|
"stroke-linecap": "round"
|
|
927
928
|
}, null, 8, _a),
|
|
928
|
-
|
|
929
|
+
x("line", {
|
|
929
930
|
x1: i.value.left,
|
|
930
931
|
x2: i.value.right,
|
|
931
932
|
y1: i.value.bottom,
|
|
@@ -934,8 +935,8 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
934
935
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth,
|
|
935
936
|
"stroke-linecap": "round"
|
|
936
937
|
}, null, 8, $a),
|
|
937
|
-
e.value.style.chart.layout.grid.showVerticalLines ? (u(),
|
|
938
|
-
(u(!0),
|
|
938
|
+
e.value.style.chart.layout.grid.showVerticalLines ? (u(), r("g", za, [
|
|
939
|
+
(u(!0), r(z, null, T(g.value.end - g.value.start, (l, o) => (u(), r("line", {
|
|
939
940
|
x1: i.value.left + (o + 1) * L.value,
|
|
940
941
|
x2: i.value.left + (o + 1) * L.value,
|
|
941
942
|
y1: i.value.top,
|
|
@@ -946,8 +947,8 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
946
947
|
}, null, 8, Ta))), 256))
|
|
947
948
|
])) : h("", !0)
|
|
948
949
|
])) : h("", !0),
|
|
949
|
-
|
|
950
|
-
e.value.style.chart.layout.grid.axis.yLabel ? (u(),
|
|
950
|
+
x("g", null, [
|
|
951
|
+
e.value.style.chart.layout.grid.axis.yLabel ? (u(), r("text", {
|
|
951
952
|
key: 0,
|
|
952
953
|
ref_key: "yAxisLabel",
|
|
953
954
|
ref: we,
|
|
@@ -957,7 +958,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
957
958
|
"text-anchor": "middle",
|
|
958
959
|
style: { transition: "none" }
|
|
959
960
|
}, w(e.value.style.chart.layout.grid.axis.yLabel), 9, Pa)) : h("", !0),
|
|
960
|
-
e.value.style.chart.layout.grid.axis.xLabel ? (u(),
|
|
961
|
+
e.value.style.chart.layout.grid.axis.xLabel ? (u(), r("text", {
|
|
961
962
|
key: 1,
|
|
962
963
|
ref_key: "xAxisLabel",
|
|
963
964
|
ref: Ce,
|
|
@@ -966,16 +967,16 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
966
967
|
y: i.value.absoluteHeight - 3,
|
|
967
968
|
"font-size": e.value.style.chart.layout.grid.axis.fontSize,
|
|
968
969
|
fill: e.value.style.chart.layout.grid.axis.color
|
|
969
|
-
}, w(e.value.style.chart.layout.grid.axis.xLabel), 9,
|
|
970
|
+
}, w(e.value.style.chart.layout.grid.axis.xLabel), 9, Ia)) : h("", !0)
|
|
970
971
|
]),
|
|
971
|
-
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(),
|
|
972
|
+
e.value.style.chart.layout.grid.yAxis.dataLabels.show ? (u(), r("g", {
|
|
972
973
|
key: 2,
|
|
973
974
|
ref_key: "scaleLabels",
|
|
974
975
|
ref: ke,
|
|
975
976
|
class: E({ "donut-opacity": !0, "donut-behind": m.value !== null })
|
|
976
977
|
}, [
|
|
977
|
-
(u(!0),
|
|
978
|
-
l.value >= M.value.min && l.value <= M.value.max ? (u(),
|
|
978
|
+
(u(!0), r(z, null, T(sl.value, (l, o) => (u(), r("g", null, [
|
|
979
|
+
l.value >= M.value.min && l.value <= M.value.max ? (u(), r("line", {
|
|
979
980
|
key: 0,
|
|
980
981
|
x1: i.value.left,
|
|
981
982
|
x2: i.value.left - 5,
|
|
@@ -983,8 +984,8 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
983
984
|
y2: l.y,
|
|
984
985
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
985
986
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
986
|
-
}, null, 8,
|
|
987
|
-
l.value >= M.value.min && l.value <= M.value.max ? (u(),
|
|
987
|
+
}, null, 8, Da)) : h("", !0),
|
|
988
|
+
l.value >= M.value.min && l.value <= M.value.max ? (u(), r("text", {
|
|
988
989
|
key: 1,
|
|
989
990
|
x: i.value.left + e.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
|
|
990
991
|
y: l.y + e.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
@@ -1005,16 +1006,16 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1005
1006
|
) : ""), 9, Oa)) : h("", !0)
|
|
1006
1007
|
]))), 256))
|
|
1007
1008
|
], 2)) : h("", !0),
|
|
1008
|
-
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(),
|
|
1009
|
+
e.value.style.chart.layout.grid.xAxis.dataLabels.show ? (u(), r("g", {
|
|
1009
1010
|
key: 3,
|
|
1010
1011
|
ref_key: "timeLabelsEls",
|
|
1011
1012
|
ref: se,
|
|
1012
1013
|
class: E({ "donut-opacity": !0 })
|
|
1013
1014
|
}, [
|
|
1014
|
-
(u(!0),
|
|
1015
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (o === 0 || o ===
|
|
1015
|
+
(u(!0), r(z, null, T(g.value.end - g.value.start, (l, o) => (u(), r("g", null, [
|
|
1016
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (o === 0 || o === N.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && A.value[o] && A.value[o].text ? (u(), r("g", Na, [
|
|
1016
1017
|
String(A.value[o].text).includes(`
|
|
1017
|
-
`) ? (u(),
|
|
1018
|
+
`) ? (u(), r("text", {
|
|
1018
1019
|
key: 1,
|
|
1019
1020
|
class: "vue-data-ui-time-label",
|
|
1020
1021
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1028,7 +1029,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1028
1029
|
x: 0,
|
|
1029
1030
|
y: 0
|
|
1030
1031
|
})
|
|
1031
|
-
}, null, 8, Fa)) : (u(),
|
|
1032
|
+
}, null, 8, Fa)) : (u(), r("text", {
|
|
1032
1033
|
key: 0,
|
|
1033
1034
|
class: "vue-data-ui-time-label",
|
|
1034
1035
|
"text-anchor": e.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1039,21 +1040,21 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1039
1040
|
])) : h("", !0)
|
|
1040
1041
|
]))), 256))
|
|
1041
1042
|
], 512)) : h("", !0),
|
|
1042
|
-
(u(!0),
|
|
1043
|
-
e.value.style.chart.layout.line.show && o <
|
|
1043
|
+
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", null, [
|
|
1044
|
+
e.value.style.chart.layout.line.show && o < p.value.length - 1 && ![l.subtotal, p.value[o + 1].subtotal].includes(null) ? (u(), r("line", {
|
|
1044
1045
|
key: 0,
|
|
1045
1046
|
class: E({ "donut-opacity": !0, "donut-behind": m.value !== null }),
|
|
1046
1047
|
x1: l.x,
|
|
1047
1048
|
y1: l.y,
|
|
1048
|
-
x2:
|
|
1049
|
-
y2:
|
|
1049
|
+
x2: p.value[o + 1].x,
|
|
1050
|
+
y2: p.value[o + 1].y,
|
|
1050
1051
|
stroke: e.value.style.chart.layout.line.stroke,
|
|
1051
1052
|
"stroke-width": e.value.style.chart.layout.line.strokeWidth,
|
|
1052
1053
|
"stroke-linecap": "round",
|
|
1053
1054
|
"stroke-linejoin": "round"
|
|
1054
1055
|
}, null, 10, Ra)) : h("", !0),
|
|
1055
|
-
l.subtotal !== null ? (u(),
|
|
1056
|
-
l.subtotal ? (u(),
|
|
1056
|
+
l.subtotal !== null ? (u(), r("g", Va, [
|
|
1057
|
+
l.subtotal ? (u(), r("circle", {
|
|
1057
1058
|
key: 0,
|
|
1058
1059
|
cx: l.x,
|
|
1059
1060
|
cy: l.y,
|
|
@@ -1062,13 +1063,13 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1062
1063
|
}, null, 8, Ma)) : h("", !0)
|
|
1063
1064
|
])) : h("", !0)
|
|
1064
1065
|
]))), 256)),
|
|
1065
|
-
(u(!0),
|
|
1066
|
+
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", {
|
|
1066
1067
|
class: E({ "donut-opacity": !0, "donut-behind": o !== m.value && m.value !== null })
|
|
1067
1068
|
}, [
|
|
1068
|
-
l.subtotal ? (u(),
|
|
1069
|
-
m.value !== null && m.value === o ? (u(),
|
|
1070
|
-
(u(!0),
|
|
1071
|
-
At(n) ? (u(),
|
|
1069
|
+
l.subtotal ? (u(), r("g", Ba, [
|
|
1070
|
+
m.value !== null && m.value === o ? (u(), r("g", Ua, [
|
|
1071
|
+
(u(!0), r(z, null, T(l.donutHover, (n) => (u(), r("g", null, [
|
|
1072
|
+
At(n) ? (u(), r("path", {
|
|
1072
1073
|
key: 0,
|
|
1073
1074
|
d: v(Hl)(n, { x: n.center.endX, y: n.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
1074
1075
|
stroke: n.color,
|
|
@@ -1078,8 +1079,8 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1078
1079
|
fill: "none"
|
|
1079
1080
|
}, null, 8, Ha)) : h("", !0)
|
|
1080
1081
|
]))), 256)),
|
|
1081
|
-
(u(!0),
|
|
1082
|
-
At(n) ? (u(),
|
|
1082
|
+
(u(!0), r(z, null, T(l.donutHover, (n, s) => (u(), r("g", null, [
|
|
1083
|
+
At(n) ? (u(), r("text", {
|
|
1083
1084
|
key: 0,
|
|
1084
1085
|
"data-cy-hover-label": "",
|
|
1085
1086
|
"text-anchor": v(Rt)(n, !0, 0).anchor,
|
|
@@ -1088,10 +1089,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1088
1089
|
fill: e.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1089
1090
|
"font-size": 8,
|
|
1090
1091
|
"font-weight": "bold"
|
|
1091
|
-
}, w(n.name) + ": " + w(rl(n, l.donut)) + " (" + w(n.value === null ? "-" : Fe(n.value, n,
|
|
1092
|
+
}, w(n.name) + ": " + w(rl(n, l.donut)) + " (" + w(n.value === null ? "-" : Fe(n.value, n, s)) + ") ", 9, Wa)) : h("", !0)
|
|
1092
1093
|
]))), 256)),
|
|
1093
|
-
|
|
1094
|
-
|
|
1094
|
+
x("g", null, [
|
|
1095
|
+
x("circle", {
|
|
1095
1096
|
cx: l.x,
|
|
1096
1097
|
cy: l.y,
|
|
1097
1098
|
r: l.hoverRadius,
|
|
@@ -1101,25 +1102,25 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1101
1102
|
])) : h("", !0)
|
|
1102
1103
|
])) : h("", !0)
|
|
1103
1104
|
], 2))), 256)),
|
|
1104
|
-
(u(!0),
|
|
1105
|
+
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", {
|
|
1105
1106
|
class: E({ "donut-opacity": !0, "donut-behind": o !== m.value && m.value !== null })
|
|
1106
1107
|
}, [
|
|
1107
|
-
l.subtotal !== null ? (u(),
|
|
1108
|
-
l.subtotal === 0 ? (u(),
|
|
1108
|
+
l.subtotal !== null ? (u(), r("g", Ga, [
|
|
1109
|
+
l.subtotal === 0 ? (u(), r("circle", {
|
|
1109
1110
|
key: 0,
|
|
1110
1111
|
cx: l.x,
|
|
1111
1112
|
cy: l.y,
|
|
1112
1113
|
r: 3,
|
|
1113
1114
|
fill: e.value.style.chart.color
|
|
1114
|
-
}, null, 8, Ya)) : m.value !== null && m.value === o ? (u(),
|
|
1115
|
-
(u(!0),
|
|
1115
|
+
}, null, 8, Ya)) : m.value !== null && m.value === o ? (u(), r("g", ja, [
|
|
1116
|
+
(u(!0), r(z, null, T(l.donutHover, (n, s) => (u(), r("path", {
|
|
1116
1117
|
d: n.arcSlice,
|
|
1117
1118
|
fill: `${n.color}`,
|
|
1118
1119
|
"stroke-width": 1,
|
|
1119
1120
|
stroke: e.value.style.chart.backgroundColor
|
|
1120
1121
|
}, null, 8, qa))), 256))
|
|
1121
|
-
])) : (u(),
|
|
1122
|
-
(u(!0),
|
|
1122
|
+
])) : (u(), r("g", Ka, [
|
|
1123
|
+
(u(!0), r(z, null, T(l.donut, (n, s) => (u(), r("path", {
|
|
1123
1124
|
d: n.arcSlice,
|
|
1124
1125
|
fill: `${n.color}`,
|
|
1125
1126
|
"stroke-width": 0.5,
|
|
@@ -1128,10 +1129,10 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1128
1129
|
]))
|
|
1129
1130
|
])) : h("", !0)
|
|
1130
1131
|
], 2))), 256)),
|
|
1131
|
-
(u(!0),
|
|
1132
|
-
class: E({ "donut-opacity": !0, "donut-behind": o !== m.value && m.value !== null || xe.value && o !==
|
|
1132
|
+
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("g", {
|
|
1133
|
+
class: E({ "donut-opacity": !0, "donut-behind": o !== m.value && m.value !== null || xe.value && o !== X.value.index })
|
|
1133
1134
|
}, [
|
|
1134
|
-
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(),
|
|
1135
|
+
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (u(), r("text", {
|
|
1135
1136
|
key: 0,
|
|
1136
1137
|
"text-anchor": "middle",
|
|
1137
1138
|
x: l.x,
|
|
@@ -1141,18 +1142,18 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1141
1142
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
1142
1143
|
}, w(Fe(l.subtotal, l, o)), 9, Ja)) : h("", !0)
|
|
1143
1144
|
], 2))), 256)),
|
|
1144
|
-
(u(!0),
|
|
1145
|
+
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("rect", {
|
|
1145
1146
|
x: i.value.left + o * L.value,
|
|
1146
1147
|
y: i.value.top,
|
|
1147
1148
|
width: L.value,
|
|
1148
1149
|
height: i.value.height,
|
|
1149
|
-
fill: [m.value,
|
|
1150
|
-
class: E({ "donut-hover": V.value && l.subtotal && [m.value,
|
|
1150
|
+
fill: [m.value, te.value].includes(l.index) ? `url(#hover_${_.value})` : "transparent",
|
|
1151
|
+
class: E({ "donut-hover": V.value && l.subtotal && [m.value, te.value].includes(l.index) }),
|
|
1151
1152
|
style: {
|
|
1152
1153
|
pointerEvents: "none"
|
|
1153
1154
|
}
|
|
1154
1155
|
}, null, 10, Qa))), 256)),
|
|
1155
|
-
(u(!0),
|
|
1156
|
+
(u(!0), r(z, null, T(p.value, (l, o) => (u(), r("rect", {
|
|
1156
1157
|
"data-cy-trap": "",
|
|
1157
1158
|
x: i.value.left + o * L.value,
|
|
1158
1159
|
y: i.value.top,
|
|
@@ -1164,28 +1165,28 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1164
1165
|
onClick: (n) => Re(l, o),
|
|
1165
1166
|
class: E({ "donut-hover": V.value && m.value === l.index && l.subtotal })
|
|
1166
1167
|
}, null, 42, eo))), 256)),
|
|
1167
|
-
|
|
1168
|
+
k(t.$slots, "svg", {
|
|
1168
1169
|
svg: {
|
|
1169
1170
|
...i.value,
|
|
1170
|
-
isPrintingImg: v(
|
|
1171
|
+
isPrintingImg: v(De) | v(Oe) | re.value,
|
|
1171
1172
|
isPrintingSvg: ie.value
|
|
1172
1173
|
}
|
|
1173
1174
|
}, void 0, !0)
|
|
1174
1175
|
], 46, ba)),
|
|
1175
|
-
t.$slots.hint ? (u(),
|
|
1176
|
-
|
|
1176
|
+
t.$slots.hint ? (u(), r("div", to, [
|
|
1177
|
+
k(t.$slots, "hint", I(D({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Se.value })), void 0, !0)
|
|
1177
1178
|
])) : h("", !0)
|
|
1178
1179
|
]),
|
|
1179
|
-
t.$slots.watermark ? (u(),
|
|
1180
|
-
|
|
1180
|
+
t.$slots.watermark ? (u(), r("div", lo, [
|
|
1181
|
+
k(t.$slots, "watermark", I(D({ isPrinting: v(De) || v(Oe) || re.value || ie.value })), void 0, !0)
|
|
1181
1182
|
])) : h("", !0),
|
|
1182
|
-
|
|
1183
|
+
x("div", {
|
|
1183
1184
|
ref_key: "chartSlicer",
|
|
1184
1185
|
ref: ut,
|
|
1185
|
-
style:
|
|
1186
|
+
style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1186
1187
|
"data-dom-to-png-ignore": ""
|
|
1187
1188
|
}, [
|
|
1188
|
-
|
|
1189
|
+
N.value > 1 && e.value.style.chart.zoom.show ? (u(), $(ia, {
|
|
1189
1190
|
ref_key: "slicerComponent",
|
|
1190
1191
|
ref: ot,
|
|
1191
1192
|
key: `slicer_${Ke.value}`,
|
|
@@ -1198,7 +1199,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1198
1199
|
textColor: e.value.style.chart.color,
|
|
1199
1200
|
inputColor: e.value.style.chart.zoom.color,
|
|
1200
1201
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1201
|
-
max:
|
|
1202
|
+
max: N.value,
|
|
1202
1203
|
min: 0,
|
|
1203
1204
|
valueStart: g.value.start,
|
|
1204
1205
|
valueEnd: g.value.end,
|
|
@@ -1207,7 +1208,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1207
1208
|
end: g.value.end,
|
|
1208
1209
|
"onUpdate:end": a[1] || (a[1] = (l) => g.value.end = l),
|
|
1209
1210
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1210
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 :
|
|
1211
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : N.value,
|
|
1211
1212
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1212
1213
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1213
1214
|
focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
|
|
@@ -1216,37 +1217,37 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1216
1217
|
maxWidth: e.value.style.chart.zoom.maxWidth,
|
|
1217
1218
|
onReset: ct
|
|
1218
1219
|
}, {
|
|
1219
|
-
"reset-action":
|
|
1220
|
-
|
|
1220
|
+
"reset-action": b(({ reset: l }) => [
|
|
1221
|
+
k(t.$slots, "reset-action", I(D({ reset: l })), void 0, !0)
|
|
1221
1222
|
]),
|
|
1222
1223
|
_: 3
|
|
1223
1224
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio", "isCursorPointer", "maxWidth"])) : h("", !0)
|
|
1224
1225
|
], 4),
|
|
1225
|
-
|
|
1226
|
+
x("div", {
|
|
1226
1227
|
id: `legend-bottom-${_.value}`
|
|
1227
1228
|
}, null, 8, ao),
|
|
1228
|
-
et.value ? (u(), $(
|
|
1229
|
+
et.value ? (u(), $(Il, {
|
|
1229
1230
|
key: 6,
|
|
1230
1231
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${_.value}` : `#legend-bottom-${_.value}`
|
|
1231
1232
|
}, [
|
|
1232
|
-
|
|
1233
|
+
x("div", {
|
|
1233
1234
|
ref_key: "chartLegend",
|
|
1234
1235
|
ref: lt
|
|
1235
1236
|
}, [
|
|
1236
1237
|
e.value.style.chart.legend.show ? (u(), $(ra, {
|
|
1237
1238
|
key: `legend_${Qe.value}`,
|
|
1238
|
-
legendSet:
|
|
1239
|
+
legendSet: le.value,
|
|
1239
1240
|
config: il.value,
|
|
1240
|
-
onClickMarker: a[2] || (a[2] = ({ legend: l }) =>
|
|
1241
|
+
onClickMarker: a[2] || (a[2] = ({ legend: l }) => ae(l.uid))
|
|
1241
1242
|
}, {
|
|
1242
|
-
item:
|
|
1243
|
-
|
|
1244
|
-
onClick: (n) =>
|
|
1245
|
-
style:
|
|
1243
|
+
item: b(({ legend: l, index: o }) => [
|
|
1244
|
+
x("div", {
|
|
1245
|
+
onClick: (n) => ae(l.uid),
|
|
1246
|
+
style: Z(`opacity:${C.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1246
1247
|
}, w(l.display), 13, oo)
|
|
1247
1248
|
]),
|
|
1248
|
-
legendToggle:
|
|
1249
|
-
|
|
1249
|
+
legendToggle: b(() => [
|
|
1250
|
+
le.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !v($e) ? (u(), $(va, {
|
|
1250
1251
|
key: 0,
|
|
1251
1252
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1252
1253
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -1257,40 +1258,40 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1257
1258
|
]),
|
|
1258
1259
|
_: 1
|
|
1259
1260
|
}, 8, ["legendSet", "config"])) : h("", !0),
|
|
1260
|
-
|
|
1261
|
+
k(t.$slots, "legend", { legend: le.value }, void 0, !0)
|
|
1261
1262
|
], 512)
|
|
1262
1263
|
], 8, ["to"])) : h("", !0),
|
|
1263
|
-
t.$slots.source ? (u(),
|
|
1264
|
+
t.$slots.source ? (u(), r("div", {
|
|
1264
1265
|
key: 7,
|
|
1265
1266
|
ref_key: "source",
|
|
1266
1267
|
ref: at,
|
|
1267
1268
|
dir: "auto"
|
|
1268
1269
|
}, [
|
|
1269
|
-
|
|
1270
|
+
k(t.$slots, "source", {}, void 0, !0)
|
|
1270
1271
|
], 512)) : h("", !0),
|
|
1271
|
-
st.value && e.value.userOptions.buttons.table ? (u(), $(
|
|
1272
|
+
st.value && e.value.userOptions.buttons.table ? (u(), $(Dl(ue.value.component), Ol({ key: 8 }, ue.value.props, {
|
|
1272
1273
|
ref_key: "tableUnit",
|
|
1273
|
-
ref:
|
|
1274
|
+
ref: J,
|
|
1274
1275
|
onClose: _t
|
|
1275
|
-
}),
|
|
1276
|
-
content:
|
|
1276
|
+
}), It({
|
|
1277
|
+
content: b(() => [
|
|
1277
1278
|
(u(), $(v(Gt), {
|
|
1278
1279
|
key: `table_${Je.value}`,
|
|
1279
1280
|
colNames: B.value.colNames,
|
|
1280
1281
|
head: B.value.head,
|
|
1281
1282
|
body: B.value.body,
|
|
1282
1283
|
config: B.value.config,
|
|
1283
|
-
title: e.value.table.useDialog ? "" :
|
|
1284
|
+
title: e.value.table.useDialog ? "" : ue.value.title,
|
|
1284
1285
|
withCloseButton: !e.value.table.useDialog,
|
|
1285
1286
|
isCursorPointer: V.value,
|
|
1286
1287
|
onClose: _t
|
|
1287
1288
|
}, {
|
|
1288
|
-
th:
|
|
1289
|
+
th: b(({ th: l }) => [
|
|
1289
1290
|
He(w(l.name ?? l), 1)
|
|
1290
1291
|
]),
|
|
1291
|
-
td:
|
|
1292
|
-
l.value === null ? (u(),
|
|
1293
|
-
|
|
1292
|
+
td: b(({ td: l }) => [
|
|
1293
|
+
l.value === null ? (u(), r("span", uo, "-")) : (u(), r("b", no, w(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.prefix) + w(!isNaN(l.value) && l.value !== null ? Number(l.value.toFixed(e.value.table.td.roundingValue)).toLocaleString() : l) + w(isNaN(l.value) ? "" : e.value.style.chart.layout.dataLabels.suffix), 1)),
|
|
1294
|
+
x("span", null, w(l.percentage && !isNaN(l.percentage) ? `(${Number(l.percentage.toFixed(e.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)
|
|
1294
1295
|
]),
|
|
1295
1296
|
_: 1
|
|
1296
1297
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
@@ -1299,23 +1300,23 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1299
1300
|
}, [
|
|
1300
1301
|
e.value.table.useDialog ? {
|
|
1301
1302
|
name: "title",
|
|
1302
|
-
fn:
|
|
1303
|
-
He(w(
|
|
1303
|
+
fn: b(() => [
|
|
1304
|
+
He(w(ue.value.title), 1)
|
|
1304
1305
|
]),
|
|
1305
1306
|
key: "0"
|
|
1306
1307
|
} : void 0,
|
|
1307
1308
|
e.value.table.useDialog ? {
|
|
1308
1309
|
name: "actions",
|
|
1309
|
-
fn:
|
|
1310
|
-
|
|
1310
|
+
fn: b(() => [
|
|
1311
|
+
x("button", {
|
|
1311
1312
|
tabindex: "0",
|
|
1312
1313
|
class: "vue-ui-user-options-button",
|
|
1313
1314
|
onClick: a[3] || (a[3] = (l) => Ve(e.value.userOptions.callbacks.csv)),
|
|
1314
|
-
style:
|
|
1315
|
+
style: Z({ cursor: V.value ? "cursor" : "default" })
|
|
1315
1316
|
}, [
|
|
1316
|
-
|
|
1317
|
+
Dt(v(Xt), {
|
|
1317
1318
|
name: "fileCsv",
|
|
1318
|
-
stroke:
|
|
1319
|
+
stroke: ue.value.props.color
|
|
1319
1320
|
}, null, 8, ["stroke"])
|
|
1320
1321
|
], 4)
|
|
1321
1322
|
]),
|
|
@@ -1327,20 +1328,20 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1327
1328
|
ref_key: "dialog",
|
|
1328
1329
|
ref: Be,
|
|
1329
1330
|
onClose: a[4] || (a[4] = (l) => {
|
|
1330
|
-
|
|
1331
|
+
X.value = null, xe.value = !1, q.value = null, m.value = null, te.value = null;
|
|
1331
1332
|
}),
|
|
1332
1333
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1333
1334
|
color: e.value.style.chart.dialog.color,
|
|
1334
1335
|
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1335
1336
|
headerColor: e.value.style.chart.dialog.header.color,
|
|
1336
|
-
isFullscreen:
|
|
1337
|
+
isFullscreen: j.value,
|
|
1337
1338
|
fullscreenParent: F.value
|
|
1338
1339
|
}, {
|
|
1339
|
-
title:
|
|
1340
|
-
He(w(A.value[Number(
|
|
1340
|
+
title: b(() => [
|
|
1341
|
+
He(w(A.value[Number(X.value.index)] ? A.value[Number(X.value.index)].text : ""), 1)
|
|
1341
1342
|
]),
|
|
1342
|
-
content:
|
|
1343
|
-
|
|
1343
|
+
content: b(() => [
|
|
1344
|
+
X.value ? (u(), $(v(Kt), {
|
|
1344
1345
|
key: 0,
|
|
1345
1346
|
config: St.value,
|
|
1346
1347
|
dataset: Lt.value
|
|
@@ -1351,7 +1352,7 @@ const ha = ["id"], ya = ["id"], ga = ["id"], fa = { style: { position: "relative
|
|
|
1351
1352
|
v($e) ? (u(), $(Jl, { key: 10 })) : h("", !0)
|
|
1352
1353
|
], 46, ha));
|
|
1353
1354
|
}
|
|
1354
|
-
}, To = /* @__PURE__ */ da(so, [["__scopeId", "data-v-
|
|
1355
|
+
}, To = /* @__PURE__ */ da(so, [["__scopeId", "data-v-30c5dcbc"]]);
|
|
1355
1356
|
export {
|
|
1356
1357
|
To as default
|
|
1357
1358
|
};
|