vue-data-ui 3.16.4 → 3.17.0
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 +64 -46
- package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
- package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
- package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
- package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.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-mini-loader.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-rating.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-smiley.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 -1
- package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
- package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
- package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
- package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
- package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
- package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
- package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
- package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
- package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
- package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
- package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
- package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
- package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
- package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
- package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
- package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
- package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
- package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
- package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
- package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
- package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
- package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
- package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
- package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
- package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
- package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
- package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
- package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
- package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
- package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
- package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
- package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
- package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
- package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
- package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
- package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
- package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
- package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
- package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
- package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
- package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
- package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
- package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
- package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
- package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
- package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
- package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
- package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
- package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
- package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
- package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
- package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
- package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
- package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
- package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
- package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
- package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
- package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
- package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
- package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
- package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
- package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
- package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
- package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
- package/package.json +1 -1
- package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
- package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { defineAsyncComponent as F, computed as g, ref as u, toRefs as aa, watch as $e, shallowRef as ut, onMounted as oa, onBeforeUnmount as la, openBlock as s, createElementBlock as c, unref as i, normalizeStyle as ae, normalizeClass as oe, createElementVNode as b, toDisplayString as R, createBlock as S, createCommentVNode as f, withCtx as d, renderSlot as p, normalizeProps as k, guardReactiveProps as C, createSlots as it, createVNode as ue, Fragment as U, renderList as E, Teleport as na, resolveDynamicComponent as sa, mergeProps as ra, createTextVNode as Te, nextTick as Ae } from "vue";
|
|
2
2
|
import { j as ua, t as ct, m as ia, p as M, o as ca, q as W, n as va, s as vt, A as dt, K as da, l as j, k as Pe, X as pa, u as _e, v as ga, ah as pt, r as gt, a0 as ha, a1 as fa, T as ya, U as ma } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as ba, u as ka } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ca } from "./useConfig-
|
|
4
|
+
import { u as Ca } from "./useConfig-ChRble71.js";
|
|
5
5
|
import { u as wa, B as $a } from "./BaseScanner-BhhkKVoj.js";
|
|
6
6
|
import { u as Ta } from "./usePrinter-CEpYU3r5.js";
|
|
7
7
|
import { u as Aa } from "./useSvgExport-ByUukOZt.js";
|
|
@@ -11,8 +11,8 @@ import { u as _a } from "./useUserOptionState-BIvW1Kz7.js";
|
|
|
11
11
|
import { u as Sa } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
12
|
import { u as Oa } from "./useAutoSizeLabelsInsideViewbox-DX7LdvFX.js";
|
|
13
13
|
import Ia from "./img-LXxMLmCg.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import Fa from "./Title-BeMKE1cj.js";
|
|
15
|
+
import xa from "./Legend-CS7Xo5LK.js";
|
|
16
16
|
import Na from "./vue_ui_radar-DryGBOrz.js";
|
|
17
17
|
import { A as La } from "./A11yDataTable-KcVAX2cP.js";
|
|
18
18
|
import { B as Ra } from "./BaseLegendToggle-BQVIawmA.js";
|
|
@@ -49,7 +49,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
49
49
|
},
|
|
50
50
|
emits: ["selectLegend", "copyAlt"],
|
|
51
51
|
setup(ht, { expose: ft, emit: yt }) {
|
|
52
|
-
const mt =
|
|
52
|
+
const mt = F(() => import("./Tooltip-C8KGyqQk.js")), bt = F(() => import("./BaseIcon-Cb3zzG6s.js")), kt = F(() => import("./vue-ui-sparkbar-D6EsbW6u.js")), Ct = F(() => import("./vue-ui-accordion-CnDW2UQL.js")), wt = F(() => import("./DataTable-DT2kIdQ6.js")), $t = F(() => import("./PenAndPaper-Ct3qJ4lA.js")), Tt = F(() => import("./UserOptions-rW2fRf3V.js")), At = F(() => import("./PackageVersion-B3kmPxTR.js")), Pt = F(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_radar: _t } = Ca(), { isThemeValid: St, warnInvalidTheme: Ot } = Pa(), O = ht, Oe = g(() => !!O.dataset && Object.keys(O.dataset).length), m = u(ua()), q = u(!1), ie = u(""), Ie = u(0), I = u(null), Fe = u(null), xe = u(null), Ne = u(null), Le = u(null), Re = u(0), De = u(0), Ve = u(0), ze = u(!1), H = u(null), ce = u(null), le = u(!1), ne = u(!1), A = u(null), Be = u({ x: 0, y: 0 }), J = u("pointer"), ve = u(!1), e = u(ge()), D = g(() => e.value.userOptions.useCursorPointer), It = g(() => ct({
|
|
53
53
|
defaultConfig: {
|
|
54
54
|
userOptions: { show: !1 },
|
|
55
55
|
table: { show: !1 },
|
|
@@ -75,13 +75,13 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
userConfig: e.value.skeletonConfig ?? {}
|
|
78
|
-
})), { loading:
|
|
78
|
+
})), { loading: de, FINAL_DATASET: V } = wa({
|
|
79
79
|
...aa(O),
|
|
80
80
|
FINAL_CONFIG: e,
|
|
81
|
-
prepareConfig:
|
|
81
|
+
prepareConfig: ge,
|
|
82
82
|
callback: () => {
|
|
83
83
|
Promise.resolve().then(async () => {
|
|
84
|
-
await Ae(),
|
|
84
|
+
await Ae(), w.value.showTable = e.value.table.show;
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
87
|
skeletonDataset: O.config?.skeletonDataset ?? {
|
|
@@ -99,8 +99,8 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
99
99
|
defaultConfig: e.value,
|
|
100
100
|
userConfig: It.value
|
|
101
101
|
})
|
|
102
|
-
}), { userOptionsVisible:
|
|
103
|
-
function
|
|
102
|
+
}), { userOptionsVisible: pe, setUserOptionsVisibility: Ue, keepUserOptionState: Ee } = _a({ config: e.value }), { svgRef: x } = Sa({ config: e.value.style.chart.title });
|
|
103
|
+
function ge() {
|
|
104
104
|
const t = Se({
|
|
105
105
|
userConfig: O.config,
|
|
106
106
|
defaultConfig: _t
|
|
@@ -121,9 +121,9 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
$e(() => O.config, (t) => {
|
|
124
|
-
e.value =
|
|
124
|
+
e.value = ge(), pe.value = !e.value.userOptions.showOnChartHover, Me(), Re.value += 1, De.value += 1, Ve.value += 1, w.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip ? e.value.style.chart.tooltip.show : !1;
|
|
125
125
|
}, { deep: !0 });
|
|
126
|
-
const N = ut(null), G = ut(null), z =
|
|
126
|
+
const N = ut(null), G = ut(null), z = g(() => e.value.debug);
|
|
127
127
|
function Me() {
|
|
128
128
|
if (ca(O.dataset) && W({
|
|
129
129
|
componentName: "VueUiRadar",
|
|
@@ -133,8 +133,8 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
133
133
|
const t = ba(() => {
|
|
134
134
|
const { width: o, height: a } = ka({
|
|
135
135
|
chart: I.value,
|
|
136
|
-
title: e.value.style.chart.title.text ?
|
|
137
|
-
legend: e.value.style.chart.legend.show ?
|
|
136
|
+
title: e.value.style.chart.title.text ? Fe.value : null,
|
|
137
|
+
legend: e.value.style.chart.legend.show ? xe.value : null,
|
|
138
138
|
source: Ne.value,
|
|
139
139
|
noTitle: Le.value
|
|
140
140
|
});
|
|
@@ -151,17 +151,17 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
151
151
|
}), la(() => {
|
|
152
152
|
N.value && (G.value && N.value.unobserve(G.value), N.value.disconnect());
|
|
153
153
|
});
|
|
154
|
-
const { isPrinting:
|
|
154
|
+
const { isPrinting: he, isImaging: fe, generatePdf: We, generateImage: Ge } = Ta({
|
|
155
155
|
elementId: `vue-ui-radar_${m.value}`,
|
|
156
156
|
fileName: e.value.style.chart.title.text || "vue-ui-radar",
|
|
157
157
|
options: e.value.userOptions.print
|
|
158
|
-
}),
|
|
158
|
+
}), Ft = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xe = g(() => va(e.value.customPalette)), w = u({
|
|
159
159
|
dataLabels: {
|
|
160
160
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
161
161
|
},
|
|
162
162
|
showTable: e.value.table.show,
|
|
163
163
|
showTooltip: e.value.style.chart.tooltip.show
|
|
164
|
-
}),
|
|
164
|
+
}), xt = g(() => ({
|
|
165
165
|
style: {
|
|
166
166
|
backgroundColor: "#FFFFFF00",
|
|
167
167
|
animation: {
|
|
@@ -265,7 +265,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
265
265
|
() => Rt(),
|
|
266
266
|
{ deep: !0, immediate: !0 }
|
|
267
267
|
);
|
|
268
|
-
const P =
|
|
268
|
+
const P = g(() => {
|
|
269
269
|
const t = Array.isArray(V.value?.categories) ? V.value.categories : [], o = Xe.value ?? M;
|
|
270
270
|
return t.map((a, l) => ({
|
|
271
271
|
name: a?.name ?? "",
|
|
@@ -274,7 +274,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
274
274
|
prefix: a?.prefix ?? "",
|
|
275
275
|
suffix: a?.suffix ?? ""
|
|
276
276
|
}));
|
|
277
|
-
}), T =
|
|
277
|
+
}), T = g(() => V.value.series.map((t, o) => ({
|
|
278
278
|
...t,
|
|
279
279
|
color: vt(t.color) || Xe.value[o] || M[o] || M[o % M.length],
|
|
280
280
|
serieId: `radar_serie_${m.value}_${o}`,
|
|
@@ -295,17 +295,17 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
295
295
|
const o = Ye(t);
|
|
296
296
|
o !== null && (h.value.includes(o.absoluteIndex) || se(o.absoluteIndex));
|
|
297
297
|
}
|
|
298
|
-
const je =
|
|
298
|
+
const je = g(() => Math.max(...T.value.flatMap((t) => t.values))), qe = g(() => T.value.length), ye = g(() => Math.min(v.value.width, v.value.height) / 3), He = g(() => dt({
|
|
299
299
|
plot: { x: v.value.width / 2, y: v.value.height / 2 },
|
|
300
|
-
radius:
|
|
300
|
+
radius: ye.value,
|
|
301
301
|
sides: qe.value,
|
|
302
302
|
rotation: 0
|
|
303
|
-
})), zt =
|
|
303
|
+
})), zt = g(() => {
|
|
304
304
|
const t = [];
|
|
305
|
-
for (let o = 0; o <
|
|
305
|
+
for (let o = 0; o < ye.value; o += ye.value / e.value.style.chart.layout.grid.graduations)
|
|
306
306
|
t.push(o);
|
|
307
307
|
return t;
|
|
308
|
-
}), y =
|
|
308
|
+
}), y = g(() => He.value.coordinates.map((t, o) => {
|
|
309
309
|
const a = T.value[o].values.map((l) => Ut({
|
|
310
310
|
centerX: v.value.width / 2,
|
|
311
311
|
centerY: v.value.height / 2,
|
|
@@ -320,19 +320,19 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
320
320
|
};
|
|
321
321
|
}).map((t) => ({
|
|
322
322
|
...t,
|
|
323
|
-
labelX:
|
|
324
|
-
labelY:
|
|
325
|
-
labelAnchor:
|
|
323
|
+
labelX: me(t).x,
|
|
324
|
+
labelY: me(t).y,
|
|
325
|
+
labelAnchor: me(t).anchor
|
|
326
326
|
})));
|
|
327
|
-
function
|
|
327
|
+
function me({ x: t, y: o }) {
|
|
328
328
|
let a = "middle";
|
|
329
329
|
return t = Math.round(t), o = Math.round(o), t > v.value.width / 2 && (t += 12, a = "start"), t < v.value.width / 2 && (t -= 12, a = "end"), o > v.value.height / 2 + 1 && (o += 20), o < v.value.height / 2 - 1 && (o -= 12), o === v.value.height / 2 && (o += 4), { x: t, y: o, anchor: a };
|
|
330
330
|
}
|
|
331
|
-
const Bt =
|
|
331
|
+
const Bt = g({
|
|
332
332
|
get: () => e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
333
333
|
set: (t) => t
|
|
334
334
|
}), { autoSizeLabels: Je } = Oa({
|
|
335
|
-
svgRef:
|
|
335
|
+
svgRef: x,
|
|
336
336
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
337
337
|
minFontSize: 6,
|
|
338
338
|
sizeRef: Bt,
|
|
@@ -344,7 +344,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
344
344
|
y: o + (l - o) * r
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
const _ =
|
|
347
|
+
const _ = g(() => {
|
|
348
348
|
const t = T.value.map((o, a) => o.values.map((l) => l / (o.target || je.value)));
|
|
349
349
|
return P.value.map((o, a) => {
|
|
350
350
|
const l = da(t.map((r) => r[a]).reduce((r, n) => r + n, 0) / T.value.length);
|
|
@@ -363,14 +363,14 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
363
363
|
})}`
|
|
364
364
|
};
|
|
365
365
|
});
|
|
366
|
-
}), Et =
|
|
366
|
+
}), Et = g(() => ({
|
|
367
367
|
cy: "radar-div-legend",
|
|
368
368
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
369
369
|
color: e.value.style.chart.legend.color,
|
|
370
370
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
371
371
|
paddingBottom: 12,
|
|
372
372
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
373
|
-
})), K =
|
|
373
|
+
})), K = g(() => {
|
|
374
374
|
const t = [
|
|
375
375
|
{ name: e.value.translations.datapoint, color: "" },
|
|
376
376
|
{ name: e.value.translations.target, color: "" },
|
|
@@ -410,7 +410,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
410
410
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
411
411
|
};
|
|
412
412
|
return { head: t, body: o, config: a, colNames: t };
|
|
413
|
-
}), Y = u(null),
|
|
413
|
+
}), Y = u(null), be = u([]), re = u(null);
|
|
414
414
|
function Mt(t, o) {
|
|
415
415
|
q.value = !1, Y.value = null, A.value = null, J.value = "pointer", e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
416
416
|
}
|
|
@@ -420,7 +420,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
420
420
|
function Ze(t, o, a = "pointer") {
|
|
421
421
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), J.value = a, A.value = o;
|
|
422
422
|
const l = P.value.slice();
|
|
423
|
-
|
|
423
|
+
be.value = [], Y.value = o, q.value = !0, re.value = {
|
|
424
424
|
datapoint: t,
|
|
425
425
|
seriesIndex: o,
|
|
426
426
|
series: {
|
|
@@ -437,7 +437,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
437
437
|
series: { categories: l, datapoints: T.value, radar: y.value },
|
|
438
438
|
config: e.value
|
|
439
439
|
}))) {
|
|
440
|
-
|
|
440
|
+
ie.value = r({
|
|
441
441
|
seriesIndex: o,
|
|
442
442
|
datapoint: t,
|
|
443
443
|
series: { categories: l, datapoints: T.value, radar: y.value },
|
|
@@ -445,10 +445,10 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
445
445
|
});
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
|
|
448
|
+
ie.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
449
449
|
for (let n = 0; n < t.values.length; n += 1)
|
|
450
450
|
if (!h.value.includes(n)) {
|
|
451
|
-
const
|
|
451
|
+
const $ = l[n], L = t.values[n], te = isNaN(L / t.target) ? 0 : L / t.target * 100, st = Pe(
|
|
452
452
|
t.formatter,
|
|
453
453
|
L,
|
|
454
454
|
j({
|
|
@@ -463,10 +463,10 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
463
463
|
s: "%",
|
|
464
464
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
465
465
|
}), ta = e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${st} (${rt})` : e.value.style.chart.tooltip.showValue && !e.value.style.chart.tooltip.showPercentage ? st : !e.value.style.chart.tooltip.showValue && e.value.style.chart.tooltip.showPercentage ? `${rt}` : "";
|
|
466
|
-
|
|
467
|
-
name:
|
|
466
|
+
be.value.push({
|
|
467
|
+
name: $?.name ?? `#${n + 1}`,
|
|
468
468
|
value: t.values[n] / t.target * 100,
|
|
469
|
-
color:
|
|
469
|
+
color: $?.color,
|
|
470
470
|
suffix: ta,
|
|
471
471
|
prefix: "",
|
|
472
472
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
@@ -476,9 +476,9 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
476
476
|
}
|
|
477
477
|
function ke(t = null) {
|
|
478
478
|
Ae(() => {
|
|
479
|
-
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ..._.value.flatMap((
|
|
479
|
+
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ..._.value.flatMap(($) => [[$.name], ["%"]])], l = V.value.series.map(($, L) => [$.name, $.target, ...$.values.flatMap((te) => [
|
|
480
480
|
te,
|
|
481
|
-
isNaN(te /
|
|
481
|
+
isNaN(te / $.target) ? "" : te / $.target * 100
|
|
482
482
|
])]), r = o.concat([a]).concat(l), n = ha(r);
|
|
483
483
|
t ? t(n) : fa({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
484
484
|
});
|
|
@@ -488,10 +488,10 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
488
488
|
B.value = t, Ie.value += 1;
|
|
489
489
|
}
|
|
490
490
|
function tt() {
|
|
491
|
-
|
|
491
|
+
w.value.showTable = !w.value.showTable;
|
|
492
492
|
}
|
|
493
493
|
function at() {
|
|
494
|
-
|
|
494
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
495
495
|
}
|
|
496
496
|
const Z = u(!1);
|
|
497
497
|
function Ce() {
|
|
@@ -509,8 +509,8 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
509
509
|
aspectRatio: l
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
const ee =
|
|
513
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
512
|
+
const ee = g(() => {
|
|
513
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
|
|
514
514
|
return {
|
|
515
515
|
component: t ? Pt : Ct,
|
|
516
516
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -540,17 +540,17 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
542
|
});
|
|
543
|
-
$e(() =>
|
|
543
|
+
$e(() => w.value.showTable, (t) => {
|
|
544
544
|
e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
|
|
545
545
|
});
|
|
546
546
|
function ot() {
|
|
547
|
-
|
|
547
|
+
w.value.showTable = !1, ce.value && ce.value.setTableIconState(!1);
|
|
548
548
|
}
|
|
549
|
-
const Gt =
|
|
549
|
+
const Gt = g(() => _.value.map((t) => ({
|
|
550
550
|
...t,
|
|
551
551
|
name: t.display
|
|
552
|
-
}))), Xt =
|
|
553
|
-
svg:
|
|
552
|
+
}))), Xt = g(() => e.value.style.chart.backgroundColor), Kt = g(() => e.value.style.chart.legend), Yt = g(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } = Aa({
|
|
553
|
+
svg: x,
|
|
554
554
|
title: Yt,
|
|
555
555
|
legend: Kt,
|
|
556
556
|
legendItems: Gt,
|
|
@@ -593,23 +593,23 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
593
593
|
}));
|
|
594
594
|
}
|
|
595
595
|
function Jt() {
|
|
596
|
-
A.value = null,
|
|
596
|
+
A.value = null, ve.value = !0;
|
|
597
597
|
}
|
|
598
598
|
function Qt() {
|
|
599
|
-
A.value = null, J.value = "pointer", q.value = !1, Y.value = null,
|
|
599
|
+
A.value = null, J.value = "pointer", q.value = !1, Y.value = null, ve.value = !1;
|
|
600
600
|
}
|
|
601
601
|
function Zt(t) {
|
|
602
|
-
if (!Number.isFinite(t) || !
|
|
602
|
+
if (!Number.isFinite(t) || !x.value) return;
|
|
603
603
|
const o = y.value[t];
|
|
604
604
|
if (!o) return;
|
|
605
|
-
const a =
|
|
605
|
+
const a = x.value.getBoundingClientRect();
|
|
606
606
|
Be.value = {
|
|
607
607
|
x: a.left + o.labelX / v.value.width * a.width,
|
|
608
608
|
y: a.top + o.labelY / v.value.height * a.height
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
611
|
function ea(t) {
|
|
612
|
-
if (!
|
|
612
|
+
if (!x.value || Z.value || document.activeElement !== x.value || !y.value.length) return;
|
|
613
613
|
const o = ["ArrowLeft", "ArrowUp"].includes(t.key), a = ["ArrowRight", "ArrowDown"].includes(t.key), l = t.key === "Enter" || t.key === " ", r = t.key === "Escape";
|
|
614
614
|
if (!o && !a && !l && !r) return;
|
|
615
615
|
if (t.preventDefault(), t.stopPropagation(), r) {
|
|
@@ -625,10 +625,10 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
625
625
|
}
|
|
626
626
|
let n = A.value;
|
|
627
627
|
n === null || n < 0 || n >= y.value.length ? n = a ? 0 : y.value.length - 1 : a ? (n += 1, n >= y.value.length && (n = 0)) : o && (n -= 1, n < 0 && (n = y.value.length - 1));
|
|
628
|
-
const
|
|
629
|
-
|
|
628
|
+
const $ = y.value[n];
|
|
629
|
+
$ && (A.value = n, Zt(n), Ze($, n, "keyboard"));
|
|
630
630
|
}
|
|
631
|
-
const we =
|
|
631
|
+
const we = g(() => {
|
|
632
632
|
const t = K.value?.colNames?.map((a) => a.name ?? a) ?? [], o = K.value?.body ?? [];
|
|
633
633
|
return { headers: t, rows: o };
|
|
634
634
|
});
|
|
@@ -671,7 +671,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
671
671
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : f("", !0),
|
|
672
672
|
e.value.userOptions.buttons.annotator ? (s(), S(i($t), {
|
|
673
673
|
key: 1,
|
|
674
|
-
svgRef: i(
|
|
674
|
+
svgRef: i(x),
|
|
675
675
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
676
676
|
color: e.value.style.chart.color,
|
|
677
677
|
active: Z.value,
|
|
@@ -679,26 +679,26 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
679
679
|
onClose: Ce
|
|
680
680
|
}, {
|
|
681
681
|
"annotator-action-close": d(() => [
|
|
682
|
-
|
|
682
|
+
p(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
683
683
|
]),
|
|
684
684
|
"annotator-action-color": d(({ color: a }) => [
|
|
685
|
-
|
|
685
|
+
p(t.$slots, "annotator-action-color", k(C({ color: a })), void 0, !0)
|
|
686
686
|
]),
|
|
687
687
|
"annotator-action-draw": d(({ mode: a }) => [
|
|
688
|
-
|
|
688
|
+
p(t.$slots, "annotator-action-draw", k(C({ mode: a })), void 0, !0)
|
|
689
689
|
]),
|
|
690
690
|
"annotator-action-undo": d(({ disabled: a }) => [
|
|
691
|
-
|
|
691
|
+
p(t.$slots, "annotator-action-undo", k(C({ disabled: a })), void 0, !0)
|
|
692
692
|
]),
|
|
693
693
|
"annotator-action-redo": d(({ disabled: a }) => [
|
|
694
|
-
|
|
694
|
+
p(t.$slots, "annotator-action-redo", k(C({ disabled: a })), void 0, !0)
|
|
695
695
|
]),
|
|
696
696
|
"annotator-action-delete": d(({ disabled: a }) => [
|
|
697
|
-
|
|
697
|
+
p(t.$slots, "annotator-action-delete", k(C({ disabled: a })), void 0, !0)
|
|
698
698
|
]),
|
|
699
699
|
_: 3
|
|
700
700
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : f("", !0),
|
|
701
|
-
|
|
701
|
+
Ft.value ? (s(), c("div", {
|
|
702
702
|
key: 2,
|
|
703
703
|
ref_key: "noTitle",
|
|
704
704
|
ref: Le,
|
|
@@ -708,10 +708,10 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
708
708
|
e.value.style.chart.title.text ? (s(), c("div", {
|
|
709
709
|
key: 3,
|
|
710
710
|
ref_key: "chartTitle",
|
|
711
|
-
ref:
|
|
711
|
+
ref: Fe,
|
|
712
712
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
713
713
|
}, [
|
|
714
|
-
(s(), S(
|
|
714
|
+
(s(), S(Fa, {
|
|
715
715
|
key: `title_${Re.value}`,
|
|
716
716
|
config: {
|
|
717
717
|
title: {
|
|
@@ -728,14 +728,14 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
728
728
|
b("div", {
|
|
729
729
|
id: `legend-top-${m.value}`
|
|
730
730
|
}, null, 8, Ba),
|
|
731
|
-
e.value.userOptions.show && Oe.value && (i(Ee) || i(
|
|
731
|
+
e.value.userOptions.show && Oe.value && (i(Ee) || i(pe)) ? (s(), S(i(Tt), {
|
|
732
732
|
ref_key: "userOptionsRef",
|
|
733
|
-
ref:
|
|
733
|
+
ref: ce,
|
|
734
734
|
key: `user_options_${Ie.value}`,
|
|
735
735
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
736
736
|
color: e.value.style.chart.color,
|
|
737
|
-
isImaging: i(
|
|
738
|
-
isPrinting: i(
|
|
737
|
+
isImaging: i(fe),
|
|
738
|
+
isPrinting: i(he),
|
|
739
739
|
uid: m.value,
|
|
740
740
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
741
741
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -746,7 +746,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
746
746
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
747
747
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
748
748
|
isFullscreen: B.value,
|
|
749
|
-
isTooltip:
|
|
749
|
+
isTooltip: w.value.showTooltip,
|
|
750
750
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
751
751
|
chartElement: I.value,
|
|
752
752
|
position: e.value.userOptions.position,
|
|
@@ -766,76 +766,76 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
766
766
|
onToggleAnnotator: Ce,
|
|
767
767
|
onCopyAlt: nt,
|
|
768
768
|
style: ae({
|
|
769
|
-
visibility: i(Ee) ? i(
|
|
769
|
+
visibility: i(Ee) ? i(pe) ? "visible" : "hidden" : "visible"
|
|
770
770
|
})
|
|
771
771
|
}, it({ _: 2 }, [
|
|
772
772
|
t.$slots.menuIcon ? {
|
|
773
773
|
name: "menuIcon",
|
|
774
774
|
fn: d(({ isOpen: a, color: l }) => [
|
|
775
|
-
|
|
775
|
+
p(t.$slots, "menuIcon", k(C({ isOpen: a, color: l })), void 0, !0)
|
|
776
776
|
]),
|
|
777
777
|
key: "0"
|
|
778
778
|
} : void 0,
|
|
779
779
|
t.$slots.optionTooltip ? {
|
|
780
780
|
name: "optionTooltip",
|
|
781
781
|
fn: d(() => [
|
|
782
|
-
|
|
782
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
783
783
|
]),
|
|
784
784
|
key: "1"
|
|
785
785
|
} : void 0,
|
|
786
786
|
t.$slots.optionPdf ? {
|
|
787
787
|
name: "optionPdf",
|
|
788
788
|
fn: d(() => [
|
|
789
|
-
|
|
789
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
790
790
|
]),
|
|
791
791
|
key: "2"
|
|
792
792
|
} : void 0,
|
|
793
793
|
t.$slots.optionCsv ? {
|
|
794
794
|
name: "optionCsv",
|
|
795
795
|
fn: d(() => [
|
|
796
|
-
|
|
796
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
797
797
|
]),
|
|
798
798
|
key: "3"
|
|
799
799
|
} : void 0,
|
|
800
800
|
t.$slots.optionImg ? {
|
|
801
801
|
name: "optionImg",
|
|
802
802
|
fn: d(() => [
|
|
803
|
-
|
|
803
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
804
804
|
]),
|
|
805
805
|
key: "4"
|
|
806
806
|
} : void 0,
|
|
807
807
|
t.$slots.optionSvg ? {
|
|
808
808
|
name: "optionSvg",
|
|
809
809
|
fn: d(() => [
|
|
810
|
-
|
|
810
|
+
p(t.$slots, "optionSvg", {}, void 0, !0)
|
|
811
811
|
]),
|
|
812
812
|
key: "5"
|
|
813
813
|
} : void 0,
|
|
814
814
|
t.$slots.optionTable ? {
|
|
815
815
|
name: "optionTable",
|
|
816
816
|
fn: d(() => [
|
|
817
|
-
|
|
817
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
818
818
|
]),
|
|
819
819
|
key: "6"
|
|
820
820
|
} : void 0,
|
|
821
821
|
t.$slots.optionFullscreen ? {
|
|
822
822
|
name: "optionFullscreen",
|
|
823
823
|
fn: d(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
824
|
-
|
|
824
|
+
p(t.$slots, "optionFullscreen", k(C({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
825
825
|
]),
|
|
826
826
|
key: "7"
|
|
827
827
|
} : void 0,
|
|
828
828
|
t.$slots.optionAnnotator ? {
|
|
829
829
|
name: "optionAnnotator",
|
|
830
830
|
fn: d(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
831
|
-
|
|
831
|
+
p(t.$slots, "optionAnnotator", k(C({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
832
832
|
]),
|
|
833
833
|
key: "8"
|
|
834
834
|
} : void 0,
|
|
835
835
|
t.$slots.optionAltCopy ? {
|
|
836
836
|
name: "optionAltCopy",
|
|
837
837
|
fn: d(({ altCopy: a }) => [
|
|
838
|
-
|
|
838
|
+
p(t.$slots, "optionAltCopy", k(C({ altCopy: a })), void 0, !0)
|
|
839
839
|
]),
|
|
840
840
|
key: "9"
|
|
841
841
|
} : void 0
|
|
@@ -843,7 +843,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
843
843
|
b("div", Ua, [
|
|
844
844
|
(s(), c("svg", {
|
|
845
845
|
ref_key: "svgRef",
|
|
846
|
-
ref:
|
|
846
|
+
ref: x,
|
|
847
847
|
xmlns: i(pa),
|
|
848
848
|
"aria-describedby": `chart-instructions-${m.value}`,
|
|
849
849
|
class: oe({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
@@ -854,7 +854,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
854
854
|
onBlur: Qt,
|
|
855
855
|
onKeydown: ea
|
|
856
856
|
}, [
|
|
857
|
-
|
|
857
|
+
ue(i(At)),
|
|
858
858
|
t.$slots["chart-background"] ? (s(), c("foreignObject", {
|
|
859
859
|
key: 0,
|
|
860
860
|
x: 0,
|
|
@@ -865,7 +865,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
865
865
|
pointerEvents: "none"
|
|
866
866
|
}
|
|
867
867
|
}, [
|
|
868
|
-
|
|
868
|
+
p(t.$slots, "chart-background", {}, void 0, !0)
|
|
869
869
|
], 8, Ma)) : f("", !0),
|
|
870
870
|
b("defs", null, [
|
|
871
871
|
(s(!0), c(U, null, E(P.value, (a, l) => (s(), c("radialGradient", {
|
|
@@ -963,20 +963,20 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
963
963
|
}, null, 10, ao))), 256))
|
|
964
964
|
]))), 256))
|
|
965
965
|
])) : f("", !0),
|
|
966
|
-
|
|
966
|
+
p(t.$slots, "svg", {
|
|
967
967
|
svg: {
|
|
968
968
|
...v.value,
|
|
969
|
-
isPrintingImg: i(
|
|
969
|
+
isPrintingImg: i(he) | i(fe) | le.value,
|
|
970
970
|
isPrintingSvg: ne.value
|
|
971
971
|
}
|
|
972
972
|
}, void 0, !0)
|
|
973
973
|
], 46, Ea)),
|
|
974
974
|
t.$slots.hint ? (s(), c("div", oo, [
|
|
975
|
-
|
|
975
|
+
p(t.$slots, "hint", k(C({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: ve.value })), void 0, !0)
|
|
976
976
|
])) : f("", !0)
|
|
977
977
|
]),
|
|
978
978
|
t.$slots.watermark ? (s(), c("div", lo, [
|
|
979
|
-
|
|
979
|
+
p(t.$slots, "watermark", k(C({ isPrinting: i(he) || i(fe) || le.value || ne.value })), void 0, !0)
|
|
980
980
|
])) : f("", !0),
|
|
981
981
|
b("div", {
|
|
982
982
|
id: `legend-bottom-${m.value}`
|
|
@@ -987,9 +987,9 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
987
987
|
}, [
|
|
988
988
|
b("div", {
|
|
989
989
|
ref_key: "chartLegend",
|
|
990
|
-
ref:
|
|
990
|
+
ref: xe
|
|
991
991
|
}, [
|
|
992
|
-
e.value.style.chart.legend.show ? (s(), S(
|
|
992
|
+
e.value.style.chart.legend.show ? (s(), S(xa, {
|
|
993
993
|
key: `legend_${Ve.value}`,
|
|
994
994
|
legendSet: _.value,
|
|
995
995
|
config: Et.value,
|
|
@@ -997,14 +997,14 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
997
997
|
onClickMarker: o[0] || (o[0] = ({ i: a }) => se(a))
|
|
998
998
|
}, {
|
|
999
999
|
item: d(({ legend: a, index: l }) => [
|
|
1000
|
-
i(
|
|
1000
|
+
i(de) ? f("", !0) : (s(), c("div", {
|
|
1001
1001
|
key: 0,
|
|
1002
1002
|
onClick: (r) => a.segregate(),
|
|
1003
1003
|
style: ae(`opacity:${h.value.includes(l) ? 0.5 : 1}`)
|
|
1004
1004
|
}, R(a.display), 13, so))
|
|
1005
1005
|
]),
|
|
1006
1006
|
legendToggle: d(() => [
|
|
1007
|
-
_.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(
|
|
1007
|
+
_.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !i(de) ? (s(), S(Ra, {
|
|
1008
1008
|
key: 0,
|
|
1009
1009
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1010
1010
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -1015,7 +1015,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
1015
1015
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : f("", !0)
|
|
1016
1016
|
]),
|
|
1017
1017
|
_: 1
|
|
1018
|
-
}, 8, ["legendSet", "config", "isCursorPointer"])) :
|
|
1018
|
+
}, 8, ["legendSet", "config", "isCursorPointer"])) : p(t.$slots, "legend", {
|
|
1019
1019
|
key: 1,
|
|
1020
1020
|
legend: _.value
|
|
1021
1021
|
}, void 0, !0)
|
|
@@ -1027,11 +1027,11 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
1027
1027
|
ref: Ne,
|
|
1028
1028
|
dir: "auto"
|
|
1029
1029
|
}, [
|
|
1030
|
-
|
|
1030
|
+
p(t.$slots, "source", {}, void 0, !0)
|
|
1031
1031
|
], 512)) : f("", !0),
|
|
1032
|
-
|
|
1032
|
+
ue(i(mt), {
|
|
1033
1033
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1034
|
-
show:
|
|
1034
|
+
show: w.value.showTooltip && q.value,
|
|
1035
1035
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1036
1036
|
color: e.value.style.chart.tooltip.color,
|
|
1037
1037
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1042,7 +1042,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
1042
1042
|
position: e.value.style.chart.tooltip.position,
|
|
1043
1043
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1044
1044
|
parent: I.value,
|
|
1045
|
-
content:
|
|
1045
|
+
content: ie.value,
|
|
1046
1046
|
isFullscreen: B.value,
|
|
1047
1047
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
1048
1048
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -1053,13 +1053,16 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
1053
1053
|
a11yPosition: Be.value
|
|
1054
1054
|
}, {
|
|
1055
1055
|
"tooltip-before": d(() => [
|
|
1056
|
-
|
|
1056
|
+
p(t.$slots, "tooltip-before", k(C({ ...re.value })), void 0, !0)
|
|
1057
|
+
]),
|
|
1058
|
+
tooltip: d(() => [
|
|
1059
|
+
p(t.$slots, "tooltip", k(C({ ...re.value })), void 0, !0)
|
|
1057
1060
|
]),
|
|
1058
1061
|
"tooltip-after": d(() => [
|
|
1059
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat)
|
|
1060
|
-
|
|
1061
|
-
dataset:
|
|
1062
|
-
config:
|
|
1062
|
+
!["function"].includes(typeof e.value.style.chart.tooltip.customFormat) && !t.$slots.tooltip ? (s(), c("div", ro, [
|
|
1063
|
+
ue(i(kt), {
|
|
1064
|
+
dataset: be.value,
|
|
1065
|
+
config: xt.value,
|
|
1063
1066
|
backgroundOpacity: 0
|
|
1064
1067
|
}, {
|
|
1065
1068
|
"data-label": d(({ bar: a }) => [
|
|
@@ -1070,8 +1073,8 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
1070
1073
|
]),
|
|
1071
1074
|
_: 1
|
|
1072
1075
|
}, 8, ["dataset", "config"])
|
|
1073
|
-
])),
|
|
1074
|
-
|
|
1076
|
+
])) : f("", !0),
|
|
1077
|
+
p(t.$slots, "tooltip-after", k(C({ ...re.value })), void 0, !0)
|
|
1075
1078
|
]),
|
|
1076
1079
|
_: 3
|
|
1077
1080
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
@@ -1119,7 +1122,7 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
1119
1122
|
onClick: o[1] || (o[1] = (a) => ke(e.value.userOptions.callbacks.csv)),
|
|
1120
1123
|
style: ae({ cursor: D.value ? "pointer" : "default" })
|
|
1121
1124
|
}, [
|
|
1122
|
-
|
|
1125
|
+
ue(i(bt), {
|
|
1123
1126
|
name: "fileCsv",
|
|
1124
1127
|
stroke: ee.value.props.color
|
|
1125
1128
|
}, null, 8, ["stroke"])
|
|
@@ -1128,12 +1131,12 @@ const Va = ["id"], za = ["id"], Ba = ["id"], Ua = { style: { position: "relative
|
|
|
1128
1131
|
key: "1"
|
|
1129
1132
|
} : void 0
|
|
1130
1133
|
]), 1040)) : f("", !0),
|
|
1131
|
-
|
|
1132
|
-
i(
|
|
1134
|
+
p(t.$slots, "skeleton", {}, () => [
|
|
1135
|
+
i(de) ? (s(), S($a, { key: 0 })) : f("", !0)
|
|
1133
1136
|
], !0)
|
|
1134
1137
|
], 46, Va));
|
|
1135
1138
|
}
|
|
1136
|
-
},
|
|
1139
|
+
}, xo = /* @__PURE__ */ Da(vo, [["__scopeId", "data-v-dd180fcd"]]);
|
|
1137
1140
|
export {
|
|
1138
|
-
|
|
1141
|
+
xo as default
|
|
1139
1142
|
};
|